MCPcopy Create free account
hub / github.com/angular/angular / assertTNodeForTView

Function assertTNodeForTView

packages/core/src/render3/assert.ts:51–60  ·  view source on GitHub ↗
(tNode: TNode, tView: TView)

Source from the content-addressed store, hash-verified

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

Callers 6

getOrCreateTNodeFunction · 0.90
createTNodeFunction · 0.90
setCurrentTNodeFunction · 0.90
enterDIFunction · 0.90
enterViewFunction · 0.90
assertTNodeForLViewFunction · 0.85

Calls 2

throwErrorFunction · 0.90
assertTNodeFunction · 0.85

Tested by

no test coverage detected