(parent: TParent, value: TValue, labels: TLabels)
| 56 | #depth: number; |
| 57 | |
| 58 | public constructor(parent: TParent, value: TValue, labels: TLabels) { |
| 59 | this.#parent = parent; |
| 60 | this.#value = value; |
| 61 | this.#labels = labels; |
| 62 | // Cache depth at construction time since TraversalPath is immutable |
| 63 | this.#depth = parent === undefined ? 1 : (parent as TraversalPath<any, any, any>).depth + 1; |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * The unique id of the path. |
nothing calls this directly
no outgoing calls
no test coverage detected