53 references to MultiLineCommentTrivia
Microsoft.CodeAnalysis.CSharp (9)
Compilation\CSharpCompilation.cs (1)
4442Func<SyntaxTrivia, bool> isComment = trivia => trivia.Kind() == SyntaxKind.SingleLineCommentTrivia || trivia.Kind() == SyntaxKind.MultiLineCommentTrivia;
Syntax\CSharpSyntaxTree.cs (1)
746isComment: trivia => trivia.Kind() == SyntaxKind.SingleLineCommentTrivia || trivia.Kind() == SyntaxKind.MultiLineCommentTrivia,
Syntax\InternalSyntax\SyntaxFactory.cs (1)
95return SyntaxTrivia.Create(SyntaxKind.MultiLineCommentTrivia, text);
Syntax\SyntaxFactory.cs (3)
184/// <see cref="SyntaxKind.SingleLineCommentTrivia"/>, <see cref="SyntaxKind.MultiLineCommentTrivia"/>, 202case SyntaxKind.MultiLineCommentTrivia: 2405if (trivia.ContainsDiagnostics && trivia.Kind() == SyntaxKind.MultiLineCommentTrivia)
Syntax\SyntaxKindFacts.cs (1)
232case SyntaxKind.MultiLineCommentTrivia:
Syntax\SyntaxNormalizer.cs (2)
1200case SyntaxKind.MultiLineCommentTrivia: 1212case SyntaxKind.MultiLineCommentTrivia:
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
CSharpFileHeaderHelper.cs (1)
32else if (commentTrivia.IsKind(SyntaxKind.MultiLineCommentTrivia))
CSharpSyntaxKinds.cs (1)
31public int? MultiLineCommentTrivia => (int)SyntaxKind.MultiLineCommentTrivia;
CSharpTriviaFormatter.cs (1)
210if (trivia.Kind() == SyntaxKind.MultiLineCommentTrivia)
SyntaxTriviaExtensions.cs (4)
25=> trivia.IsKind(SyntaxKind.MultiLineCommentTrivia) || trivia.IsKind(SyntaxKind.SingleLineCommentTrivia); 40=> trivia.Kind() == SyntaxKind.MultiLineCommentTrivia; 47if (trivia.Kind() != SyntaxKind.MultiLineCommentTrivia) 75else if (trivia.Kind() == SyntaxKind.MultiLineCommentTrivia)
SyntaxTriviaListExtensions.cs (1)
34.Where(t => t is (kind: SyntaxKind.SingleLineCommentTrivia or SyntaxKind.MultiLineCommentTrivia or SyntaxKind.WhitespaceTrivia))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
CSharpCodeGenerationHelpers.cs (2)
92if (t1.Kind() == SyntaxKind.MultiLineCommentTrivia) 97return SyntaxFactory.SyntaxTrivia(SyntaxKind.MultiLineCommentTrivia, text + MultiLineCommentTerminator);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
BlockCommentEditing\BlockCommentEditingCommandHandler.cs (1)
285var isBlockComment = trivia.IsKind(SyntaxKind.MultiLineCommentTrivia) || trivia.IsKind(SyntaxKind.MultiLineDocumentationCommentTrivia);
CommentSelection\CSharpToggleBlockCommentCommandHandler.cs (1)
53.Where(trivia => trivia.IsKind(SyntaxKind.MultiLineCommentTrivia) || trivia.IsKind(SyntaxKind.MultiLineDocumentationCommentTrivia))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\Suppression\SuppressionTests.cs (1)
1109foreach (var trivia in context.Node.DescendantTrivia().Where(t => t.Kind() is SyntaxKind.SingleLineCommentTrivia or SyntaxKind.MultiLineCommentTrivia))
Microsoft.CodeAnalysis.CSharp.Features (7)
AddFileBanner\CSharpAddFileBannerCodeRefactoringProvider.cs (1)
30case SyntaxKind.MultiLineCommentTrivia:
BraceMatching\BlockCommentBraceMatcher.cs (1)
31if (trivia.Kind() is SyntaxKind.MultiLineCommentTrivia &&
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
192case SyntaxKind.MultiLineCommentTrivia:
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
76SyntaxKind.MultiLineCommentTrivia or
CSharpFileHeaderHelper.cs (1)
32else if (commentTrivia.IsKind(SyntaxKind.MultiLineCommentTrivia))
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (1)
220return trivia.IsKind(SyntaxKind.MultiLineCommentTrivia)
Structure\CSharpBlockStructureProvider.cs (1)
62builder.Add((int)SyntaxKind.MultiLineCommentTrivia, ImmutableArray.Create<AbstractSyntaxStructureProvider>(new MultilineCommentBlockStructureProvider()));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (10)
LexicalAndXml\LexicalTests.cs (3)
193Assert.Equal(SyntaxKind.MultiLineCommentTrivia, trivia[0].Kind()); 215Assert.Equal(SyntaxKind.MultiLineCommentTrivia, trivia[0].Kind()); 255Assert.Equal(SyntaxKind.MultiLineCommentTrivia, trivia[0].Kind());
LexicalAndXml\XmlDocCommentTests.cs (1)
133Assert.Equal(SyntaxKind.MultiLineCommentTrivia, leading[0].Kind());
Syntax\SyntaxNodeTests.cs (2)
2384Assert.Equal(SyntaxKind.MultiLineCommentTrivia, comment1.Kind()); 2406Assert.Equal(SyntaxKind.MultiLineCommentTrivia, comment1.Kind());
Syntax\SyntaxRewriterTests.cs (2)
470Assert.Equal(SyntaxKind.MultiLineCommentTrivia, comment1.Kind()); 497Assert.Equal(SyntaxKind.MultiLineCommentTrivia, comment1.Kind());
Syntax\SyntaxTriviaListTests.cs (2)
234Assert.Equal(0, list.IndexOf(SyntaxKind.MultiLineCommentTrivia)); 235Assert.True(list.Any(SyntaxKind.MultiLineCommentTrivia));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CompilationTestUtils.cs (1)
492if (trivia.Kind() == SyntaxKind.MultiLineCommentTrivia)
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Classification\Worker.cs (1)
182case SyntaxKind.MultiLineCommentTrivia:
CSharpCodeGenerationHelpers.cs (2)
92if (t1.Kind() == SyntaxKind.MultiLineCommentTrivia) 97return SyntaxFactory.SyntaxTrivia(SyntaxKind.MultiLineCommentTrivia, text + MultiLineCommentTerminator);
CSharpSyntaxKinds.cs (1)
31public int? MultiLineCommentTrivia => (int)SyntaxKind.MultiLineCommentTrivia;
CSharpTriviaFormatter.cs (1)
210if (trivia.Kind() == SyntaxKind.MultiLineCommentTrivia)
SyntaxTriviaExtensions.cs (4)
25=> trivia.IsKind(SyntaxKind.MultiLineCommentTrivia) || trivia.IsKind(SyntaxKind.SingleLineCommentTrivia); 40=> trivia.Kind() == SyntaxKind.MultiLineCommentTrivia; 47if (trivia.Kind() != SyntaxKind.MultiLineCommentTrivia) 75else if (trivia.Kind() == SyntaxKind.MultiLineCommentTrivia)
SyntaxTriviaListExtensions.cs (1)
34.Where(t => t is (kind: SyntaxKind.SingleLineCommentTrivia or SyntaxKind.MultiLineCommentTrivia or SyntaxKind.WhitespaceTrivia))
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (1)
Snippets\CSharpSnippets\SnippetCommandHandler.cs (1)
114return !(trivia.IsKind(SyntaxKind.MultiLineCommentTrivia) || trivia.IsKind(SyntaxKind.SingleLineCommentTrivia) || token.IsKind(SyntaxKind.StringLiteralToken));
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (1)
208t.IsKind(SyntaxKind.MultiLineCommentTrivia) ||
Microsoft.CodeAnalysis.UnitTests (1)
CommonSyntaxTests.cs (1)
117Assert.Equal(CSharp.SyntaxKind.MultiLineCommentTrivia, CSharp.CSharpExtensions.Kind(csharpTrivia));