Home
last modified time | relevance | path

Searched refs:interfaceType (Results 1 – 19 of 19) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/checker/ets/
Dobject.cpp295 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 …]
Dhelpers.cpp1220 …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/
Dts_type_parser.cpp208 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 …]
Dts_type.cpp311 …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()
Dts_type.h163 … GlobalTSTypeRef GetIndexSignType(JSThread *thread, const JSHandle<TSInterfaceType> &interfaceType,
Dts_manager.cpp171 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/
Dparser.cpp791 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 …]
Dbin_mpl_import.cpp545 auto *interfaceType = static_cast<MIRInterfaceType *>(type); in CompleteAggInfo() local
546 ImportStructTypeData(*interfaceType); in CompleteAggInfo()
547 ImportInterfaceTypeData(*interfaceType); in CompleteAggInfo()
Dmir_nodes.cpp129 auto *interfaceType = static_cast<MIRInterfaceType *>(ty); in CheckNode() local
130 MIRType *subType = interfaceType->GetFieldType(fieldID); in CheckNode()
/arkcompiler/ets_frontend/ets2panda/checker/
DETSAnalyzer.cpp415 auto *interfaceType = in Check() local
418 interfaceType->SetSuperType(checker->GlobalETSObjectType()); in Check()
454 signature->SetOwner(interfaceType); in Check()
459interfaceType->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 …]
DETSchecker.h169 void ComputeAbstractsFromInterface(ETSObjectType *interfaceType);
/arkcompiler/ets_frontend/ts2panda/src/
DtypeChecker.ts438 let interfaceType = new InterfaceType(interfaceDeclNode);
442 … TypeRecorder.getInstance().setDeclaredType(name, interfaceType.shiftedTypeIndex);
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeExtractor.cpp420 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/
DCMakeLists.txt269 typescript/types/interfaceType.cpp
DBUILD.gn233 "typescript/types/interfaceType.cpp",
/arkcompiler/ets_runtime/ecmascript/tests/
Ddump_test.cpp1064 JSHandle<TSInterfaceType> interfaceType = factory->NewTSInterfaceType(); in HWTEST_F_L0() local
1065 DUMP_FOR_HANDLE(interfaceType); in HWTEST_F_L0()
/arkcompiler/ets_frontend/ets2panda/
DBUILD.gn98 "checker/types/ts/interfaceType.cpp",
DCMakeLists.txt417 checker/types/ts/interfaceType.cpp
/arkcompiler/ets_runtime/ecmascript/
Dobject_factory.cpp3780 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()