MCPcopy Index your code
hub / github.com/RubyLouvre/anu / _loop

Function _loop

test/babel.js:827–840  ·  view source on GitHub ↗
(_type)

Source from the content-addressed store, hash-verified

825 });
826
827 var _loop = function _loop(_type) {
828 var newType = t.DEPRECATED_KEYS[_type];
829
830 function proxy(fn) {
831 return function () {
832 console.trace("The node type " + _type + " has been renamed to " + newType);
833 return fn.apply(this, arguments);
834 };
835 }
836
837 t[_type] = t[_type[0].toLowerCase() + _type.slice(1)] = proxy(t[newType]);
838 t["is" + _type] = proxy(t["is" + newType]);
839 t["assert" + _type] = proxy(t["assert" + newType]);
840 };
841
842 for (var _type in t.DEPRECATED_KEYS) {
843 _loop(_type);

Callers 2

babel.jsFile · 0.85
wrapWithStateOrWrapperFunction · 0.85

Calls 2

wrapperFunction · 0.85
proxyFunction · 0.70

Tested by

no test coverage detected