Commit graph

101738 commits

Author SHA1 Message Date
Martin Kustermann a4d3ee054d [tests] Use asyncStart/asyncEnd for two language tests
In order for asynchronous tests to work on the web, they have to tell
the test runner that

* the test is async
* when the async test has finished running

This is done via calling asyncStart/asyncEnd.

Issue https://github.com/dart-lang/sdk/issues/52631
Issue https://github.com/dart-lang/sdk/issues/55865

Change-Id: I790960d7da708de4e36be9197ceb3e89f316a84e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368581
Reviewed-by: Ömer Ağacan <omersa@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2024-06-01 21:51:11 +00:00
Brian Quinlan 51ea22f13f [vm/io] Explain why the return of inflateReset can be ignored
Change-Id: I9e2bda9786f15118b422db2d6dc9c2b4aee3e272
Tested: comment-only
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369180
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Brian Quinlan <bquinlan@google.com>
2024-05-31 22:29:07 +00:00
Sam Rawlins 28be4efd8f meta: require that @mustCallSuper only annotates overridable members.
Previously, this behavior was custom-wired into the Dart analyzer, but
now it is specified with TargetKinds.

In the analyzer we remove special annotation-target-verification for
`mustCallSuper`.

Change-Id: Ibd3ada0a612069c5286facffaad557671c7a85b9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369140
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2024-05-31 21:41:43 +00:00
Ryan Macnak 3bf8f35014 [standalone] Remove dead VM sections from blob container format.
TEST=ci
Change-Id: I78940e2c617c33983748e7532cec305b1ecd1c18
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369101
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2024-05-31 21:12:28 +00:00
Brian Quinlan ea44765874 [vm/io] Add support for decompressing concatenated zip/gzip blocks.
Bug:https://github.com/dart-lang/sdk/issues/55469
Change-Id: I030e22cafba9164b305972c53d3ba9342503a836
Tested: unit tests
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/363964
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Brian Quinlan <bquinlan@google.com>
2024-05-31 20:23:53 +00:00
Konstantin Shcheglov 4f6cca1e1e CQ. Extract package:analyzer/error/error.dart library cycle.
By removing unnecessary references to higher level libraries we
can extract a separate 19 libraries cycle, related to errors. Maybe
later we can break it further.

This reduces the mono-cycle from 295 to 270 libraries.

Change-Id: Id9db12002dba10788b65262d3d7325ad6079ceff
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369120
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-05-31 20:22:28 +00:00
Konstantin Shcheglov 2628bfe733 QuickFix. Issue 55805. Create extension method.
Bug: https://github.com/dart-lang/sdk/issues/55805
Change-Id: Ifbe1420413ebe20e6e5e28c49da6c1cde6f801ee
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368900
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-05-31 20:07:31 +00:00
Konstantin Shcheglov f69ac337ca CQ. Stop using File.createSource() in analyzer/.
This mixes layers, which I believe one of the ways that cause large
library cycles.

Change-Id: Ie1cf991bcd40b19127a6ade7efc5ad5fd69d0018
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368942
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-05-31 20:06:28 +00:00
Konstantin Shcheglov d696014fe5 CQ. Stop using File.createSource() in analysis_server/.
This mixes layers, which I believe one of the ways that cause large
library cycles.

Change-Id: Id7124b9f4e4bf81838f637255fe04fd28f5fda01
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368980
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-05-31 19:43:58 +00:00
Alexander Aprelev 7fa9b814d2 [io/socket_read] Limit aggregated read bytes to prevent OOM.
Also use non-copying BytesBuilder.

Fixes https://github.com/dart-lang/sdk/issues/55885
TEST=ci and repro from the github issue

Change-Id: Ida0feff32a3c9ee1e89add3b3696efefdc94fc28
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369141
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2024-05-31 19:39:59 +00:00
Devon Carew fd45d2c39d Update Triaging-Dart-SDK-issues.md
Closes https://github.com/dart-lang/sdk/pull/55874

