private GenerateDocComment ( Mono.CSharp.DocumentationBuilder builder ) : void | ||
builder | Mono.CSharp.DocumentationBuilder | |
return | void |
// // Outputs XML documentation comment from tokenized comments. // public bool OutputDocComment(string asmfilename, string xmlFileName) { XmlTextWriter w = null; try { w = new XmlTextWriter(xmlFileName, null); w.Indentation = 4; w.Formatting = Formatting.Indented; w.WriteStartDocument(); w.WriteStartElement("doc"); w.WriteStartElement("assembly"); w.WriteStartElement("name"); w.WriteString(Path.GetFileNameWithoutExtension(asmfilename)); w.WriteEndElement(); // name w.WriteEndElement(); // assembly w.WriteStartElement("members"); XmlCommentOutput = w; module.GenerateDocComment(this); w.WriteFullEndElement(); // members w.WriteEndElement(); w.WriteWhitespace(Environment.NewLine); w.WriteEndDocument(); return(true); } catch (Exception ex) { Report.Error(1569, "Error generating XML documentation file `{0}' (`{1}')", xmlFileName, ex.Message); return(false); } finally { if (w != null) { w.Close(); } } }