class compiler::IndexedAssignExpr
sys::Obj compiler::Node compiler::Expr compiler::NameExpr compiler::CallExpr compiler::ShortcutExpr compiler::IndexedAssignExpr
IndexedAssignExpr is a subclass of ShortcutExpr used
in situations like x[y] += z where we need keep of two
extra scratch variables and the get's matching set method.
Note this class models the top x[y] += z, NOT the get target
which is x[y].
In this example, IndexedAssignExpr shortcuts Int.plus and its target shortcuts List.get:
x := [2]
x[0] += 3
- makeFrom
-
new makeFrom(ShortcutExpr from) - scratchA
-
MethodVar? scratchA - scratchB
-
MethodVar? scratchB - setMethod
-
CMethod? setMethod