30 references to SeverityFilter
Microsoft.CodeAnalysis (30)
CommandLine\CommonCompiler.cs (3)
1522var severityFilter = SeverityFilter.Hidden; 1524severityFilter |= SeverityFilter.Info;
Compilation\Compilation.cs (1)
125internal abstract AnalyzerDriver CreateAnalyzerDriver(ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerManager analyzerManager, SeverityFilter severityFilter);
Diagnostic\SeverityFilter.cs (4)
23internal static bool Contains(this SeverityFilter severityFilter, ReportDiagnostic severity) 27ReportDiagnostic.Hidden => (severityFilter & SeverityFilter.Hidden) != 0, 28ReportDiagnostic.Info => (severityFilter & SeverityFilter.Info) != 0, 33internal static DiagnosticSeverity GetMinimumUnfilteredSeverity(this SeverityFilter severityFilter)
DiagnosticAnalyzer\AnalyzerDriver.cs (13)
62private readonly SeverityFilter _severityFilter; 371protected AnalyzerDriver(ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerManager analyzerManager, SeverityFilter severityFilter, Func<SyntaxTrivia, bool> isComment) 819SeverityFilter severityFilter, 840SeverityFilter severityFilter, 1957internal static Action<Diagnostic, CancellationToken> GetDiagnosticSink(Action<Diagnostic> addDiagnosticCore, Compilation compilation, AnalyzerOptions? analyzerOptions, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds) 1969internal static Action<Diagnostic, DiagnosticAnalyzer, bool, CancellationToken> GetDiagnosticSink(Action<Diagnostic, DiagnosticAnalyzer, bool> addLocalDiagnosticCore, Compilation compilation, AnalyzerOptions? analyzerOptions, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds) 1981internal static Action<Diagnostic, DiagnosticAnalyzer, CancellationToken> GetDiagnosticSink(Action<Diagnostic, DiagnosticAnalyzer> addDiagnosticCore, Compilation compilation, AnalyzerOptions? analyzerOptions, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds) 1993private static Diagnostic? GetFilteredDiagnostic(Diagnostic diagnostic, Compilation compilation, AnalyzerOptions? analyzerOptions, SeverityFilter severityFilter, ConcurrentSet<string>? suppressedDiagnosticIds, CancellationToken cancellationToken) 2028SeverityFilter severityFilter, 2229SeverityFilter severityFilter, 2254SeverityFilter severityFilter, 2383SeverityFilter severityFilter, 2416internal AnalyzerDriver(ImmutableArray<DiagnosticAnalyzer> analyzers, Func<SyntaxNode, TLanguageKindEnum> getKind, AnalyzerManager analyzerManager, SeverityFilter severityFilter, Func<SyntaxTrivia, bool> isComment)
DiagnosticAnalyzer\AnalyzerExecutor.cs (4)
112SeverityFilter severityFilter, 144SeverityFilter severityFilter, 176internal SeverityFilter SeverityFilter { get; } 200public void ExecuteInitializeMethod(HostSessionStartAnalysisScope sessionScope, SeverityFilter severityFilter, CancellationToken cancellationToken)
DiagnosticAnalyzer\AnalyzerManager.cs (2)
304SeverityFilter severityFilter, 344SeverityFilter severityFilter,
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (2)
380var driver = compilation.CreateAnalyzerDriver(analyzers, new AnalyzerManager(analyzers), severityFilter: SeverityFilter.None); 1259return AnalyzerManager.IsDiagnosticAnalyzerSuppressed(analyzer, options, IsCompilerAnalyzer, severityFilter: SeverityFilter.None,
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (1)
24public AnalyzerAnalysisContext(HostSessionStartAnalysisScope scope, SeverityFilter severityFilter)