1 instantiation of AnalyzerExecutor
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
124return new AnalyzerExecutor(compilation, analyzerOptions, addNonCategorizedDiagnostic, onAnalyzerException, analyzerExceptionFilter,
50 references to AnalyzerExecutor
Microsoft.CodeAnalysis (49)
Diagnostic\Diagnostic_SimpleDiagnostic.cs (2)
159if (AnalyzerExecutor.IsAnalyzerExceptionDiagnostic(this)) 162return AnalyzerExecutor.AreEquivalentAnalyzerExceptionDiagnostics(this, other);
DiagnosticAnalyzer\AnalyzerDriver.cs (15)
69private AnalyzerExecutor? _lazyAnalyzerExecutor; 70protected AnalyzerExecutor AnalyzerExecutor 391AnalyzerExecutor analyzerExecutor, 509var analyzerExecutor = AnalyzerExecutor.Create( 633/// <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> 662/// <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> 715private static void OnDriverException(Task faultedTask, AnalyzerExecutor analyzerExecutor, ImmutableArray<DiagnosticAnalyzer> analyzers, CancellationToken cancellationToken) 725var diagnostic = AnalyzerExecutor.CreateDriverExceptionDiagnostic(innerException); 2025AnalyzerExecutor analyzerExecutor, 2226AnalyzerExecutor analyzerExecutor, 2251AnalyzerExecutor analyzerExecutor, 2380AnalyzerExecutor analyzerExecutor, 2457var canHaveExecutableCodeBlock = AnalyzerExecutor.CanHaveExecutableCodeBlock(symbol); 2741var diagnostic = AnalyzerExecutor.CreateDriverExceptionDiagnostic(ex);
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActionsForAnalyzer.cs (2)
91RoslynImmutableInterlocked.InterlockedInitialize(ref _lazyNodeActionsByKind, AnalyzerExecutor.GetNodeActionsByKind(nodeActions)); 108RoslynImmutableInterlocked.InterlockedInitialize(ref _lazyOperationActionsByKind, AnalyzerExecutor.GetOperationActionsByKind(operationActions));
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
67/// Creates <see cref="AnalyzerExecutor"/> to execute analyzer actions with given arguments 98public static AnalyzerExecutor Create(
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (11)
75public Task<HostSessionStartAnalysisScope> GetSessionAnalysisScopeAsync(AnalyzerExecutor analyzerExecutor, CancellationToken cancellationToken) 89static Task<HostSessionStartAnalysisScope> getSessionAnalysisScopeTaskSlowAsync(AnalyzerExecutionContext context, AnalyzerExecutor executor, CancellationToken cancellationToken) 111AnalyzerExecutor analyzerExecutor, 145AnalyzerExecutor analyzerExecutor, 249public ImmutableArray<DiagnosticDescriptor> GetOrComputeDiagnosticDescriptors(DiagnosticAnalyzer analyzer, AnalyzerExecutor analyzerExecutor, CancellationToken cancellationToken) 252public ImmutableArray<SuppressionDescriptor> GetOrComputeSuppressionDescriptors(DiagnosticSuppressor suppressor, AnalyzerExecutor analyzerExecutor, CancellationToken cancellationToken) 257Func<DiagnosticAnalyzer, AnalyzerExecutor, CancellationToken, ImmutableArray<TDescriptor>> computeDescriptorsNoLock, 259AnalyzerExecutor analyzerExecutor, 289AnalyzerExecutor analyzerExecutor, 339var diagnostic = AnalyzerExecutor.CreateAnalyzerExceptionDiagnostic(analyzer, exception); 367AnalyzerExecutor analyzerExecutor,
DiagnosticAnalyzer\AnalyzerManager.cs (14)
61AnalyzerExecutor analyzerExecutor, 73AnalyzerExecutor analyzerExecutor, 99AnalyzerExecutor analyzerExecutor, 112AnalyzerExecutor analyzerExecutor, 134AnalyzerExecutor analyzerExecutor, 143AnalyzerExecutor analyzerExecutor, 169public async ValueTask<AnalyzerActions> GetAnalyzerActionsAsync(DiagnosticAnalyzer analyzer, AnalyzerExecutor analyzerExecutor, CancellationToken cancellationToken) 192AnalyzerExecutor analyzerExecutor, 234public async Task<bool> IsConcurrentAnalyzerAsync(DiagnosticAnalyzer analyzer, AnalyzerExecutor analyzerExecutor, CancellationToken cancellationToken) 244public async Task<GeneratedCodeAnalysisFlags> GetGeneratedCodeAnalysisFlagsAsync(DiagnosticAnalyzer analyzer, AnalyzerExecutor analyzerExecutor, CancellationToken cancellationToken) 255AnalyzerExecutor analyzerExecutor, 267AnalyzerExecutor analyzerExecutor, 274internal bool IsSupportedDiagnostic(DiagnosticAnalyzer analyzer, Diagnostic diagnostic, Func<DiagnosticAnalyzer, bool> isCompilerAnalyzer, AnalyzerExecutor analyzerExecutor, CancellationToken cancellationToken) 303AnalyzerExecutor analyzerExecutor,
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (2)
1241catch (Exception ex) when (AnalyzerExecutor.HandleAnalyzerException(ex, analyzer, info: null, wrappedOnAnalyzerException, analyzerExceptionFilter: null, CancellationToken.None)) 1253catch (Exception ex) when (AnalyzerExecutor.HandleAnalyzerException(ex, suppressor, info: null, wrappedOnAnalyzerException, analyzerExceptionFilter: null, CancellationToken.None))
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.cs (1)
34builder.Add(AnalyzerExecutor.GetAnalyzerExceptionDiagnosticDescriptor());
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\DiagnosticLocalizationTests.cs (1)
307var analyzerExecutor = AnalyzerExecutor.Create(compilation, AnalyzerOptions.Empty,