2 writes to Children
Microsoft.VisualStudio.LanguageServices (2)
DocumentOutline\DocumentSymbolData.cs (2)
31Children = children; 40Children = children;
10 references to Children
Microsoft.VisualStudio.LanguageServices (4)
DocumentOutline\DocumentOutlineHelper.cs (4)
197var sortedChildren = SortDocumentSymbols(documentSymbol.Children, sortOption, cancellationToken); 243var filteredChildren = SearchDocumentSymbolData(documentSymbol.Children, pattern, cancellationToken); 254return patternMatcher.Matches(tree.Name) || tree.Children.Any(c => SearchNodeTree(c, patternMatcher, cancellationToken)); 266var children = GetDocumentSymbolUIItems(documentSymbol.Children, threadingContext);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (6)
DocumentOutline\DocumentOutlineTests.cs (6)
118CheckSortedSymbols(symbol.Children); 134Assert.Equal(0, searchedSymbols.Single(symbol => symbol.Name.Equals("foo")).Children.Length); 139Assert.Equal(2, searchedSymbols.Single(symbol => symbol.Name.Equals("MyClass")).Children.Length); 140Assert.Equal(1, searchedSymbols.Single(symbol => symbol.Name.Equals("App")).Children.Length); 145Assert.Equal(0, searchedSymbols.Single(symbol => symbol.Name.Equals("App")).Children.Length); 146Assert.Equal(1, searchedSymbols.Single(symbol => symbol.Name.Equals("foo")).Children.Length);