Home
last modified time | relevance | path

Searched defs:decl (Results 1 – 25 of 63) sorted by relevance

123

/arkcompiler/ets_frontend/es2panda/compiler/base/
Dhoisting.cpp27 …d StoreModuleVarOrLocalVar(PandaGen *pg, binder::ScopeFindResult &result, const binder::Decl *decl) in StoreModuleVarOrLocalVar()
39 static void HoistVar(PandaGen *pg, binder::Variable *var, const binder::VarDecl *decl) in HoistVar()
63 static void HoistFunction(PandaGen *pg, binder::Variable *var, const binder::FunctionDecl *decl) in HoistFunction()
113 const auto *decl = var->Declaration(); in Hoist() local
Dlexenv.cpp58 const auto *decl = result.variable->Declaration(); in ExpandLoadLexVar() local
100 const auto *decl = result.variable->Declaration(); in ExpandStoreLexVar() local
/arkcompiler/ets_frontend/ets2panda/compiler/base/
Dhoisting.cpp23 static void HoistVar(PandaGen *pg, varbinder::Variable *var, const varbinder::VarDecl *decl) in HoistVar()
39 …tic void HoistFunction(PandaGen *pg, varbinder::Variable *var, const varbinder::FunctionDecl *decl) in HoistFunction()
69 const auto *decl = var->Declaration(); in Hoist() local
/arkcompiler/ets_frontend/es2panda/binder/
Dvariable.h171 explicit GlobalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in GlobalVariable()
183 explicit ModuleVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in ModuleVariable()
209 : Variable(decl, VariableFlags::NONE), backReference_(backReference) in Variable() argument
271 explicit NamespaceVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in NamespaceVariable()
301 explicit EnumLiteralVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in EnumLiteralVariable()
335 explicit ImportEqualsVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in ImportEqualsVariable()
Dvariable.cpp24 LocalVariable::LocalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) in LocalVariable()
81 void EnumVariable::ResetDecl(Decl *decl) in ResetDecl()
Dbinder.h283 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddTsDecl() local
297 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddTsDecl() local
312 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddDecl() local
326 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddDecl() local
/arkcompiler/ets_frontend/es2panda/ir/module/
DexportDefaultDeclaration.h34 explicit ExportDefaultDeclaration(AstNode *decl, bool exportEquals) in ExportDefaultDeclaration()
49 void SetDecl(AstNode *decl) in SetDecl()
DexportNamedDeclaration.h49 explicit ExportNamedDeclaration(Statement *decl, ArenaVector<ExportSpecifier *> &&specifiers) in ExportNamedDeclaration()
69 void SetDecl(Statement *decl) in SetDecl()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/
DsavedBindingsCtx.cpp49 auto *decl = exportDecl->AsExportDefaultDeclaration(); in BindExportDecl() local
71 auto *decl = in BindExportDecl() local
DscopesInitPhase.cpp227 auto *decl = VarBinder()->AddDecl<varbinder::ExportDecl>(exportAllDecl->Start(), name, "*"); in VisitExportAllDeclaration() local
280 …auto *decl = VarBinder()->AddDecl<varbinder::ExportDecl>(exportDecl->Start(), spec->Exported()->Na… in VisitExportNamedDeclaration() local
389 …:BindVarDecl([[maybe_unused]] ir::Identifier *binding, ir::Expression *init, varbinder::Decl *decl, in BindVarDecl()
429 auto *decl = VarBinder()->AddDecl<varbinder::VarDecl>(moduleDecl->Name()->Start(), in VisitTSModuleDeclaration() local
449 auto *decl = VarBinder()->AddTsDecl<varbinder::TypeAliasDecl>(id->Start(), tsBinding.View()); in VisitTSTypeAliasDeclaration() local
468 varbinder::InterfaceDecl *decl {}; in VisitTSInterfaceDeclaration() local
510 auto *decl = VarBinder()->AddDecl<varbinder::EnumDecl>(key->Start(), name); in VisitTSEnumMember() local
520 varbinder::EnumLiteralDecl *decl {}; in VisitTSEnumDeclaration() local
542 …auto decl = VarBinder()->AddDecl<varbinder::TypeParameterDecl>(typeParam->Start(), typeParam->Name… in VisitTSTypeParameter() local
595 varbinder::FunctionDecl *decl {}; in CreateFuncDecl() local
[all …]
/arkcompiler/ets_frontend/ets2panda/compiler/core/
DmoduleContext.cpp36 for (const auto *decl : decls) { in CompileImports() local
73 for (const auto *decl : decls) { in CompileExports() local
Dfunction.cpp146 void Function::CompileInstanceFields(PandaGen *pg, const ir::ScriptFunction *decl) in CompileInstanceFields()
221 const auto *decl = pg->RootNode()->AsScriptFunction(); in CompileFunction() local
/arkcompiler/ets_frontend/ets2panda/varbinder/
Dvariable.h193 explicit GlobalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in GlobalVariable()
205 explicit ModuleVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in ModuleVariable()
242 : Variable(decl, VariableFlags::NONE), backReference_(backReference) in Variable() argument
Dvariable.cpp23 LocalVariable::LocalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) in LocalVariable()
59 void EnumVariable::ResetDecl(Decl *decl) in ResetDecl()
Dvarbinder.h346 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddTsDecl() local
358 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddDecl() local
370 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in NewVarDecl() local
Dscope.cpp340 auto *decl = NewDecl<ParameterDecl>(allocator, name); in AddParamDecl() local
543 for (auto &decl : res.second) { in AddImportDecl() local
548 void ModuleScope::AddExportDecl(ir::AstNode *exportDecl, ExportDecl *decl) in AddExportDecl()
562 for (auto &decl : res.second) { in AddExportDecl() local
612 for (const auto *decl : decls) { in ExportAnalysis() local
/arkcompiler/ets_frontend/ets2panda/ir/module/
DexportNamedDeclaration.h36 explicit ExportNamedDeclaration(ArenaAllocator *allocator, AstNode *decl, in ExportNamedDeclaration()
45 explicit ExportNamedDeclaration(ArenaAllocator *allocator, AstNode *decl) in ExportNamedDeclaration()
DexportDefaultDeclaration.h24 explicit ExportDefaultDeclaration(AstNode *decl, bool exportEquals) in ExportDefaultDeclaration()
/arkcompiler/ets_frontend/ets2panda/linter/src/utils/functions/
DIsStruct.ts23 for (const decl of symbol.declarations) { constant
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
DinterfacePropertyDeclarations.cpp77 … auto *decl = checker->Allocator()->New<varbinder::VarDecl>(field->Key()->AsIdentifier()->Name()); in GenerateGetterOrSetter() local
123 …auto *decl = checker->Allocator()->New<varbinder::FunctionDecl>(checker->Allocator(), name, getter… in UpdateInterfacePropertys() local
/arkcompiler/ets_frontend/ets2panda/checker/types/ets/
DetsTypeParameter.h31 void SetDeclNode(ir::TSTypeParameter *decl) in SetDeclNode()
/arkcompiler/ets_frontend/es2panda/ir/expressions/
Didentifier.cpp88 const binder::Decl *decl = Variable()->Declaration(); in Check() local
/arkcompiler/ets_frontend/es2panda/parser/
DstatementParser.cpp235 ir::TSModuleDeclaration *decl = ParseTsModuleDeclaration(isDeclare); in ParseStatement() local
485 …auto *decl = Binder()->AddDecl<binder::ImportEqualsDecl>(id->Start(), declflag, false, id->Name()); in ParseTsImportEqualsDeclaration() local
683 …auto *decl = Binder()->AddDecl<binder::ClassDecl>(location, flag, classDefinition->Declare(), clas… in ParseClassDeclaration() local
713 …auto *decl = Binder()->AddTsDecl<binder::TypeAliasDecl>(lexer_->GetToken().Start(), isDeclare, tsB… in ParseTsTypeAliasDeclaration() local
755 binder::InterfaceDecl *decl {}; in ParseTsInterfaceDeclaration() local
1222 binder::FunctionDecl *decl {}; in AddFunctionToBinder() local
2038 binder::Decl *decl = nullptr; in ParseVariableDeclarator() local
2323 … auto *decl = Binder()->AddDecl<binder::ConstDecl>(startLoc, binder::DeclarationFlags::EXPORT, in AddExportStarEntryItem() local
2383 for (auto *decl : declarators) { in AddExportLocalEntryItem() local
2640 ir::Statement *decl = nullptr; in ParseNamedExportDeclaration() local
[all …]
/arkcompiler/ets_frontend/es2panda/compiler/core/
Dfunction.cpp171 static void CompileClassInitializer(PandaGen *pg, const ir::ScriptFunction *decl, bool isStatic) in CompileClassInitializer()
218 const auto *decl = pg->RootNode()->AsScriptFunction(); in CompileFunction() local
/arkcompiler/ets_frontend/es2panda/ir/statements/
DvariableDeclarator.cpp51 const ir::VariableDeclaration *decl = parent_->AsVariableDeclaration(); in Compile() local

123