TreeOps
Value members
Concrete methods
An apply node with given arguments: tree(arg, args0, ..., argsN)
An apply node with given arguments: tree(arg, args0, ..., argsN)
An apply or type apply node with given argument list
An apply or type apply node with given argument list
The current tree applied to given argument lists:
tree (argss(0)) ... (argss(argss.length -1))
The current tree applied to given argument lists:
tree (argss(0)) ... (argss(argss.length -1))
An apply node with given argument list tree(args(0), ..., args(args.length - 1))
An apply node with given argument list tree(args(0), ..., args(args.length - 1))
The current tree applied to given type argument: tree[targ]
The current tree applied to given type argument: tree[targ]
The current tree applied to given type argument: tree[targ]
The current tree applied to given type argument: tree[targ]
The current tree applied to given type argument list: tree[targs(0), ..., targs(targs.length - 1)]
The current tree applied to given type argument list: tree[targs(0), ..., targs(targs.length - 1)]
The current tree applied to given type arguments: tree[targ0, ..., targN]
The current tree applied to given type arguments: tree[targ0, ..., targN]
An applied node that accepts only varargs as arguments
An applied node that accepts only varargs as arguments
The translation of tree = rhs
.
This is either the tree as an assignment, or a setter call.
The translation of tree = rhs
.
This is either the tree as an assignment, or a setter call.
cast tree to tp
, assuming no exception is raised, i.e the operation is pure
cast tree to tp
, assuming no exception is raised, i.e the operation is pure
cast tree to tp
, assuming no exception is raised, i.e the operation is pure
cast tree to tp
, assuming no exception is raised, i.e the operation is pure
Set the owner of every definition in this tree which is not itself contained in this
tree to be newowner
Set the owner of every definition in this tree which is not itself contained in this
tree to be newowner
Change owner from from
to to
. If from
is a weak owner, also change its
owner to to
, and continue until a non-weak owner is reached.
Change owner from from
to to
. If from
is a weak owner, also change its
owner to to
, and continue until a non-weak owner is reached.
After phase trans
, set the owner of every definition in this tree that was formerly
owner by from
to to
.
After phase trans
, set the owner of every definition in this tree that was formerly
owner by from
to to
.
Apply to ()
unless tree's widened type is parameterless
Apply to ()
unless tree's widened type is parameterless
cast tree
to tp
(or its box/unbox/cast equivalent when after
erasure and value and non-value types are mixed),
unless tree's type already conforms to tp
.
cast tree
to tp
(or its box/unbox/cast equivalent when after
erasure and value and non-value types are mixed),
unless tree's type already conforms to tp
.
Is there a subtree of this tree that satisfies predicate p
?
Is there a subtree of this tree that satisfies predicate p
?
All subtrees of this tree that satisfy predicate p
.
All subtrees of this tree that satisfy predicate p
.
tree.isInstanceOf[tp]
, with special treatment of singleton types
tree.isInstanceOf[tp]
, with special treatment of singleton types
A synthetic select with that will be turned into an outer path by ExplicitOuter.
A synthetic select with that will be turned into an outer path by ExplicitOuter.
- Value parameters:
- levels
How many outer levels to select
- tp
The type of the destination of the outer path.
A select node with the given selector name and a computed type
A select node with the given selector name and a computed type
A select node with the given selector name such that the designated
member satisfies predicate p
. Useful for disambiguating overloaded members.
A select node with the given selector name such that the designated
member satisfies predicate p
. Useful for disambiguating overloaded members.
A select node that selects the given symbol. Note: Need to make sure this is in fact the symbol you would get when you select with the symbol's name, otherwise a data race may occur which would be flagged by -Yno-double-bindings.
A select node that selects the given symbol. Note: Need to make sure this is in fact the symbol you would get when you select with the symbol's name, otherwise a data race may occur which would be flagged by -Yno-double-bindings.
A select node with the given selector name and signature and a computed type
A select node with the given selector name and signature and a computed type
A select node with selector name and signature taken from sym
.
Note: Use this method instead of select(sym) if the referenced symbol
might be overridden in the type of the qualifier prefix. See note
on select(sym: Symbol).
A select node with selector name and signature taken from sym
.
Note: Use this method instead of select(sym) if the referenced symbol
might be overridden in the type of the qualifier prefix. See note
on select(sym: Symbol).
Set this tree as the defTree
of its symbol and return this tree
Set this tree as the defTree
of its symbol and return this tree
tree ne null
(might need a cast to be type correct)
tree ne null
(might need a cast to be type correct)
Replace Ident nodes references to the underlying tree that defined them
Replace Ident nodes references to the underlying tree that defined them
Replace Inlined nodes and InlineProxy references to underlying arguments
Replace Inlined nodes and InlineProxy references to underlying arguments