mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Swift: restrict UnresolvedAstNodes to known locations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user