Commit graph

85433 commits

Author SHA1 Message Date
Alexander Thomas e89fadaf00 [build] Remove obsolete windows build files
Cq-Include-Trybots: luci.dart.try:dart-sdk-win-try,vm-kernel-msvc-windows-try,vm-kernel-win-debug-x64-try,vm-kernel-win-debug-ia32-try
Fixes: https://github.com/dart-lang/.allstar/issues/159
Change-Id: I0079b5d79a5d3121c6af1fc002ab062d2baf18b8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245089
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: William Hesse <whesse@google.com>
Auto-Submit: Alexander Thomas <athom@google.com>
2022-05-18 13:34:36 +00:00
Johnni Winther 548bff1d53 [cfe] Skip running tests with no/empty main
+ always serialize to dill, but only to disk when running the test.

Change-Id: If1500931ea951229fb2502defe9d0315ea5f1883
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245006
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2022-05-18 12:55:07 +00:00
Jens Johansen 9a49527240 [CFE] Fix flutter_gallery_leak_tester after no .packages
This caused flutter gallery leak_tests to fail on the weekly bot.

Change-Id: I12a51e98574a9403fb4cd0c2a3f8ce96fdfda887
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245005
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2022-05-18 12:46:07 +00:00
Johnni Winther f0f1629e20 [frontend_server] Support --verbosity argument
Adds support for the --verbosity argument in the frontend server to
control the printing level.

Closes #44867

Change-Id: I0f4e535c2e30e4d34cb8bc1d3fb4ac21d4009834
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245161
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2022-05-18 11:48:57 +00:00
Jens Johansen 5f9de6dad4 [CFE] Reproduction of weekly bot run 91 failure
This reproduces a serialization crash discovered by the weekly bot run
no 91.

Note that it crashes on an error case.

A variation that doesn't crash is also added. The variation makes me
think it has to do with the named parameters anywhere feature.

This was extracted from the fuzz failure on
weak/inference_update_1/horizontal_inference_extension_method

Issue http://dartbug.com/49040

Change-Id: I599952ae8261a07d5c558ce27c0e95d0375bc743
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245004
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2022-05-18 08:34:50 +00:00
Stephen Adams d10ee227fa [dart2js] Some trivial NNBD migrations
Change-Id: I0748d5295547237708b8321c7883aa771bd30a6a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245140
Reviewed-by: Nate Biggs <natebiggs@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2022-05-18 05:08:37 +00:00
Brian Wilkerson e5cd0bf0fd Remove published diagnostic documentation from the generated declarations of error codes
Change-Id: I49619c4b968035c352bc50bf626773034fce1579
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245083
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-05-18 04:19:31 +00:00
Brian Wilkerson a5e40e4916 Apply the changes from the previous CL
I forgot to upload these before I clicked submit.

Change-Id: I112eb9a1c3bd1ce8980f87dc92b8ebb39b72d075
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245080
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2022-05-17 22:12:17 +00:00
Liam Appelbe 521ad77689 [cfe] Mark enhanced enum toString method as synthetic
This fixes a bug where this method is showing up in coverage reports.

Also needed some plumbing in the VM for this flag, because we were
ignoring it before.

Change-Id: I9200a16dab488f5f880b9797243bd2f39de993b3
Fixes: https://github.com/dart-lang/coverage/issues/386
TEST=Added a source_report_test
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245041
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
2022-05-17 22:11:36 +00:00
Ryan Macnak fa1848ac54 [build] Don't invoke the JIT runtime when using kernel for SDK snapshots.
If this is a cross-word-size configuration, the JIT cannot run.

TEST=local
Bug: https://github.com/dart-lang/sdk/issues/48792
Change-Id: I7aca0c2da4e352c121f531bdf3eb6402aead1569
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244743
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2022-05-17 21:36:56 +00:00
Brian Wilkerson d4c4408f10 Add initial support for gathering analytics in the analysis server
I'm primarily interested in feedback on the general approach, which is
to have a single object to which all significant events are reported and
which is responsible for reporting or aggregating the data as
appropriate.

I removed a getter from AnalysisServer that should no longer be used,
though I haven't changed the code that directly references the
underlying analytics object so that existing code won't be impacted.

I also added a couple of references to the new class, but because we're
always creating a noop version there won't be any impact on users at
this point.

Once the overall approach has landed I'll start wiring up the existing
methods and adding new methods as appropriate.

