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