GitOrigin-RevId: 844c34723af107ad3f315fdce4cc70a69704b9fa
Change-Id: If186d28ca57a8a50c276e6602ff01ac0e7e5aff9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368840
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2024-05-31 18:09:32 +00:00
Kallen Tu fcfc66f834 [wildcard-variables] Add wildcard import prefix tests.
Bug: https://github.com/dart-lang/sdk/issues/55652
Change-Id: I9f17727bcc96bec9fbb01664244a44710f8f02e6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368061
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Kallen Tu <kallentu@google.com>
2024-05-31 17:39:54 +00:00
pq 8cb19d85f0 quick fix for SEALED_MIXIN
Change-Id: Ib0c2cbe337d1b5acc7e3b341d57ded83b6957cdf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368961
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Auto-Submit: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-05-31 17:26:30 +00:00
Sam Rawlins 43791032fc analyzer: Allow generic function types as type arguments in const creations
Fixes https://github.com/dart-lang/sdk/issues/55459

Change-Id: I0903f3784a4f370981926c29561904d61420ef34
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369121
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Auto-Submit: Samuel Rawlins <srawlins@google.com>
2024-05-31 17:12:49 +00:00
Ömer Sinan Ağacan d56cef5b3b [dart2wasm] Simplify calculateTransitiveImportsOfJsInteropIfUsed
- Don't convert the result to list: we don't need the result as list so
  conversion is not necessary.

- Return empty set instead of null when empty: `null` and empty set
  represents the same thing, using just one value is simpler for the
  downstream as we don't need to check both the null case and whether
  the set is empty.

Change-Id: I925e9bd8962eeb91a4a20ab5b7218a27d263bece
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369021
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Ömer Ağacan <omersa@google.com>
2024-05-31 16:49:59 +00:00
Konstantin Shcheglov 9f6db2b92d CQ. Stop using File.createSource() in analyzer_plugin/.
This mixes layers, which I believe one of the ways that cause large
library cycles.

Change-Id: Ic21292f2d831229a3ba444abf3131c66ec9968d6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368940
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-05-31 16:14:31 +00:00
Konstantin Shcheglov 43fa0e06c6 CQ. Stop importing build_resolvers.dart
It exports some libraries, but this is for a specific client.
Not to import everywhere in the analyzer :-)

Change-Id: If87435b07e76cc252d3a821e28a7c38d5533fa87
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368922
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2024-05-31 16:10:59 +00:00
Stephen Adams 20316bcc5b Reapply "[js_runtime, js_dev_runtime] Implement microsecond field of DataTime"
Original change: https://dart-review.googlesource.com/c/sdk/+/366963

This reverts commit 72b2883c6f.


[js_runtime, js_dev_runtime] Implement `microsecond` field of `DataTime`

- Move DateTime implementation for dart2js and DDC into a shared place to reduce duplication.

- Add a _microsecond field to the web DateTime to track microseconds outside of the JavaScript Date.

- The cute dart2js optimization whereby `DateTime.now().millisecondsSinceEpoch` is compiled to `Date.now()` still works.

- Both implementations report better errors.

- Fixed VM bug with in-range sentinel.


Issue: https://github.com/dart-lang/sdk/issues/44876
Issue: https://github.com/firebase/flutterfire/issues/12102
Issue: b/342552853
CoreLibraryReviewExempt: Reapply of unchanged code
Change-Id: I7f14b69e412a052ef3fe6b43cc9cf9d96319adb8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368380
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
2024-05-31 15:42:14 +00:00
Konstantin Shcheglov b2329f92c0 CQ. Stop exporting src/file_system/file_system.dart
Change-Id: Idbd9f8ff36ebf339bf62e4a0c3d4d42009913d60
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368921
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-05-31 14:55:02 +00:00
Martin Kustermann a98ce03e13 [dart2wasm] Add --(no-)strip-wasm flag and deprecate --(no-)name-section
`flutter build web --wasm`
  * uses the `--(no-)strip-wasm` flag for stripping
  * by default it strips the wasm file in `--release` mode

=> We align `dart compile wasm` to use the same flag and have the same
   default.

After this CL rolled into flutter, we can make flutter pass the new flag
down and remove the old `--name-section` flag.

