(tView: TView, tNode: TNode)
| 171 | * Whether a given TNode represents a defer block. |
| 172 | */ |
| 173 | export 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. |
no test coverage detected
searching dependent graphs…