22 references to DocumentSymbolData
Microsoft.VisualStudio.LanguageServices (20)
DocumentOutline\DocumentOutlineViewModel.cs (2)
425
private async Task<(ImmutableArray<
DocumentSymbolData
> documentSymbolData, ITextSnapshot newTextSnapshot)> ComputeDocumentSymbolDataAsync(CancellationToken cancellationToken)
441
return (ImmutableArray<
DocumentSymbolData
>.Empty, _textBuffer.CurrentSnapshot);
DocumentOutline\DocumentOutlineViewModel.DocumentOutlineViewState.cs (2)
27
/// cref="
DocumentSymbolData
"/> we have.
32
/// The view items we created from <see cref="
DocumentSymbolData
"/>. Note: these values are a bit odd in
DocumentOutline\DocumentOutlineViewModel_Utilities.cs (12)
97
public static ImmutableArray<
DocumentSymbolData
> CreateDocumentSymbolData(RoslynDocumentSymbol[] documentSymbols, ITextSnapshot textSnapshot)
108
using var _1 = ArrayBuilder<
DocumentSymbolData
>.GetInstance(out var finalResult);
117
DocumentSymbolData
NestDescendantSymbols(ImmutableArray<RoslynDocumentSymbol> allSymbols, int start, out int newStart)
126
using var _2 = ArrayBuilder<
DocumentSymbolData
>.GetInstance(out var currentSymbolChildren);
172
/// Converts an immutable array of <see cref="
DocumentSymbolData
" /> to an immutable array of <see cref="DocumentSymbolDataViewModel"/>.
176
ImmutableArray<
DocumentSymbolData
> documentSymbolData)
179
foreach (
var
documentSymbol in documentSymbolData)
204
public static ImmutableArray<
DocumentSymbolData
> SearchDocumentSymbolData(
205
ImmutableArray<
DocumentSymbolData
> documentSymbolData,
214
using var _ = ArrayBuilder<
DocumentSymbolData
>.GetInstance(out var filteredDocumentSymbols);
217
foreach (
var
documentSymbol in documentSymbolData)
227
static bool SearchNodeTree(
DocumentSymbolData
tree, PatternMatcher patternMatcher, CancellationToken cancellationToken)
DocumentOutline\DocumentSymbolData.cs (1)
23
ImmutableArray<
DocumentSymbolData
> Children);
DocumentOutline\DocumentSymbolDataViewModel.cs (3)
16
/// A ViewModel over <see cref="
DocumentSymbolData
"/>. The only items that are mutable on this type are <see
23
public
DocumentSymbolData
Data { get; }
47
DocumentSymbolData
data,
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
DocumentOutline\DocumentOutlineTests.cs (2)
98
var
data = symbolToUpdate.Data;
99
var
symbolData = data with { Children = [] };