HostKit.Diagnostic (host_kit v0.1.0-beta.0)

Copy Markdown View Source

Structured HostKit diagnostic, suitable for pattern matching and compiler-style rendering.

Summary

Types

severity()

@type severity() :: :error | :warning | :info

t()

@type t() :: %HostKit.Diagnostic{
  code: atom(),
  column: pos_integer() | nil,
  details: map(),
  file: String.t() | nil,
  hint: String.t() | nil,
  line: pos_integer() | nil,
  message: String.t(),
  resource_id: term(),
  severity: severity()
}