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

Unified Diff: dart/pkg/compiler/lib/src/enqueue.dart

Issue 821593004: Create erroneous element when resolution of initializer fails. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Tests passing locally. Created 5 years, 11 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 | « dart/pkg/compiler/lib/src/elements/modelx.dart ('k') | dart/pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/compiler/lib/src/enqueue.dart
diff --git a/dart/pkg/compiler/lib/src/enqueue.dart b/dart/pkg/compiler/lib/src/enqueue.dart
index c2638b43a5d7c4614ad18ad30d4e461e8a36882c..9d04cd1e6b89654f0d3299f3d8a19b463056777a 100644
--- a/dart/pkg/compiler/lib/src/enqueue.dart
+++ b/dart/pkg/compiler/lib/src/enqueue.dart
@@ -697,6 +697,7 @@ class ResolutionEnqueuer extends Enqueuer {
}
bool internalAddToWorkList(Element element) {
+ if (element.isErroneous) return false;
assert(invariant(element, element is AnalyzableElement,
message: 'Element $element is not analyzable.'));
if (hasBeenResolved(element)) return false;
« no previous file with comments | « dart/pkg/compiler/lib/src/elements/modelx.dart ('k') | dart/pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698