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