Change-Id: I419f409c9df82fdc62a14128bb1f67723e9cf55f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244983
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-05-17 20:46:16 +00:00
Paul Berry d9152974ed Import exhaustiveness checker prototype into _fe_analyzer_shared.
This was developed by rynstrom@google.com as part of the patterns
feature proposal.  Moving it into _fe_analyzer_shared will allow us to
evolve it into the final implementation.

Change-Id: I31bd88fd21e1de60205363c7e6f4c405b8e6c2ab
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244761
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2022-05-17 17:46:39 +00:00
Alexander Thomas 9fb27f9842 [release] Add 2.17.1 release notes
Change-Id: I9c3489f75745be85437c4e5927ab15b4c8edd68c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245022
Reviewed-by: Michael Thomsen <mit@google.com>
2022-05-17 17:10:33 +00:00
Ahmed Ashour fa364d5ef8 [analyzer] remove ignore of prefer_initializing_formals for ElementWalker
Fixes #49036

Change-Id: I3846d537c5dd5190d749cd4303a8631f846e15c6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245002
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-05-17 16:14:09 +00:00
Devon Carew 531187f1cf Bump ffi to 0c8364a728cfe4e4ba859c53b99d56b3dbe3add4
Changes:
```
> git log --format="%C(auto) %h %s" 4dd3242..0c8364a
 https://dart.googlesource.com/ffi.git/+/0c8364a Update README.md (#143)
 https://dart.googlesource.com/ffi.git/+/fea40a9 Revert "Common C integer types (#128)" (#141)
 https://dart.googlesource.com/ffi.git/+/c4c59e8 Update pubspec.yaml (#139)
 https://dart.googlesource.com/ffi.git/+/d81d1b7 Bump version to 1.2.0 (#132)
 https://dart.googlesource.com/ffi.git/+/5a33a25 Enable and fix new strict analysis options (#131)
 https://dart.googlesource.com/ffi.git/+/5e801e8 Common C integer types (#128)

```

Diff: https://dart.googlesource.com/ffi.git/+/4dd32429880a57b64edaf54c9d5af8a9fa9a4ffb~..0c8364a728cfe4e4ba859c53b99d56b3dbe3add4/
Change-Id: Ie1d3e30030594a24fdece7408ae3687033f8e772
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244963
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-05-17 15:39:59 +00:00
Danny Tuppeny a34deb2587 [analysis_server] Move super.dispose() to end of stanim snippet's dispose method
Equiv change for extension-shipped snippet in https://github.com/Dart-Code/Dart-Code/pull/3965.

Change-Id: Ief61a7d11f19edac6f4f4a14f311d7789add8d80
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245003
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-05-17 14:55:40 +00:00
Johnni Winther 5222bfd90c [cfe] Refactor bounds checking
This CL moves the bounds checking into the TypeBuilder instead of
performing it from the outside on the computed DartType node.
This solves several problems:

  1) Errors are now reported on the type in the code instead of the
     declaration which holds the type.
  2) Checking of type aliases (both function and nonfunction type
     aliases) is now handled correctly in all cases. This achieved by
     computed the aliased type (containing TypedefType nodes)
     internally and performing the checking on this type, and only
     convert the type into the unaliased version (without TypedefType
     nodes) after checks have been performed. Previously this handled
     through the FunctionType.typedefType property for function type
     aliases and through and incomplete work-around for nonfunction
     type aliases.
  3) With 2) FunctionType.typedefType is no longer needed and is
     removed.

TEST=general/bounds_*

Change-Id: I7653bca5ccb0ebf4b3553828a298d1ad918ef235
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243722
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2022-05-17 14:36:19 +00:00
Nate Biggs 2037563b94 [dart2js] Migrate common/elements.dart to nnbd
Change-Id: I3be0442cd37674a208c55c87437df7159d763e9c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244602
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Nate Biggs <natebiggs@google.com>
2022-05-17 13:58:39 +00:00
Jonas Termansen a7c70fdbc2 [infra] Remove obsolete dart-build-access mention in cipd DEPS.
Change-Id: Ie6bbc1aaec2b71f74e108ed0ff91ef296814df49
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244880
Reviewed-by: Alexander Thomas <athom@google.com>
Auto-Submit: Jonas Termansen <sortie@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2022-05-17 13:43:59 +00:00
Tess Strickland 4e520ec7a7 [pkg/dart2native] Handle cases where linker-signed is not an option.
Instead of assuming that linker-signed is a valid option flag for
codesign, only attempt to use it on macOS 11.0 or later, where
signatures on linker-signed binaries need not be force overwritten.
Otherwise, fall back to a regular signature that must be force
overwritten.

