2 instantiations of Data
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\DiagnosticService.cs (2)
155var data = source.SupportGetDiagnostics ? new Data(args) : new Data(args, diagnostics);
15 references to Data
Microsoft.CodeAnalysis.LanguageServer.Protocol (15)
Features\Diagnostics\DiagnosticService.cs (15)
33private readonly Dictionary<IDiagnosticUpdateSource, Dictionary<Workspace, Dictionary<object, Data>>> _map = new(); 129var workspaceMap = _map.GetOrAdd(source, _ => new Dictionary<Workspace, Dictionary<object, Data>>()); 137var diagnosticDataMap = workspaceMap.GetOrAdd(args.Workspace, _ => new Dictionary<object, Data>()); 155var data = source.SupportGetDiagnostics ? new Data(args) : new Data(args, diagnostics); 225using var _ = ArrayBuilder<Data>.GetInstance(out var buffer); 260using var _2 = ArrayBuilder<Data>.GetInstance(out var buffer); 274foreach (var data in buffer) 296using var _2 = ArrayBuilder<Data>.GetInstance(out var buffer); 304foreach (var data in buffer) 312IDiagnosticUpdateSource source, Workspace workspace, ProjectId projectId, DocumentId documentId, object id, ArrayBuilder<Data> list) 326if (current.TryGetValue(id, out var data)) 334foreach (var data in current.Values) 346private static bool TryAddData<T>(Workspace workspace, T key, Data data, Func<Data, T> keyGetter, ArrayBuilder<Data> result) where T : class