Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

top level call (how to) #31

Closed
ainthek opened this issue May 18, 2014 · 2 comments
Closed

top level call (how to) #31

ainthek opened this issue May 18, 2014 · 2 comments

Comments

@ainthek
Copy link

ainthek commented May 18, 2014

// trying to get only top level calls to AMD define and require in all files
// but with no success:
// my trials (errors) so fat
grasp -s "program.body>call.callee:matches(#define,#require)" -r .
grasp -s ":root.body>call.callee:matches(#define,#require)" -r .

please help, I'm struggling with docs

@gkz
Copy link
Owner

gkz commented May 28, 2014

Try

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

@ainthek
Copy link
Author

ainthek commented Jun 5, 2014

Thanx a lot, just to explain for others
Sample for finding all NON-AMD files in dojo project:
grasp -W 'program.body > call[callee=(#define,#require)]' -r

@ainthek ainthek closed this as completed Jul 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants