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

Add SyntaxNode.descendantsOfType method #14

Closed maxbrunsfeld closed 6 years ago

maxbrunsfeld commented 6 years ago

Depends on https://github.com/tree-sitter/tree-sitter/pull/181

In this PR, I've also added a method for finding the region of a syntax tree that has been directly edited: Tree.getEditedRange. This is also useful for https://github.com/atom/atom/pull/17551.

🍐'd with @queerviolet