ParserDiagnostic
interface exported by @mwillbanks/tuil-streaming.
interface
Public interface exported by @mwillbanks/tuil-streaming.
export interface ParserDiagnostic {
readonly severity: "info" | "warning" | "error";
readonly message: string;
readonly span?: SourceSpan;
readonly recoverable: boolean;
}Members
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
severity | "info" | "warning" | "error" | Yes | The severity member uses the "info" | "warning" | "error" contract. | — |
message | string | Yes | The message member uses the string contract. | — |
span | SourceSpan | undefined | No | The span member uses the SourceSpan | undefined contract. | SourceSpan |
recoverable | boolean | Yes | The recoverable member uses the boolean contract. | — |
Parameters
This declaration has no public members.
Returns
This declaration does not return a value.
Throws
No thrown errors are documented for this declaration.
Related types
Source
View the secondary source reference