Closed smheidrich closed 1 week ago
Woops. I think having errors as nodes is the only supported behavior now, since this is how tree sitter parsers work.
The code on line 277 adds an ERROR node unconditionally. The parsing functions take a "raise parse error" parameter instead now.
The README's example snippet contains
But
error_as_node
doesn't seem to exist (anymore) as aTreeSitterTypeProvider
constructor parameter:https://github.com/wenkokke/py-tree-sitter-type-provider/blob/38ffa6de375f4775ad9caa9b916490d4f7ad066c/src/tree_sitter_type_provider/__init__.py#L247-L256