Instance
Type members
Classlikes
Fold f
over all tree nodes, in depth-first, prefix order
Fold f
over all tree nodes, in depth-first, prefix order
Fold f
over all tree nodes, in depth-first, prefix order, but don't visit
subtrees where f
returns a different result for the root, i.e. f(x, root) ne x
.
Fold f
over all tree nodes, in depth-first, prefix order, but don't visit
subtrees where f
returns a different result for the root, i.e. f(x, root) ne x
.
A class for copying trees. The copy methods avoid creating a new tree If all arguments stay the same.
A class for copying trees. The copy methods avoid creating a new tree If all arguments stay the same.
Note: Some of the copy methods take a context. These are exactly those methods that are overridden in TypedTreeCopier so that they selectively retype themselves. Retyping needs a context.
Types
Value members
Abstract methods
Concrete methods
Construct the application $receiver.$method[$targs]($args)
using overloading resolution
to find a matching overload of $method
if necessary.
This is useful when overloading resolution needs to be performed in a phase after typer.
Note that this will not perform any kind of implicit search.
Construct the application $receiver.$method[$targs]($args)
using overloading resolution
to find a matching overload of $method
if necessary.
This is useful when overloading resolution needs to be performed in a phase after typer.
Note that this will not perform any kind of implicit search.
- Value parameters:
- expectedType
An expected type of the application used to guide overloading resolution
For untyped trees, this is just the identity.
For typed trees, a context derived form ctx
that records call
as the
innermost enclosing call for which the inlined version is currently
processed.
For untyped trees, this is just the identity.
For typed trees, a context derived form ctx
that records call
as the
innermost enclosing call for which the inlined version is currently
processed.
If tparams
is non-empty, add it to the left paramss
, merging
it with a leading type parameter list of paramss
, if one exists.
If tparams
is non-empty, add it to the left paramss
, merging
it with a leading type parameter list of paramss
, if one exists.