a5ab51b142
Remove the `reportScannerErrors` option from `Scanner.tokenize`. The parser handles scanner error tokens directly, so the scanner no longer needs a mode that translates and reports them before parsing. Update all callers to use the simplified `tokenize()` API. Adjust parser recovery expectations where diagnostics are now reported at the synthetic token location chosen by parser. Change-Id: Ia2d479ba57b3156f1a4bab47c32444892c9d0aa4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/500361 Reviewed-by: Johnni Winther <johnniwinther@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com>