1 instantiation of DocumentSymbolDataViewModel
Microsoft.VisualStudio.LanguageServices (1)
DocumentOutline\DocumentOutlineViewModel_Utilities.cs (1)
182
var 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)
62
private ImmutableArray<
DocumentSymbolDataViewModel
> _documentSymbolViewModelItems_doNotAccessDirectly = ImmutableArray<
DocumentSymbolDataViewModel
>.Empty;
122
ImmutableArray<
DocumentSymbolDataViewModel
>.Empty,
227
public ImmutableArray<
DocumentSymbolDataViewModel
> DocumentSymbolViewModelItems
252
static void ExpandOrCollapse(ImmutableArray<
DocumentSymbolDataViewModel
> models, bool shouldExpand)
254
foreach (
var
model in models)
325
using var _ = SegmentedListPool.GetPooledList<
DocumentSymbolDataViewModel
>(out var models);
327
var intervalTree = ImmutableIntervalTree<
DocumentSymbolDataViewModel
>.CreateFromUnsorted(
355
static void AddAllModels(ImmutableArray<
DocumentSymbolDataViewModel
> viewModels, SegmentedList<
DocumentSymbolDataViewModel
> result)
357
foreach (
var
model in viewModels)
367
ImmutableArray<
DocumentSymbolDataViewModel
> oldItems,
368
ImmutableArray<
DocumentSymbolDataViewModel
> newItems)
379
foreach (
var
item in newItems)
395
ImmutableArray<
DocumentSymbolDataViewModel
> oldItems,
398
foreach (
var
item in oldItems)
410
ImmutableArray<
DocumentSymbolDataViewModel
> newItems)
412
foreach (
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.
37
public readonly ImmutableArray<
DocumentSymbolDataViewModel
> ViewModelItems;
43
public readonly ImmutableIntervalTree<
DocumentSymbolDataViewModel
> ViewModelItemsTree;
48
ImmutableArray<
DocumentSymbolDataViewModel
> viewModelItems,
49
ImmutableIntervalTree<
DocumentSymbolDataViewModel
> viewModelItemsTree)
DocumentOutline\DocumentOutlineViewModel.IntervalIntrospector.cs (2)
17
private readonly struct IntervalIntrospector : IIntervalIntrospector<
DocumentSymbolDataViewModel
>
19
public 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
"/>.
174
public static ImmutableArray<
DocumentSymbolDataViewModel
> GetDocumentSymbolItemViewModels(
178
var documentSymbolItems = new FixedSizeArrayBuilder<
DocumentSymbolDataViewModel
>(documentSymbolData.Length);
182
var
documentSymbolItem = new DocumentSymbolDataViewModel(documentSymbol, children);
191
ImmutableArray<
DocumentSymbolDataViewModel
> currentDocumentSymbolItems,
194
foreach (
var
item in currentDocumentSymbolItems)
DocumentOutline\DocumentSymbolDataViewModel.cs (5)
21
internal sealed class DocumentSymbolDataViewModel : INotifyPropertyChanged, IEquatable<
DocumentSymbolDataViewModel
>
24
public ImmutableArray<
DocumentSymbolDataViewModel
> Children { get; }
48
ImmutableArray<
DocumentSymbolDataViewModel
> children)
79
=> Equals(obj as
DocumentSymbolDataViewModel
);
81
public bool Equals(
DocumentSymbolDataViewModel
? other)
DocumentOutline\DocumentSymbolDataViewModelSorter.cs (12)
16
/// Sorts immutable collections of <see cref="
DocumentSymbolDataViewModel
"/>s
24
if (values[0] is ImmutableArray<
DocumentSymbolDataViewModel
> children &&
33
public static IComparer<
DocumentSymbolDataViewModel
> GetComparer(SortOption sortOption)
48
private sealed class NameComparer : IComparer<
DocumentSymbolDataViewModel
>
52
public int Compare(
DocumentSymbolDataViewModel
x,
DocumentSymbolDataViewModel
y)
56
private sealed class LocationComparer : IComparer<
DocumentSymbolDataViewModel
>
60
public int Compare(
DocumentSymbolDataViewModel
x,
DocumentSymbolDataViewModel
y)
64
private sealed class TypeComparer : IComparer<
DocumentSymbolDataViewModel
>
68
public int Compare(
DocumentSymbolDataViewModel
x,
DocumentSymbolDataViewModel
y)