Lines Matching defs:loop

1367   // Parse a C-style for loop: 'for (<init>; <cond>; <next>) { ... }'
4071 // 2. This is a declaration in a for in/of loop, or
5715 auto loop = factory()->NewDoWhileStatement(peek_position());
5716 Target target(this, loop, labels, own_labels, Target::TARGET_FOR_ANONYMOUS);
5740 loop->Initialize(cond, body);
5741 impl()->RecordIterationStatementSourceRange(loop, body_range);
5743 return loop;
5754 auto loop = factory()->NewWhileStatement(peek_position());
5755 Target target(this, loop, labels, own_labels, Target::TARGET_FOR_ANONYMOUS);
5769 loop->Initialize(cond, body);
5770 impl()->RecordIterationStatementSourceRange(loop, body_range);
5772 return loop;
5994 // Either a standard for loop
5996 // or a for-each loop
6017 // this loop, as this information is used to simplify the desugaring
6043 // after parsing the rest of the loop.
6122 // Standard 'for' loop, we have parsed the initializer at this point.
6126 ForStatementT loop =
6129 loop->Initialize(init, cond, next, body);
6130 return loop;
6159 auto loop = factory()->NewForEachStatement(for_info->mode, stmt_pos);
6160 Target target(this, loop, labels, own_labels, Target::TARGET_FOR_ANONYMOUS);
6187 impl()->RecordIterationStatementSourceRange(loop, body_range);
6199 loop->Initialize(each_variable, enumerable, body_block);
6203 // Parsed for-in loop w/ variable declarations.
6205 init_block->statements()->Add(loop, zone());
6213 return loop;
6222 auto loop = factory()->NewForEachStatement(for_info->mode, stmt_pos);
6223 Target target(this, loop, labels, own_labels, Target::TARGET_FOR_ANONYMOUS);
6241 impl()->RecordIterationStatementSourceRange(loop, body_range);
6243 loop->Initialize(expression, enumerable, body);
6244 return loop;
6253 // The condition and the next statement of the for loop must be parsed
6256 ForStatementT loop = impl()->NullStatement();
6263 loop =
6274 loop, init, cond, next, body, inner_scope, *for_info);
6296 block->statements()->Add(loop, zone());
6298 loop->Initialize(impl()->NullStatement(), cond, next, body);
6302 loop->Initialize(init, cond, next, body);
6303 return loop;
6312 ForStatementT loop = factory()->NewForStatement(stmt_pos);
6313 Target target(this, loop, labels, own_labels, Target::TARGET_FOR_ANONYMOUS);
6331 impl()->RecordIterationStatementSourceRange(loop, body_range);
6333 return loop;
6357 auto loop = factory()->NewForOfStatement(stmt_pos, IteratorType::kAsync);
6362 Target target(this, loop, labels, own_labels, Target::TARGET_FOR_ANONYMOUS);
6447 impl()->RecordIterationStatementSourceRange(loop, body_range);
6463 loop->Initialize(each_variable, iterable, body);
6469 return loop;
6477 // Parsed for-in loop w/ variable declarations.
6479 init_block->statements()->Add(loop, zone());
6484 return loop;