Home
last modified time | relevance | path

Searched refs:AddDecl (Results 1 – 8 of 8) sorted by relevance

/arkcompiler/ets_frontend/es2panda/binder/
Dbinder.h72 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()
Dscope.h277 bool AddDecl(ArenaAllocator *allocator, Decl *decl, [[maybe_unused]] ScriptExtension extension) in AddDecl() function
293 VariableType *AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags);
979 VariableType *Scope::AddDecl(ArenaAllocator *allocator, util::StringView name, VariableFlags flags) in AddDecl() function
Dscope.cpp291 nameVar_ = AddDecl<ConstDecl, LocalVariable>(allocator, name, VariableFlags::INITIALIZED); in BindName()
Dbinder.cpp262 …scope->AddDecl<ConstDecl, LocalVariable>(Allocator(), FUNCTION_ARGUMENTS, VariableFlags::INITIALIZ… in InstantiateArguments()
/arkcompiler/ets_frontend/es2panda/parser/
DstatementParser.cpp476 …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()
1146 Binder()->AddDecl<binder::FunctionDecl>(startLoc, declflag, isDeclare, Allocator(), in ParseFunctionDeclaration()
1202 … decl = Binder()->AddDecl<binder::FunctionDecl>(identNode->Start(), declflag, func->Declare(), in AddFunctionToBinder()
1220 Binder()->AddDecl<binder::FunctionDecl>(identNode->Start(), declflag, func->Declare(), in AddFunctionToBinder()
2058 … decl = Binder()->AddDecl<binder::VarDecl>(startLoc, declflag, isDeclare, binding->Name()); in ParseVariableDeclarator()
2060 … decl = Binder()->AddDecl<binder::LetDecl>(startLoc, declflag, isDeclare, binding->Name()); in ParseVariableDeclarator()
2062 … decl = Binder()->AddDecl<binder::ConstDecl>(startLoc, declflag, isDeclare, binding->Name()); in ParseVariableDeclarator()
2260 … auto *decl = Binder()->AddDecl<binder::ConstDecl>(startLoc, binder::DeclarationFlags::EXPORT, in AddExportStarEntryItem()
2410 Binder()->AddDecl<binder::LetDecl>(declNode->Start(), binder::DeclarationFlags::EXPORT, in ParseExportDefaultDeclaration()
[all …]
DparserImpl.cpp2803 *decl = Binder()->AddDecl<binder::ConstDecl>(lexer_->GetToken().Start(), isDeclare, identStr); in SetIdentNodeInClassDefinition()
3092 … decl = Binder()->AddDecl<binder::EnumDecl>(keyStartLoc, isDeclare, lexer_->GetToken().Ident()); in ParseEnumMembers()
3097 … decl = Binder()->AddDecl<binder::EnumDecl>(keyStartLoc, isDeclare, lexer_->GetToken().String()); in ParseEnumMembers()
3305 Binder()->AddDecl<binder::LetDecl>(lexer_->GetToken().Start(), false, ident); in ParseTsTypeParameter()
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsEnumDeclaration.cpp271 enumScope->AddDecl(checker->Allocator(), decl, ScriptExtension::TS); in AddEnumValueDeclaration()
/arkcompiler/ets_frontend/es2panda/parser/transformer/
Dtransformer.cpp1382 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()