Skip to content

Commit

Permalink
ASTDiff: More bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pouryafard75 committed Dec 9, 2024
1 parent 42df0a8 commit 50734f1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,11 @@ private void processRefactorings(Tree srcTree, Tree dstTree, List<Refactoring> r
eligible = !renameVariableRefactoring.isInsideExtractedOrInlinedMethod();
if (!eligible)
break;
while (!TreeUtilFunctions.isStatement(dstInput.getType().name)) {
while (dstInput != null && !TreeUtilFunctions.isStatement(dstInput.getType().name) ) {
if (dstInput.getType() == null) break;
dstInput = dstInput.getParent();
}
if (dstInput == null) return;
if (TreeUtilFunctions.isStatement(dstInput.getType().name)){
new LeafMatcher().match(srcInput,dstInput,mappingStore);
}
Expand Down

0 comments on commit 50734f1

Please sign in to comment.