Home
last modified time | relevance | path

Searched refs:ObjectType (Results 1 – 25 of 35) sorted by relevance

12

/arkcompiler/ets_frontend/es2panda/typescript/types/
DobjectLiteralType.h23 class ObjectLiteralType : public ObjectType {
25 …explicit ObjectLiteralType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::LITERA… in ObjectLiteralType()
26 ObjectLiteralType() : ObjectType(ObjectType::ObjectTypeKind::LITERAL) {} in ObjectLiteralType()
DobjectType.cpp25 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()
DobjectType.h50 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()
DtypeMapping.h35 _(TypeFlag::OBJECT, ObjectType) \
47 _(ObjectType::ObjectTypeKind::FUNCTION, FunctionType) \
48 _(ObjectType::ObjectTypeKind::TUPLE, TupleType) \
49 _(ObjectType::ObjectTypeKind::LITERAL, ObjectLiteralType) \
50 _(ObjectType::ObjectTypeKind::INTERFACE, InterfaceType)
DinterfaceType.h23 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_;
DtupleType.h29 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()
DfunctionType.h24 class FunctionType : public ObjectType {
26 …explicit FunctionType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::FUNCTION, d… in FunctionType()
DconstructorType.h23 class ConstructorType : public ObjectType {
25 …explicit ConstructorType(ObjectDescriptor *desc) : ObjectType(ObjectType::ObjectTypeKind::FUNCTION… in ConstructorType()
DunionType.h104 ObjectType *MergedObjectType() in MergedObjectType()
109 void SetMergedObjectType(ObjectType *type) in SetMergedObjectType()
132 ObjectType *mergedObjectType_ {nullptr};
DarrayType.cpp48 ObjectType *sourceObj = source->AsObjectType(); in AssignmentTarget()
/arkcompiler/ets_frontend/es2panda/typescript/core/
Dobject.cpp49 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 …]
DdestructuringContext.h56 void ValidateObjectLiteralType(ObjectType *objType, const ir::ObjectExpression *objPattern);
118 Type *CreateObjectTypeForRest(ObjectType *objType);
Dutil.cpp163 bool Checker::MaybeTypeOfKind(const Type *type, ObjectType::ObjectTypeKind kind) in MaybeTypeOfKind()
DdestructuringContext.cpp98 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/
Dchecker.h340 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/
DtsIndexedAccessType.h39 const Expression *ObjectType() const in ObjectType() function
DtsQualifiedName.cpp47 checker::ObjectType *objType = baseType->AsObjectType(); in Check()
DtsIndexSignature.cpp61 checker::ObjectType *placeholder = checker->Allocator()->New<checker::ObjectLiteralType>(desc); in Check()
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DnewExpression.cpp76 checker::ObjectType *calleeObj = calleeType->AsObjectType(); in Check()
DmemberExpression.cpp133 checker::ObjectType *objType = baseType->AsObjectType(); in Check()
DcallExpression.cpp178 checker::ObjectType *calleeObj = calleeType->AsObjectType(); in Check()
/arkcompiler/toolchain/tooling/test/
Ddebugger_types_test.cpp33 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/
Dpt_types.cpp19 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/
DtypeChecker.ts26 ObjectType,
250 let objectType = new ObjectType(<ts.TypeLiteralNode>typeNode);
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeSystem.h1193 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);

12