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