3 overrides of GlobalOptions
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\CompilerAnalyzerConfigOptionsProvider.cs (1)
26public override AnalyzerConfigOptions GlobalOptions { get; }
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestAnalyzerConfigOptionsProvider.cs (1)
15public override AnalyzerConfigOptions GlobalOptions { get; }
System.Windows.Forms.Analyzers.CSharp.Tests (1)
CompilerAnalyzerConfigOptionsProvider.cs (1)
31public override AnalyzerConfigOptions GlobalOptions { get; }
33 references to GlobalOptions
BuildActionTelemetryTable (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
86var severityInGlobalConfig = descriptor.GetEffectiveSeverity(analyzerOptions.AnalyzerConfigOptionsProvider.GlobalOptions, providerAndTree);
ILLink.RoslynAnalyzer (1)
AnalyzerOptionsExtensions.cs (1)
16 return options.AnalyzerConfigOptionsProvider.GlobalOptions.TryGetValue (
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (2)
88=> analyzerOptions.AnalyzerConfigOptionsProvider.GlobalOptions.IsAnalysisLevelGreaterThanOrEquals(minAnalysisLevel); 192var globalOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GlobalOptions;
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
290var skipCustomConfiguration = !analyzerOptions.AnalyzerConfigOptionsProvider.GlobalOptions.IsCodeStyleSeverityEnabled();
src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (2)
61context.Options.AnalyzerConfigOptionsProvider.GlobalOptions.TryGetValue(MatchFolderAndNamespaceConstants.RootNamespaceOption, out var rootNamespace); 64if (!context.Options.AnalyzerConfigOptionsProvider.GlobalOptions.TryGetValue(MatchFolderAndNamespaceConstants.ProjectDirOption, out var projectDir)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
86var severityInGlobalConfig = descriptor.GetEffectiveSeverity(analyzerOptions.AnalyzerConfigOptionsProvider.GlobalOptions, providerAndTree);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
10368po.GlobalOptions.TryGetValue("a", out globalA); 10371ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Select((p, _) => { p.GlobalOptions.TryGetValue("a", out var value); return value; }), (spc, value) => 14640var globalOptions = gc.AnalyzerConfigOptions.GlobalOptions;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
SourceGeneration\GeneratorDriverTests.cs (3)
868Assert.True(passedIn!.GlobalOptions.TryGetValue("a", out var item1)); 871Assert.True(passedIn!.GlobalOptions.TryGetValue("b", out var item2)); 2622p.GlobalOptions.TryGetValue("test", out var analyzerOptionsValue);
Microsoft.CodeAnalysis.Features (5)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (2)
88=> analyzerOptions.AnalyzerConfigOptionsProvider.GlobalOptions.IsAnalysisLevelGreaterThanOrEquals(minAnalysisLevel); 192var globalOptions = analyzerOptions.AnalyzerConfigOptionsProvider.GlobalOptions;
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
290var skipCustomConfiguration = !analyzerOptions.AnalyzerConfigOptionsProvider.GlobalOptions.IsCodeStyleSeverityEnabled();
src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (2)
61context.Options.AnalyzerConfigOptionsProvider.GlobalOptions.TryGetValue(MatchFolderAndNamespaceConstants.RootNamespaceOption, out var rootNamespace); 64if (!context.Options.AnalyzerConfigOptionsProvider.GlobalOptions.TryGetValue(MatchFolderAndNamespaceConstants.ProjectDirOption, out var projectDir)
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\CompileTimeSolutionProviderTests.cs (1)
86(o, ct) => o.GlobalOptions.TryGetValue("build_property.SuppressRazorSourceGenerator", out var value) && bool.Parse(value));
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
86var severityInGlobalConfig = descriptor.GetEffectiveSeverity(analyzerOptions.AnalyzerConfigOptionsProvider.GlobalOptions, providerAndTree);
Microsoft.Gen.ComplianceReports (2)
ComplianceReportsGenerator.cs (1)
84var options = context.AnalyzerConfigOptions.GlobalOptions;
src\Generators\Shared\GeneratorUtilities.cs (1)
143_ = context.AnalyzerConfigOptions.GlobalOptions.TryGetValue(msBuildProperty, out var generateFiles);
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
143_ = context.AnalyzerConfigOptions.GlobalOptions.TryGetValue(msBuildProperty, out var generateFiles);
Microsoft.Gen.Logging (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
143_ = context.AnalyzerConfigOptions.GlobalOptions.TryGetValue(msBuildProperty, out var generateFiles);
Microsoft.Gen.Metrics (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
143_ = context.AnalyzerConfigOptions.GlobalOptions.TryGetValue(msBuildProperty, out var generateFiles);
Microsoft.Gen.MetricsReports (2)
MetricsReportsGenerator.cs (1)
62var options = context.AnalyzerConfigOptions.GlobalOptions;
src\Generators\Shared\GeneratorUtilities.cs (1)
143_ = context.AnalyzerConfigOptions.GlobalOptions.TryGetValue(msBuildProperty, out var generateFiles);
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\ComHostingDoesNotSupportGeneratedComInterfaceAnalyzer.cs (1)
25if (!context.Options.AnalyzerConfigOptionsProvider.GlobalOptions.TryGetValue("build_property.EnableComHosting", out string? enableComHosting)
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
133bool enableGeneratedComInterfaceComImportInterop = context.Options.AnalyzerConfigOptionsProvider.GlobalOptions.TryGetValue("build_property.EnableGeneratedComInterfaceComImportInterop", out string enableSourceGeneratedBuiltInInteropOption)
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\ConvertToLibraryImportAnalyzer.cs (1)
76var options = new LibraryImportGeneratorOptions(context.Options.AnalyzerConfigOptionsProvider.GlobalOptions);
LibraryImportGenerator.cs (1)
66.Select(static (options, ct) => new LibraryImportGeneratorOptions(options.GlobalOptions));
System.Windows.Forms.Analyzers (1)
System\Windows\Forms\Analyzers\AnalyzerConfigOptionsProviderExtensions.cs (1)
19return analyzerConfigOptions.GlobalOptions.TryGetValue($"build_property.{name}", out value);