Exemplo n.º 1
0
 void namespace_declaration(namespace_declaration ast, ArrayList list)
 {
     list.Add(new Pair(ast.id.ToString(), ast));
     list = new ArrayList();
     foreach (declaration x in ast.nb.declarations)
     {
         declaration(x, list);
     }
     ast.nb.declarations = Sort(list);
 }
Exemplo n.º 2
0
 virtual public void namespace_declaration(namespace_declaration ast, int indent)
 {
     WriteLine("namespace {0} {{", indent, ast.id);
     foreach (using_directive ud in ast.nb.ud)
     {
         visit(ud, indent + 1);
     }
     foreach (declaration d in ast.nb.declarations)
     {
         visit(d, indent + 1);
     }
     WriteLine("}}", indent);
 }
Exemplo n.º 3
0
 public virtual void namespace_declaration(namespace_declaration ast)
 {
     declarationList(ast.nb.declarations);
 }