parseNewExpression method

Expression parseNewExpression()

Implementation

Expression parseNewExpression() {
  assert(token!.text == 'new');
  Token newTok = next();
  if (peekName('new')) {
    Expression exp = parseNewExpression();
    return CallExpression.newCall(exp, <Expression>[])
      ..start = newTok.startOffset
      ..end = endOffset
      ..line = newTok.line;
  }
  return parseMemberExpression(newTok);
}