* Helper function to produce a node path (which navigation steps runtime logic * needs to take to locate a node) and stores it in the `NODES` section of the * current serialized view.
( ngh: SerializedView, tNode: TNode, lView: LView, excludedParentNodes: Set<number> | null, )
| 510 | * current serialized view. |
| 511 | */ |
| 512 | function appendSerializedNodePath( |
| 513 | ngh: SerializedView, |
| 514 | tNode: TNode, |
| 515 | lView: LView, |
| 516 | excludedParentNodes: Set<number> | null, |
| 517 | ) { |
| 518 | const noOffsetIndex = tNode.index - HEADER_OFFSET; |
| 519 | ngh[NODES] ??= {}; |
| 520 | // Ensure we don't calculate the path multiple times. |
| 521 | ngh[NODES][noOffsetIndex] ??= calcPathForNode(tNode, lView, excludedParentNodes); |
| 522 | } |
| 523 | |
| 524 | /** |
| 525 | * Helper function to append information about a disconnected node. |
no test coverage detected
searching dependent graphs…