finishString method

Token finishString(
  1. int quote
)

Implementation

Token finishString(int quote) {
  if (_maybeEatChar(quote)) {
    if (_maybeEatChar(quote)) {
      // skip an initial newline
      _maybeEatChar(TokenChar.NEWLINE);
      return finishMultilineString(quote);
    } else {
      return _makeStringToken(<int>[], false);
    }
  }
  return finishStringBody(quote);
}