/** 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); }
public void addChildScope(Scope scope) { m_childScopes[scope.getScopeName()] = scope; }