Commit graph

100045 commits

Author SHA1 Message Date
Zach Anderson a257981ddc [gn] Don't run a python script unconditionally
Part of https://github.com/flutter/flutter/issues/144430

Change-Id: Ie0d998ed98fc5fe3ad8508809f1495cdd3663c59
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355548
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
2024-03-05 03:08:40 +00:00
MarkZ 210e120fbd [ddc] Creating a hot reload and hot restart test suite.
The hot reload runner currently only supports d8, but I plan to add support for Chrome and VM execution.

Notable changes:
* Creates `package:reload_test` with helpers for running this suite.
* Updates the module loader with D8-specific branches and hooks for hot reload/restart.
* Exposes DDC runtime variables via a `HotReloadTestRuntime` API.
* Ports constant equality hot restart tests from webdev/dwds (validated to fail if either cache-clearing mechanism fails).
* Partially rolls DDC's d8 preamble forward (towards dart2js's).
* Wraps D8's timer implementation with custom timeout logic to better match Chrome's timing semantics when executing with native JS async.

Tests for the framework and matrix updates will be added in an upcoming change.

Change-Id: I2773b29f464cfd0330e4c653c05e117ae150b4a6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/350021
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2024-03-05 00:12:18 +00:00
Konstantin Shcheglov c83c1aab9d Completion. Issue 54870. Suggest members of non-nullable extensions for nullable targets.
Bug: https://github.com/dart-lang/sdk/issues/54870
Change-Id: I58f26e59002da6b76d8d3a88ffdb9b47e0c5794a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355509
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-04 23:53:28 +00:00
Konstantin Shcheglov 4b21b557e4 Clean up after https://github.com/dart-lang/sdk/issues/54967 is fixed
Change-Id: I714158d9e28c254c88969c6c9a9c2e0210e9a93d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355541
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-04 23:13:44 +00:00
Keerti Parthasarathy 19bcc8211a Add more tests for selection with augmentations.
Change-Id: I55acf9bb37bcaaa39fa75898631b4cfd83d23021
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355301
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
2024-03-04 22:40:16 +00:00
Danny Tuppeny c6f9141dd2 [analysis_server]/[analyzer_plugin] Use specific Dart/YAML edit builders
+ add asserts to prevent using generic builders for Dart + YAML files.

When edits are mixed from multiple sources (such as multiple fixes via "dart fix") they must use the same kind of builders. The only way to ensure this is to force the specific kinds to be used.

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

Change-Id: Ia41b9cadd2b79ed9eabdc4f976c8071021d2e060
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355441
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-03-04 22:39:13 +00:00
Srujan Gaddam e1834792c3 [dart:js_interop] Fix comparison operator return types
Fixes https://github.com/dart-lang/sdk/issues/55024

The patch files for these operators return a bool, whereas
the public API returns a JSBoolean. Since there's only one
possible return type, we should make them return bool for
convenience. Boolean conversion is also inexpensive on
dart2wasm, so that shouldn't be an issue.

Also adds helpers to operator_test to make sure any JS values
are converted before they're compared, adding additional type
checking through the conversion.

CoreLibraryReviewExempt: Fixes type mismatch in backend-specific library.
Change-Id: I7ff2e334e817e6e7d7d8d5091a4e5d570a496b03
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354702
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
2024-03-04 21:10:02 +00:00
Konstantin Shcheglov 9cafa46290 CQ. Use Feature.foo.enableString instead of EnableString.foo
Less internal, and more consistent to search for feature references.

