4 types derived from AnalyzerDriver
Microsoft.CodeAnalysis (4)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2403
internal partial class AnalyzerDriver<TLanguageKindEnum> :
AnalyzerDriver
where TLanguageKindEnum : struct
DiagnosticAnalyzer\AnalyzerDriver.ExecutableCodeBlockAnalyzerActions.cs (1)
10
internal partial class AnalyzerDriver<TLanguageKindEnum> :
AnalyzerDriver
where TLanguageKindEnum : struct
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActions.cs (1)
13
internal partial class AnalyzerDriver<TLanguageKindEnum> :
AnalyzerDriver
where TLanguageKindEnum : struct
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActionsForAnalyzer.cs (1)
12
internal partial class AnalyzerDriver<TLanguageKindEnum> :
AnalyzerDriver
where TLanguageKindEnum : struct
31 references to AnalyzerDriver
Microsoft.CodeAnalysis (29)
CommandLine\CommonCompiler.cs (5)
974
out
var
analyzerDriver,
1107
out
AnalyzerDriver
? analyzerDriver,
1514
(CancellationTokenSource, DiagnosticBag,
AnalyzerDriver
) initializeAnalyzerDriver(AnalyzerOptions analyzerOptions, ref Compilation compilation)
1526
var
analyzerDriver =
AnalyzerDriver
.CreateAndAttachToCompilation(
CommandLine\ReportAnalyzerUtil.cs (2)
20
AnalyzerDriver
? analyzerDriver,
65
private static void ReportAnalyzerExecutionTime(TextWriter consoleOutput,
AnalyzerDriver
analyzerDriver, CultureInfo culture)
Compilation\Compilation.cs (1)
125
internal abstract
AnalyzerDriver
CreateAnalyzerDriver(ImmutableArray<DiagnosticAnalyzer> analyzers, AnalyzerManager analyzerManager, SeverityFilter severityFilter);
DiagnosticAnalyzer\AnalysisResultBuilder.cs (1)
187
public 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.
812
public static
AnalyzerDriver
CreateAndAttachToCompilation(
832
internal static
AnalyzerDriver
CreateAndAttachToCompilation(
845
AnalyzerDriver
analyzerDriver = compilation.CreateAnalyzerDriver(analyzers, analyzerManager, severityFilter);
2167
async ValueTask<IGroupedAnalyzerActions> getAllActionsAsync(
AnalyzerDriver
driver, ISymbol symbol, DiagnosticAnalyzer analyzer, SyntaxTree? filterTree, TextSpan? filterSpan, CancellationToken cancellationToken)
2183
async ValueTask<IGroupedAnalyzerActions> getInheritedActionsAsync(
AnalyzerDriver
driver, ISymbol symbol, DiagnosticAnalyzer analyzer, SyntaxTree? filterTree, TextSpan? filterSpan, CancellationToken cancellationToken)
2207
static 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)
20
using static Microsoft.CodeAnalysis.Diagnostics.
AnalyzerDriver
;
309
using
var
driver = await CreateAndInitializeDriverAsync(compilation, _analysisOptions, analysisScope, _suppressors, categorizeDiagnostics: false, cancellationToken).ConfigureAwait(false);
363
private static async Task<
AnalyzerDriver
> CreateAndInitializeDriverAsync(
380
var
driver = compilation.CreateAnalyzerDriver(analyzers, new AnalyzerManager(analyzers), severityFilter: SeverityFilter.None);
729
using
var
driver = await CreateAndInitializeDriverAsync(compilation, _analysisOptions, analysisScope, _suppressors, categorizeDiagnostics: true, cancellationToken).ConfigureAwait(false);
816
AnalyzerDriver
driver,
831
AnalyzerDriver
driver,
1299
using
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)
361
private GeneratedCodeAnalysisFlags _generatedCodeConfiguration =
AnalyzerDriver
.DefaultGeneratedCodeAnalysisFlags;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
4399
var
driver = AnalyzerDriver.CreateAndAttachToCompilation(compilation, analyzersArray, AnalyzerOptions.Empty, analyzerManager, onAnalyzerException: null,
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticExtensions.cs (1)
313
var
driver = AnalyzerDriver.CreateAndAttachToCompilation(c, analyzersArray, options, analyzerManager, onAnalyzerException,