Resolve Identifiers type when generating the function