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

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/generators.dart

Issue 2752163002: Format all dart dev compiler files (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/generators.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/generators.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/generators.dart
index 090ec26b89e0345e41f67fef573ce7c48baf38ef..b90e2ccc3b8ca0884c8df91d168d968c51464487 100644
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/generators.dart
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/generators.dart
@@ -14,13 +14,17 @@ part of dart._runtime;
final _jsIterator = JS('', 'Symbol("_jsIterator")');
final _current = JS('', 'Symbol("_current")');
-syncStar(gen, E, @rest args) => JS('', '''(() => {
+syncStar(gen, E, @rest args) => JS(
+ '',
+ '''(() => {
const SyncIterable_E = ${getGenericClass(SyncIterable)}($E);
return new SyncIterable_E($gen, $args);
})()''');
@JSExportName('async')
-async_(gen, T, @rest args) => JS('', '''(() => {
+async_(gen, T, @rest args) => JS(
+ '',
+ '''(() => {
let iter;
function onValue(res) {
if (res === void 0) res = null;
@@ -77,7 +81,9 @@ async_(gen, T, @rest args) => JS('', '''(() => {
// }
//
// TODO(ochafik): Port back to Dart (which it used to be in the past).
-final _AsyncStarStreamController = JS('', '''
+final _AsyncStarStreamController = JS(
+ '',
+ '''
class _AsyncStarStreamController {
constructor(generator, T, args) {
this.isAdding = false;
@@ -219,6 +225,8 @@ final _AsyncStarStreamController = JS('', '''
/// Returns a Stream of T implemented by an async* function. */
///
-asyncStar(gen, T, @rest args) => JS('', '''(() => {
+asyncStar(gen, T, @rest args) => JS(
+ '',
+ '''(() => {
return new $_AsyncStarStreamController($gen, $T, $args).controller.stream;
})()''');

Powered by Google App Engine
This is Rietveld 408576698