Java: use containing call as call context, not argument

This commit is contained in:
Stephan Brandauer
2023-05-25 09:53:19 +02:00
parent 33fdb0fc52
commit f224a40dec

View File

@@ -95,7 +95,7 @@ module ApplicationCandidatesImpl implements SharedCharacteristics::CandidateSig
*/
RelatedLocation getRelatedLocation(Endpoint e, RelatedLocationType type) {
type = CallContext() and
result = asLocation(e)
result = any(Call c | e.asExpr() = [c.getAnArgument(), c.getQualifier()])
}
/**