-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Functions::containsToken() #126
Comments
Would this be for the function the original |
Specific use case is trying to determine if a filter callback contains With sensible guard clauses to reduce the amount of time this had to run, I'd expect any It would allow sniff-writers to be less concerned with finding and looping through opener and closer tokens, and be able to ask "Does this function contain a For a combination of tokens, |
See my side-note about this here: #122 (comment) |
At least for the second one, perhaps the Functions::containsToken() should consider excluding tokens not in the the immediate function scope? |
Idea: have a way to see if a function contains a particular token, or some combination of tokens:
Perhaps could also handle the logic for
Class::methodContainsToken()
or similar as well.The text was updated successfully, but these errors were encountered: