Jurassic.Compiler.DynamicILGenerator.LoadString C# (CSharp) Method

LoadString() public method

Pushes a constant value onto the stack.
public LoadString ( string value ) : void
value string The string to push onto the stack.
return void
        public override void LoadString(string value)
        {
            // Get a token for the string.
            int token = this.GetToken(value);

            // ldstr = 72 <token>
            Emit1ByteOpCodeInt32(0x72, 0, 1, token);

            // The instruction pushes a value onto the stack.
            PushStackOperand(VESType.Object);
        }
DynamicILGenerator