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