17 instantiations of IndentationOptions
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Formatting\Indentation\CSharpFormatterTestsBase.cs (1)
89var options = new IndentationOptions(
Formatting\Indentation\SmartIndenterEnterOnTokenTests.cs (2)
1324var options = new IndentationOptions( 1365var options = new IndentationOptions(new CSharpSyntaxFormattingOptions() { LineFormatting = new() { UseTabs = useTabs } })
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (1)
3124var options = new IndentationOptions(
Microsoft.CodeAnalysis.CSharp.Features (6)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
400var indentationOptions = new IndentationOptions(formattingOptions);
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (1)
190var indentationOptions = new IndentationOptions(formattingOptions);
ConvertToRawString\ConvertRegularStringToRawStringCodeRefactoringProvider.cs (1)
150var indentationOptions = new IndentationOptions(formattingOptions);
Snippets\CSharpSnippetHelpers.cs (1)
34var indentationOptions = new IndentationOptions(syntaxFormattingOptions);
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
100var indentationOptions = new IndentationOptions(options);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
51var indentationOptions = new IndentationOptions(formattingOptions);
Microsoft.CodeAnalysis.EditorFeatures (1)
Options\TextBufferOptionProviders.cs (1)
60return new IndentationOptions(formattingOptions)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
RazorCSharpFormattingInteractionService.cs (1)
58var roslynIndentationOptions = new IndentationOptions(formattingOptions)
Microsoft.CodeAnalysis.Features (1)
Wrapping\AbstractCodeActionComputer.cs (1)
96var indentationOptions = new IndentationOptions(Options.FormattingOptions) { IndentStyle = indentStyle };
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Features\Options\IndentationOptionsStorage.cs (1)
18return new IndentationOptions(formattingOptions)
Handler\Formatting\FormatDocumentOnTypeHandler.cs (1)
63var indentationOptions = new IndentationOptions(formattingOptions)
Handler\OnAutoInsert\OnAutoInsertHandler.cs (1)
97var indentationOptions = new IndentationOptions(formattingOptions)
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IndentationOptionsProviders.cs (1)
13=> new(SyntaxFormattingOptionsProviders.GetDefault(languageServices));
59 references to IndentationOptions
Microsoft.CodeAnalysis.CSharp.EditorFeatures (4)
Formatting\CSharpFormattingInteractionService.cs (1)
109var indentationOptions = textBuffer.GetIndentationOptions(_editorOptionsService, document.Project.GetFallbackAnalyzerOptions(), parsedDocument.LanguageServices, explicitFormat: false);
RawStringLiteral\RawStringLiteralCommandHandler_Return.cs (1)
176var indentationOptions = subjectBuffer.GetIndentationOptions(_editorOptionsService, project.GetFallbackAnalyzerOptions(), project.Services, explicitFormat: false);
SplitStringLiteral\SplitStringLiteralCommandHandler.cs (1)
83var indentationOptions = subjectBuffer.GetIndentationOptions(_editorOptionsService, document.Project.GetFallbackAnalyzerOptions(), parsedDocument.LanguageServices, explicitFormat: false);
StringCopyPaste\StringCopyPasteCommandHandler.cs (1)
252var indentationOptions = textBuffer.GetIndentationOptions(_editorOptionsService, fallbackOptions, documentBeforePaste.LanguageServices, explicitFormat: false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Formatting\Indentation\CSharpFormatterTestsBase.cs (1)
89var options = new IndentationOptions(
Formatting\Indentation\SmartIndenterEnterOnTokenTests.cs (2)
1324var options = new IndentationOptions( 1365var options = new IndentationOptions(new CSharpSyntaxFormattingOptions() { LineFormatting = new() { UseTabs = useTabs } })
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (1)
3124var options = new IndentationOptions(
Microsoft.CodeAnalysis.CSharp.Features (18)
BraceCompletion\AbstractCurlyBraceOrBracketCompletionService.cs (5)
30protected abstract ImmutableArray<AbstractFormattingRule> GetBraceFormattingIndentationRulesAfterReturn(IndentationOptions options); 34public sealed override BraceCompletionResult? GetTextChangesAfterCompletion(BraceCompletionContext context, IndentationOptions options, CancellationToken cancellationToken) 88IndentationOptions options, 169static LinePosition GetIndentedLinePosition(ParsedDocument document, SourceText sourceText, int lineNumber, IndentationOptions options, CancellationToken cancellationToken) 229IndentationOptions options,
BraceCompletion\BracketBraceCompletionService.cs (1)
38protected override ImmutableArray<AbstractFormattingRule> GetBraceFormattingIndentationRulesAfterReturn(IndentationOptions options)
BraceCompletion\CurlyBraceCompletionService.cs (1)
76protected override ImmutableArray<AbstractFormattingRule> GetBraceFormattingIndentationRulesAfterReturn(IndentationOptions options)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
400var indentationOptions = new IndentationOptions(formattingOptions);
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (1)
190var indentationOptions = new IndentationOptions(formattingOptions);
ConvertToRawString\ConvertRegularStringToRawStringCodeRefactoringProvider.cs (1)
150var indentationOptions = new IndentationOptions(formattingOptions);
Snippets\CSharpSnippetHelpers.cs (1)
34var indentationOptions = new IndentationOptions(syntaxFormattingOptions);
SplitStringLiteral\InterpolatedStringSplitter.cs (1)
25IndentationOptions indentationOptions,
SplitStringLiteral\SimpleStringSplitter.cs (1)
20in IndentationOptions indentationOptions,
SplitStringLiteral\StringSplitter.cs (3)
17in IndentationOptions indentationOptions, 24protected readonly IndentationOptions IndentationOptions = indentationOptions; 37in IndentationOptions indentationOptions,
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
100var indentationOptions = new IndentationOptions(options);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
51var indentationOptions = new IndentationOptions(formattingOptions);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Formatting\CSharpSyntaxFormattingService.cs (3)
75IndentationOptions indentationOptions, 145ParsedDocument document, IndentationOptions options, SyntaxToken token, ImmutableArray<AbstractFormattingRule> formattingRules, CancellationToken cancellationToken) 153IndentationOptions options,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (2)
23private readonly IndentationOptions _options; 30IndentationOptions options,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
50IndentationOptions options,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
27IndentationOptions options, AbstractFormattingRule baseIndentationRule)
Microsoft.CodeAnalysis.EditorFeatures (4)
AutomaticCompletion\BraceCompletionSessionProvider.BraceCompletionSession.cs (2)
140var indentationOptions = SubjectBuffer.GetIndentationOptions(EditorOptionsService, document.Project.GetFallbackAnalyzerOptions(), contextAfterStart.Document.LanguageServices, explicitFormat: false); 319var indentationOptions = SubjectBuffer.GetIndentationOptions(EditorOptionsService, context.FallbackOptions, context.Document.LanguageServices, explicitFormat: false);
Options\TextBufferOptionProviders.cs (1)
55public static IndentationOptions GetIndentationOptions(this ITextBuffer textBuffer, EditorOptionsService optionsProvider, StructuredAnalyzerConfigOptions fallbackOptions, LanguageServices languageServices, bool explicitFormat)
SmartIndent\SmartIndent.cs (1)
45var indentationOptions = line.Snapshot.TextBuffer.GetIndentationOptions(_editorOptionsService, document.Project.GetFallbackAnalyzerOptions(), document.Project.Services, explicitFormat: false);
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
RazorCSharpFormattingInteractionService.cs (1)
58var roslynIndentationOptions = new IndentationOptions(formattingOptions)
Microsoft.CodeAnalysis.Features (5)
BraceCompletion\AbstractBraceCompletionService.cs (2)
69public virtual BraceCompletionResult? GetTextChangesAfterCompletion(BraceCompletionContext braceCompletionContext, IndentationOptions options, CancellationToken cancellationToken) 72public virtual BraceCompletionResult? GetTextChangeAfterReturn(BraceCompletionContext braceCompletionContext, IndentationOptions options, CancellationToken cancellationToken)
BraceCompletion\IBraceCompletionService.cs (2)
54BraceCompletionResult? GetTextChangesAfterCompletion(BraceCompletionContext braceCompletionContext, IndentationOptions options, CancellationToken cancellationToken); 59BraceCompletionResult? GetTextChangeAfterReturn(BraceCompletionContext braceCompletionContext, IndentationOptions options, CancellationToken cancellationToken);
Wrapping\AbstractCodeActionComputer.cs (1)
96var indentationOptions = new IndentationOptions(Options.FormattingOptions) { IndentStyle = indentStyle };
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Features\Options\IndentationOptionsStorage.cs (1)
14public static async Task<IndentationOptions> GetIndentationOptionsAsync(this Document document, IGlobalOptionService globalOptions, CancellationToken cancellationToken)
Handler\Formatting\FormatDocumentOnTypeHandler.cs (1)
63var indentationOptions = new IndentationOptions(formattingOptions)
Handler\OnAutoInsert\OnAutoInsertHandler.cs (3)
97var indentationOptions = new IndentationOptions(formattingOptions) 148IndentationOptions options, 213IndentationOptions options)
Microsoft.CodeAnalysis.Workspaces (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (1)
63defaultValue: IndentationOptions.DefaultIndentStyle,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.cs (1)
29TSyntaxRoot root, SourceText text, TextLine lineToBeIndented, IndentationOptions options, AbstractFormattingRule baseFormattingRule);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (2)
24public readonly IndentationOptions Options; 45IndentationOptions options,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\ISyntaxFormattingService.cs (1)
16ImmutableArray<TextChange> GetFormattingChangesOnTypedCharacter(ParsedDocument document, int caretPosition, IndentationOptions indentationOptions, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (2)
17ParsedDocument document, int lineNumber, IndentationOptions options, CancellationToken cancellationToken) 39private Indenter GetIndenter(ParsedDocument document, int lineNumber, IndentationOptions options, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IIndentationService.cs (3)
20IndentationResult GetIndentation(ParsedDocument document, int lineNumber, IndentationOptions options, CancellationToken cancellationToken); 29public static string GetPreferredIndentation(this SyntaxToken token, ParsedDocument document, IndentationOptions options, CancellationToken cancellationToken) 80public static string GetIndentationString(this IndentationResult indentationResult, SourceText sourceText, IndentationOptions options)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IndentationOptionsProviders.cs (1)
12public static IndentationOptions GetDefault(LanguageServices languageServices)