maybeEatQuestionMark method

bool maybeEatQuestionMark()

Implementation

bool maybeEatQuestionMark() {
  if (_index < _text.length && _text.codeUnitAt(_index) == QUESTION_MARK) {
    _index += 1;
    return true;
  }
  return false;
}