Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLooman committed Sep 10, 2023
1 parent 595e115 commit c99c1f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ private List<Location> definitionsForAtom(final MagikTypedFile magikFile, final
}

private List<Location> definitionsForMethodInvocation(final MagikTypedFile magikFile, final AstNode wantedNode) {
final MethodInvocationNodeHelper helper = new MethodInvocationNodeHelper(wantedNode);
final AstNode methodInvocationNode = wantedNode.getFirstAncestor(MagikGrammar.METHOD_INVOCATION);
final MethodInvocationNodeHelper helper = new MethodInvocationNodeHelper(methodInvocationNode);
final String methodName = helper.getMethodName();

final AstNode previousSiblingNode = wantedNode.getPreviousSibling();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
class RenameProviderTest {

private Either3<Range, PrepareRenameResult, PrepareRenameDefaultBehavior> getPrepareRename(
String code, final Position position) {
final String code, final Position position) {
final URI uri = URI.create("tests://unittest");
final ITypeKeeper typeKeeper = new TypeKeeper();
final MagikTypedFile magikFile = new MagikTypedFile(uri, code, typeKeeper);
Expand Down

0 comments on commit c99c1f3

Please sign in to comment.