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

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

Issue 10947024: Made dart2js constructor lookup logic "private"-aware, fixed 4740 bug. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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: 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 21d08ced41747468a001ae963d6ed3cc23a257c1..c56bbbfc115ff5df71bfaa6a0c94028ed445c3c0 100644
--- a/lib/compiler/implementation/dart_backend/placeholder_collector.dart
+++ b/lib/compiler/implementation/dart_backend/placeholder_collector.dart
@@ -446,7 +446,9 @@ class PlaceholderCollector extends AbstractVisitor {
if (element is TypedefElement) return true;
ClassElement classElement = element;
final constructor = classElement.lookupConstructor(
- receiver.source, selector.source);
+ currentElement.getLibrary(),
+ receiver.source,
+ selector.source);
return constructor === null;
}
if (!hasPrefix()) target = send.receiver;

Powered by Google App Engine
This is Rietveld 408576698