@michal Yes, all AST nodes are annotated with row and column position! So a tree walk should be able to find the node at a given position
I've been thinking we could add a command which produces a full dump of the annotated tree for consumption by tools!
@michal one challenge with interactive tools is producing completions on incomplete source code (ie, when you haven't finished typing a function yet, etc -- technically the code is at a "syntax error" stage). But even if you can process the data only when the file is at a "stable" stage (e.g. at save time) it would already be very helpful!
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!