IncrementalSyntaxEngine
interface exported by @mwillbanks/tuil-code.
interface
Public interface exported by @mwillbanks/tuil-code.
export interface IncrementalSyntaxEngine {
parse(
source: string,
previous: IncrementalSyntaxTree | undefined,
signal: AbortSignal,
): IncrementalSyntaxTree | Promise<IncrementalSyntaxTree>;
dispose?(): void;
}Members
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
parse | (source: string, previous: IncrementalSyntaxTree | undefined, signal: AbortSignal) => IncrementalSyntaxTree | Promise<IncrementalSyntaxTree> | Yes | The parse member uses the (source: string, previous: IncrementalSyntaxTree | undefined, signal: AbortSignal) => IncrementalSyntaxTree | Promise<IncrementalSyntaxTree> contract. | IncrementalSyntaxTree |
dispose | (() => void) | undefined | No | The dispose member uses the (() => void) | undefined 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