PathId

class PathId(val rootType: TypeId, segments: List<PathSegment>)

The structural identity of a generated KeyPath or CaseKeyPath.

Equality and hashing deliberately describe the KeyPath or CaseKeyPath, not a closure or allocation that happens to implement it. Generated paths use stable fully-qualified type names and ordered segments.

Constructors

Link copied to clipboard
constructor(rootType: TypeId, segments: List<PathSegment>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

A defensive copy keeps this hashable identity stable after construction.

Functions

Link copied to clipboard
fun appending(path: PathId): PathId

Appends a PathId rooted at this PathId's focus.

Returns this PathId with one additional structural segment.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String