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

Unified Diff: pkg/docgen/lib/src/models.dart

Issue 235883016: pkg/docgen: support better const rendering of String, List, and empty Map (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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: pkg/docgen/lib/src/models.dart
diff --git a/pkg/docgen/lib/src/models.dart b/pkg/docgen/lib/src/models.dart
index ed46394449973de8124432fc6034df61329f63f9..e0aa9dc86aadcf0fded42b3eef4ab239d8646fb0 100644
--- a/pkg/docgen/lib/src/models.dart
+++ b/pkg/docgen/lib/src/models.dart
@@ -474,8 +474,7 @@ abstract class OwnedIndexable<TMirror extends DeclarationMirror>
}
/// A class containing contents of a Dart class.
-class Class
- extends OwnedIndexable<dart2js_mirrors.Dart2JsInterfaceTypeMirror>
+class Class extends OwnedIndexable<dart2js_mirrors.Dart2JsInterfaceTypeMirror>
implements Comparable<Class> {
/// List of the names of interfaces that this class implements.
@@ -982,7 +981,7 @@ class Parameter extends MirrorBased {
isOptional = mirror.isOptional,
isNamed = mirror.isNamed,
hasDefaultValue = mirror.hasDefaultValue,
- defaultValue = '${mirror.defaultValue}',
+ defaultValue = getDefaultValue(mirror),
type = new Type(mirror.type, owningLibrary),
annotations = createAnnotations(mirror, owningLibrary);

Powered by Google App Engine
This is Rietveld 408576698