8 instantiations of AnalyzerOptions
Microsoft.Analyzers.Extra.Tests (1)
Resources\AnalyzerOptionsFactory.cs (1)
19return new AnalyzerOptions(immutableFiles);
Microsoft.Analyzers.Local.Tests (1)
Resources\AnalyzerOptionsFactory.cs (1)
19return new AnalyzerOptions(immutableFiles);
Microsoft.CodeAnalysis (4)
CommandLine\CommonCompiler.cs (1)
1560=> new Diagnostics.AnalyzerOptions(additionalTextFiles, analyzerConfigOptionsProvider);
DiagnosticAnalyzer\AnalyzerOptions.cs (3)
17internal static readonly AnalyzerOptions Empty = new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty); 63return new AnalyzerOptions(additionalFiles); 69: new(this.AdditionalFiles, optionsProvider);
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\ProjectState.cs (2)
328static self => new AnalyzerOptions( 337static self => new AnalyzerOptions(
524 references to AnalyzerOptions
dotnet-format (2)
Analyzers\AnalyzerOptionExtensions.cs (1)
31this AnalyzerOptions? analyzerOptions,
Analyzers\Extensions.cs (1)
79AnalyzerOptions? analyzerOptions,
GenerateDocumentationAndConfigFiles (47)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (2)
30/// Creates an instance of this provider from the specified <see cref="AnalyzerOptions"/>. 34public static AdditionalFileProvider FromOptions(AnalyzerOptions options)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (42)
25private static readonly ConditionalWeakTable<AnalyzerOptions, ICategorizedAnalyzerConfigOptions> s_cachedOptions = new(); 46this AnalyzerOptions options, 56this AnalyzerOptions options, 64this AnalyzerOptions options, 74this AnalyzerOptions options, 82this AnalyzerOptions options, 92this AnalyzerOptions options, 100this AnalyzerOptions options, 107this AnalyzerOptions options, 115this AnalyzerOptions options, 125this AnalyzerOptions options, 133this AnalyzerOptions options, 149this AnalyzerOptions options, 176this AnalyzerOptions options, 186this AnalyzerOptions options, 197this AnalyzerOptions options, 209this AnalyzerOptions options, 221this AnalyzerOptions options, 238this AnalyzerOptions options, 245this AnalyzerOptions options, 252this AnalyzerOptions options, 259this AnalyzerOptions options, 296AnalyzerOptions options, 305AnalyzerOptions options, 315this AnalyzerOptions options, 322this AnalyzerOptions options, 329this AnalyzerOptions options, 336this AnalyzerOptions options, 378this AnalyzerOptions options, 385this AnalyzerOptions options, 424this AnalyzerOptions options, 432this AnalyzerOptions options, 439this AnalyzerOptions options, 446this AnalyzerOptions options, 453this AnalyzerOptions options, 519this AnalyzerOptions options, 543this AnalyzerOptions options, 576this AnalyzerOptions options, 591this AnalyzerOptions options, 610this AnalyzerOptions options, 621this AnalyzerOptions options, Compilation compilation) 634AnalyzerOptions options,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
230public static bool IsGeneratedCode(this SyntaxTree syntaxTree, AnalyzerOptions? analyzerOptions, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
ILLink.RoslynAnalyzer (8)
AnalyzerOptionsExtensions.cs (2)
13this AnalyzerOptions options, 23this AnalyzerOptions options,
DataFlowAnalyzerContext.cs (1)
40public static DataFlowAnalyzerContext Create(AnalyzerOptions options, Compilation compilation, ImmutableArray<RequiresAnalyzerBase> requiresAnalyzers)
RequiresAnalyzerBase.cs (2)
355internal abstract bool IsAnalyzerEnabled(AnalyzerOptions options); 419var options = context.Options;
RequiresAssemblyFilesAnalyzer.cs (1)
55internal override bool IsAnalyzerEnabled(AnalyzerOptions options)
RequiresDynamicCodeAnalyzer.cs (1)
47internal override bool IsAnalyzerEnabled(AnalyzerOptions options) =>
RequiresUnreferencedCodeAnalyzer.cs (1)
55internal override bool IsAnalyzerEnabled(AnalyzerOptions options) =>
Microsoft.Analyzers.Extra.Tests (3)
Resources\AnalyzerOptionsFactory.cs (1)
14public static AnalyzerOptions WithFiles(params string[] fileNames)
Resources\RoslynTestUtils.cs (2)
239AnalyzerOptions? options = null, 296AnalyzerOptions? analyzerOptions = null)
Microsoft.Analyzers.Local.Tests (5)
ApiLifecycle\ApiLifecycleAnalyzerTest.cs (2)
30var options = AnalyzerOptionsFactory.WithFiles(fileName); 57var options = AnalyzerOptionsFactory.WithFiles(fileName);
Resources\AnalyzerOptionsFactory.cs (1)
14public static AnalyzerOptions WithFiles(params string[] fileNames)
Resources\RoslynTestUtils.cs (2)
239AnalyzerOptions? options = null, 297AnalyzerOptions? analyzerOptions = null)
Microsoft.CodeAnalysis (141)
CommandLine\CommonCompiler.cs (4)
1135AnalyzerOptions analyzerOptions = CreateAnalyzerOptions(additionalTextFiles, analyzerConfigProvider); 1218AnalyzerOptions analyzerOptions = CreateAnalyzerOptions( 1528(CancellationTokenSource, DiagnosticBag, AnalyzerDriver) initializeAnalyzerDriver(AnalyzerOptions analyzerOptions, ref Compilation compilation) 1557protected virtual Diagnostics.AnalyzerOptions CreateAnalyzerOptions(
DiagnosticAnalyzer\AnalyzerDriver.cs (12)
479Action<Diagnostic, AnalyzerOptions, CancellationToken>? addNotCategorizedDiagnostic = null; 480Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, bool, CancellationToken>? addCategorizedLocalDiagnostic = null; 481Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, CancellationToken>? addCategorizedNonLocalDiagnostic = null; 493var options = analysisOptions.Options ?? AnalyzerOptions.Empty; 825AnalyzerOptions options, 845AnalyzerOptions options, 953AnalyzerOptions analyzerOptions, 1977internal static Action<Diagnostic, AnalyzerOptions, CancellationToken> GetDiagnosticSink(Action<Diagnostic> addDiagnosticCore, Compilation compilation, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds) 1989internal static Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, bool, CancellationToken> GetDiagnosticSink(Action<Diagnostic, DiagnosticAnalyzer, bool> addLocalDiagnosticCore, Compilation compilation, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds) 2001internal static Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions?, CancellationToken> GetDiagnosticSink(Action<Diagnostic, DiagnosticAnalyzer> addDiagnosticCore, Compilation compilation, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds) 2013private static Diagnostic? GetFilteredDiagnostic(Diagnostic diagnostic, Compilation compilation, AnalyzerOptions? analyzerOptions, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds, CancellationToken cancellationToken)
DiagnosticAnalyzer\AnalyzerExecutor.AnalyzerDiagnosticReporter.cs (8)
32AnalyzerOptions analyzerOptions, 34Action<Diagnostic, AnalyzerOptions, CancellationToken>? addNonCategorizedDiagnostic, 35Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, bool, CancellationToken>? addCategorizedLocalDiagnostic, 36Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, CancellationToken>? addCategorizedNonLocalDiagnostic, 74private AnalyzerOptions _analyzerOptions; 76private Action<Diagnostic, AnalyzerOptions, CancellationToken>? _addNonCategorizedDiagnostic; 77private Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, bool, CancellationToken>? _addCategorizedLocalDiagnostic; 78private Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, CancellationToken>? _addCategorizedNonLocalDiagnostic;
DiagnosticAnalyzer\AnalyzerExecutor.cs (36)
34private readonly Action<Diagnostic, AnalyzerOptions, CancellationToken>? _addNonCategorizedDiagnostic; 35private readonly Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, bool, CancellationToken>? _addCategorizedLocalDiagnostic; 36private readonly Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, CancellationToken>? _addCategorizedNonLocalDiagnostic; 63private readonly Dictionary<DiagnosticAnalyzer, AnalyzerOptions>? _analyzerToCachedOptions; 115AnalyzerOptions analyzerOptions, 116Action<Diagnostic, AnalyzerOptions, CancellationToken>? addNonCategorizedDiagnostic, 131Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, bool, CancellationToken>? addCategorizedLocalDiagnostic = null, 132Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, CancellationToken>? addCategorizedNonLocalDiagnostic = null, 149AnalyzerOptions analyzerOptions, 150Action<Diagnostic, AnalyzerOptions, CancellationToken>? addNonCategorizedDiagnosticOpt, 165Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, bool, CancellationToken>? addCategorizedLocalDiagnostic, 166Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, CancellationToken>? addCategorizedNonLocalDiagnostic, 194var map = new Dictionary<DiagnosticAnalyzer, AnalyzerOptions>( 201var optionsProviderToOptions = new Dictionary<AnalyzerConfigOptionsProvider, AnalyzerOptions>(ReferenceEqualityComparer.Instance); 206var specificOptions = optionsProviderToOptions.GetOrAdd( 223internal AnalyzerOptions AnalyzerOptions { get; } 293Func<TAnalysisContext, AnalyzerOptions, TAnalysisContext> withOptions) 305private AnalyzerOptions GetAnalyzerSpecificOptions(DiagnosticAnalyzer analyzer) 378var options = GetAnalyzerSpecificOptions(suppressor); 405var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 460var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 579var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 638var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 696var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 746var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 829AnalyzerOptions analyzerOptions, 836public readonly AnalyzerOptions AnalyzerOptions = analyzerOptions; 867var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 980var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 1149var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 1254var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 1565AnalyzerOptions options, 1606AnalyzerOptions analyzerOptions, 1630AnalyzerOptions analyzerOptions, 1643AnalyzerOptions analyzerOptions, 1655AnalyzerOptions analyzerOptions,
DiagnosticAnalyzer\AnalyzerOptions.cs (5)
17internal static readonly AnalyzerOptions Empty = new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty); 56public AnalyzerOptions WithAdditionalFiles(ImmutableArray<AdditionalText> additionalFiles) 66internal AnalyzerOptions WithAnalyzerConfigOptionsProvider(AnalyzerConfigOptionsProvider optionsProvider) 78var other = obj as AnalyzerOptions;
DiagnosticAnalyzer\AnalyzerOptionsExtensions.cs (2)
23public static ImmutableArray<AdditionalText> GetAdditionalFiles(this AnalyzerOptions? analyzerOptions) 34this AnalyzerOptions? analyzerOptions,
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (7)
69/// <inheritdoc cref="CompilationWithAnalyzers(Compilation, ImmutableArray{DiagnosticAnalyzer}, AnalyzerOptions?)"/> 72public CompilationWithAnalyzers(Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerOptions? options, CancellationToken cancellationToken) 83public CompilationWithAnalyzers(Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerOptions? options) 510/// The given <paramref name="file"/> must be part of <see cref="AnalyzerOptions.AdditionalFiles"/> for the <see cref="AnalysisOptions"/> for this CompilationWithAnalyzers instance. 524/// The given <paramref name="file"/> must be part of <see cref="AnalyzerOptions.AdditionalFiles"/> for the <see cref="AnalysisOptions"/> for this CompilationWithAnalyzers instance. 541/// The given <paramref name="file"/> must be part of <see cref="AnalyzerOptions.AdditionalFiles"/> for the <see cref="AnalysisOptions"/> for this CompilationWithAnalyzers instance. 557/// The given <paramref name="file"/> must be part of <see cref="AnalyzerOptions.AdditionalFiles"/> for the <see cref="AnalysisOptions"/> for this CompilationWithAnalyzers instance.
DiagnosticAnalyzer\CompilationWithAnalyzersOptions.cs (7)
14private readonly AnalyzerOptions? _options; 24public AnalyzerOptions? Options => _options; 66AnalyzerOptions options, 83AnalyzerOptions options, 102AnalyzerOptions? options, 112/// <inheritdoc cref="CompilationWithAnalyzersOptions.CompilationWithAnalyzersOptions(AnalyzerOptions?, Action{Exception, DiagnosticAnalyzer, Diagnostic}?, bool, bool, bool, Func{Exception, bool}?)"/> 118AnalyzerOptions? options,
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (51)
329private readonly AnalyzerOptions _options; 340public AnalyzerOptions Options { get { return _options; } } 347protected CompilationStartAnalysisContext(Compilation compilation, AnalyzerOptions options, CancellationToken cancellationToken) 568private readonly AnalyzerOptions _options; 582public AnalyzerOptions Options { get { return _options; } } 590public CompilationAnalysisContext(Compilation compilation, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken) 597AnalyzerOptions options, 691private readonly AnalyzerOptions _options; 704public AnalyzerOptions Options { get { return _options; } } 729public SemanticModelAnalysisContext(SemanticModel semanticModel, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken) 736AnalyzerOptions options, 775private readonly AnalyzerOptions _options; 793public AnalyzerOptions Options { get { return _options; } } 822public SymbolAnalysisContext(ISymbol symbol, Compilation compilation, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken) 830AnalyzerOptions options, 884public AnalyzerOptions Options { get; } 911public SymbolStartAnalysisContext(ISymbol symbol, Compilation compilation, AnalyzerOptions options, CancellationToken cancellationToken) 916internal SymbolStartAnalysisContext(ISymbol symbol, Compilation compilation, AnalyzerOptions options, bool isGeneratedCode, SyntaxTree? filterTree, TextSpan? filterSpan, CancellationToken cancellationToken) 1032private readonly AnalyzerOptions _options; 1053public AnalyzerOptions Options { get { return _options; } } 1078protected CodeBlockStartAnalysisContext(SyntaxNode codeBlock, ISymbol owningSymbol, SemanticModel semanticModel, AnalyzerOptions options, CancellationToken cancellationToken) 1087AnalyzerOptions options, 1141private readonly AnalyzerOptions _options; 1164public AnalyzerOptions Options { get { return _options; } } 1189public CodeBlockAnalysisContext(SyntaxNode codeBlock, ISymbol owningSymbol, SemanticModel semanticModel, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken) 1198AnalyzerOptions options, 1249private readonly AnalyzerOptions _options; 1274public AnalyzerOptions Options => _options; 1303AnalyzerOptions options, 1314AnalyzerOptions options, 1390private readonly AnalyzerOptions _options; 1417public AnalyzerOptions Options => _options; 1446AnalyzerOptions options, 1459AnalyzerOptions options, 1522private readonly AnalyzerOptions _options; 1535public AnalyzerOptions Options => _options; 1557public SyntaxTreeAnalysisContext(SyntaxTree tree, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken) 1564AnalyzerOptions options, 1613public AnalyzerOptions Options { get; } 1634AnalyzerOptions options, 1674private readonly AnalyzerOptions _options; 1702public AnalyzerOptions Options => _options; 1727public SyntaxNodeAnalysisContext(SyntaxNode node, ISymbol? containingSymbol, SemanticModel semanticModel, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken) 1733public SyntaxNodeAnalysisContext(SyntaxNode node, SemanticModel semanticModel, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken) 1742AnalyzerOptions options, 1784private readonly AnalyzerOptions _options; 1808public AnalyzerOptions Options => _options; 1837AnalyzerOptions options, 1849AnalyzerOptions options, 1918public AnalyzerOptions Options { get; } 1927AnalyzerOptions options,
DiagnosticAnalyzer\DiagnosticAnalyzerExtensions.cs (3)
14/// <inheritdoc cref="WithAnalyzers(Compilation, ImmutableArray{DiagnosticAnalyzer}, AnalyzerOptions?)"/> 17public static CompilationWithAnalyzers WithAnalyzers(this Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerOptions? options, CancellationToken cancellationToken) 29public static CompilationWithAnalyzers WithAnalyzers(this Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerOptions? options = null)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (6)
132AnalyzerOptions options, 219public AnalyzerCompilationStartAnalysisContext WithOptions(AnalyzerOptions options) 236AnalyzerOptions options, 288public AnalyzerSymbolStartAnalysisContext WithOptions(AnalyzerOptions analyzerOptions) 306AnalyzerOptions options, 340AnalyzerOptions options,
Microsoft.CodeAnalysis.Analyzers (53)
MetaAnalyzers\CompilerExtensionStrictApiAnalyzer.cs (1)
65internal static bool IsStrictAnalysisEnabled(AnalyzerOptions options)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (2)
847AnalyzerOptions options, 864AnalyzerOptions options,
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ResourceStringsFormat.cs (3)
23private static bool HasResxAdditionalFiles(AnalyzerOptions options) 37AnalyzerOptions options, 55private static ImmutableDictionary<string, (string value, Location location)> CreateResourceMap(AnalyzerOptions options, string resourceFileName, CancellationToken cancellationToken)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (2)
30/// Creates an instance of this provider from the specified <see cref="AnalyzerOptions"/>. 34public static AdditionalFileProvider FromOptions(AnalyzerOptions options)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (42)
25private static readonly ConditionalWeakTable<AnalyzerOptions, ICategorizedAnalyzerConfigOptions> s_cachedOptions = new(); 46this AnalyzerOptions options, 56this AnalyzerOptions options, 64this AnalyzerOptions options, 74this AnalyzerOptions options, 82this AnalyzerOptions options, 92this AnalyzerOptions options, 100this AnalyzerOptions options, 107this AnalyzerOptions options, 115this AnalyzerOptions options, 125this AnalyzerOptions options, 133this AnalyzerOptions options, 149this AnalyzerOptions options, 176this AnalyzerOptions options, 186this AnalyzerOptions options, 197this AnalyzerOptions options, 209this AnalyzerOptions options, 221this AnalyzerOptions options, 238this AnalyzerOptions options, 245this AnalyzerOptions options, 252this AnalyzerOptions options, 259this AnalyzerOptions options, 296AnalyzerOptions options, 305AnalyzerOptions options, 315this AnalyzerOptions options, 322this AnalyzerOptions options, 329this AnalyzerOptions options, 336this AnalyzerOptions options, 378this AnalyzerOptions options, 385this AnalyzerOptions options, 424this AnalyzerOptions options, 432this AnalyzerOptions options, 439this AnalyzerOptions options, 446this AnalyzerOptions options, 453this AnalyzerOptions options, 519this AnalyzerOptions options, 543this AnalyzerOptions options, 576this AnalyzerOptions options, 591this AnalyzerOptions options, 610this AnalyzerOptions options, 621this AnalyzerOptions options, Compilation compilation) 634AnalyzerOptions options,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
230public static bool IsGeneratedCode(this SyntaxTree syntaxTree, AnalyzerOptions? analyzerOptions, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.AnalyzerUtilities (100)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (2)
30/// Creates an instance of this provider from the specified <see cref="AnalyzerOptions"/>. 34public static AdditionalFileProvider FromOptions(AnalyzerOptions options)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (42)
25private static readonly ConditionalWeakTable<AnalyzerOptions, ICategorizedAnalyzerConfigOptions> s_cachedOptions = new(); 46this AnalyzerOptions options, 56this AnalyzerOptions options, 64this AnalyzerOptions options, 74this AnalyzerOptions options, 82this AnalyzerOptions options, 92this AnalyzerOptions options, 100this AnalyzerOptions options, 107this AnalyzerOptions options, 115this AnalyzerOptions options, 125this AnalyzerOptions options, 133this AnalyzerOptions options, 149this AnalyzerOptions options, 176this AnalyzerOptions options, 186this AnalyzerOptions options, 197this AnalyzerOptions options, 209this AnalyzerOptions options, 221this AnalyzerOptions options, 238this AnalyzerOptions options, 245this AnalyzerOptions options, 252this AnalyzerOptions options, 259this AnalyzerOptions options, 296AnalyzerOptions options, 305AnalyzerOptions options, 315this AnalyzerOptions options, 322this AnalyzerOptions options, 329this AnalyzerOptions options, 336this AnalyzerOptions options, 378this AnalyzerOptions options, 385this AnalyzerOptions options, 424this AnalyzerOptions options, 432this AnalyzerOptions options, 439this AnalyzerOptions options, 446this AnalyzerOptions options, 453this AnalyzerOptions options, 519this AnalyzerOptions options, 543this AnalyzerOptions options, 576this AnalyzerOptions options, 591this AnalyzerOptions options, 610this AnalyzerOptions options, 621this AnalyzerOptions options, Compilation compilation) 634AnalyzerOptions options,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysis.cs (1)
31AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysisContext.cs (2)
27AnalyzerOptions analyzerOptions, 47AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysis.cs (2)
40AnalyzerOptions analyzerOptions, 84AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisContext.cs (2)
31AnalyzerOptions analyzerOptions, 69AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisHelper.cs (1)
125AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\GlobalFlowStateAnalysis\GlobalFlowStateAnalysis.cs (2)
63AnalyzerOptions analyzerOptions, 93AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\GlobalFlowStateAnalysis\GlobalFlowStateAnalysisContext.cs (2)
31AnalyzerOptions analyzerOptions, 59AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ParameterValidationAnalysis\ParameterValidationAnalysis.cs (3)
34AnalyzerOptions analyzerOptions, 62AnalyzerOptions analyzerOptions, 88AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ParameterValidationAnalysis\ParameterValidationAnalysisContext.cs (2)
30AnalyzerOptions analyzerOptions, 54AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAnalysis.cs (2)
33AnalyzerOptions analyzerOptions, 50AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAnalysisContext.cs (2)
28AnalyzerOptions analyzerOptions, 54AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.cs (3)
53AnalyzerOptions analyzerOptions, 155AnalyzerOptions analyzerOptions, 191AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysisContext.cs (2)
33AnalyzerOptions analyzerOptions, 76AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysis.cs (2)
32AnalyzerOptions analyzerOptions, 48AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysisContext.cs (2)
28AnalyzerOptions analyzerOptions, 70AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAnalysis.cs (3)
33AnalyzerOptions analyzerOptions, 47AnalyzerOptions analyzerOptions, 81AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAnalysisContext.cs (2)
29AnalyzerOptions analyzerOptions, 57AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractDataFlowAnalysisContext.cs (2)
33AnalyzerOptions analyzerOptions, 80public AnalyzerOptions AnalyzerOptions { get; }
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\InterproceduralAnalysisConfiguration.cs (4)
42AnalyzerOptions analyzerOptions, 53AnalyzerOptions analyzerOptions, 82AnalyzerOptions analyzerOptions, 93AnalyzerOptions analyzerOptions,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\Options\AnalyzerOptionsExtensions_FlowAnalysis.cs (12)
15this AnalyzerOptions options, 25this AnalyzerOptions options, 33this AnalyzerOptions options, 43this AnalyzerOptions options, 51this AnalyzerOptions options, 61this AnalyzerOptions options, 69this AnalyzerOptions options, 79this AnalyzerOptions options, 87this AnalyzerOptions options, 97this AnalyzerOptions options, 105this AnalyzerOptions options, 115this AnalyzerOptions options,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
230public static bool IsGeneratedCode(this SyntaxTree syntaxTree, AnalyzerOptions? analyzerOptions, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.CodeStyle (23)
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (4)
87protected static bool IsAnalysisLevelGreaterThanOrEquals(int minAnalysisLevel, AnalyzerOptions analyzerOptions) 110AnalyzerOptions analyzerOptions, 118AnalyzerOptions analyzerOptions, 148AnalyzerOptions analyzerOptions,
src\roslyn\src\Analyzers\Core\Analyzers\AnalyzerOptionsProvider.cs (1)
87public static AnalyzerOptionsProvider GetAnalyzerOptions(this AnalyzerOptions analyzerOptions, SyntaxTree syntaxTree)
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (8)
41AnalyzerOptions analyzerOptions, 89AnalyzerOptions analyzerOptions, 108AnalyzerOptions analyzerOptions, 157AnalyzerOptions analyzerOptions, 178AnalyzerOptions analyzerOptions, 204AnalyzerOptions analyzerOptions, 263AnalyzerOptions analyzerOptions, 291static IEnumerable<string> GetEffectiveCustomTags(DiagnosticDescriptor descriptor, NotificationOption2 notificationOption, AnalyzerOptions analyzerOptions)
src\roslyn\src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (3)
201(bool isCandidate, bool written) TryGetOrInitializeFieldState(IFieldSymbol fieldSymbol, AnalyzerOptions options, CancellationToken cancellationToken) 216AnalyzerOptions options, 308private static CodeStyleOption2<bool> GetCodeStyleOption(IFieldSymbol field, AnalyzerOptions options, out Location diagnosticLocation)
src\roslyn\src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
113AnalyzerOptions options,
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
200AnalyzerOptions analyzerOptions,
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
123AnalyzerOptions analyzerOptions,
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (2)
100public bool TrySimplify(SemanticModel model, SyntaxNode node, [NotNullWhen(true)] out Diagnostic? diagnostic, TSimplifierOptions options, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken) 121internal static Diagnostic CreateDiagnostic(SemanticModel model, TSimplifierOptions options, AnalyzerOptions analyzerOptions, TextSpan issueSpan, string diagnosticId, bool inDeclaration)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
230public static bool IsGeneratedCode(this SyntaxTree syntaxTree, AnalyzerOptions? analyzerOptions, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\Core\CodeFixes\AnalyzerOptionsProviders.cs (1)
17var analyzerOptions = document.Project.AnalyzerOptions;
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\roslyn\src\Analyzers\CSharp\Analyzers\CodeStyle\CSharpAnalyzerOptionsProvider.cs (1)
99public static CSharpAnalyzerOptionsProvider GetCSharpAnalyzerOptions(this AnalyzerOptions options, SyntaxTree syntaxTree)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (2)
39var analyzerOptions = context.Options; 72LambdaExpressionSyntax declaration, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitlyTypedLambdaExpressionDiagnosticAnalyzer.cs (1)
39var analyzerOptions = context.Options;
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (1)
310private Diagnostic CreateDiagnostic(Result result, NotificationOption2 notificationOption, AnalyzerOptions analyzerOptions)
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
210var options = context.Options;
Microsoft.CodeAnalysis.CSharp.Features (8)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (2)
44private readonly AnalyzerOptions _analyzerOptions; 73public TypeSyntaxSimplifierWalker(CSharpSimplifyTypeNamesDiagnosticAnalyzer analyzer, SemanticModel semanticModel, CSharpSimplifierOptions options, AnalyzerOptions analyzerOptions, TextSpanMutableIntervalTree? ignoredSpans, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\Analyzers\CodeStyle\CSharpAnalyzerOptionsProvider.cs (1)
99public static CSharpAnalyzerOptionsProvider GetCSharpAnalyzerOptions(this AnalyzerOptions options, SyntaxTree syntaxTree)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (2)
39var analyzerOptions = context.Options; 72LambdaExpressionSyntax declaration, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitlyTypedLambdaExpressionDiagnosticAnalyzer.cs (1)
39var analyzerOptions = context.Options;
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (1)
310private Diagnostic CreateDiagnostic(Result result, NotificationOption2 notificationOption, AnalyzerOptions analyzerOptions)
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
210var options = context.Options;
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (2)
Analyzers\OmniSharpWorkspaceAnalyzerOptionsFactory.cs (2)
12public static AnalyzerOptions Create(Solution solution, AnalyzerOptions options)
Microsoft.CodeAnalysis.Features (23)
Diagnostics\Service\DiagnosticAnalyzerService_CompilationWithAnalyzersPair.cs (1)
123(AnalyzerOptions sharedOptions, Func<DiagnosticAnalyzer, AnalyzerConfigOptionsProvider>? analyzerSpecificOptionsFactory) GetOptions()
src\roslyn\src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (4)
87protected static bool IsAnalysisLevelGreaterThanOrEquals(int minAnalysisLevel, AnalyzerOptions analyzerOptions) 110AnalyzerOptions analyzerOptions, 118AnalyzerOptions analyzerOptions, 148AnalyzerOptions analyzerOptions,
src\roslyn\src\Analyzers\Core\Analyzers\AnalyzerOptionsProvider.cs (1)
87public static AnalyzerOptionsProvider GetAnalyzerOptions(this AnalyzerOptions analyzerOptions, SyntaxTree syntaxTree)
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (8)
41AnalyzerOptions analyzerOptions, 89AnalyzerOptions analyzerOptions, 108AnalyzerOptions analyzerOptions, 157AnalyzerOptions analyzerOptions, 178AnalyzerOptions analyzerOptions, 204AnalyzerOptions analyzerOptions, 263AnalyzerOptions analyzerOptions, 291static IEnumerable<string> GetEffectiveCustomTags(DiagnosticDescriptor descriptor, NotificationOption2 notificationOption, AnalyzerOptions analyzerOptions)
src\roslyn\src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (3)
201(bool isCandidate, bool written) TryGetOrInitializeFieldState(IFieldSymbol fieldSymbol, AnalyzerOptions options, CancellationToken cancellationToken) 216AnalyzerOptions options, 308private static CodeStyleOption2<bool> GetCodeStyleOption(IFieldSymbol field, AnalyzerOptions options, out Location diagnosticLocation)
src\roslyn\src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
113AnalyzerOptions options,
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
200AnalyzerOptions analyzerOptions,
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
123AnalyzerOptions analyzerOptions,
src\roslyn\src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (2)
100public bool TrySimplify(SemanticModel model, SyntaxNode node, [NotNullWhen(true)] out Diagnostic? diagnostic, TSimplifierOptions options, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken) 121internal static Diagnostic CreateDiagnostic(SemanticModel model, TSimplifierOptions options, AnalyzerOptions analyzerOptions, TextSpan issueSpan, string diagnosticId, bool inDeclaration)
src\roslyn\src\Analyzers\Core\CodeFixes\AnalyzerOptionsProviders.cs (1)
17var analyzerOptions = document.Project.AnalyzerOptions;
Microsoft.CodeAnalysis.ResxSourceGenerator (47)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (2)
30/// Creates an instance of this provider from the specified <see cref="AnalyzerOptions"/>. 34public static AdditionalFileProvider FromOptions(AnalyzerOptions options)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (42)
25private static readonly ConditionalWeakTable<AnalyzerOptions, ICategorizedAnalyzerConfigOptions> s_cachedOptions = new(); 46this AnalyzerOptions options, 56this AnalyzerOptions options, 64this AnalyzerOptions options, 74this AnalyzerOptions options, 82this AnalyzerOptions options, 92this AnalyzerOptions options, 100this AnalyzerOptions options, 107this AnalyzerOptions options, 115this AnalyzerOptions options, 125this AnalyzerOptions options, 133this AnalyzerOptions options, 149this AnalyzerOptions options, 176this AnalyzerOptions options, 186this AnalyzerOptions options, 197this AnalyzerOptions options, 209this AnalyzerOptions options, 221this AnalyzerOptions options, 238this AnalyzerOptions options, 245this AnalyzerOptions options, 252this AnalyzerOptions options, 259this AnalyzerOptions options, 296AnalyzerOptions options, 305AnalyzerOptions options, 315this AnalyzerOptions options, 322this AnalyzerOptions options, 329this AnalyzerOptions options, 336this AnalyzerOptions options, 378this AnalyzerOptions options, 385this AnalyzerOptions options, 424this AnalyzerOptions options, 432this AnalyzerOptions options, 439this AnalyzerOptions options, 446this AnalyzerOptions options, 453this AnalyzerOptions options, 519this AnalyzerOptions options, 543this AnalyzerOptions options, 576this AnalyzerOptions options, 591this AnalyzerOptions options, 610this AnalyzerOptions options, 621this AnalyzerOptions options, Compilation compilation) 634AnalyzerOptions options,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
230public static bool IsGeneratedCode(this SyntaxTree syntaxTree, AnalyzerOptions? analyzerOptions, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.vb (2)
40Private ReadOnly _analyzerOptions As AnalyzerOptions 70Public Sub New(analyzer As VisualBasicSimplifyTypeNamesDiagnosticAnalyzer, semanticModel As SemanticModel, options As VisualBasicSimplifierOptions, analyzerOptions As AnalyzerOptions, ignoredSpans As TextSpanMutableIntervalTree, cancellationToken As CancellationToken)
Microsoft.CodeAnalysis.Workspaces (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
230public static bool IsGeneratedCode(this SyntaxTree syntaxTree, AnalyzerOptions? analyzerOptions, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Workspace\Solution\Project.cs (2)
152public AnalyzerOptions AnalyzerOptions => State.ProjectAnalyzerOptions; 157public AnalyzerOptions HostAnalyzerOptions => State.HostAnalyzerOptions;
Workspace\Solution\ProjectState.cs (2)
325public AnalyzerOptions ProjectAnalyzerOptions 333public AnalyzerOptions HostAnalyzerOptions
Roslyn.Diagnostics.Analyzers (47)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\AdditionalFileProvider.cs (2)
30/// Creates an instance of this provider from the specified <see cref="AnalyzerOptions"/>. 34public static AdditionalFileProvider FromOptions(AnalyzerOptions options)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (42)
25private static readonly ConditionalWeakTable<AnalyzerOptions, ICategorizedAnalyzerConfigOptions> s_cachedOptions = new(); 46this AnalyzerOptions options, 56this AnalyzerOptions options, 64this AnalyzerOptions options, 74this AnalyzerOptions options, 82this AnalyzerOptions options, 92this AnalyzerOptions options, 100this AnalyzerOptions options, 107this AnalyzerOptions options, 115this AnalyzerOptions options, 125this AnalyzerOptions options, 133this AnalyzerOptions options, 149this AnalyzerOptions options, 176this AnalyzerOptions options, 186this AnalyzerOptions options, 197this AnalyzerOptions options, 209this AnalyzerOptions options, 221this AnalyzerOptions options, 238this AnalyzerOptions options, 245this AnalyzerOptions options, 252this AnalyzerOptions options, 259this AnalyzerOptions options, 296AnalyzerOptions options, 305AnalyzerOptions options, 315this AnalyzerOptions options, 322this AnalyzerOptions options, 329this AnalyzerOptions options, 336this AnalyzerOptions options, 378this AnalyzerOptions options, 385this AnalyzerOptions options, 424this AnalyzerOptions options, 432this AnalyzerOptions options, 439this AnalyzerOptions options, 446this AnalyzerOptions options, 453this AnalyzerOptions options, 519this AnalyzerOptions options, 543this AnalyzerOptions options, 576this AnalyzerOptions options, 591this AnalyzerOptions options, 610this AnalyzerOptions options, 621this AnalyzerOptions options, Compilation compilation) 634AnalyzerOptions options,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
230public static bool IsGeneratedCode(this SyntaxTree syntaxTree, AnalyzerOptions? analyzerOptions, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)