| /arkcompiler/ets_frontend/ts2panda/tests/ |
| D | scope.test.ts | 21 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/ |
| D | compileJob.h | 27 class FunctionScope; variable 51 void SetContext(CompilerContext *context, varbinder::FunctionScope *scope) in SetContext() 65 varbinder::FunctionScope *scope_ {};
|
| D | compilerContext.h | 27 class FunctionScope; variable 45 …std::function<void(compiler::CompilerContext *context, varbinder::FunctionScope *, compiler::Progr…
|
| D | codeGen.h | 73 …varbinder::FunctionScope *scope, ProgramElement *programElement, AstCompiler *astcompiler) noexcept in CodeGen() 100 [[nodiscard]] const varbinder::FunctionScope *TopScope() const noexcept; 173 varbinder::FunctionScope *topScope_ {};
|
| D | compileQueue.h | 29 class FunctionScope; variable
|
| /arkcompiler/ets_frontend/es2panda/compiler/core/ |
| D | compileQueue.h | 29 class FunctionScope; variable 43 binder::FunctionScope *Scope() const in Scope() 48 void SetFunctionScope(binder::FunctionScope *scope) in SetFunctionScope() 57 binder::FunctionScope *scope_ {};
|
| D | pandagen.h | 32 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/ |
| D | recordTable.h | 39 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()
|
| D | scope.h | 109 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 …]
|
| D | varbinder.h | 156 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>) {
|
| D | varbinder.cpp | 372 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()
|
| D | variableFlags.h | 63 _(FUNCTION, FunctionScope) \
|
| /arkcompiler/ets_frontend/es2panda/ir/base/ |
| D | scriptFunction.h | 33 class FunctionScope; variable 42 explicit ScriptFunction(binder::FunctionScope *scope, ArenaVector<Expression *> &¶ms, in ScriptFunction() 196 binder::FunctionScope *Scope() const in Scope() 240 binder::FunctionScope *scope_;
|
| D | classProperty.cpp | 93 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/es2panda/binder/ |
| D | scope.h | 216 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 …]
|
| D | binder.h | 91 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_;
|
| D | variableFlags.h | 58 _(FUNCTION, FunctionScope) \
|
| D | binder.cpp | 360 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/ |
| D | hoisting.ts | 25 FunctionScope, 59 } else if (scope instanceof FunctionScope || scope instanceof ModuleScope) { 80 …} else if ((scope instanceof FunctionScope) || (scope instanceof LocalScope) || (scope instanceof …
|
| D | recorder.ts | 37 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/ |
| D | variableDeclaration.test.ts | 34 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/ |
| D | scriptFunction.h | 284 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/ |
| D | dynamic.cpp | 90 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/ |
| D | commonjs.cpp | 82 auto functionCtx = binder::LexicalScope<binder::FunctionScope>(Binder()); in ParseCommonjs()
|