Result returned by tree-sitter structural navigation.
Positions are zero-indexed tree-sitter points. Columns are byte offsets within the line, matching the rest of the parser protocol.
Summary
Functions
Builds a structural navigation result.
Returns the cursor position for the start of the node.
Types
@type t() :: %Minga.Parser.StructuralNavResult{ end_col: non_neg_integer(), end_row: non_neg_integer(), start_col: non_neg_integer(), start_row: non_neg_integer(), type_name: String.t() }
Functions
@spec new( non_neg_integer(), non_neg_integer(), non_neg_integer(), non_neg_integer(), String.t() ) :: t()
Builds a structural navigation result.
@spec start_position(t()) :: {non_neg_integer(), non_neg_integer()}
Returns the cursor position for the start of the node.