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