expect(type) {
    if (type != this.peek().type) {
      this.error('expected "' + type + '", got {peek}');
    }
    return this.next();
  }
Expect token `type` and return it, throw otherwise.

@param {String} type
@return {Token}
@api private