( notFoundValue: T | null, token: ProviderToken<T>, flags: InternalInjectFlags, )
| 384 | } |
| 385 | |
| 386 | function notFoundValueOrThrow<T>( |
| 387 | notFoundValue: T | null, |
| 388 | token: ProviderToken<T>, |
| 389 | flags: InternalInjectFlags, |
| 390 | ): T | null { |
| 391 | if (flags & InternalInjectFlags.Optional || notFoundValue !== undefined) { |
| 392 | return notFoundValue; |
| 393 | } else { |
| 394 | throwProviderNotFoundError(token, 'NodeInjector'); |
| 395 | } |
| 396 | } |
| 397 | |
| 398 | /** |
| 399 | * Returns the value associated to the given token from the ModuleInjector or throws exception |
no test coverage detected
searching dependent graphs…