9 references to IsSingleOrMultiLineComment
Microsoft.CodeAnalysis.CSharp.CodeStyle (9)
src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
88
if (thisOrBaseKeyword.LeadingTrivia.Any(t => !t.IsWhitespaceOrEndOfLine() && !t.
IsSingleOrMultiLineComment
()))
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
680
if (initializer.OpenBraceToken.GetPreviousToken().TrailingTrivia.Any(static x => x.
IsSingleOrMultiLineComment
()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArrowExpressionClauseSyntaxExtensions.cs (2)
43
if (arrowExpression.ArrowToken.TrailingTrivia.Any(t => t.
IsSingleOrMultiLineComment
()))
46
if (arrowExpression.ArrowToken.LeadingTrivia.Any(t => t.
IsSingleOrMultiLineComment
()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (1)
195
expression = firstStatement.GetLeadingTrivia().Any(t => t.IsDirective || t.
IsSingleOrMultiLineComment
())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
881
if (expression.GetLeadingTrivia().Any(t => t.
IsSingleOrMultiLineComment
()))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (3)
28
=> trivia.
IsSingleOrMultiLineComment
() || trivia.IsShebangDirective();
31
=> trivia.IsWhitespace() || trivia.
IsSingleOrMultiLineComment
();
175
if (t.
IsSingleOrMultiLineComment
())