Bug: https://github.com/dart-lang/sdk/issues/49010
Cq-Include-Trybots: luci.dart.try:pkg-mac-release-arm64-try,pkg-mac-release-try
Change-Id: Ia2bff2f501dbe37b3269a2a2f16ce9a29026664e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245000
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2022-05-17 11:21:30 +00:00
Johnni Winther 6ef2b237e0 [cfe] Apply declarations macro using class-relations
Declarations macros on classes are now run using topological
order of the classes. This lets declarations macros see the
result of declarations macros applied to superclasses.

Change-Id: Ic843408edc86fdedea2b5e15596ec67b5b54ef52
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244620
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-05-17 09:32:26 +00:00
Jens Johansen 787f83acab [frontend_server] Fix flutter frontend_try
The test compiles tests from a flutter checkout, finding the packages
to find tests in, by finding .packages files. Now .packages files are
no longer generated and it doesn't find any packages and thus no tests.
This CL fixes this by instead looking for the new file.

Cq-Include-Trybots: luci.dart.try:flutter-frontend-try

Change-Id: I965435ae031c9f4887159fda1933b2ba0f9392b4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245001
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2022-05-17 09:00:56 +00:00
Johnni Winther 69cdf9a694 [cfe] Apply macro annotations in specified order
Macros should be applied members before classes and right-to-left
on declarations.

Change-Id: I5bf4473add7bb64bae0297b4aa43a5ebb92b36f5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244405
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-05-17 08:33:26 +00:00
Konstantin Shcheglov 53944e1c64 Prepare to publish analyzer 4.1.0 and _fe_analyzer_shared 40.0.0
Change-Id: I74097921c0b2ba897308d5e014bb06db1a132722
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244962
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2022-05-17 05:55:19 +00:00
Nate Biggs af589a8f6b [dart2js] Migrate abstract_value_domain to nnbd
Change-Id: Ic4258db7fcf29d23607d392e5ed2e6672221f6c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244700
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2022-05-17 03:04:25 +00:00
Nate Bosch 6ebd2633cd Use any deps for all unpublished packages
It should not be necessary to ever run `pub get` for a package which is
not published. All packages used in the SDK are controlled by a single
package config, so it's not necessary to declare versions or paths for
any packages.

Remove all dependency overrides.

R=devoncarew@google.com

Change-Id: Icb328813b471f35ee4c99995f4e90aac4d8ed438
Tested: Covered by existing static analysis.
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244767
Commit-Queue: Nate Bosch <nbosch@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2022-05-17 01:22:25 +00:00
Ryan Macnak 09b7f36b2f [vm, compiler] Support ShadowCallStack on Fuchsia RISC-V.
Remove fixed uses of X18.

TEST=ci (Linux), speculative (Fuchsia)
Change-Id: I20e31fc2ab7d44cbf02e591be92261067158509d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244943
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-05-16 22:35:55 +00:00
Devon Carew e1773c7ebc Bump boolean_selector to 1d3565e2651d16566bb556955b96ea75018cbd0c
Changes:
```
> git log --format="%C(auto) %h %s" 437e7f0..1d3565e
 https://dart.googlesource.com/boolean_selector.git/+/1d3565e Update test-package.yml
 https://dart.googlesource.com/boolean_selector.git/+/a9ad2ee Move to pkg:lints (#38)
 https://dart.googlesource.com/boolean_selector.git/+/2b17622 Update CI (#37)
 https://dart.googlesource.com/boolean_selector.git/+/1110156 Update LICENSE (#36)

```

