12 references to NewLineString
Microsoft.CodeAnalysis.Razor.Workspaces (12)
Formatting\CSharpFormatter.cs (3)
256var markerString = $"{context.NewLineString}{marker}{context.NewLineString}"; 276var position = projectedDocumentIndex + context.NewLineString.Length;
Formatting\FormattingUtilities.cs (1)
383formattingChanges.Add(new TextChange(new(originalLine.EndIncludingLineBreak, 0), context.NewLineString));
Formatting\Passes\CSharpOnTypeFormattingPass.cs (2)
410var replacement = PrependLines(context.GetIndentationLevelString(contentIndentLevel), context.NewLineString, newLineCount); 532var replacement = context.NewLineString + context.GetIndentationLevelString(contentIndentLevel);
Formatting\Passes\RazorFormattingPass.cs (6)
274? context.NewLineString + FormattingUtilities.GetIndentationString( 359var newText = context.NewLineString + FormattingUtilities.GetIndentationString( 417var newText = context.NewLineString + additionalIndentation; 433var newText = context.NewLineString + FormattingUtilities.GetIndentationString( 448changes.Add(new TextChange(source.Text.GetTextSpan(codeRange.End, start), context.NewLineString + additionalIndentation)); 458changes.Add(new TextChange(source.Text.GetTextSpan(closeBraceRange.End, closeBraceRange.End), context.NewLineString));