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

Unified Diff: sdk/lib/_internal/compiler/implementation/enqueue.dart

Issue 18670003: Remove support for conflicting constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 5 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: sdk/lib/_internal/compiler/implementation/enqueue.dart
diff --git a/sdk/lib/_internal/compiler/implementation/enqueue.dart b/sdk/lib/_internal/compiler/implementation/enqueue.dart
index 80ed0949681fc9654aa5f12303beab28f2a1aa8a..55494ac9c640688f237008603c8a36e617c89a72 100644
--- a/sdk/lib/_internal/compiler/implementation/enqueue.dart
+++ b/sdk/lib/_internal/compiler/implementation/enqueue.dart
@@ -42,15 +42,6 @@ class EnqueueTask extends CompilerTask {
link = link.tail) {
addMemberByName(link.head.element);
}
- } else if (element.isConstructor()) {
- SourceString source = Elements.deconstructConstructorName(
- element.name, element.getEnclosingClass());
- if (source == null) {
- // source is null for unnamed constructors.
- name = '';
- } else {
- name = source.slowToString();
- }
}
allElementsByName[name] = allElementsByName.putIfAbsent(
name, () => const Link<Element>()).prepend(element);

Powered by Google App Engine
This is Rietveld 408576698