Commit graph

99031 commits

Author SHA1 Message Date
Konstantin Shcheglov 89bd370e95 AnalysisDriver. Produce results for all files of a library.
Change-Id: I0118ccdbd4a9059eb3809cb3b6a694731621d809
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345363
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-01-11 03:53:48 +00:00
Kallen Tu 19546dd720 [analyzer] Update 6.3.0 changelog with removed const evaluator.
The CHANGELOG was missing information on the removal of
`pkg/analyzer/lib/src/generated/constant.dart` in this CL https://dart-review.googlesource.com/c/sdk/+/324342.

This CL adds that change to the change log.

Change-Id: Ib8e7276d033cbd89e8eff447d2d96826cc6c9a96
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345349
Commit-Queue: Kallen Tu <kallentu@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2024-01-10 21:49:48 +00:00
Alexander Aprelev c8c7f8a2a1 [gardening] Clean up deleted tests from stress test list.
Follow-up to 154cf8c52b

TEST=ci

Change-Id: I27262b41d319297c41092a52b00ee06139945cc9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345563
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2024-01-10 21:43:09 +00:00
osama 9329f7bad7 fix tiny typo in lib/io/file.dart
Closes https://github.com/dart-lang/sdk/pull/54562

GitOrigin-RevId: f3b2502c0124f287f3eccc021c5f1623839ae3d7
Change-Id: I6af749c16a5358e910bc883ef1ddfc65c30a0c3c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345369
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
Reviewed-by: Brian Quinlan <bquinlan@google.com>
Commit-Queue: Brian Quinlan <bquinlan@google.com>
2024-01-10 20:46:38 +00:00
pq c88939d597 clarify "context" feature sets in FileStates
As discussed, the "context" prefix was confusing. I'm not sure "default" adds anything so I went with just `featureSet`.

Let me know what you think!

Change-Id: I3e7ca7ac86c3ab7d96f4d4eee34d58904403d2fd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345600
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2024-01-10 20:28:25 +00:00
Alexander Aprelev 15d8187fef [gardening] Fix line numbers in service test.
Follow-up to ffdb0a2e19

TEST=ci

Change-Id: I1f1a05c6576d6913b3808fd20a2a3e21e2f6f2ce
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345562
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2024-01-10 20:20:51 +00:00
Nicholas Shahan 154cf8c52b [tests] Cleanup remnants of multi-test migration
- Rename some compile time errors tests to end with "error_test.dart"
- Delete runtime tests that no longer perform the operations they
  claim to be testing. In many cases they do nothing at all.

Change-Id: I49c7b50d6628f56641b878635b32dbc0bc016bbb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345345
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
2024-01-10 18:35:50 +00:00
Ryan Macnak 8938a7e499 [vm] Ensure the alignment gap is initialized when writing the minimal array truncation filler object.
TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/54495
Change-Id: Iaa9c5ea6ba7312c7ded70eb1c938d8cbb2488e94
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345362
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2024-01-10 17:51:35 +00:00
Sam Rawlins 6b6f333e00 analyzer: Do not overwrite an original exception when a plugin crashes
Maybe related to https://github.com/dart-lang/sdk/issues/38629. These tests have been skipped for so long, enabling them took some work, to migrate them from '.packages' files to package config files.

Some other tidying in the test file:

* inline `byteStorePath`, only used once.
* simplify `_packagesFileContent` and `_getPackagesFileContent`
  into a static getter.
* simplify `_defaultPluginContent` into a const String, so it can
  be used as a function parameter default value

The diff is way bigger than the functional changes, because we sort
elements.


This reverts commit aa6b6470e3.

Change-Id: I9dc533710255534ec27454712a1a64facf5dd12d
Cq-Include-Trybots: luci.dart.try:analyzer-win-release-try,flutter-analyze-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345367
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2024-01-10 17:47:52 +00:00
Alexander Aprelev ebf1456c7b [gardening] Workaround ddc issue in vmservice code in g3.
There seems to be a problem with convincing ddc that null-checking
is sufficient for late final field.

