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

Function getControlFlowBlocks

packages/core/src/render3/util/control_flow.ts:52–60  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

50 * @param node Node in which to look for control flow blocks.
51 */
52export function getControlFlowBlocks(node: Node): ControlFlowBlock[] {
53 const lView = getLContext(node)?.lView;
54
55 if (lView) {
56 return findControlFlowBlocks(node, lView);
57 }
58
59 return [];
60}
61
62/**
63 * Finds and returns all `@defer` blocks in a LView.

Callers 3

getDeferBlocksFunction · 0.90
getForLoopBlocksFunction · 0.90

Calls 2

getLContextFunction · 0.90
findControlFlowBlocksFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…