Change-Id: I6dc6be86a3a90f14617bc795843b0e54f54fa761
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369062
Reviewed-by: Ömer Ağacan <omersa@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2024-05-31 13:17:38 +00:00
Martin Kustermann 28a40a2226 [dart2wasm] Print error message if neither --platform nor --libraries-spec (or both) are specified
Closes https://github.com/dart-lang/sdk/issues/55883

Change-Id: I30610391cf8ef57d4a8a62c024227f41c8bce2e1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369024
Reviewed-by: Ömer Ağacan <omersa@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2024-05-31 12:52:41 +00:00
Ömer Sinan Ağacan 35bc17a0fa [dart2wasm] Check import/export pragmas in user code
Change-Id: I926d108a4571d685c67d3a174a8e506910cce8f7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369020
Commit-Queue: Ömer Ağacan <omersa@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2024-05-31 09:22:28 +00:00
Erik Ernst b56843da32 Spec parse null aware elements
Change-Id: Ib61fea3bec110c0a2c560c965912c51a1c4e22cf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368569
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
2024-05-31 09:12:01 +00:00
Johnni Winther 3c85d3443a [cfe] Remove ModifierBuilder
Change-Id: Ic65ccdeaaa69ba9bd8119cc2a7c1339fc8facf43
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368781
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2024-05-31 08:29:11 +00:00
Nate Biggs 30c6e81cfe [dart2wasm] Clean up unused implementedBy list for ClassInfo.
These were used for lazily computed ClassInfo.repr struct representation. But this is now eagerly computed so implementedBy is no longer used.

Change-Id: Ie8d28b110a1a7d109cc6e759b9cbe69c646829b4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368763
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Ömer Ağacan <omersa@google.com>
2024-05-31 07:25:49 +00:00
Ömer Sinan Ağacan dbcf23a5ed [dart2wasm] Disallow dart:ffi in user code
Change-Id: I1d99637e4538a183d8fa567399bfb7c55675e60e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368568
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Ömer Ağacan <omersa@google.com>
2024-05-31 07:12:21 +00:00
Sam Rawlins ebd8c46b85 DAS: Make _AbstractCorrectionProducer._context non-late, final.
We do this by passing a CorrectionProducerContext up each of the
constructors. We can then remove all `configure` methods. This
requires a few changes and allows a few changes:

* Remove ParsedCorrectionProducer. It does not seem to have served a
  purpose.
* CorrectionProducerContext no longer needs to be generic.
* Add a public getter for `MultiCorrectionProducer._context`, so that
  a multi correction producer can pass along its context to child
  correction producers.
* Introduce a `CorrectionProducerContext.instance` dummy variable,
  used when we need to check if a correction producer can be applied
  in bulk.
* Make `CorrectionProducerContext._node` public, so that it can be
  used in factory constructors.
* `BulkFixProcesor.correctionContext()` return type is non-nullable.
* Add a factory constructor for AddMissingParameter, and move the
  `configure` logic there.
* Add a factory constructor for ConvertAddAllToSpread, and move the
  `configure` logic there. Then make `_isInlineInvocation` and
  `_invocation` final.
* Add a factory constructor for ReplaceFinalWithVar, and move the
  `configure` logic there. Then make `_removeFinal` and
  `_finalKeyword` final.
* Add a factory constructor for ReplaceWithIsEmpty, and move the
  `configure` logic there. Then make `fixKind`, `multiFixKind`,
  `_binary`, and `_replacement` final.
* Rename `_AddMissingParameter.context` to `_executableParameters`,
  and make it final.


Cq-Include-Trybots: luci.dart.try:flutter-analyze-try,analyzer-win-release-try,pkg-win-release-try
Change-Id: If0e9bc1cbf5c8e656938bc6cd4eb32a9d4f06b38
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368760
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2024-05-30 22:49:39 +00:00
pq f517dd6436 [wildcards] update UNUSED_ELEMENT reporting for local functions
Change-Id: Id15e72ae91ee46273a80bec7af447e5a0fa41cca
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368880
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2024-05-30 22:27:18 +00:00
Devon Carew d36a8929ae Bump bazel_worker to 2ec90c023d7c62a38cfbd2f34f55093ab38ccf85
Changes:
```
> git log --format="%C(auto) %h %s" 2fb4fbf..2ec90c0
 https://dart.googlesource.com/bazel_worker.git/+/2ec90c0 bump lints dep and fix (92)

```

