示例#1
0
 public virtual void constructor_declaration(constructor_declaration ast)
 {
     if (ast.block != null)
     {
         statement(ast.block);
     }
     constructor_declarator(ast.decl);
 }
示例#2
0
 override public void constructor_declaration(constructor_declaration ast)
 {
     if (!ast.sym.Is("external") && ast.block == null)
     {
         ast.block = new empty_statement();
         ast.block.link(ast);
     }
     ast.decl.init = null;
     base.constructor_declaration(ast);
 }
示例#3
0
 virtual public void constructor_declaration(constructor_declaration ast, int indent)
 {
     EmitattributeSectionList(ast.attrs, indent);
     EmitModifiers(ast.mods, indent, " ");
     Write("{0}", ast.decl.id.str);
     EmitParameters(ast.decl.f.fixeds, ast.decl.f.param);
     if (ast.decl.init != null)
     {
         visit(ast.decl.init);
     }
     if (ast.block != null)
     {
         statement(ast.block, indent + 1);
     }
     else
     {
         WriteLine(";");
     }
 }
示例#4
0
 void constructor_declaration(constructor_declaration ast, ArrayList list)
 {
     list.Add(new Pair(((constructor_declarator)ast.decl).id.str, ast));
 }