4 types derived from AnalyzerDriver
Microsoft.CodeAnalysis (4)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2403internal partial class AnalyzerDriver<TLanguageKindEnum> : AnalyzerDriver where TLanguageKindEnum : struct
DiagnosticAnalyzer\AnalyzerDriver.ExecutableCodeBlockAnalyzerActions.cs (1)
10internal partial class AnalyzerDriver<TLanguageKindEnum> : AnalyzerDriver where TLanguageKindEnum : struct
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActions.cs (1)
13internal partial class AnalyzerDriver<TLanguageKindEnum> : AnalyzerDriver where TLanguageKindEnum : struct
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActionsForAnalyzer.cs (1)
12internal partial class AnalyzerDriver<TLanguageKindEnum> : AnalyzerDriver where TLanguageKindEnum : struct
31 references to AnalyzerDriver
Microsoft.CodeAnalysis (29)
CommandLine\CommonCompiler.cs (5)
974out var analyzerDriver, 1107out AnalyzerDriver? analyzerDriver, 1514(CancellationTokenSource, DiagnosticBag, AnalyzerDriver) initializeAnalyzerDriver(AnalyzerOptions analyzerOptions, ref Compilation compilation) 1526var analyzerDriver = AnalyzerDriver.CreateAndAttachToCompilation(
CommandLine\ReportAnalyzerUtil.cs (2)
20AnalyzerDriver? analyzerDriver, 65private static void ReportAnalyzerExecutionTime(TextWriter consoleOutput, AnalyzerDriver analyzerDriver, CultureInfo culture)
Compilation\Compilation.cs (1)
125internal abstract AnalyzerDriver CreateAnalyzerDriver(ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerManager analyzerManager, SeverityFilter severityFilter);
DiagnosticAnalyzer\AnalysisResultBuilder.cs (1)
187public void ApplySuppressionsAndStoreAnalysisResult(AnalysisScope analysisScope, AnalyzerDriver driver, Compilation compilation, Func<DiagnosticAnalyzer, AnalyzerActionCounts> getAnalyzerActionCounts, CancellationToken cancellationToken)
DiagnosticAnalyzer\AnalyzerActionCounts.cs (1)
187/// Many callbacks into the diagnostics analyzers are driven in the <see cref="AnalyzerDriver"/>
DiagnosticAnalyzer\AnalyzerDriver.cs (7)
795/// Create an <see cref="AnalyzerDriver"/> and attach it to the given compilation. 812public static AnalyzerDriver CreateAndAttachToCompilation( 832internal static AnalyzerDriver CreateAndAttachToCompilation( 845AnalyzerDriver analyzerDriver = compilation.CreateAnalyzerDriver(analyzers, analyzerManager, severityFilter); 2167async ValueTask<IGroupedAnalyzerActions> getAllActionsAsync(AnalyzerDriver driver, ISymbol symbol, DiagnosticAnalyzer analyzer, SyntaxTree? filterTree, TextSpan? filterSpan, CancellationToken cancellationToken) 2183async ValueTask<IGroupedAnalyzerActions> getInheritedActionsAsync(AnalyzerDriver driver, ISymbol symbol, DiagnosticAnalyzer analyzer, SyntaxTree? filterTree, TextSpan? filterSpan, CancellationToken cancellationToken) 2207static async ValueTask<AnalyzerActions> getSymbolActionsCoreAsync(AnalyzerDriver driver, ISymbol symbol, DiagnosticAnalyzer analyzer, SyntaxTree? filterTree, TextSpan? filterSpan, CancellationToken cancellationToken)
DiagnosticAnalyzer\AnalyzerManager.cs (1)
241/// If an analyzer hasn't configured generated code analysis, returns <see cref="AnalyzerDriver.DefaultGeneratedCodeAnalysisFlags"/>.
DiagnosticAnalyzer\CachingSemanticModelProvider.cs (1)
19/// <see cref="AnalyzerDriver"/> executing analyzers clears per-tree entries in the cache whenever a <see cref="CompilationUnitCompletedEvent"/>
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (8)
20using static Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver; 309using var driver = await CreateAndInitializeDriverAsync(compilation, _analysisOptions, analysisScope, _suppressors, categorizeDiagnostics: false, cancellationToken).ConfigureAwait(false); 363private static async Task<AnalyzerDriver> CreateAndInitializeDriverAsync( 380var driver = compilation.CreateAnalyzerDriver(analyzers, new AnalyzerManager(analyzers), severityFilter: SeverityFilter.None); 729using var driver = await CreateAndInitializeDriverAsync(compilation, _analysisOptions, analysisScope, _suppressors, categorizeDiagnostics: true, cancellationToken).ConfigureAwait(false); 816AnalyzerDriver driver, 831AnalyzerDriver driver, 1299using var driver = await CreateAndInitializeDriverAsync(_compilation, _analysisOptions, analysisScope, _suppressors, categorizeDiagnostics: true, cancellationToken).ConfigureAwait(false);
DiagnosticAnalyzer\DiagnosticQueue.cs (1)
15/// Queue to store analyzer diagnostics on the <see cref="AnalyzerDriver"/>.
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (1)
361private GeneratedCodeAnalysisFlags _generatedCodeConfiguration = AnalyzerDriver.DefaultGeneratedCodeAnalysisFlags;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
4399var driver = AnalyzerDriver.CreateAndAttachToCompilation(compilation, analyzersArray, AnalyzerOptions.Empty, analyzerManager, onAnalyzerException: null,
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticExtensions.cs (1)
313var driver = AnalyzerDriver.CreateAndAttachToCompilation(c, analyzersArray, options, analyzerManager, onAnalyzerException,