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

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

Issue 885313002: Fix new dart2dart backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « pkg/compiler/lib/src/ssa/builder.dart ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/universe/universe.dart
diff --git a/pkg/compiler/lib/src/universe/universe.dart b/pkg/compiler/lib/src/universe/universe.dart
index bd6897d1f84475a86bfa8b22bf9750ec62a4d50c..a7ddbb03bd91dbda5eafd2af2d45e2c0c780f12d 100644
--- a/pkg/compiler/lib/src/universe/universe.dart
+++ b/pkg/compiler/lib/src/universe/universe.dart
@@ -326,6 +326,8 @@ class Selector {
return new Selector.getter(name, element.library);
} else if (element.isField) {
return new Selector.getter(name, element.library);
+ } else if (element.isConstructor) {
+ return new Selector.callConstructor(name, element.library);
} else {
throw new SpannableAssertionFailure(
element, "Can't get selector from $element");
@@ -381,8 +383,8 @@ class Selector {
=> new Selector(SelectorKind.CALL, name, library,
arity, namedArguments);
- factory Selector.callDefaultConstructor(LibraryElement library)
- => new Selector(SelectorKind.CALL, "", library, 0);
+ factory Selector.callDefaultConstructor()
+ => new Selector(SelectorKind.CALL, "", null, 0);
bool get isGetter => identical(kind, SelectorKind.GETTER);
bool get isSetter => identical(kind, SelectorKind.SETTER);
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698