Home
last modified time | relevance | path

Searched refs:numberInfo (Results 1 - 4 of 4) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/checker/ts/
H A Dobject.cpp50 IndexInfo *numberInfo = objType->NumberIndexInfo(); in CheckIndexConstraints() local
54 if (numberInfo != nullptr) { in CheckIndexConstraints()
58 IsTypeAssignableTo(propType, numberInfo->GetType(), in CheckIndexConstraints()
60 "' is not assignable to numeric index type '", numberInfo->GetType(), "'."}, in CheckIndexConstraints()
75 if (numberInfo != nullptr && !IsTypeAssignableTo(numberInfo->GetType(), stringInfo->GetType())) { in CheckIndexConstraints()
76 ThrowTypeError({"Number index info type ", numberInfo->GetType(), in CheckIndexConstraints()
78 numberInfo->Pos()); in CheckIndexConstraints()
251 IndexInfo *numberInfo = placeholderObj->AsObjectType()->NumberIndexInfo(); in ResolveIndexInfosOfObjectType() local
257 type->Desc()->numberIndexInfo = numberInfo; in ResolveIndexInfosOfObjectType()
[all...]
/arkcompiler/ets_frontend/es2panda/typescript/core/
H A Dobject.cpp52 IndexInfo *numberInfo = objType->NumberIndexInfo(); in CheckIndexConstraints() local
56 if (numberInfo) { in CheckIndexConstraints()
60 IsTypeAssignableTo(propType, numberInfo->GetType(), in CheckIndexConstraints()
62 "' is not assignable to numeric index type '", numberInfo->GetType(), "'."}, in CheckIndexConstraints()
77 if (numberInfo && !IsTypeAssignableTo(numberInfo->GetType(), stringInfo->GetType())) { in CheckIndexConstraints()
78 ThrowTypeError({"Number index info type ", numberInfo->GetType(), in CheckIndexConstraints()
80 numberInfo->Pos()); in CheckIndexConstraints()
257 IndexInfo *numberInfo = placeholderObj->AsObjectType()->NumberIndexInfo(); in ResolveIndexInfosOfObjectType() local
263 type->Desc()->numberIndexInfo = numberInfo; in ResolveIndexInfosOfObjectType()
[all...]
/arkcompiler/ets_frontend/ets2panda/checker/types/ts/
H A DobjectType.cpp124 IndexInfo *numberInfo = NumberIndexInfo(); in AssignProperties() local
147 if (numberInfo != nullptr && it->HasFlag(varbinder::VariableFlags::NUMERIC_NAME) && in AssignProperties()
148 !relation->IsAssignableTo(numberInfo->GetType(), targetType)) { in AssignProperties()
/arkcompiler/ets_frontend/es2panda/typescript/types/
H A DobjectType.cpp128 IndexInfo *numberInfo = NumberIndexInfo(); in AssignProperties() local
150 if (numberInfo && it->HasFlag(binder::VariableFlags::NUMERIC_NAME) && in AssignProperties()
151 !relation->IsAssignableTo(numberInfo->GetType(), targetType)) { in AssignProperties()

Completed in 3 milliseconds