예제 #1
0
        public void EndScope()
        {
            if (CurrentScope.Parent == null)
            {
                throw new SprakInternalRuntimeException("Cannot end root scope");
            }

            CurrentScope = CurrentScope.Parent;

            FrameDebugInfo.Peek().Scope = CurrentScope;
        }
예제 #2
0
        public void BeginScope(bool inherit)
        {
            CurrentScope = new ExecutionScope(CurrentScope, inherit);

            FrameDebugInfo.Peek().Scope = CurrentScope;
        }