| /arkcompiler/ets_frontend/ets2panda/checker/ets/ |
| D | object.cpp | 295 checker::ETSObjectType *interfaceType {}; in BuildInterfaceProperties() local 297 interfaceType = CreateETSObjectType(var->Name(), interfaceDecl, in BuildInterfaceProperties() 299 interfaceType->SetVariable(var); in BuildInterfaceProperties() 300 var->SetTsType(interfaceType); in BuildInterfaceProperties() 302 interfaceType = var->TsType()->AsETSObjectType(); in BuildInterfaceProperties() 306 interfaceType->AddTypeFlag(TypeFlag::GENERIC); in BuildInterfaceProperties() 307 CreateTypeForClassOrInterfaceTypeParameters(interfaceType); in BuildInterfaceProperties() 310 GetInterfacesOfInterface(interfaceType); in BuildInterfaceProperties() 313 …dContext = checker::SavedCheckerContext(this, checker::CheckerStatus::IN_INTERFACE, interfaceType); in BuildInterfaceProperties() 315 ResolveDeclaredMembersOfObject(interfaceType); in BuildInterfaceProperties() [all …]
|
| D | helpers.cpp | 1220 …auto *interfaceType = BuildInterfaceProperties(var->Declaration()->Node()->AsTSInterfaceDeclaratio… in GetTypeFromInterfaceReference() local 1221 var->SetTsType(interfaceType); in GetTypeFromInterfaceReference() 1222 return interfaceType; in GetTypeFromInterfaceReference()
|
| /arkcompiler/ets_runtime/ecmascript/ts_types/ |
| D | ts_type_parser.cpp | 208 JSHandle<TSInterfaceType> interfaceType(type); in ParseIndexSigType() local 209 interfaceType->SetIndexSigns(thread_, indexSignInfo); in ParseIndexSigType() 231 …JSHandle<TSInterfaceType> interfaceType = ParseInterfaceType(jsPandaFile, recordName, typeLiteralE… in ParseNonImportType() local 232 return JSHandle<JSTaggedValue>(interfaceType); in ParseNonImportType() 325 JSHandle<TSInterfaceType> interfaceType = factory_->NewTSInterfaceType(); in ParseInterfaceType() local 339 interfaceType->SetExtends(thread_, extendsId); in ParseInterfaceType() 347 interfaceType->SetFields(thread_, fieldsType); in ParseInterfaceType() 348 return interfaceType; in ParseInterfaceType() 676 JSHandle<TSInterfaceType> interfaceType = in InstantiateGenericsType() local 678 return JSHandle<JSTaggedValue>(interfaceType); in InstantiateGenericsType() [all …]
|
| D | ts_type.cpp | 311 …TSTypeRef TSInterfaceType::GetPropTypeGT(JSThread *thread, JSHandle<TSInterfaceType> interfaceType, in GetPropTypeGT() argument 317 JSMutableHandle<TSInterfaceType> mutableInterfaceType(thread, interfaceType.GetTaggedValue()); in GetPropTypeGT() 352 …TSInterfaceType::GetIndexSignType(JSThread *thread, const JSHandle<TSInterfaceType> &interfaceType, in GetIndexSignType() argument 355 if (interfaceType->GetIndexSigns().IsUndefined()) { in GetIndexSignType() 359 JSHandle<TSObjLayoutInfo> indexSignInfo(thread, interfaceType->GetIndexSigns()); in GetIndexSignType()
|
| D | ts_type.h | 163 … GlobalTSTypeRef GetIndexSignType(JSThread *thread, const JSHandle<TSInterfaceType> &interfaceType,
|
| D | ts_manager.cpp | 171 JSHandle<TSInterfaceType> interfaceType(type); in GetPropType() local 172 return TSInterfaceType::GetPropTypeGT(thread, interfaceType, propertyName); in GetPropType() 195 JSHandle<TSInterfaceType> interfaceType(type); in GetIndexSignType() local 196 return TSInterfaceType::GetIndexSignType(thread, interfaceType, typeId); in GetIndexSignType()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
| D | parser.cpp | 791 MIRInterfaceType interfaceType(kTypeInterfaceIncomplete); in ParseFields() local 792 interfaceType.SetNameStrIdx(strIdx); in ParseFields() 793 tyIdx = GlobalTables::GetTypeTable().GetOrCreateMIRType(&interfaceType); in ParseFields() 931 MIRInterfaceType interfaceType(tkind, strIdx); in ParseInterfaceType() local 932 interfaceType.SetParentsTyIdx(parents); in ParseInterfaceType() 933 if (!ParseFields(interfaceType)) { in ParseInterfaceType() 941 …if (static_cast<MIRInterfaceType *>(prevType)->IsIncomplete() && !(interfaceType.IsIncomplete())) { in ParseInterfaceType() 942 interfaceType.SetNameStrIdx(prevType->GetNameStrIdx()); in ParseInterfaceType() 943 interfaceType.SetTypeIndex(sTyIdx); in ParseInterfaceType() 944 GlobalTables::GetTypeTable().SetTypeWithTyIdx(sTyIdx, *interfaceType.CopyMIRTypeNode()); in ParseInterfaceType() [all …]
|
| D | bin_mpl_import.cpp | 545 auto *interfaceType = static_cast<MIRInterfaceType *>(type); in CompleteAggInfo() local 546 ImportStructTypeData(*interfaceType); in CompleteAggInfo() 547 ImportInterfaceTypeData(*interfaceType); in CompleteAggInfo()
|
| D | mir_nodes.cpp | 129 auto *interfaceType = static_cast<MIRInterfaceType *>(ty); in CheckNode() local 130 MIRType *subType = interfaceType->GetFieldType(fieldID); in CheckNode()
|
| /arkcompiler/ets_frontend/ets2panda/checker/ |
| D | ETSAnalyzer.cpp | 415 auto *interfaceType = in Check() local 418 interfaceType->SetSuperType(checker->GlobalETSObjectType()); in Check() 454 signature->SetOwner(interfaceType); in Check() 459 …interfaceType->AddProperty<checker::PropertyType::INSTANCE_METHOD>(invokeFunc->Id()->Variable()->A… in Check() 460 node->FunctionalInterface()->SetTsType(interfaceType); in Check() 463 thisVar->SetTsType(interfaceType); in Check() 466 node->SetTsType(interfaceType); in Check() 467 return interfaceType; in Check() 2621 checker::ETSObjectType *interfaceType {}; in Check() local 2624 interfaceType = checker->BuildInterfaceProperties(st); in Check() [all …]
|
| D | ETSchecker.h | 169 void ComputeAbstractsFromInterface(ETSObjectType *interfaceType);
|
| /arkcompiler/ets_frontend/ts2panda/src/ |
| D | typeChecker.ts | 438 let interfaceType = new InterfaceType(interfaceDeclNode); 442 … TypeRecorder.getInstance().setDeclaredType(name, interfaceType.shiftedTypeIndex);
|
| /arkcompiler/ets_frontend/es2panda/typescript/extractor/ |
| D | typeExtractor.cpp | 420 InterfaceType interfaceType(this, node->AsTSInterfaceDeclaration(), name); in GetTypeIndexFromInterfaceNode() local 421 typeIndex = interfaceType.GetTypeIndexShift(); in GetTypeIndexFromInterfaceNode() 754 InterfaceType interfaceType(this, interfaceDef, name); in HandleInterfaceDeclaration() local 755 typeIndex = interfaceType.GetTypeIndexShift(); in HandleInterfaceDeclaration()
|
| /arkcompiler/ets_frontend/es2panda/ |
| D | CMakeLists.txt | 269 typescript/types/interfaceType.cpp
|
| D | BUILD.gn | 233 "typescript/types/interfaceType.cpp",
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | dump_test.cpp | 1064 JSHandle<TSInterfaceType> interfaceType = factory->NewTSInterfaceType(); in HWTEST_F_L0() local 1065 DUMP_FOR_HANDLE(interfaceType); in HWTEST_F_L0()
|
| /arkcompiler/ets_frontend/ets2panda/ |
| D | BUILD.gn | 98 "checker/types/ts/interfaceType.cpp",
|
| D | CMakeLists.txt | 417 checker/types/ts/interfaceType.cpp
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | object_factory.cpp | 3780 JSHandle<TSInterfaceType> interfaceType(thread_, header); in NewTSInterfaceType() local 3783 interfaceType->SetGT(GlobalTSTypeRef::Default()); in NewTSInterfaceType() 3784 interfaceType->SetExtends(thread_, extends); in NewTSInterfaceType() 3785 interfaceType->SetFields(thread_, JSTaggedValue::Undefined()); in NewTSInterfaceType() 3786 interfaceType->SetIndexSigns(thread_, JSTaggedValue::Undefined()); in NewTSInterfaceType() 3788 return interfaceType; in NewTSInterfaceType()
|