Packages

t

scala.reflect.api

Positions

trait Positions extends AnyRef

EXPERIMENTAL

This trait defines the concept of positions and operations on them.

Self Type
Universe
Source
Positions.scala
See also

scala.reflect.api.Position

Linear Supertypes
AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. Positions
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Positions

  1. abstract type Position >: Null <: api.Position { type Pos = Positions.this.Position }

    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.

  1. abstract val NoPosition: Universe.Position

    A special "missing" position.

  2. abstract def atPos[T <: Universe.Tree](pos: Universe.Position)(tree: T): T

    Assigns a given position to all position-less nodes of a given AST.

  3. abstract def wrappingPos(trees: List[Universe.Tree]): Universe.Position

    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.

  4. abstract def wrappingPos(default: Universe.Position, trees: List[Universe.Tree]): Universe.Position

    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.