(fn, locals, serviceName)
| 5163 | |
| 5164 | |
| 5165 | function injectionArgs(fn, locals, serviceName) { |
| 5166 | var args = [], |
| 5167 | $inject = createInjector.$$annotate(fn, strictDi, serviceName); |
| 5168 | |
| 5169 | for (var i = 0, length = $inject.length; i < length; i++) { |
| 5170 | var key = $inject[i]; |
| 5171 | if (typeof key !== 'string') { |
| 5172 | throw $injectorMinErr('itkn', |
| 5173 | 'Incorrect injection token! Expected service name as string, got {0}', key); |
| 5174 | } |
| 5175 | args.push(locals && locals.hasOwnProperty(key) ? locals[key] : |
| 5176 | getService(key, serviceName)); |
| 5177 | } |
| 5178 | return args; |
| 5179 | } |
| 5180 | |
| 5181 | function isClass(func) { |
| 5182 | // Support: IE 9-11 only |
no test coverage detected