Rewrites local Break throws to labeled returns. Drops try
statements on breaks if no other uses of its label remain. A Break throw with a Label
created by some enclosing boundary is replaced with a labeled return if
- the throw and the boundary are in the same method, and
- there is no try expression inside the boundary that encloses the throw.
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Attributes
- Definition Classes
A name given to the Phase
that can be used to debug the compiler. For instance, it is possible to print trees after a given phase using:
A name given to the Phase
that can be used to debug the compiler. For instance, it is possible to print trees after a given phase using:
$ ./bin/scalac -Xprint:<phaseNameHere> sourceFile.scala
Attributes
- Definition Classes
If tree
is a BreakBoundary, associate a fresh LabelUsage
with its label.
If tree
is a BreakBoundary, associate a fresh LabelUsage
with its label.
Attributes
- Definition Classes
Need to suppress labeled returns if there is an intervening try
Need to suppress labeled returns if there is an intervening try
Attributes
- Definition Classes
Attributes
- Definition Classes
List of names of phases that should have finished their processing of all compilation units before this phase starts
List of names of phases that should have finished their processing of all compilation units before this phase starts
Attributes
- Definition Classes
Rewrite a break call
Rewrite a break call
break.apply...(using lbl)
where lbl
is a label defined in the current method and is not included in ShadowedLabels to
return[target] arg
where target
is the goto
return label associated with lbl
. Adjust associated ref counts accordingly. The local refcount is increased and the non-local refcount is decreased, since the lbl
implicit argument to break
is dropped.
Attributes
- Definition Classes
If tree
is a BreakBoundary, transform it as follows:
If tree
is a BreakBoundary, transform it as follows:
- Wrap it in a labeled block if its label has local uses
- Drop the try/catch if its label has no other uses
Attributes
- Definition Classes
If tree
refers to an enclosing label, increase its non local recount. This increase is corrected in transformInlined
if the reference turns out to be part of a BreakThrow to a local, non-shadowed label.
If tree
refers to an enclosing label, increase its non local recount. This increase is corrected in transformInlined
if the reference turns out to be part of a BreakThrow to a local, non-shadowed label.
Attributes
- Definition Classes
Inherited methods
If set, implicit search is enabled
Can this transform change the base types of a type?
Can this transform create or delete non-private members?
Can this transform change the parents of a class?
Check what the phase achieves, to be called at any point after it is finished.
Check what the phase achieves, to be called at any point after it is finished.
Attributes
- Inherited from:
- Phase
Attributes
- Inherited from:
- Phase
Attributes
- Inherited from:
- Phase
The sequence position of this phase in the given context where 0 is reserved for NoPhase and the first real phase is at position 1. -1 if the phase is not installed in the context.
The sequence position of this phase in the given context where 0 is reserved for NoPhase and the first real phase is at position 1. -1 if the phase is not installed in the context.
Attributes
- Inherited from:
- Phase
Attributes
- Inherited from:
- Phase
Output should be checkable by TreeChecker
Attributes
- Inherited from:
- Phase
Is this phase the standard typerphase? True for TyperPhase, but not for other first phases (such as FromTasty or Parser). The predicate is tested in some places that perform checks and corrections. It's different from ctx.isAfterTyper (and cheaper to test).
Is this phase the standard typerphase? True for TyperPhase, but not for other first phases (such as FromTasty or Parser). The predicate is tested in some places that perform checks and corrections. It's different from ctx.isAfterTyper (and cheaper to test).
Attributes
- Inherited from:
- Phase
Attributes
- Inherited from:
- Phase
Attributes
- Inherited from:
- Phase
Attributes
- Inherited from:
- Phase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- Phase
If set, use relaxed typing for all phases in group
Attributes
- Inherited from:
- Phase
List of names of phases that should precede this phase
Attributes
- Inherited from:
- Phase
Attributes
- Inherited from:
- Phase
Attributes
- Inherited from:
- Phase
Convert a compilation unit's tree to a string; can be overridden
Attributes
- Inherited from:
- MiniPhase
Transform tree using all transforms of current group (including this one)
Transform tree using all transforms of current group (including this one)
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Transform single node using all transforms following the current one in this group
Transform single node using all transforms following the current one in this group
Attributes
- Inherited from:
- MiniPhase
Transform tree using all transforms following the current one in this group
Transform tree using all transforms following the current one in this group
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Attributes
- Inherited from:
- MiniPhase
Inherited fields
Attributes
- Inherited from:
- MiniPhase