InfixOp
Attributes
- Graph
-
- Supertypes
-
trait Serializableclass OpTreetrait Showabletrait Containertrait LinkSourceclass Positionedtrait Cloneabletrait Producttrait Equalstrait SrcPosclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Inherited methods
The list of all keys and values attached to this container.
The attachment corresponding to key
.
The attachment corresponding to key
.
Attributes
- Throws
-
NoSuchElementException
if no attachment with key exists
- Inherited from:
- LinkSource
The attachment corresponding to key
, or default
if no attachment with key
exists.
The attachment corresponding to key
, or default
if no attachment with key
exists.
Attributes
- Inherited from:
- LinkSource
Check that all positioned items in this tree satisfy the following conditions:
Check that all positioned items in this tree satisfy the following conditions:
- Parent spans contain child spans
- If item is a non-empty tree, it has a position
Attributes
- Inherited from:
- Positioned
Clone this node but assign it a fresh id which marks it as a node in file
.
Clone this node but assign it a fresh id which marks it as a node in file
.
Attributes
- Inherited from:
- Positioned
Attributes
- Inherited from:
- Positioned
The denotation referred to by this tree. Defined for DenotingTree
s and ProxyTree
s, NoDenotation for other kinds of trees
The denotation referred to by this tree. Defined for DenotingTree
s and ProxyTree
s, NoDenotation for other kinds of trees
Attributes
- Inherited from:
- Tree
Attributes
- Inherited from:
- SrcPos
The union of startSpan and the spans of all positioned children that have the same source as this node, except that Inlined nodes only consider their call
child.
The union of startSpan and the spans of all positioned children that have the same source as this node, except that Inlined nodes only consider their call
child.
Side effect: Any descendants without spans have but with the same source as this node have their span set to the end position of the envelope of all children to the left, or, if that one does not exist, to the start position of the envelope of all children to the right.
Attributes
- Inherited from:
- Positioned
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
- Returns
-
true
if the receiver object is equivalent to the argument;false
otherwise. - Definition Classes
- Inherited from:
- Tree
A fallback text representation, if the pattern matching in Printers does not have a case for this showable element
A fallback text representation, if the pattern matching in Printers does not have a case for this showable element
Attributes
- Inherited from:
- Showable
Attributes
- Inherited from:
- SrcPos
If this is a thicket, perform op
on each of its trees otherwise, perform op
ion tree itself.
If this is a thicket, perform op
on each of its trees otherwise, perform op
ion tree itself.
Attributes
- Inherited from:
- Tree
Optionally get attachment corresponding to key
Does an attachment corresponding to key
exist?
Does the tree have its type field set? Note: this operation is not referentially transparent, because it can observe the withType modifications. Should be used only in special circumstances (we need it for printing trees with optional type info).
Does the tree have its type field set? Note: this operation is not referentially transparent, because it can observe the withType modifications. Should be used only in special circumstances (we need it for printing trees with optional type info).
Attributes
- Inherited from:
- Tree
Calculate a hash code value for the object.
Calculate 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 define a new symbol that is not defined elsewhere?
Is this tree either the empty tree or the empty ValDef or an empty type ident?
Is this tree either the empty tree or the empty ValDef or an empty type ident?
Attributes
- Inherited from:
- Tree
Is this a legal part of a pattern which is not at the same time a term?
Is this a legal part of a pattern which is not at the same time a term?
Attributes
- Inherited from:
- Tree
if this tree is the empty tree, the alternative, else this tree
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Container
Add attachment with given key
and value
.
Add attachment with given key
and value
.
Attributes
- Returns
-
Optionally, the old attachment with given
key
if one existed before. The new attachment is added at the position of the old one, or at the end if no attachment with samekey
existed. - Inherited from:
- LinkSource
Attributes
- Inherited from:
- Container
Remove attachment with given key
, if it exists.
Remove attachment with given key
, if it exists.
Attributes
- Returns
-
Optionally, the removed attachment with given
key
if one existed before. - Inherited from:
- LinkSource
The string representation of this showable element.
The string representation with each line after the first one indented by the given given margin (in spaces).
The string representation with each line after the first one indented by the given given margin (in spaces).
Attributes
- Inherited from:
- Showable
The summarized string representation of this showable element. Recursion depth is limited to some smallish value. Default is Config.summarizeDepth.
The summarized string representation of this showable element. Recursion depth is limited to some smallish value. Default is Config.summarizeDepth.
Attributes
- Inherited from:
- Showable
Attributes
- Inherited from:
- Positioned
Attributes
- Inherited from:
- Positioned
The span part of the item's position
Attributes
- Inherited from:
- Positioned
This positioned item, widened to SrcPos
. Used to make clear we only need the position, typically for error reporting.
This positioned item, widened to SrcPos
. Used to make clear we only need the position, typically for error reporting.
Attributes
- Inherited from:
- Positioned
Attributes
- Inherited from:
- SrcPos
Shorthand for denot.symbol
.
Convert tree to a list. Gives a singleton list, except for thickets which return their element trees.
Convert tree to a list. Gives a singleton list, except for thickets which return their element trees.
Attributes
- Inherited from:
- Tree
The text representation of this showable element. This normally dispatches to a pattern matching method in Printers.
The type of the tree. In case of an untyped tree, an UnAssignedTypeException is thrown. (Overridden by empty trees)
The type of the tree. In case of an untyped tree, an UnAssignedTypeException is thrown. (Overridden by empty trees)
Attributes
- Inherited from:
- Tree
The number of nodes in this tree
A unique identifier in case -Yshow-tree-ids, or -Ydebug-tree-with-id is set, -1 otherwise.
A unique identifier in case -Yshow-tree-ids, or -Ydebug-tree-with-id is set, -1 otherwise.
Attributes
- Inherited from:
- Positioned
Attributes
- Inherited from:
- Container
Copy the sticky attachments from container
to this container.
A positioned item like this one with given span
. If the positioned item is source-derived, a clone is returned. If the positioned item is synthetic, the position is updated destructively and the item itself is returned.
A positioned item like this one with given span
. If the positioned item is source-derived, a clone is returned. If the positioned item is synthetic, the position is updated destructively and the item itself is returned.
Attributes
- Inherited from:
- Positioned
Return a typed tree that's isomorphic to this tree, but has given type. (Overridden by empty trees)
Return a typed tree that's isomorphic to this tree, but has given type. (Overridden by empty trees)
Attributes
- Inherited from:
- Tree
Attributes
- Inherited from:
- Tree