21 references to EndOfLine
Microsoft.AspNetCore.App.CodeFixes (1)
Authorization\AddAuthorizationBuilderFixer.cs (1)
122SyntaxFactory.EndOfLine(Environment.NewLine),
Microsoft.CodeAnalysis.CSharp (2)
Syntax\SyntaxFactory.cs (1)
672.WithTrailingTrivia(EndOfLine(""));
Syntax\SyntaxNormalizer.cs (1)
41_eolTrivia = useElasticTrivia ? SyntaxFactory.ElasticEndOfLine(eolWhitespace) : SyntaxFactory.EndOfLine(eolWhitespace);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (5)
277triviaBeforeSplit = triviaBeforeSplit.Append(EndOfLine(lineEnding)); 385.WithAppendedTrailingTrivia(newLinePlacement.HasFlag(NewLinePlacement.BeforeOpenBraceInTypes) ? EndOfLine(lineEnding) : Space); 390openBraceToken = openBraceToken.WithAppendedTrailingTrivia(EndOfLine(lineEnding)); 403closeBraceToken = closeBraceToken.WithAppendedTrailingTrivia(EndOfLine(lineEnding)); 411adjustedFileScopedNamespace = fileScopedNamespace.WithAppendedTrailingTrivia(EndOfLine(lineEnding));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
50=> SyntaxFactory.EndOfLine(text);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
864return EndOfLine(newLineString);
Microsoft.CodeAnalysis.CSharp.Features (8)
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
593[EndOfLine(Environment.NewLine)]),
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (5)
277triviaBeforeSplit = triviaBeforeSplit.Append(EndOfLine(lineEnding)); 385.WithAppendedTrailingTrivia(newLinePlacement.HasFlag(NewLinePlacement.BeforeOpenBraceInTypes) ? EndOfLine(lineEnding) : Space); 390openBraceToken = openBraceToken.WithAppendedTrailingTrivia(EndOfLine(lineEnding)); 403closeBraceToken = closeBraceToken.WithAppendedTrailingTrivia(EndOfLine(lineEnding)); 411adjustedFileScopedNamespace = fileScopedNamespace.WithAppendedTrailingTrivia(EndOfLine(lineEnding));
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
849? EndOfLine(formattingOptions.NewLine) 850: EndOfLine(text.ToString(lineBreakSpan));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
89return docTrivia.WithTrailingTrivia(SyntaxFactory.EndOfLine(endOfLineString));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
50=> SyntaxFactory.EndOfLine(text);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.CSharp.cs (1)
1404var eol = SyntaxFactory.EndOfLine(@"");