docs: function dollarQify (node) {
    if (node.type === 'NewExpression' && node.callee.name === 'Promise') {
      node.update('$q(' + argsToSrc(node) + ')');
    } else if (node.type === 'CallExpression') {
      var callee = node.callee.source(),
          match,
          method;
      if (match = callee.match(/^Promise\.(resolve|reject|all)$/)) {
        var method = match[1];
        if (method === 'resolve') {
          method = 'when';
        }
        node.update('$q.' + method + '(' + argsToSrc(node) + ')');
      }
    } else {
      return false;
    }
    return true;
  }