Nicholas Shahan
60d418034a
[ddc] Bump language version to 3.8
...
* Reformat pkg/dev_compiler.
* Re-flow some comments to keep them within 80 characters.
Change-Id: I0849ce113ecf3dce4a2b4405c2b09a17dee4df76
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/433081
Reviewed-by: Mark Zhou <markzipan@google.com >
Commit-Queue: Nicholas Shahan <nshahan@google.com >
2025-06-05 10:40:57 -07:00
Oleh Prypin
0da8f7a7b4
Remove unnecessary imports of 'package:collection' IterableExtension
...
* Replace `.whereNotNull()` with `.nonNulls` which is now in Dart core.
* `.firstOrNull`, `.lastOrNull`, `.singleOrNull` and `.elementAtOrNull(i)` are also in Dart core and even under the same name, so simply drop the import of 'package:collection' whenever possible.
Bug: b/322159291
Change-Id: I81eb93426680dc78a608bbcc714eb26c0eca5c62
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/348260
Reviewed-by: Lasse Nielsen <lrn@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
Commit-Queue: Oleh Prypin <oprypin@google.com >
2024-01-25 11:07:28 +00:00
Nicholas Shahan
017401cb35
[ddc] Migrate stack trace utilities to null safety
...
Issue: https://github.com/dart-lang/sdk/issues/46617
Change-Id: Idfd614e3bcc4e3e8ae1597d69c97d007b7efd306
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250351
Commit-Queue: Nicholas Shahan <nshahan@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
2022-07-19 21:37:34 +00:00
pq
d2882856ef
lints 2.0 fixes
...
In anticipation of lints v 2.0.
See: https://dart-review.googlesource.com/c/sdk/+/237746
Change-Id: If6ec7f0bae314af3aa84e4d8a7b9fc1b8219c128
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237763
Reviewed-by: Nicholas Shahan <nshahan@google.com >
Reviewed-by: Srujan Gaddam <srujzs@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2022-03-18 01:42:47 +00:00
Leaf Petersen
e85bf740ef
Opt pkg/dev_compiler out of null safety.
...
Change-Id: I62207a436605480b6981b8b00bf7b88d8589db0f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/166980
Commit-Queue: Leaf Petersen <leafp@google.com >
Reviewed-by: Nicholas Shahan <nshahan@google.com >
2020-10-12 23:25:42 +00:00
Nicholas Shahan
e3797b1bb7
[dartdevc] Apply more lints from pedantic v1.9.0 and cleanup violations
...
- avoid_null_checks_in_equality_operators
- camel_case_extensions
- prefer_adjacent_string_concatenation
- prefer_collection_literals
- prefer_for_elements_to_map_fromIterable
- prefer_if_null_operators
- prefer_spread_collections
Change-Id: Iab816e71274a57cbca9b4006dc8dbc55604fcb2f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/133500
Commit-Queue: Nicholas Shahan <nshahan@google.com >
Reviewed-by: Nate Bosch <nbosch@google.com >
2020-01-29 22:14:00 +00:00
Nate Bosch
2d82fb42ce
Enforce and fix lint prefer_single_quotes
...
Change-Id: I7e7b18d90ae8518c700607ec383c73a0eda5a299
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/130726
Reviewed-by: Nicholas Shahan <nshahan@google.com >
Commit-Queue: Nicholas Shahan <nshahan@google.com >
Auto-Submit: Nate Bosch <nbosch@google.com >
2020-01-08 22:07:21 +00:00
Mark Zhou
b368a6de1c
[dartdevc] copying over sourcemap file from build_web_compilers
...
Change-Id: Id5e4554c775becc9b1313c5cd85bd02920ea52f1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121440
Commit-Queue: Mark Zhou <markzipan@google.com >
Reviewed-by: Jake Macdonald <jakemac@google.com >
2019-10-15 20:03:34 +00:00
Jacob MacDonald
7972c61aab
fix detection of dart sdk lines in stack traces to recognize the ddk sdk
...
Change-Id: Ic94460833e9358b631bf1485a495ae386ff3e863
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118780
Reviewed-by: Vijay Menon <vsm@google.com >
Commit-Queue: Jake Macdonald <jakemac@google.com >
Auto-Submit: Jake Macdonald <jakemac@google.com >
2019-09-25 15:45:09 +00:00
Jenny Messerly
1ef4399df0
Run dartfmt --fix for dart2 on pkg/dev_compiler
...
This uses optional new/const and `=` in named argument defaults.
All changes are automated, except for:
- utils/dartdevc/BUILD.gn: run DDC build scripts with --preview-dart-2
- pkg/dev_compiler/tool/patch_sdk.dart: add a TODO that Analyzer doesn't
supporting implicit const in libraries.dart
- pkg/dev_compiler/tool/input_sdk/libraries.dart: was not formatted due
to the aforementioned Analyzer bug
- tools/bots/test_matrix.json: run DDC sourcemap suite in Dart 2 mode
- pkg/pkg.status: skip pkg/dev_compiler if running in Dart 1 mode
Change-Id: I9b80ccba0c2cc7b66efc662a0b16562e3660aee3
Reviewed-on: https://dart-review.googlesource.com/60402
Commit-Queue: Jenny Messerly <jmesserly@google.com >
Reviewed-by: Bob Nystrom <rnystrom@google.com >
2018-06-15 00:28:13 +00:00
Vijay Menon
34f8c356a3
Fix sdk stack trace mapping so tools recognize it
...
This should fix #32389
Change-Id: I1e6f1a7aea852abb9b2b4a9bf851941a8e0c91e7
Reviewed-on: https://dart-review.googlesource.com/44840
Reviewed-by: Jake Macdonald <jakemac@google.com >
Commit-Queue: Vijay Menon <vsm@google.com >
2018-03-02 19:46:49 +00:00
Vijay Menon
ea7c7988e3
Don't inline source maps into the SDK
...
Change-Id: Ia4e8673cf0c023353b27a3c0a947b09e04ec09c0
Reviewed-on: https://dart-review.googlesource.com/44320
Reviewed-by: Jenny Messerly <jmesserly@google.com >
Commit-Queue: Vijay Menon <vsm@google.com >
2018-03-01 03:21:37 +00:00
Jacob MacDonald
0bda5c9015
get source_map_stack_trace working for the external world
...
Bug:
Change-Id: I7385f2f1f11742ce5f90cce67b863ba066074679
Reviewed-on: https://dart-review.googlesource.com/41921
Reviewed-by: Vijay Menon <vsm@google.com >
Commit-Queue: Jake Macdonald <jakemac@google.com >
2018-02-15 22:45:26 +00:00
Vijay Menon
f95daf6168
Fix DDC stack trace mapping
...
This supersedes https://dart-review.googlesource.com/c/sdk/+/4614 .
Patch 1 is the unmodified source_map_stack_trace.dart. Patch 2 is my fixes for DDC.
Change-Id: I30c6fad4bdc75061edbacc5fc75482af98e29bbb
Reviewed-on: https://dart-review.googlesource.com/4960
Reviewed-by: Jacob Richman <jacobr@google.com >
Reviewed-by: Jake Macdonald <jakemac@google.com >
Commit-Queue: Vijay Menon <vsm@google.com >
2017-09-11 21:52:41 +00:00