fixup a Python query, it didn't select something with a location

This commit is contained in:
erik-krogh
2022-08-24 16:23:20 +02:00
parent 5d9b25c75d
commit 014dcd1454
3 changed files with 7 additions and 7 deletions

View File

@@ -43,4 +43,4 @@ where
unused_local(unused, v) and
// If unused is part of a tuple, count it as unused if all elements of that tuple are unused.
forall(Name el | el = unused.getParentNode().(Tuple).getAnElt() | unused_local(el, _))
select v, "Variable " + v.getId() + " is not used"
select unused, "Variable " + v.getId() + " is not used"