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

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

Issue 118273004: Handle typedefs in registerRequiredType. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: */ Created 7 years 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 | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/dart_backend/renamer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/renamer.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/renamer.dart
index 2158855ca7f2119ef4627eaeb3b6e85edd0c2b28..74f4c20df75a3fa4ecc79ef3c34700862a61aee6 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/renamer.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/renamer.dart
@@ -88,11 +88,10 @@ void renamePlaceholders(
// TODO(smok): Do not rename type if it is in platform library or
// js-helpers.
StringBuffer result = new StringBuffer(renameElement(type.element));
- if (type is InterfaceType) {
- InterfaceType interfaceType = type;
- if (!interfaceType.treatAsRaw) {
+ if (type is GenericType) {
karlklose 2013/12/20 07:43:20 Merge the two if-s.
Johnni Winther 2013/12/20 10:14:37 Done.
+ if (!type.treatAsRaw) {
result.write('<');
- Link<DartType> argumentsLink = interfaceType.typeArguments;
+ Link<DartType> argumentsLink = type.typeArguments;
result.write(renameType(argumentsLink.head, renameElement));
for (Link<DartType> link = argumentsLink.tail; !link.isEmpty;
link = link.tail) {
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698