MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / anonFn

Function anonFn

web/static/bower_components/angular/angular.js:3722–3731  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

3720var $injectorMinErr = minErr('$injector');
3721
3722function anonFn(fn) {
3723 // For anonymous functions, showing at the very least the function signature can help in
3724 // debugging.
3725 var fnText = fn.toString().replace(STRIP_COMMENTS, ''),
3726 args = fnText.match(FN_ARGS);
3727 if (args) {
3728 return 'function(' + (args[1] || '').replace(/[\s\r\n]+/, ' ') + ')';
3729 }
3730 return 'fn';
3731}
3732
3733function annotate(fn, strictDi, name) {
3734 var $inject,

Callers 1

annotateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected