View Source Sourceror.Range (Sourceror v1.6.0)
Represents a start/end position in a source file as :line
and :column
keyword lists.
Summary
Functions
Creates a new range struct.
Types
@type t() :: %Sourceror.Range{end: Sourceror.position(), start: Sourceror.position()}
Functions
@spec new(start_pos :: Sourceror.position(), end_pos :: Sourceror.position()) :: t()
Creates a new range struct.
Examples
iex> Sourceror.Range.new([line: 1, column: 1], [line: 1, column: 2])
%Sourceror.Range{start: [line: 1, column: 1], end: [line: 1, column: 2]}