Branch: refs/heads/main
Home:
https://github.com/dart-lang/sdk
Commit: 728f837e1872dfae0f1e200e59681db75702a5f4
https://github.com/dart-lang/sdk/commit/728f837e1872dfae0f1e200e59681db75702a5f4
Author: Paul Berry <
paul...@google.com>
Date: 2026-01-16 (Fri, 16 Jan 2026)
Changed paths:
M pkg/analyzer/lib/src/dart/scanner/scanner.dart
M pkg/analyzer/lib/src/dart/scanner/translate_error_token.dart
M pkg/analyzer/lib/src/diagnostic/diagnostic.g.dart
M pkg/analyzer/lib/src/fasta/error_converter.dart
M pkg/analyzer/messages.yaml
M pkg/front_end/test/scanner_cfe_test.dart
M pkg/front_end/test/scanner_replacement_test.dart
M pkg/front_end/test/scanner_test.dart
Log Message:
-----------
[messages] Use literate API for scanner error reporting.
Changes the error reporting logic in the `Scanner` class to use the
literate diagnostic reporting API, along with the top level function
`translateErrorToken`, which `Scanner` makes use of.
This required changing the signature of the `ReportError` typedef,
which is used to communicate scanner errors to front end unit tests.
Change-Id: I6a6a6964c1402b30de96ee2555016934c4ba40d8
Reviewed-on:
https://dart-review.googlesource.com/c/sdk/+/473423
Commit-Queue: Paul Berry <
paul...@google.com>
Reviewed-by: Konstantin Shcheglov <
sche...@google.com>
To unsubscribe from these emails, change your notification settings at
https://github.com/dart-lang/sdk/settings/notifications