65 references to MultiLineCommentTrivia
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\RouteStringSyntaxDetector.cs (1)
228=> trivia.IsKind(SyntaxKind.MultiLineCommentTrivia) || trivia.IsKind(SyntaxKind.SingleLineCommentTrivia);
Microsoft.CodeAnalysis.CSharp (9)
Compilation\CSharpCompilation.cs (1)
4731Func<SyntaxTrivia, bool> isComment = trivia => trivia.Kind() == SyntaxKind.SingleLineCommentTrivia || trivia.Kind() == SyntaxKind.MultiLineCommentTrivia;
Syntax\CSharpSyntaxTree.cs (1)
737isComment: trivia => trivia.Kind() == SyntaxKind.SingleLineCommentTrivia || trivia.Kind() == SyntaxKind.MultiLineCommentTrivia,
Syntax\InternalSyntax\SyntaxFactory.cs (1)
95return SyntaxTrivia.Create(SyntaxKind.MultiLineCommentTrivia, text);
Syntax\SyntaxFactory.cs (3)
185/// <see cref="SyntaxKind.SingleLineCommentTrivia"/>, <see cref="SyntaxKind.MultiLineCommentTrivia"/>, 203case SyntaxKind.MultiLineCommentTrivia: 2417if (trivia.ContainsDiagnostics && trivia.Kind() == SyntaxKind.MultiLineCommentTrivia)
Syntax\SyntaxKindFacts.cs (1)
260case SyntaxKind.MultiLineCommentTrivia:
Syntax\SyntaxNormalizer.cs (2)
1200case SyntaxKind.MultiLineCommentTrivia: 1212case SyntaxKind.MultiLineCommentTrivia:
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Analyzers\CSharp\Analyzers\FileHeaders\CSharpFileHeaderHelper.cs (1)
32else if (commentTrivia.IsKind(SyntaxKind.MultiLineCommentTrivia))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (4)
25=> trivia.Kind() is SyntaxKind.MultiLineCommentTrivia or SyntaxKind.SingleLineCommentTrivia; 40=> trivia.Kind() == SyntaxKind.MultiLineCommentTrivia; 47if (trivia.Kind() != SyntaxKind.MultiLineCommentTrivia) 75else if (trivia.Kind() == SyntaxKind.MultiLineCommentTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaListExtensions.cs (1)
38.Where(t => t is (kind: SyntaxKind.SingleLineCommentTrivia or SyntaxKind.MultiLineCommentTrivia or SyntaxKind.WhitespaceTrivia))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
210if (trivia.Kind() == SyntaxKind.MultiLineCommentTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
31public int? MultiLineCommentTrivia => (int)SyntaxKind.MultiLineCommentTrivia;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (2)
95if (t1.Kind() == SyntaxKind.MultiLineCommentTrivia) 100return SyntaxTrivia(SyntaxKind.MultiLineCommentTrivia, text + MultiLineCommentTerminator);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
BlockCommentEditing\BlockCommentEditingCommandHandler.cs (1)
285var isBlockComment = trivia.Kind() is SyntaxKind.MultiLineCommentTrivia or SyntaxKind.MultiLineDocumentationCommentTrivia;
CommentSelection\CSharpToggleBlockCommentCommandHandler.cs (1)
47.Where(trivia => trivia.Kind() is SyntaxKind.MultiLineCommentTrivia or SyntaxKind.MultiLineDocumentationCommentTrivia)
Microsoft.CodeAnalysis.CSharp.Features (7)
AddFileBanner\CSharpAddFileBannerCodeRefactoringProvider.cs (1)
30case SyntaxKind.MultiLineCommentTrivia:
BraceMatching\BlockCommentBraceMatcher.cs (1)
47if (trivia.Kind() is SyntaxKind.MultiLineCommentTrivia &&
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
200case SyntaxKind.MultiLineCommentTrivia:
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
71SyntaxKind.MultiLineCommentTrivia or
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (1)
219return trivia.Kind() is SyntaxKind.MultiLineCommentTrivia or SyntaxKind.SingleLineCommentTrivia;
src\Analyzers\CSharp\Analyzers\FileHeaders\CSharpFileHeaderHelper.cs (1)
32else if (commentTrivia.IsKind(SyntaxKind.MultiLineCommentTrivia))
Structure\CSharpBlockStructureProvider.cs (1)
65builder.Add((int)SyntaxKind.MultiLineCommentTrivia, [new MultilineCommentBlockStructureProvider()]);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\SuppressionTests.cs (1)
1106foreach (var trivia in context.Node.DescendantTrivia().Where(t => t.Kind() is SyntaxKind.SingleLineCommentTrivia or SyntaxKind.MultiLineCommentTrivia))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (22)
LexicalAndXml\LexicalTests.cs (11)
194Assert.Equal(SyntaxKind.MultiLineCommentTrivia, trivia[0].Kind()); 216Assert.Equal(SyntaxKind.MultiLineCommentTrivia, trivia[0].Kind()); 256Assert.Equal(SyntaxKind.MultiLineCommentTrivia, trivia[0].Kind()); 278Assert.Equal(SyntaxKind.MultiLineCommentTrivia, trivia[0].Kind()); 302Assert.Equal(SyntaxKind.MultiLineCommentTrivia, trivia[0].Kind()); 326Assert.Equal(SyntaxKind.MultiLineCommentTrivia, trivia[0].Kind()); 348Assert.Equal(SyntaxKind.MultiLineCommentTrivia, trivia[0].Kind()); 370Assert.Equal(SyntaxKind.MultiLineCommentTrivia, trivia[0].Kind()); 392Assert.Equal(SyntaxKind.MultiLineCommentTrivia, trivia[0].Kind()); 412Assert.Equal(SyntaxKind.MultiLineCommentTrivia, trivia[0].Kind()); 440Assert.Equal(SyntaxKind.MultiLineCommentTrivia, trivia[0].Kind());
LexicalAndXml\SyntaxTokenParserTests.cs (4)
297(SyntaxKind.MultiLineCommentTrivia, "/* test */"), 330(SyntaxKind.MultiLineCommentTrivia, "/* test */"), 375(SyntaxKind.MultiLineCommentTrivia, "/* test */"), 398(SyntaxKind.MultiLineCommentTrivia, "/* test */"),
LexicalAndXml\XmlDocCommentTests.cs (1)
134Assert.Equal(SyntaxKind.MultiLineCommentTrivia, leading[0].Kind());
Syntax\SyntaxNodeTests.cs (2)
2395Assert.Equal(SyntaxKind.MultiLineCommentTrivia, comment1.Kind()); 2417Assert.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)
210case SyntaxKind.MultiLineCommentTrivia:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (4)
25=> trivia.Kind() is SyntaxKind.MultiLineCommentTrivia or SyntaxKind.SingleLineCommentTrivia; 40=> trivia.Kind() == SyntaxKind.MultiLineCommentTrivia; 47if (trivia.Kind() != SyntaxKind.MultiLineCommentTrivia) 75else if (trivia.Kind() == SyntaxKind.MultiLineCommentTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaListExtensions.cs (1)
38.Where(t => t is (kind: SyntaxKind.SingleLineCommentTrivia or SyntaxKind.MultiLineCommentTrivia or SyntaxKind.WhitespaceTrivia))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
210if (trivia.Kind() == SyntaxKind.MultiLineCommentTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
31public int? MultiLineCommentTrivia => (int)SyntaxKind.MultiLineCommentTrivia;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (2)
95if (t1.Kind() == SyntaxKind.MultiLineCommentTrivia) 100return SyntaxTrivia(SyntaxKind.MultiLineCommentTrivia, text + MultiLineCommentTerminator);
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));