2 instantiations of DocumentSymbolData
Microsoft.VisualStudio.LanguageServices (2)
DocumentOutline\DocumentOutlineHelper.cs (1)
145
return new
DocumentSymbolData
(
DocumentOutline\DocumentSymbolData.cs (1)
44
=>
new
(this, children);
27 references to DocumentSymbolData
Microsoft.VisualStudio.LanguageServices (25)
DocumentOutline\DocumentOutlineHelper.cs (16)
113
using var _1 = ArrayBuilder<
DocumentSymbolData
>.GetInstance(out var finalResult);
122
DocumentSymbolData
NestDescendantSymbols(ImmutableArray<LspDocumentSymbol> allSymbols, int start, out int newStart)
131
using var _2 = ArrayBuilder<
DocumentSymbolData
>.GetInstance(out var currentSymbolChildren);
169
public static ImmutableArray<
DocumentSymbolData
> SortDocumentSymbolData(
170
ImmutableArray<
DocumentSymbolData
> documentSymbolData,
187
static ImmutableArray<
DocumentSymbolData
> SortDocumentSymbols(
188
ImmutableArray<
DocumentSymbolData
> documentSymbolData,
194
using var _ = ArrayBuilder<
DocumentSymbolData
>.GetInstance(out var sortedDocumentSymbols);
195
foreach (
var
documentSymbol in documentSymbolData)
231
public static ImmutableArray<
DocumentSymbolData
> SearchDocumentSymbolData(
232
ImmutableArray<
DocumentSymbolData
> documentSymbolData,
238
using var _ = ArrayBuilder<
DocumentSymbolData
>.GetInstance(out var filteredDocumentSymbols);
241
foreach (
var
documentSymbol in documentSymbolData)
251
static bool SearchNodeTree(
DocumentSymbolData
tree, PatternMatcher patternMatcher, CancellationToken cancellationToken)
261
public static ImmutableArray<DocumentSymbolUIItem> GetDocumentSymbolUIItems(ImmutableArray<
DocumentSymbolData
> documentSymbolData, IThreadingContext threadingContext)
264
foreach (
var
documentSymbol in documentSymbolData)
DocumentOutline\DocumentSymbolData.cs (6)
23
public ImmutableArray<
DocumentSymbolData
> Children { get; }
25
public DocumentSymbolData(DocumentSymbol documentSymbol, SnapshotSpan rangeSpan, SnapshotSpan selectionRangeSpan, ImmutableArray<
DocumentSymbolData
> children)
34
private DocumentSymbolData(
DocumentSymbolData
documentSymbolData, ImmutableArray<
DocumentSymbolData
> children)
43
public
DocumentSymbolData
WithChildren(ImmutableArray<
DocumentSymbolData
> children)
DocumentOutline\DocumentSymbolDataModel.cs (2)
17
public ImmutableArray<
DocumentSymbolData
> DocumentSymbolData { get; }
20
public DocumentSymbolDataModel(ImmutableArray<
DocumentSymbolData
> documentSymbolData, ITextSnapshot originalSnapshot)
DocumentOutline\DocumentSymbolUIItem.cs (1)
66
public DocumentSymbolUIItem(
DocumentSymbolData
documentSymbolData, ImmutableArray<DocumentSymbolUIItem> children, IThreadingContext threadingContext)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
DocumentOutline\DocumentOutlineTests.cs (2)
96
void CheckSortedSymbols(ImmutableArray<
DocumentSymbolData
> sortedSymbols)
117
foreach (
var
symbol in sortedSymbols)