/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
H A D | compileJob.h | 27 class FunctionScope; 54 void SetContext(public_lib::Context *context, varbinder::FunctionScope *scope) in SetContext() 68 varbinder::FunctionScope *scope_ {};
|
H A D | codeGen.h | 73 std::tuple<varbinder::FunctionScope *, ProgramElement *, AstCompiler *> toCompile) noexcept 78 topScope_(std::get<varbinder::FunctionScope *>(toCompile)), 100 [[nodiscard]] const varbinder::FunctionScope *TopScope() const noexcept; 173 varbinder::FunctionScope *topScope_ {};
|
H A D | compileQueue.h | 29 class FunctionScope;
|
H A D | pandagen.h | 33 class FunctionScope; 52 std::tuple<varbinder::FunctionScope *, ProgramElement *, AstCompiler *> toCompile);
|
/arkcompiler/ets_frontend/ets2panda/varbinder/ |
H A D | recordTable.h | 39 class FunctionScope; 98 ArenaVector<FunctionScope *> &Signatures() in Signatures() 103 const ArenaVector<FunctionScope *> &Signatures() const in Signatures() 167 ArenaVector<varbinder::FunctionScope *> signatures_;
|
H A D | varbinder.h | 172 const ArenaVector<FunctionScope *> &Functions() const in Functions() 177 ArenaVector<FunctionScope *> &Functions() in Functions() 229 void LookUpMandatoryReferences(const FunctionScope *funcScope, bool needLexicalFuncObj); 249 void AddCompilableFunctionScope(varbinder::FunctionScope *funcScope); 272 ArenaVector<FunctionScope *> functionScopes_; 312 } else if constexpr (std::is_same_v<T, FunctionScope>) { in Enter()
|
H A 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; 458 FunctionScope *GetFunctionScope() const in GetFunctionScope() 463 void BindFunctionScope(FunctionScope *funcScope) in BindFunctionScope() 483 friend class FunctionScope; 488 FunctionScope *functionScope_ {}; 572 class FunctionScope class 574 explicit FunctionScope(ArenaAllocator *allocator, Scope *parent) FunctionScope() function in ark::es2panda::ark::es2panda::ark::es2panda::varbinder::FunctionScope [all...] |
H A D | varbinder.cpp | 374 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, ctor->Scope()); in BuildClassProperty() 494 void VarBinder::AddCompilableFunctionScope(varbinder::FunctionScope *funcScope) in AddCompilableFunctionScope() 521 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in VisitScriptFunction() 660 void VarBinder::LookUpMandatoryReferences(const FunctionScope *funcScope, bool needLexicalFuncObj) in LookUpMandatoryReferences() 694 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in AddMandatoryParams() 703 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in AddMandatoryParams()
|
H A D | variableFlags.h | 66 _(FUNCTION, FunctionScope) \
|
/arkcompiler/ets_frontend/es2panda/ir/base/ |
H A D | scriptFunction.h | 33 class FunctionScope; 42 explicit ScriptFunction(binder::FunctionScope *scope, ArenaVector<Expression *> &¶ms, in ScriptFunction() 206 binder::FunctionScope *Scope() const in Scope() 255 binder::FunctionScope *scope_;
|
H A D | classProperty.cpp | 94 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(binder, ctor->Scope()); in UpdateSelf()
|
H A D | scriptFunction.cpp | 131 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(binder, scope_); in UpdateSelf()
|
/arkcompiler/ets_frontend/es2panda/binder/ |
H A 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; 666 FunctionScope *GetFunctionScope() const in GetFunctionScope() 671 void BindFunctionScope(FunctionScope *funcScope) in BindFunctionScope() 700 friend class FunctionScope; 705 FunctionScope *functionScope 754 class FunctionScope : public ScopeWithParamScope<VariableScope, FunctionParamScope> { global() class 756 explicit FunctionScope(ArenaAllocator *allocator, Scope *parent) : ScopeWithParamScope(allocator, parent) {} FunctionScope() function in FunctionScope [all...] |
H A D | binder.h | 91 FunctionScope *TopScope() const in TopScope() 111 const ArenaVector<FunctionScope *> &Functions() const in Functions() 116 ArenaVector<FunctionScope *> Functions() in Functions() 206 void BuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction *func = nullptr); 207 void LegacyBuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction *func = nullptr); 231 FunctionScope *topScope_ {}; 233 ArenaVector<FunctionScope *> functionScopes_;
|
H A D | scope.cpp | 59 FunctionScope *Scope::EnclosingFunctionVariableScope() in EnclosingFunctionVariableScope() 542 // FunctionParam should have the same name with FunctionScope in GetFullScopeName() 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()
|
H A D | binder.cpp | 374 void Binder::BuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction *func) in BuildFunction() 393 void Binder::LegacyBuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction *func) in LegacyBuildFunction() 816 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in ResolveReference() 843 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, ctor->Scope()); in ResolveReference() 854 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, method->Function()->Scope()); in ResolveReference() 985 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in AddMandatoryParams()
|
H A D | variableFlags.h | 59 _(FUNCTION, FunctionScope) \
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
H A D | compileQueue.h | 31 class FunctionScope; 45 binder::FunctionScope *Scope() const in Scope() 50 void SetFunctionScope(binder::FunctionScope *scope) in SetFunctionScope() 59 binder::FunctionScope *scope_ {};
|
H A D | pandagen.h | 33 class FunctionScope; 81 explicit PandaGen(ArenaAllocator *allocator, CompilerContext *context, binder::FunctionScope *scope) in PandaGen() 120 binder::FunctionScope *TopScope() const in TopScope() 529 binder::FunctionScope *topScope_;
|
/arkcompiler/ets_frontend/ets2panda/ir/base/ |
H A D | scriptFunction.h | 297 [[nodiscard]] varbinder::FunctionScope *Scope() const noexcept override 302 void SetScope(varbinder::FunctionScope *scope) noexcept 338 varbinder::FunctionScope *scope_ {nullptr};
|
/arkcompiler/ets_frontend/ets2panda/public/ |
H A D | public.h | 42 std::function<void(public_lib::Context *context, varbinder::FunctionScope *, compiler::ProgramElement *)>;
|
/arkcompiler/ets_frontend/ets2panda/test/unit/public/ |
H A 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()
|
H A D | ast_verifier_check_scope_declaration_test.cpp | 27 TEST_F(ASTVerifierTest, FunctionScope) in TEST_F()
|
/arkcompiler/ets_frontend/es2panda/parser/ |
H A D | commonjs.cpp | 82 auto functionCtx = binder::LexicalScope<binder::FunctionScope>(Binder()); in ParseCommonjs()
|
H A D | parserImpl.h | 318 std::pair<binder::FunctionScope *, binder::FunctionScope *> implicitScopes); 329 std::pair<binder::FunctionScope *, binder::FunctionScope *> implicitScopes); 401 binder::FunctionScope *functionScope,
|