12 references to IsEndOfLineTrivia
Microsoft.CodeAnalysis.Workspaces (12)
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);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (1)
137
else if (syntaxFacts.
IsEndOfLineTrivia
(trivia))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (4)
36
var endOfLine = root.DescendantTrivia().FirstOrNull((trivia, syntaxFacts) => syntaxFacts.
IsEndOfLineTrivia
(trivia), syntaxFacts) ?? syntaxFacts.ElasticCarriageReturnLineFeed;
52
if (!trailingTrivia.Any() || !syntaxFacts.
IsEndOfLineTrivia
(trailingTrivia[^1]))
66
var originalFirstUsingLineEnding = originalFirstUsingTrailingTrivia.Any() && syntaxFacts.
IsEndOfLineTrivia
(originalFirstUsingTrailingTrivia[^1])
89
if (!trailingTrivia.Any() || !syntaxFacts.
IsEndOfLineTrivia
(trailingTrivia[^1]))