18 references to IndentationOperations
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (18)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (5)
574
LineColumnRule.
IndentationOperations
.Absolute => Math.Max(0, rule.Indentation),
575
LineColumnRule.
IndentationOperations
.Default => this.Context.GetBaseIndentation(trivia2.RawKind == 0 ? this.EndPosition : trivia2.SpanStart),
576
LineColumnRule.
IndentationOperations
.Given => (trivia2.RawKind == 0) ? this.Spaces : Math.Max(0, _indentation),
577
LineColumnRule.
IndentationOperations
.Follow => Math.Max(0, lineColumnBeforeTrivia1.Column),
578
LineColumnRule.
IndentationOperations
.Preserve => existingWhitespaceBetween.Spaces,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\LineColumnRule.cs (13)
10
LineColumnRule.
IndentationOperations
indentationOperation,
17
public readonly
IndentationOperations
IndentationOperation = indentationOperation;
23
public LineColumnRule With(int? lines = null, int? spaces = null, int? indentation = null, LineOperations? lineOperation = null, SpaceOperations? spaceOperation = null,
IndentationOperations
? indentationOperation = null)
36
IndentationOperations
.Preserve,
45
IndentationOperations
.Given,
54
IndentationOperations
.Default,
63
IndentationOperations
.Given,
72
IndentationOperations
.Absolute,
81
IndentationOperations
.Follow,
90
IndentationOperations
.Preserve,
99
IndentationOperations
.Default,
108
IndentationOperations
.Default,
117
IndentationOperations
.Follow,