gkz / grasp

JavaScript structural search, replace, and refactor
http://graspjs.com
MIT License
1.28k stars 33 forks source link

How to extract assign var name #73

Open Aetet opened 9 years ago

Aetet commented 9 years ago

I have such code:

z[x]=x.y;x.a = "doremi";

I want extract the var that i initialize: z[x] and separately I want to take information about "doremi", How I can achieve that with squery?