Skip to content

Parser.createParse method

Parser › createParse

Unofficial

Start a parse for the given input.

Signature:

createParse(input: Input, fragments: readonly LezerTreeFragment[], ranges: readonly LezerTreeRange[]): PartialParse

Parameters:

Parameter Type Description
input Input The document input.
fragments readonly LezerTreeFragment[] Previously parsed fragments that can be reused.
ranges readonly LezerTreeRange[] The ranges of the document to parse.

Returns: PartialParseA partial parse that can be advanced.