virtual public void attribute_section(attribute_section ast, int indent) { Write("[", indent); if (ast.target != null) { Write("{0}: ", ast.target.str); } foreach (attribute a in ast.attributes) { visit(a); } WriteLine("]"); }
public void AddAttributes(attribute_section attr) { if (attributes == null) { attributes = attribute_sectionList.New(); } foreach (attribute_section s in attributes) { if (s.target == attr.target) { s.attributes.AddRange(attr.attributes); return; } } attribute_section x = new attribute_section(attr.target, attributeList.New()); x.attributes.AddRange(attr.attributes); attributes.Add(x); }