mooz/js2-mode — Issue #30: Accessing the js2-mode parsed tree
Author: magnars
Created: 2012-01-02 18:17:20+00:00
State: open

I would like to contribute some IDE-like functionality - for instance renaming a local variable, exchanging all occurrences of that variable. The real parser in js2-mode would be excellent for that.

How do I go about using the parsed tree? For instance, how to find out if point is on a variable? Or look for other instances of the variable?

I'm eager to learn, but I'm having some problems wrapping my head around how js2-mode works. Any chance for a little push in the right direction? :-)