Attributes
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
class Applyclass Assignclass Blockclass Closureclass Ifclass Inlinedclass Literalclass Matchclass NamedArgclass Newtrait Refclass Identclass Selectclass Repeatedclass Returnclass SelectOuterclass SummonFromclass Superclass Thisclass Tryclass TypeApplyclass Typedclass WhileShow all
Members list
Value members
Concrete methods
A unary apply node with given argument: tree(arg)
A unary apply node with given argument: tree(arg)
Attributes
An apply node with given arguments: tree(arg, args0, ..., argsN)
An apply node with given arguments: tree(arg, args0, ..., argsN)
Attributes
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))
Attributes
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))
Attributes
The current tree applied to (): tree()
The current tree applied to (): tree()
Attributes
The current tree applied to given type argument: tree[targ]
The current tree applied to given type argument: tree[targ]
Attributes
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)]
Attributes
The current tree applied to given type arguments: tree[targ0, ..., targN]
The current tree applied to given type arguments: tree[targ0, ..., targN]
Attributes
Converts a partially applied term into a lambda expression
Converts a partially applied term into a lambda expression
Attributes
A select node that selects the given symbol.
A select node that selects the given symbol.
Attributes
Replace Ident nodes references to the underlying tree that defined them. The resulting tree is useful for inspection of the definition of some bindings.
Replace Ident nodes references to the underlying tree that defined them. The resulting tree is useful for inspection of the definition of some bindings.
Warning: This tree may contain references that are out of scope and should not be used in the generated code. This method should only used to port Scala 2 that used to access their outer scope unsoundly.
Attributes
Replace Inlined nodes and InlineProxy references to underlying arguments. The resulting tree is useful for inspection of the value or content of a non-inline argument.
Replace Inlined nodes and InlineProxy references to underlying arguments. The resulting tree is useful for inspection of the value or content of a non-inline argument.
Warning: This tree may contain references that are out of scope and should not be used in the generated code. This method should only used to port Scala 2 that used to access their outer scope unsoundly.
Attributes
Inherited methods
Convert this tree to an quoted.Expr[Any]
if the tree is a valid expression or throws
Convert this tree to an quoted.Expr[Any]
if the tree is a valid expression or throws
Attributes
- Inherited from:
- Tree
Convert this tree to an quoted.Expr[T]
if the tree is a valid expression or throws
Convert this tree to an quoted.Expr[T]
if the tree is a valid expression or throws
Attributes
- Inherited from:
- Tree
Changes the owner of the symbols in the tree
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)
).
Value parameters
- that
-
the object to compare against this object for equality.
Attributes
Calculates a hash code value for the object.
Calculates a hash code value for the object.
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)
) yet not be equal (o1.equals(o2)
returns false
). A degenerate implementation could always return 0
. However, it is required that if two objects are equal (o1.equals(o2)
returns true
) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)
). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals
method.
Attributes
Does this tree represent a valid expression?
Position in the source code
Shows the tree as String
Attributes
- Inherited from:
- Tree
Attributes
- Inherited from:
- Tree
Attributes
- Inherited from:
- Tree
Attributes
- Inherited from:
- Tree
Symbol of defined or referred by this tree
Abstract fields
Givens
Inherited givens
Attributes
- Inherited from:
- Tree