finishMultiLineComment method

  1. @override
Token finishMultiLineComment()
override

Implementation

@override
Token finishMultiLineComment() {
  while (true) {
    var ch = _nextChar();
    if (ch == 0) {
      return _finishToken(TokenKind.INCOMPLETE_COMMENT);
    } else if (ch == 42 /*'*'*/) {
      if (_maybeEatChar(47 /*'/'*/)) {
        if (_inString) {
          return next();
        } else {
          return _finishToken(TokenKind.COMMENT);
        }
      }
    }
  }
}