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

Function isDeferBlock

packages/core/src/defer/utils.ts:173–183  ·  view source on GitHub ↗
(tView: TView, tNode: TNode)

Source from the content-addressed store, hash-verified

171 * Whether a given TNode represents a defer block.
172 */
173export function isDeferBlock(tView: TView, tNode: TNode): boolean {
174 let tDetails: TDeferBlockDetails | null = null;
175 const slotIndex = getDeferBlockDataIndex(tNode.index);
176 // Check if a slot index is in the reasonable range.
177 // Note: we do `-1` on the right border, since defer block details are stored
178 // in the `n+1` slot, see `getDeferBlockDataIndex` for more info.
179 if (HEADER_OFFSET < slotIndex && slotIndex < tView.bindingStartIndex) {
180 tDetails = getTDeferBlockDetails(tView, tNode);
181 }
182 return !!tDetails && isTDeferBlockDetails(tDetails);
183}
184
185/**
186 * Tracks debugging information about a trigger.

Callers 1

serializeLContainerFunction · 0.90

Calls 3

getDeferBlockDataIndexFunction · 0.85
getTDeferBlockDetailsFunction · 0.85
isTDeferBlockDetailsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…