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