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

Function getNoOffsetIndex

packages/core/src/hydration/node_lookup_utils.ts:49–51  ·  view source on GitHub ↗

Returns an instruction index (subtracting HEADER_OFFSET).

(tNode: TNode)

Source from the content-addressed store, hash-verified

47
48/** Returns an instruction index (subtracting HEADER_OFFSET). */
49function getNoOffsetIndex(tNode: TNode): number {
50 return tNode.index - HEADER_OFFSET;
51}
52
53/**
54 * Check whether a given node exists, but is disconnected from the DOM.

Callers 1

locateNextRNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected