30 instantiations of AnalyzerOptions
Analyzer.Utilities.UnitTests (2)
FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysisTests.cs (2)
86new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty), 92new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty),
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)
1546=> 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.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
166var options = new AnalyzerOptions([additionalText]);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (16)
Diagnostics\DiagnosticAnalyzerTests.AllInOne.cs (3)
41var options = new AnalyzerOptions(new[] { new TestAdditionalText() }.ToImmutableArray<AdditionalText>()); 102var options = new AnalyzerOptions(new[] { new TestAdditionalText() }.ToImmutableArray<AdditionalText>()); 112AnalyzerOptions options = new AnalyzerOptions
Diagnostics\DiagnosticAnalyzerTests.cs (7)
1533var analyzerOptions = new AnalyzerOptions(additionalFiles: ImmutableArray<AdditionalText>.Empty, analyzerConfigOptionsProvider); 3608new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty)); 3885var options = new AnalyzerOptions(ImmutableArray.Create(additionalFile)); 3925var options = new AnalyzerOptions(additionalFiles); 4317var analyzerOptions = new AnalyzerOptions(ImmutableArray.Create<AdditionalText>(additionalTextFile)); 4441new AnalyzerOptions([])); 4589var sharedOptions = new AnalyzerOptions([additionalText]);
Diagnostics\GetDiagnosticsTests.cs (6)
678var compilationWithAnalyzers = compilation.WithAnalyzers(analyzers, new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty)); 687var analyzerOptions = new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty, analyzerConfigOptionsProvider); 733analyzerOptions = new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty, analyzerConfigOptionsProvider); 790new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty), 843new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty), 872new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty),
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Preview\PreviewWorkspaceTests.cs (1)
165var analyzerOptions = new AnalyzerOptions(additionalFiles: []);
Microsoft.CodeAnalysis.UnitTests (2)
Diagnostics\AnalysisContextInfoTests.cs (1)
29var options = new AnalyzerOptions(new[] { new TestAdditionalText() }.ToImmutableArray<AdditionalText>());
Diagnostics\CompilationWithAnalyzersTests.cs (1)
61var analyzerOptions = new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty);
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Solution\ProjectState.cs (2)
328static self => new AnalyzerOptions( 337static self => new AnalyzerOptions(
908 references to AnalyzerOptions
BuildActionTelemetryTable (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
GenerateDocumentationAndConfigFiles (47)
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\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
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)
316internal abstract bool IsAnalyzerEnabled(AnalyzerOptions options); 380var options = context.Options;
RequiresAssemblyFilesAnalyzer.cs (1)
55internal override bool IsAnalyzerEnabled(AnalyzerOptions options)
RequiresDynamicCodeAnalyzer.cs (1)
47internal override bool IsAnalyzerEnabled(AnalyzerOptions options) =>
RequiresUnreferencedCodeAnalyzer.cs (1)
49internal override bool IsAnalyzerEnabled(AnalyzerOptions options) =>
Metrics (47)
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\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
230public static bool IsGeneratedCode(this SyntaxTree syntaxTree, AnalyzerOptions? analyzerOptions, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Metrics.Legacy (47)
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\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
230public static bool IsGeneratedCode(this SyntaxTree syntaxTree, AnalyzerOptions? analyzerOptions, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
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 (145)
CommandLine\CommonCompiler.cs (4)
1130AnalyzerOptions analyzerOptions = CreateAnalyzerOptions(additionalTextFiles, analyzerConfigProvider); 1213AnalyzerOptions analyzerOptions = CreateAnalyzerOptions( 1514(CancellationTokenSource, DiagnosticBag, AnalyzerDriver) initializeAnalyzerDriver(AnalyzerOptions analyzerOptions, ref Compilation compilation) 1543protected 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, 1972internal static Action<Diagnostic, AnalyzerOptions, CancellationToken> GetDiagnosticSink(Action<Diagnostic> addDiagnosticCore, Compilation compilation, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds) 1984internal static Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, bool, CancellationToken> GetDiagnosticSink(Action<Diagnostic, DiagnosticAnalyzer, bool> addLocalDiagnosticCore, Compilation compilation, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds) 1996internal static Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions?, CancellationToken> GetDiagnosticSink(Action<Diagnostic, DiagnosticAnalyzer> addDiagnosticCore, Compilation compilation, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds) 2008private 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 (40)
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); 572var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 623var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 677var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 723var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 802AnalyzerOptions analyzerOptions, 809public readonly AnalyzerOptions AnalyzerOptions = analyzerOptions; 838var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 942var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 1106var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 1207var analyzerOptions = this.GetAnalyzerSpecificOptions(analyzer); 1514AnalyzerOptions options, 1537AnalyzerOptions options, 1538Action<Diagnostic, AnalyzerOptions, CancellationToken>? addNonCategorizedDiagnostic, 1539Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, bool, CancellationToken>? addCategorizedLocalDiagnostic, 1540Action<Diagnostic, DiagnosticAnalyzer, AnalyzerOptions, CancellationToken>? addCategorizedNonLocalDiagnostic, 1584AnalyzerOptions analyzerOptions, 1608AnalyzerOptions analyzerOptions, 1621AnalyzerOptions analyzerOptions, 1633AnalyzerOptions 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) 515/// The given <paramref name="file"/> must be part of <see cref="AnalyzerOptions.AdditionalFiles"/> for the <see cref="AnalysisOptions"/> for this CompilationWithAnalyzers instance. 529/// The given <paramref name="file"/> must be part of <see cref="AnalyzerOptions.AdditionalFiles"/> for the <see cref="AnalysisOptions"/> for this CompilationWithAnalyzers instance. 546/// The given <paramref name="file"/> must be part of <see cref="AnalyzerOptions.AdditionalFiles"/> for the <see cref="AnalysisOptions"/> for this CompilationWithAnalyzers instance. 562/// 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)
325private readonly AnalyzerOptions _options; 336public AnalyzerOptions Options { get { return _options; } } 343protected CompilationStartAnalysisContext(Compilation compilation, AnalyzerOptions options, CancellationToken cancellationToken) 561private readonly AnalyzerOptions _options; 575public AnalyzerOptions Options { get { return _options; } } 583public CompilationAnalysisContext(Compilation compilation, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken) 590AnalyzerOptions options, 684private readonly AnalyzerOptions _options; 697public AnalyzerOptions Options { get { return _options; } } 722public SemanticModelAnalysisContext(SemanticModel semanticModel, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken) 729AnalyzerOptions options, 768private readonly AnalyzerOptions _options; 786public AnalyzerOptions Options { get { return _options; } } 815public SymbolAnalysisContext(ISymbol symbol, Compilation compilation, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken) 823AnalyzerOptions options, 877public AnalyzerOptions Options { get; } 904public SymbolStartAnalysisContext(ISymbol symbol, Compilation compilation, AnalyzerOptions options, CancellationToken cancellationToken) 909internal SymbolStartAnalysisContext(ISymbol symbol, Compilation compilation, AnalyzerOptions options, bool isGeneratedCode, SyntaxTree? filterTree, TextSpan? filterSpan, CancellationToken cancellationToken) 1023private readonly AnalyzerOptions _options; 1044public AnalyzerOptions Options { get { return _options; } } 1069protected CodeBlockStartAnalysisContext(SyntaxNode codeBlock, ISymbol owningSymbol, SemanticModel semanticModel, AnalyzerOptions options, CancellationToken cancellationToken) 1078AnalyzerOptions options, 1131private readonly AnalyzerOptions _options; 1154public AnalyzerOptions Options { get { return _options; } } 1179public CodeBlockAnalysisContext(SyntaxNode codeBlock, ISymbol owningSymbol, SemanticModel semanticModel, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken) 1188AnalyzerOptions options, 1239private readonly AnalyzerOptions _options; 1264public AnalyzerOptions Options => _options; 1293AnalyzerOptions options, 1304AnalyzerOptions options, 1379private readonly AnalyzerOptions _options; 1406public AnalyzerOptions Options => _options; 1435AnalyzerOptions options, 1448AnalyzerOptions options, 1511private readonly AnalyzerOptions _options; 1524public AnalyzerOptions Options => _options; 1546public SyntaxTreeAnalysisContext(SyntaxTree tree, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken) 1553AnalyzerOptions options, 1602public AnalyzerOptions Options { get; } 1623AnalyzerOptions options, 1663private readonly AnalyzerOptions _options; 1691public AnalyzerOptions Options => _options; 1716public SyntaxNodeAnalysisContext(SyntaxNode node, ISymbol? containingSymbol, SemanticModel semanticModel, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken) 1722public SyntaxNodeAnalysisContext(SyntaxNode node, SemanticModel semanticModel, AnalyzerOptions options, Action<Diagnostic> reportDiagnostic, Func<Diagnostic, bool> isSupportedDiagnostic, CancellationToken cancellationToken) 1731AnalyzerOptions options, 1773private readonly AnalyzerOptions _options; 1797public AnalyzerOptions Options => _options; 1826AnalyzerOptions options, 1838AnalyzerOptions options, 1907public AnalyzerOptions Options { get; } 1916AnalyzerOptions 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\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\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
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\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\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
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\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysis.cs (1)
31AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysisContext.cs (2)
27AnalyzerOptions analyzerOptions, 47AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysis.cs (2)
40AnalyzerOptions analyzerOptions, 84AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisContext.cs (2)
31AnalyzerOptions analyzerOptions, 69AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisHelper.cs (1)
125AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\GlobalFlowStateAnalysis\GlobalFlowStateAnalysis.cs (2)
63AnalyzerOptions analyzerOptions, 93AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\GlobalFlowStateAnalysis\GlobalFlowStateAnalysisContext.cs (2)
31AnalyzerOptions analyzerOptions, 59AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ParameterValidationAnalysis\ParameterValidationAnalysis.cs (3)
34AnalyzerOptions analyzerOptions, 62AnalyzerOptions analyzerOptions, 88AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ParameterValidationAnalysis\ParameterValidationAnalysisContext.cs (2)
30AnalyzerOptions analyzerOptions, 54AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAnalysis.cs (2)
33AnalyzerOptions analyzerOptions, 50AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PointsToAnalysis\PointsToAnalysisContext.cs (2)
28AnalyzerOptions analyzerOptions, 54AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysis.cs (3)
53AnalyzerOptions analyzerOptions, 155AnalyzerOptions analyzerOptions, 191AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysisContext.cs (2)
33AnalyzerOptions analyzerOptions, 76AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysis.cs (2)
32AnalyzerOptions analyzerOptions, 48AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysisContext.cs (2)
28AnalyzerOptions analyzerOptions, 70AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAnalysis.cs (3)
33AnalyzerOptions analyzerOptions, 47AnalyzerOptions analyzerOptions, 81AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAnalysisContext.cs (2)
29AnalyzerOptions analyzerOptions, 57AnalyzerOptions analyzerOptions,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AbstractDataFlowAnalysisContext.cs (2)
33AnalyzerOptions analyzerOptions, 80public AnalyzerOptions AnalyzerOptions { get; }
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\InterproceduralAnalysisConfiguration.cs (4)
42AnalyzerOptions analyzerOptions, 53AnalyzerOptions analyzerOptions, 82AnalyzerOptions analyzerOptions, 93AnalyzerOptions analyzerOptions,
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
230public static bool IsGeneratedCode(this SyntaxTree syntaxTree, AnalyzerOptions? analyzerOptions, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.BannedApiAnalyzers (47)
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\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
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\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (4)
87protected static bool IsAnalysisLevelGreaterThanOrEquals(int minAnalysisLevel, AnalyzerOptions analyzerOptions) 110AnalyzerOptions analyzerOptions, 118AnalyzerOptions analyzerOptions, 148AnalyzerOptions analyzerOptions,
src\Analyzers\Core\Analyzers\AnalyzerOptionsProvider.cs (1)
86public static AnalyzerOptionsProvider GetAnalyzerOptions(this AnalyzerOptions analyzerOptions, SyntaxTree syntaxTree)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (8)
43AnalyzerOptions analyzerOptions, 91AnalyzerOptions analyzerOptions, 110AnalyzerOptions analyzerOptions, 159AnalyzerOptions analyzerOptions, 180AnalyzerOptions analyzerOptions, 206AnalyzerOptions analyzerOptions, 258AnalyzerOptions analyzerOptions, 286static IEnumerable<string> GetEffectiveCustomTags(DiagnosticDescriptor descriptor, NotificationOption2 notificationOption, AnalyzerOptions analyzerOptions)
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\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
113AnalyzerOptions options,
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
201AnalyzerOptions analyzerOptions,
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
123AnalyzerOptions analyzerOptions,
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (2)
101public bool TrySimplify(SemanticModel model, SyntaxNode node, [NotNullWhen(true)] out Diagnostic? diagnostic, TSimplifierOptions options, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken) 122internal static Diagnostic CreateDiagnostic(SemanticModel model, TSimplifierOptions options, AnalyzerOptions analyzerOptions, TextSpan issueSpan, string diagnosticId, bool inDeclaration)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
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\Analyzers\Core\CodeFixes\AnalyzerOptionsProviders.cs (1)
17var analyzerOptions = document.Project.AnalyzerOptions;
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\CodeStyle\CSharpAnalyzerOptionsProvider.cs (1)
99public static CSharpAnalyzerOptionsProvider GetCSharpAnalyzerOptions(this AnalyzerOptions options, SyntaxTree syntaxTree)
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (2)
39var analyzerOptions = context.Options; 72LambdaExpressionSyntax declaration, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
src\Analyzers\CSharp\Analyzers\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitlyTypedLambdaExpressionDiagnosticAnalyzer.cs (1)
39var analyzerOptions = context.Options;
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
58private static Diagnostic CreateDiagnostic(DiagnosticDescriptor descriptor, SyntaxNode declaration, TextSpan diagnosticSpan, NotificationOption2 notificationOption, AnalyzerOptions analyzerOptions)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (1)
310private Diagnostic CreateDiagnostic(Result result, NotificationOption2 notificationOption, AnalyzerOptions analyzerOptions)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
210var options = context.Options;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
166var options = new AnalyzerOptions([additionalText]);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (23)
Diagnostics\DiagnosticAnalyzerTests.AllInOne.cs (3)
41var options = new AnalyzerOptions(new[] { new TestAdditionalText() }.ToImmutableArray<AdditionalText>()); 102var options = new AnalyzerOptions(new[] { new TestAdditionalText() }.ToImmutableArray<AdditionalText>()); 112AnalyzerOptions options = new AnalyzerOptions
Diagnostics\DiagnosticAnalyzerTests.cs (10)
1533var analyzerOptions = new AnalyzerOptions(additionalFiles: ImmutableArray<AdditionalText>.Empty, analyzerConfigOptionsProvider); 1694private static void VerifyGeneratedCodeAnalyzerDiagnostics(Compilation compilation, AnalyzerOptions analyzerOptions, Func<string, bool> isGeneratedFileName, GeneratedCodeAnalysisFlags? generatedCodeAnalysisFlagsOpt) 1700private static void VerifyGeneratedCodeAnalyzerDiagnostics(Compilation compilation, DiagnosticDescription[] expected, GeneratedCodeAnalysisFlags? generatedCodeAnalysisFlagsOpt, AnalyzerOptions analyzerOptions = null, bool testIsGeneratedCodeInCallbacks = false) 3885var options = new AnalyzerOptions(ImmutableArray.Create(additionalFile)); 3925var options = new AnalyzerOptions(additionalFiles); 4317var analyzerOptions = new AnalyzerOptions(ImmutableArray.Create<AdditionalText>(additionalTextFile)); 4400var driver = AnalyzerDriver.CreateAndAttachToCompilation(compilation, analyzersArray, AnalyzerOptions.Empty, analyzerManager, onAnalyzerException: null, 4478public AnalyzerOptions SeenOptions; 4480private void AssertSame(AnalyzerOptions options) 4589var sharedOptions = new AnalyzerOptions([additionalText]);
Diagnostics\DiagnosticSuppressorTests.cs (1)
714var options = new CompilationWithAnalyzersOptions(AnalyzerOptions.Empty, onAnalyzerException: null, concurrentAnalysis: true, logAnalyzerExecutionTime: true, reportSuppressedDiagnostics: true);
Diagnostics\GetDiagnosticsTests.cs (9)
687var analyzerOptions = new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty, analyzerConfigOptionsProvider); 726AnalyzerOptions analyzerOptions; 910var compilationWithAnalyzers = compilation.WithAnalyzers(analyzers, AnalyzerOptions.Empty); 963var compilationWithAnalyzers = compilation.WithAnalyzers(ImmutableArray.Create<DiagnosticAnalyzer>(analyzer), AnalyzerOptions.Empty); 1189var compilationWithAnalyzers = compilation.WithAnalyzers(ImmutableArray.Create<DiagnosticAnalyzer>(compilerAnalyzer), AnalyzerOptions.Empty); 1249var compilationWithAnalyzers = compilation.WithAnalyzers(ImmutableArray.Create<DiagnosticAnalyzer>(analyzer), AnalyzerOptions.Empty); 1583var options = new CompilationWithAnalyzersOptions(AnalyzerOptions.Empty, onAnalyzerException: null, 1644var compilationWithAnalyzers = compilation.WithAnalyzers(ImmutableArray.Create<DiagnosticAnalyzer>(analyzer), AnalyzerOptions.Empty); 1823var compilationWithAnalyzers = compilation.WithAnalyzers(ImmutableArray.Create<DiagnosticAnalyzer>(analyzer), AnalyzerOptions.Empty);
Microsoft.CodeAnalysis.CSharp.Features (9)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (2)
44private readonly AnalyzerOptions _analyzerOptions; 73public TypeSyntaxSimplifierWalker(CSharpSimplifyTypeNamesDiagnosticAnalyzer analyzer, SemanticModel semanticModel, CSharpSimplifierOptions options, AnalyzerOptions analyzerOptions, TextSpanMutableIntervalTree? ignoredSpans, CancellationToken cancellationToken)
src\Analyzers\CSharp\Analyzers\CodeStyle\CSharpAnalyzerOptionsProvider.cs (1)
99public static CSharpAnalyzerOptionsProvider GetCSharpAnalyzerOptions(this AnalyzerOptions options, SyntaxTree syntaxTree)
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (2)
39var analyzerOptions = context.Options; 72LambdaExpressionSyntax declaration, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
src\Analyzers\CSharp\Analyzers\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitlyTypedLambdaExpressionDiagnosticAnalyzer.cs (1)
39var analyzerOptions = context.Options;
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
58private static Diagnostic CreateDiagnostic(DiagnosticDescriptor descriptor, SyntaxNode declaration, TextSpan diagnosticSpan, NotificationOption2 notificationOption, AnalyzerOptions analyzerOptions)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (1)
310private Diagnostic CreateDiagnostic(Result result, NotificationOption2 notificationOption, AnalyzerOptions analyzerOptions)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
210var options = context.Options;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
MockCSharpCompiler.cs (2)
23internal AnalyzerOptions AnalyzerOptions; 94protected override AnalyzerOptions CreateAnalyzerOptions(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Preview\PreviewWorkspaceTests.cs (1)
165var analyzerOptions = new AnalyzerOptions(additionalFiles: []);
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)
128AnalyzerOptions? options,
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (4)
87protected static bool IsAnalysisLevelGreaterThanOrEquals(int minAnalysisLevel, AnalyzerOptions analyzerOptions) 110AnalyzerOptions analyzerOptions, 118AnalyzerOptions analyzerOptions, 148AnalyzerOptions analyzerOptions,
src\Analyzers\Core\Analyzers\AnalyzerOptionsProvider.cs (1)
86public static AnalyzerOptionsProvider GetAnalyzerOptions(this AnalyzerOptions analyzerOptions, SyntaxTree syntaxTree)
src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (8)
43AnalyzerOptions analyzerOptions, 91AnalyzerOptions analyzerOptions, 110AnalyzerOptions analyzerOptions, 159AnalyzerOptions analyzerOptions, 180AnalyzerOptions analyzerOptions, 206AnalyzerOptions analyzerOptions, 258AnalyzerOptions analyzerOptions, 286static IEnumerable<string> GetEffectiveCustomTags(DiagnosticDescriptor descriptor, NotificationOption2 notificationOption, AnalyzerOptions analyzerOptions)
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\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
113AnalyzerOptions options,
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
201AnalyzerOptions analyzerOptions,
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
123AnalyzerOptions analyzerOptions,
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (2)
101public bool TrySimplify(SemanticModel model, SyntaxNode node, [NotNullWhen(true)] out Diagnostic? diagnostic, TSimplifierOptions options, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken) 122internal static Diagnostic CreateDiagnostic(SemanticModel model, TSimplifierOptions options, AnalyzerOptions analyzerOptions, TextSpan issueSpan, string diagnosticId, bool inDeclaration)
src\Analyzers\Core\CodeFixes\AnalyzerOptionsProviders.cs (1)
17var analyzerOptions = document.Project.AnalyzerOptions;
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (47)
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\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
230public static bool IsGeneratedCode(this SyntaxTree syntaxTree, AnalyzerOptions? analyzerOptions, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.PublicApiAnalyzers (52)
DeclarePublicApiAnalyzer.cs (3)
270private static bool TryGetEditorConfigOption(AnalyzerOptions analyzerOptions, SyntaxTree tree, string optionName, out string optionValue) 302private static bool TryGetEditorConfigOptionForMissingFiles(AnalyzerOptions analyzerOptions, Compilation compilation, out bool optionValue) 311private static bool TryGetEditorConfigOptionForSkippedNamespaces(AnalyzerOptions analyzerOptions, SyntaxTree tree, out ImmutableArray<string> skippedNamespaces)
DeclarePublicApiAnalyzer.Impl.cs (2)
87private readonly AnalyzerOptions _analyzerOptions; 89internal Impl(Compilation compilation, ImmutableDictionary<AdditionalText, SourceText> additionalFiles, ApiData shippedData, ApiData unshippedData, bool isPublic, AnalyzerOptions analyzerOptions)
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\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
230public static bool IsGeneratedCode(this SyntaxTree syntaxTree, AnalyzerOptions? analyzerOptions, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.ResxSourceGenerator (47)
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\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
230public static bool IsGeneratedCode(this SyntaxTree syntaxTree, AnalyzerOptions? analyzerOptions, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Test.Utilities (16)
Diagnostics\DiagnosticExtensions.cs (8)
155AnalyzerOptions options = null, 167AnalyzerOptions options = null, 180AnalyzerOptions options = null, 192AnalyzerOptions options = null, 204AnalyzerOptions options = null, 226AnalyzerOptions options, 284AnalyzerOptions options = null, 298AnalyzerOptions options,
Diagnostics\OptionsDiagnosticAnalyzer.cs (7)
18private readonly AnalyzerOptions _expectedOptions; 19private readonly Dictionary<string, AnalyzerOptions> _mismatchedOptions = new Dictionary<string, AnalyzerOptions>(); 21public OptionsDiagnosticAnalyzer(AnalyzerOptions expectedOptions) 31protected override void OnOptions(AnalyzerOptions options, [CallerMemberName] string callerName = null) 48private bool AreEqual(AnalyzerOptions actual, AnalyzerOptions expected)
Diagnostics\TestDiagnosticAnalyzer.cs (1)
34protected virtual void OnOptions(AnalyzerOptions options, [CallerMemberName] string callerName = null) { }
Microsoft.CodeAnalysis.UnitTests (4)
Diagnostics\AnalysisContextInfoTests.cs (2)
29var options = new AnalyzerOptions(new[] { new TestAdditionalText() }.ToImmutableArray<AdditionalText>()); 44private static void Verify(Compilation compilation, AnalyzerOptions options, string context)
Diagnostics\CompilationWithAnalyzersTests.cs (1)
61var analyzerOptions = new AnalyzerOptions(ImmutableArray<AdditionalText>.Empty);
Diagnostics\DiagnosticLocalizationTests.cs (1)
309AnalyzerOptions.Empty,
Microsoft.CodeAnalysis.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
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\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\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
230public static bool IsGeneratedCode(this SyntaxTree syntaxTree, AnalyzerOptions? analyzerOptions, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Test.Utilities (47)
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\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
230public static bool IsGeneratedCode(this SyntaxTree syntaxTree, AnalyzerOptions? analyzerOptions, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Text.Analyzers (47)
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\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
35protected virtual bool IsConfiguredDisallowedExceptionType(INamedTypeSymbol namedTypeSymbol, IMethodSymbol containingMethod, Compilation compilation, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
64public static ReportDiagnostic GetEffectiveSeverity(this DiagnosticDescriptor descriptor, CompilationOptions compilationOptions, SyntaxTree tree, AnalyzerOptions analyzerOptions)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
230public static bool IsGeneratedCode(this SyntaxTree syntaxTree, AnalyzerOptions? analyzerOptions, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)