isInstantiated

fun isInstantiated(callParameterArg: Node, templateParameter: Declaration?): Boolean

Checks if the provided call parameter can instantiate the required template parameter

Return

If the TemplateParameter is an TypeParameterDeclaration, the callParameter must be an ObjectType => returns true If the TemplateParameter is a ParameterDeclaration, the callParameterArg must be an Expression and its type must match the type of the ParameterDeclaration (same type or subtype) => returns true Otherwise return false

Parameters

callParameterArg
templateParameter