JS: Update getFallbackTypeAnnotation

This commit is contained in:
Asger Feldthaus
2020-04-29 13:36:41 +01:00
parent b06cd6db30
commit 12cc228946

View File

@@ -229,7 +229,7 @@ module DataFlow {
*/
private JSDocTypeExpr getFallbackTypeAnnotation() {
exists(BindingPattern pattern |
this = lvalueNode(pattern) and
this = valueNode(pattern) and
not ast_node_type(pattern, _) and
result = pattern.getTypeAnnotation()
)