1 instantiation of AnalyzerExecutor
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
141
return new
AnalyzerExecutor
(compilation, analyzerOptions, addNonCategorizedDiagnostic, onAnalyzerException, analyzerExceptionFilter,
57 references to AnalyzerExecutor
Microsoft.CodeAnalysis (49)
Diagnostic\Diagnostic_SimpleDiagnostic.cs (2)
159
if (
AnalyzerExecutor
.IsAnalyzerExceptionDiagnostic(this))
162
return
AnalyzerExecutor
.AreEquivalentAnalyzerExceptionDiagnostics(this, other);
DiagnosticAnalyzer\AnalyzerDriver.cs (15)
73
private
AnalyzerExecutor
? _lazyAnalyzerExecutor;
74
protected
AnalyzerExecutor
AnalyzerExecutor
395
AnalyzerExecutor
analyzerExecutor,
519
var
analyzerExecutor =
AnalyzerExecutor
.Create(
644
/// <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>
673
/// <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>
726
private static void OnDriverException(Task faultedTask,
AnalyzerExecutor
analyzerExecutor, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken)
736
var diagnostic =
AnalyzerExecutor
.CreateDriverExceptionDiagnostic(innerException);
2041
AnalyzerExecutor
analyzerExecutor,
2242
AnalyzerExecutor
analyzerExecutor,
2267
AnalyzerExecutor
analyzerExecutor,
2396
AnalyzerExecutor
analyzerExecutor,
2473
var canHaveExecutableCodeBlock =
AnalyzerExecutor
.CanHaveExecutableCodeBlock(symbol);
2757
var diagnostic =
AnalyzerExecutor
.CreateDriverExceptionDiagnostic(ex);
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActionsForAnalyzer.cs (2)
91
RoslynImmutableInterlocked.InterlockedInitialize(ref _lazyNodeActionsByKind,
AnalyzerExecutor
.GetNodeActionsByKind(nodeActions));
108
RoslynImmutableInterlocked.InterlockedInitialize(ref _lazyOperationActionsByKind,
AnalyzerExecutor
.GetOperationActionsByKind(operationActions));
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
78
/// Creates <see cref="
AnalyzerExecutor
"/> to execute analyzer actions with given arguments
113
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)
61
AnalyzerExecutor
analyzerExecutor,
73
AnalyzerExecutor
analyzerExecutor,
99
AnalyzerExecutor
analyzerExecutor,
112
AnalyzerExecutor
analyzerExecutor,
134
AnalyzerExecutor
analyzerExecutor,
143
AnalyzerExecutor
analyzerExecutor,
169
public async ValueTask<AnalyzerActions> GetAnalyzerActionsAsync(DiagnosticAnalyzer analyzer,
AnalyzerExecutor
analyzerExecutor, CancellationToken cancellationToken)
192
AnalyzerExecutor
analyzerExecutor,
234
public async Task<bool> IsConcurrentAnalyzerAsync(DiagnosticAnalyzer analyzer,
AnalyzerExecutor
analyzerExecutor, CancellationToken cancellationToken)
244
public async Task<GeneratedCodeAnalysisFlags> GetGeneratedCodeAnalysisFlagsAsync(DiagnosticAnalyzer analyzer,
AnalyzerExecutor
analyzerExecutor, CancellationToken cancellationToken)
255
AnalyzerExecutor
analyzerExecutor,
267
AnalyzerExecutor
analyzerExecutor,
274
internal bool IsSupportedDiagnostic(DiagnosticAnalyzer analyzer, Diagnostic diagnostic, Func<DiagnosticAnalyzer, bool> isCompilerAnalyzer,
AnalyzerExecutor
analyzerExecutor, CancellationToken cancellationToken)
303
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.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
9603
Assert.Contains(
AnalyzerExecutor
.AnalyzerExceptionDiagnosticId, output, StringComparison.Ordinal);
9617
var csc = CreateCSharpCompiler(null, WorkingDirectory, new[] { "/t:library", $"/warnaserror:{
AnalyzerExecutor
.AnalyzerExceptionDiagnosticId}", srcFile.Path },
9625
Assert.Contains(
AnalyzerExecutor
.AnalyzerExceptionDiagnosticId, output, StringComparison.Ordinal);
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\ThrowingDiagnosticAnalyzer.cs (2)
85
Assert.True(diagnostics.Any(
AnalyzerExecutor
.IsAnalyzerExceptionDiagnostic));
89
Assert.False(diagnostics.Any(
AnalyzerExecutor
.IsAnalyzerExceptionDiagnostic));
Microsoft.CodeAnalysis.UnitTests (3)
Diagnostics\DiagnosticLocalizationTests.cs (3)
307
var
analyzerExecutor =
AnalyzerExecutor
.Create(
336
Assert.True(exceptionDiagnostics.TrueForAll(
AnalyzerExecutor
.IsAnalyzerExceptionDiagnostic));