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

Function getTemplateConsumer

packages/core/src/render3/util/signal_debug.ts:76–86  ·  view source on GitHub ↗

* * @param injector * @returns Template consumer of given NodeInjector

(injector: NodeInjector)

Source from the content-addressed store, hash-verified

74 * @returns Template consumer of given NodeInjector
75 */
76function getTemplateConsumer(injector: NodeInjector): ReactiveLViewConsumer | null {
77 const tNode = getNodeInjectorTNode(injector)!;
78 assertTNode(tNode);
79 const lView = getNodeInjectorLView(injector)!;
80 assertLView(lView);
81 const templateLView = lView[tNode.index]!;
82 if (isLView(templateLView)) {
83 return templateLView[REACTIVE_TEMPLATE_CONSUMER] ?? null;
84 }
85 return null;
86}
87
88const signalDebugMap = new WeakMap<ReactiveNode, string>();
89let counter = 0;

Callers 1

getSignalGraphFunction · 0.85

Calls 5

getNodeInjectorTNodeFunction · 0.90
assertTNodeFunction · 0.90
getNodeInjectorLViewFunction · 0.90
assertLViewFunction · 0.90
isLViewFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…