20 references to NewLine
Microsoft.CodeAnalysis.CSharp.Features (12)
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);
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (2)
387startDelimiter + formattingOptions.NewLine, 392formattingOptions.NewLine + endDelimiter,
ConvertToRawString\ConvertRegularStringToRawStringCodeRefactoringProvider.cs (2)
215builder.Append(formattingOptions.NewLine); 237builder.Append(formattingOptions.NewLine);
Snippets\CSharpSnippetHelpers.cs (1)
35var newLine = indentationOptions.FormattingOptions.NewLine;
SplitStringLiteral\StringSplitter.cs (1)
30indentationOptions.FormattingOptions.NewLine)]);
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
245var updatedRoot = ReplaceWithBlockScopedNamespace(parsedDocument, fileScopedNamespace, options.NewLine, options.NewLines, annotation);
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (1)
52var endOfLineTrivia = ElasticEndOfLine(options.NewLine);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
914? EndOfLine(formattingOptions.NewLine)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
190nodesAndTokens.Add(firstArgument.WithPrependedLeadingTrivia(EndOfLine(formattingOptions.NewLine)));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (2)
55_newLine = SyntaxFactory.EndOfLine(Context.Options.NewLine); 232Options.NewLine);
Microsoft.CodeAnalysis.Features (4)
AddFileBanner\AbstractAddFileBannerNewDocumentFormattingProvider.cs (1)
30var newLineTrivia = SyntaxGeneratorInternal.EndOfLine(options.FormattingOptions.NewLine);
Wrapping\AbstractCodeActionComputer.cs (2)
77NewLineTrivia = new SyntaxTriviaList(generatorInternal.EndOfLine(options.FormattingOptions.NewLine)); 89var newLine = Options.FormattingOptions.NewLine;
Wrapping\SyntaxWrappingOptions.cs (1)
25public string NewLine => FormattingOptions.NewLine;
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
799var newLine = Options.NewLine;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IIndentationService.cs (1)
50newToken = newToken.WithLeadingTrivia(newToken.LeadingTrivia.Add(syntaxGenerator.EndOfLine(options.FormattingOptions.NewLine)));