View Source Signo.Position (Signo v0.0.1)
Records the pos of a character or token in the original source code.
Summary
Functions
Updates the recorded pos given either a single grapheme, or a collected list of graphemes.
Types
@type path() :: Path.t() | :nofile
@type t() :: %Signo.Position{ col: non_neg_integer(), path: path(), row: non_neg_integer() }
Functions
@spec increment(t(), [String.grapheme()]) :: t()
@spec increment(t(), String.grapheme()) :: t()
Updates the recorded pos given either a single grapheme, or a collected list of graphemes.