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

Unified Diff: lib/compiler/implementation/dart_backend/placeholder_collector.dart

Issue 10827442: Fix dart2dart and dart2js build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « no previous file | lib/compiler/implementation/elements/elements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/dart_backend/placeholder_collector.dart
diff --git a/lib/compiler/implementation/dart_backend/placeholder_collector.dart b/lib/compiler/implementation/dart_backend/placeholder_collector.dart
index a8672d0e17ccb1f24ea6e03ece4d7714a9016acc..c23ebed30acaf49ae70079d0953d7a8287c10afa 100644
--- a/lib/compiler/implementation/dart_backend/placeholder_collector.dart
+++ b/lib/compiler/implementation/dart_backend/placeholder_collector.dart
@@ -314,6 +314,13 @@ class PlaceholderCollector extends AbstractVisitor {
visitNode(Node node) { node.visitChildren(this); } // We must go deeper.
visitSend(Send send) {
+ Element element = treeElements[send];
+ if (element !== null && element.isErroneous()) {
+ // TODO(antonm): this is an unresolved constructor, not a dynamic send.
+ ErroneousElement erroneousElement = element;
+ compiler.cancel(reason: erroneousElement.errorMessage.toString(),
+ node: send);
+ }
new SendVisitor(this, treeElements).visitSend(send);
send.visitChildren(this);
}
« no previous file with comments | « no previous file | lib/compiler/implementation/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698