Skip to content

Commit 3aa7123

Browse files
committed
Swift: restrict UnresolvedAstNodes to known locations
1 parent 34b8b43 commit 3aa7123

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import swift
22

3-
from AstNode n
4-
where n.getAPrimaryQlClass().matches("Unresolved%")
5-
select n
3+
from AstNode n, string cls
4+
where
5+
cls = n.getAPrimaryQlClass() and
6+
cls.matches("Unresolved%") and
7+
not n.getLocation() instanceof UnknownLocation
8+
select n, cls

0 commit comments

Comments
 (0)