( ctx: Context, injection: Injection, session: ResolutionSession, )
| 470 | } |
| 471 | |
| 472 | function resolveAsBinding( |
| 473 | ctx: Context, |
| 474 | injection: Injection, |
| 475 | session: ResolutionSession, |
| 476 | ) { |
| 477 | const targetName = assertTargetType(injection, Binding); |
| 478 | const bindingSelector = injection.bindingSelector; |
| 479 | if (!isBindingAddress(bindingSelector)) { |
| 480 | throw new Error( |
| 481 | `@inject.binding (${targetName}) does not allow BindingFilter.`, |
| 482 | ); |
| 483 | } |
| 484 | return findOrCreateBindingForInjection(ctx, injection, session); |
| 485 | } |
| 486 | |
| 487 | function findOrCreateBindingForInjection( |
| 488 | ctx: Context, |
nothing calls this directly
no test coverage detected