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