NodePath

value class NodePath(val value: String)

A stable, structural identity for a node within the resolved tree.

The path encodes the node's position as a dash-joined chain of child indices descending from the root (e.g. "0-1-0" is the first child of the second child of the root). Because it is derived purely from tree position, it stays stable across re-resolves of the same document and is suitable as a key (for example for Compose key/remember). Carried by ResolvedNode.path.

Constructors

Link copied to clipboard
constructor(value: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The underlying string representation of the path.

Functions

Link copied to clipboard
fun child(index: Int): NodePath

Returns the path of the child at index under this node.

Link copied to clipboard
open override fun toString(): String