Home
last modified time | relevance | path

Searched refs:loopScope (Results 1 – 11 of 11) sorted by relevance

/arkcompiler/ets_frontend/ts2panda/src/statement/
DloopStatement.ts39 let loopScope = <LoopScope>compiler.getRecorder().getScopeOfNode(stmt);
40 let needCreateLoopEnv: boolean = loopScope.need2CreateLexEnv() ? true : false;
52 pandaGen.createLexEnv(stmt, loopScope);
79 let loopScope = <LoopScope>compiler.getRecorder().getScopeOfNode(stmt);
80 let needCreateLoopEnv: boolean = loopScope.need2CreateLexEnv() ? true : false;
90 pandaGen.createLexEnv(stmt, loopScope);
117 let loopScope = <LoopScope>compiler.getRecorder().getScopeOfNode(stmt);
118 let needCreateLoopEnv: boolean = loopScope.need2CreateLexEnv();
123 loopScope.getName2variable().forEach(v => {
139 pandaGen.createLexEnv(stmt, loopScope);
[all …]
DforOfStatement.ts66 let loopScope = <LoopScope>compiler.getRecorder().getScopeOfNode(stmt);
67 let needCreateLoopEnv: boolean = loopScope.need2CreateLexEnv();
74 pandaGen.createLexEnv(stmt, loopScope);
DtryStatement.ts283 let loopScope = <LoopScope>compiler.getRecorder().getScopeOfNode(stmt);
290 pandaGen.createLexEnv(stmt, loopScope);
/arkcompiler/ets_frontend/es2panda/ir/statements/
DforUpdateStatement.cpp111 auto *loopScope = Scope(); in UpdateSelf() local
112 auto loopCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, loopScope); in UpdateSelf()
DforInStatement.cpp109 auto *loopScope = Scope(); in UpdateSelf() local
110 auto loopCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, loopScope); in UpdateSelf()
DforOfStatement.cpp109 auto *loopScope = Scope(); in UpdateSelf() local
110 auto loopCtx = binder::LexicalScope<binder::LoopScope>::Enter(binder, loopScope); in UpdateSelf()
/arkcompiler/ets_frontend/es2panda/binder/
Dbinder.cpp582 auto *loopScope = forUpdateStmt->Scope(); in BuildForUpdateLoop() local
584 auto loopCtx = LexicalScope<LoopScope>::Enter(this, loopScope); in BuildForUpdateLoop()
603 void Binder::BuildForInOfLoop(const ir::Statement *parent, binder::LoopScope *loopScope, ir::AstNod… in BuildForInOfLoop() argument
606 auto loopCtx = LexicalScope<LoopScope>::Enter(this, loopScope); in BuildForInOfLoop()
Dbinder.h207 …void BuildForInOfLoop(const ir::Statement *parent, binder::LoopScope *loopScope, ir::AstNode *left,
/arkcompiler/ets_frontend/ts2panda/src/
Drecorder.ts167 let loopScope: LoopScope = new LoopScope(scope);;
168 this.setScopeMap(childNode, loopScope);
169 this.recordInfo(childNode, loopScope);
Dcompiler.ts697 let loopScope = <LoopScope>this.getRecorder().getScopeOfNode(node);
698 let needCreateLoopEnv = loopScope.need2CreateLexEnv();
/arkcompiler/ets_frontend/es2panda/parser/
DstatementParser.cpp1541 auto *loopScope = iterCtx.LexicalScope().GetScope(); in ParseForStatement() local
1544 …forStatement = AllocNode<ir::ForUpdateStatement>(loopScope, initNode, rightNode, updateNode, bodyN… in ParseForStatement()
1546 forStatement = AllocNode<ir::ForInStatement>(loopScope, initNode, rightNode, bodyNode); in ParseForStatement()
1548 … forStatement = AllocNode<ir::ForOfStatement>(loopScope, initNode, rightNode, bodyNode, isAwait); in ParseForStatement()
1552 loopScope->BindNode(forStatement); in ParseForStatement()