Skip to content

Commit dcc49ad

Browse files
authored
Make signature of categoriesWithPublicLibraries more accurate (#2571)
1 parent 95ec941 commit dcc49ad

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lib/src/generator/templates.renderers.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,11 @@ class _Renderer_Package extends RendererBase<Package> {
241241
renderVariable: (CT_ c, Property<CT_> self,
242242
List<String> remainingNames) =>
243243
self.renderSimpleVariable(
244-
c, remainingNames, 'Iterable<LibraryContainer>'),
244+
c, remainingNames, 'Iterable<Category>'),
245245
renderIterable:
246246
(CT_ c, RendererBase<CT_> r, List<MustachioNode> ast) {
247-
return c.categoriesWithPublicLibraries.map((e) =>
248-
_render_LibraryContainer(e, ast, r.template,
249-
parent: r));
247+
return c.categoriesWithPublicLibraries.map(
248+
(e) => renderSimple(e, ast, r.template, parent: r));
250249
},
251250
),
252251
'config': Property(

lib/src/model/package.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ class Package extends LibraryContainer
343343
return _categories;
344344
}
345345

346-
Iterable<LibraryContainer> get categoriesWithPublicLibraries =>
346+
Iterable<Category> get categoriesWithPublicLibraries =>
347347
categories.where((c) => c.publicLibraries.isNotEmpty);
348348

349349
Iterable<Category> get documentedCategories =>

0 commit comments

Comments
 (0)