Home
last modified time | relevance | path

Searched refs:FunctionScope (Results 1 - 25 of 47) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A DcompileJob.h27 class FunctionScope;
54 void SetContext(public_lib::Context *context, varbinder::FunctionScope *scope) in SetContext()
68 varbinder::FunctionScope *scope_ {};
H A DcodeGen.h73 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 DcompileQueue.h29 class FunctionScope;
H A Dpandagen.h33 class FunctionScope;
52 std::tuple<varbinder::FunctionScope *, ProgramElement *, AstCompiler *> toCompile);
/arkcompiler/ets_frontend/ets2panda/varbinder/
H A DrecordTable.h39 class FunctionScope;
98 ArenaVector<FunctionScope *> &Signatures() in Signatures()
103 const ArenaVector<FunctionScope *> &Signatures() const in Signatures()
167 ArenaVector<varbinder::FunctionScope *> signatures_;
H A Dvarbinder.h172 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 Dscope.h112 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 Dvarbinder.cpp374 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 DvariableFlags.h66 _(FUNCTION, FunctionScope) \
/arkcompiler/ets_frontend/es2panda/ir/base/
H A DscriptFunction.h33 class FunctionScope;
42 explicit ScriptFunction(binder::FunctionScope *scope, ArenaVector<Expression *> &&params, in ScriptFunction()
206 binder::FunctionScope *Scope() const in Scope()
255 binder::FunctionScope *scope_;
H A DclassProperty.cpp94 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(binder, ctor->Scope()); in UpdateSelf()
H A DscriptFunction.cpp131 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(binder, scope_); in UpdateSelf()
/arkcompiler/ets_frontend/es2panda/binder/
H A Dscope.h225 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 Dbinder.h91 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 Dscope.cpp59 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 Dbinder.cpp374 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 DvariableFlags.h59 _(FUNCTION, FunctionScope) \
/arkcompiler/ets_frontend/es2panda/compiler/core/
H A DcompileQueue.h31 class FunctionScope;
45 binder::FunctionScope *Scope() const in Scope()
50 void SetFunctionScope(binder::FunctionScope *scope) in SetFunctionScope()
59 binder::FunctionScope *scope_ {};
H A Dpandagen.h33 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 DscriptFunction.h297 [[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 Dpublic.h42 std::function<void(public_lib::Context *context, varbinder::FunctionScope *, compiler::ProgramElement *)>;
/arkcompiler/ets_frontend/ets2panda/test/unit/public/
H A Dast_verifier_short_test.cpp46 using ark::es2panda::varbinder::FunctionScope;
121 FunctionScope parentScope(Allocator(), nullptr); in TEST_F()
144 FunctionScope parentScope(Allocator(), nullptr); in TEST_F()
H A Dast_verifier_check_scope_declaration_test.cpp27 TEST_F(ASTVerifierTest, FunctionScope) in TEST_F()
/arkcompiler/ets_frontend/es2panda/parser/
H A Dcommonjs.cpp82 auto functionCtx = binder::LexicalScope<binder::FunctionScope>(Binder()); in ParseCommonjs()
H A DparserImpl.h318 std::pair<binder::FunctionScope *, binder::FunctionScope *> implicitScopes);
329 std::pair<binder::FunctionScope *, binder::FunctionScope *> implicitScopes);
401 binder::FunctionScope *functionScope,

Completed in 18 milliseconds

12