lib/utils/utils.js
function parseCallee(node) {
  const parsedCallee = [];
  let callee;

  if (isCallExpression(node) || isNewExpression(node)) {
    callee = node.callee;

    while (isMemberExpression(callee)) {
      if (isIdentifier(callee.property)) {
        parsedCallee.push(callee.property.name);
      }
      callee = callee.object;
    }

    if (isIdentifier(callee)) {
      parsedCallee.push(callee.name);
    }
  }

  return parsedCallee.reverse();
}
function parseCallee(node) {
  const parsedCallee = [];
  let callee;

  if (isCallExpression(node) || isNewExpression(node)) {
    callee = node.callee;

    while (isMemberExpression(callee)) {
      if (isIdentifier(callee.property)) {
        parsedCallee.push(callee.property.name);
      }
      callee = callee.object;
    }

    if (isIdentifier(callee)) {
      parsedCallee.push(callee.name);
    }
  }

  return parsedCallee.reverse();
}
function parseCallee ( node ) { const parsedCallee = [ ] ; let callee ; if ( isCallExpression ( node ) || isNewExpression ( node ) ) { callee = node . callee ; while ( isMemberExpression ( callee ) ) { if ( isIdentifier ( callee . property ) ) { parsedCallee . push ( callee . property . name ) ; } callee = callee . object ; } if ( isIdentifier ( callee ) ) { parsedCallee . push ( callee . name ) ; } } return parsedCallee . reverse ( ) ; }
Parse CallExpression or NewExpression to get array of properties and object name

@param  {Object} node The node to parse
@return {String[]} eg. ['Ember', 'computed', 'alias']
Parse CallExpression or NewExpression to get array of properties and object name