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

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

Issue 10942028: Support class and typedef literals as expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix two long lines. 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/ssa/ssa.dart
diff --git a/lib/compiler/implementation/ssa/ssa.dart b/lib/compiler/implementation/ssa/ssa.dart
index 87cb6a6091cb8173980fa932085fcbf89388449e..b29c4fd851fe70ad77353bd1684229aa21c5f311 100644
--- a/lib/compiler/implementation/ssa/ssa.dart
+++ b/lib/compiler/implementation/ssa/ssa.dart
@@ -73,12 +73,12 @@ class RuntimeTypeInformation {
static String generateRuntimeTypeString(ClassElement element,
int numberOfInputs) {
String elementName = element.name.slowToString();
- 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