gkz / grasp

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

question: match anonymous functions #58

Open thereforeiam opened 9 years ago

thereforeiam commented 9 years ago

I'm trying to match anonymous function with no luck.
grasp func-exp[id] will find all the functions who have an id, I'm essentially trying to find the opposite, unfortunately this : grasp func-exp[:not(id)] does not work

How can I do this ?

gkz commented 9 years ago

func-exp:not([id]) seems to work

thereforeiam commented 9 years ago

Great thank you very much !