lib/formulas/helpers/ember-data.js
// First arguments is a string, or a variable that is capitalized, or a member expression.
First arguments is a string, or a variable that is capitalized, or a member expression.
First arguments is a string or a variable that is capitalized or a member expression .
function isSupportedAssociationCall(node) {
  var firstArg;
  if (node.arguments.length) {
    firstArg = node.arguments[0];
    if (types.Literal.check(firstArg)) {
      return typeof firstArg.value === 'string';
    } else if (types.Identifier.check(firstArg)) {
      return firstArg.name[0] === firstArg.name[0].toUpperCase();
    }
    return types.MemberExpression.check(firstArg);
  }
  return false;
}
function isSupportedAssociationCall ( node ) { var firstArg ; if ( node . arguments . length ) { firstArg = node . arguments [ 0 ] ; if ( types . Literal . check ( firstArg ) ) { return typeof firstArg . value === 'string' ; } else if ( types . Identifier . check ( firstArg ) ) { return firstArg . name [ 0 ] === firstArg . name [ 0 ] . toUpperCase ( ) ; } return types . MemberExpression . check ( firstArg ) ; } return false ; }
First arguments is a string, or a variable that is capitalized, or a member expression.
First arguments is a string or a variable that is capitalized or a member expression .