10 references to IsEndOfLineTrivia
Microsoft.CodeAnalysis.CodeStyle (10)
src\Analyzers\Core\Analyzers\NewLines\ConsecutiveStatementPlacement\AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (2)
80if (!_syntaxFacts.IsEndOfLineTrivia(endToken.TrailingTrivia.Last())) 97if (_syntaxFacts.IsEndOfLineTrivia(trivia))
src\Analyzers\Core\Analyzers\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesDiagnosticAnalyzer.cs (1)
134return _syntaxFacts.IsEndOfLineTrivia(trivia);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Helpers\RemoveUnnecessaryImports\RemoveUnnecessaryImportsHelpers.cs (4)
17var trimmedLeadingTrivia = token.LeadingTrivia.SkipWhile(syntaxFacts.IsEndOfLineTrivia).ToList(); 21syntaxFacts.IsEndOfLineTrivia(trimmedLeadingTrivia[^3]) && 22syntaxFacts.IsEndOfLineTrivia(trimmedLeadingTrivia[^2]) && 23syntaxFacts.IsEndOfLineTrivia(trimmedLeadingTrivia[^1]))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
35var endOfLine = Matcher.Single<SyntaxTrivia>(this.SyntaxFacts.IsEndOfLineTrivia, "\\n");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (2)
135else if (syntaxFacts.IsEndOfLineTrivia(trivia)) 390=> syntaxFacts.IsWhitespaceTrivia(trivia) || syntaxFacts.IsEndOfLineTrivia(trivia);