Skip to content

Commit

Permalink
ASTDiff: Fixes #842
Browse files Browse the repository at this point in the history
  • Loading branch information
pouryafard75 committed Jan 5, 2025
1 parent 70a4210 commit 692cd71
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ private void processRefactorings(Tree srcTree, Tree dstTree, List<Refactoring> r

if (dstVariableDeclaration != null) {
List<Tree> dstChildrenList = dstVariableDeclaration.getChildren();
if (dstChildrenList.isEmpty()) continue; //Might need to investigate what would be the better diff in these cases
Tree dstVarName = dstChildrenList.get(dstChildrenList.size() - 1);
for (VariableDeclaration variableDeclaration : mergedVariables) {
Tree srcVariableDeclaration = TreeUtilFunctions.findByLocationInfo(srcTree, variableDeclaration.getLocationInfo());
Expand Down

0 comments on commit 692cd71

Please sign in to comment.