1 instantiation of DocumentSymbolDataViewModel
Microsoft.VisualStudio.LanguageServices (1)
DocumentOutline\DocumentOutlineViewModel_Utilities.cs (1)
182var documentSymbolItem = new DocumentSymbolDataViewModel(documentSymbol, children);
60 references to DocumentSymbolDataViewModel
Microsoft.VisualStudio.LanguageServices (60)
DocumentOutline\DocumentOutlineView.xaml.cs (11)
242$"{nameof(DocumentSymbolDataViewModel.Data)}.{nameof(DocumentSymbolDataViewModel.Data.Name)}", 246$"{nameof(DocumentSymbolDataViewModel.Data)}.{nameof(DocumentSymbolDataViewModel.Data.RangeSpan)}.{nameof(DocumentSymbolDataViewModel.Data.RangeSpan.Start)}.{nameof(DocumentSymbolDataViewModel.Data.RangeSpan.Start.Position)}", 251$"{nameof(DocumentSymbolDataViewModel.Data)}.{nameof(DocumentSymbolDataViewModel.Data.SymbolKind)}", 254$"{nameof(DocumentSymbolDataViewModel.Data)}.{nameof(DocumentSymbolDataViewModel.Data.Name)}", 288&& e.OriginalSource is TreeViewItem { DataContext: DocumentSymbolDataViewModel symbolModel } item
DocumentOutline\DocumentOutlineViewModel.cs (18)
62private ImmutableArray<DocumentSymbolDataViewModel> _documentSymbolViewModelItems_doNotAccessDirectly = ImmutableArray<DocumentSymbolDataViewModel>.Empty; 122ImmutableArray<DocumentSymbolDataViewModel>.Empty, 227public ImmutableArray<DocumentSymbolDataViewModel> DocumentSymbolViewModelItems 252static void ExpandOrCollapse(ImmutableArray<DocumentSymbolDataViewModel> models, bool shouldExpand) 254foreach (var model in models) 325using var _ = SegmentedListPool.GetPooledList<DocumentSymbolDataViewModel>(out var models); 327var intervalTree = ImmutableIntervalTree<DocumentSymbolDataViewModel>.CreateFromUnsorted( 355static void AddAllModels(ImmutableArray<DocumentSymbolDataViewModel> viewModels, SegmentedList<DocumentSymbolDataViewModel> result) 357foreach (var model in viewModels) 367ImmutableArray<DocumentSymbolDataViewModel> oldItems, 368ImmutableArray<DocumentSymbolDataViewModel> newItems) 379foreach (var item in newItems) 395ImmutableArray<DocumentSymbolDataViewModel> oldItems, 398foreach (var item in oldItems) 410ImmutableArray<DocumentSymbolDataViewModel> newItems) 412foreach (var item in newItems)
DocumentOutline\DocumentOutlineViewModel.DocumentOutlineViewState.cs (6)
34/// should be as the only mutable state is <see cref="DocumentSymbolDataViewModel.IsExpanded"/>/<see 35/// cref="DocumentSymbolDataViewModel.IsSelected"/>, both of which are threadsafe. 37public readonly ImmutableArray<DocumentSymbolDataViewModel> ViewModelItems; 43public readonly ImmutableIntervalTree<DocumentSymbolDataViewModel> ViewModelItemsTree; 48ImmutableArray<DocumentSymbolDataViewModel> viewModelItems, 49ImmutableIntervalTree<DocumentSymbolDataViewModel> viewModelItemsTree)
DocumentOutline\DocumentOutlineViewModel.IntervalIntrospector.cs (2)
17private readonly struct IntervalIntrospector : IIntervalIntrospector<DocumentSymbolDataViewModel> 19public TextSpan GetSpan(DocumentSymbolDataViewModel value)
DocumentOutline\DocumentOutlineViewModel_Utilities.cs (6)
172/// Converts an immutable array of <see cref="DocumentSymbolData" /> to an immutable array of <see cref="DocumentSymbolDataViewModel"/>. 174public static ImmutableArray<DocumentSymbolDataViewModel> GetDocumentSymbolItemViewModels( 178var documentSymbolItems = new FixedSizeArrayBuilder<DocumentSymbolDataViewModel>(documentSymbolData.Length); 182var documentSymbolItem = new DocumentSymbolDataViewModel(documentSymbol, children); 191ImmutableArray<DocumentSymbolDataViewModel> currentDocumentSymbolItems, 194foreach (var item in currentDocumentSymbolItems)
DocumentOutline\DocumentSymbolDataViewModel.cs (5)
21internal sealed class DocumentSymbolDataViewModel : INotifyPropertyChanged, IEquatable<DocumentSymbolDataViewModel> 24public ImmutableArray<DocumentSymbolDataViewModel> Children { get; } 48ImmutableArray<DocumentSymbolDataViewModel> children) 79=> Equals(obj as DocumentSymbolDataViewModel); 81public bool Equals(DocumentSymbolDataViewModel? other)
DocumentOutline\DocumentSymbolDataViewModelSorter.cs (12)
16/// Sorts immutable collections of <see cref="DocumentSymbolDataViewModel"/>s 24if (values[0] is ImmutableArray<DocumentSymbolDataViewModel> children && 33public static IComparer<DocumentSymbolDataViewModel> GetComparer(SortOption sortOption) 48private sealed class NameComparer : IComparer<DocumentSymbolDataViewModel> 52public int Compare(DocumentSymbolDataViewModel x, DocumentSymbolDataViewModel y) 56private sealed class LocationComparer : IComparer<DocumentSymbolDataViewModel> 60public int Compare(DocumentSymbolDataViewModel x, DocumentSymbolDataViewModel y) 64private sealed class TypeComparer : IComparer<DocumentSymbolDataViewModel> 68public int Compare(DocumentSymbolDataViewModel x, DocumentSymbolDataViewModel y)