mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
JS: Update getFallbackTypeAnnotation
This commit is contained in:
@@ -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()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user