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