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