Skip to content

Commit

Permalink
! Renamed symbol context menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Oct 7, 2019
1 parent f77f84f commit de8578c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Codist/Controls/CSharpSymbolContextMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ void CreateCommandForNamedType(INamedTypeSymbol t) {
if (ctor != null) {
var symbol = _SemanticContext.SemanticModel.GetSymbolOrFirstCandidate(ctor);
if (symbol != null) {
Items.Add(CreateItem(KnownImageIds.ShowCallerGraph, "Find Referrers...", () => FindReferrers(symbol, _SemanticContext)));
Items.Add(CreateItem(KnownImageIds.ShowCallerGraph, "Find Callers...", () => FindReferrers(symbol, _SemanticContext)));
}
}
else if (t.InstanceConstructors.Length > 0) {
Items.Add(CreateItem(KnownImageIds.ShowCallerGraph, "Find Constructor Referrers...", () => FindReferrers(t, _SemanticContext, s => s.Kind == SymbolKind.Method)));
Items.Add(CreateItem(KnownImageIds.ShowCallerGraph, "Find Constructor Callers...", () => FindReferrers(t, _SemanticContext, s => s.Kind == SymbolKind.Method)));
}
}
Items.Add(CreateItem(KnownImageIds.ShowReferencedElements, "Find Referrers to Type " + t.GetOriginalName() + "...", () => FindReferrers(t, _SemanticContext, s => s.Kind == SymbolKind.NamedType, n => {
Items.Add(CreateItem(KnownImageIds.ShowReferencedElements, "Find Type Referrers...", () => FindReferrers(t, _SemanticContext, s => s.Kind == SymbolKind.NamedType, n => {
var p = n.Parent;
switch (p.Kind()) {
case SyntaxKind.TypeOfExpression:
Expand Down

0 comments on commit de8578c

Please sign in to comment.