public virtual object Visit(CompilationUnit compilationUnit, object data)
 {
     if (compilationUnit == null) {
         return data;
     }
     return compilationUnit.AcceptChildren(this, data);
 }
 public override object Visit(CompilationUnit compilationUnit, object data)
 {
     CodeNamespace globalNamespace = new CodeNamespace("Global");
     namespaces.Add(globalNamespace);
     namespaceDeclarations.Push(globalNamespace);
     compilationUnit.AcceptChildren(this, data);
     codeCompileUnit.Namespaces.Add(globalNamespace);
     return globalNamespace;
 }
Exemplo n.º 3
0
	void VBNET() {

#line  431 "VBNET.ATG" 
		compilationUnit = new CompilationUnit();
		withStatements = new Stack();
		
		while (la.kind == 1) {
			lexer.NextToken();
		}
		while (la.kind == 137) {
			OptionStmt();
		}
		while (la.kind == 109) {
			ImportsStmt();
		}
		while (
#line  437 "VBNET.ATG" 
IsGlobalAttrTarget()) {
			GlobalAttributeSection();
		}
		while (StartOf(1)) {
			NamespaceMemberDecl();
		}
		Expect(0);
	}
 public object Visit(CompilationUnit compilationUnit, object data)
 {
     DebugOutput(compilationUnit);
     compilationUnit.AcceptChildren(this, data);
     return null;
 }