MCPcopy Index your code
hub / github.com/angular/angular / constructor

Method constructor

packages/forms/signals/src/schema/path_node.ts:46–59  ·  view source on GitHub ↗
(
    /** The property keys used to navigate from the root path to this path. */
    readonly keys: PropertyKey[],
    root: FieldPathNode | undefined,
    /** The parent of this path node. */
    private readonly parent: FieldPathNode | undefined,
    /** The key of this node in its parent. */
    private readonly keyInParent: PropertyKey | undefined,
  )

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

newRootMethod · 0.65

Tested by

no test coverage detected