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