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

Function calcPathBetween

packages/core/src/hydration/node_lookup_utils.ts:315–318  ·  view source on GitHub ↗
(from: Node, to: Node, fromNodeName: string)

Source from the content-addressed store, hash-verified

313 * using the path generated by this function.
314 */
315export function calcPathBetween(from: Node, to: Node, fromNodeName: string): string | null {
316 const path = navigateBetween(from, to);
317 return path === null ? null : compressNodeLocation(fromNodeName, path);
318}
319
320/**
321 * Invoked at serialization time (on the server) when a set of navigation

Callers 1

calcPathForNodeFunction · 0.85

Calls 2

compressNodeLocationFunction · 0.90
navigateBetweenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…