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 TypeParamDeclaration, the callParameter must be an ObjectType => returns true If the TemplateParameter is a ParamVariableDeclaration, the callParameterArg must be an Expression and its type must match the type of the ParamVariableDeclaration (same type or subtype) => returns true Otherwise return false

Parameters

callParameterArg
templateParameter