Home
last modified time | relevance | path

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

123

/arkcompiler/ets_frontend/ts2panda/tests/
Dscope.test.ts21 FunctionScope,
81 let scope = new FunctionScope(globalScope);
91 let scope = new FunctionScope();
101 let scope = new FunctionScope();
111 let scope = new FunctionScope();
122 let scope = new FunctionScope(globalScope);
141 let parent = new FunctionScope();
156 let parent = new FunctionScope();
169 let parent = new FunctionScope();
183 let parent = new FunctionScope(global);
[all …]
/arkcompiler/ets_frontend/ets2panda/compiler/core/
DcompileJob.h27 class FunctionScope; variable
51 void SetContext(CompilerContext *context, varbinder::FunctionScope *scope) in SetContext()
65 varbinder::FunctionScope *scope_ {};
DcompilerContext.h27 class FunctionScope; variable
45 …std::function<void(compiler::CompilerContext *context, varbinder::FunctionScope *, compiler::Progr…
DcodeGen.h73 …varbinder::FunctionScope *scope, ProgramElement *programElement, AstCompiler *astcompiler) noexcept in CodeGen()
100 [[nodiscard]] const varbinder::FunctionScope *TopScope() const noexcept;
173 varbinder::FunctionScope *topScope_ {};
DcompileQueue.h29 class FunctionScope; variable
/arkcompiler/ets_frontend/es2panda/compiler/core/
DcompileQueue.h29 class FunctionScope; variable
43 binder::FunctionScope *Scope() const in Scope()
48 void SetFunctionScope(binder::FunctionScope *scope) in SetFunctionScope()
57 binder::FunctionScope *scope_ {};
Dpandagen.h32 class FunctionScope; variable
79 …explicit PandaGen(ArenaAllocator *allocator, CompilerContext *context, binder::FunctionScope *scop… in PandaGen()
120 binder::FunctionScope *TopScope() const in TopScope()
554 binder::FunctionScope *topScope_;
/arkcompiler/ets_frontend/ets2panda/varbinder/
DrecordTable.h39 class FunctionScope; variable
90 ArenaVector<FunctionScope *> &Signatures() in DEFINE_BITOPS()
95 const ArenaVector<FunctionScope *> &Signatures() const in DEFINE_BITOPS()
159 ArenaVector<varbinder::FunctionScope *> signatures_; in DEFINE_BITOPS()
Dscope.h109 FunctionScope *AsFunctionVariableScope() in AsFunctionVariableScope()
112 return reinterpret_cast<FunctionScope *>(this); in AsFunctionVariableScope()
115 const FunctionScope *AsFunctionVariableScope() const in AsFunctionVariableScope()
118 return reinterpret_cast<const FunctionScope *>(this); in AsFunctionVariableScope()
436 class FunctionScope; variable
442 FunctionScope *GetFunctionScope() const in GetFunctionScope()
447 void BindFunctionScope(FunctionScope *funcScope) in BindFunctionScope()
467 friend class FunctionScope; variable
472 FunctionScope *functionScope_ {};
510 class FunctionScope : public ScopeWithParamScope<VariableScope, FunctionParamScope> {
[all …]
Dvarbinder.h156 const ArenaVector<FunctionScope *> &Functions() const in Functions()
161 ArenaVector<FunctionScope *> &Functions() in Functions()
209 void LookUpMandatoryReferences(const FunctionScope *funcScope, bool needLexicalFuncObj);
231 void AddCompilableFunctionScope(varbinder::FunctionScope *funcScope);
254 ArenaVector<FunctionScope *> functionScopes_;
294 } else if constexpr (std::is_same_v<T, FunctionScope>) {
Dvarbinder.cpp372 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, ctor->Scope()); in BuildClassProperty()
490 void VarBinder::AddCompilableFunctionScope(varbinder::FunctionScope *funcScope) in AddCompilableFunctionScope()
516 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in VisitScriptFunction()
649 void VarBinder::LookUpMandatoryReferences(const FunctionScope *funcScope, bool needLexicalFuncObj) in LookUpMandatoryReferences()
682 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in AddMandatoryParams()
691 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in AddMandatoryParams()
DvariableFlags.h63 _(FUNCTION, FunctionScope) \
/arkcompiler/ets_frontend/es2panda/ir/base/
DscriptFunction.h33 class FunctionScope; variable
42 explicit ScriptFunction(binder::FunctionScope *scope, ArenaVector<Expression *> &&params, in ScriptFunction()
196 binder::FunctionScope *Scope() const in Scope()
240 binder::FunctionScope *scope_;
DclassProperty.cpp93 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/es2panda/binder/
Dscope.h216 FunctionScope *AsFunctionVariableScope() in AsFunctionVariableScope()
219 return reinterpret_cast<FunctionScope *>(this); in AsFunctionVariableScope()
222 const FunctionScope *AsFunctionVariableScope() const in AsFunctionVariableScope()
225 return reinterpret_cast<const FunctionScope *>(this); in AsFunctionVariableScope()
242 FunctionScope *EnclosingFunctionVariableScope();
527 class FunctionScope; variable
533 FunctionScope *GetFunctionScope() const in GetFunctionScope()
538 void BindFunctionScope(FunctionScope *funcScope) in BindFunctionScope()
564 friend class FunctionScope; variable
569 FunctionScope *functionScope_ {};
[all …]
Dbinder.h91 FunctionScope *TopScope() const in TopScope()
110 const ArenaVector<FunctionScope *> &Functions() const in Functions()
115 ArenaVector<FunctionScope *> Functions() in Functions()
200 …void BuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction *func…
224 FunctionScope *topScope_ {};
226 ArenaVector<FunctionScope *> functionScopes_;
DvariableFlags.h58 _(FUNCTION, FunctionScope) \
Dbinder.cpp360 void Binder::BuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunctio… in BuildFunction()
731 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in ResolveReference()
755 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, ctor->Scope()); in ResolveReference()
766 … auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, method->Function()->Scope()); in ResolveReference()
897 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in AddMandatoryParams()
/arkcompiler/ets_frontend/ts2panda/src/
Dhoisting.ts25 FunctionScope,
59 } else if (scope instanceof FunctionScope || scope instanceof ModuleScope) {
80 …} else if ((scope instanceof FunctionScope) || (scope instanceof LocalScope) || (scope instanceof …
Drecorder.ts37 FunctionScope,
279 buildVariableScope(curScope: Scope, node: ts.FunctionLikeDeclaration): FunctionScope {
280 let functionScope = new FunctionScope(curScope, <ts.FunctionLikeDeclaration>node);
631 … if ((hoistScope instanceof FunctionScope) && isFunctionLikeDeclaration(node.parent.parent)) {
698 (<FunctionScope>this.getScopeOfNode(node)).setFuncName(name);
735 (<FunctionScope>this.getScopeOfNode(node)).setParameterLength(length);
766 if (scope instanceof FunctionScope) {
/arkcompiler/ets_frontend/ts2panda/tests/statements/
DvariableDeclaration.test.ts34 FunctionScope,
169 let functionScope = <FunctionScope>funcPg!.getScope();
188 let functionScope = <FunctionScope>funcPg!.getScope();
205 let functionScope = <FunctionScope>funcPg!.getScope();
/arkcompiler/ets_frontend/ets2panda/ir/base/
DscriptFunction.h284 varbinder::FunctionScope *Scope() const override in Scope()
289 void SetScope(varbinder::FunctionScope *scope) in SetScope()
321 varbinder::FunctionScope *scope_ {nullptr};
/arkcompiler/ets_frontend/ets2panda/checker/ets/
Ddynamic.cpp90 auto *scope = Allocator()->New<varbinder::FunctionScope>(Allocator(), paramScope); in CreateDynamicCallIntrinsic()
214 auto *scope = Allocator()->New<varbinder::FunctionScope>(Allocator(), paramScope); in CreateClassInitializer()
280 …classScope, [this, lang, isConstruct](varbinder::FunctionScope *scope, ArenaVector<ir::Statement *… in CreateDynamicCallClassInitializer()
394 …classScope, [this, imports](varbinder::FunctionScope *scope, ArenaVector<ir::Statement *> *stateme… in CreateDynamicModuleClassInitializer()
438 auto *scope = Allocator()->New<varbinder::FunctionScope>(Allocator(), paramScope); in CreateClassMethod()
499 [this]([[maybe_unused]] varbinder::FunctionScope *scope, in CreateDynamicModuleClassInitMethod()
512 … retTypeAnnotation](varbinder::FunctionScope *scope, ArenaVector<ir::Statement *> *statements, in CreateLambdaObjectClassInvokeMethod()
639 … [this, classScope](varbinder::FunctionScope *scope, ArenaVector<ir::Statement *> *statements, in CreateLambdaObjectClassInitializer()
/arkcompiler/ets_frontend/es2panda/parser/
Dcommonjs.cpp82 auto functionCtx = binder::LexicalScope<binder::FunctionScope>(Binder()); in ParseCommonjs()

123