Leave() private method

private Leave ( InterpretedFrame prevFrame ) : void
prevFrame InterpretedFrame
return void
Example #1
0
        public object?RunVoid(params object?[] arguments)
        {
            InterpretedFrame frame = MakeFrame();

            for (int i = 0; i < arguments.Length; i++)
            {
                frame.Data[i] = arguments[i];
            }
            InterpretedFrame?currentFrame = frame.Enter();

            try
            {
                _interpreter.Run(frame);
            }
            finally
            {
                for (int i = 0; i < arguments.Length; i++)
                {
                    arguments[i] = frame.Data[i];
                }

                frame.Leave(currentFrame);
            }
            return(null);
        }