com.oracle.graal.python.builtins.modules.WarningsModuleBuiltinsClinicProviders Maven / Gradle / Ivy
// CheckStyle: start generated
// Auto generated by ArgumentClinicProcessor at 2023-09-13T15:54:29.231401252
package com.oracle.graal.python.builtins.modules;
import com.oracle.graal.python.builtins.objects.PNone;
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.DefaultValueNode;
import com.oracle.graal.python.nodes.function.builtins.clinic.JavaIntConversionNode;
public class WarningsModuleBuiltinsClinicProviders {
public static final class WarnExplicitBuiltinNodeClinicProviderGen extends ArgumentClinicProvider {
public static final WarnExplicitBuiltinNodeClinicProviderGen INSTANCE = new WarnExplicitBuiltinNodeClinicProviderGen();
private WarnExplicitBuiltinNodeClinicProviderGen() {
super(0x1ef, 0x1ff, 0x1ef, 0x1ef, 0x10);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 4) {
return JavaIntConversionNode.create(false);
}
return super.createCastNode(argIndex, builtin);
}
}
public static final class WarnBuiltinNodeClinicProviderGen extends ArgumentClinicProvider {
public static final WarnBuiltinNodeClinicProviderGen INSTANCE = new WarnBuiltinNodeClinicProviderGen();
private WarnBuiltinNodeClinicProviderGen() {
super(0x17, 0x1f, 0x17, 0x17, 0x1c);
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 2: return DefaultValueNode.create(PNone.NONE, false);
case 3: return JavaIntConversionNode.create(1, false);
case 4: return DefaultValueNode.create(PNone.NONE, false);
}
return super.createCastNode(argIndex, builtin);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy