Skip to content

Commit 54d47f6

Browse files
committed
JS: Include base types in TypeName
1 parent e9159ac commit 54d47f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

javascript/ql/src/semmle/javascript/CanonicalNames.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ class CanonicalName extends @symbol {
210210
class TypeName extends CanonicalName {
211211
TypeName() {
212212
exists(TypeReference ref | type_symbol(ref, this)) or
213-
exists(TypeDefinition def | ast_node_symbol(def, this))
213+
exists(TypeDefinition def | ast_node_symbol(def, this)) or
214+
base_type_names(_, this) or
215+
base_type_names(this, _)
214216
}
215217

216218
/**

0 commit comments

Comments
 (0)