From 973cc5238e2f7ede6d9cf54437785770a3e020c9 Mon Sep 17 00:00:00 2001 From: Paweł Marks Date: Mon, 2 Mar 2020 17:10:16 +0100 Subject: Tests for wrapping groups in renderer. Also util for groups --- .../translators/documentables/PageContentBuilder.kt | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'plugins/base/src/main') diff --git a/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt b/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt index 176aa87f..8d04e986 100644 --- a/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt +++ b/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt @@ -85,7 +85,7 @@ open class PageContentBuilder( } fun signature(f: Function, block: DocumentableContentBuilder.() -> Unit) { - contents += group(f.dri, f.platformData.toSet(), ContentKind.Symbol, mainStyles, mainExtras, block) + contents += buildGroup(f.dri, f.platformData.toSet(), ContentKind.Symbol, mainStyles, mainExtras, block) } fun signature(f: Function) = signature(f) { @@ -145,7 +145,7 @@ open class PageContentBuilder( contents += ContentTable( emptyList(), elements.map { - group(it.dri, it.platformData.toSet(), kind, styles, extras) { + buildGroup(it.dri, it.platformData.toSet(), kind, styles, extras) { // TODO this will fail operation(it) } @@ -228,6 +228,17 @@ open class PageContentBuilder( styles: Set