| /arkcompiler/ets_frontend/ets2panda/compiler/core/ |
| D | compileJob.h | 27 class FunctionScope; variable 54 void SetContext(public_lib::Context *context, varbinder::FunctionScope *scope) in SetContext() 68 varbinder::FunctionScope *scope_ {};
|
| D | codeGen.h | 73 … std::tuple<varbinder::FunctionScope *, ProgramElement *, AstCompiler *> toCompile) noexcept in CodeGen() argument 78 topScope_(std::get<varbinder::FunctionScope *>(toCompile)), in CodeGen() 100 [[nodiscard]] const varbinder::FunctionScope *TopScope() const noexcept; 173 varbinder::FunctionScope *topScope_ {};
|
| D | compileQueue.h | 29 class FunctionScope; variable
|
| D | codeGen.cpp | 39 const varbinder::FunctionScope *CodeGen::TopScope() const noexcept in TopScope()
|
| /arkcompiler/ets_frontend/es2panda/ir/base/ |
| D | scriptFunction.h | 33 class FunctionScope; variable 42 explicit ScriptFunction(binder::FunctionScope *scope, ArenaVector<Expression *> &¶ms, in ScriptFunction() 206 binder::FunctionScope *Scope() const in Scope() 255 binder::FunctionScope *scope_;
|
| D | classProperty.cpp | 94 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(binder, ctor->Scope()); in UpdateSelf()
|
| D | scriptFunction.cpp | 131 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(binder, scope_); in UpdateSelf()
|
| /arkcompiler/ets_frontend/ets2panda/varbinder/ |
| D | recordTable.h | 39 class FunctionScope; variable 98 ArenaVector<FunctionScope *> &Signatures() 103 const ArenaVector<FunctionScope *> &Signatures() const 167 ArenaVector<varbinder::FunctionScope *> signatures_;
|
| D | varbinder.h | 165 const ArenaVector<FunctionScope *> &Functions() const in Functions() 170 ArenaVector<FunctionScope *> &Functions() in Functions() 222 void LookUpMandatoryReferences(const FunctionScope *funcScope, bool needLexicalFuncObj); 242 void AddCompilableFunctionScope(varbinder::FunctionScope *funcScope); 265 ArenaVector<FunctionScope *> functionScopes_; 305 } else if constexpr (std::is_same_v<T, FunctionScope>) {
|
| D | scope.h | 112 FunctionScope *AsFunctionVariableScope() in AsFunctionVariableScope() 115 return reinterpret_cast<FunctionScope *>(this); in AsFunctionVariableScope() 118 const FunctionScope *AsFunctionVariableScope() const in AsFunctionVariableScope() 121 return reinterpret_cast<const FunctionScope *>(this); in AsFunctionVariableScope() 452 class FunctionScope; variable 458 FunctionScope *GetFunctionScope() const in GetFunctionScope() 463 void BindFunctionScope(FunctionScope *funcScope) in BindFunctionScope() 483 friend class FunctionScope; variable 488 FunctionScope *functionScope_ {}; 572 class FunctionScope : public ScopeWithParamScope<VariableScope, FunctionParamScope> { [all …]
|
| D | varbinder.cpp | 373 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, ctor->Scope()); in BuildClassProperty() 493 void VarBinder::AddCompilableFunctionScope(varbinder::FunctionScope *funcScope) in AddCompilableFunctionScope() 520 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in VisitScriptFunction() 659 void VarBinder::LookUpMandatoryReferences(const FunctionScope *funcScope, bool needLexicalFuncObj) in LookUpMandatoryReferences() 693 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in AddMandatoryParams() 702 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in AddMandatoryParams()
|
| D | variableFlags.h | 66 _(FUNCTION, FunctionScope) \
|
| /arkcompiler/ets_frontend/es2panda/binder/ |
| D | scope.h | 225 FunctionScope *AsFunctionVariableScope() in AsFunctionVariableScope() 228 return reinterpret_cast<FunctionScope *>(this); in AsFunctionVariableScope() 231 const FunctionScope *AsFunctionVariableScope() const in AsFunctionVariableScope() 234 return reinterpret_cast<const FunctionScope *>(this); in AsFunctionVariableScope() 251 FunctionScope *EnclosingFunctionVariableScope(); 660 class FunctionScope; variable 666 FunctionScope *GetFunctionScope() const in GetFunctionScope() 671 void BindFunctionScope(FunctionScope *funcScope) in BindFunctionScope() 700 friend class FunctionScope; variable 705 FunctionScope *functionScope_ {}; [all …]
|
| D | binder.h | 91 FunctionScope *TopScope() const in TopScope() 110 const ArenaVector<FunctionScope *> &Functions() const in Functions() 115 ArenaVector<FunctionScope *> Functions() in Functions() 205 …void BuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction *func… 206 …void LegacyBuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction… 231 FunctionScope *topScope_ {}; 233 ArenaVector<FunctionScope *> functionScopes_;
|
| D | scope.cpp | 59 FunctionScope *Scope::EnclosingFunctionVariableScope() in EnclosingFunctionVariableScope() 564 void FunctionScope::BindNameWithScopeInfo(util::StringView name, util::StringView recordName) in BindNameWithScopeInfo() 582 bool FunctionScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddBinding() 613 void FunctionScope::SetSelfScopeName(const util::StringView &ident) in SetSelfScopeName() 621 util::StringView FunctionScope::GetScopeTag() in GetScopeTag() 637 util::StringView FunctionScope::GetSelfScopeName() in GetSelfScopeName() 675 FunctionScope::SetSelfScopeName(GetSelfScopeName()); in SetSelfScopeName()
|
| D | variableFlags.h | 59 _(FUNCTION, FunctionScope) \
|
| D | binder.cpp | 361 void Binder::BuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunctio… in BuildFunction() 380 void Binder::LegacyBuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptF… in LegacyBuildFunction() 788 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in ResolveReference() 812 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, ctor->Scope()); in ResolveReference() 826 … auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, method->Function()->Scope()); in ResolveReference() 957 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in AddMandatoryParams()
|
| /arkcompiler/ets_frontend/es2panda/compiler/core/ |
| D | compileQueue.h | 31 class FunctionScope; variable 45 binder::FunctionScope *Scope() const in Scope() 50 void SetFunctionScope(binder::FunctionScope *scope) in SetFunctionScope() 59 binder::FunctionScope *scope_ {};
|
| D | pandagen.h | 33 class FunctionScope; variable 81 …explicit PandaGen(ArenaAllocator *allocator, CompilerContext *context, binder::FunctionScope *scop… in PandaGen() 120 binder::FunctionScope *TopScope() const in TopScope() 528 binder::FunctionScope *topScope_;
|
| /arkcompiler/ets_frontend/ets2panda/ir/base/ |
| D | scriptFunction.h | 297 [[nodiscard]] varbinder::FunctionScope *Scope() const noexcept override in Scope() 302 void SetScope(varbinder::FunctionScope *scope) noexcept in SetScope() 338 varbinder::FunctionScope *scope_ {nullptr};
|
| /arkcompiler/ets_frontend/ets2panda/public/ |
| D | public.h | 42 …std::function<void(public_lib::Context *context, varbinder::FunctionScope *, compiler::ProgramElem…
|
| /arkcompiler/ets_frontend/ets2panda/test/unit/public/ |
| D | ast_verifier_short_test.cpp | 46 using ark::es2panda::varbinder::FunctionScope; 121 FunctionScope parentScope(Allocator(), nullptr); in TEST_F() 144 FunctionScope parentScope(Allocator(), nullptr); in TEST_F()
|
| /arkcompiler/ets_frontend/es2panda/parser/ |
| D | commonjs.cpp | 82 auto functionCtx = binder::LexicalScope<binder::FunctionScope>(Binder()); in ParseCommonjs()
|
| D | parserImpl.h | 316 … std::pair<binder::FunctionScope *, binder::FunctionScope *> implicitScopes); in DEFINE_BITOPS() 327 … std::pair<binder::FunctionScope *, binder::FunctionScope *> implicitScopes); in DEFINE_BITOPS() 399 … binder::FunctionScope *functionScope, in DEFINE_BITOPS()
|
| /arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
| D | interfacePropertyDeclarations.cpp | 73 …auto *functionScope = checker->Allocator()->New<varbinder::FunctionScope>(checker->Allocator(), pa… in GenerateGetterOrSetter()
|