mirror of
https://github.com/github/codeql.git
synced 2026-04-18 05:24:01 +02:00
Use "" in qualified name for entities without a package
This commit is contained in:
@@ -103,7 +103,11 @@ class Entity extends @object {
|
||||
*/
|
||||
pragma[nomagic]
|
||||
predicate hasQualifiedName(string pkg, string name) {
|
||||
pkg = this.getPackage().getPath() and
|
||||
(
|
||||
pkg = this.getPackage().getPath()
|
||||
or
|
||||
not exists(this.getPackage()) and pkg = ""
|
||||
) and
|
||||
name = this.getName()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user