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

Function calcPathBetween

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

Source from the content-addressed store, hash-verified

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