Esempio n. 1
0
        internal void RequireScope(RunspaceScope scope)
        {
            if (GetContext().IsScope(scope))
            {
                return;
            }

            throw new RuntimeException();
        }
Esempio n. 2
0
 internal void PushScope(RunspaceScope scope)
 {
     _Scope.Push(scope);
 }
Esempio n. 3
0
        internal bool IsScope(RunspaceScope scope)
        {
            var current = _Scope.Peek();

            return((current & scope) == current);
        }