internal void RequireScope(RunspaceScope scope) { if (GetContext().IsScope(scope)) { return; } throw new RuntimeException(); }
internal void PushScope(RunspaceScope scope) { _Scope.Push(scope); }
internal bool IsScope(RunspaceScope scope) { var current = _Scope.Peek(); return((current & scope) == current); }