(fn, locals, serviceName)
| 5098 | |
| 5099 | |
| 5100 | function injectionArgs(fn, locals, serviceName) { |
| 5101 | var args = [], |
| 5102 | $inject = createInjector.$$annotate(fn, strictDi, serviceName); |
| 5103 | |
| 5104 | for (var i = 0, length = $inject.length; i < length; i++) { |
| 5105 | var key = $inject[i]; |
| 5106 | if (typeof key !== 'string') { |
| 5107 | throw $injectorMinErr('itkn', |
| 5108 | 'Incorrect injection token! Expected service name as string, got {0}', key); |
| 5109 | } |
| 5110 | args.push(locals && locals.hasOwnProperty(key) ? locals[key] : |
| 5111 | getService(key, serviceName)); |
| 5112 | } |
| 5113 | return args; |
| 5114 | } |
| 5115 | |
| 5116 | function isClass(func) { |
| 5117 | // Support: IE 9-11 only |
no test coverage detected