TreeSitterProgressCallback typedef

TreeSitterProgressCallback = bool Function(TreeSitterParseState state)

Returning true halts parsing and returns no tree. The runtime calls this during parsing and final tree balancing.

Implementation

typedef TreeSitterProgressCallback = bool Function(TreeSitterParseState state);