7 instantiations of ChainedFormattingRules
Microsoft.CodeAnalysis.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (1)
80lastRulesAndOptions = Tuple.Create(formattingRules, options, new ChainedFormattingRules(formattingRules, options));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (5)
149var chainedFormattingRules = new ChainedFormattingRules(formattingRules, options); 161var chainedFormattingRules = new ChainedFormattingRules(formattingRules, options); 173var chainedFormattingRules = new ChainedFormattingRules(formattingRules, options); 185var chainedFormattingRules = new ChainedFormattingRules(formattingRules, options); 194var chainedFormattingRules = new ChainedFormattingRules(formattingRules, options);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
64new ChainedFormattingRules(this.Rules, options.FormattingOptions),
38 references to ChainedFormattingRules
Microsoft.CodeAnalysis.Workspaces (38)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
22private readonly ChainedFormattingRules _formattingRules; 28ChainedFormattingRules formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
74ChainedFormattingRules formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (2)
27private readonly ChainedFormattingRules _formattingRules; 32ChainedFormattingRules formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (5)
38private readonly ChainedFormattingRules _formattingRules; 58private static Tuple<ImmutableArray<AbstractFormattingRule>, SyntaxFormattingOptions, ChainedFormattingRules>? s_lastRulesAndOptions; 75private static ChainedFormattingRules GetChainedFormattingRules(ImmutableArray<AbstractFormattingRule> formattingRules, SyntaxFormattingOptions options) 90ChainedFormattingRules formattingRules, 314static void TriviaFormatter(int tokenPairIndex, FormattingContext ctx, ChainedFormattingRules formattingRules, CancellationToken ct)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
21private sealed class OperationApplier(FormattingContext context, ChainedFormattingRules formattingRules)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.AbstractComplexTrivia.cs (4)
41protected abstract TriviaDataWithList Format(FormattingContext context, ChainedFormattingRules formattingRules, int lines, int spaces, CancellationToken cancellationToken); 54public override TriviaData WithSpace(int space, FormattingContext context, ChainedFormattingRules formattingRules) 74int line, int indentation, FormattingContext context, ChainedFormattingRules formattingRules, CancellationToken cancellationToken) 116int indentation, FormattingContext context, ChainedFormattingRules formattingRules, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.FormattedWhitespace.cs (4)
56public override TriviaData WithSpace(int space, FormattingContext context, ChainedFormattingRules formattingRules) 59public override TriviaData WithLine(int line, int indentation, FormattingContext context, ChainedFormattingRules formattingRules, CancellationToken cancellationToken) 62public override TriviaData WithIndentation(int indentation, FormattingContext context, ChainedFormattingRules formattingRules, CancellationToken cancellationToken) 66FormattingContext context, ChainedFormattingRules formattingRules, Action<int, TokenStream, TriviaData> formattingResultApplier, CancellationToken cancellationToken, int tokenPairIndex = TokenPairIndexNotNeeded)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.ModifiedWhitespace.cs (4)
33public override TriviaData WithSpace(int space, FormattingContext context, ChainedFormattingRules formattingRules) 48public override TriviaData WithLine(int line, int indentation, FormattingContext context, ChainedFormattingRules formattingRules, CancellationToken cancellationToken) 64int indentation, FormattingContext context, ChainedFormattingRules formattingRules, CancellationToken cancellationToken) 81ChainedFormattingRules formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.Whitespace.cs (4)
47public override TriviaData WithSpace(int space, FormattingContext context, ChainedFormattingRules formattingRules) 55public override TriviaData WithLine(int line, int indentation, FormattingContext context, ChainedFormattingRules formattingRules, CancellationToken cancellationToken) 68int indentation, FormattingContext context, ChainedFormattingRules formattingRules, CancellationToken cancellationToken) 80ChainedFormattingRules formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TriviaData.cs (4)
39public abstract TriviaData WithSpace(int space, FormattingContext context, ChainedFormattingRules formattingRules); 41public abstract TriviaData WithLine(int line, int indentation, FormattingContext context, ChainedFormattingRules formattingRules, CancellationToken cancellationToken); 43public abstract TriviaData WithIndentation(int indentation, FormattingContext context, ChainedFormattingRules formattingRules, CancellationToken cancellationToken); 47ChainedFormattingRules formattingRules,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (5)
149var chainedFormattingRules = new ChainedFormattingRules(formattingRules, options); 161var chainedFormattingRules = new ChainedFormattingRules(formattingRules, options); 173var chainedFormattingRules = new ChainedFormattingRules(formattingRules, options); 185var chainedFormattingRules = new ChainedFormattingRules(formattingRules, options); 194var chainedFormattingRules = new ChainedFormattingRules(formattingRules, options);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (2)
49protected readonly ChainedFormattingRules FormattingRules; 65ChainedFormattingRules formattingRules,