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

ReplaceEvaluationStack() private method

Removes all values from the evaluation stack and adds the given operand types back.
private ReplaceEvaluationStack ( ) : void
return void
        private void ReplaceEvaluationStack(params VESType[] operandTypes)
        {
            this.stackSize = operandTypes.Length;
            this.maxStackSize = Math.Max(this.stackSize, this.maxStackSize);
#if DEBUG
            this.operands.Clear();
            foreach (var operandType in operandTypes)
                this.operands.Push(operandType);
#endif
        }
DynamicILGenerator