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

Unified Diff: sdk/lib/_internal/compiler/implementation/resolution/registry.dart

Issue 448943004: Refactor and simplify the dart2dart renamer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rely (almost) only on Entity from renamer. Improve handling of privates and constructors. Avoid sor… Created 6 years, 4 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/resolution/registry.dart
diff --git a/sdk/lib/_internal/compiler/implementation/resolution/registry.dart b/sdk/lib/_internal/compiler/implementation/resolution/registry.dart
index 59d99201a45a1cc4793b20173d7454c90929afe0..346c9b16e49b48c1f484fcac5d964e1ed1b504ba 100644
--- a/sdk/lib/_internal/compiler/implementation/resolution/registry.dart
+++ b/sdk/lib/_internal/compiler/implementation/resolution/registry.dart
@@ -31,6 +31,9 @@ class ResolutionRegistry extends Registry {
/// Register [node] as the declaration of [element].
void defineFunction(FunctionExpression node, FunctionElement element) {
+ if (node.name != null) {
Johnni Winther 2014/08/15 07:49:20 Add TODO to remove when not needed by the dart2dar
sigurdm 2014/08/15 13:06:27 Done.
+ mapping[node.name] = element;
+ }
mapping[node] = element;
}

Powered by Google App Engine
This is Rietveld 408576698