Merge pull request #5862 from asgerf/js/has-underlying-type

Approved by erik-krogh, max-schaefer
This commit is contained in:
CodeQL CI
2021-05-14 04:10:43 -07:00
committed by GitHub
5 changed files with 14 additions and 2 deletions

View File

@@ -725,7 +725,7 @@ class TypeAccess extends @typeaccess, TypeExpr, TypeRef {
spec.getImportedName() = exportedName and
this = spec.getLocal().(TypeDecl).getLocalTypeName().getAnAccess()
or
spec instanceof ImportNamespaceSpecifier and
(spec instanceof ImportNamespaceSpecifier or spec instanceof ImportDefaultSpecifier) and
this =
spec.getLocal().(LocalNamespaceDecl).getLocalNamespaceName().getAMemberAccess(exportedName)
)

View File

@@ -239,7 +239,6 @@ module DataFlow {
private TypeAnnotation getFallbackTypeAnnotation() {
exists(BindingPattern pattern |
this = valueNode(pattern) and
not ast_node_type(pattern, _) and
result = pattern.getTypeAnnotation()
)
or