mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
JS: Address comments
This commit is contained in:
@@ -823,7 +823,9 @@ abstract class EnhancedForLoop extends LoopStmt {
|
||||
* expression in this `for`-`in` or `for`-`of` loop.
|
||||
*/
|
||||
Expr getLValue() {
|
||||
result = getIteratorExpr() or
|
||||
result = getIterator() and
|
||||
(result instanceof BindingPattern or result instanceof PropAccess)
|
||||
or
|
||||
result = getIterator().(DeclStmt).getADecl().getBindingPattern()
|
||||
}
|
||||
|
||||
|
||||
@@ -1118,7 +1118,8 @@ module DataFlow {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the data flow node corresponding the given l-value expression.
|
||||
* Gets the data flow node corresponding the given l-value expression, if
|
||||
* such a node exists.
|
||||
*
|
||||
* This differs from `DataFlow::valueNode()`, which represents the value
|
||||
* _before_ the l-value is assigned to, whereas `DataFlow::lvalueNode()`
|
||||
|
||||
Reference in New Issue
Block a user