Skip to content

Commit

Permalink
ASTDiff: Fixes #839
Browse files Browse the repository at this point in the history
  • Loading branch information
pouryafard75 authored and tsantalis committed Jan 2, 2025
1 parent bec4d0d commit 97f45f7
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,14 @@ public void add(MappingStore match) {
}
}

public void addWithMaps(MappingStore match,Map<Tree,Tree> srcCopy, Map<Tree,Tree> dstCopy) {
@Override
public void addMapping(Tree src, Tree dst) {
if (src == null || dst == null)
return;
super.addMapping(src, dst);
}

public void addWithMaps(MappingStore match, Map<Tree,Tree> srcCopy, Map<Tree,Tree> dstCopy) {
for (Mapping mapping : match) {
Tree realSrc = srcCopy.get(mapping.first);
Tree realDst = dstCopy.get(mapping.second);
Expand Down

0 comments on commit 97f45f7

Please sign in to comment.