public static string Format(DictionaryMember member) { var f = new WebIDLFormatter(); f.Visit(member); return f._sb.ToString(); }
private void Visit(DictionaryMember member) { Visit(member.ExtendedAttributes, ExtendedAttributeMode.Member); Visit(member.Type); _sb.Append(" " + member.Name); if (member.Default != null) { _sb.Append(" = "); Visit(member.Default); } _sb.AppendLine(";"); }