Closed liaodalin19903 closed 2 months ago
You use Parser.Query
passing it the language and tree-sitter query string and then use its methods to look at the results. Documentation is missing for this ATM, but you can check out https://github.com/tree-sitter/node-tree-sitter/blob/master/test/query_test.js.
Hi,
I know GitHub uses tree-sitter to query out the classes and funcs :
but in tree-sitter I don't find a way to do it, is there any API to implment it? is there any higher level wrapper lib?