Vize.Diagnostic (Vize v0.13.0)

Copy Markdown View Source

Structured diagnostic emitted by Vize.

Summary

Types

input()

@type input() :: %{
  optional(:code) => atom() | String.t() | nil,
  :message => String.t(),
  optional(:location) => Vize.SourceRange.input() | Vize.SourceRange.t() | nil,
  optional(:loc) => Vize.SourceRange.input() | Vize.SourceRange.t() | nil,
  optional(:recoverable?) => boolean(),
  optional(:recoverable) => boolean()
}

t()

@type t() :: %Vize.Diagnostic{
  code: atom() | String.t() | nil,
  location: Vize.SourceRange.t() | nil,
  message: String.t(),
  recoverable?: boolean()
}

Functions

new(diagnostic)

@spec new(input() | t() | String.t()) :: t()