Change-Id: I9f74d12bc2e22317443f7ba5867369266334373f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355504
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
2024-03-04 21:09:54 +00:00
Konstantin Shcheglov add929e5bc Legacy. Remove interfaceTypeStar()
Change-Id: I28eb26086ad4c48d00f5d337436cdc755f4cc962
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355502
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-04 21:00:39 +00:00
Konstantin Shcheglov 6fec354337 Augment. Tests for getter/setter augmenting nothing.
Change-Id: Idf7633bded1ec0080be8356a41c0445cc73a0e1b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355560
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-04 20:45:25 +00:00
Konstantin Shcheglov 68aab90650 Extension type. Remove old inlineKeyword and isInline getters.
Change-Id: I3fc8e75b46265fa615dbed43a302b3b825f6168a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355540
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-03-04 19:59:53 +00:00
Konstantin Shcheglov 32d56f50dd CQ. Remove listsEqual(), use ListEquality instead.
Change-Id: I46d52ac5f25125506a088ec730d41a7df2b88b63
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355501
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-03-04 19:51:50 +00:00
Alexander Aprelev d4a9866520 [vm] Fix representation for constant used for ShiftLeft binary op.
The constant has to be boxed value, can't be unboxed.

Fixes=dartbug.com/55003
TEST=regress_55003_test

Change-Id: Ia4d61364f54f8a08a0fe621cc1b4fb5597b1836e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355304
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2024-03-04 19:50:49 +00:00
Konstantin Shcheglov 84e6764dca Remove Feature.inline_class from enabled experiment in tests.
Continuation of https://dart-review.googlesource.com/c/sdk/+/354260

Change-Id: I2ab81308e2a29fb818451da112d3d5890d5bb6cb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355522
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-04 19:43:47 +00:00
Devon Carew d1d2919036 [deps] rev dartdoc, ecosystem, glob, http, markdown, pool, protobuf, shelf, sse, test, web
Revisions updated by `dart tools/rev_sdk_deps.dart`.

