Browse Source

fixed SD2-1442

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3406 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Siegfried Pammer 17 years ago
parent
commit
8267668528
  1. 5
      src/AddIns/Misc/SharpRefactoring/Src/CSharpMethodExtractor.cs

5
src/AddIns/Misc/SharpRefactoring/Src/CSharpMethodExtractor.cs

@ -111,8 +111,11 @@ namespace SharpRefactoring @@ -111,8 +111,11 @@ namespace SharpRefactoring
possibleReturnValues.Add(new VariableDeclaration(variable.Name, variable.Initializer, variable.TypeRef));
otherReturnValues.Add(new VariableDeclaration(variable.Name, variable.Initializer, variable.TypeRef));
}
Location start = new Location(this.currentSelection.StartPosition.Column + 1, this.currentSelection.StartPosition.Line + 1);
Location end = new Location(this.currentSelection.EndPosition.Column + 1, this.currentSelection.EndPosition.Line + 1);
FindReferenceVisitor frv = new FindReferenceVisitor(true, variable.Name, variable.StartPos, variable.EndPos);
FindReferenceVisitor frv = new FindReferenceVisitor(true, variable.Name, start, end);
parentNode.AcceptVisitor(frv, null);

Loading…
Cancel
Save