| /arkcompiler/ets_frontend/es2panda/typescript/types/ |
| D | indexInfo.cpp | 16 #include "indexInfo.h" 20 IndexInfo *IndexInfo::Copy(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolder *gl… in Copy() 22 …return allocator->New<IndexInfo>(type_->Instantiate(allocator, relation, globalTypes), paramName_,… in Copy() 25 void IndexInfo::ToString(std::stringstream &ss, bool numIndex) const in ToString() 42 void IndexInfo::Identical(TypeRelation *relation, IndexInfo *other) in Identical() 47 void IndexInfo::AssignmentTarget(TypeRelation *relation, IndexInfo *source) in AssignmentTarget()
|
| D | indexInfo.h | 23 class IndexInfo { 25 IndexInfo(Type *type, util::StringView paramName, bool readonly) in IndexInfo() function 30 … IndexInfo(Type *type, util::StringView paramName, bool readonly, const lexer::SourcePosition &pos) in IndexInfo() function 35 ~IndexInfo() = default; 36 NO_COPY_SEMANTIC(IndexInfo); 37 NO_MOVE_SEMANTIC(IndexInfo); 70 void Identical(TypeRelation *relation, IndexInfo *other); 71 void AssignmentTarget(TypeRelation *relation, IndexInfo *source); 72 …IndexInfo *Copy(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolder *globalTypes);
|
| D | objectType.h | 34 class IndexInfo; variable 107 virtual const IndexInfo *StringIndexInfo() const in DEFINE_BITOPS() 112 virtual const IndexInfo *NumberIndexInfo() const in DEFINE_BITOPS() 117 virtual IndexInfo *StringIndexInfo() in DEFINE_BITOPS() 122 virtual IndexInfo *NumberIndexInfo() in DEFINE_BITOPS() 205 …bool IsIndexInfosIdentical(TypeRelation *relation, IndexInfo *descIndexInfo, IndexInfo *otherIndex… in DEFINE_BITOPS()
|
| D | interfaceType.h | 104 const IndexInfo *StringIndexInfo() const override in StringIndexInfo() 109 const IndexInfo *NumberIndexInfo() const override in NumberIndexInfo() 114 IndexInfo *StringIndexInfo() override in StringIndexInfo() 119 IndexInfo *NumberIndexInfo() override in NumberIndexInfo() 138 const IndexInfo *FindIndexInfo(bool findNumberInfo) const; 139 IndexInfo *FindIndexInfo(bool findNumberInfo);
|
| D | objectDescriptor.h | 30 class IndexInfo; variable 55 IndexInfo *stringIndexInfo {}; 56 IndexInfo *numberIndexInfo {};
|
| D | interfaceType.cpp | 73 IndexInfo *targetNumberInfo = NumberIndexInfo(); in IsIndexInfoIdentical() 74 IndexInfo *sourceNumberInfo = other->NumberIndexInfo(); in IsIndexInfoIdentical() 83 IndexInfo *targetStringInfo = StringIndexInfo(); in IsIndexInfoIdentical() 84 IndexInfo *sourceStringInfo = other->StringIndexInfo(); in IsIndexInfoIdentical() 193 const IndexInfo *InterfaceType::FindIndexInfo(bool findNumberInfo) const in FindIndexInfo() 195 const IndexInfo *foundInfo = nullptr; in FindIndexInfo() 210 IndexInfo *InterfaceType::FindIndexInfo(bool findNumberInfo) in FindIndexInfo() 212 IndexInfo *foundInfo = nullptr; in FindIndexInfo()
|
| D | typeRelation.h | 30 class IndexInfo; variable 92 bool IsIdenticalTo(IndexInfo *source, IndexInfo *target);
|
| D | objectType.cpp | 72 bool ObjectType::IsIndexInfosIdentical(TypeRelation *relation, IndexInfo *descIndexInfo, IndexInfo … in IsIndexInfosIdentical() 125 IndexInfo *numberInfo = NumberIndexInfo(); in AssignProperties() 126 IndexInfo *stringInfo = StringIndexInfo(); in AssignProperties() 189 IndexInfo *targetInfo = assignNumberInfo ? NumberIndexInfo() : StringIndexInfo(); in AssignIndexInfo() 190 … IndexInfo *sourceInfo = assignNumberInfo ? source->NumberIndexInfo() : source->StringIndexInfo(); in AssignIndexInfo()
|
| D | types.h | 45 #include "indexInfo.h"
|
| D | typeRelation.cpp | 109 bool TypeRelation::IsIdenticalTo(IndexInfo *source, IndexInfo *target) in IsIdenticalTo()
|
| /arkcompiler/ets_frontend/ets2panda/checker/types/ts/ |
| D | indexInfo.cpp | 16 #include "indexInfo.h" 21 IndexInfo *IndexInfo::Copy(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolder *gl… in Copy() 23 …return allocator->New<IndexInfo>(type_->Instantiate(allocator, relation, globalTypes), paramName_,… in Copy() 26 void IndexInfo::ToString(std::stringstream &ss, bool numIndex) const in ToString() 43 void IndexInfo::Identical(TypeRelation *relation, IndexInfo *other) in Identical() 48 void IndexInfo::AssignmentTarget(TypeRelation *relation, IndexInfo *source) in AssignmentTarget()
|
| D | indexInfo.h | 22 class IndexInfo { 24 IndexInfo(Type *type, util::StringView paramName, bool readonly) in IndexInfo() function 29 … IndexInfo(Type *type, util::StringView paramName, bool readonly, const lexer::SourcePosition &pos) in IndexInfo() function 34 ~IndexInfo() = default; 35 NO_COPY_SEMANTIC(IndexInfo); 36 NO_MOVE_SEMANTIC(IndexInfo); 69 void Identical(TypeRelation *relation, IndexInfo *other); 70 void AssignmentTarget(TypeRelation *relation, IndexInfo *source); 71 …IndexInfo *Copy(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolder *globalTypes);
|
| D | interfaceType.h | 104 const IndexInfo *StringIndexInfo() const override in StringIndexInfo() 109 const IndexInfo *NumberIndexInfo() const override in NumberIndexInfo() 114 IndexInfo *StringIndexInfo() override in StringIndexInfo() 119 IndexInfo *NumberIndexInfo() override in NumberIndexInfo() 141 const IndexInfo *FindIndexInfo(bool findNumberInfo) const; 142 IndexInfo *FindIndexInfo(bool findNumberInfo);
|
| D | objectDescriptor.h | 29 class IndexInfo; variable 55 IndexInfo *stringIndexInfo {}; 56 IndexInfo *numberIndexInfo {};
|
| D | interfaceType.cpp | 113 IndexInfo *targetNumberInfo = NumberIndexInfo(); in Identical() 114 IndexInfo *sourceNumberInfo = otherInterface->NumberIndexInfo(); in Identical() 130 IndexInfo *targetStringInfo = StringIndexInfo(); in CheckStringInfo() 131 IndexInfo *sourceStringInfo = otherInterface->StringIndexInfo(); in CheckStringInfo() 199 const IndexInfo *InterfaceType::FindIndexInfo(bool findNumberInfo) const in FindIndexInfo() 201 const IndexInfo *foundInfo = nullptr; in FindIndexInfo() 216 IndexInfo *InterfaceType::FindIndexInfo(bool findNumberInfo) in FindIndexInfo() 218 IndexInfo *foundInfo = nullptr; in FindIndexInfo()
|
| D | objectType.h | 28 class IndexInfo; variable 118 virtual const IndexInfo *StringIndexInfo() const 123 virtual const IndexInfo *NumberIndexInfo() const 128 virtual IndexInfo *StringIndexInfo() 133 virtual IndexInfo *NumberIndexInfo()
|
| D | objectType.cpp | 18 #include "checker/types/ts/indexInfo.h" 132 IndexInfo *numberInfo = NumberIndexInfo(); in AssignProperties() 133 IndexInfo *stringInfo = StringIndexInfo(); in AssignProperties() 197 IndexInfo *targetInfo = assignNumberInfo ? NumberIndexInfo() : StringIndexInfo(); in AssignIndexInfo() 198 … IndexInfo *sourceInfo = assignNumberInfo ? source->NumberIndexInfo() : source->StringIndexInfo(); in AssignIndexInfo()
|
| D | types.h | 44 #include "indexInfo.h"
|
| /arkcompiler/ets_frontend/ets2panda/checker/ts/ |
| D | object.cpp | 38 #include "checker/types/ts/indexInfo.h" 50 IndexInfo *numberInfo = objType->NumberIndexInfo(); in CheckIndexConstraints() 51 IndexInfo *stringInfo = objType->StringIndexInfo(); in CheckIndexConstraints() 150 …desc->stringIndexInfo = Allocator()->New<IndexInfo>(CreateUnionType(std::move(stringInfoTypes)), "… in ResolveUnionTypeMembers() 154 …desc->numberIndexInfo = Allocator()->New<IndexInfo>(CreateUnionType(std::move(numberInfoTypes)), "… in ResolveUnionTypeMembers() 251 IndexInfo *numberInfo = placeholderObj->AsObjectType()->NumberIndexInfo(); in ResolveIndexInfosOfObjectType() 261 IndexInfo *stringInfo = placeholderObj->AsObjectType()->StringIndexInfo(); in ResolveIndexInfosOfObjectType() 365 IndexInfo *TSChecker::GetApplicableIndexInfo(Type *type, Type *indexType) in GetApplicableIndexInfo() 420 IndexInfo *indexInfo = GetApplicableIndexInfo(type, indexType); in GetPropertyTypeForIndexType() local 422 if (indexInfo != nullptr) { in GetPropertyTypeForIndexType() [all …]
|
| D | typeCreation.cpp | 17 #include "checker/types/ts/indexInfo.h" 156 … desc->stringIndexInfo = Allocator()->New<IndexInfo>(GlobalAnyType(), "x", tupleTypeInfo.readonly); in CreateTupleType() 166 … desc->stringIndexInfo = Allocator()->New<IndexInfo>(GlobalAnyType(), "x", tupleTypeInfo.readonly); in CreateTupleType()
|
| /arkcompiler/ets_frontend/es2panda/typescript/core/ |
| D | object.cpp | 39 IndexInfo *numberInfo = objType->NumberIndexInfo(); in CheckIndexConstraints() 40 IndexInfo *stringInfo = objType->StringIndexInfo(); in CheckIndexConstraints() 140 …desc->stringIndexInfo = allocator_->New<IndexInfo>(CreateUnionType(std::move(stringInfoTypes)), "x… in ResolveUnionTypeMembers() 144 …desc->numberIndexInfo = allocator_->New<IndexInfo>(CreateUnionType(std::move(numberInfoTypes)), "x… in ResolveUnionTypeMembers() 244 IndexInfo *numberInfo = placeholderObj->AsObjectType()->NumberIndexInfo(); in ResolveIndexInfosOfObjectType() 254 IndexInfo *stringInfo = placeholderObj->AsObjectType()->StringIndexInfo(); in ResolveIndexInfosOfObjectType() 363 IndexInfo *Checker::GetApplicableIndexInfo(Type *type, Type *indexType) in GetApplicableIndexInfo() 420 IndexInfo *indexInfo = GetApplicableIndexInfo(type, indexType); in GetPropertyTypeForIndexType() local 422 if (indexInfo) { in GetPropertyTypeForIndexType() 423 Type *indexInfoType = indexInfo->GetType(); in GetPropertyTypeForIndexType() [all …]
|
| D | typeCreation.cpp | 163 desc->stringIndexInfo = allocator_->New<IndexInfo>(GlobalAnyType(), "x", readonly); in CreateTupleType() 172 desc->stringIndexInfo = allocator_->New<IndexInfo>(GlobalAnyType(), "x", readonly); in CreateTupleType()
|
| /arkcompiler/ets_frontend/es2panda/ir/ts/ |
| D | tsIndexSignature.cpp | 58 checker::IndexInfo *info = in Check() 59 … checker->Allocator()->New<checker::IndexInfo>(indexType, paramName, readonly_, this->Start()); in Check()
|
| /arkcompiler/ets_frontend/ets2panda/checker/types/ |
| D | typeRelation.cpp | 19 #include "checker/types/ts/indexInfo.h" 86 bool TypeRelation::IsIdenticalTo(IndexInfo *source, IndexInfo *target) in IsIdenticalTo()
|
| /arkcompiler/ets_frontend/ets2panda/ir/ts/ |
| D | tsTupleType.cpp | 23 #include "checker/types/ts/indexInfo.h" 135 …desc->numberIndexInfo = checker->Allocator()->New<checker::IndexInfo>(numberIndexType, "x", false); in GetType()
|