MCPcopy
hub / github.com/angular/angular / assertTNode

Function assertTNode

packages/core/src/render3/assert.ts:63–68  ·  view source on GitHub ↗
(tNode: TNode)

Source from the content-addressed store, hash-verified

61}
62
63export function assertTNode(tNode: TNode) {
64 assertDefined(tNode, 'TNode must be defined');
65 if (!(tNode && typeof tNode === 'object' && tNode.hasOwnProperty('directiveStylingLast'))) {
66 throwError('Not of type TNode, got: ' + tNode);
67 }
68}
69
70export function assertTIcu(tIcu: TIcu) {
71 assertDefined(tIcu, 'Expected TIcu to be defined');

Callers 8

getExistingTNodeFunction · 0.90
insertFallbackContentFunction · 0.90
getTNodeFunction · 0.90
getTemplateConsumerFunction · 0.90
serializeLViewFunction · 0.90
assertTNodeForTViewFunction · 0.85

Calls 2

assertDefinedFunction · 0.90
throwErrorFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…