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

Function calcNumRootNodesInLContainer

packages/core/src/hydration/annotate.ts:170–174  ·  view source on GitHub ↗

* Computes the number of root nodes in all views in a given LContainer.

(lContainer: LContainer)

Source from the content-addressed store, hash-verified

168 * Computes the number of root nodes in all views in a given LContainer.
169 */
170function calcNumRootNodesInLContainer(lContainer: LContainer): number {
171 const rootNodes: unknown[] = [];
172 collectNativeNodesInLContainer(lContainer, rootNodes);
173 return rootNodes.length;
174}
175
176/**
177 * Annotates root level component's LView for hydration,

Callers 1

serializeLContainerFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…