internal override void CreateNewComment() { var firstNewlineToken = new NewlineToken(); var firstPartSummaryComment = new LiteralTextToken(" Initializes a new instance of the "); var firstTextNode = new TextNode(DocCommentExterior); firstTextNode.AddToken(firstNewlineToken); firstTextNode.AddToken(firstPartSummaryComment); var className = nodeBeingDocumented.ChildTokens() .Where(t => t.IsKind(SyntaxKind.IdentifierToken)) .First() .ToFullString(); var cref = new CrefNode(className); var secondPartSummaryComment = new LiteralTextTokenWithNoDocCommentExterior(" class."); var secondNewlineToken = new NewlineToken(); var thirdPartSummaryComment = new LiteralTextToken(" "); var secondTextNode = new TextNode(DocCommentExterior); secondTextNode.AddToken(secondPartSummaryComment); secondTextNode.AddToken(secondNewlineToken); secondTextNode.AddToken(thirdPartSummaryComment); Node[] nodes = { firstTextNode, cref, secondTextNode }; AddExampleElementNode(nodes); }
internal override void CreateNewComment() { var firstNewlineToken = new NewlineToken(); var firstPartSummaryComment = new LiteralTextToken(" "); var secondNewLineToken = new NewlineToken(); var secondTextLiteral = new LiteralTextToken(" "); var elementTextNode = new TextNode(DocCommentExterior); elementTextNode.AddToken(firstNewlineToken); elementTextNode.AddToken(firstPartSummaryComment); elementTextNode.AddToken(secondNewLineToken); elementTextNode.AddToken(secondTextLiteral); Node[] nodes = { elementTextNode }; AddExampleElementNode(nodes); }
internal override void CreateNewComment() { var literalText = CreateParameterTextString(); var textToken = new LiteralTextToken(literalText); var paramTextNode = new TextNode(""); paramTextNode.AddToken(textToken); var startTag = new StartTag("param"); var nameAttribute = new Attribute("name", ParamName); startTag.Attribute = nameAttribute; var endTag = new EndTag("param"); var exampleElementNode = new ExampleElementNode(DocCommentExterior); exampleElementNode.AddNode(paramTextNode); exampleElementNode.StartTag = startTag; exampleElementNode.EndTag = endTag; AddNode(exampleElementNode); }