* Add a factory in a multi factory. * @returns Index at which the factory was inserted.
( multiFactory: NodeInjectorFactory, factory: () => any, isComponentProvider: boolean, )
| 294 | * @returns Index at which the factory was inserted. |
| 295 | */ |
| 296 | function multiFactoryAdd( |
| 297 | multiFactory: NodeInjectorFactory, |
| 298 | factory: () => any, |
| 299 | isComponentProvider: boolean, |
| 300 | ): number { |
| 301 | if (isComponentProvider) { |
| 302 | multiFactory.componentProviders!++; |
| 303 | } |
| 304 | return multiFactory.multi!.push(factory) - 1; |
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * Returns the index of item in the array, but only in the begin to end range. |
no test coverage detected
searching dependent graphs…