Replies: 1 comment
-
Hi @gsingh93, This is indeed not possible. If you want something like this, you'll need to create a new predicate that doesn't live in a class, e.g., predicate isExported(AndroidComponent c) {
c.isExported()
} and change the signature and module to something like: signature predicate pred0(AndroidComponent c);
module Pred<pred0/1 p> {
string toString(AndroidComponent c) { if p(c) then result = "true" else result = "false" }
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have this code which is able to print simple predicates as boolean strings:
Is it possible to generically do this for class methods that take no arguments? For example:
Or maybe:
My guess is no, but I wanted to confirm.
Beta Was this translation helpful? Give feedback.
All reactions