lib/process-node.js
function offset(array, node) {
  var nodeIndex   = array.indexOf(node);
  var returnIndex = array
    .map(test.isReturnStatement)
    .indexOf(true);
  return (returnIndex < 0) ? +1 : (returnIndex > nodeIndex) ? +1 : (returnIndex - nodeIndex - 1);
}
function offset(array, node) {
  var nodeIndex   = array.indexOf(node);
  var returnIndex = array
    .map(test.isReturnStatement)
    .indexOf(true);
  return (returnIndex < 0) ? +1 : (returnIndex > nodeIndex) ? +1 : (returnIndex - nodeIndex - 1);
}
Offset function for $inject type annotateion.
@param {Array} array The array that we are splicing
@param {Object} node The node that we need to offset relative to