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

Function isTNodeShape

packages/core/src/render3/interfaces/node.ts:120–128  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

118 * within `TView.data`.
119 */
120export function isTNodeShape(value: unknown): value is TNode {
121 return (
122 value != null &&
123 typeof value === 'object' &&
124 ((value as TNode).insertBeforeIndex === null ||
125 typeof (value as TNode).insertBeforeIndex === 'number' ||
126 Array.isArray((value as TNode).insertBeforeIndex))
127 );
128}
129
130export function isLetDeclaration(tNode: TNode): boolean {
131 return !!(tNode.type & TNodeType.LetDeclaration);

Callers 3

resetProjectionStateFunction · 0.90
serializeLViewFunction · 0.90

Calls 1

isArrayMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…