Skip to content

Commit 6d55277

Browse files
committed
category => categoryName
1 parent 661e3e0 commit 6d55277

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/src/model.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,21 +1183,21 @@ abstract class Categorization implements ModelElement {
11831183
}
11841184

11851185
/// Parse {@category ...} in API comments and store the category in
1186-
/// the [_category] variable.
1186+
/// the [_categoryName] variable.
11871187
String _stripAndSetDartdocCategory(String rawDocs) {
11881188
final categoryRegexp =
11891189
new RegExp(r'[ ]*{@category (.+?)}[ ]*\n?', multiLine: true);
11901190
return rawDocs.replaceAllMapped(categoryRegexp, (match) {
1191-
_category = match[1].trim();
1191+
_categoryName = match[1].trim();
11921192
return '';
11931193
});
11941194
}
11951195

1196-
String _category;
1197-
String get category {
1196+
String _categoryName;
1197+
String get categoryName {
11981198
// TODO(jcollins-g): avoid side-effect dependency
1199-
if (_category == null) documentationLocal;
1200-
return _category;
1199+
if (_categoryName == null) documentationLocal;
1200+
return _categoryName;
12011201
}
12021202
}
12031203

@@ -4590,7 +4590,7 @@ class Package extends LibraryContainer implements Comparable<Package>, Privacy {
45904590
if (_nameToCategory.isEmpty) {
45914591
_nameToCategory[null] = new Category(null, this, dartdocOptions);
45924592
for (Library lib in libraries) {
4593-
String category = lib.category;
4593+
String category = lib.categoryName;
45944594
_nameToCategory.putIfAbsent(
45954595
category, () => new Category(category, this, dartdocOptions));
45964596
_nameToCategory[category]._libraries.add(lib);

0 commit comments

Comments
 (0)