SingleChildNestableNode

A node that contains a single child node.

Parameters

T

type of the child node

Inheritors

Properties

Link copied to clipboard
abstract val child: T

The single child node.

Link copied to clipboard
open override val children: List<Node>

A singleton list containing child.

Functions

Link copied to clipboard
abstract fun <T> accept(visitor: NodeVisitor<T>): T

Accepts a visitor.

Link copied to clipboard

Returns a sequence of all nodes in the tree, where this is the root node. The sequence is generated by traversing the tree in depth-first order. The root node is excluded from the sequence.

Link copied to clipboard