scala.util.parsing.input
trait Positional

[source: `scala/util/parsing/input/Positional.scala`]

`` `trait` Positional
  `extends` AnyRef

  A trait for objects that have a source position.

Author
  Martin Odersky, Adriaan Moors

Direct Known Subclasses:
  AbstractSyntax.Element

Value Summary
`var` | pos : Position The source position of this object, initially set to undefined.

Method Summary
`def` | setPos (newpos : Position) : Positional If current source position is undefined, update it with given position `newpos'

Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Value Details

`` `var` pos : Position

  The source position of this object, initially set to undefined.

Method Details

`` `def` setPos(newpos : Position) : Positional

  If current source position is undefined, update it with given position `newpos'

Returns
  the object itself