6 instantiations of AdjustSpacesOperation
Microsoft.CodeAnalysis.CodeStyle (5)
FormattingOperations.cs (5)
19
private static readonly AdjustSpacesOperation s_defaultOneSpaceIfOnSingleLine =
new
(1, AdjustSpacesOption.DefaultSpacesIfOnSingleLine);
20
private static readonly AdjustSpacesOperation s_forceOneSpaceIfOnSingleLine =
new
(1, AdjustSpacesOption.ForceSpacesIfOnSingleLine);
21
private static readonly AdjustSpacesOperation s_forceZeroSpaceIfOnSingleLine =
new
(0, AdjustSpacesOption.ForceSpacesIfOnSingleLine);
24
private static readonly AdjustSpacesOperation s_forceZeroLineUsingSpaceForce =
new
(1, AdjustSpacesOption.ForceSpaces);
141
return new
AdjustSpacesOperation
(space, option);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
ElasticTriviaFormattingRule.vb (1)
116
Return New
AdjustSpacesOperation
(1,
40 references to AdjustSpacesOperation
Microsoft.CodeAnalysis.CodeStyle (21)
AbstractFormatEngine.cs (1)
214
var
spaceOperation = _formattingRules.GetAdjustSpacesOperation(currentToken, nextToken);
AbstractFormatEngine.OperationApplier.cs (5)
32
public bool Apply(
AdjustSpacesOperation
operation, int pairIndex)
52
private bool ApplyDynamicSpacesOperation(
AdjustSpacesOperation
operation, int pairIndex)
84
private bool ApplyPreserveSpacesOperation(
AdjustSpacesOperation
operation, int pairIndex)
107
public bool ApplyForceSpacesOperation(
AdjustSpacesOperation
operation, int pairIndex)
122
private bool ApplySpaceIfSingleLine(
AdjustSpacesOperation
operation, int pairIndex)
AbstractFormattingRule.cs (1)
53
public virtual
AdjustSpacesOperation
? GetAdjustSpacesOperation(in SyntaxToken previousToken, in SyntaxToken currentToken, in NextGetAdjustSpacesOperation nextOperation)
AbstractTriviaFormatter.cs (1)
445
var
spaceOperation = this.FormattingRules.GetAdjustSpacesOperation(token1, token2);
AdjustSpacesOption.cs (1)
8
/// Options for <see cref="
AdjustSpacesOperation
"/>.
ChainedFormattingRules.cs (1)
76
public
AdjustSpacesOperation
? GetAdjustSpacesOperation(SyntaxToken previousToken, SyntaxToken currentToken)
CompatAbstractFormattingRule.cs (2)
58
public sealed override
AdjustSpacesOperation
? GetAdjustSpacesOperation(in SyntaxToken previousToken, in SyntaxToken currentToken, in NextGetAdjustSpacesOperation nextOperation)
101
public virtual
AdjustSpacesOperation
? GetAdjustSpacesOperationSlow(ref SyntaxToken previousToken, ref SyntaxToken currentToken, ref NextGetAdjustSpacesOperation nextOperation)
FormattingOperations.cs (6)
19
private static readonly
AdjustSpacesOperation
s_defaultOneSpaceIfOnSingleLine = new(1, AdjustSpacesOption.DefaultSpacesIfOnSingleLine);
20
private static readonly
AdjustSpacesOperation
s_forceOneSpaceIfOnSingleLine = new(1, AdjustSpacesOption.ForceSpacesIfOnSingleLine);
21
private static readonly
AdjustSpacesOperation
s_forceZeroSpaceIfOnSingleLine = new(0, AdjustSpacesOption.ForceSpacesIfOnSingleLine);
24
private static readonly
AdjustSpacesOperation
s_forceZeroLineUsingSpaceForce = new(1, AdjustSpacesOption.ForceSpaces);
122
public static
AdjustSpacesOperation
CreateAdjustSpacesOperation(int space, AdjustSpacesOption option)
204
internal static
AdjustSpacesOperation
? GetAdjustSpacesOperation(IEnumerable<AbstractFormattingRule> formattingRules, SyntaxToken previousToken, SyntaxToken currentToken, SyntaxFormattingOptions options)
NextGetAdjustSpacesOperation.cs (1)
27
public
AdjustSpacesOperation
? Invoke(in SyntaxToken previousToken, in SyntaxToken currentToken)
TokenPairWithOperations.cs (2)
16
public
AdjustSpacesOperation
? SpaceOperation { get; }
24
AdjustSpacesOperation
? spaceOperations,
Microsoft.CodeAnalysis.CSharp.CodeStyle (13)
BaseFormattingRule.cs (1)
158
protected static
AdjustSpacesOperation
CreateAdjustSpacesOperation(int space, AdjustSpacesOption option)
CSharpSmartTokenFormatter.cs (2)
155
public override
AdjustSpacesOperation
? GetAdjustSpacesOperation(in SyntaxToken previousToken, in SyntaxToken currentToken, in NextGetAdjustSpacesOperation nextOperation)
157
var
spaceOperation = base.GetAdjustSpacesOperation(in previousToken, in currentToken, in nextOperation);
DefaultOperationProvider.cs (1)
42
public override
AdjustSpacesOperation
GetAdjustSpacesOperation(in SyntaxToken previousToken, in SyntaxToken currentToken, in NextGetAdjustSpacesOperation nextOperation)
ElasticTriviaFormattingRule.cs (2)
258
public override
AdjustSpacesOperation
? GetAdjustSpacesOperation(in SyntaxToken previousToken, in SyntaxToken currentToken, in NextGetAdjustSpacesOperation nextOperation)
260
var
operation = nextOperation.Invoke(in previousToken, in currentToken);
EndOfFileTokenFormattingRule.cs (1)
25
public override
AdjustSpacesOperation
? GetAdjustSpacesOperation(in SyntaxToken previousToken, in SyntaxToken currentToken, in NextGetAdjustSpacesOperation nextOperation)
NewLineUserSettingFormattingRule.cs (2)
76
public override
AdjustSpacesOperation
? GetAdjustSpacesOperation(in SyntaxToken previousToken, in SyntaxToken currentToken, in NextGetAdjustSpacesOperation nextOperation)
80
var
operation = nextOperation.Invoke(in previousToken, in currentToken);
SpacingFormattingRule.cs (2)
45
public override
AdjustSpacesOperation
? GetAdjustSpacesOperation(in SyntaxToken previousToken, in SyntaxToken currentToken, in NextGetAdjustSpacesOperation nextOperation)
590
private static
AdjustSpacesOperation
AdjustSpacesOperationZeroOrOne(bool option, AdjustSpacesOption explicitOption = AdjustSpacesOption.ForceSpacesIfOnSingleLine)
StructuredTriviaFormattingRule.cs (1)
24
public override
AdjustSpacesOperation
? GetAdjustSpacesOperation(in SyntaxToken previousToken, in SyntaxToken currentToken, in NextGetAdjustSpacesOperation nextOperation)
TokenBasedFormattingRule.cs (1)
254
public override
AdjustSpacesOperation
? GetAdjustSpacesOperation(in SyntaxToken previousToken, in SyntaxToken currentToken, in NextGetAdjustSpacesOperation nextOperation)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (5)
AdjustSpaceFormattingRule.vb (1)
16
Public Overrides Function GetAdjustSpacesOperationSlow(ByRef previousToken As SyntaxToken, ByRef currentToken As SyntaxToken, ByRef nextFunc As NextGetAdjustSpacesOperation) As
AdjustSpacesOperation
BaseFormattingRule.vb (1)
103
Protected Shared Function CreateAdjustSpacesOperation(space As Integer, [option] As AdjustSpacesOption) As
AdjustSpacesOperation
DefaultOperationProvider.vb (1)
208
Public Overrides Function GetAdjustSpacesOperationSlow(ByRef previousToken As SyntaxToken, ByRef currentToken As SyntaxToken, ByRef nextOperation As NextGetAdjustSpacesOperation) As
AdjustSpacesOperation
ElasticTriviaFormattingRule.vb (1)
87
Public Overrides Function GetAdjustSpacesOperationSlow(ByRef previousToken As SyntaxToken, ByRef currentToken As SyntaxToken, ByRef nextOperation As NextGetAdjustSpacesOperation) As
AdjustSpacesOperation
StructuredTriviaFormattingRule.vb (1)
24
Public Overrides Function GetAdjustSpacesOperationSlow(ByRef previousToken As SyntaxToken, ByRef currentToken As SyntaxToken, ByRef nextOperation As NextGetAdjustSpacesOperation) As
AdjustSpacesOperation
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
SpecialFormattingOperation.vb (1)
44
Public Overrides Function GetAdjustSpacesOperationSlow(ByRef previousToken As SyntaxToken, ByRef currentToken As SyntaxToken, ByRef nextOperation As NextGetAdjustSpacesOperation) As
AdjustSpacesOperation