Diff: https://dart.googlesource.com/boolean_selector.git/+/437e7f06c7e416bed91e16ae1df453555897e945~..1d3565e2651d16566bb556955b96ea75018cbd0c/
Change-Id: Id6b7cb67ef49f05c6cbb2247904b1df4ae655e84
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244821
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-05-16 21:56:25 +00:00
Devon Carew ae727399f2 [pkg/meta] prep for publishing package:meta 1.8.0
Change-Id: I74274bdc98c105115fd778a874de8724b5b133f4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244561
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-05-16 21:56:05 +00:00
Paul Berry 7b578ca616 Add experimental flag inference-update-2.
This is initially intended to support type promotion of fields
(https://github.com/dart-lang/language/issues/2020).  However, if time
allows, we may roll other type inference improvements into it.

Change-Id: Ie4548ceafe671a9a328a11ad950a4e70f4d3ca41
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244766
Reviewed-by: Devon Carew <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-05-16 21:44:05 +00:00
Joshua Litt 5729605e18 [dart2wasm] Implement FunctionType Type.
Change-Id: I65cf6f18ef3ca4892d1940ba8b67ca98ca0395da
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243935
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2022-05-16 21:36:07 +00:00
Joshua Litt c6d5cd043b [js_util] Add dartify and some helpers.
Change-Id: I40822d87a7fef9e4de563ccb73046eee78f34b21
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243846
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Reviewed-by: Riley Porter <rileyporter@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2022-05-16 21:31:47 +00:00
Konstantin Shcheglov 2b8429252e Issue 49031. Read files during applyPendingFileChanges(), so getFile() uses new content.
Bug: https://github.com/dart-lang/sdk/issues/49031
Change-Id: I4c959c0fd0461339623268102c879163ac9f3d3f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244961
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-05-16 21:28:05 +00:00
Ahmed Ashour 36acc59dcb [analyser] support code completion for errors and enable-experiment
Fixes #48904

Change-Id: I45a4f5feefe066dabeaab3f754d6d0e091a4aea5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244920
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-05-16 21:20:36 +00:00
Konstantin Shcheglov dd298c1ca3 Use a wrapper object for allResults in AnalysisDriver tests.
Change-Id: I24b79c63d174041039ed5f877e8c7e52a62aafed
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244960
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-05-16 20:46:50 +00:00
Ryan Macnak eb458cf46a [build] Fix false detection of compressed pointers as cross builds.
Broken by 3c01efcbb0.

TEST=fuzzer
Change-Id: Ifefdd1864de969b82f10471f4184c1169ec9aaba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244741
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-05-16 20:22:25 +00:00
Sam Rawlins bbd7e5a4d9 Fix bad sdk-path error message
Fixes #48959

Change-Id: I2ebbb06583886a8e54dbda0a4222bc02d380f7fc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244742
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-05-16 20:03:35 +00:00
Devon Carew b36f4518bf Bump webkit_inspection_protocol to e4965778e2837adc62354eec3a19123402997897
Changes:
```
> git log --format="%C(auto) %h %s" dd6fb5d..e496577
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/e496577 improve failure modes of ChromeConnection.getTabs (#88)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/49acd16 upgrade to lints 2.0.0 (#87)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/c34ebda rev to 1.0.1 (#84)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/950d52a Update README.md
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/3dd20cc Update README.md (#83)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/a79df73 depend on actions/checkout w/ a major version dep (#82)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/9ffbd21 Bump dart-lang/setup-dart from 1.0 to 1.3 (#81)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/dbc0fde Use more specific versions in the github action file (#79)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/092c910 Bump actions/checkout from 2 to 3 (#78)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/7156f1a Bump nanasess/setup-chromedriver from 1.0.5 to 1.0.7 (#77)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/920a381 configure dependabot (#76)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/73d61fa run tests in github actions (#74)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/8a3b2b3 Update README.md (#73)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/57ca5b0 enable the avoid_dynamic_calls lint (#72)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/d10f668 Use package lints (#70)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/da43164 add support for github actions (#69)
 https://dart.googlesource.com/external/github.com/google/webkit_inspection_protocol.dart.git/+/18620ab Delete .travis.yml

```

Diff: dd6fb5d8b5~..e4965778e2837adc62354eec3a19123402997897/
Change-Id: I1052f9efedcb05e8dae815b926294ea6182c9560
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244941
Reviewed-by: Anna Gringauze <annagrin@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-05-16 19:49:05 +00:00
Stephen Adams 7ff9b2fb5e [js_runtime] Use Math.clz32
Change-Id: Ibe6598587151d7c5e0595cffde4b35d024f63c15
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244861
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2022-05-16 19:13:15 +00:00
Ryan Macnak 8a978ffc7f [vm] Don't depend on field objects to populate initial field table.
TEST=ci
Change-Id: Ib4f2a1cf3790f743ab86fe33a4d0c9a3af1c396e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244763
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-05-16 19:08:45 +00:00
Devon Carew 052d84617a Bump clock to f594d86da123015186d5680b0d0e8255c52fc162
Changes:
```
> git log --format="%C(auto) %h %s" 5631a06..f594d86
 https://dart.googlesource.com/clock.git/+/f594d86 Switch from homepage to repository in pubspec (#32)
 https://dart.googlesource.com/clock.git/+/72c709a Update CI (#30)
 https://dart.googlesource.com/clock.git/+/be93d8f Fix formatting (#29)

```

Diff: https://dart.googlesource.com/clock.git/+/5631a0612f4ac7e1b32f7c9a00fc7c00a41615e1~..f594d86da123015186d5680b0d0e8255c52fc162/
Change-Id: I3546bfa0c3e4bd6714467c866cfc1368c30f87bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244769
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-05-16 18:49:45 +00:00
Devon Carew 60bf3d51b6 Bump term_glyph to d0f205c67ea70eea47b9f41c8440129a72a9c86e
Changes:
```
> git log --format="%C(auto) %h %s" 4885b7f..d0f205c
 https://dart.googlesource.com/term_glyph.git/+/d0f205c populate the repository field (#26)
 https://dart.googlesource.com/term_glyph.git/+/3165381 Move to pkg:lints (#25)
 https://dart.googlesource.com/term_glyph.git/+/0c8d5ec fix lints
 https://dart.googlesource.com/term_glyph.git/+/03f87c7 Update LICENSE (#24)

```

Diff: https://dart.googlesource.com/term_glyph.git/+/4885b7f8af6931e23d3aa6d1767ee3f9a626923d~..d0f205c67ea70eea47b9f41c8440129a72a9c86e/
Change-Id: Icef17cd8fa72074b47a8fa12537bfcb22af1ca66
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244768
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2022-05-16 17:31:51 +00:00
Ryan Macnak ec56446604 [vm, compiler] Various stub calls do not need to be patchable.
TEST=ci
Change-Id: Icdaed8bd764e72646732e73cb8fbb35d283261f8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244540
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2022-05-16 17:23:49 +00:00
Danny Tuppeny 842d3150a8 [analysis_server] Update to latest LSP spec + exclude some example types
Change-Id: Ifff2b26298d8678b771be12d08f678295d3f9481
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244925
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-05-16 17:03:18 +00:00
Ahmed Ashour 1cf5c7849f [analyzer] fix @useResult in a NamedExpression
Fixes #49023

Change-Id: I9fec67740ed1d85b38aa0bc0946f028c7c69ca9d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244923
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-05-16 16:56:28 +00:00
Ahmed Ashour 8a5eb80d8a [analyzer] ConvertToInitializingFormal to handle DefaultFormalParameter
Fixes #48994

Change-Id: Iff632f9509d07dc5cca7510b18f4d16b23751226
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244926
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2022-05-16 16:52:15 +00:00
Danny Tuppeny 6f0af2090f [analysis_server] Rename some LSP types to match upcoming JSON model
+ handle some missing methods, and exclude an unused deprecated class.

Change-Id: I1a75b7c8637bf1ac736bcc48e7585de0a4d1eb4e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244924
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2022-05-16 16:41:58 +00:00
Paul Berry 11f08c81ba Fix description for experimental feature "inference-update-1".
Although we had previously planned to have multiple features included
under this experimental flag, we've decided that the one feature
implemented so far (horizontal inference) is worth turning on ASAP, so
other inference improvements will be implemented under a different
flag.  This change updates the description for the flag to reflect its
narrower purpose.

Change-Id: I50918e1580ae3732e11157c8269243e1adef4cba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244822
Reviewed-by: Devon Carew <devoncarew@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-05-16 16:19:38 +00:00
Stim 294f2d24da Fix several typos in sdk/lib/internal/internal.dart
I've fixed a few typos in the mentioned module while flicking through the dart built-in libraries.

Closes https://github.com/dart-lang/sdk/pull/49015

GitOrigin-RevId: c8660e7932a647bd018a838629a8e1a28b41c90e
Change-Id: I7fae4702f6ee640561f5ebbbf68100f6abe8c360
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244940
Reviewed-by: Michael Thomsen <mit@google.com>
2022-05-16 15:33:26 +00:00
Konstantin Shcheglov cbab0c5245 Issue 48281. Update navigation to field formal parameters.
In constructor initializers the reference is to the parameter itself,
not the field.

Bug: https://github.com/dart-lang/sdk/issues/48281
Change-Id: Ic875e68d9b0d4ebdc08b3a8e71ecd8f0e52c3c26
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244863
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2022-05-16 15:32:19 +00:00