Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ public Optional<CstNode> matchingNodeAfter(Optional<CstNode> optN1) {
public boolean sameLocation(CstNode n1, CstNode n2) {
if (n1.getParent().isPresent() && n2.getParent().isPresent()) {
return matchingNodeAfter(n1.getParent().get()).equals(n2.getParent());
} else if (!n1.getParent().isPresent() && !n1.getParent().isPresent()) {
} else if (!n1.getParent().isPresent() && !n2.getParent().isPresent()) {
return sameNamespace(n1, n2);
} else {
return false;
Expand Down