Home
last modified time | relevance | path

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

/arkcompiler/ets_frontend/es2panda/compiler/base/
Dhoisting.cpp26 …d StoreModuleVarOrLocalVar(PandaGen *pg, binder::ScopeFindResult &result, const binder::Decl *decl) in StoreModuleVarOrLocalVar()
38 static void HoistVar(PandaGen *pg, binder::Variable *var, const binder::VarDecl *decl) in HoistVar()
59 static void HoistFunction(PandaGen *pg, binder::Variable *var, const binder::FunctionDecl *decl) in HoistFunction()
106 const auto *decl = var->Declaration(); in Hoist() local
Dlexenv.cpp48 const auto *decl = result.variable->Declaration(); in ExpandLoadLexVar() local
81 const auto *decl = result.variable->Declaration(); in ExpandStoreLexVar() local
/arkcompiler/ets_frontend/es2panda/binder/
Dvariable.h168 explicit GlobalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in GlobalVariable()
180 explicit ModuleVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in ModuleVariable()
206 : Variable(decl, VariableFlags::NONE), backReference_(backReference) in Variable() argument
246 explicit NamespaceVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in NamespaceVariable()
271 explicit ImportEqualsVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) {} in ImportEqualsVariable()
Dvariable.cpp24 LocalVariable::LocalVariable(Decl *decl, VariableFlags flags) : Variable(decl, flags) in LocalVariable()
74 void EnumVariable::ResetDecl(Decl *decl) in ResetDecl()
Dbinder.h262 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddTsDecl() local
275 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddDecl() local
288 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddDecl() local
Dscope.h267 bool AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddDecl()
273 … bool AddTsDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddTsDecl()
880 T *decl = allocator->New<T>(std::forward<Args>(args)...); in NewDecl() local
893 auto *decl = allocator->New<DeclType>(name); in AddDecl() local
906 auto *decl = allocator->New<DeclType>(name); in CreateVar() local
Dscope.cpp265 auto *decl = NewDecl<ParameterDecl>(allocator, name); in AddParamDecl() local
381 auto *decl = res->second->Declaration(); in ConvertLocalVariableToModuleVariable() local
Dbinder.cpp271 auto decl = res.variable->Declaration(); in LookupIdentReference() local
679 auto *decl = Allocator()->New<ParameterDecl>(name); in AddMandatoryParam() local
Ddeclaration.h132 void Add(T *decl) in Add()
/arkcompiler/ets_frontend/es2panda/ir/module/
DexportDefaultDeclaration.h34 explicit ExportDefaultDeclaration(AstNode *decl, bool exportEquals) in ExportDefaultDeclaration()
DexportNamedDeclaration.h45 explicit ExportNamedDeclaration(Statement *decl, ArenaVector<ExportSpecifier *> &&specifiers) in ExportNamedDeclaration()
/arkcompiler/ets_frontend/es2panda/compiler/core/
Dfunction.cpp120 static void CompileInstanceFields(PandaGen *pg, const ir::ScriptFunction *decl) in CompileInstanceFields()
150 const auto *decl = pg->RootNode()->AsScriptFunction(); in CompileFunction() local
/arkcompiler/ets_frontend/es2panda/ir/expressions/
Didentifier.cpp93 const binder::Decl *decl = Variable()->Declaration(); in Check() local
/arkcompiler/ets_frontend/es2panda/parser/
DstatementParser.cpp170 ir::TSModuleDeclaration *decl = ParseTsModuleDeclaration(isDeclare); in ParseStatement() local
414 auto *decl = Binder()->AddDecl<binder::ImportEqualsDecl>(id->Start(), declflag, id->Name()); in ParseTsImportEqualsDeclaration() local
585 auto *decl = Binder()->AddDecl<binder::ClassDecl>(location, flag, className); in ParseClassDeclaration() local
614 …auto *decl = Binder()->AddTsDecl<binder::TypeAliasDecl>(lexer_->GetToken().Start(), tsBinding.View… in ParseTsTypeAliasDeclaration() local
664 binder::InterfaceDecl *decl {}; in ParseTsInterfaceDeclaration() local
1091 binder::FunctionDecl *decl {}; in ParseFunctionDeclaration() local
1926 binder::Decl *decl = nullptr; in ParseVariableDeclarator() local
2124 … auto *decl = Binder()->AddDecl<binder::ConstDecl>(startLoc, binder::DeclarationFlags::EXPORT, in AddExportStarEntryItem() local
2183 for (auto *decl : declarators) { in AddExportLocalEntryItem() local
2369 ir::Statement *decl = nullptr; in ParseNamedExportDeclaration() local
[all …]
DparserImpl.cpp2843 binder::EnumDecl *decl {}; in ParseEnumMembers() local
2907 binder::EnumLiteralDecl *decl {}; in ParseEnumDeclaration() local
/arkcompiler/ets_frontend/es2panda/parser/transformer/
Dtransformer.cpp134 auto *decl = node->Decl(); in VisitTSNode() local
210 auto *decl = var->Declaration(); in IsInstantiatedTSModule() local
271 std::vector<ir::AstNode *> Transformer::VisitExportNamedVariable(ir::Statement *decl) in VisitExportNamedVariable()
359 binder::Decl *decl = nullptr; in CreateVariableDeclarationWithIdentify() local
/arkcompiler/ets_frontend/es2panda/ir/statements/
DvariableDeclarator.cpp49 const ir::VariableDeclaration *decl = parent_->AsVariableDeclaration(); in Compile() local
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsEnumDeclaration.cpp269 auto *decl = checker->Allocator()->New<binder::EnumDecl>(memberStr); in AddEnumValueDeclaration() local
280 auto *decl = checker->Allocator()->New<binder::EnumDecl>(memberStr); in AddEnumValueDeclaration() local
/arkcompiler/ets_frontend/es2panda/typescript/core/
Dhelpers.cpp363 const binder::Decl *decl = var->Declaration(); in GetTypeOfVariable() local
504 binder::Decl *decl = var->Declaration(); in GetTypeReferenceType() local
Dobject.cpp452 binder::InterfaceDecl *decl = type->Variable()->Declaration()->AsInterfaceDecl(); in GetBaseTypes() local
514 binder::InterfaceDecl *decl = type->Variable()->Declaration()->AsInterfaceDecl(); in ResolveDeclaredMembers() local
Dfunction.cpp546 void Checker::InferFunctionDeclarationType(const binder::FunctionDecl *decl, binder::Variable *func… in InferFunctionDeclarationType()