Home
last modified time | relevance | path

Searched defs:decl (Results 1 – 25 of 68) 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()
40 static void HoistVar(PandaGen *pg, binder::Variable *var, const binder::VarDecl *decl) in HoistVar()
65 static void HoistFunction(PandaGen *pg, binder::Variable *var, const binder::FunctionDecl *decl) in HoistFunction()
115 const auto *decl = var->Declaration(); in Hoist() local
Dlexenv.cpp52 auto decl = result.variable->Declaration(); in ExpandLoadLexVar() local
101 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/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/es2panda/binder/
Dvariable.h176 explicit GlobalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in GlobalVariable()
188 explicit ModuleVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in ModuleVariable()
214 : Variable(decl, VariableFlags::NONE), backReference_(backReference) in Variable() argument
276 explicit NamespaceVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in NamespaceVariable()
306 explicit EnumLiteralVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in EnumLiteralVariable()
340 explicit ImportEqualsVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in ImportEqualsVariable()
Dvariable.cpp24 LocalVariable::LocalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) in LocalVariable()
88 void EnumVariable::ResetDecl(Decl *decl) in ResetDecl()
Dbinder.h292 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddTsDecl() local
309 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddTsDecl() local
327 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddDecl() local
344 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddDecl() local
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/
DsavedBindingsCtx.cpp49 auto *decl = exportDecl->AsExportDefaultDeclaration(); in BindExportDecl() local
71 auto *decl = in BindExportDecl() local
DscopesInitPhase.cpp272 auto *decl = in VisitExportAllDeclaration() local
328 auto *decl = in VisitExportNamedDeclaration() local
441 …:BindVarDecl([[maybe_unused]] ir::Identifier *binding, ir::Expression *init, varbinder::Decl *decl, in BindVarDecl()
484 …auto *decl = AddOrGetDecl<varbinder::VarDecl>(VarBinder(), name, moduleDecl, moduleDecl->Name()->S… in VisitTSModuleDeclaration() local
503 auto *decl = VarBinder()->AddTsDecl<varbinder::TypeAliasDecl>(id->Start(), tsBinding.View()); in VisitTSTypeAliasDeclaration() local
522 varbinder::InterfaceDecl *decl {}; in VisitTSInterfaceDeclaration() local
565 … auto *decl = AddOrGetDecl<varbinder::EnumDecl>(VarBinder(), name, enumMember, key->Start(), name); in VisitTSEnumMember() local
575 varbinder::EnumLiteralDecl *decl {}; in VisitTSEnumDeclaration() local
598 …auto decl = AddOrGetDecl<varbinder::TypeParameterDecl>(VarBinder(), name, typeParam, typeParam->St… in VisitTSTypeParameter() local
655 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.cpp197 void Function::CompileInstanceFields(PandaGen *pg, const ir::ScriptFunction *decl) in CompileInstanceFields()
227 const auto *decl = pg->RootNode()->AsScriptFunction(); in CompileFunction() local
/arkcompiler/ets_frontend/ets2panda/varbinder/
Dvariable.h207 explicit GlobalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in GlobalVariable()
219 explicit ModuleVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in ModuleVariable()
256 : Variable(decl, VariableFlags::NONE), backReference_(backReference) in Variable() argument
Dvariable.cpp25 LocalVariable::LocalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) in LocalVariable()
61 void EnumVariable::ResetDecl(Decl *decl) in ResetDecl()
Dvarbinder.h357 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddTsDecl() local
369 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddDecl() local
381 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in NewVarDecl() local
/arkcompiler/ets_frontend/ets2panda/linter/lib/utils/functions/
DIsStruct.ts23 for (const decl of symbol.declarations) { constant
/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/checker/ts/
Dhelpers.cpp357 void TSChecker::GetTypeVar(varbinder::Decl *decl) in GetTypeVar()
371 void TSChecker::GetTypeParam(varbinder::Variable *var, varbinder::Decl *decl) in GetTypeParam()
401 void TSChecker::GetTypeEnum(varbinder::Variable *var, varbinder::Decl *decl) in GetTypeEnum()
417 Type *TSChecker::GetDeclTsType(varbinder::Variable *var, varbinder::Decl *decl) in GetDeclTsType()
474 varbinder::Decl *decl = var->Declaration(); in GetTypeOfVariable() local
521 varbinder::Decl *decl = var->Declaration(); in GetTypeReferenceType() local
/arkcompiler/ets_frontend/ets2panda/util/ast-builders/
DexportDefaultDeclarationBuilder.h35 ExportDefaultDeclarationBuilder &SetDeclaration(AstNode *decl) in SetDeclaration()
DvariableDeclarationBuilder.h44 VariableDeclarationBuilder &SetDeclare(bool decl) in SetDeclare()
/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/ets2panda/compiler/lowering/ets/
DinterfacePropertyDeclarations.cpp113 auto *decl = checker->Allocator()->New<varbinder::VarDecl>(name); in GenerateGetterOrSetter() local
159 …auto *decl = checker->Allocator()->New<varbinder::FunctionDecl>(checker->Allocator(), name, getter… in UpdateInterfacePropertys() local
/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

123