Heading

data class Heading(val text: String, val level: Int = 1) : ReportNode(source)

A standalone heading at the given level.

Parameters

text

heading text

level

heading level 1–6 (analogous to HTML h1–h6); defaults to 1

Constructors

Link copied to clipboard
constructor(text: String, level: Int = 1)

Properties

Link copied to clipboard
val level: Int
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.