Vize.SourceLocation (Vize v0.13.0)

Copy Markdown View Source

A source position reported by Vize.

Summary

Types

input()

@type input() :: %{
  optional(:offset) => non_neg_integer() | nil,
  optional(:line) => pos_integer() | nil,
  optional(:column) => pos_integer() | nil
}

t()

@type t() :: %Vize.SourceLocation{
  column: pos_integer() | nil,
  line: pos_integer() | nil,
  offset: non_neg_integer() | nil
}

Functions

new(location)

@spec new(input() | t() | nil) :: t() | nil