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

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

Issue 10861029: Properly rename type variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: lib/compiler/implementation/dart_backend/renamer.dart
diff --git a/lib/compiler/implementation/dart_backend/renamer.dart b/lib/compiler/implementation/dart_backend/renamer.dart
index 103cdfa428a9d2b8beafce5b40d2b13db710a59b..b1f931552e372e55e069b99c7b4e36de4a4678a6 100644
--- a/lib/compiler/implementation/dart_backend/renamer.dart
+++ b/lib/compiler/implementation/dart_backend/renamer.dart
@@ -29,7 +29,7 @@ void renamePlaceholders(
.putIfAbsent(originalName, () => generateUniqueName(originalName));
String renameElement(Element element) {
- assert(element.isTopLevel());
+ assert(element.isTopLevel() || element is TypeVariableElement);
// TODO(smok): Make sure that the new name does not conflict with existing
// local identifiers.
String originalName = element.name.slowToString();

Powered by Google App Engine
This is Rietveld 408576698