Vize.SourceRange (Vize v0.13.0)

Copy Markdown View Source

A source span reported by Vize.

Summary

Types

input()

@type input() :: %{
  optional(:start) =>
    Vize.SourceLocation.input() | Vize.SourceLocation.t() | nil,
  optional(:end) => Vize.SourceLocation.input() | Vize.SourceLocation.t() | nil,
  optional(:source) => String.t() | nil
}

t()

@type t() :: %Vize.SourceRange{
  end: Vize.SourceLocation.t() | nil,
  source: String.t() | nil,
  start: Vize.SourceLocation.t() | nil
}

Functions

new(range)

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