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

Function assertHasParent

packages/core/src/render3/assert.ts:99–102  ·  view source on GitHub ↗
(tNode: TNode | null)

Source from the content-addressed store, hash-verified

97}
98
99export function assertHasParent(tNode: TNode | null) {
100 assertDefined(tNode, 'currentTNode should exist!');
101 assertDefined(tNode!.parent, 'currentTNode should have a parent');
102}
103
104export function assertLContainer(value: any): asserts value is LContainer {
105 assertDefined(value, 'LContainer must be defined');

Callers 1

elementLikeEndSharedFunction · 0.90

Calls 1

assertDefinedFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…