6 instantiations of DocumentAnalysisScope
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Features\Diagnostics\DefaultDiagnosticAnalyzerService.cs (1)
166var analysisScope = new DocumentAnalysisScope(document, span: null, analyzers, kind);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (1)
326var analysisScope = new DocumentAnalysisScope(_document, span, analyzers, kind);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (1)
89var analysisScope = new DocumentAnalysisScope(document, span: null, nonCachedStateSets.SelectAsArray(s => s.Analyzer), kind);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (1)
157? new DocumentAnalysisScope(_document, _span, analyzers, _analysisKind!.Value)
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\DocumentAnalysisScope.cs (2)
58=> new(TextDocument, span, Analyzers, Kind); 61=> new(TextDocument, Span, analyzers, Kind);
25 references to DocumentAnalysisScope
Microsoft.CodeAnalysis.LanguageServer.Protocol (18)
Features\Diagnostics\DefaultDiagnosticAnalyzerService.cs (1)
166var analysisScope = new DocumentAnalysisScope(document, span: null, analyzers, kind);
Features\Diagnostics\DocumentAnalysisExecutor.cs (8)
24/// Executes analyzers on a document for computing local syntax/semantic/additional file diagnostics for a specific <see cref="DocumentAnalysisScope"/>. 39DocumentAnalysisScope analysisScope, 57public DocumentAnalysisScope AnalysisScope { get; } 59public DocumentAnalysisExecutor With(DocumentAnalysisScope analysisScope) 178private async Task<ImmutableDictionary<DiagnosticAnalyzer, DiagnosticAnalysisResult>> GetAnalysisResultAsync(DocumentAnalysisScope analysisScope, CancellationToken cancellationToken) 202var analysisScope = AnalysisScope.WithAnalyzers(ImmutableArray.Create(analyzer)).WithSpan(span); 235var analysisScope = AnalysisScope.WithAnalyzers(_compilationBasedAnalyzersInAnalysisScope); 269var analysisScope = AnalysisScope.WithAnalyzers(_compilationBasedAnalyzersInAnalysisScope);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.IncrementalMemberEditAnalyzer.cs (2)
54var analysisScope = executor.AnalysisScope; 173var analysisScope = executor.AnalysisScope;
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.InProcOrRemoteHostAnalyzerRunner.cs (5)
40DocumentAnalysisScope documentAnalysisScope, 59DocumentAnalysisScope? documentAnalysisScope, 88DocumentAnalysisScope? documentAnalysisScope, 125DocumentAnalysisScope? documentAnalysisScope, 155DocumentAnalysisScope? documentAnalysisScope,
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (1)
326var analysisScope = new DocumentAnalysisScope(_document, span, analyzers, kind);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (1)
89var analysisScope = new DocumentAnalysisScope(document, span: null, nonCachedStateSets.SelectAsArray(s => s.Analyzer), kind);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (1)
156var documentAnalysisScope = _document != null
Microsoft.CodeAnalysis.Workspaces (6)
Diagnostics\DocumentAnalysisScope.cs (2)
57public DocumentAnalysisScope WithSpan(TextSpan? span) 60public DocumentAnalysisScope WithAnalyzers(ImmutableArray<DiagnosticAnalyzer> analyzers)
Diagnostics\Extensions.cs (4)
87DocumentAnalysisScope? documentAnalysisScope, 310DocumentAnalysisScope? documentAnalysisScope, 323DocumentAnalysisScope? documentAnalysisScope, 357DocumentAnalysisScope? documentAnalysisScope,