tree-sitter / node-tree-sitter

Node.js bindings for tree-sitter
https://www.npmjs.com/package/tree-sitter
MIT License
649 stars 114 forks source link

API parity between node and web binding #68

Closed pckhoi closed 8 months ago

pckhoi commented 4 years ago

Hello, I'm using my grammar in the browser using web-tree-sitter. However when I try to write some tests I was surprised to find that the API for node is different from that of web API. For example there is no childForFieldName method on node.

Now my only option left is to load WASM file into node and test with that. Ideally web API and node API should be exactly the same. Any plan to improve on this?

issue-label-bot[bot] commented 4 years ago

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.