All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.graal.python.builtins.modules.CollectionsModuleBuiltinsClinicProviders Maven / Gradle / Ivy

There is a newer version: 24.1.1
Show newest version
// CheckStyle: start generated
// Auto generated by ArgumentClinicProcessor at 2024-04-05T16:06:43.918533454
package com.oracle.graal.python.builtins.modules;

import com.oracle.graal.python.nodes.function.PythonBuiltinBaseNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.ArgumentCastNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.ArgumentClinicProvider;
import com.oracle.graal.python.nodes.function.builtins.clinic.IndexConversionNode;

public class CollectionsModuleBuiltinsClinicProviders {
    public static final class TupleGetterNodeClinicProviderGen extends ArgumentClinicProvider {
        public static final TupleGetterNodeClinicProviderGen INSTANCE = new TupleGetterNodeClinicProviderGen();
        
        private TupleGetterNodeClinicProviderGen() {
            super(0x5, 0x7, 0x5, 0x5, 0x2);
        }
        
        @Override
        public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
            if (argIndex == 1) {
                return IndexConversionNode.create(false);
            }
            return super.createCastNode(argIndex, builtin);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy