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