| /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 …]
|
| D | lexenv.test.ts | 47 FunctionScope, 495 …expect((<FunctionScope>outerScope).getNumLexEnv(), "number of lexvar at outer scope").to.be.equal(…
|
| /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() 510 binder::FunctionScope *topScope_;
|
| /arkcompiler/ets_frontend/es2panda/ir/base/ |
| D | scriptFunction.h | 33 class FunctionScope; variable 42 explicit ScriptFunction(binder::FunctionScope *scope, ArenaVector<Expression *> &¶ms, in ScriptFunction() 186 binder::FunctionScope *Scope() const in Scope() 216 binder::FunctionScope *scope_;
|
| D | classProperty.cpp | 92 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 | 194 FunctionScope *AsFunctionVariableScope() in AsFunctionVariableScope() 197 return reinterpret_cast<FunctionScope *>(this); in AsFunctionVariableScope() 200 const FunctionScope *AsFunctionVariableScope() const in AsFunctionVariableScope() 203 return reinterpret_cast<const FunctionScope *>(this); in AsFunctionVariableScope() 220 FunctionScope *EnclosingFunctionVariableScope(); 491 class FunctionScope; variable 497 FunctionScope *GetFunctionScope() const in GetFunctionScope() 502 void BindFunctionScope(FunctionScope *funcScope) in BindFunctionScope() 528 friend class FunctionScope; variable 533 FunctionScope *functionScope_ {}; [all …]
|
| D | binder.h | 90 FunctionScope *TopScope() const in TopScope() 109 const ArenaVector<FunctionScope *> &Functions() const in Functions() 114 ArenaVector<FunctionScope *> Functions() in Functions() 199 …void BuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction *func… 222 FunctionScope *topScope_ {}; 224 ArenaVector<FunctionScope *> functionScopes_;
|
| D | variableFlags.h | 57 _(FUNCTION, FunctionScope) \
|
| D | binder.cpp | 344 void Binder::BuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunctio… in BuildFunction() 691 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in ResolveReference() 710 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, ctor->Scope()); in ResolveReference() 841 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope); in AddMandatoryParams()
|
| D | scope.cpp | 54 FunctionScope *Scope::EnclosingFunctionVariableScope() in EnclosingFunctionVariableScope() 302 bool FunctionScope::AddBinding(ArenaAllocator *allocator, Variable *currentVariable, Decl *newDecl, in AddBinding()
|
| /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) {
|
| D | compilerDriver.ts | 39 FunctionScope, 410 name = (<FunctionScope>recorder.getScopeOfNode(funcNode)).getFuncName();
|
| D | pandagen.ts | 184 FunctionScope, 366 if (this.scope instanceof FunctionScope) { 372 if (this.scope instanceof FunctionScope) { 536 if (this.scope instanceof FunctionScope) {
|
| D | scope.ts | 464 export class FunctionScope extends VariableScope { class
|
| D | compiler.ts | 79 FunctionScope, 303 if (scope instanceof FunctionScope) {
|
| D | syntaxChecker.ts | 34 FunctionScope, 100 while (!(parentScope 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/es2panda/parser/ |
| D | commonjs.cpp | 82 auto functionCtx = binder::LexicalScope<binder::FunctionScope>(Binder()); in ParseCommonjs()
|
| D | expressionParser.cpp | 355 … binder::FunctionScope *functionScope, in ParseArrowFunctionExpressionBody() 478 auto functionCtx = binder::LexicalScope<binder::FunctionScope>(Binder()); in ParseArrowFunctionExpression() 518 auto functionCtx = binder::LexicalScope<binder::FunctionScope>(Binder()); in ParseTsGenericArrowFunction()
|
| /arkcompiler/ets_frontend/ts2panda/src/statement/ |
| D | classStatement.ts | 45 FunctionScope, 407 let curFuncScope = <FunctionScope>recorder.getScopeOfNode(nearestFunc); 419 curFuncScope = <FunctionScope>curFuncScope.getParentVariableScope();
|
| /arkcompiler/ets_frontend/es2panda/compiler/function/ |
| D | functionBuilder.cpp | 114 binder::FunctionScope *scope = node->Scope(); in FunctionReg()
|
| /arkcompiler/ets_frontend/es2panda/parser/transformer/ |
| D | transformer.cpp | 599 …auto ctorScopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(Binder(), node->Ctor()->Fun… in VisitInstanceProperty() 1419 binder::FunctionScope *funcScope = node->Scope(); in CreateCallExpressionForTsModule() 1432 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(Binder(), funcScope); in CreateCallExpressionForTsModule() 1558 binder::FunctionScope *funcScope = node->Scope(); in CreateCallExpressionForTsEnum() 1571 auto scopeCtx = binder::LexicalScope<binder::FunctionScope>::Enter(Binder(), funcScope); in CreateCallExpressionForTsEnum()
|