2 instantiations of DocumentAnalysisData
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.ActiveFileState.cs (2)
45
_syntax = new
DocumentAnalysisData
(VersionStamp.Default, _syntax.LineCount, _syntax.Items);
46
_semantic = new
DocumentAnalysisData
(VersionStamp.Default, _semantic.LineCount, _semantic.Items);
18 references to DocumentAnalysisData
Microsoft.CodeAnalysis.LanguageServer.Protocol (18)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.ActiveFileState.cs (6)
23
private
DocumentAnalysisData
_syntax =
DocumentAnalysisData
.Empty;
24
private
DocumentAnalysisData
_semantic =
DocumentAnalysisData
.Empty;
50
public
DocumentAnalysisData
GetAnalysisData(AnalysisKind kind)
63
public void Save(AnalysisKind kind,
DocumentAnalysisData
data)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.AnalysisData.cs (1)
22
public static readonly
DocumentAnalysisData
Empty = new(VersionStamp.Default, lineCount: 0, []);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.IncrementalMemberEditAnalyzer.cs (4)
87
var
existingData = analyzerWithState.ExistingData;
97
var analyzerWithStateAndEmptyData = new AnalyzerWithState(analyzerWithState.Analyzer, analyzerWithState.IsHostAnalyzer, analyzerWithState.State,
DocumentAnalysisData
.Empty);
238
DocumentAnalysisData
existingData,
289
DocumentAnalysisData
existingData,
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.ProjectState.cs (2)
257
var
syntax = state.GetAnalysisData(AnalysisKind.Syntax);
258
var
semantic = state.GetAnalysisData(AnalysisKind.Semantic);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (5)
230
var
existingData = state.GetAnalysisData(AnalysisKind.Syntax);
237
var
existingData = state.GetAnalysisData(AnalysisKind.Semantic);
325
DocumentAnalysisData
existingData,
415
async Task<bool> TryDeprioritizeAnalyzerAsync(DiagnosticAnalyzer analyzer,
DocumentAnalysisData
existingData)
540
private sealed record class AnalyzerWithState(DiagnosticAnalyzer Analyzer, bool IsHostAnalyzer, ActiveFileState State,
DocumentAnalysisData
ExistingData);