Fixes b/319411590
TEST=ci

Change-Id: I1a396201d2a1edf960c0f73e5e0d0ab5be8d9475
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345580
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2024-01-10 17:20:32 +00:00
Danny Tuppeny 0d6dd73877 [analysis_server] Add syntax highlighting to record fields
Fixes https://github.com/Dart-Code/Dart-Code/issues/4908

Change-Id: I8c425d75ad163a5968f4ce318ef6dc0601978a42
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345502
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-01-10 16:52:25 +00:00
Sam Rawlins fd38a69ebc analyzer: Remove unused 'hasFix' function
Change-Id: Ic2e34faa847fed295a42aec017a5e88b8f6244ea
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345347
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2024-01-10 16:33:20 +00:00
Jonas Termansen c1581d6636 [vm_service] Fix line numbers in broken vm_service tests.
Another successful sortie commit.

Change-Id: Ie1e44f3d4c816f30d0129a193f9d360b27c1fe3d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345521
Reviewed-by: Lasse Nielsen <lrn@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
2024-01-10 16:25:32 +00:00
Jonas Termansen 0a64e4c11c [infra] Remove reclient from windows since gclient lies.
This one goes all the way to the top, arm64 == x64! The python's involved.

Change-Id: Ib97b279587b0eaa2cbe4d4915c9f878787b6fd0e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345543
Reviewed-by: Alexander Thomas <athom@google.com>
2024-01-10 15:29:28 +00:00
Jonas Termansen c348fd0865 Fix RBE llvm wrapper setting the world on fire.
I don't want to set the world on fire.

Change-Id: Icef12a8398eee6cf78b8852ccba73a318c8c5563
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345542
Reviewed-by: Jonas Jensen <jonasfj@google.com>
2024-01-10 14:56:18 +00:00
Jonas Termansen 80418d5709 Fix RBE through llvm if the source file is linked to the destination.
Change-Id: I97c3321c729c2a0d62a910d5deb50c4876fe6305
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345540
Reviewed-by: Jonas Jensen <jonasfj@google.com>
2024-01-10 14:41:51 +00:00
Jonas Termansen a3a6c8ff91 Fix reclient download condition.
The operator predence wasn't what I thought it was and reclient gets
downloaded on windows-arm64 where no package is available.

Change-Id: I89b474f1107f2445d5e76a2912cee8bcacf4a667
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345520
Reviewed-by: Martin Kustermann <kustermann@google.com>
2024-01-10 14:36:06 +00:00
Jonas Termansen ffdb0a2e19 [vm_service] Bump vm_service language version to 3.2.
Remove older version tags in vm_service and clean up old experiments.

Bug: b/318347018
Change-Id: I6bf87e46878d57d05d7f9d64674ce0c573364d4a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345302
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
2024-01-10 12:06:57 +00:00
Johnni Winther acddbed485 [cfe] Don't add default value to required parameters
Closes #54517

Change-Id: Ibe61bf2fc5aca2ee40e093ecc30b5f724c07177f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345240
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2024-01-10 12:02:00 +00:00
Chloe Stefantsova cd3240eb55 [analyzer,cfe] Introduce TypeAnalyzerOperations.isUnknownType
The method is introduced as a preliminary step in sharing constraint
gathering and solving engine between the Analyzer and the CFE.

Change-Id: I321a931908054bc08dff0626adcd23deb046230f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/343781
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2024-01-10 11:58:27 +00:00
Johnni Winther 507297562c Revert "[cfe] Run fasta testing directly"
This reverts commit b905c9a171.

Reason for revert: Sometimes all_suites.dart can't be found.

Original change's description:
> [cfe] Run `fasta testing` directly
>
> This avoids the precompile step when running
>
> package:testing/src/run_tests.dart
> Change-Id: Idb7569bb865b077440eb750333cfec5b6c48cd91
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345280
> Commit-Queue: Johnni Winther <johnniwinther@google.com>
> Reviewed-by: Jens Johansen <jensj@google.com>

