parseCST() function

Parse input into a MessageResource CST. Should never throw an Error.

Signature:

export declare function parseCST(source: string, onError: (range: CST.Range, msg: string) => void): CST.Resource;

Parameters

Parameter Type Description
source string The full source being parsed
onError (range: CST.Range, msg: string) => void Error handler, may be called multiple times for bad input.

Returns:

CST.Resource