method SyntacticParseError.fromTextAndCursor
SyntacticParseError.fromTextAndCursor(
text: Text,
cursor: TreeCursor,
): SyntacticParseError

Helper function to create a SyntacticParseError from the text and a cursor.

Parameters

text: Text

The text to parse.

cursor: TreeCursor

The cursor position in the text.

Return Type

Usage

import { SyntacticParseError } from ".";