Home
last modified time | relevance | path

Searched refs:whileStatement (Results 1 - 5 of 5) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DobjectIterator.cpp103 std::string whileStatement = "let @@I1 = (@@E2)." + std::string {compiler::Signatures::ITERATOR_METHOD} + "(); "; in ProcessObjectIterator() local
104 whileStatement += "let @@I3 = @@I4.next(); "; in ProcessObjectIterator()
105 whileStatement += "while (!@@I5.done) { "; in ProcessObjectIterator()
109 whileStatement += in ProcessObjectIterator()
119 whileStatement += loopVariableName + " = @@I6.value!; "; in ProcessObjectIterator()
121 whileStatement += "@@I7 = @@I8.next(); }"; in ProcessObjectIterator()
125 whileStatement, iterIdent, forOfStatement->Right(), nextIdent, iterIdent->Clone(allocator, nullptr), in ProcessObjectIterator()
/arkcompiler/ets_frontend/ets2panda/varbinder/
H A Dvarbinder.cpp48 #include "ir/statements/whileStatement.h"
601 auto *whileStatement = childNode->AsWhileStatement(); in ResolveReference() local
602 ResolveReference(whileStatement->Test()); in ResolveReference()
604 auto loopScopeCtx = LexicalScope<LoopScope>::Enter(this, whileStatement->Scope()); in ResolveReference()
605 ResolveReference(whileStatement->Body()); in ResolveReference()
/arkcompiler/ets_frontend/es2panda/binder/
H A Dbinder.cpp50 #include "ir/statements/whileStatement.h"
891 auto *whileStatement = childNode->AsWhileStatement(); in ResolveReference() local
892 ResolveReference(whileStatement, whileStatement->Test()); in ResolveReference()
894 auto loopScopeCtx = LexicalScope<LoopScope>::Enter(this, whileStatement->Scope()); in ResolveReference()
895 ResolveReference(whileStatement, whileStatement->Body()); in ResolveReference()
/arkcompiler/ets_frontend/ets2panda/parser/
H A DstatementParser.cpp60 #include "ir/statements/whileStatement.h"
1458 auto *whileStatement = AllocNode<ir::WhileStatement>(test, body); in ParseWhileStatement() local
1459 whileStatement->SetRange({startLoc, endLoc}); in ParseWhileStatement()
1461 return whileStatement; in ParseWhileStatement()
/arkcompiler/ets_frontend/es2panda/parser/
H A DstatementParser.cpp61 #include <ir/statements/whileStatement.h>
2218 auto *whileStatement = AllocNode<ir::WhileStatement>(iterCtx.LexicalScope().GetScope(), test, body); in ParseWhileStatement() local
2219 whileStatement->SetRange({startLoc, endLoc}); in ParseWhileStatement()
2220 iterCtx.LexicalScope().GetScope()->BindNode(whileStatement); in ParseWhileStatement()
2222 return whileStatement; in ParseWhileStatement()

Completed in 11 milliseconds