public void EndScope() { if (CurrentScope.Parent == null) { throw new SprakInternalRuntimeException("Cannot end root scope"); } CurrentScope = CurrentScope.Parent; FrameDebugInfo.Peek().Scope = CurrentScope; }
public void BeginScope(bool inherit) { CurrentScope = new ExecutionScope(CurrentScope, inherit); FrameDebugInfo.Peek().Scope = CurrentScope; }