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

Function assertTNode

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

Source from the content-addressed store, hash-verified

60}
61
62export function assertTNode(tNode: TNode) {
63 assertDefined(tNode, 'TNode must be defined');
64 if (!(tNode && typeof tNode === 'object' && Object.hasOwn(tNode, 'directiveStylingLast'))) {
65 throwError('Not of type TNode, got: ' + tNode);
66 }
67}
68
69export function assertTIcu(tIcu: TIcu) {
70 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