9 types derived from AnalyzerConfigOptions
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
11internal sealed class DictionaryAnalyzerConfigOptions : AnalyzerConfigOptions
Microsoft.CodeAnalysis.CodeStyle (2)
DictionaryAnalyzerConfigOptions.cs (1)
11internal sealed class DictionaryAnalyzerConfigOptions : AnalyzerConfigOptions
StructuredAnalyzerConfigOptions.cs (1)
21internal abstract class StructuredAnalyzerConfigOptions : AnalyzerConfigOptions, IOptionsReader
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
EditorConfigSettings\Updater\SettingsUpdaterTests.TestAnalyzerConfigOptions.cs (1)
13private class TestAnalyzerConfigOptions : AnalyzerConfigOptions
Microsoft.CodeAnalysis.EditorFeatures (1)
Options\EditorAnalyzerConfigOptions.cs (1)
17internal sealed class EditorAnalyzerConfigOptions : AnalyzerConfigOptions
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
EditAndContinue\EditAndContinueTestAnalyzerConfigOptions.cs (1)
13internal class EditAndContinueTestAnalyzerConfigOptions : AnalyzerConfigOptions
EditorConfigSettings\Data\CodeStyleSettingsTest.cs (1)
101private class TestAnalyzerConfigOptions : AnalyzerConfigOptions
Microsoft.CodeAnalysis.Workspaces (2)
DictionaryAnalyzerConfigOptions.cs (1)
11internal sealed class DictionaryAnalyzerConfigOptions : AnalyzerConfigOptions
StructuredAnalyzerConfigOptions.cs (1)
21internal abstract class StructuredAnalyzerConfigOptions : AnalyzerConfigOptions, IOptionsReader
93 references to AnalyzerConfigOptions
BuildActionTelemetryTable (2)
DiagnosticDescriptorExtensions.cs (2)
58public static bool IsDefinedInEditorConfig(this DiagnosticDescriptor descriptor, AnalyzerConfigOptions analyzerConfigOptions) 100public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, AnalyzerConfigOptions analyzerConfigOptions)
Microsoft.CodeAnalysis (18)
CommandLine\CommonCompiler.cs (1)
931var builder = ImmutableDictionary.CreateBuilder<object, AnalyzerConfigOptions>();
DiagnosticAnalyzer\AnalyzerConfigOptionsProvider.cs (3)
15public abstract AnalyzerConfigOptions GlobalOptions { get; } 20public abstract AnalyzerConfigOptions GetOptions(SyntaxTree tree); 25public abstract AnalyzerConfigOptions GetOptions(AdditionalText textFile);
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2214var options = AnalyzerExecutor.AnalyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(tree);
DiagnosticAnalyzer\AnalyzerOptionsExtensions.cs (1)
61var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(tree);
DiagnosticAnalyzer\CompilerAnalyzerConfigOptionsProvider.cs (11)
11private readonly ImmutableDictionary<object, AnalyzerConfigOptions> _treeDict; 15ImmutableDictionary<object, AnalyzerConfigOptions>.Empty, 19ImmutableDictionary<object, AnalyzerConfigOptions> treeDict, 20AnalyzerConfigOptions globalOptions) 26public override AnalyzerConfigOptions GlobalOptions { get; } 28public override AnalyzerConfigOptions GetOptions(SyntaxTree tree) 29=> _treeDict.TryGetValue(tree, out var options) ? options : DictionaryAnalyzerConfigOptions.Empty; 31public override AnalyzerConfigOptions GetOptions(AdditionalText textFile) 32=> _treeDict.TryGetValue(textFile, out var options) ? options : DictionaryAnalyzerConfigOptions.Empty; 34internal CompilerAnalyzerConfigOptionsProvider WithAdditionalTreeOptions(ImmutableDictionary<object, AnalyzerConfigOptions> treeDict) 37internal CompilerAnalyzerConfigOptionsProvider WithGlobalOptions(AnalyzerConfigOptions globalOptions)
InternalUtilities\GeneratedCodeUtilities.cs (1)
162internal static bool? GetIsGeneratedCodeFromOptions(AnalyzerConfigOptions options)
Microsoft.CodeAnalysis.CodeStyle (22)
AnalyzerConfigOptionsExtensions.cs (3)
18public static T GetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 21public static T GetEditorConfigOptionValue<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 24public static bool TryGetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, out T value)
DiagnosticDescriptorExtensions.cs (2)
58public static bool IsDefinedInEditorConfig(this DiagnosticDescriptor descriptor, AnalyzerConfigOptions analyzerConfigOptions) 100public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, AnalyzerConfigOptions analyzerConfigOptions)
EditorConfigNamingStyleParser.cs (3)
18public static NamingStylePreferences ParseDictionary(AnalyzerConfigOptions allRawConventions) 103internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 105var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
EditorConfigParser.cs (2)
21= ImmutableHashSet.CreateRange(AnalyzerConfigOptions.KeyComparer, new[] { 48var activeSectionProperties = ImmutableDictionary.CreateBuilder<string, (string value, TextLine? line)>(AnalyzerConfigOptions.KeyComparer);
GeneratedCodeUtilities.cs (1)
162internal static bool? GetIsGeneratedCodeFromOptions(AnalyzerConfigOptions options)
IOptionReader.cs (3)
21public readonly AnalyzerConfigOptions Options; 23public AnalyzerConfigOptionsReader(AnalyzerConfigOptions options) 34public static IOptionsReader GetOptionsReader(this AnalyzerConfigOptions configOptions)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
232var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(syntaxTree);
StructuredAnalyzerConfigOptions.cs (7)
18/// <see cref="AnalyzerConfigOptions"/> that memoize structured (parsed) form of certain complex options to avoid parsing them multiple times. 25private readonly AnalyzerConfigOptions _options; 28public Implementation(AnalyzerConfigOptions options) 69public static StructuredAnalyzerConfigOptions Create(AnalyzerConfigOptions options) 75public static bool TryGetStructuredOptions(AnalyzerConfigOptions configOptions, [NotNullWhen(true)] out StructuredAnalyzerConfigOptions? options) 104private static readonly ConditionalWeakTable<AnalyzerConfigOptions, StructuredAnalyzerConfigOptions> s_codeStyleStructuredOptions = new(); 107private static bool TryGetCorrespondingCodeStyleInstance(AnalyzerConfigOptions configOptions, [NotNullWhen(true)] out StructuredAnalyzerConfigOptions? options)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
CodeFixOptionsProvider.cs (1)
90var configOptions = await document.GetAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
DocumentExtensions.cs (1)
209public static async ValueTask<AnalyzerConfigOptions> GetAnalyzerConfigOptionsAsync(this Document document, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
CSharpCodeFixOptionsProvider.cs (1)
126var configOptions = await document.GetAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (7)
CommandLineTests.cs (7)
257var options = analyzerOptions.GetOptions(tree); 13788var globalOptions = gc.AnalyzerConfigOptions.GlobalOptions; 13799var classOptions = gc.AnalyzerConfigOptions.GetOptions(gc.Compilation.SyntaxTrees.First()); 13828var globalOptions = provider.GlobalOptions; 13839var classOptions = provider.GetOptions(cmd.Compilation.SyntaxTrees.First()); 13851var generatedOptions = provider.GetOptions(cmd.Compilation.SyntaxTrees.Last()); 14150var options = provider.GetOptions(tree);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
1500var analyzerConfigOptionsPerTreeBuilder = ImmutableDictionary.CreateBuilder<object, AnalyzerConfigOptions>();
Diagnostics\GetDiagnosticsTests.cs (2)
499ImmutableDictionary<object, AnalyzerConfigOptions>.Empty.Add(compilation.SyntaxTrees.Single(), analyzerConfigOptions), 545ImmutableDictionary<object, AnalyzerConfigOptions>.Empty.Add(compilation.SyntaxTrees.Single(), analyzerConfigOptions),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
SourceGeneration\GeneratorDriverTests.cs (2)
849var options = new CompilerAnalyzerConfigOptionsProvider(ImmutableDictionary<object, AnalyzerConfigOptions>.Empty, new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty.Add("a", "abc").Add("b", "def"))); 2336var optionsProvider = new CompilerAnalyzerConfigOptionsProvider(ImmutableDictionary<object, AnalyzerConfigOptions>.Empty, new DictionaryAnalyzerConfigOptions(builder.ToImmutable()));
Microsoft.CodeAnalysis.EditorFeatures (3)
EditorConfigSettings\Data\TieredAnalyzerConfigOptions.cs (2)
12public readonly AnalyzerConfigOptions EditorConfigOptions; 18public TieredAnalyzerConfigOptions(AnalyzerConfigOptions editorConfigOptions, IGlobalOptionService globalOptions, string language, string editorConfigFileName)
EditorConfigSettings\DataProvider\Analyzer\AnalyzerSettingsProvider.cs (1)
40private IEnumerable<AnalyzerSetting> GetSettings(AnalyzerReference analyzerReference, AnalyzerConfigOptions editorConfigOptions)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
EditAndContinue\EditAndContinueTestAnalyzerConfigOptionsProvider.cs (3)
15public override AnalyzerConfigOptions GlobalOptions { get; } 17public override AnalyzerConfigOptions GetOptions(SyntaxTree tree) 20public override AnalyzerConfigOptions GetOptions(AdditionalText textFile)
Microsoft.CodeAnalysis.Features (1)
ImplementInterface\AbstractImplementInterfaceService.DisposePatternCodeAction.cs (1)
334var configOptions = document.Project.AnalyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(syntaxTree);
Microsoft.CodeAnalysis.Workspaces (25)
AnalyzerConfigOptionsExtensions.cs (3)
18public static T GetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 21public static T GetEditorConfigOptionValue<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 24public static bool TryGetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, out T value)
DiagnosticDescriptorExtensions.cs (2)
58public static bool IsDefinedInEditorConfig(this DiagnosticDescriptor descriptor, AnalyzerConfigOptions analyzerConfigOptions) 100public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, AnalyzerConfigOptions analyzerConfigOptions)
EditorConfigNamingStyleParser.cs (3)
18public static NamingStylePreferences ParseDictionary(AnalyzerConfigOptions allRawConventions) 103internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 105var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
EditorConfigParser.cs (2)
21= ImmutableHashSet.CreateRange(AnalyzerConfigOptions.KeyComparer, new[] { 48var activeSectionProperties = ImmutableDictionary.CreateBuilder<string, (string value, TextLine? line)>(AnalyzerConfigOptions.KeyComparer);
GeneratedCodeUtilities.cs (1)
162internal static bool? GetIsGeneratedCodeFromOptions(AnalyzerConfigOptions options)
IOptionReader.cs (3)
21public readonly AnalyzerConfigOptions Options; 23public AnalyzerConfigOptionsReader(AnalyzerConfigOptions options) 34public static IOptionsReader GetOptionsReader(this AnalyzerConfigOptions configOptions)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
232var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(syntaxTree);
Options\ILegacyDocumentOptionsProvider.cs (1)
18AnalyzerConfigOptions GetOptions(ProjectId projectId, string documentPath);
StructuredAnalyzerConfigOptions.cs (5)
18/// <see cref="AnalyzerConfigOptions"/> that memoize structured (parsed) form of certain complex options to avoid parsing them multiple times. 25private readonly AnalyzerConfigOptions _options; 28public Implementation(AnalyzerConfigOptions options) 69public static StructuredAnalyzerConfigOptions Create(AnalyzerConfigOptions options) 75public static bool TryGetStructuredOptions(AnalyzerConfigOptions configOptions, [NotNullWhen(true)] out StructuredAnalyzerConfigOptions? options)
Workspace\Solution\ProjectState.cs (3)
305public override AnalyzerConfigOptions GlobalOptions 308public override AnalyzerConfigOptions GetOptions(SyntaxTree tree) 350public override AnalyzerConfigOptions GetOptions(AdditionalText textFile)
Workspace\Solution\SolutionState.CompilationTracker.cs (1)
1110var globalOptions = this.ProjectState.AnalyzerOptions.AnalyzerConfigOptionsProvider.GlobalOptions;
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
EditorConfigStorageLocation\NamingStylePreferenceEditorConfigStorageLocationTests.cs (1)
33}.ToImmutableDictionary(AnalyzerConfigOptions.KeyComparer));
Options\DocumentOptionSetTests.cs (2)
27var configOptions = StructuredAnalyzerConfigOptions.Create(ImmutableDictionary.Create<string, string>(AnalyzerConfigOptions.KeyComparer).Add( 127var configOptions = StructuredAnalyzerConfigOptions.Create(ImmutableDictionary.Create<string, string>(AnalyzerConfigOptions.KeyComparer).Add(
SolutionTests\SolutionTests.cs (1)
4399var documentOptionsViaSyntaxTree = document.Project.State.AnalyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(syntaxTree);