public virtual void constructor_declaration(constructor_declaration ast) { if (ast.block != null) { statement(ast.block); } constructor_declarator(ast.decl); }
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); }
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(";"); } }
void constructor_declaration(constructor_declaration ast, ArrayList list) { list.Add(new Pair(((constructor_declarator)ast.decl).id.str, ast)); }