//
 // Scope
 //
 private void PushScope()
 {
     if (mScopes.Count != 0)
     {
         mScopes.Push(new DeclarationScope(Scope));
     }
     else
     {
         mRootScope = new DeclarationScope(null);
         mScopes.Push(mRootScope);
     }
 }
Beispiel #2
0
 public DeclarationScope(DeclarationScope parent)
 {
     Parent       = parent;
     Declarations = new Dictionary <string, Declaration>();
 }