Home
last modified time | relevance | path

Searched refs:AddDecl (Results 1 - 20 of 20) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/
H A DsavedBindingsCtx.cpp54 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 DscopesInitPhase.cpp38 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 Dbinder.h73 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 Dscope.h309 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 Dscope.cpp525 nameVar_ = AddDecl<ConstDecl, LocalVariable>(allocator, name, VariableFlags::INITIALIZED); in BindName()
H A Dbinder.cpp291 scope->AddDecl<ConstDecl, LocalVariable>(Allocator(), FUNCTION_ARGUMENTS, VariableFlags::INITIALIZED); in InstantiateArguments()
/arkcompiler/ets_frontend/ets2panda/varbinder/
H A Dvarbinder.h65 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 Dscope.h218 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 Dvarbinder.cpp172 (*scope)->AddDecl<ConstDecl, LocalVariable>(Allocator(), FUNCTION_ARGUMENTS, VariableFlags::INITIALIZED); in InstantiateArgumentsImpl()
H A Dscope.cpp435 nameVar_ = AddDecl<ConstDecl, LocalVariable>(allocator, name, VariableFlags::INITIALIZED); in BindName()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DinterfacePropertyDeclarations.cpp114 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 DtupleLowering.cpp129 auto *const tmpVar = NearestScope(update_)->AddDecl<varbinder::LetDecl, varbinder::LocalVariable>( in GenerateSymbol()
/arkcompiler/ets_frontend/ets2panda/test/unit/public/
H A Dast_verifier_short_test.cpp123 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 DstatementParser.cpp514 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 DparserImpl.cpp3140 *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 DtsEnumDeclaration.cpp272 enumScope->AddDecl(checker->Allocator(), decl, ScriptExtension::TS); in AddEnumValueDeclaration()
/arkcompiler/ets_frontend/es2panda/parser/transformer/
H A Dtransformer.cpp1890 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 Dhelpers.cpp2324 auto fieldVar = scope->InstanceFieldScope()->AddDecl(Allocator(), fieldDecl, ScriptExtension::ETS); in ClassPropToImplementationProp()
2533 auto *var = methodScope->AddDecl(Allocator(), decl, ScriptExtension::ETS); in GenerateGetterSetterPropertyAndMethod()
H A Dobject.cpp858 ->AddDecl(Allocator(), newFieldDecl, ScriptExtension::ETS)
/arkcompiler/ets_frontend/ets2panda/checker/
H A DTSAnalyzer.cpp1726 enumScope->AddDecl(checker->Allocator(), decl, ScriptExtension::TS); in AddEnumValueDeclaration()

Completed in 41 milliseconds