Lines Matching full:body
58 bool CheckInfiniteLoop::HasBreakOrReturnStatement(const ir::Statement *const body) const in HasBreakOrReturnStatement()
60 ASSERT(body); in HasBreakOrReturnStatement()
61 bool hasExit = body->IsBreakStatement() || body->IsReturnStatement(); in HasBreakOrReturnStatement()
62 body->IterateRecursively( in HasBreakOrReturnStatement()
71 auto const *body = stmt->Body(); in HandleWhileStatement() local
73 if ((body == nullptr) || (test == nullptr)) { in HandleWhileStatement()
78 if (!HasBreakOrReturnStatement(body)) { in HandleWhileStatement()
89 auto const *body = stmt->Body(); in HandleDoWhileStatement() local
91 if ((body == nullptr) || (test == nullptr)) { in HandleDoWhileStatement()
96 if (!HasBreakOrReturnStatement(body)) { in HandleDoWhileStatement()
107 auto const *body = stmt->Body(); in HandleForUpdateStatement() local
108 if (body == nullptr) { in HandleForUpdateStatement()
109 // Body existence is checked in ForLoopCorrectlyInitialized in HandleForUpdateStatement()
116 if (!HasBreakOrReturnStatement(body)) { in HandleForUpdateStatement()