1 instantiation of AnalyzerExecutor
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
124
return new
AnalyzerExecutor
(compilation, analyzerOptions, addNonCategorizedDiagnostic, onAnalyzerException, analyzerExceptionFilter,
48 references to AnalyzerExecutor
Microsoft.CodeAnalysis (47)
Diagnostic\Diagnostic_SimpleDiagnostic.cs (2)
158
if (
AnalyzerExecutor
.IsAnalyzerExceptionDiagnostic(this))
161
return
AnalyzerExecutor
.AreEquivalentAnalyzerExceptionDiagnostics(this, other);
DiagnosticAnalyzer\AnalyzerDriver.cs (15)
70
private
AnalyzerExecutor
? _lazyAnalyzerExecutor;
71
protected
AnalyzerExecutor
AnalyzerExecutor
392
AnalyzerExecutor
analyzerExecutor,
510
var
analyzerExecutor =
AnalyzerExecutor
.Create(
634
/// <remarks>Driver must be initialized before invoking this method, i.e. <see cref="Initialize(
AnalyzerExecutor
, DiagnosticQueue, CompilationData, AnalysisScope, ConcurrentSet{string}, CancellationToken)"/> method must have been invoked and <see cref="WhenInitializedTask"/> must be non-null.</remarks>
663
/// <remarks>Driver must be initialized before invoking this method, i.e. <see cref="Initialize(
AnalyzerExecutor
, DiagnosticQueue, CompilationData, AnalysisScope, ConcurrentSet{string}, CancellationToken)"/> method must have been invoked and <see cref="WhenInitializedTask"/> must be non-null.</remarks>
716
private static void OnDriverException(Task faultedTask,
AnalyzerExecutor
analyzerExecutor, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken)
726
var diagnostic =
AnalyzerExecutor
.CreateDriverExceptionDiagnostic(innerException);
2026
AnalyzerExecutor
analyzerExecutor,
2227
AnalyzerExecutor
analyzerExecutor,
2252
AnalyzerExecutor
analyzerExecutor,
2381
AnalyzerExecutor
analyzerExecutor,
2458
var canHaveExecutableCodeBlock =
AnalyzerExecutor
.CanHaveExecutableCodeBlock(symbol);
2724
var diagnostic =
AnalyzerExecutor
.CreateDriverExceptionDiagnostic(ex);
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
67
/// Creates <see cref="
AnalyzerExecutor
"/> to execute analyzer actions with given arguments
98
public static
AnalyzerExecutor
Create(
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (11)
75
public Task<HostSessionStartAnalysisScope> GetSessionAnalysisScopeAsync(
AnalyzerExecutor
analyzerExecutor, CancellationToken cancellationToken)
89
static Task<HostSessionStartAnalysisScope> getSessionAnalysisScopeTaskSlowAsync(AnalyzerExecutionContext context,
AnalyzerExecutor
executor, CancellationToken cancellationToken)
111
AnalyzerExecutor
analyzerExecutor,
145
AnalyzerExecutor
analyzerExecutor,
249
public ImmutableArray<DiagnosticDescriptor> GetOrComputeDiagnosticDescriptors(DiagnosticAnalyzer analyzer,
AnalyzerExecutor
analyzerExecutor, CancellationToken cancellationToken)
252
public ImmutableArray<SuppressionDescriptor> GetOrComputeSuppressionDescriptors(DiagnosticSuppressor suppressor,
AnalyzerExecutor
analyzerExecutor, CancellationToken cancellationToken)
257
Func<DiagnosticAnalyzer,
AnalyzerExecutor
, CancellationToken, ImmutableArray<TDescriptor>> computeDescriptorsNoLock,
259
AnalyzerExecutor
analyzerExecutor,
289
AnalyzerExecutor
analyzerExecutor,
339
var diagnostic =
AnalyzerExecutor
.CreateAnalyzerExceptionDiagnostic(analyzer, exception);
367
AnalyzerExecutor
analyzerExecutor,
DiagnosticAnalyzer\AnalyzerManager.cs (14)
60
AnalyzerExecutor
analyzerExecutor,
72
AnalyzerExecutor
analyzerExecutor,
98
AnalyzerExecutor
analyzerExecutor,
111
AnalyzerExecutor
analyzerExecutor,
133
AnalyzerExecutor
analyzerExecutor,
142
AnalyzerExecutor
analyzerExecutor,
168
public async ValueTask<AnalyzerActions> GetAnalyzerActionsAsync(DiagnosticAnalyzer analyzer,
AnalyzerExecutor
analyzerExecutor, CancellationToken cancellationToken)
191
AnalyzerExecutor
analyzerExecutor,
233
public async Task<bool> IsConcurrentAnalyzerAsync(DiagnosticAnalyzer analyzer,
AnalyzerExecutor
analyzerExecutor, CancellationToken cancellationToken)
243
public async Task<GeneratedCodeAnalysisFlags> GetGeneratedCodeAnalysisFlagsAsync(DiagnosticAnalyzer analyzer,
AnalyzerExecutor
analyzerExecutor, CancellationToken cancellationToken)
254
AnalyzerExecutor
analyzerExecutor,
266
AnalyzerExecutor
analyzerExecutor,
273
internal bool IsSupportedDiagnostic(DiagnosticAnalyzer analyzer, Diagnostic diagnostic, Func<DiagnosticAnalyzer, bool> isCompilerAnalyzer,
AnalyzerExecutor
analyzerExecutor, CancellationToken cancellationToken)
302
AnalyzerExecutor
analyzerExecutor,
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (2)
1241
catch (Exception ex) when (
AnalyzerExecutor
.HandleAnalyzerException(ex, analyzer, info: null, wrappedOnAnalyzerException, analyzerExceptionFilter: null, CancellationToken.None))
1253
catch (Exception ex) when (
AnalyzerExecutor
.HandleAnalyzerException(ex, suppressor, info: null, wrappedOnAnalyzerException, analyzerExceptionFilter: null, CancellationToken.None))
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.cs (1)
34
builder.Add(
AnalyzerExecutor
.GetAnalyzerExceptionDiagnosticDescriptor());
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\DiagnosticLocalizationTests.cs (1)
307
var
analyzerExecutor = AnalyzerExecutor.Create(compilation, AnalyzerOptions.Empty,