Members
An extractor for closures, either contained in a block or standalone.
If tree is a closure, its body, otherwise tree itself
If tree
is a constant expression, its value as a Literal,
or tree
itself otherwise.
Note: Demanding idempotency instead of purity in literalize is stric...
Ident
Select
TypeApply
Decompose a call fntargs...(vargs_n) into its constituents (where targs, vargss may be empty)
Going from child to parent, the path of tree nodes that starts
with a definition of symbol sym
and ends with root
, or Nil
if no such path exists.
Pre: sy...
If tree
is a DefTree, the symbol defined by it, otherwise NoSymbol
The statement sequence that contains a definition of sym
, or Nil
if none was found.
For a tree to be found, The symbol must have a position and its defi...
The purity level of this expression.
Is this pattern node a catch-all or type-test pattern?
Is tree a this
node which belongs to enclClass
?
Is this a selection of a member of a structural type that is not a member of an underlying class or trait?
Is tree a reference to a mutable variable, or to a potential getter that has a setter in the same class?
The symbols defined locally in a statement list
Is symbol potentially a getter of a mutable variable?
The variables defined by a pattern, in reverse order of their appearance.
The tree containing only the top-level classes and objects matching either cls
or its companion object
The purity level of this statement.
Strips layers of .asInstanceOf[T]
/ _.$asInstanceOf[T]()
from an expression
The top level classes in this tree, including only those module classes that are not a linked class of some other class in the result.