H A D | function.cpp | 151 Type *argumentType, Substitution *substitution) in EnhanceSubstitutionForReadonly() 153 return EnhanceSubstitutionForType(typeParams, paramType->GetUnderlying(), GetReadonlyType(argumentType), in EnhanceSubstitutionForReadonly() 158 bool ETSChecker::EnhanceSubstitutionForType(const ArenaVector<Type *> &typeParams, Type *paramType, Type *argumentType, in EnhanceSubstitutionForType() argument 161 if (argumentType->HasTypeFlag(TypeFlag::ETS_PRIMITIVE)) { in EnhanceSubstitutionForType() 162 argumentType = PrimitiveTypeAsETSBuiltinType(argumentType); in EnhanceSubstitutionForType() 169 if (!IsReferenceType(argumentType)) { in EnhanceSubstitutionForType() 170 LogTypeError({argumentType, " is not compatible with type ", tparam}, tparam->GetDeclNode()->Start()); in EnhanceSubstitutionForType() 174 ETSChecker::EmplaceSubstituted(substitution, originalTparam, argumentType); in EnhanceSubstitutionForType() 175 return IsCompatibleTypeArgument(tparam, argumentType, substitutio in EnhanceSubstitutionForType() 150 EnhanceSubstitutionForReadonly(const ArenaVector<Type *> &typeParams, ETSReadonlyType *paramType, Type *argumentType, Substitution *substitution) EnhanceSubstitutionForReadonly() argument 199 EnhanceSubstitutionForUnion(const ArenaVector<Type *> &typeParams, ETSUnionType *paramUn, Type *argumentType, Substitution *substitution) EnhanceSubstitutionForUnion() argument 239 EnhanceSubstitutionForObject(const ArenaVector<Type *> &typeParams, ETSObjectType *paramType, Type *argumentType, Substitution *substitution) EnhanceSubstitutionForObject() argument 289 EnhanceSubstitutionForArray(const ArenaVector<Type *> &typeParams, ETSArrayType *const paramType, Type *const argumentType, Substitution *const substitution) EnhanceSubstitutionForArray() argument 403 auto *argumentType = argument->Check(this); CheckInvokable() local 417 Type *argumentType = argument->Check(this); ValidateSignatureInvocationContext() local 440 auto *const argumentType = argument->Check(this); ValidateSignatureRestParams() local 464 auto *const argumentType = restArgument->Check(this); ValidateSignatureRestParams() local [all...] |