Skip to content
Discussion options

You must be logged in to vote

Do you want something like this?

from Method value, MethodAccess valueMa, MethodAccess toString
where value.hasName("value") and
valueMa.getMethod() = value and
toString.getQualifier() = valueMa and // <- chaining; `toString()`'s qualifier is `value()`.
toString.hasName("toString")
select value, valueMa, toString

This should work (untested code) and detect this.record.value().toString().

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@ap00rv
Comment options

@ap00rv
Comment options

Comment options

You must be logged in to vote
1 reply
@ap00rv
Comment options

Answer selected by ap00rv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants