Sam Rawlins
5e8ee77772
Support digit separators
...
Work towards https://github.com/dart-lang/language/issues/2
The feature is well-specified at the issue, but I will also follow
up with a specification to check into the language repo.
This change implements the feature more-or-less from front to back
(because the back is very close to the front in this case :P; no
"backend" work in the VM, etc). Digit separators are made available
via a new experiment, `digit-separators`.
Care is taken to report a single error when an underscore appears in
an unexpected position (see new `separators_error_test.dart`).
Three test files are added:
* `separators_test.dart` is run with the experiment enabled, and has
no compile-time errors.
* `separators_error_test.dart` is run with the experiment enabled, and
has many compile-time errors.
* `separators_error_no_experiment_test.dart` is run with the
experiment _disabled_.
Change-Id: I7f1b1305d28b708b5ddf83f26188cd6e9ce3dd58
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365181
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Lasse Nielsen <lrn@google.com >
Reviewed-by: Kevin Moore <kevmoo@google.com >
Reviewed-by: Jens Johansen <jensj@google.com >
2024-07-09 14:50:59 +00:00
..
2023-04-20 20:50:39 +00:00
2023-01-05 00:23:40 +00:00
2023-05-19 16:27:58 +00:00
2024-06-01 21:51:11 +00:00
2023-06-15 08:26:27 +00:00
2024-02-27 01:54:00 +00:00
2024-05-08 17:10:52 +00:00
2023-11-28 12:50:05 +00:00
2024-06-06 10:56:12 +00:00
2022-12-19 16:30:06 +00:00
2023-04-22 00:38:28 +00:00
2023-06-16 16:31:27 +00:00
2024-06-06 10:56:12 +00:00
2023-08-22 18:21:10 +00:00
2024-04-23 23:33:48 +00:00
2023-10-03 10:51:15 +00:00
2023-06-15 08:26:27 +00:00
2023-09-26 10:07:42 +00:00
2024-02-14 21:43:47 +00:00
2024-02-14 20:12:05 +00:00
2023-03-17 16:17:50 +00:00
2024-05-01 15:45:58 +00:00
2024-02-08 17:00:59 +00:00
2023-01-10 13:37:33 +00:00
2023-03-02 20:40:20 +00:00
2024-04-05 14:23:00 +00:00
2023-04-20 20:49:17 +00:00
2024-06-14 00:59:57 +00:00
2024-03-04 16:09:31 +00:00
2024-06-12 00:31:59 +00:00
2023-04-20 20:49:17 +00:00
2023-11-02 20:46:20 +00:00
2024-02-14 20:12:05 +00:00
2024-02-14 20:12:05 +00:00
2024-02-15 00:45:52 +00:00
2024-06-06 10:56:12 +00:00
2023-04-03 19:39:59 +00:00
2023-04-19 22:09:18 +00:00
2023-05-09 06:56:44 +00:00
2024-02-08 17:00:59 +00:00
2024-05-08 20:05:18 +00:00
2023-06-15 08:26:27 +00:00
2023-11-28 14:27:39 +00:00
2023-04-19 22:09:18 +00:00
2022-12-15 13:18:50 +00:00
2024-03-20 14:04:29 +00:00
2024-05-03 12:26:59 +00:00
2023-04-19 22:09:18 +00:00
2023-04-22 00:38:28 +00:00
2024-01-23 18:23:32 +00:00
2023-12-28 17:16:09 +00:00
2023-01-19 16:24:29 +00:00
2023-11-27 10:38:31 +00:00
2022-12-19 16:30:06 +00:00
2023-10-03 10:51:15 +00:00
2024-04-09 19:56:01 +00:00
2023-05-24 09:21:20 +00:00
2023-04-20 17:51:42 +00:00
2023-04-20 17:51:42 +00:00
2023-06-20 23:44:08 +00:00
2024-04-26 14:00:04 +00:00
2023-09-22 16:13:10 +00:00
2023-11-29 21:40:21 +00:00
2023-03-01 15:03:39 +00:00
2023-04-20 17:51:42 +00:00
2023-11-29 21:40:21 +00:00
2023-07-25 19:23:02 +00:00
2024-06-01 21:51:11 +00:00
2023-04-20 17:56:18 +00:00
2024-01-23 18:23:32 +00:00
2024-06-06 10:56:12 +00:00
2024-03-07 18:33:58 +00:00
2024-03-20 14:04:29 +00:00
2024-07-09 14:50:59 +00:00
2024-02-08 17:00:59 +00:00
2023-04-20 17:56:18 +00:00
2023-12-01 17:32:48 +00:00
2022-11-08 14:54:17 +00:00
2024-06-06 10:56:12 +00:00
2023-03-01 20:11:25 +00:00
2024-06-06 19:15:57 +00:00
2024-05-28 07:10:39 +00:00
2023-04-19 23:35:16 +00:00
2022-12-14 23:34:18 +00:00
2023-04-20 17:59:44 +00:00
2023-06-16 16:31:27 +00:00
2023-04-20 17:59:44 +00:00
2024-03-20 14:04:29 +00:00
2024-01-31 14:38:43 +00:00
2023-04-20 17:59:44 +00:00
2024-01-23 18:23:32 +00:00
2023-08-11 09:08:32 +00:00
2024-03-20 14:04:29 +00:00
2023-03-01 15:03:39 +00:00
2023-06-15 08:26:27 +00:00
2023-04-14 22:04:28 +00:00
2024-04-23 23:11:17 +00:00
2024-03-08 12:59:59 +00:00
2024-03-20 14:04:29 +00:00
2023-04-20 19:55:31 +00:00
2023-08-22 18:21:10 +00:00
2024-01-23 18:23:32 +00:00
2023-04-20 19:55:31 +00:00
2023-04-20 19:55:31 +00:00
2024-01-03 19:59:53 +00:00
2023-10-03 10:51:15 +00:00
2024-02-14 22:29:33 +00:00
2024-06-06 10:56:12 +00:00
2024-02-28 18:30:20 +00:00
2023-12-07 23:40:27 +00:00
2024-07-09 07:35:39 +00:00
2024-03-20 14:04:29 +00:00
2022-11-03 17:06:42 +00:00
2024-06-12 10:21:23 +00:00
2024-07-09 14:50:59 +00:00
2023-11-08 18:43:51 +00:00
2024-06-12 10:21:23 +00:00
2023-10-09 19:30:29 +00:00
2024-06-12 10:21:23 +00:00
2023-10-09 19:30:29 +00:00
2024-04-05 22:48:17 +00:00
2023-11-16 18:18:00 +00:00
2023-06-15 08:26:27 +00:00
2023-06-15 08:26:27 +00:00
2023-06-15 08:26:27 +00:00
2023-06-15 08:26:27 +00:00
2023-06-15 08:26:27 +00:00
2024-02-23 14:16:01 +00:00
2024-05-17 12:07:56 +00:00
2024-07-05 07:38:49 +00:00
2023-12-07 23:30:06 +00:00
2023-03-02 20:04:19 +00:00
2023-03-02 20:04:19 +00:00
2023-03-02 20:04:19 +00:00