MCPcopy Create free account
hub / github.com/angular/angular / calcPathBetween

Function calcPathBetween

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

Source from the content-addressed store, hash-verified

345 * using the path generated by this function.
346 */
347export function calcPathBetween(from: Node, to: Node, fromNodeName: string): string | null {
348 const path = navigateBetween(from, to);
349 return path === null ? null : compressNodeLocation(fromNodeName, path);
350}
351
352/**
353 * 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