| /arkcompiler/ets_frontend/es2panda/binder/ |
| D | binder.h | 72 T *AddDecl(const lexer::SourcePosition &pos, bool isDeclare, Args &&... args); 75 …T *AddDecl(const lexer::SourcePosition &pos, DeclarationFlags flag, bool isDeclare, Args &&... arg… 308 T *Binder::AddDecl(const lexer::SourcePosition &pos, bool isDeclare, Args &&... args) in AddDecl() function 313 if (scope_->AddDecl(Allocator(), decl, program_->Extension())) { in AddDecl() 322 T *Binder::AddDecl(const lexer::SourcePosition &pos, DeclarationFlags flag, bool isDeclare, Args &&… in AddDecl() function 328 if (scope_->AddDecl(Allocator(), decl, program_->Extension())) { in AddDecl()
|
| D | scope.h | 277 bool AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddDecl() function 293 VariableType *AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags); 977 VariableType *Scope::AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags) in AddDecl() function
|
| D | scope.cpp | 291 nameVar_ = AddDecl<ConstDecl, LocalVariable>(allocator, name, VariableFlags::INITIALIZED); in BindName()
|
| D | binder.cpp | 262 …scope->AddDecl<ConstDecl, LocalVariable>(Allocator(), FUNCTION_ARGUMENTS, VariableFlags::INITIALIZ… in InstantiateArguments()
|
| /arkcompiler/ets_frontend/es2panda/parser/ |
| D | statementParser.cpp | 476 …auto *decl = Binder()->AddDecl<binder::ImportEqualsDecl>(id->Start(), declflag, false, id->Name()); in ParseTsImportEqualsDeclaration() 674 …auto *decl = Binder()->AddDecl<binder::ClassDecl>(location, flag, classDefinition->Declare(), clas… in ParseClassDeclaration() 1147 Binder()->AddDecl<binder::FunctionDecl>(startLoc, declflag, isDeclare, Allocator(), in ParseFunctionDeclaration() 1203 … decl = Binder()->AddDecl<binder::FunctionDecl>(identNode->Start(), declflag, func->Declare(), in AddFunctionToBinder() 1222 Binder()->AddDecl<binder::FunctionDecl>(identNode->Start(), declflag, func->Declare(), in AddFunctionToBinder() 2060 … decl = Binder()->AddDecl<binder::VarDecl>(startLoc, declflag, isDeclare, binding->Name()); in ParseVariableDeclarator() 2062 … decl = Binder()->AddDecl<binder::LetDecl>(startLoc, declflag, isDeclare, binding->Name()); in ParseVariableDeclarator() 2064 … decl = Binder()->AddDecl<binder::ConstDecl>(startLoc, declflag, isDeclare, binding->Name()); in ParseVariableDeclarator() 2262 … auto *decl = Binder()->AddDecl<binder::ConstDecl>(startLoc, binder::DeclarationFlags::EXPORT, in AddExportStarEntryItem() 2412 Binder()->AddDecl<binder::LetDecl>(declNode->Start(), binder::DeclarationFlags::EXPORT, in ParseExportDefaultDeclaration() [all …]
|
| D | parserImpl.cpp | 2804 *decl = Binder()->AddDecl<binder::ConstDecl>(lexer_->GetToken().Start(), isDeclare, identStr); in SetIdentNodeInClassDefinition() 3093 … decl = Binder()->AddDecl<binder::EnumDecl>(keyStartLoc, isDeclare, lexer_->GetToken().Ident()); in ParseEnumMembers() 3098 … decl = Binder()->AddDecl<binder::EnumDecl>(keyStartLoc, isDeclare, lexer_->GetToken().String()); in ParseEnumMembers() 3306 Binder()->AddDecl<binder::LetDecl>(lexer_->GetToken().Start(), false, ident); in ParseTsTypeParameter()
|
| /arkcompiler/ets_frontend/es2panda/ir/ts/ |
| D | tsEnumDeclaration.cpp | 271 enumScope->AddDecl(checker->Allocator(), decl, ScriptExtension::TS); in AddEnumValueDeclaration()
|
| /arkcompiler/ets_frontend/es2panda/parser/transformer/ |
| D | transformer.cpp | 1382 decl = Binder()->AddDecl<binder::VarDecl>(startPos, declflag, false, name); in CreateVariableDeclarationWithIdentify() 1384 decl = Binder()->AddDecl<binder::LetDecl>(startPos, declflag, false, name); in CreateVariableDeclarationWithIdentify() 1386 decl = Binder()->AddDecl<binder::ConstDecl>(startPos, declflag, false, name); in CreateVariableDeclarationWithIdentify()
|