Home
last modified time | relevance | path

Searched refs:targetType (Results 1 – 14 of 14) sorted by relevance

/arkcompiler/ets_frontend/es2panda/typescript/core/
DtypeElaborationContext.h34 …ElaborationContext(Checker *checker, Type *targetType, Type *sourceType, const ir::Expression *sou… in ElaborationContext() argument
37 targetType_(targetType), in ElaborationContext()
61 …ArrayElaborationContext(Checker *checker, Type *targetType, Type *sourceType, const ir::Expression… in ArrayElaborationContext() argument
63 : ElaborationContext(checker, targetType, sourceType, sourceNode, startPos) in ArrayElaborationContext()
76 …ObjectElaborationContext(Checker *checker, Type *targetType, Type *sourceType, const ir::Expressio… in ObjectElaborationContext() argument
78 : ElaborationContext(checker, targetType, sourceType, sourceNode, startPos) in ObjectElaborationContext()
Dhelpers.cpp313 void Checker::ElaborateElementwise(Type *targetType, const ir::Expression *sourceNode, const lexer:… in ElaborateElementwise() argument
319 if (IsTypeAssignableTo(sourceType, targetType)) { in ElaborateElementwise()
323 if (targetType->IsArrayType() && sourceNode->IsArrayExpression()) { in ElaborateElementwise()
324 ArrayElaborationContext(this, targetType, sourceType, sourceNode, pos).Start(); in ElaborateElementwise()
325 } else if (targetType->IsObjectType() || targetType->IsUnionType()) { in ElaborateElementwise()
327 ObjectElaborationContext(this, targetType, sourceType, sourceNode, pos).Start(); in ElaborateElementwise()
329 ArrayElaborationContext(this, targetType, sourceType, sourceNode, pos).Start(); in ElaborateElementwise()
333 ThrowAssignmentError(sourceType, targetType, pos); in ElaborateElementwise()
Dobject.cpp542 Type *targetType = GetTypeOfVariable(prop); in ValidateInterfaceMemberRedeclaration() local
544 IsTypeIdenticalTo(targetType, sourceType, in ValidateInterfaceMemberRedeclaration()
546 " must be of type ", sourceType, ", but here has type ", targetType, "."}, in ValidateInterfaceMemberRedeclaration()
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsAsExpression.cpp102 checker::Type *targetType = typeAnnotation_->AsTypeNode()->GetType(checker); in Check() local
105 targetType, exprType, in Check()
106 {"Conversion of type '", exprType, "' to type '", targetType, in Check()
111 return targetType; in Check()
DtsInterfaceDeclaration.cpp86 checker::Type *targetType = checker->GetTypeOfVariable(res->second.first); in CheckInheritedPropertiesAreIdentical() local
87 checker->IsTypeIdenticalTo(sourceType, targetType, in CheckInheritedPropertiesAreIdentical()
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dts_type_accessor.cpp47 void TSTypeAccessor::UpdateForEachCBPara(kungfu::GateType targetType) in UpdateForEachCBPara() argument
61 GlobalTSTypeRef targetGT = targetType.GetGTRef(); in UpdateForEachCBPara()
62 if (tsManager_->IsArrayTypeKind(targetType)) { in UpdateForEachCBPara()
63 elementGT = tsManager_->GetArrayParameterTypeGT(targetType); in UpdateForEachCBPara()
65 if (tsManager_->IsTypedArrayType(targetType)) { in UpdateForEachCBPara()
Dts_type_accessor.h83 void PUBLIC_API UpdateForEachCBPara(kungfu::GateType targetType);
/arkcompiler/ets_frontend/es2panda/typescript/types/
DobjectType.cpp122 Type *targetType = relation->GetChecker()->GetTypeOfVariable(it); in AssignProperties() local
127 if (!relation->IsAssignableTo(sourceType, targetType)) { in AssignProperties()
140 !relation->IsAssignableTo(numberInfo->GetType(), targetType)) { in AssignProperties()
144 if (stringInfo && !relation->IsAssignableTo(stringInfo->GetType(), targetType)) { in AssignProperties()
DinterfaceType.cpp67 … Type *targetType = relation->GetChecker()->GetTypeOfVariable(targetProp); in Identical() local
69 return relation->IsIdenticalTo(targetType, sourceType); in Identical()
/arkcompiler/ets_runtime/ecmascript/
Djs_stable_array.h57 … DataViewType targetType, uint64_t targetOffset,
Djs_stable_array.cpp667 … DataViewType targetType, uint64_t targetOffset, in FastCopyFromArrayToTypedArray() argument
678 uint32_t targetElementSize = TypedArrayHelper::GetSizeFromType(targetType); in FastCopyFromArrayToTypedArray()
701 targetType, kValue, true); in FastCopyFromArrayToTypedArray()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_typedarray.cpp1061 DataViewType targetType = TypedArrayHelper::GetType(targetObj); in Set() local
1062 uint32_t targetElementSize = TypedArrayHelper::GetSizeFromType(targetType); in Set()
1075 return JSStableArray::FastCopyFromArrayToTypedArray(thread, targetObj, targetType, in Set()
1139 targetType, kNumberHandle, true); in Set()
1214 if (srcType != targetType) { in Set()
1221 targetType, value, true); in Set()
1302 DataViewType targetType = JSTypedArray::GetTypeFromName(thread, targetName); in Slice() local
1316 if (srcType != targetType) { in Slice()
/arkcompiler/ets_frontend/es2panda/typescript/
Dchecker.h364 …void ElaborateElementwise(Type *targetType, const ir::Expression *sourceNode, const lexer::SourceP…
/arkcompiler/ets_runtime/ecmascript/compiler/
Dstub_builder-inl.h2076 GateRef targetType = Int32(static_cast<int32_t>(Representation::TAGGED)); in SetTaggedRepInPropAttr() local
2078 Int32LSL(targetType, Int32(PropertyAttributes::RepresentationField::START_BIT))); in SetTaggedRepInPropAttr()