* Computes the number of root nodes in a given view * (or child nodes in a given container if a tNode is provided).
(tView: TView, lView: LView, tNode: TNode | null)
| 159 | * (or child nodes in a given container if a tNode is provided). |
| 160 | */ |
| 161 | function calcNumRootNodes(tView: TView, lView: LView, tNode: TNode | null): number { |
| 162 | const rootNodes: unknown[] = []; |
| 163 | collectNativeNodes(tView, lView, tNode, rootNodes); |
| 164 | return rootNodes.length; |
| 165 | } |
| 166 | |
| 167 | /** |
| 168 | * Computes the number of root nodes in all views in a given LContainer. |
no test coverage detected
searching dependent graphs…