RelaxedPosition

@nowarn("cat=deprecation") object RelaxedPosition extends Position

A Position implementation which ignores errors in the positions.

Source
Source.scala
class Position
class Object
trait Matchable
class Any

Value members

Concrete methods

def checkInput(line: Int, column: Int): Unit

Inherited methods

final def column(pos: Int): Int

Returns the column number of the encoded position.

Returns the column number of the encoded position.

Inherited from
Position
Source
Position.scala
final def encode(line: Int, column: Int): Int

Encodes a position into a single integer.

Encodes a position into a single integer.

Inherited from
Position
Source
Position.scala
final def line(pos: Int): Int

Returns the line number of the encoded position.

Returns the line number of the encoded position.

Inherited from
Position
Source
Position.scala
def toString(pos: Int): String

Returns a string representation of the encoded position.

Returns a string representation of the encoded position.

Inherited from
Position
Source
Position.scala

Inherited fields

final val COLUMN_BITS: 11

Number of bits used to encode the column number

Number of bits used to encode the column number

Inherited from
Position
Source
Position.scala
final val COLUMN_MASK: 2047

Mask to decode the column number

Mask to decode the column number

Inherited from
Position
Source
Position.scala
final val LINE_BITS: 20

Number of bits used to encode the line number

Number of bits used to encode the line number

Inherited from
Position
Source
Position.scala
final val LINE_MASK: 1048575

Mask to decode the line number

Mask to decode the line number

Inherited from
Position
Source
Position.scala