/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/ |
H A D | savedBindingsCtx.cpp | 54 VarBinder()->AddDecl<varbinder::FunctionDecl>(rhs->Start(), VarBinder()->Allocator(), in BindExportDecl() 58 VarBinder()->AddDecl<varbinder::ConstDecl>(rhs->Start(), util::StringView(DEFAULT_EXPORT)); in BindExportDecl() 72 VarBinder()->AddDecl<varbinder::ExportDecl>(variable->Declaration()->Node()->Start(), exportName, name); in BindExportDecl()
|
H A D | scopesInitPhase.cpp | 38 return varBinder->AddDecl<T>(pos, args...); in AddOrGetDecl() 671 decl = VarBinder()->AddDecl<varbinder::FunctionDecl>(startLoc, Allocator(), identNode->Name(), func); in CreateFuncDecl()
|
/arkcompiler/ets_frontend/es2panda/binder/ |
H A D | binder.h | 73 T *AddDecl(const lexer::SourcePosition &pos, bool isDeclare, Args &&... args); 76 T *AddDecl(const lexer::SourcePosition &pos, DeclarationFlags flag, bool isDeclare, Args &&... args); 325 T *Binder::AddDecl(const lexer::SourcePosition &pos, bool isDeclare, Args &&... args) in AddDecl() function in panda::es2panda::panda::es2panda::binder::Binder 333 if (scope_->AddDecl(Allocator(), decl, program_->Extension())) { in AddDecl() 342 T *Binder::AddDecl(const lexer::SourcePosition &pos, DeclarationFlags flag, bool isDeclare, Args &&... args) in AddDecl() function in panda::es2panda::panda::es2panda::binder::Binder 351 if (scope_->AddDecl(Allocator(), decl, program_->Extension())) { in AddDecl()
|
H A D | scope.h | 309 bool AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddDecl() function in Scope 331 VariableType *AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags); 1363 VariableType *Scope::AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags) in AddDecl() function in Scope
|
H A D | scope.cpp | 525 nameVar_ = AddDecl<ConstDecl, LocalVariable>(allocator, name, VariableFlags::INITIALIZED); in BindName()
|
H A D | binder.cpp | 291 scope->AddDecl<ConstDecl, LocalVariable>(Allocator(), FUNCTION_ARGUMENTS, VariableFlags::INITIALIZED); in InstantiateArguments()
|
/arkcompiler/ets_frontend/ets2panda/varbinder/ |
H A D | varbinder.h | 65 T *AddDecl(const lexer::SourcePosition &pos, Args &&...args); 374 T *VarBinder::AddDecl(const lexer::SourcePosition &pos, Args &&...args) in AddDecl() function in ark::es2panda::ark::es2panda::ark::es2panda::ark::es2panda::varbinder::VarBinder 378 if (scope_->AddDecl(Allocator(), decl, Extension()) != nullptr) { in AddDecl() 389 varbinder::Variable *var = scope_->AddDecl(Allocator(), decl, Extension()); in NewVarDecl()
|
H A D | scope.h | 218 Variable *AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddDecl() function in ark::es2panda::ark::es2panda::ark::es2panda::varbinder::Scope 236 VariableType *AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags); 1025 VariableType *Scope::AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags) in AddDecl() function in ark::es2panda::ark::es2panda::ark::es2panda::varbinder::Scope
|
H A D | varbinder.cpp | 172 (*scope)->AddDecl<ConstDecl, LocalVariable>(Allocator(), FUNCTION_ARGUMENTS, VariableFlags::INITIALIZED); in InstantiateArgumentsImpl()
|
H A D | scope.cpp | 435 nameVar_ = AddDecl<ConstDecl, LocalVariable>(allocator, name, VariableFlags::INITIALIZED); in BindName()
|
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
H A D | interfacePropertyDeclarations.cpp | 114 auto var = functionScope->AddDecl(checker->Allocator(), decl, ScriptExtension::ETS); in GenerateGetterOrSetter() 161 if (methodScope->AddDecl(checker->Allocator(), decl, ScriptExtension::ETS) == nullptr) { in UpdateInterfacePropertys()
|
H A D | tupleLowering.cpp | 129 auto *const tmpVar = NearestScope(update_)->AddDecl<varbinder::LetDecl, varbinder::LocalVariable>( in GenerateSymbol()
|
/arkcompiler/ets_frontend/ets2panda/test/unit/public/ |
H A D | ast_verifier_short_test.cpp | 123 scope.AddDecl(Allocator(), &decl, ScriptExtension::ETS); in TEST_F() 146 scope.AddDecl(Allocator(), &decl, ScriptExtension::ETS); in TEST_F()
|
/arkcompiler/ets_frontend/es2panda/parser/ |
H A D | statementParser.cpp | 514 auto *decl = Binder()->AddDecl<binder::ImportEqualsDecl>(id->Start(), declflag, false, id->Name()); in ParseTsImportEqualsDeclaration() 719 auto *decl = Binder()->AddDecl<binder::ClassDecl>(location, flag, classDefinition->Declare(), className); in ParseClassDeclaration() 1208 Binder()->AddDecl<binder::FunctionDecl>(startLoc, declflag, isDeclare, Allocator(), in ParseFunctionDeclaration() 1264 decl = Binder()->AddDecl<binder::FunctionDecl>(identNode->Start(), declflag, func->Declare(), in AddFunctionToBinder() 1283 Binder()->AddDecl<binder::FunctionDecl>(identNode->Start(), declflag, func->Declare(), in AddFunctionToBinder() 2083 decl = Binder()->AddDecl<binder::VarDecl>(startLoc, declflag, isDeclare, binding->Name()); in ParseVariableDeclarator() 2085 decl = Binder()->AddDecl<binder::LetDecl>(startLoc, declflag, isDeclare, binding->Name()); in ParseVariableDeclarator() 2087 decl = Binder()->AddDecl<binder::ConstDecl>(startLoc, declflag, isDeclare, binding->Name()); in ParseVariableDeclarator() 2361 auto *decl = Binder()->AddDecl<binder::ConstDecl>(startLoc, binder::DeclarationFlags::EXPORT, in AddExportStarEntryItem() 2517 Binder()->AddDecl<binde in ParseExportDefaultDeclaration() [all...] |
H A D | parserImpl.cpp | 3140 *decl = Binder()->AddDecl<binder::ConstDecl>(lexer_->GetToken().Start(), isDeclare, identStr); in SetIdentNodeInClassDefinition() 3514 decl = Binder()->AddDecl<binder::EnumDecl>(keyStartLoc, isDeclare, lexer_->GetToken().String()); in ParseEnumComputedPropertyKey() 3530 decl = Binder()->AddDecl<binder::EnumDecl>(keyStartLoc, isDeclare, cooked); in ParseEnumComputedPropertyKey() 3562 decl = Binder()->AddDecl<binder::EnumDecl>(keyStartLoc, isDeclare, lexer_->GetToken().Ident()); in ParseEnumMembers() 3567 decl = Binder()->AddDecl<binder::EnumDecl>(keyStartLoc, isDeclare, lexer_->GetToken().String()); in ParseEnumMembers() 3841 Binder()->AddDecl<binder::LetDecl>(lexer_->GetToken().Start(), false, ident); in ParseTsTypeParameter()
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
H A D | tsEnumDeclaration.cpp | 272 enumScope->AddDecl(checker->Allocator(), decl, ScriptExtension::TS); in AddEnumValueDeclaration()
|
/arkcompiler/ets_frontend/es2panda/parser/transformer/ |
H A D | transformer.cpp | 1890 decl = Binder()->AddDecl<binder::VarDecl>(startPos, declflag, false, name); in CreateVariableDeclarationWithIdentify() 1892 decl = Binder()->AddDecl<binder::LetDecl>(startPos, declflag, false, name); in CreateVariableDeclarationWithIdentify() 1894 decl = Binder()->AddDecl<binder::ConstDecl>(startPos, declflag, false, name); in CreateVariableDeclarationWithIdentify()
|
/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
H A D | helpers.cpp | 2324 auto fieldVar = scope->InstanceFieldScope()->AddDecl(Allocator(), fieldDecl, ScriptExtension::ETS); in ClassPropToImplementationProp() 2533 auto *var = methodScope->AddDecl(Allocator(), decl, ScriptExtension::ETS); in GenerateGetterSetterPropertyAndMethod()
|
H A D | object.cpp | 858 ->AddDecl(Allocator(), newFieldDecl, ScriptExtension::ETS)
|
/arkcompiler/ets_frontend/ets2panda/checker/ |
H A D | TSAnalyzer.cpp | 1726 enumScope->AddDecl(checker->Allocator(), decl, ScriptExtension::TS); in AddEnumValueDeclaration()
|