Expand description
Desugar array/slice index operations to function calls.
Structs§
- Index
Visitor 🔒 - We replace some place constructors with function calls. To do that, we explore all the places in a body and deconstruct a given place access into intermediate assignments.
- Transform
Functions§
- compute_
subslice_ end_ idx - When
from_end
is true, we need to computelen(p) - last_arg
instead of just usinglast_arg
. Otherwise, we simply returnlast_arg
. New local variables are created as needed.