Home
last modified time | relevance | path

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

/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()
112 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/ir/module/
DexportDefaultDeclaration.h34 explicit ExportDefaultDeclaration(AstNode *decl, bool exportEquals) in ExportDefaultDeclaration()
49 void SetDecl(AstNode *decl) in SetDecl()
DexportNamedDeclaration.h46 explicit ExportNamedDeclaration(Statement *decl, ArenaVector<ExportSpecifier *> &&specifiers) in ExportNamedDeclaration()
65 void SetDecl(Statement *decl) in SetDecl()
/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()
76 void EnumVariable::ResetDecl(Decl *decl) in ResetDecl()
Dbinder.h281 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddTsDecl() local
295 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddTsDecl() local
310 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddDecl() local
324 T *decl = Allocator()->New<T>(std::forward<Args>(args)...); in AddDecl() local
Dscope.cpp261 auto *decl = NewDecl<ParameterDecl>(allocator, name); in AddParamDecl() local
382 auto *decl = res->second->Declaration(); in ConvertLocalVariableToModuleVariable() local
414 auto decl = currentVariable->Declaration(); in AddBinding() local
Dscope.h277 bool AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddDecl()
283 … bool AddTsDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddTsDecl()
873 auto decl = currentVariable->Declaration(); in AddFunction() local
910 auto decl = currentVariable->Declaration(); in AddClass() local
972 T *decl = allocator->New<T>(std::forward<Args>(args)...); in NewDecl() local
985 auto *decl = allocator->New<DeclType>(name); in AddDecl() local
998 auto *decl = allocator->New<DeclType>(name); in CreateVar() local
Dbinder.cpp311 auto decl = res.variable->Declaration(); in LookupIdentReference() local
813 auto *decl = Allocator()->New<ParameterDecl>(name); in AddMandatoryParam() local
941 void Binder::ReplaceConstReferenceWithInitialization(const ir::Identifier *ident, const Decl *decl) in ReplaceConstReferenceWithInitialization()
Ddeclaration.h150 void Add(T *decl) in Add()
/arkcompiler/ets_frontend/es2panda/ir/expressions/
Didentifier.cpp88 const binder::Decl *decl = Variable()->Declaration(); in Check() local
/arkcompiler/ets_frontend/es2panda/compiler/core/
Dfunction.cpp140 static void CompileInstanceFields(PandaGen *pg, const ir::ScriptFunction *decl) in CompileInstanceFields()
173 const auto *decl = pg->RootNode()->AsScriptFunction(); in CompileFunction() local
/arkcompiler/ets_frontend/es2panda/parser/
DstatementParser.cpp232 ir::TSModuleDeclaration *decl = ParseTsModuleDeclaration(isDeclare); in ParseStatement() local
476 …auto *decl = Binder()->AddDecl<binder::ImportEqualsDecl>(id->Start(), declflag, false, id->Name()); in ParseTsImportEqualsDeclaration() local
674 …auto *decl = Binder()->AddDecl<binder::ClassDecl>(location, flag, classDefinition->Declare(), clas… in ParseClassDeclaration() local
703 …auto *decl = Binder()->AddTsDecl<binder::TypeAliasDecl>(lexer_->GetToken().Start(), isDeclare, tsB… in ParseTsTypeAliasDeclaration() local
754 binder::InterfaceDecl *decl {}; in ParseTsInterfaceDeclaration() local
1198 binder::FunctionDecl *decl {}; in AddFunctionToBinder() local
2050 binder::Decl *decl = nullptr; in ParseVariableDeclarator() local
2260 … auto *decl = Binder()->AddDecl<binder::ConstDecl>(startLoc, binder::DeclarationFlags::EXPORT, in AddExportStarEntryItem() local
2320 for (auto *decl : declarators) { in AddExportLocalEntryItem() local
2540 ir::Statement *decl = nullptr; in ParseNamedExportDeclaration() local
[all …]
DparserImpl.cpp2792 ir::Identifier *ParserImpl::SetIdentNodeInClassDefinition(bool isDeclare, binder::ConstDecl **decl) in SetIdentNodeInClassDefinition()
2820 binder::ConstDecl *decl = nullptr; in ParseClassDefinition() local
3088 binder::EnumDecl *decl {}; in ParseEnumMembers() local
/arkcompiler/ets_frontend/es2panda/ir/statements/
DvariableDeclarator.cpp51 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.cpp450 binder::InterfaceDecl *decl = type->Variable()->Declaration()->AsInterfaceDecl(); in GetBaseTypes() local
512 binder::InterfaceDecl *decl = type->Variable()->Declaration()->AsInterfaceDecl(); in ResolveDeclaredMembers() local
Dfunction.cpp544 void Checker::InferFunctionDeclarationType(const binder::FunctionDecl *decl, binder::Variable *func… in InferFunctionDeclarationType()
/arkcompiler/ets_frontend/es2panda/parser/transformer/
Dtransformer.cpp241 auto *decl = node->Decl(); in VisitTSNode() local
279 auto *decl = node->Decl(); in VisitTSNode() local
345 auto *decl = node->Decl(); in VisitExportClassDeclaration() local
1182 auto *decl = var->Declaration(); in IsInstantiatedImportEquals() local
1271 std::vector<ir::AstNode *> Transformer::VisitExportNamedVariable(ir::Statement *decl) in VisitExportNamedVariable()
1377 binder::Decl *decl = nullptr; in CreateVariableDeclarationWithIdentify() local
1879 auto *decl = var->AsNamespaceVariable()->Declaration(); in IsInstantiatedNamespaceVariable() local
2288 auto *decl = var->Declaration()->AsNamespaceDecl(); in IsValueReference() local
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeExtractor.cpp795 auto decl = originalNode->AsExportNamedDeclaration()->Decl(); in HandleNewlyGenFuncExpression() local