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

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
« no previous file with comments | « lib/src/info.dart ('k') | lib/src/js/printer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/js/nodes.dart
diff --git a/lib/src/js/nodes.dart b/lib/src/js/nodes.dart
index 7cff60c69151aeac024e38d60521fac762d789c4..62fe2e6794fe40bf2bff0b563b0e949065ff394f 100644
--- a/lib/src/js/nodes.dart
+++ b/lib/src/js/nodes.dart
@@ -1282,7 +1282,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
@@ -1295,7 +1295,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);
« no previous file with comments | « lib/src/info.dart ('k') | lib/src/js/printer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698