9 references to IsSingleOrMultiLineComment
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1797
if (!parameter.Identifier.TrailingTrivia.Any(t => t.
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
())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
55
if (!trivia.
IsSingleOrMultiLineComment
() && !trivia.IsDocComment())