2 instantiations of AddImportPlacementOptions
Microsoft.CodeAnalysis.CodeStyle (1)
AddImportPlacementOptions.cs (1)
39public static readonly AddImportPlacementOptions Default = new();
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
AbstractAddImportsService.cs (1)
40return new()
28 references to AddImportPlacementOptions
Microsoft.CodeAnalysis.CodeStyle (5)
AddImportPlacementOptions.cs (1)
39public static readonly AddImportPlacementOptions Default = new();
CodeCleanupOptions.cs (2)
26[DataMember] public AddImportPlacementOptions AddImportOptions { get; init; } = AddImportPlacementOptions.Default;
CodeGenerationOptions.cs (1)
55public required AddImportPlacementOptions AddImportOptions { get; init; }
GenerationOptions.cs (1)
17defaultValue: AddImportPlacementOptions.Default.PlaceSystemNamespaceFirst,
Microsoft.CodeAnalysis.CodeStyle.Fixes (14)
AbstractAddImportsService.cs (7)
36public AddImportPlacementOptions GetAddImportOptions(IOptionsReader configOptions, bool allowInHiddenRegions, AddImportPlacementOptions? fallbackOptions) 38fallbackOptions ??= AddImportPlacementOptions.Default; 107public SyntaxNode GetImportContainer(SyntaxNode root, SyntaxNode? contextLocation, SyntaxNode import, AddImportPlacementOptions options) 140AddImportPlacementOptions options, 168AddImportPlacementOptions options, SyntaxNode root, CancellationToken cancellationToken); 170private void GetContainers(SyntaxNode root, SyntaxNode contextLocation, AddImportPlacementOptions options, out SyntaxNode externContainer, out SyntaxNode usingContainer, out SyntaxNode staticUsingContainer, out SyntaxNode aliasContainer)
AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
51var placementOption = await document.GetAddImportPlacementOptionsAsync(addImportService, context.GetOptionsProvider(), cancellationToken).ConfigureAwait(false);
AddImportPlacementOptionsProviders.cs (1)
14internal static async ValueTask<AddImportPlacementOptions> GetAddImportPlacementOptionsAsync(this Document document, IAddImportsService addImportsService, AddImportPlacementOptionsProvider fallbackOptionsProvider, CancellationToken cancellationToken)
IAddImportsService.cs (5)
22AddImportPlacementOptions GetAddImportOptions(IOptionsReader configOptions, bool allowInHiddenRegions, AddImportPlacementOptions? fallbackOptions); 35SyntaxNode GetImportContainer(SyntaxNode root, SyntaxNode? contextLocation, SyntaxNode import, AddImportPlacementOptions options); 39IEnumerable<SyntaxNode> newImports, SyntaxGenerator generator, AddImportPlacementOptions options, CancellationToken cancellationToken); 46SyntaxNode contextLocation, SyntaxNode newImport, SyntaxGenerator generator, AddImportPlacementOptions options,
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
CSharpAnalyzerOptionsProvider.cs (2)
116private AddImportPlacementOptions FallbackAddImportPlacementOptions 117=> _fallbackOptions.CleanupOptions?.AddImportOptions ?? AddImportPlacementOptions.Default;
CSharpCodeStyleOptions.cs (1)
185AddImportPlacementOptions.Default.UsingDirectivePlacement,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
CSharpAddImportsService.cs (3)
58AddImportPlacementOptions options, 92private readonly AddImportPlacementOptions _options; 112AddImportPlacementOptions options,
CSharpCodeFixOptionsProvider.cs (2)
114private AddImportPlacementOptions FallbackAddImportPlacementOptions 116=> AddImportPlacementOptions.Default;
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
VisualBasicAddImportsService.vb (1)
100options As AddImportPlacementOptions,