2 implementations of IsRegularComment
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CSharpSyntaxFacts.cs (1)
1203public bool IsRegularComment(SyntaxTrivia trivia)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
VisualBasicSyntaxFacts.vb (1)
1446Public Function IsRegularComment(trivia As SyntaxTrivia) As Boolean Implements ISyntaxFacts.IsRegularComment
10 references to IsRegularComment
Microsoft.CodeAnalysis.Features (7)
AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
133if (syntaxFacts.IsRegularComment(trivia))
AbstractUseNullPropagationCodeFixProvider.cs (2)
186if (newWhenTrueStatement.GetLeadingTrivia().Any(syntaxFacts.IsRegularComment)) 207if (!newWhenTrueStatement.GetTrailingTrivia().Any(syntaxFacts.IsRegularComment) && !isElseIf)
EmbeddedLanguages\EmbeddedLanguageDetector.cs (1)
119if (syntaxFacts.IsRegularComment(trivia))
J\s\src\Analyzers\Core\Analyzers\UseConditionalExpression\UseConditionalExpressionHelpers.cs\UseConditionalExpressionHelpers.cs (1)
72if (syntaxFacts.IsRegularComment(trivia))
ReplaceMethodWithProperty\AbstractReplaceMethodWithPropertyService.cs (1)
81if (trailingTrivia.Any(syntaxFacts.IsRegularComment))
SpellCheck\AbstractSpellCheckSpanService.cs (1)
140if (_syntaxFacts.IsRegularComment(trivia))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
VisualBasicSyntaxFacts.vb (1)
1446Public Function IsRegularComment(trivia As SyntaxTrivia) As Boolean Implements ISyntaxFacts.IsRegularComment
Microsoft.CodeAnalysis.Workspaces (2)
ISyntaxFactsExtensions.cs (1)
285=> syntaxFacts.IsRegularComment(trivia) || syntaxFacts.IsDocumentationComment(trivia);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
242syntaxTree, t => syntaxFacts.IsRegularComment(t) || syntaxFacts.IsDocumentationComment(t), cancellationToken);