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

Function isDisjointNode

packages/core/src/hydration/i18n.ts:243–245  ·  view source on GitHub ↗

* Helper to determine whether the given nodes are "disjoint". * * The i18n hydration process walks through the DOM and i18n nodes * at the same time. It expects the sibling DOM node of the previous * i18n node to be the first node of the next i18n node. * * In cases of content projection, this

(prevNode: Node | null, nextNode: Node)

Source from the content-addressed store, hash-verified

241 * i18n node, we will be able to find the correct place to start.
242 */
243function isDisjointNode(prevNode: Node | null, nextNode: Node) {
244 return prevNode && prevNode.nextSibling !== nextNode;
245}
246
247/**
248 * Process the given i18n node for serialization.

Callers 1

serializeI18nBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…