The operations in this class
The operations in this class
Ensure that class cls
has outer accessors
Class needs an outer pointer, provided there is a reference to an outer this in it.
The outer accessor of class cls
.
The outer accessor of class cls
. To find it is a bit tricky. The
class might have been moved with new owners between ExplicitOuter and Erasure,
where the method is also called. For instance, it might have been part
of a by-name argument, and therefore be moved under a closure method
by ElimByName. In that case looking up the method again at Erasure with the
fully qualified name outerAccName
will fail, because the outerAccName
's
result is phase dependent. In that case we use a backup strategy where we search all
definitions in the class to find the one with the OuterAccessor flag.
Tree references an outer class of cls
which is not a static owner.