Section

data class Section(val title: String?, val children: List<ReportNode>) : ReportNode(source)

A titled, collapsible group of child nodes. Sections may be nested to any depth; renderers are responsible for tracking depth and adjusting heading levels accordingly.

Parameters

title

optional section title; null produces an untitled grouping

children

ordered list of child nodes

Constructors

Link copied to clipboard
constructor(title: String?, children: List<ReportNode>)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun accept(visitor: ReportVisitor)

Double-dispatch entry point — each node calls the appropriate visitor method.