RelaxedPosition
A Position implementation which ignores errors in the positions.
Attributes
- Source
- Source.scala
- Graph
-
- Supertypes
- Self type
-
Members list
Value members
Concrete methods
Definable behavior for overflow conditions.
Definable behavior for overflow conditions.
Value parameters
- column
-
the 1-based column number to validate (must be 0 when
lineis 0, negative values throw) - line
-
the 1-based line number to validate (0 for undefined, negative values throw)
Attributes
- Source
- Source.scala
Inherited methods
Returns the column number of the encoded position.
Returns the column number of the encoded position.
Value parameters
- pos
-
the encoded position as returned by
encode
Attributes
- Inherited from:
- Position (hidden)
- Source
- Position.scala
Encodes a position into a single integer.
Encodes a position into a single integer.
Value parameters
- column
-
the 1-based column number, or 0 for undefined; clamped to
COLUMN_MASK, ignored whenline>=LINE_MASK - line
-
the 1-based line number, or 0 for undefined; values at or above
LINE_MASKare clamped and the column is set to 0
Attributes
- Inherited from:
- Position (hidden)
- Source
- Position.scala
Returns the line number of the encoded position.
Returns the line number of the encoded position.
Value parameters
- pos
-
the encoded position as returned by
encode
Attributes
- Inherited from:
- Position (hidden)
- Source
- Position.scala
Returns a string representation of the encoded position.
Returns a string representation of the encoded position.
Value parameters
- pos
-
the encoded position as returned by
encode
Attributes
- Inherited from:
- Position (hidden)
- Source
- Position.scala
Inherited fields
Number of bits used to encode the column number.
Number of bits used to encode the column number.
Attributes
- Inherited from:
- Position (hidden)
- Source
- Position.scala
Mask to decode the column number.
Mask to decode the column number.
Attributes
- Inherited from:
- Position (hidden)
- Source
- Position.scala
Number of bits used to encode the line number.
Number of bits used to encode the line number.
Attributes
- Inherited from:
- Position (hidden)
- Source
- Position.scala
Mask to decode the line number.