dartdoc (eed92d3..cec45fb):
  cec45fbe  2024-02-29  Kallen Tu  Deprecate --resources-dir option. (dart-lang/dartdoc#3696)
  40fef4c2  2024-02-29  Sam Rawlins  In PackageBuilder._discoverLibraries, initialize newFiles outside loop. (dart-lang/dartdoc#3695)
  2760d254  2024-02-28  Sam Rawlins  Deprecate the 'include-externals' option. (dart-lang/dartdoc#3694)
  c1c0854d  2024-02-28  Sam Rawlins  Improve support for package-with-macro-application (dart-lang/dartdoc#3687)
  b28ee1f8  2024-02-28  Sam Rawlins  Deprecate the `--nodoc` Option (dart-lang/dartdoc#3690)
  7988d91f  2024-02-28  Sam Rawlins  Improve some exception messaging and comments (dart-lang/dartdoc#3691)
  a1610aa6  2024-02-28  Sam Rawlins  Bump to 8.0.6 (dart-lang/dartdoc#3692)

ecosystem (3e4f286..49a3cbb):
  49a3cbb  2024-03-01  dependabot[bot]  Bump peter-evans/find-comment (dart-lang/ecosystem#241)
  9dd8384  2024-03-01  dependabot[bot]  Bump subosito/flutter-action from 2.12.0 to 2.13.0 (dart-lang/ecosystem#240)
  7acf3bc  2024-03-01  dependabot[bot]  Bump actions/download-artifact from 4.1.1 to 4.1.3 (dart-lang/ecosystem#242)
  5d6a0c0  2024-03-01  dependabot[bot]  Bump peter-evans/create-or-update-comment (dart-lang/ecosystem#238)
  91fcd1d  2024-03-01  dependabot[bot]  Bump actions/upload-artifact from 4.0.0 to 4.3.1 (dart-lang/ecosystem#239)

glob (ef5f065..379d60c):
  379d60c  2024-02-28  Kevin Moore  Require Dart 3.3 (dart-lang/glob#88)

http (6e0a46f..470d2c3):
  470d2c3  2024-03-01  dependabot[bot]  Bump actions/cache from 4.0.0 to 4.0.1 (dart-lang/http#1145)
  a5b17e0  2024-03-01  dependabot[bot]  Bump actions/setup-java from 4.0.0 to 4.1.0 (dart-lang/http#1144)
  c1d3481  2024-02-29  Brian Quinlan  Split package:http_profile into multiple files (dart-lang/http#1143)
  69332d3  2024-02-29  Brian Quinlan  API adjustments based on cupertino_http usage experience (dart-lang/http#1141)
  199f9fa  2024-02-28  Brian Quinlan  Add a dart:io WebSocket implementation (dart-lang/http#1139)
  37fceb8  2024-02-28  Brian Quinlan  Fix incorrect documentation that used the old `isOwned` name (dart-lang/http#1140)

markdown (62e3349..dd47c5d):
  dd47c5d  2024-02-28  Kevin Moore  WIP: v0.31.2 spec updates (dart-lang/markdown#591)

pool (782da82..c118f69):
  c118f69  2024-02-28  Kevin Moore  Latest lints, test wasm on dev channel (dart-lang/pool#81)

protobuf (ef0ab7d..b761358):
  b761358  2024-03-04  Nate Biggs  Support unknown json data and add internal set/clear field methods for generated accessors. (dart-lang/protobuf#918)
  1822b81  2024-03-01  dependabot[bot]  Bump dart-lang/setup-dart from 1.5.0 to 1.6.2 (dart-lang/protobuf#917)
  adab58c  2024-03-01  dependabot[bot]  Bump actions/cache from 3.3.1 to 4.0.1 (dart-lang/protobuf#916)
  c283db5  2024-03-01  Ömer Sinan Ağacan  Ignore the UnmodifiableUint8ListView deprecation warning (dart-lang/protobuf#915)

shelf (b432620..da6a69b):
  da6a69b  2024-03-01  dependabot[bot]  Bump actions/cache from 4.0.0 to 4.0.1 (dart-lang/shelf#415)

sse (13ec752..b53ba14):
  b53ba14  2024-02-29  Kevin Moore  Prepare release of v4.1.5 (dart-lang/sse#105)

test (26953ba..525f77b):
  525f77b2  2024-03-01  dependabot[bot]  Bump actions/cache from 4.0.0 to 4.0.1 (dart-lang/test#2191)
  b1041775  2024-03-01  dependabot[bot]  Bump github/codeql-action from 3.23.2 to 3.24.6 (dart-lang/test#2193)

web (fa4280c..8870d04):
  8870d04  2024-02-29  Devon Carew  update the format of the web idl versions file (dart-lang/web#194)
  641a8df  2024-02-29  Srujan Gaddam  Add generated element constructors (dart-lang/web#185)
  5e5adc8  2024-02-28  Srujan Gaddam  Use URI instead of library name (dart-lang/web#191)
  2f00226  2024-02-28  Kevin Moore  Move IDL version details (dart-lang/web#189)
  23475c0  2024-02-28  Devon Carew  Include MDN API documentation as class and member dartdoc comments (dart-lang/web#143)

Change-Id: Ia08bf4a304a1073473d6abddb64275cca84dea13
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355521
Auto-Submit: Devon Carew <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-04 19:42:46 +00:00
Konstantin Shcheglov ebb5c7d666 Augment. Use nullable PropertyAccessorElement.variable2
As much as I don't like the scale of changes, there is no valid variable in these cases. So, we express this explicitly, without trying to pretend that there is on. Or crashing as we did without this CL.

Change-Id: I74cef1d3d9d3cba6985d83b98be361cca09170f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355300
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-04 19:28:28 +00:00
Konstantin Shcheglov 690d49c153 Extension type. Issue 54648. Fix 'incompatible with await' predicate.
Stop when see 'X & B', just check `B`, do not continue.

Bug: https://github.com/dart-lang/sdk/issues/54648
Change-Id: Ic447b9facd00efac309695f505df603764d8c096
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355500
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
2024-03-04 19:02:16 +00:00
Konstantin Shcheglov 77278218a2 Legacy. Remove intStar.
Change-Id: Ibbdbfbaed4145004ec9f234f936b36bb7697083a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355306
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-04 19:00:36 +00:00
Danny Tuppeny ad57ea3960 [analysis_server] Change file URI labels in completions that add imports to relative paths in new details
This fixes part of https://github.com/dart-lang/sdk/issues/55013 (which is that we'd display full file URIs as the imported library on completions when they're not a package URI).

There's still some other parts to this issue (such as picking this completion up as an importing completion when it's in the same file) but I'll do that in another change.

Change-Id: Id14f7797bfd98621ac6bbb71addd52f928c6c0ff
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355141
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
2024-03-04 18:29:08 +00:00
David Morgan b06edb3126 [macros] CFE can launch macros when run from AOT.
Switch to file-based serializer if needed because running from AOT.

Add `kernel_executor` that switches to launching a separate Dart process if
needed because running from AOT.

Add macro executor that picks how to run kernel.

R=jakemac@google.com, johnniwinther@google.com

Change-Id: I19f90969269c38f96d64652b41171a12d83d8a7d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353263
Reviewed-by: Jake Macdonald <jakemac@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Morgan :) <davidmorgan@google.com>
2024-03-04 18:10:52 +00:00
Konstantin Shcheglov cf45253f6d [CMSR] Support for named formals in super constructor.
Change-Id: I0111394ea35108643128d5b9b66ee9a4b848f85f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355340
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-04 17:39:45 +00:00
Danny Tuppeny 3c2650a260 [analysis_server] Add missing semantic token for super expressions
Noticed while testing highlighting for augment/augmented  - apparently we weren't producing any tokens for super expressions (but did for super constructor and super formal params). It wasn't noticable in VS Code because a completely uncoloured token uses the TextMate grammar token.

Change-Id: I32c782db0c7771cad52ed49912c215313a64c055
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355422
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-03-04 17:37:49 +00:00
Paul Berry b279238e48 Implement context-aware type analysis for conditional-like expressions.
In the following expression types, the static type is computed using
the least upper bound ("LUB") of their subexpressions (adjusted as
appropriate to account for the null-shorting behaviors of `??` and
`??=`):

- Conditional expressions (`a ? b : c`)
- If-null expressions (`a ?? b`)
- If-null assignments (`a ??= b`)
- Switch expressions (`switch (s) { p0 => e0, ... }`)

This can lead to problems since the LUB computation sometimes produces
a greater bound than is strictly necessary (for example if there are
multiple candidate bounds at the same level of the class hierarchy,
the LUB algorithm will walk up the class hierarchy until it finds a
level at which there is a unique result). For a discussion of the kind
of problems that can arise, see
https://github.com/dart-lang/language/issues/1618.

This change improves the situation by changing the analysis of these
four expression types so that after computing a candidate static type
using LUB, if that static type does not satisfy the expression's
context, but the static types of all the subexpressions *do* satisfy
the expression's context, then the greatest closure of the context is
used as the static type instead of the LUB. This is the algorithm
proposed in
https://github.com/dart-lang/language/issues/1618#issuecomment-1507241494.

This is theoretically a breaking change (since it can change code that
demotes a local variable into code that doesn't, and then the demotion
or lack of demotion can have follow-on effects in later code). So it
is implemented behind the `inference-update-3` experiment
flag. However, in practice it is minimally breaking; a test over all
of google3 found no test failures from turning the feature on.

Since one of these expression types (switch expressions) is
implemented in `package:_fe_analyzer_shared`, but the other three are
implemented separately in the `package:analyzer` and
`package:front_end`, this change required modifications to all three
packages. I've included tests for the new functionality, following the
testing style of each package. I've also included a comprehensive set
of language tests that fully exercises the feature regardless of how
it's implemented.

Since `package:front_end` has many different implementations of `??=`
depending on the form of the left hand side, I've tried to be quite
comprehensive in the language tests, covering each type of assignable
expression that might appear to the left of `??=`.

Change-Id: I13a6168b6edf6eac1e52ecdb3532985af19dbcdf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353440
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
2024-03-04 17:19:00 +00:00
Jens Johansen e79131df0f [CFE] Reproduce crash when calculating DillTypeAliasBuilder type
https://github.com/flutter/flutter/issues/143689

Change-Id: I4325b26101e719fbaeb55c786b3334cf6ee2a79a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355142
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2024-03-04 16:48:42 +00:00
Lasse R.H. Nielsen 9d933d1281 Retire 3.3 experiments in the 3.4 release.
Tested: No new tests.
Change-Id: Idf19ce8b6743b221841e6cef6b2a80e8ab37860e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354260
Auto-Submit: Lasse Nielsen <lrn@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
2024-03-04 16:09:31 +00:00
Sigurd Meldgaard b0035f1eef Bump pub to 5b5fdd320a3b60a6a00bdd3122f03c6f67a39eeb
Changes:
```
> git log --format="%C(auto) %h %s" 4ab2e36..5b5fdd3
 https://dart.googlesource.com/pub.git/+/5b5fdd32 Do not show advisories text if no version is affected (4157)
 https://dart.googlesource.com/pub.git/+/4edf5cb2 Do not report ignored advisories in 'pub outdated' (4156)
 https://dart.googlesource.com/pub.git/+/c0e83746 Fix output of 'pub outdated' when there are several advisories (4158)
 https://dart.googlesource.com/pub.git/+/33e2b914 Make class private (4152)
 https://dart.googlesource.com/pub.git/+/c28f96a1 Prefer IPV4 on localhost, serve testserver on IPV4 (4149)
 https://dart.googlesource.com/pub.git/+/54293e3b Include info about security advisories in json output of `pub outdated` (4148)
 https://dart.googlesource.com/pub.git/+/48d3a544 Cleanup unused method (4147)
 https://dart.googlesource.com/pub.git/+/baa19b6c Make a RootDescription not depend on the root Package (4140)
 https://dart.googlesource.com/pub.git/+/93ce284d Surface security advisories in pub outdated (4136)
 https://dart.googlesource.com/pub.git/+/b1698df0 Always pass --git-dir when handling repoCache (4142)
 https://dart.googlesource.com/pub.git/+/d664d7f0 Devtools Extension validator (4135)
 https://dart.googlesource.com/pub.git/+/235e9421 Implement command "unpack" (4111)
 https://dart.googlesource.com/pub.git/+/f68b0e18 Remove stray comment (4137)
 https://dart.googlesource.com/pub.git/+/8c8814df Rename GitResolvedDescription to ResolvedGitDescription (4138)
 https://dart.googlesource.com/pub.git/+/3d285a39 Support for workspace syntax in pubspec.yaml (4128)
 https://dart.googlesource.com/pub.git/+/f8b23495 Update the repository specification (4134)
 https://dart.googlesource.com/pub.git/+/d948454f Bump dart-lang/setup-dart from 1.6.0 to 1.6.2 (4133)
 https://dart.googlesource.com/pub.git/+/465a45cd Bump checks from 0.2.2 to 0.3.0 (4132)

```

Diff: https://dart.googlesource.com/pub.git/+/4ab2e3663f0a98be40427e004e789caebf3ea72e..5b5fdd320a3b60a6a00bdd3122f03c6f67a39eeb/
Change-Id: I440f41b0e00c610d9e821b955345094c48dae8da
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355421
Reviewed-by: Sarah Zakarias <zarah@google.com>
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
2024-03-04 15:25:40 +00:00
Jonas Termansen 3f1d6a99e7 [infra] Simplify RBE configuration and allow concurrent builds.
Automatically detect the appropriate configuration file if RBE=1 is
set to request RBE on all projects, or if DART_RBE=1 is set to request
RBE for Dart only, or otherwise respect the explicit configuration file.

Automatically set the server_address location to the build directory
if it has not already been set. This is unfortunately not supported on
Windows due to the environment variable being set during build but it
needed to be set during gn.

Retain the older configuration files during the transitory period.

Bug: b/296994239
Fixes: b/320876546
Change-Id: I62d1fbfed35248477731cceda3f7267c605c4969
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355400
Commit-Queue: Jonas Termansen <sortie@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2024-03-04 14:54:26 +00:00
Jens Johansen 22d75929bd [CFE/VM] Fix location on ffi native procedure; pass reference
Before this CL the FFI external transformation set a wrong file uri on
the created procedure when the field it came from was in a part.
Possibly this is what caused
https://github.com/flutter/flutter/issues/144176

Adding a CFE test it also surfaced there not being passed a reference.
As I recall we technically disable 'advanced invaclidation' for ffi
stuff so maybe it doesn't matter, but it was easy to add and now the
test is happy.

Tested: Existing test + CFE test added.
Change-Id: I67391654677fe103d7bc22829871db2119d251dd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355420
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2024-03-04 14:26:08 +00:00
Jens Johansen e987ab1f54 [kernel] FileUriConstantExpression works with .location
We were missing a `_getLocationInEnclosingFile` implementation on
`FileUriConstantExpression`.

Change-Id: I3e8e65645f8ce4a6d9936aa079340e5853cccacc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355380
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2024-03-04 14:25:28 +00:00
Johnni Winther f7434789d6 [cfe] Report error on macros applied to invalid targets
Closes #54658

Change-Id: I9a5aed969b0c9b4ec92fe97000512b63e4b49945
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354881
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2024-03-04 11:14:36 +00:00
maBarabas 42ccd79cd1 Fix typo
Closes https://github.com/dart-lang/sdk/pull/55065

GitOrigin-RevId: ac11d63f223361219d5907b106f9672b4fa44b52
Change-Id: I7f8d816491707c86743adca04ef410cd9b60c8cf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355200
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
2024-03-02 03:48:55 +00:00
Konstantin Shcheglov 1527033358 [CMSR] Don't offer 'Convert all formal parameters to named' when no positional parameters.
Don't update optional named parameters.

Bug: https://github.com/dart-lang/sdk/issues/55069
Bug: https://github.com/dart-lang/sdk/issues/55070
Change-Id: I920cfe0827c407c8f20b826be2a3fc6482695bc9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355302
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-01 02:05:28 +00:00
Sigmund Cherem b6b3ac8549 [ddc] add helper script to easily test hot reload behavior.
This adds a helper library to help us try out small hot reload behaviors
easily on the VM.

Change-Id: I01c76d3c4be8a77e5efe5b934e8c26de09a3a771
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355260
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2024-03-01 01:27:32 +00:00
Konstantin Shcheglov 2ac973c6df Legacy. Remove objectStar.
Change-Id: I24f3d2305fe295ed68462ad548d6244497f8b6ab
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355303
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-03-01 00:08:39 +00:00
pq e07160d8e2 don't report use_enums on augmentations
Addresses part of https://github.com/dart-lang/linter/issues/4900

Change-Id: I9fd292ed29d5bddd9cafe1c3c376941183fcab76
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355282
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2024-02-29 22:25:02 +00:00
Srujan Gaddam 0d93e05db4 Check that object literals do not contain parameters
Modifies a test to check that object literals that are
assumed to not contain a parameter actually don't
contain that parameter.

Change-Id: I2e7952c696ed22cd2d8e59d72cb1a537a61c6b6e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355202
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Auto-Submit: Srujan Gaddam <srujzs@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2024-02-29 22:11:15 +00:00
pq 44a962d652 Don't report avoid_positional_boolean_parameters on augmentations
Fixes: https://github.com/dart-lang/linter/issues/4899

Change-Id: Iad0fe208df7e355a3ce5015f55e0f39f63caf14e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355262
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2024-02-29 21:38:48 +00:00
pq 3a901f50ef test that camel_case_extensions isn't reported on augmentations
See: https://github.com/dart-lang/linter/issues/4898

Change-Id: I136b9743f3c3285cdbb3e1eff662f8e25a04d6f7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355281
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2024-02-29 21:19:20 +00:00
pq 0933f8f75d don't lint augmentation mixins w/o camel_case_types
Follow-up from: https://github.com/dart-lang/linter/issues/4882

Change-Id: If81b46ccef558ebb20070feaff810d74af06e459
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355280
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2024-02-29 21:19:08 +00:00
Keerti Parthasarathy a4aa810314 Add tests with macros for extract widget.
Change-Id: I972290bfff406aa0d4a950e92b0cb578a0a8d757
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354969
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2024-02-29 20:58:01 +00:00
Brian Wilkerson b6f60e773b Consistently use named parameters for all candidate suggestion constructors
Change-Id: Ie11e22bc678be1496ddcb53ac450c79a6f697c1c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355203
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2024-02-29 20:49:58 +00:00
pq dc1a6ee723 SearchEngineImplTest tests for macro generated references
Change-Id: Ic0b8e3542d2eed39599ccbed5a25d0fcb0ecc437
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355261
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2024-02-29 19:58:49 +00:00
Danny Tuppeny f1a6b4025c [dds/dap] Bump package:dap and the version used by DDS
DDS relies on a new class `DartInitializeRequestArguments` added to `package:dap`.

Change-Id: I25b61a3a710c6867c55a545a6f6c4646dc4ba3f1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355180
Reviewed-by: Helin Shiah <helinx@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Helin Shiah <helinx@google.com>
2024-02-29 19:22:19 +00:00
David Morgan 0329ba2ef6 [analyzer] Skip test if compile fails.
R=scheglov@google.com

Change-Id: I22b6db9e6ed3873bf39cad860ffab5b3c8d61ce5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355101
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Auto-Submit: Morgan :) <davidmorgan@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-02-29 19:13:32 +00:00
Konstantin Shcheglov 2bdd4c5076 Augment. Support for top-level augmented getter / setter / variable.
Change-Id: Ie4f59e623ba572092a98e240d34c2eba936e3ea3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355201
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2024-02-29 19:13:10 +00:00
Parker Lougheed aace41035f [changelog] Add entries for recent DevTools releases
Change-Id: If4a1741d28a351ef93d2f7ada468d78272e1ab54
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/352161
Reviewed-by: Kenzie Davisson <kenzieschmoll@google.com>
Reviewed-by: Kevin Chisholm <kevinjchisholm@google.com>
Commit-Queue: Marya Belanger <mbelanger@google.com>
2024-02-29 18:19:38 +00:00
Ryan Macnak 1b37593170 Update sysroot paths used during Debian package building.
Also, riscv64 now works with Clang.

Change-Id: I26ba91994f8769d63ba5af6662b31f5cdd007394
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354062
Reviewed-by: Jonas Termansen <sortie@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2024-02-29 17:38:24 +00:00
Jens Johansen afdb87e2cf [kernel] Delete unused code
Change-Id: I8299a49425188c9864fc47532243cede2cf16b1f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353960
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2024-02-29 17:28:01 +00:00
pq 3710d9c1a5 verify move_file does not modify macro-generated files
Change-Id: Iced0bc21283dbec3971fa23ecea0a114a9d909e8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354970
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2024-02-29 17:03:59 +00:00
Konstantin Shcheglov cd0705a2a1 Legacy. Remove nullStar.
Change-Id: I8325bf47ea4817661212f8fbd91f44b8b18837b9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354972
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2024-02-29 16:49:48 +00:00