Indicates a syntactic error when parsing.
fromTextAndCursor(text: Text,cursor: TreeCursor,): SyntacticParseError
Helper function to create a SyntacticParseError from the text and a cursor.
fromTextAndPosition(text: Text,position: number,message?: string,): SyntacticParseError
Helper function to create a SyntacticParseError from the text and a position.