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

Unified Diff: lib/src/js/nodes.dart

Issue 1243503007: fixes #221, initial sync*, async, async* implementation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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: lib/src/js/nodes.dart
diff --git a/lib/src/js/nodes.dart b/lib/src/js/nodes.dart
index 63274a65672bcbe1b7a89123368fc709563f3c9d..3af69c1e435de55a71924648bd7cdd20e2a96249 100644
--- a/lib/src/js/nodes.dart
+++ b/lib/src/js/nodes.dart
@@ -1259,7 +1259,7 @@ class TaggedTemplate extends Expression {
// TODO(jmesserly): parser does not support this yet.
class Yield extends Expression {
- final Expression value;
+ final Expression value; // Can be null.
/**
* Whether this yield expression is a `yield*` that iterates each item in
@@ -1272,7 +1272,7 @@ class Yield extends Expression {
accept(NodeVisitor visitor) => visitor.visitYield(this);
void visitChildren(NodeVisitor visitor) {
- value.accept(visitor);
+ if (value != null) value.accept(visitor);
}
Yield _clone() => new Yield(value);

Powered by Google App Engine
This is Rietveld 408576698