IronPython.Compiler.Ast.ConstantExpression.IInstructionProvider C# (CSharp) Method

IInstructionProvider() private method

private IInstructionProvider ( LightCompiler compiler ) : void
compiler LightCompiler
return void
        void IInstructionProvider.AddInstructions(LightCompiler compiler) {
            if (_value is bool) {
                compiler.Instructions.EmitLoad((bool)_value);
            } else if (_value is UnicodeWrapper) {
                compiler.Instructions.EmitLoad(((UnicodeWrapper)_value).Value);
            } else {
                compiler.Instructions.EmitLoad(_value);
            }
        }