Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Issue 662603003: Implement await for statement (Closed)

Created:
6 years, 2 months ago by hausner
Modified:
6 years, 1 month ago
Reviewers:
floitsch, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, floitsch
Visibility:
Public.

Description

Implement await for statement Implement await for statement to iterate over streams. Uses the built-in class StreamIterator. await for (var e in stream_expr) { S; } Is translated to: var it = new StreamIterator(stream_expr); while (await it.moveNext()) { var e = it.current; S; } Committed: https://code.google.com/p/dart/source/detail?r=41328

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -0 lines) Patch
M runtime/vm/object_store.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M runtime/vm/object_store.cc View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/vm/parser.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 2 chunks +147 lines, -0 lines 0 comments Download
M runtime/vm/symbols.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A tests/language/await_for_test.dart View 1 2 3 1 chunk +97 lines, -0 lines 0 comments Download
M tests/language/language.status View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
hausner
6 years, 2 months ago (2014-10-16 17:57:59 UTC) #2
floitsch
DBC: You probably know this, but eventually there needs to be a try/finally around the ...
6 years, 2 months ago (2014-10-16 19:03:56 UTC) #4
hausner
Thanks for taking a look, Florian. I suspected that I need a try-finally as we've ...
6 years, 2 months ago (2014-10-16 21:39:28 UTC) #5
floitsch
https://codereview.chromium.org/662603003/diff/20001/tests/language/await_for_test.dart File tests/language/await_for_test.dart (right): https://codereview.chromium.org/662603003/diff/20001/tests/language/await_for_test.dart#newcode52 tests/language/await_for_test.dart:52: Future.wait([f1, f2]).then((_) { On 2014/10/16 21:39:27, hausner wrote: > ...
6 years, 2 months ago (2014-10-17 09:27:30 UTC) #6
hausner
Ping.
6 years, 2 months ago (2014-10-22 18:34:13 UTC) #8
Ivan Posva
LGTMwC -Ivan https://codereview.chromium.org/662603003/diff/60001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/662603003/diff/60001/runtime/vm/parser.cc#newcode7258 runtime/vm/parser.cc:7258: loop_var_name = ExpectIdentifier("variable name expected"); This line ...
6 years, 1 month ago (2014-10-27 06:55:24 UTC) #9
hausner
Thank you. https://codereview.chromium.org/662603003/diff/60001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/662603003/diff/60001/runtime/vm/parser.cc#newcode7258 runtime/vm/parser.cc:7258: loop_var_name = ExpectIdentifier("variable name expected"); On 2014/10/27 ...
6 years, 1 month ago (2014-10-27 17:58:25 UTC) #10
hausner
6 years, 1 month ago (2014-10-27 18:03:50 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as r41328 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698