mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Py/JS/RB: Use instanceof in more places
This commit is contained in:
@@ -222,9 +222,7 @@ class VarDef extends ControlFlowNode {
|
||||
*
|
||||
* Some variable definitions are also uses, notably the operands of update expressions.
|
||||
*/
|
||||
class VarUse extends ControlFlowNode, @varref {
|
||||
VarUse() { this instanceof RValue }
|
||||
|
||||
class VarUse extends ControlFlowNode, @varref instanceof RValue {
|
||||
/** Gets the variable this use refers to. */
|
||||
Variable getVariable() { result = this.(VarRef).getVariable() }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user