@@ -26,7 +26,7 @@ import 'line_number_cache.dart';
26
26
import 'markdown_processor.dart' show Documentation;
27
27
import 'model_utils.dart' ;
28
28
import 'package_meta.dart' show PackageMeta, FileContents;
29
- import 'utils.dart' show stripComments ;
29
+ import 'utils.dart' ;
30
30
31
31
Map <String , Map <String , List <Map <String , dynamic >>>> __crossdartJson;
32
32
@@ -772,6 +772,9 @@ class EnumField extends Field {
772
772
}
773
773
}
774
774
775
+ @override
776
+ String get oneLineDoc => documentationAsHtml;
777
+
775
778
@override
776
779
String get href =>
777
780
'${library .dirName }/${(enclosingElement as Class ).fileName }' ;
@@ -809,6 +812,8 @@ class Field extends ModelElement
809
812
return _constantValue;
810
813
}
811
814
815
+ String get constantValueTruncated => truncateString (constantValue, 200 );
816
+
812
817
@override
813
818
ModelElement get enclosingElement {
814
819
if (_enclosingClass == null ) {
@@ -1531,7 +1536,6 @@ abstract class ModelElement implements Comparable, Nameable, Documentable {
1531
1536
1532
1537
String linkedParams (
1533
1538
{bool showMetadata: true , bool showNames: true , String separator: ', ' }) {
1534
-
1535
1539
String renderParam (Parameter param, String suffix) {
1536
1540
StringBuffer buf = new StringBuffer ();
1537
1541
buf.write ('<span class="parameter" id="${param .htmlId }">' );
@@ -2165,6 +2169,8 @@ class TopLevelVariable extends ModelElement
2165
2169
return string.replaceAll (modelType.name, modelType.linkedName);
2166
2170
}
2167
2171
2172
+ String get constantValueTruncated => truncateString (constantValue, 200 );
2173
+
2168
2174
@override
2169
2175
ModelElement get enclosingElement => library;
2170
2176
0 commit comments