14 references to GetIndentationString
Microsoft.CodeAnalysis.Razor.Workspaces (11)
CodeActions\Razor\GenerateEventHandlerCodeActionResolver.cs (2)
151
var eventHandlerIndentation = FormattingUtilities.
GetIndentationString
(baseIndentation, options.InsertSpaces, options.TabSize);
152
var eventHandlerBodyIndentation = FormattingUtilities.
GetIndentationString
(baseIndentation + options.TabSize, options.InsertSpaces, options.TabSize);
CodeActions\Razor\WrapAttributesCodeActionResolver.cs (1)
29
var indentationString = FormattingUtilities.
GetIndentationString
(actionParams.IndentSize, options.InsertSpaces, options.TabSize);
DocumentMapping\RazorEditService_Methods.cs (1)
185
builder.Append(FormattingUtilities.
GetIndentationString
(Math.Max(0, newIndentation), options.InsertSpaces, options.TabSize));
Formatting\FormattingContext.cs (1)
181
var indentationString = FormattingUtilities.
GetIndentationString
(indentation, Options.InsertSpaces, Options.TabSize);
Formatting\FormattingUtilities.cs (1)
454
return
GetIndentationString
(indentationWidth, context.Options.InsertSpaces, context.Options.TabSize);
Formatting\Passes\CSharpOnTypeFormattingPass.cs (1)
844
var effectiveDesiredIndentation = FormattingUtilities.
GetIndentationString
(indentation, context.Options.InsertSpaces, context.Options.TabSize);
Formatting\Passes\HtmlOnTypeFormattingPass.cs (1)
185
var existingIndentationString = FormattingUtilities.
GetIndentationString
(indentations[i].ExistingIndentationSize, context.Options.InsertSpaces, context.Options.TabSize);
Formatting\Passes\RazorFormattingPass.cs (3)
274
? context.NewLineString + FormattingUtilities.
GetIndentationString
(
359
var newText = context.NewLineString + FormattingUtilities.
GetIndentationString
(
433
var newText = context.NewLineString + FormattingUtilities.
GetIndentationString
(
Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests (3)
Formatting\FormattingUtilitiesTest.cs (3)
63
var actual = FormattingUtilities.
GetIndentationString
(indentation, insertSpaces, tabSize);
75
var result1 = FormattingUtilities.
GetIndentationString
(indentation, insertSpaces, tabSize);
76
var result2 = FormattingUtilities.
GetIndentationString
(indentation, insertSpaces, tabSize);