/arkcompiler/ets_frontend/es2panda/typescript/types/ |
D | objectLiteralType.h | 23 class ObjectLiteralType : public ObjectType { 25 …explicit ObjectLiteralType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::LITERA… in ObjectLiteralType() 26 ObjectLiteralType() : ObjectType(ObjectType::ObjectTypeKind::LITERAL) {} in ObjectLiteralType()
|
D | objectType.cpp | 25 bool ObjectType::EachSignatureRelatedToSomeSignature(TypeRelation *relation, in EachSignatureRelatedToSomeSignature() 36 bool ObjectType::SignatureRelatedToSomeSignature(TypeRelation *relation, Signature *sourceSignature, in SignatureRelatedToSomeSignature() 51 void ObjectType::Identical(TypeRelation *relation, Type *other) in Identical() 57 ObjectType *otherObj = other->AsObjectType(); in Identical() 114 void ObjectType::AssignProperties(TypeRelation *relation, ObjectType *source) in AssignProperties() 155 void ObjectType::AssignSignatures(TypeRelation *relation, ObjectType *source, bool assignCallSignat… in AssignSignatures() 179 void ObjectType::AssignIndexInfo([[maybe_unused]] TypeRelation *relation, ObjectType *source, bool … in AssignIndexInfo() 202 void ObjectType::checkExcessProperties(TypeRelation *relation, ObjectType *source) in checkExcessProperties() 216 void ObjectType::AssignmentTarget(TypeRelation *relation, Type *source) in AssignmentTarget() 225 ObjectType *sourceObj = source->AsObjectType(); in AssignmentTarget()
|
D | objectType.h | 50 class ObjectType : public Type { in DEFINE_BITOPS() 82 explicit ObjectType(ObjectType::ObjectTypeKind kind) in DEFINE_BITOPS() 87 ObjectType(ObjectType::ObjectTypeKind kind, ObjectDescriptor *desc) in DEFINE_BITOPS() 92 ObjectType::ObjectTypeKind Kind() const in DEFINE_BITOPS() 193 void checkExcessProperties(TypeRelation *relation, ObjectType *source); in DEFINE_BITOPS() 194 void AssignProperties(TypeRelation *relation, ObjectType *source); in DEFINE_BITOPS() 195 …void AssignSignatures(TypeRelation *relation, ObjectType *source, bool assignCallSignatures = true… in DEFINE_BITOPS() 196 void AssignIndexInfo(TypeRelation *relation, ObjectType *source, bool assignNumberInfo = true); in DEFINE_BITOPS()
|
D | typeMapping.h | 35 _(TypeFlag::OBJECT, ObjectType) \ 47 _(ObjectType::ObjectTypeKind::FUNCTION, FunctionType) \ 48 _(ObjectType::ObjectTypeKind::TUPLE, TupleType) \ 49 _(ObjectType::ObjectTypeKind::LITERAL, ObjectLiteralType) \ 50 _(ObjectType::ObjectTypeKind::INTERFACE, InterfaceType)
|
D | interfaceType.h | 23 class InterfaceType : public ObjectType { 26 : ObjectType(ObjectType::ObjectTypeKind::INTERFACE, desc), in InterfaceType() 33 void AddBase(ObjectType *base) in AddBase() 38 ArenaVector<ObjectType *> &Bases() in Bases() 70 binder::LocalVariable *resultProp = ObjectType::GetProperty(name, false); in GetProperty() 144 ArenaVector<ObjectType *> bases_;
|
D | tupleType.h | 29 class TupleType : public ObjectType { 32 : ObjectType(ObjectTypeKind::TUPLE), elementFlags_(allocator->Adapter()) in TupleType() 38 : ObjectType(ObjectType::ObjectTypeKind::TUPLE, desc), in TupleType() 54 : ObjectType(ObjectType::ObjectTypeKind::TUPLE, desc), in TupleType()
|
D | functionType.h | 24 class FunctionType : public ObjectType { 26 …explicit FunctionType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::FUNCTION, d… in FunctionType()
|
D | constructorType.h | 23 class ConstructorType : public ObjectType { 25 …explicit ConstructorType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::FUNCTION… in ConstructorType()
|
D | unionType.h | 104 ObjectType *MergedObjectType() in MergedObjectType() 109 void SetMergedObjectType(ObjectType *type) in SetMergedObjectType() 132 ObjectType *mergedObjectType_ {nullptr};
|
D | arrayType.cpp | 48 ObjectType *sourceObj = source->AsObjectType(); in AssignmentTarget()
|
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
D | object.cpp | 49 ObjectType *objType = type->AsObjectType(); in CheckIndexConstraints() 88 ObjectType *objType = type->AsObjectType(); in ResolveStructuredTypeMembers() 124 ObjectType *objType = it->AsObjectType(); in ResolveUnionTypeMembers() 159 ObjectType *mergedType = allocator_->New<ObjectLiteralType>(desc); in ResolveUnionTypeMembers() 176 void Checker::ResolveObjectTypeMembers(ObjectType *type) in ResolveObjectTypeMembers() 197 void Checker::ResolvePropertiesOfObjectType(ObjectType *type, const ir::Expression *member, in ResolvePropertiesOfObjectType() 233 void Checker::ResolveSignaturesOfObjectType(ObjectType *type, in ResolveSignaturesOfObjectType() 248 void Checker::ResolveIndexInfosOfObjectType(ObjectType *type, in ResolveIndexInfosOfObjectType() 319 ObjectType *objType = it->AsObjectType(); in GetPropertyOfUnionType() 445 ArenaVector<ObjectType *> Checker::GetBaseTypes(InterfaceType *type) in GetBaseTypes() [all …]
|
D | destructuringContext.h | 56 void ValidateObjectLiteralType(ObjectType *objType, const ir::ObjectExpression *objPattern); 118 Type *CreateObjectTypeForRest(ObjectType *objType);
|
D | util.cpp | 163 bool Checker::MaybeTypeOfKind(const Type *type, ObjectType::ObjectTypeKind kind) in MaybeTypeOfKind()
|
D | destructuringContext.cpp | 98 void DestructuringContext::ValidateObjectLiteralType(ObjectType *objType, const ir::ObjectExpressio… in ValidateObjectLiteralType() 536 Type *ObjectDestructuringContext::CreateObjectTypeForRest(ObjectType *objType) in CreateObjectTypeForRest() 620 checker::ObjectType *objType = inferedType_->AsObjectType(); in NextInferedType()
|
/arkcompiler/ets_frontend/es2panda/typescript/ |
D | checker.h | 340 static bool MaybeTypeOfKind(const Type *type, ObjectType::ObjectTypeKind kind); 389 void ResolvePropertiesOfObjectType(ObjectType *type, const ir::Expression *member, 392 void ResolveSignaturesOfObjectType(ObjectType *type, 394 …void ResolveIndexInfosOfObjectType(ObjectType *type, ArenaVector<const ir::TSIndexSignature *> &in… 396 bool ValidateInterfaceMemberRedeclaration(ObjectType *type, binder::Variable *prop, 405 void ResolveObjectTypeMembers(ObjectType *type); 410 ArenaVector<ObjectType *> GetBaseTypes(InterfaceType *type);
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
D | tsIndexedAccessType.h | 39 const Expression *ObjectType() const in ObjectType() function
|
D | tsQualifiedName.cpp | 47 checker::ObjectType *objType = baseType->AsObjectType(); in Check()
|
D | tsIndexSignature.cpp | 61 checker::ObjectType *placeholder = checker->Allocator()->New<checker::ObjectLiteralType>(desc); in Check()
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
D | newExpression.cpp | 76 checker::ObjectType *calleeObj = calleeType->AsObjectType(); in Check()
|
D | memberExpression.cpp | 133 checker::ObjectType *objType = baseType->AsObjectType(); in Check()
|
D | callExpression.cpp | 178 checker::ObjectType *calleeObj = calleeType->AsObjectType(); in Check()
|
/arkcompiler/toolchain/tooling/test/ |
D | debugger_types_test.cpp | 33 using ObjectType = RemoteObject::TypeName; typedef 108 EXPECT_EQ(ObjectType::Object, remoteObject->GetType()); in HWTEST_F_L0() 127 EXPECT_EQ(ObjectType::Object, remoteObject->GetType()); in HWTEST_F_L0() 148 EXPECT_EQ(ObjectType::Object, remoteObject->GetType()); in HWTEST_F_L0() 157 EXPECT_EQ(ObjectType::Object, remoteObject->GetType()); in HWTEST_F_L0() 164 EXPECT_EQ(ObjectType::Object, remoteObject->GetType()); in HWTEST_F_L0() 171 EXPECT_EQ(ObjectType::Object, remoteObject->GetType()); in HWTEST_F_L0() 190 EXPECT_EQ(ObjectType::Object, remoteObject->GetType()); in HWTEST_F_L0() 211 EXPECT_EQ(ObjectType::Object, remoteObject->GetType()); in HWTEST_F_L0() 232 EXPECT_EQ(ObjectType::Object, remoteObject->GetType()); in HWTEST_F_L0() [all …]
|
/arkcompiler/toolchain/tooling/base/ |
D | pt_types.cpp | 19 using ObjectType = RemoteObject::TypeName; typedef 23 const std::string ObjectType::Object = "object"; // NOLINT (readability-identifier-naming) 24 const std::string ObjectType::Function = "function"; // NOLINT (readability-identifier-naming) 25 const std::string ObjectType::Undefined = "undefined"; // NOLINT (readability-identifier-naming) 26 const std::string ObjectType::String = "string"; // NOLINT (readability-identifier-naming) 27 const std::string ObjectType::Number = "number"; // NOLINT (readability-identifier-naming) 28 const std::string ObjectType::Boolean = "boolean"; // NOLINT (readability-identifier-naming) 29 const std::string ObjectType::Symbol = "symbol"; // NOLINT (readability-identifier-naming) 30 const std::string ObjectType::Bigint = "bigint"; // NOLINT (readability-identifier-naming) 31 const std::string ObjectType::Wasm = "wasm"; // NOLINT (readability-identifier-naming) [all …]
|
/arkcompiler/ets_frontend/ts2panda/src/ |
D | typeChecker.ts | 26 ObjectType, 250 let objectType = new ObjectType(<ts.TypeLiteralNode>typeNode);
|
/arkcompiler/ets_frontend/es2panda/typescript/extractor/ |
D | typeSystem.h | 1193 class ObjectType : public BaseType { 1195 explicit ObjectType(TypeExtractor *extractor, const ir::TSTypeLiteral *literalDef) in ObjectType() function 1220 ~ObjectType() = default; 1221 NO_COPY_SEMANTIC(ObjectType); 1222 NO_MOVE_SEMANTIC(ObjectType);
|