Packages

o

scala.io.Source

RelaxedPosition

object RelaxedPosition extends Position

A Position implementation which ignores errors in the positions.

Source
Source.scala
Linear Supertypes
Position, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RelaxedPosition
  2. Position
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final val COLUMN_BITS: Int

    Number of bits used to encode the column number

    Number of bits used to encode the column number

    Definition Classes
    Position
  2. final val COLUMN_MASK: Int

    Mask to decode the column number

    Mask to decode the column number

    Definition Classes
    Position
  3. final val LINE_BITS: Int(20)

    Number of bits used to encode the line number

    Number of bits used to encode the line number

    Definition Classes
    Position
  4. final val LINE_MASK: Int

    Mask to decode the line number

    Mask to decode the line number

    Definition Classes
    Position
  5. def checkInput(line: Int, column: Int): Unit

    Definable behavior for overflow conditions.

    Definable behavior for overflow conditions.

    Definition Classes
    RelaxedPosition → Position
  6. final def column(pos: Int): Int

    Returns the column number of the encoded position.

    Returns the column number of the encoded position.

    Definition Classes
    Position
  7. final def encode(line: Int, column: Int): Int

    Encodes a position into a single integer.

    Encodes a position into a single integer.

    Definition Classes
    Position
  8. final def line(pos: Int): Int

    Returns the line number of the encoded position.

    Returns the line number of the encoded position.

    Definition Classes
    Position
  9. def toString(pos: Int): String

    Returns a string representation of the encoded position.

    Returns a string representation of the encoded position.

    Definition Classes
    Position