| 44 | private readonly logicBuilder: LogicNodeBuilder | undefined; |
| 45 | |
| 46 | protected constructor( |
| 47 | /** The property keys used to navigate from the root path to this path. */ |
| 48 | readonly keys: PropertyKey[], |
| 49 | root: FieldPathNode | undefined, |
| 50 | /** The parent of this path node. */ |
| 51 | private readonly parent: FieldPathNode | undefined, |
| 52 | /** The key of this node in its parent. */ |
| 53 | private readonly keyInParent: PropertyKey | undefined, |
| 54 | ) { |
| 55 | this.root = root ?? this; |
| 56 | if (!parent) { |
| 57 | this.logicBuilder = LogicNodeBuilder.newRoot(); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | /** The logic builder used to accumulate logic on this path node. */ |
| 62 | get builder(): LogicNodeBuilder { |