35 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 (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
55_newLine = SyntaxFactory.EndOfLine(Context.Options.NewLine);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (9)
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)
845? EndOfLine(formattingOptions.NewLine) 846: EndOfLine(text.ToString(lineBreakSpan));
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
191nodesAndTokens.Add(firstArgument.WithPrependedLeadingTrivia(EndOfLine(formattingOptions.NewLine)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
47=> SyntaxFactory.EndOfLine(text);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
861return EndOfLine(newLineString);
Microsoft.CodeAnalysis.CSharp.Features (15)
BraceCompletion\AbstractCurlyBraceOrBracketCompletionService.cs (1)
119var annotatedNewline = SyntaxFactory.EndOfLine(options.FormattingOptions.NewLine).WithAdditionalAnnotations(s_closingBraceNewlineAnnotation);
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
164var newLine = SyntaxFactory.EndOfLine(options.NewLine);
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
592[EndOfLine(Environment.NewLine)]),
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider_DocumentationComments.cs (1)
137content[^1] = content[^1].WithTrailingTrivia(EndOfLine(""));
ExtractMethod\CSharpMethodExtractor.cs (2)
191methodDefinition = methodDefinition.WithPrependedLeadingTrivia(SyntaxFactory.EndOfLine(newLine)); 196methodDefinition = methodDefinition.WithPrependedLeadingTrivia(SyntaxFactory.EndOfLine(newLine));
SplitStringLiteral\StringSplitter.cs (1)
29[SyntaxFactory.EndOfLine(
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)
845? EndOfLine(formattingOptions.NewLine) 846: EndOfLine(text.ToString(lineBreakSpan));
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
191nodesAndTokens.Add(firstArgument.WithPrependedLeadingTrivia(EndOfLine(formattingOptions.NewLine)));
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
85return docTrivia.WithTrailingTrivia(SyntaxFactory.EndOfLine(endOfLineString));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
55_newLine = SyntaxFactory.EndOfLine(Context.Options.NewLine);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
47=> SyntaxFactory.EndOfLine(text);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.CSharp.cs (1)
1214var eol = SyntaxFactory.EndOfLine(@"");
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
55_newLine = SyntaxFactory.EndOfLine(Context.Options.NewLine);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
47=> SyntaxFactory.EndOfLine(text);