3 ms·
Still never going to beat AST-integrated searching like VS has for C#. Which has a regex search too.
by jimmaswell 7y ago
Still never going to beat AST-integrated searching like VS has for C#. Which has a regex search too.
- arethuza 7y agoAre there any stand-alone AST based search tools?
- bruce_one 7y agoI've found a few, eg https://www.graspjs.com/ https://www.graspjs.com/ is a Javascript one. I do wonder if there is a multi-language aware one though.
- hchasestevens 7y agoI'm going to plug my own here: astpath, which is AST-based search for Python. https://github.com/hchasestevens/astpath/ https://github.com/hchasestevens/astpath/
- secure 7y agoYes, https://github.com/mvdan/gogrep https://github.com/mvdan/gogrep for Go
- llimllib 7y agogoogling returned https://github.com/azz/ast-grep https://github.com/azz/ast-grep for js
- sethammons 7y agoI have stopped using the AST integrated searching vs code for Go. Instead of clicking to declaration, it is now faster in my larger code base (especially one that uses interfaces a lot) to just search for substrings. The AST search still works most of the time, but sometimes it fails and usually it is just plain slow.