Created
July 6, 2019 14:08
-
-
Save JohanLarsson/8036eaee5529d1bee0a7da41761678c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SyntaxTriviaList Comment() | |
{ | |
return SyntaxFactory.TriviaList( | |
SyntaxFactory.Whitespace(" "), | |
SyntaxFactory.Trivia( | |
SyntaxFactory.DocumentationCommentTrivia( | |
kind: SyntaxKind.SingleLineDocumentationCommentTrivia, | |
content: SyntaxFactory.List( | |
new XmlNodeSyntax[] | |
{ | |
SyntaxFactory.XmlText( | |
textTokens: SyntaxFactory.TokenList( | |
SyntaxFactory.XmlTextLiteral( | |
leading: SyntaxFactory.TriviaList( | |
SyntaxFactory.DocumentationCommentExterior("///")), | |
text: " ", | |
value: " ", | |
trailing: default))), | |
SyntaxFactory.XmlElement( | |
startTag: SyntaxFactory.XmlElementStartTag( | |
lessThanToken: SyntaxFactory.Token(SyntaxKind.LessThanToken), | |
name: SyntaxFactory.XmlName( | |
prefix: default, | |
localName: SyntaxFactory.Identifier( | |
leading: default, | |
text: "summary", | |
trailing: default)), | |
attributes: default, | |
greaterThanToken: SyntaxFactory.Token(SyntaxKind.GreaterThanToken)), | |
content: SyntaxFactory.List( | |
new XmlNodeSyntax[] | |
{ | |
SyntaxFactory.XmlText( | |
textTokens: SyntaxFactory.TokenList( | |
SyntaxFactory.XmlTextNewLine( | |
leading: default, | |
text: "\r\n", | |
value: "\r\n", | |
trailing: default), | |
SyntaxFactory.XmlTextLiteral( | |
leading: SyntaxFactory.TriviaList( | |
SyntaxFactory.DocumentationCommentExterior(" ///")), | |
text: " Adds generated bindings for the graph where ", | |
value: " Adds generated bindings for the graph where ", | |
trailing: default))), | |
SyntaxFactory.XmlEmptyElement( | |
lessThanToken: SyntaxFactory.Token(SyntaxKind.LessThanToken), | |
name: SyntaxFactory.XmlName( | |
prefix: default, | |
localName: SyntaxFactory.Identifier( | |
leading: default, | |
text: "see", | |
trailing: default)), | |
attributes: SyntaxFactory.SingletonList<XmlAttributeSyntax>( | |
SyntaxFactory.XmlCrefAttribute( | |
name: SyntaxFactory.XmlName( | |
prefix: default, | |
localName: SyntaxFactory.Identifier( | |
leading: SyntaxFactory.TriviaList(SyntaxFactory.Space), | |
text: "cref", | |
trailing: default)), | |
equalsToken: SyntaxFactory.Token(SyntaxKind.EqualsToken), | |
startQuoteToken: SyntaxFactory.Token(SyntaxKind.DoubleQuoteToken), | |
cref: SyntaxFactory.TypeCref(g.CrefType(rootType)), | |
endQuoteToken: SyntaxFactory.Token(SyntaxKind.DoubleQuoteToken))), | |
slashGreaterThanToken: SyntaxFactory.Token(SyntaxKind.SlashGreaterThanToken)), | |
SyntaxFactory.XmlText( | |
textTokens: SyntaxFactory.TokenList( | |
SyntaxFactory.XmlTextLiteral(" is root."), | |
SyntaxFactory.XmlTextNewLine( | |
leading: default, | |
text: "\r\n", | |
value: "\r\n", | |
trailing: default), | |
SyntaxFactory.XmlTextLiteral( | |
leading: SyntaxFactory.TriviaList( | |
SyntaxFactory.DocumentationCommentExterior(" ///")), | |
text: " This method is generated by Gu.Inject.Analyzers.", | |
value: " This method is generated by Gu.Inject.Analyzers.", | |
trailing: default), | |
SyntaxFactory.XmlTextNewLine( | |
leading: default, | |
text: "\r\n", | |
value: "\r\n", | |
trailing: default), | |
SyntaxFactory.XmlTextLiteral( | |
leading: SyntaxFactory.TriviaList( | |
SyntaxFactory.DocumentationCommentExterior(" ///")), | |
text: " ", | |
value: " ", | |
trailing: default))), | |
}), | |
endTag: SyntaxFactory.XmlElementEndTag( | |
lessThanSlashToken: SyntaxFactory.Token(SyntaxKind.LessThanSlashToken), | |
name: SyntaxFactory.XmlName( | |
prefix: default, | |
localName: SyntaxFactory.Identifier( | |
leading: default, | |
text: "summary", | |
trailing: default)), | |
greaterThanToken: SyntaxFactory.Token(SyntaxKind.GreaterThanToken))), | |
SyntaxFactory.XmlText( | |
textTokens: SyntaxFactory.TokenList( | |
SyntaxFactory.XmlTextNewLine( | |
leading: default, | |
text: "\r\n", | |
value: "\r\n", | |
trailing: default), | |
SyntaxFactory.XmlTextLiteral( | |
leading: SyntaxFactory.TriviaList( | |
SyntaxFactory.DocumentationCommentExterior(" ///")), | |
text: " ", | |
value: " ", | |
trailing: default))), | |
SyntaxFactory.XmlElement( | |
startTag: SyntaxFactory.XmlElementStartTag( | |
lessThanToken: SyntaxFactory.Token(SyntaxKind.LessThanToken), | |
name: SyntaxFactory.XmlName( | |
prefix: default, | |
localName: SyntaxFactory.Identifier( | |
leading: default, | |
text: "param", | |
trailing: default)), | |
attributes: SyntaxFactory.SingletonList<XmlAttributeSyntax>( | |
SyntaxFactory.XmlNameAttribute( | |
name: SyntaxFactory.XmlName( | |
prefix: default, | |
localName: SyntaxFactory.Identifier( | |
leading: SyntaxFactory.TriviaList(SyntaxFactory.Space), | |
text: "name", | |
trailing: default)), | |
equalsToken: SyntaxFactory.Token(SyntaxKind.EqualsToken), | |
startQuoteToken: SyntaxFactory.Token(SyntaxKind.DoubleQuoteToken), | |
identifier: SyntaxFactory.IdentifierName( | |
identifier: SyntaxFactory.Identifier( | |
leading: default, | |
text: "container", | |
trailing: default)), | |
endQuoteToken: SyntaxFactory.Token(SyntaxKind.DoubleQuoteToken))), | |
greaterThanToken: SyntaxFactory.Token(SyntaxKind.GreaterThanToken)), | |
content: SyntaxFactory.List( | |
new XmlNodeSyntax[] | |
{ | |
SyntaxFactory.XmlText( | |
textTokens: SyntaxFactory.TokenList( | |
SyntaxFactory.XmlTextLiteral("The "))), | |
SyntaxFactory.XmlEmptyElement( | |
lessThanToken: SyntaxFactory.Token(SyntaxKind.LessThanToken), | |
name: SyntaxFactory.XmlName( | |
prefix: default, | |
localName: SyntaxFactory.Identifier( | |
leading: default, | |
text: "see", | |
trailing: default)), | |
attributes: SyntaxFactory.SingletonList<XmlAttributeSyntax>( | |
SyntaxFactory.XmlCrefAttribute( | |
name: SyntaxFactory.XmlName( | |
prefix: default, | |
localName: SyntaxFactory.Identifier( | |
leading: SyntaxFactory.TriviaList(SyntaxFactory.Space), | |
text: "cref", | |
trailing: default)), | |
equalsToken: SyntaxFactory.Token(SyntaxKind.EqualsToken), | |
startQuoteToken: SyntaxFactory.Token(SyntaxKind.DoubleQuoteToken), | |
cref: SyntaxFactory.TypeCref(g.CrefType(containerType)), | |
endQuoteToken: SyntaxFactory.Token(SyntaxKind.DoubleQuoteToken))), | |
slashGreaterThanToken: SyntaxFactory.Token(SyntaxKind.SlashGreaterThanToken)), | |
SyntaxFactory.XmlText( | |
textTokens: SyntaxFactory.TokenList( | |
SyntaxFactory.XmlTextLiteral("."))), | |
}), | |
endTag: SyntaxFactory.XmlElementEndTag( | |
lessThanSlashToken: SyntaxFactory.Token(SyntaxKind.LessThanSlashToken), | |
name: SyntaxFactory.XmlName( | |
prefix: default, | |
localName: SyntaxFactory.Identifier( | |
leading: default, | |
text: "param", | |
trailing: default)), | |
greaterThanToken: SyntaxFactory.Token(SyntaxKind.GreaterThanToken))), | |
SyntaxFactory.XmlText( | |
textTokens: SyntaxFactory.TokenList( | |
SyntaxFactory.XmlTextNewLine( | |
leading: default, | |
text: "\r\n", | |
value: "\r\n", | |
trailing: default))), | |
}), | |
endOfComment: SyntaxFactory.Token(SyntaxKind.EndOfDocumentationCommentToken))), | |
SyntaxFactory.Whitespace(" ")); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Adds generated bindings for the graph where <see cref=""Graph500.Node1""/> is root. | |
/// This method is generated by Gu.Inject.Analyzers. | |
/// </summary> | |
/// <param name=""container"">The <see cref=""Container{Graph500.Node1}""/>.</param> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment