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

Function setCurrentTNode

packages/core/src/render3/state.ts:397–402  ·  view source on GitHub ↗
(tNode: TNode | null, isParent: boolean)

Source from the content-addressed store, hash-verified

395}
396
397export function setCurrentTNode(tNode: TNode | null, isParent: boolean) {
398 ngDevMode && tNode && assertTNodeForTView(tNode, instructionState.lFrame.tView);
399 const lFrame = instructionState.lFrame;
400 lFrame.currentTNode = tNode;
401 lFrame.isParent = isParent;
402}
403
404export function isCurrentTNodeParent(): boolean {
405 return instructionState.lFrame.isParent;

Callers 8

getOrCreateTNodeFunction · 0.90
i18nStartFirstCreatePassFunction · 0.90
createTNodeAndAddOpCodeFunction · 0.90
ɵɵtextFunction · 0.90
elementLikeStartSharedFunction · 0.90
elementLikeEndSharedFunction · 0.90
ɵɵdeclareLetFunction · 0.90
templateCreateFunction · 0.90

Calls 1

assertTNodeForTViewFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…