Change-Id: Iedc310eac17fab1b372c03a4852ff0a19f6e2e95
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345500
Auto-Submit: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
2024-01-10 11:46:47 +00:00
Jonas Termansen 5678fd48cd [infra] Generalize RBE across operating systems.
Bug: b/296994239
Change-Id: Ie8630bcece5c2f62c5693afe654fb9d6367b33e4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345286
Commit-Queue: Jonas Termansen <sortie@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2024-01-10 11:38:43 +00:00
Mayank Patke 4ad4501a16 Remove language version override from frontend constant tests
Now that we no longer expect to compile unmigrated code, we can clean up
tests that use old language versions. This will enable code cleanup in
backends.

Change-Id: If5711b3bf7c97546168b7fbe6949452e84d4bd40
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345368
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Mayank Patke <fishythefish@google.com>
2024-01-10 10:23:58 +00:00
Jens Johansen 39d68052a9 [frontend_server/DDC] Expression compilation for JavaScript can pass scriptUri
This allows using the new scope finder and facilitates expression
compilation with and in extension types.

For now the script uri is optional (and only passable in the new json
input via package:frontend_server), and only if the script uri is passed
we'll use the new scope finder.

Flutter etc should be updated to pass the new data.

Change-Id: I36eed1ea76a825e63e4c5b9ea60daf18aee39f3d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/342400
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Anna Gringauze <annagrin@google.com>
2024-01-10 10:12:22 +00:00
Parker Lougheed bcfab01e87 [meta] Cleanup API docs and clarify superseded annotation status
This CL standardizes some comment formats, adds a few missing doc comments, and updates a few others.

It also adds text to a few annotations indicating they are likely to be deprecated in a future release and what the migration path is.

Contributes to https://github.com/dart-lang/sdk/issues/54389

Change-Id: I4fc6d9767378b855a1ab2a1978747fbe18850605
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/342281
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Auto-Submit: Parker Lougheed <parlough@gmail.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-01-10 02:10:36 +00:00
Parker Lougheed f20cd33039 [dart2js] Replace link to old visualizer site
The old website no longer works for the current format and is archived, so stop directing users there. Same for the package which is no longer hosted on pub.

Change-Id: I9bc6782680859771964587c0af7679f829fa8f95
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345481
Auto-Submit: Parker Lougheed <parlough@gmail.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Mayank Patke <fishythefish@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
2024-01-10 01:01:11 +00:00
Devon Carew 0b5f092b0f [deps] rev async, ecosystem, leak_tracker, markdown, native, protobuf, shelf, tools, webdev
Revisions updated by `dart tools/rev_sdk_deps.dart`.

