Py/JS/RB: Use instanceof in more places

This commit is contained in:
erik-krogh
2022-12-12 16:06:57 +01:00
parent 4ff823c36b
commit b3a9c1ca06
88 changed files with 256 additions and 574 deletions

View File

@@ -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() }