kex docs Standard Library

TaggedValidation

module TaggedValidation

Diagnostics returned by optional compile-time tagged-literal validators. Byte offsets are zero-based and relative to the cooked literal body.

fatal

fatal(message: String) -> Issue

fatalAt

fatalAt(offset: Integer, message: String) -> Issue

fatalBetween

fatalBetween : Integer -> Integer -> String -> Issue

warn

warn(message: String) -> Issue

warnAt

warnAt(offset: Integer, message: String) -> Issue

warnBetween

warnBetween : Integer -> Integer -> String -> Issue

type ByteSpan

Variants

  • At(Integer)
  • Between(Integer, Integer)

type Issue

Variants

  • Fatal(ByteSpan?, String)
  • Warn(ByteSpan?, String)