serenadeai / java-tree-sitter

Java bindings for tree-sitter
MIT License
126 stars 35 forks source link

Add binding to method hasError of class Node #13

Closed tautologico closed 1 year ago

tautologico commented 2 years ago

This PR adds a binding to the ts_node_has_error tree-sitter function to determine if a tree node has any syntax errors in its subtree. This is important to quickly determine if parsing has encountered an error without having to traverse the tree.

tmacwill commented 1 year ago

apologies for the mega delay in responding here! am back now, though.

thanks for adding support for this functionality. this PR lgtm, so will merge this in.