Diff: https://dart.googlesource.com/bazel_worker.git/+/2fb4fbff6ee8d26fee1f3576fa0500057d897afd..2ec90c023d7c62a38cfbd2f34f55093ab38ccf85/
Change-Id: I48be7e2254a99b83d53a7dea721d57ec7b56c2f6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368820
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Ivan Inozemtsev <iinozemtsev@google.com>
2024-05-30 22:08:38 +00:00
Konstantin Shcheglov cecc7c8567 CQ. Rename InterfaceScope to InstanceScope.
Change-Id: If182c8a7baf476dde2b5f66c6cb7c7f87ff201cc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368761
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-05-30 21:33:48 +00:00
pq 65bcf1b0ab quick fix for SEALED_MIXIN_CLASS
Change-Id: I32e120d40301ac6fe7e3f239b29e0127815be69d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368882
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Auto-Submit: Phil Quitslund <pquitslund@google.com>
2024-05-30 21:28:40 +00:00
Ryan Macnak 6694cae4d7 [vm, gc] Incremental compaction, take 3.
- Use atomics to mark remembered cards in the write barrier stub.

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/52513
Bug: https://github.com/dart-lang/sdk/issues/55754
Change-Id: I1f78c6b680a6ae9170613ba328a244335a6343e2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368480
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2024-05-30 21:01:39 +00:00
Ryan Macnak 16f3ad9078 [vm, compiler] Assert against unpredictable forms of load/store exclusive on ARM.
Make ARM64 disassembly closer to the standard form.

TEST=ci
Change-Id: I459093abe049835c6597b80c8020566054a12b48
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368824
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2024-05-30 20:09:29 +00:00
Konstantin Shcheglov 31652ba921 Macro. Issue 55611. Support for type parameters as diagnostic targets, resolution.
Bug: https://github.com/dart-lang/sdk/issues/55611
Change-Id: Ifd42d594cb9f4bd6a790f406e507ac11fdb63289
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368881
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-05-30 18:44:45 +00:00
Konstantin Shcheglov 106e639734 Prepare to publish analyzer 6.5.2 and _fe_analyzer_shared 70.0.0
After https://dart-review.googlesource.com/c/sdk/+/368424

Change-Id: I7523f96507c7cca0bb074ba67f9a53338bae350c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368821
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-05-30 17:38:39 +00:00
なつき 0fba690acc [infra] Install alpine riscv64 sysroot
Closes https://github.com/dart-lang/sdk/pull/55875

GitOrigin-RevId: 46d7031db865173547f3d3b502f9c43a8172d8a9
Change-Id: I15e77d172d8db737d712463a40b27f5b7ca776b3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368823
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2024-05-30 17:33:04 +00:00
Devon Carew 25d693c9f7 [deps] rev args, async, benchmark_harness, boolean_selector, collection, dartdoc, logging, markdown, shelf, yaml_edit
Revisions updated by `dart tools/rev_sdk_deps.dart`.

args (cf90551..b3608bd):
  b3608bd  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/args#275)

async (77a25d7..f933ddf):
  f933ddf  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/async#275)

benchmark_harness (accc755..6fa42b0):
  6fa42b0  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/benchmark_harness#106)

boolean_selector (2cbd4a6..84467e5):
  84467e5  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/boolean_selector#61)

collection (4718398..fe2e800):
  fe2e800  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/collection#344)

