Browse Source

[Code Action] Only show MergeNestedIfAction on 'if' token

newNRvisualizers
Mansheng Yang 14 years ago
parent
commit
e2ff414e01
  1. 2
      ICSharpCode.NRefactory.CSharp/Refactoring/CodeActions/MergeNestedIfAction.cs

2
ICSharpCode.NRefactory.CSharp/Refactoring/CodeActions/MergeNestedIfAction.cs

@ -35,7 +35,7 @@ namespace ICSharpCode.NRefactory.CSharp.Refactoring @@ -35,7 +35,7 @@ namespace ICSharpCode.NRefactory.CSharp.Refactoring
protected override CodeAction GetAction (RefactoringContext context, IfElseStatement node)
{
if (!node.Contains (context.Location))
if (!node.IfToken.Contains (context.Location))
return null;
IfElseStatement outerIfStatement;

Loading…
Cancel
Save