Home
last modified time | relevance | path

Searched refs:IndexInfo (Results 1 – 15 of 15) sorted by relevance

/arkcompiler/ets_frontend/es2panda/typescript/types/
DindexInfo.cpp22 IndexInfo *IndexInfo::Copy(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolder *gl… in Copy()
24 …return allocator->New<IndexInfo>(type_->Instantiate(allocator, relation, globalTypes), paramName_,… in Copy()
27 void IndexInfo::ToString(std::stringstream &ss, bool numIndex) const in ToString()
44 void IndexInfo::Identical(TypeRelation *relation, IndexInfo *other) in Identical()
49 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);
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);
DinterfaceType.cpp106 IndexInfo *targetNumberInfo = NumberIndexInfo(); in Identical()
107 IndexInfo *sourceNumberInfo = otherInterface->NumberIndexInfo(); in Identical()
117 IndexInfo *targetStringInfo = StringIndexInfo(); in Identical()
118 IndexInfo *sourceStringInfo = otherInterface->StringIndexInfo(); in Identical()
185 const IndexInfo *InterfaceType::FindIndexInfo(bool findNumberInfo) const in FindIndexInfo()
187 const IndexInfo *foundInfo = nullptr; in FindIndexInfo()
202 IndexInfo *InterfaceType::FindIndexInfo(bool findNumberInfo) in FindIndexInfo()
204 IndexInfo *foundInfo = nullptr; in FindIndexInfo()
DobjectDescriptor.h30 class IndexInfo; variable
55 IndexInfo *stringIndexInfo {};
56 IndexInfo *numberIndexInfo {};
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()
DtypeRelation.h30 class IndexInfo; variable
92 bool IsIdenticalTo(IndexInfo *source, IndexInfo *target);
DobjectType.cpp117 IndexInfo *numberInfo = NumberIndexInfo(); in AssignProperties()
118 IndexInfo *stringInfo = StringIndexInfo(); in AssignProperties()
181 IndexInfo *targetInfo = assignNumberInfo ? NumberIndexInfo() : StringIndexInfo(); in AssignIndexInfo()
182IndexInfo *sourceInfo = assignNumberInfo ? source->NumberIndexInfo() : source->StringIndexInfo(); in AssignIndexInfo()
DtypeRelation.cpp107 bool TypeRelation::IsIdenticalTo(IndexInfo *source, IndexInfo *target) in IsIdenticalTo()
/arkcompiler/ets_frontend/es2panda/typescript/core/
Dobject.cpp52 IndexInfo *numberInfo = objType->NumberIndexInfo(); in CheckIndexConstraints()
53 IndexInfo *stringInfo = objType->StringIndexInfo(); in CheckIndexConstraints()
152 …desc->stringIndexInfo = allocator_->New<IndexInfo>(CreateUnionType(std::move(stringInfoTypes)), "x… in ResolveUnionTypeMembers()
156 …desc->numberIndexInfo = allocator_->New<IndexInfo>(CreateUnionType(std::move(numberInfoTypes)), "x… in ResolveUnionTypeMembers()
255 IndexInfo *numberInfo = placeholderObj->AsObjectType()->NumberIndexInfo(); in ResolveIndexInfosOfObjectType()
265 IndexInfo *stringInfo = placeholderObj->AsObjectType()->StringIndexInfo(); in ResolveIndexInfosOfObjectType()
372 IndexInfo *Checker::GetApplicableIndexInfo(Type *type, Type *indexType) in GetApplicableIndexInfo()
427 IndexInfo *indexInfo = GetApplicableIndexInfo(type, indexType); in GetPropertyTypeForIndexType()
DtypeCreation.cpp157 desc->stringIndexInfo = allocator_->New<IndexInfo>(GlobalAnyType(), "x", readonly); in CreateTupleType()
165 desc->stringIndexInfo = allocator_->New<IndexInfo>(GlobalAnyType(), "x", readonly); in CreateTupleType()
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsIndexSignature.cpp57 checker::IndexInfo *info = in Check()
58 … checker->Allocator()->New<checker::IndexInfo>(indexType, paramName, readonly_, this->Start()); in Check()
DtsTupleType.cpp108 …desc->numberIndexInfo = checker->Allocator()->New<checker::IndexInfo>(numberIndexType, "x", false); in GetType()
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DobjectExpression.cpp456 … checker->Allocator()->New<checker::IndexInfo>(checker->GlobalAnyType(), indexInfoName, false); in CheckPattern()
729 desc->numberIndexInfo = checker->Allocator()->New<checker::IndexInfo>( in Check()
734 desc->stringIndexInfo = checker->Allocator()->New<checker::IndexInfo>( in Check()
/arkcompiler/ets_frontend/es2panda/typescript/
Dchecker.h409 IndexInfo *GetApplicableIndexInfo(Type *type, Type *indexType);