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