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

Unified Diff: lib/compiler/implementation/runtime_types.dart

Issue 10942028: Support class and typedef literals as expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add a comment. Created 8 years, 2 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/runtime_types.dart
diff --git a/lib/compiler/implementation/runtime_types.dart b/lib/compiler/implementation/runtime_types.dart
index e1a51e6f22bc19d67b8c8c9c5327ec223bf90999..79386c632cb7fbaca837cb7e1e50cc5832f123ae 100644
--- a/lib/compiler/implementation/runtime_types.dart
+++ b/lib/compiler/implementation/runtime_types.dart
@@ -64,17 +64,17 @@ class RuntimeTypeInformation {
/**
* Generate a string representation template for this element, using '#' to
* denote the place for the type argument input. If there are more type
- * variables than [numberOfInputs], 'Dynamic' is used as the value for these
+ * variables than [numberOfInputs], 'dynamic' is used as the value for these
* arguments.
*/
String generateRuntimeTypeString(ClassElement element, int numberOfInputs) {
String elementName = getName(element);
- if (element.typeVariables.isEmpty()) return "'$elementName'";
- String stringify(_, bool hasValue) => hasValue ? "' + # + '" : "Dynamic";
+ if (element.typeVariables.isEmpty()) return "$elementName";
+ String stringify(_, bool hasValue) => hasValue ? "' + # + '" : "dynamic";
String arguments = stringifyTypeVariables(element.typeVariables,
numberOfInputs,
stringify);
- return "'$elementName<$arguments>'";
+ return "$elementName<$arguments>";
}
/**

Powered by Google App Engine
This is Rietveld 408576698