2 writes to Name
Microsoft.VisualStudio.LanguageServices (2)
DocumentOutline\DocumentSymbolData.cs (2)
27
Name
= documentSymbol.Name;
36
Name
= documentSymbolData.Name;
16 references to Name
Microsoft.VisualStudio.LanguageServices (7)
DocumentOutline\DocumentOutlineHelper.cs (5)
204
sortedDocumentSymbols.Sort(static (x, y) => StringComparer.OrdinalIgnoreCase.Compare(x.
Name
, y.
Name
));
214
return x.
Name
.CompareTo(y.
Name
);
254
return patternMatcher.Matches(tree.
Name
) || tree.Children.Any(c => SearchNodeTree(c, patternMatcher, cancellationToken));
DocumentOutline\DocumentSymbolData.cs (1)
36
Name = documentSymbolData.
Name
;
DocumentOutline\DocumentSymbolUIItem.cs (1)
69
Name = documentSymbolData.
Name
;
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (9)
DocumentOutline\DocumentOutlineTests.cs (9)
103
Assert.True(StringComparer.OrdinalIgnoreCase.Compare(sortedSymbols[i].
Name
, sortedSymbols[i + 1].
Name
) <= 0);
112
Assert.True(StringComparer.OrdinalIgnoreCase.Compare(sortedSymbols[i].
Name
, sortedSymbols[i + 1].
Name
) <= 0);
134
Assert.Equal(0, searchedSymbols.Single(symbol => symbol.
Name
.Equals("foo")).Children.Length);
139
Assert.Equal(2, searchedSymbols.Single(symbol => symbol.
Name
.Equals("MyClass")).Children.Length);
140
Assert.Equal(1, searchedSymbols.Single(symbol => symbol.
Name
.Equals("App")).Children.Length);
145
Assert.Equal(0, searchedSymbols.Single(symbol => symbol.
Name
.Equals("App")).Children.Length);
146
Assert.Equal(1, searchedSymbols.Single(symbol => symbol.
Name
.Equals("foo")).Children.Length);