1 write to AnalysisScope
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\DocumentAnalysisExecutor.cs (1)
48AnalysisScope = analysisScope;
25 references to AnalysisScope
Microsoft.CodeAnalysis.LanguageServer.Protocol (25)
Features\Diagnostics\DocumentAnalysisExecutor.cs (18)
76Contract.ThrowIfFalse(AnalysisScope.ProjectAnalyzers.Contains(analyzer) || AnalysisScope.HostAnalyzers.Contains(analyzer)); 78var textDocument = AnalysisScope.TextDocument; 79var span = AnalysisScope.Span; 80var kind = AnalysisScope.Kind; 217RoslynDebug.Assert(AnalysisScope.TextDocument is Document); 220? AnalysisScope.WithAnalyzers([analyzer], []).WithSpan(span) 221: AnalysisScope.WithAnalyzers([], [analyzer]).WithSpan(span); 244if (AnalysisScope.TextDocument is not Document) 249return await GetCompilerAnalyzerDiagnosticsAsync(analyzer, AnalysisScope.Span, cancellationToken).ConfigureAwait(false); 256var analysisScope = AnalysisScope.WithAnalyzers(_compilationBasedProjectAnalyzersInAnalysisScope, _compilationBasedHostAnalyzersInAnalysisScope); 262? diagnosticAnalysisResult.GetDocumentDiagnostics(AnalysisScope.TextDocument.Id, AnalysisScope.Kind) 276var span = AnalysisScope.Span; 277var document = (Document)AnalysisScope.TextDocument; 292var analysisScope = AnalysisScope.WithAnalyzers(_compilationBasedProjectAnalyzersInAnalysisScope, _compilationBasedHostAnalyzersInAnalysisScope); 298? diagnosticAnalysisResult.GetDocumentDiagnostics(AnalysisScope.TextDocument.Id, AnalysisScope.Kind)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.IncrementalMemberEditAnalyzer.cs (5)
54var analysisScope = executor.AnalysisScope; 174var analysisScope = executor.AnalysisScope; 250Debug.Assert(executor.AnalysisScope.Span.HasValue); 251Debug.Assert(executor.AnalysisScope.Span.Value == changedMember.FullSpan); 274var documentExecutor = executor.With(executor.AnalysisScope.WithSpan(null));
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (2)
510foreach (var analyzer in executor.AnalysisScope.ProjectAnalyzers.ConcatFast(executor.AnalysisScope.HostAnalyzers))