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

Unified Diff: dart/frog/leg/ssa/builder.dart

Issue 9646030: Find diagnostic locations for use in new compiler API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix crashes and address review comments Created 8 years, 9 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: dart/frog/leg/ssa/builder.dart
diff --git a/dart/frog/leg/ssa/builder.dart b/dart/frog/leg/ssa/builder.dart
index b06a9e0fbedde818cf27adaed93b0a3f4abfe0fb..9d022554f50a5c631849663b5998dbe9b58f2436 100644
--- a/dart/frog/leg/ssa/builder.dart
+++ b/dart/frog/leg/ssa/builder.dart
@@ -854,10 +854,7 @@ class SsaBuilder implements Visitor {
assert(superClass !== null);
assert(superClass.isResolved);
nextConstructor = superClass.lookupConstructor(superClass.name);
- if (nextConstructor === null &&
- superClass.canHaveDefaultConstructor()) {
- nextConstructor = superClass.getSynthesizedConstructor();
- } else if (nextConstructor === null) {
+ if (nextConstructor === null) {
compiler.internalError("no default constructor available");
}
}

Powered by Google App Engine
This is Rietveld 408576698