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

Function getRendererLView

packages/core/src/render3/util/control_flow.ts:311–321  ·  view source on GitHub ↗

* Gets the current LView that is rendered out in a defer block. * @param details Instance information about the block.

(lContainer: LContainer)

Source from the content-addressed store, hash-verified

309 * @param details Instance information about the block.
310 */
311function getRendererLView(lContainer: LContainer): LView | null {
312 // Defer block containers can only ever contain one view.
313 // If they're empty, it means that nothing is rendered.
314 if (lContainer.length <= CONTAINER_HEADER_OFFSET) {
315 return null;
316 }
317
318 const lView = lContainer[CONTAINER_HEADER_OFFSET];
319 ngDevMode && assertLView(lView);
320 return lView;
321}
322
323/**
324 * Checks if a value looks like RepeaterMetadata by duck-typing.

Callers 1

deferBlockFinderFunction · 0.85

Calls 1

assertLViewFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…