special case for Argument[this]

This commit is contained in:
Stephan Brandauer
2023-05-10 11:53:40 +02:00
parent 7ae6a992b6
commit d2d884b007

View File

@@ -98,7 +98,9 @@ module FrameworkCandidatesImpl implements SharedCharacteristics::CandidateSig {
FrameworkCandidatesImpl::getCallable(e).hasQualifiedName(package, type, name) and
signature = ExternalFlow::paramsString(getCallable(e)) and
ext = "" and
exists(int paramIdx | e.isParameterOf(_, paramIdx) | input = "Argument[" + paramIdx + "]")
exists(int paramIdx | e.isParameterOf(_, paramIdx) |
if paramIdx = -1 then input = "Argument[this]" else input = "Argument[" + paramIdx + "]"
)
}
/**