2 writes to Name
Microsoft.VisualStudio.LanguageServices (2)
DocumentOutline\DocumentSymbolData.cs (2)
27Name = documentSymbol.Name; 36Name = documentSymbolData.Name;
16 references to Name
Microsoft.VisualStudio.LanguageServices (7)
DocumentOutline\DocumentOutlineHelper.cs (5)
204sortedDocumentSymbols.Sort(static (x, y) => StringComparer.OrdinalIgnoreCase.Compare(x.Name, y.Name)); 214return x.Name.CompareTo(y.Name); 254return patternMatcher.Matches(tree.Name) || tree.Children.Any(c => SearchNodeTree(c, patternMatcher, cancellationToken));
DocumentOutline\DocumentSymbolData.cs (1)
36Name = documentSymbolData.Name;
DocumentOutline\DocumentSymbolUIItem.cs (1)
69Name = documentSymbolData.Name;
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (9)
DocumentOutline\DocumentOutlineTests.cs (9)
103Assert.True(StringComparer.OrdinalIgnoreCase.Compare(sortedSymbols[i].Name, sortedSymbols[i + 1].Name) <= 0); 112Assert.True(StringComparer.OrdinalIgnoreCase.Compare(sortedSymbols[i].Name, sortedSymbols[i + 1].Name) <= 0); 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);