MCPcopy
hub / github.com/angular/angular / assertNodeInjector

Function assertNodeInjector

packages/core/src/render3/assert.ts:184–199  ·  view source on GitHub ↗
(lView: LView, injectorIndex: number)

Source from the content-addressed store, hash-verified

182 * @param injectorIndex index into the `LView` where the `NodeInjector` is expected.
183 */
184export function assertNodeInjector(lView: LView, injectorIndex: number) {
185 assertIndexInExpandoRange(lView, injectorIndex);
186 assertIndexInExpandoRange(lView, injectorIndex + NodeInjectorOffset.PARENT);
187 assertNumber(lView[injectorIndex + 0], 'injectorIndex should point to a bloom filter');
188 assertNumber(lView[injectorIndex + 1], 'injectorIndex should point to a bloom filter');
189 assertNumber(lView[injectorIndex + 2], 'injectorIndex should point to a bloom filter');
190 assertNumber(lView[injectorIndex + 3], 'injectorIndex should point to a bloom filter');
191 assertNumber(lView[injectorIndex + 4], 'injectorIndex should point to a bloom filter');
192 assertNumber(lView[injectorIndex + 5], 'injectorIndex should point to a bloom filter');
193 assertNumber(lView[injectorIndex + 6], 'injectorIndex should point to a bloom filter');
194 assertNumber(lView[injectorIndex + 7], 'injectorIndex should point to a bloom filter');
195 assertNumber(
196 lView[injectorIndex + NodeInjectorOffset.PARENT],
197 'injectorIndex should point to parent injector',
198 );
199}

Callers 2

parentInjectorMethod · 0.90

Calls 2

assertNumberFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…