class compiler::IndexedAssignExpr

sys::Obj
  compiler::Node
    compiler::Expr
      compiler::NameExpr
        compiler::CallExpr
          compiler::ShortcutExpr
            compiler::IndexedAssignExpr

Source

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)

Source

scratchA

MethodVar? scratchA

Source

scratchB

MethodVar? scratchB

Source

setMethod

CMethod? setMethod

Source