4 instantiations of IndentBlockOperation
Microsoft.CodeAnalysis.Workspaces (4)
BaseIndentationFormattingRule.cs (1)
39
list.Add(new
IndentBlockOperation
(_token1, _token2, _span, _baseIndentation, IndentBlockOption.AbsolutePosition));
FormattingContext.InitialContextFinder.cs (1)
109
operations.Add(new
IndentBlockOperation
(
FormattingOperations.cs (2)
64
=>
new
(startToken, endToken, textSpan, indentationDelta, option);
80
=>
new
(baseToken, startToken, endToken, textSpan, indentationDelta, option);
119 references to IndentBlockOperation
Microsoft.CodeAnalysis.CSharp.Features (3)
ChangeSignature\ChangeSignatureFormattingRule.cs (2)
26
public override void AddIndentBlockOperations(List<
IndentBlockOperation
> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
36
private static void AddChangeSignatureIndentOperation(List<
IndentBlockOperation
> list, SyntaxNode node)
MultiLineConditionalExpressionFormattingRule.cs (1)
58
List<
IndentBlockOperation
> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
Microsoft.CodeAnalysis.CSharp.Workspaces (26)
BaseFormattingRule.cs (7)
17
List<
IndentBlockOperation
> list,
32
List<
IndentBlockOperation
> list,
57
List<
IndentBlockOperation
> list,
71
List<
IndentBlockOperation
> list,
85
List<
IndentBlockOperation
> list,
100
List<
IndentBlockOperation
> list,
110
List<
IndentBlockOperation
> list,
CSharpIndentationService.cs (4)
119
public override void AddIndentBlockOperations(List<
IndentBlockOperation
> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
175
private static void ReplaceCaseIndentationRules(List<
IndentBlockOperation
> list, SyntaxNode node)
187
var
operation = list[i];
196
private static void AddIndentBlockOperations(List<
IndentBlockOperation
> list, SyntaxNode node)
DefaultOperationProvider.cs (1)
30
public override void AddIndentBlockOperations(List<
IndentBlockOperation
> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
IndentBlockFormattingRule.cs (11)
46
public override void AddIndentBlockOperations(List<
IndentBlockOperation
> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
65
private static void AddTypeParameterConstraintClauseOperation(List<
IndentBlockOperation
> list, SyntaxNode node)
74
private void AddSwitchIndentationOperation(List<
IndentBlockOperation
> list, SyntaxNode node)
134
private void AddLabelIndentationOperation(List<
IndentBlockOperation
> list, SyntaxNode node)
150
private static void AddAlignmentBlockOperation(List<
IndentBlockOperation
> list, SyntaxNode node)
199
private static void SetAlignmentBlockOperation(List<
IndentBlockOperation
> list, SyntaxNode baseNode, SyntaxNode body)
210
private void AddBlockIndentationOperation(List<
IndentBlockOperation
> list, SyntaxNode node)
247
private static void AddBracketIndentationOperation(List<
IndentBlockOperation
> list, SyntaxNode node)
265
private static void AddAlignmentBlockOperationRelativeToFirstTokenOnBaseTokenLine(List<
IndentBlockOperation
> list, (SyntaxToken openBrace, SyntaxToken closeBrace) bracePair)
271
private static void AddEmbeddedStatementsIndentationOperation(List<
IndentBlockOperation
> list, SyntaxNode node)
333
private static void AddEmbeddedStatementsIndentationOperation(List<
IndentBlockOperation
> list, StatementSyntax statement)
IndentUserSettingsFormattingRule.cs (1)
40
public override void AddIndentBlockOperations(List<
IndentBlockOperation
> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
QueryExpressionFormattingRule.cs (2)
51
private static void AddIndentBlockOperationsForFromClause(List<
IndentBlockOperation
> list, FromClauseSyntax fromClause)
81
public override void AddIndentBlockOperations(List<
IndentBlockOperation
> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
Microsoft.CodeAnalysis.Features (3)
GenerateEqualsAndGetHashCodeFromMembers\FormatLargeBinaryExpressionRule.cs (1)
47
List<
IndentBlockOperation
> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
MetadataAsSource\AbstractMetadataAsSourceService+CompatAbstractMetadataFormattingRule.cs (2)
37
public sealed override void AddIndentBlockOperations(List<
IndentBlockOperation
> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
88
public virtual void AddIndentBlockOperationsSlow(List<
IndentBlockOperation
> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
LineCommit\CommitFormatter.vb (1)
240
Dim operations = New List(Of
IndentBlockOperation
)()
Microsoft.CodeAnalysis.VisualBasic.Features (3)
ChangeSignature\ChangeSignatureFormattingRule.vb (2)
13
Public Overrides Sub AddIndentBlockOperationsSlow(list As List(Of
IndentBlockOperation
), node As SyntaxNode, ByRef nextOperation As NextIndentBlockOperationAction)
22
Private Shared Sub AddChangeSignatureIndentOperation(list As List(Of
IndentBlockOperation
), node As SyntaxNode)
MultiLineConditionalExpressionFormattingRule.vb (1)
52
list As List(Of
IndentBlockOperation
), node As SyntaxNode, ByRef nextOperation As NextIndentBlockOperationAction)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (15)
Formatting\DefaultOperationProvider.vb (1)
45
Public Overrides Sub AddIndentBlockOperationsSlow(operations As List(Of
IndentBlockOperation
), node As SyntaxNode, ByRef nextAction As NextIndentBlockOperationAction)
Formatting\Rules\BaseFormattingRule.vb (6)
15
Protected Shared Sub AddIndentBlockOperation(operations As List(Of
IndentBlockOperation
), startToken As SyntaxToken, endToken As SyntaxToken, Optional [option] As IndentBlockOption = IndentBlockOption.RelativePosition)
24
Protected Shared Sub AddIndentBlockOperation(operations As List(Of
IndentBlockOperation
),
34
Protected Shared Sub SetAlignmentBlockOperation(operations As List(Of
IndentBlockOperation
), baseToken As SyntaxToken, startToken As SyntaxToken, endToken As SyntaxToken, Optional [option] As IndentBlockOption = IndentBlockOption.RelativePosition)
38
Protected Shared Sub SetAlignmentBlockOperation(operations As List(Of
IndentBlockOperation
), baseToken As SyntaxToken, startToken As SyntaxToken, endToken As SyntaxToken, span As TextSpan, Optional [option] As IndentBlockOption = IndentBlockOption.RelativePosition)
42
Protected Shared Sub AddAbsolutePositionIndentBlockOperation(operations As List(Of
IndentBlockOperation
), startToken As SyntaxToken, endToken As SyntaxToken, indentation As Integer, Optional [option] As IndentBlockOption = IndentBlockOption.AbsolutePosition)
46
Protected Shared Sub AddAbsolutePositionIndentBlockOperation(operations As List(Of
IndentBlockOperation
), startToken As SyntaxToken, endToken As SyntaxToken, indentation As Integer, span As TextSpan, Optional [option] As IndentBlockOption = IndentBlockOption.AbsolutePosition)
Formatting\Rules\ElasticTriviaFormattingRule.vb (1)
21
Public Overrides Sub AddIndentBlockOperationsSlow(list As List(Of
IndentBlockOperation
), node As SyntaxNode, ByRef nextOperation As NextIndentBlockOperationAction)
Formatting\Rules\NodeBasedFormattingRule.vb (3)
49
Public Overrides Sub AddIndentBlockOperationsSlow(operations As List(Of
IndentBlockOperation
),
224
Private Shared Sub AddXmlEmptyElement(operations As List(Of
IndentBlockOperation
),
237
Private Shared Sub AddXmlElementIndentBlockOperation(operations As List(Of
IndentBlockOperation
),
SpecialFormattingOperation.vb (4)
56
Public Overrides Sub AddIndentBlockOperationsSlow(list As List(Of
IndentBlockOperation
), node As SyntaxNode, ByRef nextOperation As NextIndentBlockOperationAction)
82
Private Overloads Shared Sub AddIndentBlockOperations(Of T As SyntaxNode)(list As List(Of
IndentBlockOperation
), node As SyntaxNode, predicate As Func(Of T, Boolean), Optional indentationDelta As Integer = 0)
95
Private Overloads Shared Sub AddIndentBlockOperations(list As List(Of
IndentBlockOperation
), parameterOrArgumentList As SyntaxNode, indentationDelta As Integer)
112
Private Shared Sub AddArgumentListIndentBlockOperations(operations As List(Of
IndentBlockOperation
), node As SyntaxNode)
Microsoft.CodeAnalysis.Workspaces (67)
AbstractFormatEngine.cs (3)
146
List<
IndentBlockOperation
> indentBlockOperation;
149
indentBlockOperation = AddOperations<
IndentBlockOperation
>(nodeIterator, _formattingRules.AddIndentBlockOperations, cancellationToken);
400
private static SyntaxToken FindCorrectBaseTokenOfRelativeIndentBlockOperation(
IndentBlockOperation
operation, TokenStream tokenStream)
AbstractFormattingRule.cs (1)
35
public virtual void AddIndentBlockOperations(List<
IndentBlockOperation
> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
BaseIndentationFormattingRule.cs (6)
31
public override void AddIndentBlockOperations(List<
IndentBlockOperation
> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
54
private void AddNextIndentBlockOperations(List<
IndentBlockOperation
> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
65
private void AdjustIndentBlockOperation(List<
IndentBlockOperation
> list)
107
private bool Myself(
IndentBlockOperation
operation)
116
private
IndentBlockOperation
CloneAndAdjustFormattingOperation(
IndentBlockOperation
operation)
BottomUpBaseIndentationFinder.cs (14)
51
var
operation = GetIndentationDataFor(tree.GetRoot(cancellationToken), token, position);
110
IndentBlockOperation
startingOperation,
137
List<
IndentBlockOperation
> list,
145
var
operation = tuple.operation;
184
private (int indentation,
IndentBlockOperation
? operation) GetIndentationRuleOfCurrentPosition(
185
SyntaxNode root, List<
IndentBlockOperation
> list, int position)
189
foreach (
var
operation in operations)
213
private List<
IndentBlockOperation
> GetParentIndentBlockOperations(SyntaxToken token)
218
var list = new List<
IndentBlockOperation
>();
278
private
IndentBlockOperation
? GetIndentationDataFor(SyntaxNode root, SyntaxToken token, int position)
283
var list = new List<
IndentBlockOperation
>();
311
private static IEnumerable<
IndentBlockOperation
> GetIndentBlockOperationsFromSmallestSpan(SyntaxNode root, List<
IndentBlockOperation
> list, int position)
319
var
operation = list[i];
ChainedFormattingRules.cs (1)
58
public void AddIndentBlockOperations(List<
IndentBlockOperation
> list, SyntaxNode currentNode)
CommonFormattingHelpers.cs (1)
23
public static readonly Comparison<
IndentBlockOperation
> IndentBlockOperationComparer = (o1, o2) =>
CompatAbstractFormattingRule.cs (2)
32
public sealed override void AddIndentBlockOperations(List<
IndentBlockOperation
> list, SyntaxNode node, in NextIndentBlockOperationAction nextOperation)
83
public virtual void AddIndentBlockOperationsSlow(List<
IndentBlockOperation
> list, SyntaxNode node, ref NextIndentBlockOperationAction nextOperation)
FormattingContext.cs (8)
55
private List<
IndentBlockOperation
> _initialIndentBlockOperations = new();
98
var
initialOperation = indentationOperations[0];
122
List<
IndentBlockOperation
> operations,
147
var mergedList = new List<
IndentBlockOperation
>(count);
179
public void AddIndentBlockOperation(
IndentBlockOperation
operation)
193
Func<FormattingContext,
IndentBlockOperation
, SyntaxToken> effectiveBaseTokenGetter = operation.Option.IsOn(IndentBlockOption.RelativeToFirstTokenOnBaseTokenLine)
197
Func<FormattingContext,
IndentBlockOperation
, SyntaxToken, int> relativeIndentationDeltaGetter = static (self, operation, effectiveBaseToken) =>
455
public IEnumerable<
IndentBlockOperation
> GetAllRelativeIndentBlockOperations()
FormattingContext.IndentationData.cs (9)
55
private readonly Func<FormattingContext,
IndentBlockOperation
, SyntaxToken> _effectiveBaseTokenGetter;
56
private readonly Func<FormattingContext,
IndentBlockOperation
, SyntaxToken, int> _indentationDeltaGetter;
68
public RelativeIndentationData(FormattingContext formattingContext, int inseparableRegionSpanStart, TextSpan textSpan,
IndentBlockOperation
operation, Func<FormattingContext,
IndentBlockOperation
, SyntaxToken> effectiveBaseTokenGetter, Func<FormattingContext,
IndentBlockOperation
, SyntaxToken, int> indentationDeltaGetter, Func<FormattingContext, SyntaxToken, int> baseIndentationGetter)
82
private RelativeIndentationData(FormattingContext formattingContext, int inseparableRegionSpanStart, TextSpan textSpan,
IndentBlockOperation
operation, Func<FormattingContext,
IndentBlockOperation
, SyntaxToken> effectiveBaseTokenGetter, Func<FormattingContext,
IndentBlockOperation
, SyntaxToken, int> indentationDeltaGetter, Func<FormattingContext, SyntaxToken, int> baseIndentationGetter, int lazyIndentationDelta)
97
public
IndentBlockOperation
Operation { get; }
FormattingContext.InitialContextFinder.cs (5)
41
public (List<
IndentBlockOperation
> indentOperations, List<SuppressOperation>? suppressOperations) Do(SyntaxToken startToken, SyntaxToken endToken)
65
private List<
IndentBlockOperation
> GetInitialIndentBlockOperations(SyntaxToken startToken, SyntaxToken endToken)
72
var operations = new List<
IndentBlockOperation
>();
73
var list = new List<
IndentBlockOperation
>();
81
foreach (
var
element in list)
FormattingExtensions.cs (1)
358
this
IndentBlockOperation
operation, IHeaderFacts headerFacts, SyntaxNode root, SyntaxToken indentationAnchor)
FormattingOperations.cs (6)
54
public static
IndentBlockOperation
CreateIndentBlockOperation(SyntaxToken startToken, SyntaxToken endToken, int indentationDelta, IndentBlockOption option)
63
public static
IndentBlockOperation
CreateIndentBlockOperation(SyntaxToken startToken, SyntaxToken endToken, TextSpan textSpan, int indentationDelta, IndentBlockOption option)
69
public static
IndentBlockOperation
CreateRelativeIndentBlockOperation(SyntaxToken baseToken, SyntaxToken startToken, SyntaxToken endToken, int indentationDelta, IndentBlockOption option)
79
public static
IndentBlockOperation
CreateRelativeIndentBlockOperation(SyntaxToken baseToken, SyntaxToken startToken, SyntaxToken endToken, TextSpan textSpan, int indentationDelta, IndentBlockOption option)
171
internal static IEnumerable<
IndentBlockOperation
> GetIndentBlockOperations(IEnumerable<AbstractFormattingRule> formattingRules, SyntaxNode node, SyntaxFormattingOptions options)
175
var list = new List<
IndentBlockOperation
>();
IndentBlockOption.cs (5)
10
/// Options for <see cref="
IndentBlockOperation
"/>.
21
/// <see cref="
IndentBlockOperation
.IndentationDeltaOrPosition"/> will be interpreted as delta of its enclosing indentation
26
/// <see cref="
IndentBlockOperation
.IndentationDeltaOrPosition"/> will be interpreted as absolute position
39
/// Each <see cref="
IndentBlockOperation
"/> specifies one of the position options to indicate the primary
45
/// Increase the <see cref="
IndentBlockOperation
.IndentationDeltaOrPosition"/> if the block is part of a
NextIndentBlockOperationAction.cs (2)
17
private readonly List<
IndentBlockOperation
> _list;
23
List<
IndentBlockOperation
> list)
NodeOperations.cs (3)
17
public List<
IndentBlockOperation
> IndentBlockOperation { get; }
22
public NodeOperations(List<
IndentBlockOperation
> indentBlockOperation, List<SuppressOperation> suppressOperation, List<AnchorIndentationOperation> anchorIndentationOperations, List<AlignTokensOperation> alignmentOperation)
32
this.IndentBlockOperation = new List<
IndentBlockOperation
>();
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Venus\VisualBasicContainedLanguage.vb (1)
161
Public Overrides Sub AddIndentBlockOperationsSlow(list As List(Of
IndentBlockOperation
), node As SyntaxNode, ByRef nextOperation As NextIndentBlockOperationAction)