78 references to SingleLineDocumentationCommentTrivia
Microsoft.CodeAnalysis.CSharp (7)
Compiler\DocumentationCommentCompiler.cs (1)
274
if (trivia.Kind() is SyntaxKind.
SingleLineDocumentationCommentTrivia
or SyntaxKind.MultiLineDocumentationCommentTrivia)
DocumentationComments\SourceDocumentationCommentUtils.cs (1)
68
case SyntaxKind.
SingleLineDocumentationCommentTrivia
:
Parser\DocumentationCommentParser.cs (1)
89
SyntaxKind kind = _isDelimited ? SyntaxKind.MultiLineDocumentationCommentTrivia : SyntaxKind.
SingleLineDocumentationCommentTrivia
;
Syntax\SyntaxFactory.cs (1)
670
return DocumentationCommentTrivia(SyntaxKind.
SingleLineDocumentationCommentTrivia
, List(content))
Syntax\SyntaxKindFacts.cs (2)
261
case SyntaxKind.
SingleLineDocumentationCommentTrivia
:
1817
return kind == SyntaxKind.
SingleLineDocumentationCommentTrivia
||
Syntax\SyntaxNormalizer.cs (1)
1214
case SyntaxKind.
SingleLineDocumentationCommentTrivia
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
58
=> trivia.Kind() == SyntaxKind.
SingleLineDocumentationCommentTrivia
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.DocumentationCommentExteriorCommentRewriter.cs (1)
72
if (currentParent.Kind() is SyntaxKind.
SingleLineDocumentationCommentTrivia
or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
32
public int SingleLineDocCommentTrivia => (int)SyntaxKind.
SingleLineDocumentationCommentTrivia
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
106
kind: SyntaxKind.
SingleLineDocumentationCommentTrivia
,
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
700
if (docComment.IsKind(SyntaxKind.
SingleLineDocumentationCommentTrivia
))
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (1)
42
var docCommentNodes = leadingTrivia.Where(f => f.IsKind(SyntaxKind.
SingleLineDocumentationCommentTrivia
));
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (2)
159
SyntaxKind.
SingleLineDocumentationCommentTrivia
,
220
Trivia(DocumentationCommentTrivia(SyntaxKind.
SingleLineDocumentationCommentTrivia
, [.. allContent])));
Microsoft.CodeAnalysis.CSharp.Features (14)
AddFileBanner\CSharpAddFileBannerCodeRefactoringProvider.cs (1)
31
case SyntaxKind.
SingleLineDocumentationCommentTrivia
:
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
94
=> trivia.Kind() is SyntaxKind.EndOfLineTrivia or SyntaxKind.
SingleLineDocumentationCommentTrivia
;
CodeLens\CSharpCodeLensDisplayInfoService.cs (1)
63
case SyntaxKind.
SingleLineDocumentationCommentTrivia
:
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
203
case SyntaxKind.
SingleLineDocumentationCommentTrivia
:
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
79
=> member.GetFirstToken().LeadingTrivia.Any(t => t is (kind: SyntaxKind.
SingleLineDocumentationCommentTrivia
or SyntaxKind.MultiLineDocumentationCommentTrivia));
DocumentationComments\DocCommentConverter.cs (2)
48
if (node.GetLeadingTrivia().Any(SyntaxKind.
SingleLineDocumentationCommentTrivia
))
54
if (trivia.Kind() == SyntaxKind.
SingleLineDocumentationCommentTrivia
)
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (1)
240
SyntaxKind.
SingleLineDocumentationCommentTrivia
)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
106
kind: SyntaxKind.
SingleLineDocumentationCommentTrivia
,
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
700
if (docComment.IsKind(SyntaxKind.
SingleLineDocumentationCommentTrivia
))
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (1)
42
var docCommentNodes = leadingTrivia.Where(f => f.IsKind(SyntaxKind.
SingleLineDocumentationCommentTrivia
));
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (2)
159
SyntaxKind.
SingleLineDocumentationCommentTrivia
,
220
Trivia(DocumentationCommentTrivia(SyntaxKind.
SingleLineDocumentationCommentTrivia
, [.. allContent])));
Structure\CSharpStructureHelpers.cs (1)
244
var firstComment = startToken.LeadingTrivia.FirstOrNull(t => t.Kind() is SyntaxKind.SingleLineCommentTrivia or SyntaxKind.
SingleLineDocumentationCommentTrivia
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
DocumentationComments\CrefTests.cs (1)
6333
var nonCrefPosition = tree.GetRoot().DescendantTrivia().Single(t => t.IsKind(SyntaxKind.
SingleLineDocumentationCommentTrivia
)).SpanStart;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (43)
Generated\Syntax.Test.xml.Generated.cs (2)
617
=> InternalSyntaxFactory.DocumentationCommentTrivia(SyntaxKind.
SingleLineDocumentationCommentTrivia
, new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.XmlNodeSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.EndOfDocumentationCommentToken));
10833
=> SyntaxFactory.DocumentationCommentTrivia(SyntaxKind.
SingleLineDocumentationCommentTrivia
, new SyntaxList<XmlNodeSyntax>(), SyntaxFactory.Token(SyntaxKind.EndOfDocumentationCommentToken));
LexicalAndXml\LexicalTests.cs (1)
154
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, trivia[0].Kind());
LexicalAndXml\SyntaxTokenParserTests.cs (1)
86
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, docCommentTrivia.Kind());
LexicalAndXml\XmlDocCommentTests.cs (35)
83
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
119
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, leading[0].Kind());
152
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
220
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
243
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
266
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
293
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
321
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
345
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
423
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
450
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
537
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
566
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
650
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
672
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
694
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
716
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
738
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
758
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
825
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
884
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
909
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
935
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
987
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
1046
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
1071
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
1123
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
1187
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
1213
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
1313
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
1362
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
1411
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
1460
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
1564
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
1620
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, node.Kind());
Syntax\StructuredTriviaTests.cs (2)
56
var docComment = SyntaxFactory.DocumentationCommentTrivia(SyntaxKind.
SingleLineDocumentationCommentTrivia
).WithContent(new SyntaxList<XmlNodeSyntax>(xmlElement));
167
var trivia = tree.GetCompilationUnitRoot().DescendantTrivia().Single(t => t.Kind() == SyntaxKind.
SingleLineDocumentationCommentTrivia
);
Syntax\SyntaxNodeTests.cs (2)
322
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, nodesAndTokens[1].Kind());
626
Assert.Equal(SyntaxKind.
SingleLineDocumentationCommentTrivia
, list[1].Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Classification\Worker.cs (1)
223
case SyntaxKind.
SingleLineDocumentationCommentTrivia
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
58
=> trivia.Kind() == SyntaxKind.
SingleLineDocumentationCommentTrivia
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.DocumentationCommentExteriorCommentRewriter.cs (1)
72
if (currentParent.Kind() is SyntaxKind.
SingleLineDocumentationCommentTrivia
or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
32
public int SingleLineDocCommentTrivia => (int)SyntaxKind.
SingleLineDocumentationCommentTrivia
;
Microsoft.Gen.Logging (1)
Parsing\Parser.cs (1)
460
if (trivia.IsKind(SyntaxKind.
SingleLineDocumentationCommentTrivia
))