Closed as not planned
Description
I would expect this not to parse/parse with errors:
def foo():
foo()
But AFAICT there are no ERROR
nodes in the tree, nor are there any nodes for which hasError()
returns true. It looks like this was intentionally added in #65 ("As is often the case, I think the most practical fix is to allow a superset of what Python really allows, and treat empty blocks as valid blocks.")
I have a higher-level question: if I want to know whether a file parses correctly, can I do that with tree-sitter? Or is that not what tree-sitter is for?