Defines a universe-specific notion of positions.
Defines a universe-specific notion of positions. The main documentation entry about positions is located at scala.reflect.api.Position.
A special "missing" position.
A tag that preserves the identity of the Position
abstract type from erasure.
A tag that preserves the identity of the Position
abstract type from erasure.
Can be used for pattern matching, instance tests, serialization and likes.
Assigns a given position to all position-less nodes of a given AST.
A position that wraps the non-empty set of trees.
A position that wraps the non-empty set of trees. The point of the wrapping position is the point of the first trees' position. If all some the trees are non-synthetic, returns a range position enclosing the non-synthetic trees Otherwise returns a synthetic offset position to point.
A position that wraps a set of trees.
A position that wraps a set of trees. The point of the wrapping position is the point of the default position. If some of the trees are ranges, returns a range position enclosing all ranges Otherwise returns default position.
Returns string formatted according to given format
string.
Returns string formatted according to given format
string.
Format strings are as for String.format
(@see java.lang.String.format).
Implicit values that provide ClassTags
for the reflection
classes. These are abstract in the interface but are later filled in to provide ClassTags
for the either the runtime reflection or macros entities, depending on the use.
EXPERIMENTAL
This trait defines the concept of positions and operations on them.
scala.reflect.api.Position