RelaxedPosition

scala.io.Source.RelaxedPosition

A Position implementation which ignores errors in the positions.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Source.this.Source.this.RelaxedPosition.type

Members list

Value members

Concrete methods

Definable behavior for overflow conditions.

Definable behavior for overflow conditions.

Attributes

Inherited methods

final def column(pos: Int): Int

Returns the column number of the encoded position.

Returns the column number of the encoded position.

Attributes

Inherited from:
Position (hidden)
final def encode(line: Int, column: Int): Int

Encodes a position into a single integer.

Encodes a position into a single integer.

Attributes

Inherited from:
Position (hidden)
final def line(pos: Int): Int

Returns the line number of the encoded position.

Returns the line number of the encoded position.

Attributes

Inherited from:
Position (hidden)

Returns a string representation of the encoded position.

Returns a string representation of the encoded position.

Attributes

Inherited from:
Position (hidden)

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

Attributes

Inherited from:
Position (hidden)
final val COLUMN_MASK: 2047

Mask to decode the column number

Mask to decode the column number

Attributes

Inherited from:
Position (hidden)
final val LINE_BITS: 20

Number of bits used to encode the line number

Number of bits used to encode the line number

Attributes

Inherited from:
Position (hidden)
final val LINE_MASK: 1048575

Mask to decode the line number

Mask to decode the line number

Attributes

Inherited from:
Position (hidden)