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