(tNode: TNode, tView: TView)
| 50 | } |
| 51 | |
| 52 | export function assertTNodeForTView(tNode: TNode, tView: TView) { |
| 53 | assertTNode(tNode); |
| 54 | const tData = tView.data; |
| 55 | for (let i = HEADER_OFFSET; i < tData.length; i++) { |
| 56 | if (tData[i] === tNode) { |
| 57 | return; |
| 58 | } |
| 59 | } |
| 60 | throwError('This TNode does not belong to this TView.'); |
| 61 | } |
| 62 | |
| 63 | export function assertTNode(tNode: TNode) { |
| 64 | assertDefined(tNode, 'TNode must be defined'); |
no test coverage detected
searching dependent graphs…