4 instantiations of AnalysisScope
Microsoft.CodeAnalysis (4)
DiagnosticAnalyzer\AnalysisScope.cs (4)
112
return new
AnalysisScope
(compilation.CommonSyntaxTrees, additionalFiles,
127
return new
AnalysisScope
(trees, additionalFiles, analyzers, hasAllAnalyzers, filterFile, filterSpan, originalFilterFile, originalFilterSpan, isSyntacticSingleFileAnalysis, concurrentAnalysis);
195
return new
AnalysisScope
(SyntaxTrees, AdditionalFiles, analyzers, hasAllAnalyzers, FilterFileOpt, FilterSpanOpt, OriginalFilterFile, OriginalFilterSpan, IsSyntacticSingleFileAnalysis, ConcurrentAnalysis);
211
=> new
AnalysisScope
(SyntaxTrees, AdditionalFiles, Analyzers, HasAllAnalyzers, FilterFileOpt, filterSpan, OriginalFilterFile, OriginalFilterSpan, IsSyntacticSingleFileAnalysis, ConcurrentAnalysis);
83 references to AnalysisScope
Microsoft.CodeAnalysis (83)
DiagnosticAnalyzer\AnalysisResultBuilder.cs (7)
187
public void ApplySuppressionsAndStoreAnalysisResult(
AnalysisScope
analysisScope, AnalyzerDriver driver, Compilation compilation, Func<DiagnosticAnalyzer, AnalyzerActionCounts> getAnalyzerActionCounts, CancellationToken cancellationToken)
401
internal ImmutableArray<Diagnostic> GetDiagnostics(
AnalysisScope
analysisScope, bool getLocalDiagnostics, bool getNonLocalDiagnostics)
409
private ImmutableArray<Diagnostic> GetDiagnostics_NoLock(
AnalysisScope
analysisScope, bool getLocalDiagnostics, bool getNonLocalDiagnostics)
443
AnalysisScope
analysisScope,
458
AnalysisScope
analysisScope,
464
AnalysisScope
analysisScope,
499
internal AnalysisResult ToAnalysisResult(ImmutableArray<DiagnosticAnalyzer> analyzers,
AnalysisScope
analysisScope, CancellationToken cancellationToken)
DiagnosticAnalyzer\AnalysisScope.cs (7)
96
public static
AnalysisScope
Create(Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, CompilationWithAnalyzers compilationWithAnalyzers)
104
public static
AnalysisScope
CreateForBatchCompile(Compilation compilation, AnalyzerOptions analyzerOptions, ImmutableArray<DiagnosticAnalyzer> analyzers)
109
private static
AnalysisScope
Create(Compilation compilation, AnalyzerOptions? analyzerOptions, ImmutableArray<DiagnosticAnalyzer> analyzers, bool hasAllAnalyzers, bool concurrentAnalysis)
118
public static
AnalysisScope
Create(ImmutableArray<DiagnosticAnalyzer> analyzers, SourceOrAdditionalFile filterFile, TextSpan? filterSpan, bool isSyntacticSingleFileAnalysis, CompilationWithAnalyzers compilationWithAnalyzers)
121
public static
AnalysisScope
Create(ImmutableArray<DiagnosticAnalyzer> analyzers, SourceOrAdditionalFile filterFile, TextSpan? filterSpan, SourceOrAdditionalFile originalFilterFile, TextSpan? originalFilterSpan, bool isSyntacticSingleFileAnalysis, CompilationWithAnalyzers compilationWithAnalyzers)
192
public
AnalysisScope
WithAnalyzers(ImmutableArray<DiagnosticAnalyzer> analyzers, CompilationWithAnalyzers compilationWithAnalyzers)
210
public
AnalysisScope
WithFilterSpan(TextSpan? filterSpan)
DiagnosticAnalyzer\AnalyzerDriver.cs (37)
395
AnalysisScope
analysisScope,
465
AnalysisScope
analysisScope,
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>
635
internal async Task AttachQueueAndProcessAllEventsAsync(AsyncQueue<CompilationEvent> eventQueue,
AnalysisScope
analysisScope, CancellationToken cancellationToken)
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>
664
internal void AttachQueueAndStartProcessingEvents(AsyncQueue<CompilationEvent> eventQueue,
AnalysisScope
analysisScope, bool usingPrePopulatedEventQueue, CancellationToken cancellationToken)
694
private async Task ExecutePrimaryAnalysisTaskAsync(
AnalysisScope
analysisScope, bool usingPrePopulatedEventQueue, CancellationToken cancellationToken)
735
private void ExecuteSyntaxTreeActions(
AnalysisScope
analysisScope, CancellationToken cancellationToken)
767
private void ExecuteAdditionalFileActions(
AnalysisScope
analysisScope, CancellationToken cancellationToken)
852
var
analysisScope =
AnalysisScope
.CreateForBatchCompile(newCompilation, options, analyzers);
1508
private async Task ProcessCompilationEventsAsync(
AnalysisScope
analysisScope, bool prePopulatedEventQueue, CancellationToken cancellationToken)
1575
private async Task<CompilationCompletedEvent?> ProcessCompilationEventsCoreAsync(
AnalysisScope
analysisScope, bool prePopulatedEventQueue, CancellationToken cancellationToken)
1634
private async Task ProcessEventAsync(CompilationEvent e,
AnalysisScope
analysisScope, CancellationToken cancellationToken)
1656
private async Task OnEventProcessedCoreAsync(CompilationEvent compilationEvent, ImmutableArray<DiagnosticAnalyzer> processedAnalyzers,
AnalysisScope
analysisScope, CancellationToken cancellationToken)
1718
private async ValueTask<EventProcessedState> TryProcessEventCoreAsync(CompilationEvent compilationEvent,
AnalysisScope
analysisScope, CancellationToken cancellationToken)
1753
private async ValueTask<EventProcessedState> TryProcessSymbolDeclaredAsync(SymbolDeclaredCompilationEvent symbolEvent,
AnalysisScope
analysisScope, CancellationToken cancellationToken)
1758
var skipSymbolAnalysis =
AnalysisScope
.ShouldSkipSymbolAnalysis(symbolEvent);
1759
var skipDeclarationAnalysis =
AnalysisScope
.ShouldSkipDeclarationAnalysis(symbol);
1786
private void ExecuteSymbolActions(SymbolDeclaredCompilationEvent symbolEvent,
AnalysisScope
analysisScope, bool isGeneratedCodeSymbol, CancellationToken cancellationToken)
1812
AnalysisScope
analysisScope,
1893
AnalysisScope
analysisScope,
1898
private void ProcessCompilationUnitCompleted(CompilationUnitCompletedEvent completedEvent,
AnalysisScope
analysisScope, CancellationToken cancellationToken)
1928
private void ProcessCompilationStarted(CompilationStartedEvent startedEvent,
AnalysisScope
analysisScope, CancellationToken cancellationToken)
1933
private void ProcessCompilationCompleted(CompilationCompletedEvent endEvent,
AnalysisScope
analysisScope, CancellationToken cancellationToken)
1941
AnalysisScope
analysisScope,
2027
AnalysisScope
analysisScope,
2049
public bool HasSymbolStartedActions(
AnalysisScope
analysisScope)
2108
AnalysisScope
analysisScope,
2228
AnalysisScope
analysisScope,
2253
AnalysisScope
analysisScope,
2358
internal async Task<AnalyzerActionCounts> GetAnalyzerActionCountsAsync(DiagnosticAnalyzer analyzer, CompilationOptions compilationOptions,
AnalysisScope
analysisScope, CancellationToken cancellationToken)
2382
AnalysisScope
analysisScope,
2496
AnalysisScope
analysisScope,
2539
AnalysisScope
analysisScope,
2570
AnalysisScope
analysisScope,
2825
AnalysisScope
analysisScope,
DiagnosticAnalyzer\AnalyzerManager.cs (1)
303
AnalysisScope
analysisScope,
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (31)
27
private readonly
AnalysisScope
_compilationAnalysisScope;
108
_compilationAnalysisScope =
AnalysisScope
.Create(_compilation, _analyzers, this);
308
var
analysisScope =
AnalysisScope
.Create(compilation, analyzers, this);
344
var
analysisScope = _compilationAnalysisScope.WithAnalyzers(analyzers, this);
351
var
analysisScope = _compilationAnalysisScope.WithAnalyzers(analyzers, this);
358
var
analysisScope = _compilationAnalysisScope.WithAnalyzers(analyzers, this);
366
AnalysisScope
analysisScope,
579
var
analysisScope =
AnalysisScope
.Create(analyzers, file, filterSpan, isSyntacticSingleFileAnalysis: true, this);
586
var
analysisScope =
AnalysisScope
.Create(analyzers, new SourceOrAdditionalFile(tree), filterSpan, isSyntacticSingleFileAnalysis: true, this);
653
var
analysisScope =
AnalysisScope
.Create(analyzers, new SourceOrAdditionalFile(model.SyntaxTree), filterSpan, isSyntacticSingleFileAnalysis: false, this);
660
var
analysisScope =
AnalysisScope
.Create(analyzers, new SourceOrAdditionalFile(model.SyntaxTree), filterSpan, isSyntacticSingleFileAnalysis: false, this);
683
private async Task ComputeAnalyzerDiagnosticsAsync(
AnalysisScope
? analysisScope, CancellationToken cancellationToken)
769
var builder = ArrayBuilder<(
AnalysisScope
, ImmutableArray<CompilationEvent>)>.GetInstance();
790
var
otherAnalyzersAnalysisScope = analysisScope.WithAnalyzers(otherAnalyzers, this);
815
ArrayBuilder<(
AnalysisScope
, ImmutableArray<CompilationEvent>)> builder,
833
AnalysisScope
analysisScope,
882
ArrayBuilder<(
AnalysisScope
, ImmutableArray<CompilationEvent>)> builder,
935
bool tryProcessTree(SyntaxTree partialTree, [NotNullWhen(true)] out (
AnalysisScope
scope, ImmutableArray<CompilationEvent> events)? scopeAndEvents)
940
var
analysisScope =
AnalysisScope
.Create(symbolStartAnalyzers, file, filterSpan: null,
970
private
AnalysisScope
? GetPendingAnalysisScope(
AnalysisScope
analysisScope)
989
AnalysisScope
analysisScope,
1021
static void generateCompilationEvents(Compilation compilation,
AnalysisScope
analysisScope, CancellationToken cancellationToken)
1041
AnalysisScope
analysisScope,
1298
var
analysisScope = _compilationAnalysisScope.WithAnalyzers(ImmutableArray.Create(analyzer), this);