effx
API reference@effx/compilerdiagnostics

validation

API reference for @effx/compiler/diagnostics/validation

validation.ts overview


Exports Grouped by Category


utils

DiagnosticContext (interface)

Signature

export interface DiagnosticContext {
  readonly phase?: "collect" | "expand" | "interpret" | "analyze"
  readonly strictAccess?: boolean
}

hasDiagnosticContractErrors

A related contract error also blocks output even when its parent is informational.

Signature

declare const hasDiagnosticContractErrors: (diagnostics: ReadonlyArray<Diagnostic>) => boolean

registryOf

Pure boundary shared by synchronous stages and both compilation entry points.

Signature

declare const registryOf: (
  extensions: ReadonlyArray<Pick<Extension, "name" | "diagnosticEntries">>
) => StageResult<Registry>

validateDiagnostics

Valid occurrences retain their order, fields and related tree. Each invalid occurrence becomes registered EFFX0010 data at its original position; no callback data escapes unchecked. No effects, resources, retries or runtime ownership are introduced by this boundary.

Signature

declare const validateDiagnostics: (
  input: ReadonlyArray<Diagnostic>,
  registry: Registry,
  owner: string,
  context?: DiagnosticContext
) => ReadonlyArray<Diagnostic>

On this page