(fn, locals, serviceName)
| 5070 | |
| 5071 | |
| 5072 | function injectionArgs(fn, locals, serviceName) { |
| 5073 | var args = [], |
| 5074 | $inject = createInjector.$$annotate(fn, strictDi, serviceName); |
| 5075 | |
| 5076 | for (var i = 0, length = $inject.length; i < length; i++) { |
| 5077 | var key = $inject[i]; |
| 5078 | if (typeof key !== 'string') { |
| 5079 | throw $injectorMinErr('itkn', |
| 5080 | 'Incorrect injection token! Expected service name as string, got {0}', key); |
| 5081 | } |
| 5082 | args.push(locals && locals.hasOwnProperty(key) ? locals[key] : |
| 5083 | getService(key, serviceName)); |
| 5084 | } |
| 5085 | return args; |
| 5086 | } |
| 5087 | |
| 5088 | function isClass(func) { |
| 5089 | // Support: IE 9-11 only |
no test coverage detected