scala / 3.1 / scala / io / source$relaxedposition$.html

Object scala.io.RelaxedPosition

@nowarn("cat=deprecation")

A Position implementation which ignores errors in the positions.

Supertypes
Self type

Concrete methods

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

Inherited methods

Source
final def column(pos: Int): Int

Returns the column number of the encoded position.

Inherited from Position

Source
final def encode(line: Int, column: Int): Int

Encodes a position into a single integer.

Inherited from Position

Source
final def line(pos: Int): Int

Returns the line number of the encoded position.

Inherited from Position

Source
def toString(pos: Int): String

Returns a string representation of the encoded position.

Inherited from Position

Inherited fields

Source
final val COLUMN_BITS: 11

Number of bits used to encode the column number

Inherited from Position

Source
final val COLUMN_MASK: 2047

Mask to decode the column number

Inherited from Position

Source
final val LINE_BITS: 20

Number of bits used to encode the line number

Inherited from Position

Source
final val LINE_MASK: 1048575

Mask to decode the line number

Inherited from Position

© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/io/Source$RelaxedPosition$.html