commit | ae03e0cc831125fd3c0fb269dc9dce69587494cb | [log] [tgz] |
---|---|---|
author | Kevin Millikin <kmillikin@google.com> | Tue Feb 24 13:10:49 2015 |
committer | Kevin Millikin <kmillikin@google.com> | Tue Feb 24 13:10:49 2015 |
tree | 2f272e47669d8ee82f100ba9b1619e7feb70463c | |
parent | a6d2c3eb4e035c996779b7743be3238b9725b2c5 [diff] |
Properly translate for-in and await for-in without a declaration keyword. If a for-in loop variable is declared with a type and without a keyword, e.g., 'var', then we did not translate it correctly.
A prototype (and in progress) implementation of async/await in Dart, via CPS translation.
This transformer is useful for trying async/await with dart2js. The Dart VM natively supports async and await. If you are writing Dart code that runs only in the VM, you do not need this transformer.
Add this to your pubspec.yaml file:
dependencies: async_await: git: https://github.com/dart-lang/async_await.git transformers: - async_await
Import dart:async in your Dart file:
import 'dart:async';
See also the open issues.