@@ -1183,21 +1183,21 @@ abstract class Categorization implements ModelElement {
1183
1183
}
1184
1184
1185
1185
/// Parse {@category ...} in API comments and store the category in
1186
- /// the [_category ] variable.
1186
+ /// the [_categoryName ] variable.
1187
1187
String _stripAndSetDartdocCategory (String rawDocs) {
1188
1188
final categoryRegexp =
1189
1189
new RegExp (r'[ ]*{@category (.+?)}[ ]*\n?' , multiLine: true );
1190
1190
return rawDocs.replaceAllMapped (categoryRegexp, (match) {
1191
- _category = match[1 ].trim ();
1191
+ _categoryName = match[1 ].trim ();
1192
1192
return '' ;
1193
1193
});
1194
1194
}
1195
1195
1196
- String _category ;
1197
- String get category {
1196
+ String _categoryName ;
1197
+ String get categoryName {
1198
1198
// TODO(jcollins-g): avoid side-effect dependency
1199
- if (_category == null ) documentationLocal;
1200
- return _category ;
1199
+ if (_categoryName == null ) documentationLocal;
1200
+ return _categoryName ;
1201
1201
}
1202
1202
}
1203
1203
@@ -4590,7 +4590,7 @@ class Package extends LibraryContainer implements Comparable<Package>, Privacy {
4590
4590
if (_nameToCategory.isEmpty) {
4591
4591
_nameToCategory[null ] = new Category (null , this , dartdocOptions);
4592
4592
for (Library lib in libraries) {
4593
- String category = lib.category ;
4593
+ String category = lib.categoryName ;
4594
4594
_nameToCategory.putIfAbsent (
4595
4595
category, () => new Category (category, this , dartdocOptions));
4596
4596
_nameToCategory[category]._libraries.add (lib);
0 commit comments