20 types derived from AnalyzerConfigOptions
dotnet-format (1)
Utilities\EditorConfigOptions.cs (1)
9internal sealed class EditorConfigOptions : AnalyzerConfigOptions
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
11internal sealed class DictionaryAnalyzerConfigOptions : AnalyzerConfigOptions
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (1)
20internal abstract class StructuredAnalyzerConfigOptions : AnalyzerConfigOptions, IOptionsReader
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
11internal sealed class DictionaryAnalyzerConfigOptions : AnalyzerConfigOptions
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
11internal sealed class DictionaryAnalyzerConfigOptions : AnalyzerConfigOptions
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (1)
20internal abstract class StructuredAnalyzerConfigOptions : AnalyzerConfigOptions, IOptionsReader
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
11internal sealed class DictionaryAnalyzerConfigOptions : AnalyzerConfigOptions
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (1)
20internal abstract class StructuredAnalyzerConfigOptions : AnalyzerConfigOptions, IOptionsReader
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
11internal sealed class DictionaryAnalyzerConfigOptions : AnalyzerConfigOptions
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (1)
20internal abstract class StructuredAnalyzerConfigOptions : AnalyzerConfigOptions, IOptionsReader
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
11internal sealed class DictionaryAnalyzerConfigOptions : AnalyzerConfigOptions
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (1)
20internal abstract class StructuredAnalyzerConfigOptions : AnalyzerConfigOptions, IOptionsReader
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
11internal sealed class DictionaryAnalyzerConfigOptions : AnalyzerConfigOptions
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (1)
20internal abstract class StructuredAnalyzerConfigOptions : AnalyzerConfigOptions, IOptionsReader
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
GeneratorTests.cs (1)
143private sealed class TestAnalyzerConfigOptions : AnalyzerConfigOptions
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
GeneratorTests.cs (1)
184private sealed class Options : AnalyzerConfigOptions
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
GeneratorTests.cs (1)
234private sealed class Options : AnalyzerConfigOptions
Microsoft.Gen.MetricsReports.Unit.Tests (1)
GeneratorTests.cs (1)
174private sealed class Options : AnalyzerConfigOptions
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
11internal sealed class DictionaryAnalyzerConfigOptions : AnalyzerConfigOptions
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (1)
20internal abstract class StructuredAnalyzerConfigOptions : AnalyzerConfigOptions, IOptionsReader
316 references to AnalyzerConfigOptions
dotnet-format (16)
Analyzers\AnalyzerOptionExtensions.cs (4)
70var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(tree); 96public static bool IsDiagnosticSeverityConfigured(this AnalyzerConfigOptions analyzerConfigOptions, Project project, SyntaxTree tree, string diagnosticId, string? diagnosticCategory) 107public static DiagnosticSeverity GetDiagnosticSeverity(this AnalyzerConfigOptions analyzerConfigOptions, Project project, SyntaxTree tree, string diagnosticId, string? diagnosticCategory) 123this AnalyzerConfigOptions? analyzerConfigOptions,
CodeFormatter.cs (1)
242var analyzerConfigOptions = document.Project.AnalyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(syntaxTree);
Formatters\CharsetFormatter.cs (2)
26AnalyzerConfigOptions analyzerConfigOptions, 69private static bool TryGetCharset(AnalyzerConfigOptions analyzerConfigOptions, [NotNullWhen(true)] out Encoding? encoding)
Formatters\DocumentFormatter.cs (3)
52AnalyzerConfigOptions analyzerConfigOptions, 87var analyzerConfigOptions = document.Project.AnalyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(syntaxTree); 105AnalyzerConfigOptions analyzerConfigOptions,
Formatters\EndOfLineFormatter.cs (2)
23AnalyzerConfigOptions analyzerConfigOptions, 64public static bool TryGetEndOfLine(AnalyzerConfigOptions analyzerConfigOptions, [NotNullWhen(true)] out string? endOfLine)
Formatters\FinalNewlineFormatter.cs (1)
22AnalyzerConfigOptions analyzerConfigOptions,
Formatters\OrganizeImportsFormatter.cs (1)
27AnalyzerConfigOptions analyzerConfigOptions,
Formatters\WhitespaceFormatter.cs (1)
26AnalyzerConfigOptions analyzerConfigOptions,
Utilities\GeneratedCodeUtilities.cs (1)
93internal static bool? GetIsGeneratedCodeFromOptions(AnalyzerConfigOptions options)
GenerateDocumentationAndConfigFiles (33)
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
162internal static GeneratedKind GetGeneratedCodeKindFromOptions(AnalyzerConfigOptions options)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
77var options = analyzerConfigOptionsProvider.GetOptions(tree);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerConfigOptionsProviderExtensions.cs (1)
18return analyzerConfigOptionsProvider.GetType().GetField("_treeDict", flags)?.GetValue(analyzerConfigOptionsProvider) is ImmutableDictionary<object, AnalyzerConfigOptions> perTreeOptionsMap
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (5)
15/// Analyzer configuration options for a given syntax tree from <see cref="AnalyzerConfigOptions"/> 19private readonly AnalyzerConfigOptions? _analyzerConfigOptions; 24private SyntaxTreeCategorizedAnalyzerConfigOptions(AnalyzerConfigOptions? analyzerConfigOptions) 29public static SyntaxTreeCategorizedAnalyzerConfigOptions Create(AnalyzerConfigOptions? analyzerConfigOptions) 50static ImmutableDictionary<string, string>? TryGetBackingOptionsDictionary(AnalyzerConfigOptions analyzerConfigOptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (5)
17/// <see cref="AnalyzerConfigOptions"/> that memoize structured (parsed) form of certain complex options to avoid parsing them multiple times. 24private readonly AnalyzerConfigOptions _options; 28public Implementation(AnalyzerConfigOptions options, StructuredAnalyzerConfigOptions? fallback) 52public static StructuredAnalyzerConfigOptions Create(AnalyzerConfigOptions options, StructuredAnalyzerConfigOptions? fallback = null) 58public static bool TryGetStructuredOptions(AnalyzerConfigOptions configOptions, [NotNullWhen(true)] out StructuredAnalyzerConfigOptions? options)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (3)
21= ImmutableHashSet.CreateRange(AnalyzerConfigOptions.KeyComparer, [ 48var activeSectionValues = ImmutableDictionary.CreateBuilder<string, string>(AnalyzerConfigOptions.KeyComparer); 49var activeSectionLines = ImmutableDictionary.CreateBuilder<string, TextLine>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalyzerConfigOptionsExtensions.cs (5)
15public static T GetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 18public static T GetEditorConfigOptionValue<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 21public static bool TryGetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, out T value) 56public static bool IsCodeStyleSeverityEnabled(this AnalyzerConfigOptions analyzerConfigOptions) 65public static bool IsAnalysisLevelGreaterThanOrEquals(this AnalyzerConfigOptions analyzerConfigOptions, int minAnalysisLevel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (5)
37AnalyzerConfigOptions? analyzerOptions, 74var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(tree); 97public static bool IsDefinedInEditorConfig(this DiagnosticDescriptor descriptor, AnalyzerConfigOptions analyzerConfigOptions) 147AnalyzerConfigOptions analyzerConfigOptions, 216AnalyzerConfigOptions analyzerOptions,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
235var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(syntaxTree);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
17public static NamingStylePreferences ParseDictionary(AnalyzerConfigOptions allRawConventions) 84internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\IOptionReader.cs (3)
15internal sealed class AnalyzerConfigOptionsReader(AnalyzerConfigOptions options) : IOptionsReader 17public readonly AnalyzerConfigOptions Options = options; 25public static IOptionsReader GetOptionsReader(this AnalyzerConfigOptions configOptions)
Microsoft.CodeAnalysis (18)
CommandLine\CommonCompiler.cs (1)
1027var 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)
2335var options = AnalyzerExecutor.AnalyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(tree);
DiagnosticAnalyzer\AnalyzerOptionsExtensions.cs (1)
65var 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)
SourceGeneration\GeneratedCodeUtilities.cs (1)
162internal static GeneratedKind GetGeneratedCodeKindFromOptions(AnalyzerConfigOptions options)
Microsoft.CodeAnalysis.Analyzers (34)
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
162internal static GeneratedKind GetGeneratedCodeKindFromOptions(AnalyzerConfigOptions options)
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\SymbolIsBannedAnalyzerBase.cs (1)
269var options = compilationContext.Options.AnalyzerConfigOptionsProvider.GetOptions(tree);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
77var options = analyzerConfigOptionsProvider.GetOptions(tree);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerConfigOptionsProviderExtensions.cs (1)
18return analyzerConfigOptionsProvider.GetType().GetField("_treeDict", flags)?.GetValue(analyzerConfigOptionsProvider) is ImmutableDictionary<object, AnalyzerConfigOptions> perTreeOptionsMap
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (5)
15/// Analyzer configuration options for a given syntax tree from <see cref="AnalyzerConfigOptions"/> 19private readonly AnalyzerConfigOptions? _analyzerConfigOptions; 24private SyntaxTreeCategorizedAnalyzerConfigOptions(AnalyzerConfigOptions? analyzerConfigOptions) 29public static SyntaxTreeCategorizedAnalyzerConfigOptions Create(AnalyzerConfigOptions? analyzerConfigOptions) 50static ImmutableDictionary<string, string>? TryGetBackingOptionsDictionary(AnalyzerConfigOptions analyzerConfigOptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (5)
17/// <see cref="AnalyzerConfigOptions"/> that memoize structured (parsed) form of certain complex options to avoid parsing them multiple times. 24private readonly AnalyzerConfigOptions _options; 28public Implementation(AnalyzerConfigOptions options, StructuredAnalyzerConfigOptions? fallback) 52public static StructuredAnalyzerConfigOptions Create(AnalyzerConfigOptions options, StructuredAnalyzerConfigOptions? fallback = null) 58public static bool TryGetStructuredOptions(AnalyzerConfigOptions configOptions, [NotNullWhen(true)] out StructuredAnalyzerConfigOptions? options)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (3)
21= ImmutableHashSet.CreateRange(AnalyzerConfigOptions.KeyComparer, [ 48var activeSectionValues = ImmutableDictionary.CreateBuilder<string, string>(AnalyzerConfigOptions.KeyComparer); 49var activeSectionLines = ImmutableDictionary.CreateBuilder<string, TextLine>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalyzerConfigOptionsExtensions.cs (5)
15public static T GetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 18public static T GetEditorConfigOptionValue<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 21public static bool TryGetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, out T value) 56public static bool IsCodeStyleSeverityEnabled(this AnalyzerConfigOptions analyzerConfigOptions) 65public static bool IsAnalysisLevelGreaterThanOrEquals(this AnalyzerConfigOptions analyzerConfigOptions, int minAnalysisLevel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (5)
37AnalyzerConfigOptions? analyzerOptions, 74var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(tree); 97public static bool IsDefinedInEditorConfig(this DiagnosticDescriptor descriptor, AnalyzerConfigOptions analyzerConfigOptions) 147AnalyzerConfigOptions analyzerConfigOptions, 216AnalyzerConfigOptions analyzerOptions,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
235var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(syntaxTree);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
17public static NamingStylePreferences ParseDictionary(AnalyzerConfigOptions allRawConventions) 84internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\IOptionReader.cs (3)
15internal sealed class AnalyzerConfigOptionsReader(AnalyzerConfigOptions options) : IOptionsReader 17public readonly AnalyzerConfigOptions Options = options; 25public static IOptionsReader GetOptionsReader(this AnalyzerConfigOptions configOptions)
Microsoft.CodeAnalysis.AnalyzerUtilities (33)
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
162internal static GeneratedKind GetGeneratedCodeKindFromOptions(AnalyzerConfigOptions options)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
77var options = analyzerConfigOptionsProvider.GetOptions(tree);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerConfigOptionsProviderExtensions.cs (1)
18return analyzerConfigOptionsProvider.GetType().GetField("_treeDict", flags)?.GetValue(analyzerConfigOptionsProvider) is ImmutableDictionary<object, AnalyzerConfigOptions> perTreeOptionsMap
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (5)
15/// Analyzer configuration options for a given syntax tree from <see cref="AnalyzerConfigOptions"/> 19private readonly AnalyzerConfigOptions? _analyzerConfigOptions; 24private SyntaxTreeCategorizedAnalyzerConfigOptions(AnalyzerConfigOptions? analyzerConfigOptions) 29public static SyntaxTreeCategorizedAnalyzerConfigOptions Create(AnalyzerConfigOptions? analyzerConfigOptions) 50static ImmutableDictionary<string, string>? TryGetBackingOptionsDictionary(AnalyzerConfigOptions analyzerConfigOptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (5)
17/// <see cref="AnalyzerConfigOptions"/> that memoize structured (parsed) form of certain complex options to avoid parsing them multiple times. 24private readonly AnalyzerConfigOptions _options; 28public Implementation(AnalyzerConfigOptions options, StructuredAnalyzerConfigOptions? fallback) 52public static StructuredAnalyzerConfigOptions Create(AnalyzerConfigOptions options, StructuredAnalyzerConfigOptions? fallback = null) 58public static bool TryGetStructuredOptions(AnalyzerConfigOptions configOptions, [NotNullWhen(true)] out StructuredAnalyzerConfigOptions? options)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (3)
21= ImmutableHashSet.CreateRange(AnalyzerConfigOptions.KeyComparer, [ 48var activeSectionValues = ImmutableDictionary.CreateBuilder<string, string>(AnalyzerConfigOptions.KeyComparer); 49var activeSectionLines = ImmutableDictionary.CreateBuilder<string, TextLine>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalyzerConfigOptionsExtensions.cs (5)
15public static T GetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 18public static T GetEditorConfigOptionValue<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 21public static bool TryGetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, out T value) 56public static bool IsCodeStyleSeverityEnabled(this AnalyzerConfigOptions analyzerConfigOptions) 65public static bool IsAnalysisLevelGreaterThanOrEquals(this AnalyzerConfigOptions analyzerConfigOptions, int minAnalysisLevel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (5)
37AnalyzerConfigOptions? analyzerOptions, 74var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(tree); 97public static bool IsDefinedInEditorConfig(this DiagnosticDescriptor descriptor, AnalyzerConfigOptions analyzerConfigOptions) 147AnalyzerConfigOptions analyzerConfigOptions, 216AnalyzerConfigOptions analyzerOptions,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
235var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(syntaxTree);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
17public static NamingStylePreferences ParseDictionary(AnalyzerConfigOptions allRawConventions) 84internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\IOptionReader.cs (3)
15internal sealed class AnalyzerConfigOptionsReader(AnalyzerConfigOptions options) : IOptionsReader 17public readonly AnalyzerConfigOptions Options = options; 25public static IOptionsReader GetOptionsReader(this AnalyzerConfigOptions configOptions)
Microsoft.CodeAnalysis.CodeStyle (30)
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (2)
192var globalOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GlobalOptions; 193var treeOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(tree);
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
162internal static GeneratedKind GetGeneratedCodeKindFromOptions(AnalyzerConfigOptions options)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (7)
17/// <see cref="AnalyzerConfigOptions"/> that memoize structured (parsed) form of certain complex options to avoid parsing them multiple times. 24private readonly AnalyzerConfigOptions _options; 28public Implementation(AnalyzerConfigOptions options, StructuredAnalyzerConfigOptions? fallback) 52public static StructuredAnalyzerConfigOptions Create(AnalyzerConfigOptions options, StructuredAnalyzerConfigOptions? fallback = null) 58public static bool TryGetStructuredOptions(AnalyzerConfigOptions configOptions, [NotNullWhen(true)] out StructuredAnalyzerConfigOptions? options) 87private static readonly ConditionalWeakTable<AnalyzerConfigOptions, StructuredAnalyzerConfigOptions> s_codeStyleStructuredOptions = new(); 90private static bool TryGetCorrespondingCodeStyleInstance(AnalyzerConfigOptions configOptions, [NotNullWhen(true)] out StructuredAnalyzerConfigOptions? options)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (3)
21= ImmutableHashSet.CreateRange(AnalyzerConfigOptions.KeyComparer, [ 48var activeSectionValues = ImmutableDictionary.CreateBuilder<string, string>(AnalyzerConfigOptions.KeyComparer); 49var activeSectionLines = ImmutableDictionary.CreateBuilder<string, TextLine>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalyzerConfigOptionsExtensions.cs (5)
15public static T GetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 18public static T GetEditorConfigOptionValue<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 21public static bool TryGetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, out T value) 56public static bool IsCodeStyleSeverityEnabled(this AnalyzerConfigOptions analyzerConfigOptions) 65public static bool IsAnalysisLevelGreaterThanOrEquals(this AnalyzerConfigOptions analyzerConfigOptions, int minAnalysisLevel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (5)
37AnalyzerConfigOptions? analyzerOptions, 74var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(tree); 97public static bool IsDefinedInEditorConfig(this DiagnosticDescriptor descriptor, AnalyzerConfigOptions analyzerConfigOptions) 147AnalyzerConfigOptions analyzerConfigOptions, 216AnalyzerConfigOptions analyzerOptions,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
235var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(syntaxTree);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
17public static NamingStylePreferences ParseDictionary(AnalyzerConfigOptions allRawConventions) 84internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\IOptionReader.cs (3)
15internal sealed class AnalyzerConfigOptionsReader(AnalyzerConfigOptions options) : IOptionsReader 17public readonly AnalyzerConfigOptions Options = options; 25public static IOptionsReader GetOptionsReader(this AnalyzerConfigOptions configOptions)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Options\OmniSharpSolutionAnalyzerConfigOptionsUpdater.cs (1)
27var builder = ImmutableDictionary.CreateBuilder<string, string>(AnalyzerConfigOptions.KeyComparer);
Microsoft.CodeAnalysis.Features (2)
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (2)
192var globalOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GlobalOptions; 193var treeOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(tree);
Microsoft.CodeAnalysis.Razor.Compiler (4)
SourceGenerators\RazorSourceGenerator.RazorProviders.cs (4)
24var globalOptions = options.GlobalOptions; 65private static RazorLanguageVersion ParseRazorLanguageVersion(AnalyzerConfigOptions globalOptions, ref PooledArrayBuilder<Diagnostic> diagnostics) 81private static int ParseRazorWarningLevel(AnalyzerConfigOptions globalOptions, RazorLanguageVersion razorLanguageVersion, ref PooledArrayBuilder<Diagnostic> diagnostics) 111var options = globalOptions.GetOptions(additionalText);
Microsoft.CodeAnalysis.ResxSourceGenerator (36)
AbstractResxGenerator.cs (3)
57var options = optionsProvider.GetOptions(resourceFile); 258private static bool? IsGenerateSource(AnalyzerConfigOptions options) 270private static bool IsExplicitWithCulture(AnalyzerConfigOptions options)
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
162internal static GeneratedKind GetGeneratedCodeKindFromOptions(AnalyzerConfigOptions options)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
77var options = analyzerConfigOptionsProvider.GetOptions(tree);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerConfigOptionsProviderExtensions.cs (1)
18return analyzerConfigOptionsProvider.GetType().GetField("_treeDict", flags)?.GetValue(analyzerConfigOptionsProvider) is ImmutableDictionary<object, AnalyzerConfigOptions> perTreeOptionsMap
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (5)
15/// Analyzer configuration options for a given syntax tree from <see cref="AnalyzerConfigOptions"/> 19private readonly AnalyzerConfigOptions? _analyzerConfigOptions; 24private SyntaxTreeCategorizedAnalyzerConfigOptions(AnalyzerConfigOptions? analyzerConfigOptions) 29public static SyntaxTreeCategorizedAnalyzerConfigOptions Create(AnalyzerConfigOptions? analyzerConfigOptions) 50static ImmutableDictionary<string, string>? TryGetBackingOptionsDictionary(AnalyzerConfigOptions analyzerConfigOptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (5)
17/// <see cref="AnalyzerConfigOptions"/> that memoize structured (parsed) form of certain complex options to avoid parsing them multiple times. 24private readonly AnalyzerConfigOptions _options; 28public Implementation(AnalyzerConfigOptions options, StructuredAnalyzerConfigOptions? fallback) 52public static StructuredAnalyzerConfigOptions Create(AnalyzerConfigOptions options, StructuredAnalyzerConfigOptions? fallback = null) 58public static bool TryGetStructuredOptions(AnalyzerConfigOptions configOptions, [NotNullWhen(true)] out StructuredAnalyzerConfigOptions? options)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (3)
21= ImmutableHashSet.CreateRange(AnalyzerConfigOptions.KeyComparer, [ 48var activeSectionValues = ImmutableDictionary.CreateBuilder<string, string>(AnalyzerConfigOptions.KeyComparer); 49var activeSectionLines = ImmutableDictionary.CreateBuilder<string, TextLine>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalyzerConfigOptionsExtensions.cs (5)
15public static T GetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 18public static T GetEditorConfigOptionValue<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 21public static bool TryGetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, out T value) 56public static bool IsCodeStyleSeverityEnabled(this AnalyzerConfigOptions analyzerConfigOptions) 65public static bool IsAnalysisLevelGreaterThanOrEquals(this AnalyzerConfigOptions analyzerConfigOptions, int minAnalysisLevel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (5)
37AnalyzerConfigOptions? analyzerOptions, 74var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(tree); 97public static bool IsDefinedInEditorConfig(this DiagnosticDescriptor descriptor, AnalyzerConfigOptions analyzerConfigOptions) 147AnalyzerConfigOptions analyzerConfigOptions, 216AnalyzerConfigOptions analyzerOptions,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
235var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(syntaxTree);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
17public static NamingStylePreferences ParseDictionary(AnalyzerConfigOptions allRawConventions) 84internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\IOptionReader.cs (3)
15internal sealed class AnalyzerConfigOptionsReader(AnalyzerConfigOptions options) : IOptionsReader 17public readonly AnalyzerConfigOptions Options = options; 25public static IOptionsReader GetOptionsReader(this AnalyzerConfigOptions configOptions)
Microsoft.CodeAnalysis.Workspaces (33)
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
162internal static GeneratedKind GetGeneratedCodeKindFromOptions(AnalyzerConfigOptions options)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (5)
17/// <see cref="AnalyzerConfigOptions"/> that memoize structured (parsed) form of certain complex options to avoid parsing them multiple times. 24private readonly AnalyzerConfigOptions _options; 28public Implementation(AnalyzerConfigOptions options, StructuredAnalyzerConfigOptions? fallback) 52public static StructuredAnalyzerConfigOptions Create(AnalyzerConfigOptions options, StructuredAnalyzerConfigOptions? fallback = null) 58public static bool TryGetStructuredOptions(AnalyzerConfigOptions configOptions, [NotNullWhen(true)] out StructuredAnalyzerConfigOptions? options)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (3)
21= ImmutableHashSet.CreateRange(AnalyzerConfigOptions.KeyComparer, [ 48var activeSectionValues = ImmutableDictionary.CreateBuilder<string, string>(AnalyzerConfigOptions.KeyComparer); 49var activeSectionLines = ImmutableDictionary.CreateBuilder<string, TextLine>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalyzerConfigOptionsExtensions.cs (5)
15public static T GetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 18public static T GetEditorConfigOptionValue<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 21public static bool TryGetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, out T value) 56public static bool IsCodeStyleSeverityEnabled(this AnalyzerConfigOptions analyzerConfigOptions) 65public static bool IsAnalysisLevelGreaterThanOrEquals(this AnalyzerConfigOptions analyzerConfigOptions, int minAnalysisLevel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (5)
37AnalyzerConfigOptions? analyzerOptions, 74var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(tree); 97public static bool IsDefinedInEditorConfig(this DiagnosticDescriptor descriptor, AnalyzerConfigOptions analyzerConfigOptions) 147AnalyzerConfigOptions analyzerConfigOptions, 216AnalyzerConfigOptions analyzerOptions,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
235var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(syntaxTree);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
17public static NamingStylePreferences ParseDictionary(AnalyzerConfigOptions allRawConventions) 84internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\IOptionReader.cs (3)
15internal sealed class AnalyzerConfigOptionsReader(AnalyzerConfigOptions options) : IOptionsReader 17public readonly AnalyzerConfigOptions Options = options; 25public static IOptionsReader GetOptionsReader(this AnalyzerConfigOptions configOptions)
Workspace\Solution\AnalyzerConfigData.cs (1)
15private readonly AnalyzerConfigOptions _dictionaryConfigOptions;
Workspace\Solution\ProjectState.cs (6)
417public override AnalyzerConfigOptions GlobalOptions 420public override AnalyzerConfigOptions GetOptions(SyntaxTree tree) 446public override AnalyzerConfigOptions GetOptions(AdditionalText textFile) 463public override AnalyzerConfigOptions GlobalOptions 466public override AnalyzerConfigOptions GetOptions(SyntaxTree tree) 499public override AnalyzerConfigOptions GetOptions(AdditionalText textFile)
Microsoft.Gen.BuildMetadata (6)
AnalyzerConfigOptionsExtensions.cs (3)
9/// Extension methods for <see cref="AnalyzerConfigOptions"/> to simplify MSBuild property access. 22public static bool GetBooleanProperty(this AnalyzerConfigOptions options, string propertyName) 34public static string? GetProperty(this AnalyzerConfigOptions options, string propertyName)
BuildMetadataGenerator.cs (1)
29private static BuildMetadata CreateBuildMetadata(AnalyzerConfigOptions globalOptions)
src\Generators\Shared\GeneratorUtilities.cs (2)
147public static bool TryRetrieveOptionsValue(AnalyzerConfigOptions options, string name, out string? value) 150public static string GetDefaultReportOutputPath(AnalyzerConfigOptions options)
Microsoft.Gen.BuildMetadata.Unit.Tests (3)
GeneratorTests.cs (3)
136public override AnalyzerConfigOptions GlobalOptions => _globalOptions; 138public override AnalyzerConfigOptions GetOptions(SyntaxTree tree) => _globalOptions; 140public override AnalyzerConfigOptions GetOptions(AdditionalText textFile) => _globalOptions;
Microsoft.Gen.ComplianceReports (3)
ComplianceReportsGenerator.cs (1)
84var options = context.AnalyzerConfigOptions.GlobalOptions;
src\Generators\Shared\GeneratorUtilities.cs (2)
147public static bool TryRetrieveOptionsValue(AnalyzerConfigOptions options, string name, out string? value) 150public static string GetDefaultReportOutputPath(AnalyzerConfigOptions options)
Microsoft.Gen.ComplianceReports.Unit.Tests (3)
GeneratorTests.cs (3)
201public override AnalyzerConfigOptions GlobalOptions => new Options(analyzerOptions); 203public override AnalyzerConfigOptions GetOptions(SyntaxTree tree) => throw new System.NotSupportedException(); 204public override AnalyzerConfigOptions GetOptions(AdditionalText textFile) => throw new System.NotSupportedException();
Microsoft.Gen.ContextualOptions (2)
src\Generators\Shared\GeneratorUtilities.cs (2)
147public static bool TryRetrieveOptionsValue(AnalyzerConfigOptions options, string name, out string? value) 150public static string GetDefaultReportOutputPath(AnalyzerConfigOptions options)
Microsoft.Gen.Logging (2)
src\Generators\Shared\GeneratorUtilities.cs (2)
147public static bool TryRetrieveOptionsValue(AnalyzerConfigOptions options, string name, out string? value) 150public static string GetDefaultReportOutputPath(AnalyzerConfigOptions options)
Microsoft.Gen.MetadataExtractor (5)
MetadataReportsGenerator.cs (1)
74var options = context.AnalyzerConfigOptions.GlobalOptions;
src\Generators\Microsoft.Gen.ComplianceReports\ComplianceReportsGenerator.cs (1)
84var options = context.AnalyzerConfigOptions.GlobalOptions;
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsGenerator.cs (1)
47var options = context.AnalyzerConfigOptions.GlobalOptions;
src\Generators\Shared\GeneratorUtilities.cs (2)
147public static bool TryRetrieveOptionsValue(AnalyzerConfigOptions options, string name, out string? value) 150public static string GetDefaultReportOutputPath(AnalyzerConfigOptions options)
Microsoft.Gen.MetadataExtractor.Unit.Tests (3)
GeneratorTests.cs (3)
255public override AnalyzerConfigOptions GlobalOptions => new Options(analyzerOptions); 256public override AnalyzerConfigOptions GetOptions(SyntaxTree tree) => throw new NotSupportedException(); 257public override AnalyzerConfigOptions GetOptions(AdditionalText textFile) => throw new NotSupportedException();
Microsoft.Gen.Metrics (2)
src\Generators\Shared\GeneratorUtilities.cs (2)
147public static bool TryRetrieveOptionsValue(AnalyzerConfigOptions options, string name, out string? value) 150public static string GetDefaultReportOutputPath(AnalyzerConfigOptions options)
Microsoft.Gen.MetricsReports (3)
MetricsReportsGenerator.cs (1)
47var options = context.AnalyzerConfigOptions.GlobalOptions;
src\Generators\Shared\GeneratorUtilities.cs (2)
147public static bool TryRetrieveOptionsValue(AnalyzerConfigOptions options, string name, out string? value) 150public static string GetDefaultReportOutputPath(AnalyzerConfigOptions options)
Microsoft.Gen.MetricsReports.Unit.Tests (3)
GeneratorTests.cs (3)
191public override AnalyzerConfigOptions GlobalOptions => new Options(analyzerOptions); 193public override AnalyzerConfigOptions GetOptions(SyntaxTree tree) => throw new NotSupportedException(); 194public override AnalyzerConfigOptions GetOptions(AdditionalText textFile) => throw new NotSupportedException();
Microsoft.Interop.LibraryImportGenerator (5)
Analyzers\ConvertToLibraryImportFixer.cs (1)
649AnalyzerConfigOptions options = document.Project.AnalyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(syntaxTree);
LibraryImportGeneratorOptions.cs (4)
10public LibraryImportGeneratorOptions(AnalyzerConfigOptions options) 20private static bool GetBoolOption(this AnalyzerConfigOptions options, string key) 27internal static bool UseMarshalType(this AnalyzerConfigOptions options) => options.GetBoolOption(UseMarshalTypeOption); 29internal static bool GenerateForwarders(this AnalyzerConfigOptions options) => options.GetBoolOption(GenerateForwardersOption);
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
107 var fileOptions = optionsProvider.GetOptions(additionalText);
PlatformDocAnalyzer (2)
PlatformDocAnalyzer.cs (2)
81var options = context.Options.AnalyzerConfigOptionsProvider.GlobalOptions; 112AnalyzerConfigOptions fileOptions = context.Options.AnalyzerConfigOptionsProvider.GetOptions(file);
Roslyn.Diagnostics.Analyzers (33)
src\roslyn\src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
162internal static GeneratedKind GetGeneratedCodeKindFromOptions(AnalyzerConfigOptions options)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AggregateCategorizedAnalyzerConfigOptions.cs (1)
77var options = analyzerConfigOptionsProvider.GetOptions(tree);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerConfigOptionsProviderExtensions.cs (1)
18return analyzerConfigOptionsProvider.GetType().GetField("_treeDict", flags)?.GetValue(analyzerConfigOptionsProvider) is ImmutableDictionary<object, AnalyzerConfigOptions> perTreeOptionsMap
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (5)
15/// Analyzer configuration options for a given syntax tree from <see cref="AnalyzerConfigOptions"/> 19private readonly AnalyzerConfigOptions? _analyzerConfigOptions; 24private SyntaxTreeCategorizedAnalyzerConfigOptions(AnalyzerConfigOptions? analyzerConfigOptions) 29public static SyntaxTreeCategorizedAnalyzerConfigOptions Create(AnalyzerConfigOptions? analyzerConfigOptions) 50static ImmutableDictionary<string, string>? TryGetBackingOptionsDictionary(AnalyzerConfigOptions analyzerConfigOptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (5)
17/// <see cref="AnalyzerConfigOptions"/> that memoize structured (parsed) form of certain complex options to avoid parsing them multiple times. 24private readonly AnalyzerConfigOptions _options; 28public Implementation(AnalyzerConfigOptions options, StructuredAnalyzerConfigOptions? fallback) 52public static StructuredAnalyzerConfigOptions Create(AnalyzerConfigOptions options, StructuredAnalyzerConfigOptions? fallback = null) 58public static bool TryGetStructuredOptions(AnalyzerConfigOptions configOptions, [NotNullWhen(true)] out StructuredAnalyzerConfigOptions? options)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (3)
21= ImmutableHashSet.CreateRange(AnalyzerConfigOptions.KeyComparer, [ 48var activeSectionValues = ImmutableDictionary.CreateBuilder<string, string>(AnalyzerConfigOptions.KeyComparer); 49var activeSectionLines = ImmutableDictionary.CreateBuilder<string, TextLine>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalyzerConfigOptionsExtensions.cs (5)
15public static T GetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 18public static T GetEditorConfigOptionValue<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, T defaultValue) 21public static bool TryGetEditorConfigOption<T>(this AnalyzerConfigOptions analyzerConfigOptions, IOption2 option, out T value) 56public static bool IsCodeStyleSeverityEnabled(this AnalyzerConfigOptions analyzerConfigOptions) 65public static bool IsAnalysisLevelGreaterThanOrEquals(this AnalyzerConfigOptions analyzerConfigOptions, int minAnalysisLevel)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (5)
37AnalyzerConfigOptions? analyzerOptions, 74var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(tree); 97public static bool IsDefinedInEditorConfig(this DiagnosticDescriptor descriptor, AnalyzerConfigOptions analyzerConfigOptions) 147AnalyzerConfigOptions analyzerConfigOptions, 216AnalyzerConfigOptions analyzerOptions,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
235var analyzerConfigOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GetOptions(syntaxTree);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
17public static NamingStylePreferences ParseDictionary(AnalyzerConfigOptions allRawConventions) 84internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\IOptionReader.cs (3)
15internal sealed class AnalyzerConfigOptionsReader(AnalyzerConfigOptions options) : IOptionsReader 17public readonly AnalyzerConfigOptions Options = options; 25public static IOptionsReader GetOptionsReader(this AnalyzerConfigOptions configOptions)