3 instantiations of AnalyzerExecutor
Microsoft.CodeAnalysis (3)
DiagnosticAnalyzer\AnalyzerExecutor.cs (3)
129return new AnalyzerExecutor(compilation, analyzerOptions, addNonCategorizedDiagnostic, onAnalyzerException, analyzerExceptionFilter, 150return new AnalyzerExecutor( 220return new AnalyzerExecutor(_compilation, _analyzerOptions, _addNonCategorizedDiagnostic, _onAnalyzerException, _analyzerExceptionFilter,
67 references to AnalyzerExecutor
Microsoft.CodeAnalysis (54)
Diagnostic\Diagnostic_SimpleDiagnostic.cs (2)
158if (AnalyzerExecutor.IsAnalyzerExceptionDiagnostic(this)) 161return AnalyzerExecutor.AreEquivalentAnalyzerExceptionDiagnostics(this, other);
DiagnosticAnalyzer\AnalyzerDriver.cs (17)
68private AnalyzerExecutor? _lazyAnalyzerExecutor; 69protected AnalyzerExecutor AnalyzerExecutor 389private void Initialize(AnalyzerExecutor analyzerExecutor, DiagnosticQueue diagnosticQueue, CompilationData compilationData, ConcurrentSet<string>? suppressedDiagnosticIds, CancellationToken cancellationToken) 501var analyzerExecutor = AnalyzerExecutor.Create( 625/// <remarks>Driver must be initialized before invoking this method, i.e. <see cref="Initialize(AnalyzerExecutor, DiagnosticQueue, CompilationData, ConcurrentSet{string}, CancellationToken)"/> method must have been invoked and <see cref="WhenInitializedTask"/> must be non-null.</remarks> 657/// <remarks>Driver must be initialized before invoking this method, i.e. <see cref="Initialize(AnalyzerExecutor, DiagnosticQueue, CompilationData, ConcurrentSet{string}, CancellationToken)"/> method must have been invoked and <see cref="WhenInitializedTask"/> must be non-null.</remarks> 712private static void OnDriverException(Task faultedTask, AnalyzerExecutor analyzerExecutor, ImmutableArray<DiagnosticAnalyzer> analyzers) 722var diagnostic = AnalyzerExecutor.CreateDriverExceptionDiagnostic(innerException); 1933AnalyzerExecutor analyzerExecutor, 2130AnalyzerExecutor analyzerExecutor, 2153AnalyzerExecutor analyzerExecutor, 2259var executor = AnalyzerExecutor.WithCancellationToken(cancellationToken); 2281AnalyzerExecutor analyzerExecutor, 2356var canHaveExecutableCodeBlock = AnalyzerExecutor.CanHaveExecutableCodeBlock(symbol); 2600var diagnostic = AnalyzerExecutor.CreateDriverExceptionDiagnostic(ex); 2719AnalyzerExecutor analyzerExecutor)
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActionsForAnalyzer.cs (2)
78AnalyzerExecutor.GetNodeActionsByKind(nodeActions) : 96AnalyzerExecutor.GetOperationActionsByKind(operationActions) :
DiagnosticAnalyzer\AnalyzerExecutor.cs (5)
72/// Creates <see cref="AnalyzerExecutor"/> to execute analyzer actions with given arguments 103public static AnalyzerExecutor Create( 136/// Creates <see cref="AnalyzerExecutor"/> to fetch <see cref="DiagnosticAnalyzer.SupportedDiagnostics"/>. 144public static AnalyzerExecutor CreateForSupportedDiagnostics( 213public AnalyzerExecutor WithCancellationToken(CancellationToken cancellationToken)
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (11)
68public Task<HostSessionStartAnalysisScope> GetSessionAnalysisScopeAsync(AnalyzerExecutor analyzerExecutor) 82static Task<HostSessionStartAnalysisScope> getSessionAnalysisScopeTaskSlow(AnalyzerExecutionContext context, AnalyzerExecutor executor) 104AnalyzerExecutor analyzerExecutor) 134AnalyzerExecutor analyzerExecutor) 240public ImmutableArray<DiagnosticDescriptor> GetOrComputeDiagnosticDescriptors(DiagnosticAnalyzer analyzer, AnalyzerExecutor analyzerExecutor) 243public ImmutableArray<SuppressionDescriptor> GetOrComputeSuppressionDescriptors(DiagnosticSuppressor suppressor, AnalyzerExecutor analyzerExecutor) 248Func<DiagnosticAnalyzer, AnalyzerExecutor, ImmutableArray<TDescriptor>> computeDescriptorsNoLock, 250AnalyzerExecutor analyzerExecutor, 279AnalyzerExecutor analyzerExecutor) 311var diagnostic = AnalyzerExecutor.CreateAnalyzerExceptionDiagnostic(analyzer, ex); 328AnalyzerExecutor analyzerExecutor)
DiagnosticAnalyzer\AnalyzerManager.cs (14)
59AnalyzerExecutor analyzerExecutor) 70AnalyzerExecutor analyzerExecutor, 93AnalyzerExecutor analyzerExecutor) 103AnalyzerExecutor analyzerExecutor, 124AnalyzerExecutor analyzerExecutor) 132AnalyzerExecutor analyzerExecutor, 157public async ValueTask<AnalyzerActions> GetAnalyzerActionsAsync(DiagnosticAnalyzer analyzer, AnalyzerExecutor analyzerExecutor) 178AnalyzerExecutor analyzerExecutor) 219public async Task<bool> IsConcurrentAnalyzerAsync(DiagnosticAnalyzer analyzer, AnalyzerExecutor analyzerExecutor) 229public async Task<GeneratedCodeAnalysisFlags> GetGeneratedCodeAnalysisFlagsAsync(DiagnosticAnalyzer analyzer, AnalyzerExecutor analyzerExecutor) 250AnalyzerExecutor analyzerExecutor) 261AnalyzerExecutor analyzerExecutor) 267internal bool IsSupportedDiagnostic(DiagnosticAnalyzer analyzer, Diagnostic diagnostic, Func<DiagnosticAnalyzer, bool> isCompilerAnalyzer, AnalyzerExecutor analyzerExecutor) 296AnalyzerExecutor analyzerExecutor,
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (2)
1249var analyzerExecutor = AnalyzerExecutor.CreateForSupportedDiagnostics(wrappedOnAnalyzerException, analyzerManager);
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.cs (1)
33builder.Add(AnalyzerExecutor.GetAnalyzerExceptionDiagnosticDescriptor());
Microsoft.CodeAnalysis.CodeStyle.LegacyTestFramework.UnitTestUtilities (1)
AbstractDiagnosticProviderBasedUserDiagnosticTest.cs (1)
234/// The internal method <see cref="AnalyzerExecutor.IsAnalyzerExceptionDiagnostic(Diagnostic)"/> does
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
9381Assert.Contains(AnalyzerExecutor.AnalyzerExceptionDiagnosticId, output, StringComparison.Ordinal); 9395var csc = CreateCSharpCompiler(null, WorkingDirectory, new[] { "/t:library", $"/warnaserror:{AnalyzerExecutor.AnalyzerExceptionDiagnosticId}", srcFile.Path }, 9403Assert.Contains(AnalyzerExecutor.AnalyzerExceptionDiagnosticId, output, StringComparison.Ordinal);
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
Diagnostics\AbstractDiagnosticProviderBasedUserDiagnosticTest.cs (1)
234/// The internal method <see cref="AnalyzerExecutor.IsAnalyzerExceptionDiagnostic(Diagnostic)"/> does
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\ThrowingDiagnosticAnalyzer.cs (2)
85Assert.True(diagnostics.Any(AnalyzerExecutor.IsAnalyzerExceptionDiagnostic)); 89Assert.False(diagnostics.Any(AnalyzerExecutor.IsAnalyzerExceptionDiagnostic));
Microsoft.CodeAnalysis.UnitTests (3)
Diagnostics\DiagnosticLocalizationTests.cs (3)
306var analyzerExecutor = AnalyzerExecutor.CreateForSupportedDiagnostics(onAnalyzerException, analyzerManager); 319Assert.True(exceptionDiagnostics.TrueForAll(AnalyzerExecutor.IsAnalyzerExceptionDiagnostic));
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (3)
CommandLineTests.vb (3)
8928Assert.Contains(AnalyzerExecutor.AnalyzerExceptionDiagnosticId, output, StringComparison.Ordinal) 8941Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/t:library", $"/warnaserror:{AnalyzerExecutor.AnalyzerExceptionDiagnosticId}", source}, 8949Assert.Contains(AnalyzerExecutor.AnalyzerExceptionDiagnosticId, output, StringComparison.Ordinal)