Home
last modified time | relevance | path

Searched refs:interfaceDecl (Results 1 – 14 of 14) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/varbinder/
DrecordTable.cpp39 BoundContext::BoundContext(RecordTable *recordTable, ir::TSInterfaceDeclaration *interfaceDecl) in BoundContext() argument
42 …if (interfaceDecl == nullptr || !recordTable_->interfaceDeclarations_.insert(interfaceDecl).second… in BoundContext()
47 recordTable_->record_ = interfaceDecl; in BoundContext()
48 recordIdent_ = interfaceDecl->Id(); in BoundContext()
49 interfaceDecl->SetInternalName(FormRecordName()); in BoundContext()
DrecordTable.h169 explicit BoundContext(RecordTable *recordTable, ir::TSInterfaceDeclaration *interfaceDecl);
/arkcompiler/ets_frontend/ets2panda/compiler/core/
DETSemitter.cpp203 for (auto *interfaceDecl : globalRecordTable->InterfaceDeclarations()) { in GenAnnotation() local
204 GenInterfaceRecord(interfaceDecl, false); in GenAnnotation()
237 for (auto *interfaceDecl : recordTable->InterfaceDeclarations()) { in GenExternalRecord() local
238 GenInterfaceRecord(interfaceDecl, !isGenStdLib); in GenExternalRecord()
398 void ETSEmitter::GenInterfaceRecord(const ir::TSInterfaceDeclaration *interfaceDecl, bool external) in GenInterfaceRecord() argument
400 auto *baseType = interfaceDecl->TsType()->AsETSObjectType(); in GenInterfaceRecord()
402 auto interfaceRecord = pandasm::Record(interfaceDecl->InternalName().Mutf8(), Program()->lang); in GenInterfaceRecord()
410 if (interfaceDecl->IsStatic()) { in GenInterfaceRecord()
427 for (const auto *prop : interfaceDecl->Body()->Body()) { in GenInterfaceRecord()
DETSemitter.h79 void GenInterfaceRecord(const ir::TSInterfaceDeclaration *interfaceDecl, bool external);
/arkcompiler/ets_frontend/ets2panda/util/
DdeclgenEts2Ts.cpp427 void TSDeclGen::GenInterfaceDeclaration(const ir::TSInterfaceDeclaration *interfaceDecl) in GenInterfaceDeclaration() argument
430 const auto interfaceName = interfaceDecl->Id()->Name().Mutf8(); in GenInterfaceDeclaration()
434 GenTypeParameters(interfaceDecl->TypeParams()); in GenInterfaceDeclaration()
439 for (auto *prop : interfaceDecl->Body()->Body()) { in GenInterfaceDeclaration()
DdeclgenEts2Ts.h59 void GenInterfaceDeclaration(const ir::TSInterfaceDeclaration *interfaceDecl);
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/
DscopesInitPhase.cpp878 void InitScopesPhaseETS::VisitTSInterfaceDeclaration(ir::TSInterfaceDeclaration *interfaceDecl) in VisitTSInterfaceDeclaration() argument
882 CallNode(interfaceDecl->TypeParams()); in VisitTSInterfaceDeclaration()
883 CallNode(interfaceDecl->Extends()); in VisitTSInterfaceDeclaration()
885 CallNode(interfaceDecl->Body()); in VisitTSInterfaceDeclaration()
886 BindScopeNode(localScope.GetScope(), interfaceDecl); in VisitTSInterfaceDeclaration()
888 auto name = FormInterfaceOrEnumDeclarationIdBinding(interfaceDecl->Id()); in VisitTSInterfaceDeclaration()
890 …VarBinder()->AddDecl<varbinder::InterfaceDecl>(interfaceDecl->Start(), Allocator(), name, interfac… in VisitTSInterfaceDeclaration()
891 decl->AsInterfaceDecl()->Add(interfaceDecl); in VisitTSInterfaceDeclaration()
DscopesInitPhase.h341 void VisitTSInterfaceDeclaration(ir::TSInterfaceDeclaration *interfaceDecl) override;
/arkcompiler/ets_frontend/ets2panda/checker/ets/
Dobject.cpp290 ETSObjectType *ETSChecker::BuildInterfaceProperties(ir::TSInterfaceDeclaration *interfaceDecl) in BuildInterfaceProperties() argument
292 auto *var = interfaceDecl->Id()->Variable(); in BuildInterfaceProperties()
297 interfaceType = CreateETSObjectType(var->Name(), interfaceDecl, in BuildInterfaceProperties()
305 if (interfaceDecl->TypeParams() != nullptr) { in BuildInterfaceProperties()
312 checker::ScopeContext scopeCtx(this, interfaceDecl->Scope()); in BuildInterfaceProperties()
Dfunction.cpp1403 auto *interfaceDecl = Allocator()->New<ir::TSInterfaceDeclaration>( in CreateFunctionalInterfaceForFunctionType() local
1405 interfaceDecl->SetScope(interfaceScope); in CreateFunctionalInterfaceForFunctionType()
1406 interfaceDecl->AddModifier(ir::ModifierFlags::FUNCTIONAL); in CreateFunctionalInterfaceForFunctionType()
1407 funcType->SetFunctionalInterface(interfaceDecl); in CreateFunctionalInterfaceForFunctionType()
1408 invokeFunc->SetParent(interfaceDecl); in CreateFunctionalInterfaceForFunctionType()
/arkcompiler/ets_frontend/ets2panda/parser/
DTypedParser.cpp464 auto *interfaceDecl = AllocNode<ir::TSInterfaceDeclaration>( in ParseInterfaceDeclaration() local
466 interfaceDecl->SetRange({interfaceStart, Lexer()->GetToken().End()}); in ParseInterfaceDeclaration()
471 return interfaceDecl; in ParseInterfaceDeclaration()
DETSparser.cpp1949 auto *interfaceDecl = AllocNode<ir::TSInterfaceDeclaration>( in ParseInterfaceBody() local
1955 return interfaceDecl; in ParseInterfaceBody()
/arkcompiler/ets_frontend/es2panda/parser/
DstatementParser.cpp786 auto *interfaceDecl = in ParseTsInterfaceDeclaration() local
788 interfaceDecl->SetRange({interfaceStart, lexer_->GetToken().End()}); in ParseTsInterfaceDeclaration()
793 decl->BindNode(interfaceDecl); in ParseTsInterfaceDeclaration()
795 decl->AsInterfaceDecl()->Add(interfaceDecl); in ParseTsInterfaceDeclaration()
800 return interfaceDecl; in ParseTsInterfaceDeclaration()
/arkcompiler/ets_frontend/ets2panda/checker/
DETSchecker.h145 ETSObjectType *BuildInterfaceProperties(ir::TSInterfaceDeclaration *interfaceDecl);