API reference@effx/compiler
Diagnostic
API reference for @effx/compiler/Diagnostic
Diagnostic.ts overview
Exports Grouped by Category
utils
Diagnostic
Diagnostics are data, not failures (spec 0001). Serializable into the manifest.
Signature
declare const Diagnostic: Schema.Struct<{
readonly code: Schema.String
readonly severity: Schema.Literals<readonly ["error", "warning", "info"]>
readonly message: Schema.String
readonly location: Schema.optionalKey<
Schema.Struct<{ readonly file: Schema.String; readonly line: Schema.Int; readonly col: Schema.Int }>
>
readonly related: Schema.optionalKey<
Schema.$Array<Schema.suspend<Schema.Codec<DiagnosticData, DiagnosticData, never, never>>>
>
}>Diagnostic (type alias)
Signature
type Diagnostic = DiagnosticDataDiagnosticCode
Signature
declare const DiagnosticCode: Schema.StringLocation
Signature
declare const Location: Schema.Struct<{
readonly file: Schema.String
readonly line: Schema.Int
readonly col: Schema.Int
}>Severity
Signature
declare const Severity: Schema.Literals<readonly ["error", "warning", "info"]>hasErrors
Signature
declare const hasErrors: (diagnostics: ReadonlyArray<Diagnostic>) => boolean