gkz / grasp

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

program.body and args of child #56

Open ainthek opened 9 years ago

ainthek commented 9 years ago

grasp 'call[callee=(#define,#require)].args:first(obj)' grasp 'program.body > call[callee=(#define,#require)]'

both work, but I want to combine them into something like::

grasp 'program.body > call[callee=(#define,#require)].args:first(obj)'

Thanx for hint