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

Function assertTNodeForTView

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

Source from the content-addressed store, hash-verified

50}
51
52export 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
63export function assertTNode(tNode: TNode) {
64 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…