Home
last modified time | relevance | path

Searched refs:FunctionScope (Results 1 – 25 of 46) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/compiler/core/
DcompileJob.h27 class FunctionScope; variable
54 void SetContext(public_lib::Context *context, varbinder::FunctionScope *scope) in SetContext()
68 varbinder::FunctionScope *scope_ {};
DcodeGen.h73 … 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_ {};
DcompileQueue.h29 class FunctionScope; variable
DcodeGen.cpp39 const varbinder::FunctionScope *CodeGen::TopScope() const noexcept in TopScope()
/arkcompiler/ets_frontend/es2panda/ir/base/
DscriptFunction.h33 class FunctionScope; variable
42 explicit ScriptFunction(binder::FunctionScope *scope, ArenaVector<Expression *> &&params, in ScriptFunction()
206 binder::FunctionScope *Scope() const in Scope()
255 binder::FunctionScope *scope_;
DclassProperty.cpp94 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(binder, ctor->Scope()); in UpdateSelf()
DscriptFunction.cpp131 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(binder, scope_); in UpdateSelf()
/arkcompiler/ets_frontend/ets2panda/varbinder/
DrecordTable.h39 class FunctionScope; variable
98 ArenaVector<FunctionScope *> &Signatures()
103 const ArenaVector<FunctionScope *> &Signatures() const
167 ArenaVector<varbinder::FunctionScope *> signatures_;
Dvarbinder.h165 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>) {
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; 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 …]
Dvarbinder.cpp373 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()
DvariableFlags.h66 _(FUNCTION, FunctionScope) \
/arkcompiler/ets_frontend/es2panda/binder/
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; variable
666 FunctionScope *GetFunctionScope() const in GetFunctionScope()
671 void BindFunctionScope(FunctionScope *funcScope) in BindFunctionScope()
700 friend class FunctionScope; variable
705 FunctionScope *functionScope_ {};
[all …]
Dbinder.h91 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_;
Dscope.cpp59 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()
DvariableFlags.h59 _(FUNCTION, FunctionScope) \
Dbinder.cpp361 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/
DcompileQueue.h31 class FunctionScope; variable
45 binder::FunctionScope *Scope() const in Scope()
50 void SetFunctionScope(binder::FunctionScope *scope) in SetFunctionScope()
59 binder::FunctionScope *scope_ {};
Dpandagen.h33 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/
DscriptFunction.h297 [[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/
Dpublic.h42 …std::function<void(public_lib::Context *context, varbinder::FunctionScope *, compiler::ProgramElem…
/arkcompiler/ets_frontend/ets2panda/test/unit/public/
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()
/arkcompiler/ets_frontend/es2panda/parser/
Dcommonjs.cpp82 auto functionCtx = binder::LexicalScope<binder::FunctionScope>(Binder()); in ParseCommonjs()
DparserImpl.h316 … 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/
DinterfacePropertyDeclarations.cpp73 …auto *functionScope = checker->Allocator()->New<varbinder::FunctionScope>(checker->Allocator(), pa… in GenerateGetterOrSetter()

12