4 types derived from AnalyzerDriver
Microsoft.CodeAnalysis (4)
43 references to AnalyzerDriver
Microsoft.CodeAnalysis (35)
DiagnosticAnalyzer\AnalyzerDriver.cs (7)
791/// Create an <see cref="AnalyzerDriver"/> and attach it to the given compilation.
808public static AnalyzerDriver CreateAndAttachToCompilation(
828internal static AnalyzerDriver CreateAndAttachToCompilation(
841AnalyzerDriver analyzerDriver = compilation.CreateAnalyzerDriver(analyzers, analyzerManager, severityFilter);
2070async ValueTask<IGroupedAnalyzerActions> getAllActionsAsync(AnalyzerDriver driver, ISymbol symbol, DiagnosticAnalyzer analyzer, CancellationToken cancellationToken)
2086async ValueTask<IGroupedAnalyzerActions> getInheritedActionsAsync(AnalyzerDriver driver, ISymbol symbol, DiagnosticAnalyzer analyzer, CancellationToken cancellationToken)
2110static async ValueTask<AnalyzerActions> getSymbolActionsCoreAsync(AnalyzerDriver driver, ISymbol symbol, DiagnosticAnalyzer analyzer)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (16)
18using static Microsoft.CodeAnalysis.Diagnostics.AnalyzerDriver;
32/// Pool of <see cref="AnalyzerDriver"/>s used for analyzer execution.
34private readonly ObjectPool<AnalyzerDriver> _driverPool;
114_driverPool = new ObjectPool<AnalyzerDriver>(() => _compilation.CreateAnalyzerDriver(analyzers, _analyzerManager, severityFilter: SeverityFilter.None));
307AnalyzerDriver? driver = null;
383private static AnalyzerDriver CreateDriverForComputingDiagnosticsWithoutStateTracking(Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers)
620AnalyzerDriver? driver = null;
720async Task<(Compilation compilation, AnalyzerDriver driver, bool driverAllocatedFromPool)> getCompilationAndDriverAsync()
725AnalyzerDriver driver;
760AnalyzerDriver driver,
786AnalyzerDriver driver,
1071private async Task<AnalyzerDriver> GetAnalyzerDriverFromPoolAsync(CancellationToken cancellationToken)
1078AnalyzerDriver driver = _driverPool.Allocate();
1109private void FreeDriver(AnalyzerDriver? driver)
1250return AnalyzerDriver.IsDiagnosticAnalyzerSuppressed(analyzer, options, analyzerManager, analyzerExecutor, severityFilter: SeverityFilter.None);
1288AnalyzerDriver? driver = null;
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)