async (9924570..e83d054):
  e83d054  2024-01-08  Futuristic Goo  Fix typo (dart-lang/async#262)

ecosystem (dc44e82..1e2785d):
  1e2785d  2024-01-09  Jacob MacDonald  fix saving of comment ids to disk (dart-lang/ecosystem#221)
  244a28d  2024-01-09  Moritz  Update publish.yaml (dart-lang/ecosystem#217)
  bab9833  2024-01-09  Moritz  Fix health commenting (dart-lang/ecosystem#219)
  f87e6f4  2024-01-08  Moritz  Update health workflow (dart-lang/ecosystem#216)
  a58c7d8  2024-01-03  Moritz  Fix `labeler.yml` (dart-lang/ecosystem#214)

leak_tracker (3d4c0d6..4a5b077):
  4a5b077  2024-01-09  Polina Cherkasova  Enhance scripting. (dart-lang/leak_tracker#204)
  e7094f4  2024-01-08  Polina Cherkasova  Ignore test helpers. (dart-lang/leak_tracker#196)
  6591934  2024-01-03  Polina Cherkasova  Handle deprecation in Flutter. (dart-lang/leak_tracker#203)

markdown (d2e7903..7fdfa55):
  7fdfa55  2024-01-01  dependabot[bot]  Bump actions/stale from 8.0.0 to 9.0.0 (dart-lang/markdown#571)
  5fab3a7  2023-12-19  Alex Li   Introduce AlertBlockSyntax (dart-lang/markdown#570)

native (0605d9a..14f6da1):
  14f6da1d  2024-01-09  Simon Binder  Support `@Native` fields and `addressOf` (dart-lang/native#860)

protobuf (20ec685..a293fb9):
  a293fb9  2024-01-08  Ömer Sinan Ağacan  Handle deprecated options in grpc services and methods, enum types and values, messages (dart-lang/protobuf#908)
  9a408a7  2024-01-08  Ömer Sinan Ağacan  Generate docs of enums and rpc clients, some refactoring (dart-lang/protobuf#909)
  c4fd596  2024-01-06  Ömer Sinan Ağacan  Export GeneratedMessageGenericExtensions in generated files (dart-lang/protobuf#907)

shelf (733588f..823966f):
  823966f  2024-01-03  Moritz  Fix `labeler.yml` (dart-lang/shelf#403)

tools (2f59ab4..8ffc077):
  8ffc077  2024-01-03  Moritz  Fix `labeler.yml` (dart-lang/tools#224)

webdev (b2405cb..c08a65c):
  c08a65c9  2024-01-09  Elliott Brooks  Loosen `vm_service` constraints and prepare DWDS for release to 23.1.1 (dart-lang/webdev#2329)
  651bdae6  2024-01-08  Derek Xu  Make FrontendServerClient start the frontend server from AOT snapshot by default (dart-lang/webdev#2263)
  4d1de266  2024-01-03  Elliott Brooks  Prepare DWDS for release to version 23.1.0 (dart-lang/webdev#2328)

Change-Id: I4d7fd994cc54ac2d72335c3ebf40710f3bd020e6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345366
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Auto-Submit: Devon Carew <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2024-01-09 22:23:08 +00:00
Konstantin Shcheglov 4946618845 Extension type. Issue 54548. Don't consider Never? to be a bottom type.
Bug: https://github.com/dart-lang/sdk/issues/54548
Change-Id: I56b734c24a84c8188983605eca69de28869b6de0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345440
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-01-09 21:50:49 +00:00
Ryan Macnak 2ff30ee836 [vm] Don't create UnboxedConstantInstr(kUnboxedInt64) for RISCV32.
TEST=dartfuzz
Bug: https://github.com/dart-lang/sdk/issues/54425
Bug: https://github.com/dart-lang/sdk/issues/54434
Change-Id: I05975376cd61ffeceda60edf76df182fbf753593
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345348
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2024-01-09 20:44:38 +00:00
Vyacheslav Egorov e9f51b8534 [vm] Disable --write-protect-code on non-Mac OSes.
We still need to maintain W^X on iOS and Mac OS X.

TEST=ci

Change-Id: I78f005055d090d54f5da478164a73f18e11a32ac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345303
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2024-01-09 20:28:55 +00:00
Konstantin Shcheglov c338b85771 Issue 54549. Fix resolution for dartCoreFunction.call tear-off.
Bug: https://github.com/dart-lang/sdk/issues/54549
Change-Id: I8e64cfc530434af2a26fc6cbf0d22204a1107392
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345364
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2024-01-09 18:19:13 +00:00
Jens Johansen 20cd635717 [CFE] Probable 'fix' for weekly bot spradicly failing because of connection error when the process exits
E.g. weekly bot run
176 failed with "getIsolate: (112) Service has disappeared" among other things this.
173 failed with "getIsolate: (112) Service has disappeared".
172 failed with "getIsolate: (112) Service has disappeared".
168 failed with "[Sentinel kind: Collected, valueAsString: <collected>] from getIsolate()".

This will probably fix such issues, although I haven't been able to
reproduce them so I can't be certain.

Change-Id: I3fae76c6031d1a9dbf495e12412f4f95e567c6fd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345304
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2024-01-09 15:27:40 +00:00
Chloe Stefantsova bdde1783f8 [cfe] Cleanup type variable mappings after computing TypeBuilders
Change-Id: I3bd64c126a7a7355b69bc7215d1fc37847b57066
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345285
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2024-01-09 15:03:28 +00:00
Vyacheslav Egorov 3e0ae6da5f [vm] Remove dual mapping of code
We are no longer using Dart VM in a setting where this
matters as a security measure and it just complicates
portability for no benefit.

There is an indication that it is causing problems when
running Linux build of Dart VM under Docker on Mac OS X.

Fixes https://github.com/dart-lang/sdk/issues/54446

TEST=ci

Cq-Include-Trybots: luci.dart.try:vm-fuchsia-release-arm64-try,vm-fuchsia-release-x64-try
Change-Id: I11bdaa8faebaca1df6fd59097049bdaea9cb8e12
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/344581
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2024-01-09 12:36:55 +00:00
Johnni Winther b905c9a171 [cfe] Run fasta testing directly
This avoids the precompile step when running

package:testing/src/run_tests.dart
Change-Id: Idb7569bb865b077440eb750333cfec5b6c48cd91
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345280
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2024-01-09 12:27:48 +00:00
Jonas Termansen 1253413b71 [infra] Disable Goma by default on Linux.
Developers that are not ready to migrate can use --use-goma to enable it
themselves if RBE is not meeting their needs. I omitted advertising that
long-existing option in the message since it literally takes five
minutes to migrate to RBE and so far it has had feature parity on Linux.

Bug: b/296994239
Change-Id: I026cd38e644f15da2a0cc641d461a5476de5786e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/342360
Commit-Queue: Jonas Termansen <sortie@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2024-01-09 11:44:28 +00:00
Alexander Thomas e609c8232b [dds] Remove copy of dap tool
Cq-Include-Trybots: luci.dart.try:flutter-linux-try,flutter-web-try
Bug: b/286184681
Change-Id: I408d36a10dde43e3e182d57685f7d8423124461b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/344021
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2024-01-09 10:45:30 +00:00
Alexander Thomas bc260f4d73 [dap] Move dap to third_party
Cq-Include-Trybots: luci.dart.try:flutter-linux-try,flutter-web-try
Bug: b/286184681
Change-Id: Ic9c56e6b3c95d514cc11e2f9b743ab44af2350ef
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/344020
Reviewed-by: Helin Shiah <helinx@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2024-01-09 10:45:30 +00:00
Jonas Termansen 1ccaa12af2 Update checked in SDK to 3.2.4.
The stable channel now has builds for all the platforms as there are no
longer any unstable platforms. Let's see if it works since there's no
reason to bump to a 3.3 dev since nobody has needed it yet.

Change-Id: If32e18aa3d26b12b8b7c24d0d36158a922174354
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345284
Commit-Queue: Jonas Termansen <sortie@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Auto-Submit: Jonas Termansen <sortie@google.com>
2024-01-09 10:42:53 +00:00
Sergey G. Grekhov 77886bf641 [doc/async] Remove excessive statement from Timer.periodic() documentation
Bug:#54423
Change-Id: I483d51861390cd4c5def02295a976db4363b84bb
CoreLibraryReviewExempt: Documentation-only change
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/342762
Reviewed-by: Lasse Nielsen <lrn@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2024-01-09 09:10:44 +00:00
Parker Lougheed 3fa9f798ab [tools/deps] Adjust commit messages to link to correct repositories
Prevents auto-linking to incorrect issue when the tool's output is committed. Do this by removing the hash from `#number` in the commit message, and replacing the PR link at the of the message with a fully qualified reference that resolves to the correct repository on GitHub.

An example of the new output:

```
yaml (98a3aab..509fd72):
  509fd72  Mon Dec 11 16:37:13 2023 -0800  Kevin Moore  update lints, require Dart 3.0 (dart-lang/yaml#156)

yaml_edit (9b9d33c..47eb20e):
  47eb20e  Mon Jan 1 13:13:22 2024 +0000  dependabot[bot]  Bump actions/stale from 8.0.0 to 9.0.0 (dart-lang/yaml_edit#63)
  a39ec39  Wed Dec 20 11:51:28 2023 -0800  Kevin Moore  blast_repo fixes (dart-lang/yaml_edit#62)
```

Closes https://github.com/dart-lang/sdk/issues/53857

Change-Id: I23e9d556c69445189a916ce33091a9c77ae15941
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/344361
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
Auto-Submit: Parker Lougheed <parlough@gmail.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2024-01-09 01:29:48 +00:00
Nate Biggs ef75007c2f [dart2js] Fix as-check type registration.
We would expect failing as checks to throw in all modes (unless --omit-as-casts is provided). However, the new test program fails in production mode. This is because we are not registering the type usage of the function's type parameter. This leads us to drop the as check completely later on.

We should be doing subtype checks with nullability if we want to consider an as test omitted.

Golem patch results: https://golem.corp.goog/Comparison?repository=dart#targetA%3Ddart2js%3BmachineTypeA%3Dlinux-x64%3BrevisionA%3D107840%3BpatchA%3Dnatebiggs--dart2js--Fix-as-check-type-registration.-7%3BtargetB%3Ddart2js%3BmachineTypeB%3Dlinux-x64%3BrevisionB%3D107839%3BpatchB%3DNone

Fixed: https://github.com/dart-lang/sdk/issues/54419
Change-Id: If93f78a939a690f05f5398c1a5ca971df1fc9243
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/343821
Reviewed-by: Mayank Patke <fishythefish@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2024-01-09 00:04:50 +00:00
Ryan Macnak 49aef32322 [infra] Add configuration for vm-aot-win-debug-x64.
Bug: https://github.com/dart-lang/sdk/issues/54206
Change-Id: I8d4f2e9cc1aebd747cf35e63dc72c4bf9aa80297
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/340060
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2024-01-08 23:26:19 +00:00
Ömer Sinan Ağacan 604b6cda13 [dart2wasm] Refactor variable initializer usage
Previously `VariableDeclaration.initializer` was sometimes not null even
when a function parameter is required.

[1] fixes this, which breaks dart2wasm. This CL prepares `initializer`
usage in prep for [1].

[1]: https://dart-review.googlesource.com/c/sdk/+/345240/1

Change-Id: Ie16156d01eb3659719f004996adce7acc3511b12
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345300
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2024-01-08 21:46:32 +00:00
Konstantin Shcheglov 0a1e59738d Simplify ResolutionTest.assertParsedNodeText()
Change-Id: Icdc7f5edd9a133d95083995860732815085471ee
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345343
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-01-08 21:39:52 +00:00
Konstantin Shcheglov 5391dda614 Remove old AnalysisDriverTest, and BaseAnalysisDriverTest.
They existed for 7+ years, but now its time to remove them :-)

The remaining tests were covering not AnalysisDriver specific cases,
mostly constants, type inference, and resolution. These are already
covered by specific test classes.

Change-Id: Ie203c5358ee63e59b6aea3381c58a25e2a5ebcb8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345342
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2024-01-08 21:32:28 +00:00
Konstantin Shcheglov f620836be2 Extension type. Issue 54293. Don't refine binary operation type if the invoked method is from ExtensionTypeElement.
Bug: https://github.com/dart-lang/sdk/issues/54293
Change-Id: Ib23cfe2ff150ef34ad47b78444406d86bc4ddb0c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345360
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-01-08 21:31:49 +00:00
pq f5de72732d Remove deprecated updateAnalysisOptions
Change-Id: I104f2f5ecc8e902a085f6e7830bb256949d98e32
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/344920
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2024-01-08 21:05:29 +00:00
Devon Carew 315f78efe1 [deps] rev matcher, mockito, test
matcher (fcbd361..d9cf4f6):
  d9cf4f6  2024-01-01  dependabot[bot]  Bump actions/stale from 8.0.0 to 9.0.0 (#240)
  7ea9047  2023-12-13  Kevin Moore  Update test_api dependency, bump & fix lints, prepare release (#237)
  050fdda  2023-12-13  Kevin Moore  blast_repo fixes (#238)

mockito (57a7c82..e15e000):
  e15e000  2023-12-14  Sam Rawlins  Bump mockito to 5.4.4
  a2a6566  2023-12-14  Copybara-Service  Merge pull request #726 from provokateurin:chore/deps/test_api-0.7
  bda332c  2023-12-14  jld3103  chore(deps): Allow test_api 0.7
  9bd6fb0  2023-12-12  Paul Berry  Remove mockito pre-null-safety tests.

test (43ff5bf..846d73e):
  846d73ee  2024-01-01  dependabot[bot]  Bump actions/upload-artifact from 3.1.3 to 4.0.0 (#2165)
  0ab56790  2024-01-01  dependabot[bot]  Bump actions/stale from 8.0.0 to 9.0.0 (#2167)
  3b960c3e  2024-01-01  dependabot[bot]  Bump github/codeql-action from 2.22.8 to 3.22.12 (#2166)
  30543cae  2023-12-19  Nate Bosch  Add more logging around iframe startup (#2160)
  e56a5e22  2023-12-13  Jacob MacDonald  small cleanup in catch (#2159)
  15b39372  2023-12-13  Jacob MacDonald  handle missing package config files (#2158)
  9667cca8  2023-12-13  Jacob MacDonald  release test_api 7.0.0, test_core 6.0.0, and test 1.25.0 (#2156)
  b3fb1486  2023-12-13  Nate Bosch  Remove support for Internet Explorer (#2114)
  48a2bc3d  2023-12-13  Derek Xu  Update the package:vm_service constraint to allow version 14.x (#2157)

Change-Id: I386444652c47cd14a61665599d86dc3a7669a2fc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345341
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2024-01-08 19:48:49 +00:00
Devon Carew cc8ebc636a Bump leak_tracker to 3d4c0d6db7d56af5fe52d6729ef373a3ec4de65b
Changes:
```
> git log --format="%C(auto) %h %s" 8644f8b..3d4c0d6
 https://dart.googlesource.com/leak_tracker.git/+/3d4c0d6 Fix `labeler.yml` (202)
 https://dart.googlesource.com/leak_tracker.git/+/4efea69 Bump actions/labeler from 4.3.0 to 5.0.0 (200)
 https://dart.googlesource.com/leak_tracker.git/+/e52329c Add global enabler to LeakTesting. (197)
 https://dart.googlesource.com/leak_tracker.git/+/c71a905 Standardize lints to dart_flutter_team_lints (198)
 https://dart.googlesource.com/leak_tracker.git/+/8393a23 Cleanup leak_tracker. (195)
 https://dart.googlesource.com/leak_tracker.git/+/f88cb6a Remove declaration of testWidgetsWithLeakTracking. (194)
 https://dart.googlesource.com/leak_tracker.git/+/f361ed8 Update `vm_service` dependency to `>=11.0.0 <15.0.0` (193)
 https://dart.googlesource.com/leak_tracker.git/+/106bd2b Add API to integrate with testWidgets. (188)
 https://dart.googlesource.com/leak_tracker.git/+/a9966d2 Increase delay to fix flakiness of integration test related to memory snapshotting. (191)

```

Diff: https://dart.googlesource.com/leak_tracker.git/+/8644f8b1c78009e9149e08e0c349d06c304110a9..3d4c0d6db7d56af5fe52d6729ef373a3ec4de65b/
Change-Id: Iddb323c4c45062393ccb170f01a03b48742d4280
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/344541
Reviewed-by: Polina Cherkasova <polinach@google.com>
Auto-Submit: Devon Carew <devoncarew@google.com>
Commit-Queue: Polina Cherkasova <polinach@google.com>
2024-01-08 19:34:52 +00:00