signatureWithImplicitCastTransformation

fun signatureWithImplicitCastTransformation(call: CallExpression, callSignature: List<Type?>, arguments: List<Expression>, functionSignature: List<Type>): MutableList<CastExpression?>

Computes the implicit casts that are necessary to reach the

Return

List containing either null on the i-th position (if the type of i-th argument of the call equals the type of the i-th argument of the FunctionDeclaration) or a CastExpression on the i-th position (if the argument of the call can be cast to match the type of the argument at the i-th position of the FunctionDeclaration). If the list is empty the signature of the FunctionDeclaration cannot be reached through implicit casts

Parameters

callSignature

signature of the call we want to find invocation targets for by performing implicit casts

arguments

arguments of the call

functionSignature

Types of the signature of the possible invocation candidate