Ejemplo n.º 1
0
        /** returns a Stack of all scope names from a child scope of the pragma scope up to the pragmascope itself
         */
        public static Stack getPathToPragmaScope(Scope fromScope)
        {
            Scope current = fromScope;
            Stack result  = new Stack();

            while ((current != null) && (!(current is PragmaScope)))
            {
                result.Push(current.getScopeName());
                current = current.getParentScope();
            }
            if (!(current is PragmaScope))
            {
                result = new Stack();
            }
            return(result);
        }
Ejemplo n.º 2
0
 public void addChildScope(Scope scope)
 {
     m_childScopes[scope.getScopeName()] = scope;
 }
Ejemplo n.º 3
0
 public void addChildScope(Scope scope) {
     m_childScopes[scope.getScopeName()] = scope;
 }