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

Unified Diff: lib/src/info.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/codegen/js_metalet.dart ('k') | lib/src/js/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/info.dart
diff --git a/lib/src/info.dart b/lib/src/info.dart
index 5da0f644c3a0694d3faef695fa4326df58da74e4..a154cf9219ef3518292d939ca17b9a5b8d39e0c8 100644
--- a/lib/src/info.dart
+++ b/lib/src/info.dart
@@ -91,6 +91,16 @@ class _AstCloner extends AstCloner {
}
return clone;
}
+
+ // TODO(jmesserly): as a workaround for analyzer <0.26.0-alpha.1.
+ // ResolutionCopier won't copy the type, so we do it here.
+ @override
+ AwaitExpression visitAwaitExpression(AwaitExpression node) {
+ var clone = super.visitAwaitExpression(node);
+ clone.staticType = node.staticType;
+ clone.propagatedType = node.propagatedType;
+ return clone;
+ }
}
// The abstract type of coercions mapping one type to another.
« no previous file with comments | « lib/src/codegen/js_metalet.dart ('k') | lib/src/js/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698