Swift: restrict UnresolvedAstNodes to known locations

This commit is contained in:
Paolo Tranquilli
2024-10-31 09:26:03 +01:00
parent 34b8b43843
commit 3aa7123032

View File

@@ -1,5 +1,8 @@
import swift
from AstNode n
where n.getAPrimaryQlClass().matches("Unresolved%")
select n
from AstNode n, string cls
where
cls = n.getAPrimaryQlClass() and
cls.matches("Unresolved%") and
not n.getLocation() instanceof UnknownLocation
select n, cls