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

Function siblingAfter

packages/core/src/hydration/node_lookup_utils.ts:183–190  ·  view source on GitHub ↗
(skip: number, from: RNode)

Source from the content-addressed store, hash-verified

181 * Skips over a specified number of nodes and returns the next sibling node after that.
182 */
183export function siblingAfter<T extends RNode>(skip: number, from: RNode): T | null {
184 let currentNode = from;
185 for (let i = 0; i < skip; i++) {
186 ngDevMode && validateSiblingNodeExists(currentNode);
187 currentNode = currentNode.nextSibling!;
188 }
189 return currentNode as T;
190}
191
192/**
193 * Helper function to produce a string representation of the navigation steps

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…