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

Function isDisjointNode

packages/core/src/hydration/i18n.ts:244–246  ·  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

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

Callers 1

serializeI18nBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected