(cls: Constructor<unknown>)
| 80 | } |
| 81 | |
| 82 | function isBindableClass(cls: Constructor<unknown>) { |
| 83 | if (MetadataInspector.getClassMetadata(BINDING_METADATA_KEY, cls)) { |
| 84 | return true; |
| 85 | } |
| 86 | if (hasInjections(cls)) { |
| 87 | return true; |
| 88 | } |
| 89 | if (isServiceProvider(cls)) { |
| 90 | debug('Provider class found: %s', cls.name); |
| 91 | return true; |
| 92 | } |
| 93 | if (isDynamicValueProviderClass(cls)) { |
| 94 | debug('Dynamic value provider class found: %s', cls.name); |
| 95 | return true; |
| 96 | } |
| 97 | debug('Skip class not decorated with @injectable: %s', cls.name); |
| 98 | return false; |
| 99 | } |
no test coverage detected