2 instantiations of DocumentSymbolDataModel
Microsoft.VisualStudio.LanguageServices (2)
DocumentOutline\DocumentOutlineControl_ModelComputation.cs (1)
139
return new
DocumentSymbolDataModel
(updatedDocumentSymbolData, model.OriginalSnapshot);
DocumentOutline\DocumentOutlineHelper.cs (1)
118
return new
DocumentSymbolDataModel
(finalResult.ToImmutable(), originalSnapshot);
13 references to DocumentSymbolDataModel
Microsoft.VisualStudio.LanguageServices (11)
DocumentOutline\DocumentOutlineControl.xaml.cs (4)
68
private readonly AsyncBatchingWorkQueue<bool,
DocumentSymbolDataModel
?> _computeDataModelQueue;
73
private readonly AsyncBatchingWorkQueue<bool,
DocumentSymbolDataModel
?> _filterAndSortDataModelQueue;
103
_computeDataModelQueue = new AsyncBatchingWorkQueue<bool,
DocumentSymbolDataModel
?>(
110
_filterAndSortDataModelQueue = new AsyncBatchingWorkQueue<bool,
DocumentSymbolDataModel
?>(
DocumentOutline\DocumentOutlineControl_ModelComputation.cs (6)
41
private async ValueTask<
DocumentSymbolDataModel
?> ComputeDataModelAsync(ImmutableSegmentedList<bool> _, CancellationToken cancellationToken)
61
var
model = await ComputeModelAsync().ConfigureAwait(false);
69
async Task<
DocumentSymbolDataModel
?> ComputeModelAsync()
115
private async ValueTask<
DocumentSymbolDataModel
?> FilterAndSortDataModelAsync(ImmutableSegmentedList<bool> _, CancellationToken cancellationToken)
117
var
model = await _computeDataModelQueue.WaitUntilCurrentBatchCompletesAsync().ConfigureAwait(false);
156
var
model = await _filterAndSortDataModelQueue.WaitUntilCurrentBatchCompletesAsync().ConfigureAwait(false);
DocumentOutline\DocumentOutlineHelper.cs (1)
102
public static
DocumentSymbolDataModel
CreateDocumentSymbolDataModel(LspDocumentSymbol[] documentSymbols, ITextSnapshot originalSnapshot)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
DocumentOutline\DocumentOutlineTests.cs (2)
55
private async Task<(DocumentOutlineTestMocks mocks,
DocumentSymbolDataModel
model, ImmutableArray<DocumentSymbolUIItem> uiItems)> InitializeMocksAndDataModelAndUIItems(string testCode)
67
var
model = DocumentOutlineHelper.CreateDocumentSymbolDataModel(responseBody, snapshot);