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

StoreArgument() public method

Pops a value from the stack and stores it in the method argument with the given index.
public StoreArgument ( int argumentIndex ) : void
argumentIndex int The index of the argument to store into.
return void
        public override void StoreArgument(int argumentIndex)
        {
            if (argumentIndex < 0)
                throw new ArgumentOutOfRangeException("argumentIndex");
            if (argumentIndex < 256)
                Emit1ByteOpCodeInt8(0x10, 1, 0, argumentIndex);
            else
                Emit2ByteOpCodeInt16(0xFE, 0x0B, 1, 0, argumentIndex);
            PopStackOperands(ToVESType(this.dynamicMethod.GetParameters()[argumentIndex].ParameterType));
        }
DynamicILGenerator