1061c83779
This is the first in a multi step process of moving scanner errors out of the token stream and into a separate errors list produced by the scanner. As of this CL, if the scanner.reportErrors flag is set then the scanner will report the unterminated string error via the errors list rather than the token stream. Once all scanner clients have been updated to process errors reported through the scanner's error list, then the scanner.reportErrors flag will be removed. Change-Id: I6ef73df786d98a387cbf2044c4c8325412573f11 Reviewed-on: https://dart-review.googlesource.com/c/80509 Reviewed-by: Peter von der Ahé <ahe@google.com> Commit-Queue: Dan Rubel <danrubel@google.com>