public virtual object VisitCompilationUnit(CompilationUnit compilationUnit, object data) { Debug.Assert((compilationUnit != null)); return compilationUnit.AcceptChildren(this, data); }
public override object VisitCompilationUnit(CompilationUnit compilationUnit, object data) { if (compilationUnit == null) { throw new ArgumentNullException("compilationUnit"); } CodeNamespace globalNamespace = new CodeNamespace("Global"); //namespaces.Add(globalNamespace); namespaceDeclarations.Push(globalNamespace); compilationUnit.AcceptChildren(this, data); codeCompileUnit.Namespaces.Add(globalNamespace); return globalNamespace; }