The Context class keeps information relative to the current state in code generation
Tree transformer that duplicates code and at the same time creates fresh symbols for existing labels.
Tree transformer that duplicates code and at the same time creates fresh symbols for existing labels. Since labels may be used before they are defined (forward jumps), all labels found are mapped to fresh symbols. References to the same label (use or definition) will remain consistent after this transformation (both the use and the definition of some label l will be mapped to the same label l').
Note: If the tree fragment passed to the duplicator contains unbound label names, the bind to the outer labeldef will be lost! That's because a use of an unbound label l will be transformed to l', and the corresponding label def, being outside the scope of this transformation, will not be updated.
All LabelDefs are entered into the context label map, since it makes no sense to delay it any more: they will be used at some point.
Is current phase cancelled on this unit?
Is current phase cancelled on this unit?
If the selector type has a member with the right name, it is the host class; otherwise the symbol's owner.
Generate coercion denoted by "code"
Generate the "==" code for object references.
Generate the "==" code for object references. It is equivalent of if (l eq null) r eq null else l.equals(r);
left-hand side of the '=='
right-hand side of the '=='
current context
target context if the comparison yields true
target context if the comparison yields false
true if either branch can continue normally to a follow on block, false otherwise
Generate the scala ## method.
Generate string concatenation.
Is the given symbol a primitive operation?
Returns a list of trees that each should be concatenated, from left to right.
Returns a list of trees that each should be concatenated, from left to right. It turns a chained call like "a".+("b").+("c") into a list of arguments.
Does this tree have a try-catch block?
If the block consists of a single unconditional jump, prune it by replacing the instructions in the predecessor to jump directly to the JUMP target of the block.