dartdoc (1e1a004..ed97585):
  ed975850  2024-05-28  Sam Rawlins  Fix flutter CI with re-internalized snippets tool (dart-lang/dartdoc#3776)

logging (49d89b1..7f722dc):
  7f722dc  2024-05-30  Jonas Finnemann Jensen  Add `topics` to `pubspec.yaml` (dart-lang/logging#164)

markdown (340c76f..c1013dc):
  c1013dc  2024-05-28  Kevin Moore  update lints dependency (dart-lang/markdown#613)
  7a3b8d6  2024-05-28  Sam Rawlins  Bump to 7.2.3 (dart-lang/markdown#612)

shelf (d9f82bf..338962c):
  338962c  2024-05-28  Kevin Moore  update lints dependency (dart-lang/shelf#433)

yaml_edit (3191934..963e7a3):
  963e7a3  2024-05-30  Jonas Finnemann Jensen  Update CHANGELOG.md (dart-lang/yaml_edit#82)
  8fdc96d  2024-05-30  Jonas Finnemann Jensen  Better logging in random_test.dart, and less overall noise from warnings (dart-lang/yaml_edit#81)

Change-Id: I8648cd3c740fbe8ad6a658ae5ed2b5be5c01e2ec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368822
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2024-05-30 17:30:26 +00:00
Elliott Brooks 6805de2152 Update webdev dep
Change-Id: I279b44742f58fe5c7a19c79d4ef5c23784294c99
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368503
Commit-Queue: Elliott Brooks <elliottbrooks@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2024-05-30 17:24:39 +00:00
Ben Konyi 02f32f320e [ package:vm_service ] Prep for 14.2.3 release
Change-Id: I2a861d2021553f2cc4b0dbdc2390bff4edf49f84
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368860
Auto-Submit: Ben Konyi <bkonyi@google.com>
Reviewed-by: Derek Xu <derekx@google.com>
Commit-Queue: Derek Xu <derekx@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2024-05-30 17:22:23 +00:00
Kenzie Schmoll 8b658eb6b7 Update DevTools rev to a53696352fe1508c18d908a85b68c113b11dbe58
Change-Id: I14a78c89238789fab06b0c4fe5c398213122df83
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368720
Commit-Queue: Kenzie Davisson <kenzieschmoll@google.com>
Reviewed-by: Elliott Brooks <elliottbrooks@google.com>
2024-05-30 16:50:41 +00:00
Paul Berry 547307e554 Add SharedType.nullabilitySuffix getter.
This allows TypeAnalyzerOperations.getNullabilitySuffix to be removed,
and allows shared code to access nullability suffixes directly as
properties of a type, in the same way that the analyzer does.

Change-Id: I33ab90798b779534b5b0b111ec5137845b32f23b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368443
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2024-05-30 16:43:29 +00:00
Paul Berry b4a4075d5d Remove isNonNullableByDefault parameter from isTypeWithoutNullabilityMarker.
There is no functional change, because all callers were passing `true`.

Change-Id: I59a70e16b543023ee84657cf4e0d7ef3e0d4de8e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/367420
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2024-05-30 16:37:47 +00:00
Ivan Inozemtsev be24c7942e Revert "[deps] rev args, async, benchmark_harness, boolean_selector, collection, dartdoc, markdown, shelf, web, web_socket_channel, webdev"
This reverts commit 9c5085ec5b.

Reason for revert: b/343654390

Original change's description:
> [deps] rev args, async, benchmark_harness, boolean_selector, collection, dartdoc, markdown, shelf, web, web_socket_channel, webdev
>
> Revisions updated by `dart tools/rev_sdk_deps.dart`.
>
> args (cf90551..b3608bd):
>   b3608bd  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/args#275)
>
> async (77a25d7..f933ddf):
>   f933ddf  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/async#275)
>
> benchmark_harness (accc755..6fa42b0):
>   6fa42b0  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/benchmark_harness#106)
>
> boolean_selector (2cbd4a6..84467e5):
>   84467e5  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/boolean_selector#61)
>
> collection (4718398..fe2e800):
>   fe2e800  2024-05-28  Kevin Moore  bump lints dep and fix (dart-lang/collection#344)
>
> dartdoc (1e1a004..ed97585):
>   ed975850  2024-05-28  Sam Rawlins  Fix flutter CI with re-internalized snippets tool (dart-lang/dartdoc#3776)
>
> markdown (340c76f..c1013dc):
>   c1013dc  2024-05-28  Kevin Moore  update lints dependency (dart-lang/markdown#613)
>   7a3b8d6  2024-05-28  Sam Rawlins  Bump to 7.2.3 (dart-lang/markdown#612)
>
> shelf (d9f82bf..338962c):
>   338962c  2024-05-28  Kevin Moore  update lints dependency (dart-lang/shelf#433)
>
> web (d776645..f6f778b):
>   f6f778b  2024-05-28  Kenzie Davisson  Expose `onUnload` event stream and `ElementStream` as a public class (dart-lang/web#246)
>   e1d5148  2024-05-23  Kevin Moore  Update MDN source and doc comments (dart-lang/web#244)
>   53862f1  2024-05-22  Kevin Moore  update lints dependency (dart-lang/web#243)
>   7604578  2024-05-21  Srujan Gaddam  Only emit APIs that are standards track and not experimental (dart-lang/web#239)
>
> web_socket_channel (45b8ce9..afd1e3c):
>   afd1e3c  2024-05-23  Brian Quinlan  Remove `--fatal-infos` from `dart pub downgrade` analysis (dart-lang/web_socket_channel#367)
>   cb20b71  2024-05-23  Sarah Zakarias  Add `topics` to `pubspec.yaml` (dart-lang/web_socket_channel#362)
>   8514229  2024-05-22  Kevin Moore  Bump and fix lints (dart-lang/web_socket_channel#366)
>
> webdev (fc32eb6..1bed26a):
>   1bed26ab  2024-05-28  Elliott Brooks  Add a reload handler along with a restart handler (dart-lang/webdev#2439)
>   15028c4f  2024-05-24  Elliott Brooks  Register a restart handler directly over the VM service connection (dart-lang/webdev#2437)
>
> Change-Id: I4e80ae77b6e74b9cd0b5524b1ba66e0f3de0a14e
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368445
> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
> Auto-Submit: Devon Carew <devoncarew@google.com>

Change-Id: Ief02507626fe2ef4e8a92e20872a0fec37ae3b71
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368800
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
Auto-Submit: Ivan Inozemtsev <iinozemtsev@google.com>
2024-05-30 15:52:12 +00:00
Parker Lougheed fef2ba30a6 [dartdev] Avoid unnecessary uses of late
Change-Id: I702e5c91e803b06dd1321efe563c104bc00c19d3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368740
Reviewed-by: Derek Xu <derekx@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2024-05-30 14:55:21 +00:00
Keerti Parthasarathy e3f2d23433 [clean up]Move local_library_contributor.dart to cider directory.
local_library_contributor is used only in the cider completions and should be alongside the rest of the cider completion code.

Change-Id: Id11ffaf50c59437a58284c6deb8ac406faf7cada
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368660
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
2024-05-30 14:27:39 +00:00
Martin Kustermann 7f3b61fc0c [dart2wasm] Roll binaryen to g3 version
The binaryen bug we encountered (see [0]) recently was fixed, so we can roll
forward now.

[0] https://github.com/WebAssembly/binaryen/issues/6593

Change-Id: Ia34551935f2a2ca5786059416b5ab17e9d43aa06
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368646
Reviewed-by: Ömer Ağacan <omersa@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2024-05-30 14:04:23 +00:00
Johnni Winther 1315b3ab72 [kernel] Remove isNonNullableByDefault from checkBounds and instantiateToBounds
Change-Id: Ie1faa72cd1d9eaae65e1fb2fd44bf7a70b94a025
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368641
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2024-05-30 13:51:46 +00:00
Jens Johansen c543ceb96a [CFE] Small changes to direct-from-parser ast
Unrelated to anything. Done when I was trying something else that didn't
pan out.

Change-Id: Idd8e03fa142d3ec9d373956d3cc6163d828d4314
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368801
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2024-05-30 13:44:02 +00:00
Chloe Stefantsova be12c49339 [cfe] Allow augmenting top-level members in the same file
Change-Id: Ie512f1086d8d4a377dbec4fca206079dbbd80433
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/366760
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2024-05-30 13:32:25 +00:00
Paul Berry 5bb928002e Remove isNonNullableByDefault parameters from methods in StandardBounds.
There is no functional change, because all callers were passing `true`.

Change-Id: I304b0694946565bd765d3fd10fc2a77bda201117
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/368501
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2024-05-30 13:21:18 +00:00