finishRawString method

Token finishRawString(
  1. int quote
)

Implementation

Token finishRawString(int quote) {
  if (_maybeEatChar(quote)) {
    if (_maybeEatChar(quote)) {
      return finishMultilineRawString(quote);
    } else {
      return _makeStringToken(<int>[], false);
    }
  }
  while (true) {
    var ch = _nextChar();
    if (ch == quote) {
      return _makeRawStringToken(false);
    } else if (ch == 0) {
      return _errorToken();
    }
  }
}