Solid.Parser.Loc (solid v1.3.4)

View Source

Summary

Functions

Builds a Loc from a lexer loc map. Cheaper than struct!/2 on hot paths.

Types

t()

@type t() :: %Solid.Parser.Loc{column: pos_integer(), line: pos_integer()}

Functions

new(map)

@spec new(Solid.Lexer.loc()) :: t()

Builds a Loc from a lexer loc map. Cheaper than struct!/2 on hot paths.