flix

0.79.0

SourcePosition

enum SourcePosition with CoerceSource
case SourcePosition(Int32, Int32)

Type of zero-width positions within a source.

A position is identified by line and column coordinates.

Both line and column numbers use one-based indexing. (e.g., the first character of a source is at line 1, column 1).

Fields:

  1. line: The line number (1-based). Must be >= 1.
  2. column: The column number (1-based) within the specified line. Must be >= 1.

Instances

Coerce