We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b06cd6d commit 12cc228Copy full SHA for 12cc228
1 file changed
javascript/ql/src/semmle/javascript/dataflow/DataFlow.qll
@@ -229,7 +229,7 @@ module DataFlow {
229
*/
230
private JSDocTypeExpr getFallbackTypeAnnotation() {
231
exists(BindingPattern pattern |
232
- this = lvalueNode(pattern) and
+ this = valueNode(pattern) and
233
not ast_node_type(pattern, _) and
234
result = pattern.getTypeAnnotation()
235
)
0 commit comments