* * @param injector * @returns Template consumer of given NodeInjector
(injector: NodeInjector)
| 44 | * @returns Template consumer of given NodeInjector |
| 45 | */ |
| 46 | function getTemplateConsumer(injector: NodeInjector): ReactiveLViewConsumer | null { |
| 47 | const tNode = getNodeInjectorTNode(injector)!; |
| 48 | assertTNode(tNode); |
| 49 | const lView = getNodeInjectorLView(injector)!; |
| 50 | assertLView(lView); |
| 51 | const templateLView = lView[tNode.index]!; |
| 52 | if (isLView(templateLView)) { |
| 53 | return templateLView[REACTIVE_TEMPLATE_CONSUMER] ?? null; |
| 54 | } |
| 55 | return null; |
| 56 | } |
| 57 | |
| 58 | const signalDebugMap = new WeakMap<ReactiveNode, string>(); |
| 59 | let counter = 0; |
no test coverage detected