Home
last modified time | relevance | path

Searched full:indexinfo (Results 1 – 25 of 43) sorted by relevance

12

/arkcompiler/ets_frontend/es2panda/typescript/types/
DindexInfo.cpp16 #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()
DindexInfo.h23 class IndexInfo {
25 IndexInfo(Type *type, util::StringView paramName, bool readonly) in IndexInfo() function
30IndexInfo(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);
72IndexInfo *Copy(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolder *globalTypes);
DobjectType.h34 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()
DinterfaceType.h104 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);
DobjectDescriptor.h30 class IndexInfo; variable
55 IndexInfo *stringIndexInfo {};
56 IndexInfo *numberIndexInfo {};
DinterfaceType.cpp73 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()
DtypeRelation.h30 class IndexInfo; variable
92 bool IsIdenticalTo(IndexInfo *source, IndexInfo *target);
DobjectType.cpp72 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()
190IndexInfo *sourceInfo = assignNumberInfo ? source->NumberIndexInfo() : source->StringIndexInfo(); in AssignIndexInfo()
Dtypes.h45 #include "indexInfo.h"
DtypeRelation.cpp109 bool TypeRelation::IsIdenticalTo(IndexInfo *source, IndexInfo *target) in IsIdenticalTo()
/arkcompiler/ets_frontend/ets2panda/checker/types/ts/
DindexInfo.cpp16 #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()
DindexInfo.h22 class IndexInfo {
24 IndexInfo(Type *type, util::StringView paramName, bool readonly) in IndexInfo() function
29IndexInfo(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);
71IndexInfo *Copy(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolder *globalTypes);
DinterfaceType.h104 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);
DobjectDescriptor.h29 class IndexInfo; variable
55 IndexInfo *stringIndexInfo {};
56 IndexInfo *numberIndexInfo {};
DinterfaceType.cpp113 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()
DobjectType.h28 class IndexInfo; variable
118 virtual const IndexInfo *StringIndexInfo() const
123 virtual const IndexInfo *NumberIndexInfo() const
128 virtual IndexInfo *StringIndexInfo()
133 virtual IndexInfo *NumberIndexInfo()
DobjectType.cpp18 #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()
198IndexInfo *sourceInfo = assignNumberInfo ? source->NumberIndexInfo() : source->StringIndexInfo(); in AssignIndexInfo()
Dtypes.h44 #include "indexInfo.h"
/arkcompiler/ets_frontend/ets2panda/checker/ts/
Dobject.cpp38 #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 …]
DtypeCreation.cpp17 #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/
Dobject.cpp39 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 …]
DtypeCreation.cpp163 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/
DtsIndexSignature.cpp58 checker::IndexInfo *info = in Check()
59 … checker->Allocator()->New<checker::IndexInfo>(indexType, paramName, readonly_, this->Start()); in Check()
/arkcompiler/ets_frontend/ets2panda/checker/types/
DtypeRelation.cpp19 #include "checker/types/ts/indexInfo.h"
86 bool TypeRelation::IsIdenticalTo(IndexInfo *source, IndexInfo *target) in IsIdenticalTo()
/arkcompiler/ets_frontend/ets2panda/ir/ts/
DtsTupleType.cpp23 #include "checker/types/ts/indexInfo.h"
135 …desc->numberIndexInfo = checker->Allocator()->New<checker::IndexInfo>(numberIndexType, "x", false); in GetType()

12