/arkcompiler/ets_frontend/ets2panda/varbinder/ |
H A D | scope.cpp | 255 Variable *Scope::AddLocalVar(ArenaAllocator *allocator, Decl *newDecl) in AddLocalVar() argument 258 IterateShadowedVariables(newDecl->Name(), [](const Variable *v) { return !v->HasFlag(VariableFlags::VAR); }); in AddLocalVar() 266 return scope->InsertBinding(newDecl->Name(), allocator->New<GlobalVariable>(newDecl, varFlags)).first->second; in AddLocalVar() 269 return scope->PropagateBinding<LocalVariable>(allocator, newDecl->Name(), newDecl, varFlags); in AddLocalVar() 272 Variable *Scope::AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddLocal() argument 276 switch (newDecl->Type()) { in AddLocal() 278 return AddLocalVar(allocator, newDecl); in AddLocal() 281 return bindings_.insert({newDecl in AddLocal() 382 AddParam(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, VariableFlags flags) AddParam() argument 441 AddBinding([[maybe_unused]] ArenaAllocator *allocator, [[maybe_unused]] Variable *currentVariable, [[maybe_unused]] Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument 448 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument 497 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument 595 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument 654 AddImport(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl) AddImport() argument 758 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument 764 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument 870 SetBindingProps(Decl *newDecl, BindingProps *props, bool isStatic) SetBindingProps() argument 907 AddBinding(ArenaAllocator *allocator, [[maybe_unused]] Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument 1011 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument 1017 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument [all...] |
H A D | scope.h | 262 virtual Variable *AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, 305 Variable *AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, 308 Variable *AddLocalVar(ArenaAllocator *allocator, Decl *newDecl); 403 Variable *AddVar(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl); 406 Variable *AddFunction(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, 410 Variable *AddTSBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, VariableFlags flags); 413 Variable *AddLexical(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl); 446 Variable *AddParam(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, VariableFlags flags); 480 Variable *AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, 536 Variable *AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, 950 AddVar(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl) AddVar() argument 972 AddFunction(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddFunction() argument 998 AddTSBinding(ArenaAllocator *allocator, [[maybe_unused]] Variable *currentVariable, Decl *newDecl, VariableFlags flags) AddTSBinding() argument 1006 AddLexical(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl) AddLexical() argument [all...] |
/arkcompiler/ets_frontend/es2panda/binder/ |
H A D | scope.cpp | 423 bool Scope::AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddLocal() argument 427 switch (newDecl->Type()) { in AddLocal() 430 newDecl->Name(), [](const Variable *v) { return !v->HasFlag(VariableFlags::VAR); }); in AddLocal() 438 scope->Bindings().insert({newDecl->Name(), allocator->New<GlobalVariable>(newDecl, varFlags)}); in AddLocal() 440 scope->PropagateBinding<LocalVariable>(allocator, newDecl->Name(), newDecl, varFlags); in AddLocal() 447 newDecl->Name(), allocator->New<EnumLiteralVariable>(newDecl, VariableFlags::ENUM_LITERAL)); in AddLocal() 450 bindings_.insert({newDecl in AddLocal() 472 AddParam(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, VariableFlags flags) AddParam() argument 529 AddBinding([[maybe_unused]] ArenaAllocator *allocator, [[maybe_unused]] Variable *currentVariable, [[maybe_unused]] Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument 582 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument 665 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument 700 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument 762 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument 823 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument 843 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument 849 AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddBinding() argument [all...] |
H A D | scope.h | 350 virtual bool AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, 456 bool AddLocal(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, 595 bool AddVar(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl); 598 bool AddFunction(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, 602 bool AddClass(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl); 605 bool AddTSBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, VariableFlags flags); 608 bool AddTSBinding(ArenaAllocator *allocator, Decl *newDecl, VariableFlags flags); 611 bool AddLexical(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl); 655 bool AddParam(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, VariableFlags flags); 688 bool AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, 1218 AddVar(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl) AddVar() argument 1246 AddFunction(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, [[maybe_unused]] ScriptExtension extension) AddFunction() argument 1283 AddClass(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl) AddClass() argument 1304 AddTSBinding(ArenaAllocator *allocator, [[maybe_unused]] Variable *currentVariable, Decl *newDecl, VariableFlags flags) AddTSBinding() argument 1314 AddTSBinding(ArenaAllocator *allocator, Decl *newDecl, VariableFlags flags) AddTSBinding() argument 1341 AddLexical(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl) AddLexical() argument [all...] |
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
H A D | boxingForLocals.cpp | 147 auto *newDecl = allocator->New<varbinder::ConstDecl>(id->Name(), newDeclarator); in HandleFunctionParam() local 148 auto *newVar = allocator->New<varbinder::LocalVariable>(newDecl, oldVar->Flags()); in HandleFunctionParam() 199 auto *newDecl = allocator->New<varbinder::ConstDecl>(oldVar->Name(), newDeclarator); in HandleVariableDeclarator() local 200 auto *newVar = allocator->New<varbinder::LocalVariable>(newDecl, oldVar->Flags()); in HandleVariableDeclarator()
|
/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
H A D | utilityTypeHandlers.cpp | 172 varbinder::Decl *const newDecl = in CreateNullishProperty() member in ark::es2panda::checker::varbinder 177 propClone->SetVariable(Allocator()->New<varbinder::LocalVariable>(newDecl, varbinder::VariableFlags::PROPERTY)); in CreateNullishProperty() 493 auto *newDecl = Allocator()->New<varbinder::ReadonlyDecl>(property->Name(), property->Declaration()->Node()); in MakePropertiesReadonly() 494 auto *const propCopy = property->Copy(Allocator(), newDecl); in MakePropertiesReadonly()
|
/arkcompiler/ets_frontend/es2panda/parser/transformer/ |
H A D | transformer.cpp | 365 auto newDecl = VisitTSNode(decl); in VisitExportClassDeclaration() local 366 if (std::holds_alternative<ir::AstNode *>(newDecl)) { in VisitExportClassDeclaration() 367 auto statement = std::get<ir::AstNode *>(newDecl); in VisitExportClassDeclaration() 372 auto statements = std::get<std::vector<ir::AstNode *>>(newDecl); in VisitExportClassDeclaration() 1778 auto newDecl = VisitTSNode(decl); in VisitExportNamedVariable() local 1779 if (std::holds_alternative<ir::AstNode *>(newDecl)) { in VisitExportNamedVariable() 1780 res.push_back(std::get<ir::AstNode *>(newDecl)); in VisitExportNamedVariable() 1782 auto statements = std::get<std::vector<ir::AstNode *>>(newDecl); in VisitExportNamedVariable()
|