1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-08 12:06:26 +00:00
Commit Graph

82955 Commits

Author SHA1 Message Date
Paul Berry
6153e0536b Test runner: if analyzer crashes, ensure stack trace is printed
Change-Id: I61e2b7348ac121db07dfc8500ce6808b57bbecbb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222404
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2021-12-08 18:05:50 +00:00
Keerti Parthasarathy
c7de515ac9 Add support to rename compilation unit members.
Change-Id: I81d50c06126b9ad552f978e6ce298f9797c05866
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222340
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
2021-12-08 17:21:30 +00:00
Joshua Litt
80119cb900 [infra] Add dart2js-canary builder.
Change-Id: Ibf41b38e2ee590aed46f4f763f103c0e42bca311
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221985
Reviewed-by: Mark Zhou <markzipan@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
2021-12-08 17:04:51 +00:00
Sam Rawlins
73441183b2 nnbd_migration: Add missing return statement to nullably-typed function
Bug: https://github.com/dart-lang/sdk/issues/46656
Change-Id: Ifbc498763fdc38440f12f394a5981c4d70fd83bf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222380
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-12-08 16:03:00 +00:00
Kevin Moore
694f350376 Dart 2.15 changelog cleanup
- Sorted lint update entries
- Improved grammar
- Fixed broken links
- Added `yaml` to triple-ticks where appropriate
- Moved entry from `dart:cli` to general Dart VM changes

Change-Id: I639ff019590b45df2220e9999013af2393efa64e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222329
Auto-Submit: Kevin Moore <kevmoo@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2021-12-08 14:24:01 +00:00
Tess Strickland
da9b3409e6 [vm/compiler] Make TemplateLoadField::CanCallDart more precise.
Only return true if the stub being invoked will call the
initializer function directly. Notably, return false if the stub
just calls the runtime.

This removes some write barriers in legacy code that were added
after 37d45743.

TEST=New asserts that check CanCallDart() is false when calling runtime
     and is true when calling stubs that call initializer functions
     directly, combined with legacy code tests that use non-late fields.

Change-Id: I4118968b6ea42371d068c35d50339574939556e5
Bug: b/208619946
Cq-Include-Trybots: luci.dart.try:vm-kernel-linux-release-simarm-try,vm-kernel-linux-release-simarm64-try,vm-kernel-linux-release-ia32-try,vm-kernel-linux-release-x64-try,vm-kernel-nnbd-linux-release-ia32-try,vm-kernel-nnbd-linux-release-simarm-try,vm-kernel-nnbd-linux-release-simarm64-try,vm-kernel-nnbd-linux-release-x64-try,vm-kernel-precomp-linux-release-simarm-try,vm-kernel-precomp-linux-release-simarm64-try,vm-kernel-precomp-linux-release-simarm_x64-try,vm-kernel-precomp-linux-release-x64-try,vm-kernel-precomp-nnbd-linux-release-simarm64-try,vm-kernel-precomp-nnbd-linux-release-simarm_x64-try,vm-kernel-precomp-nnbd-linux-release-x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221943
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2021-12-08 12:32:30 +00:00
Sam Rawlins
285eea9338 analysis_server: add missing returns to nullably-typed functions
Bug: https://github.com/dart-lang/sdk/issues/46656
Change-Id: I9ea7d4949f8384433dfd8a6cca79e957a4f6e05c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222327
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-12-08 06:38:50 +00:00
Sam Rawlins
4ebab64bef analyzer_plugin: switch to use strict-casts
Bug: https://github.com/dart-lang/sdk/issues/41651
Change-Id: I3f987e6ed11b8f53ab460227a6ffc02b6fbb57f4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222383
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-12-08 06:06:59 +00:00
Sam Rawlins
0d2ec720b7 analyzer_cli: switch to use strict-casts
Bug: https://github.com/dart-lang/sdk/issues/41651
Change-Id: I622210b0029325e52be2d8ef7dada1ceca961b6e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222382
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-12-08 04:22:39 +00:00
Sam Rawlins
fe3ae428a3 analyzer_plugin: Add missing return in nullably-typed function
Bug: https://github.com/dart-lang/sdk/issues/46656
Change-Id: I8a37d4b08ea678b7d021f173448d6770b04f1d34
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222384
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-12-08 04:21:20 +00:00
Ryan Macnak
891f2668a7 [vm, ios] Check for the right sentinel value from GenericMapAligned.
TEST=engine
Change-Id: Ic4d0783654d3e795ca3ec7cf342dca448c9ea674
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222328
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-12-08 01:22:49 +00:00
Alexander Markov
d5b3632868 [gardening] Increase timeout for slow protobuf_aware_treeshaker/treeshaker_test
TEST=ci
Fixes https://github.com/dart-lang/sdk/issues/47872

Change-Id: Ibd0b576d5e6ba3c574c21f57a8f5eead2f2341dc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222324
Auto-Submit: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2021-12-08 00:28:59 +00:00
asiva
965333d95c [VM] error: ‘mallinfo mallinfo()’ is deprecated
Apparently libc 2.33 deprecates the mallinfo API in favor of the
new mallinfo2 API. The API stays nearly the same, only the types
in the struct containing the malloc information has changed.
Fields in the new API are size_t instead of int.

These changes would allow use of mallinfo2 as a build time
configuration on systems that have mallinfo2 available.

TEST=cq

BUG=

Change-Id: Ib074dea3fb1f7c971c2987d8117319bf073ce732
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/218161
Reviewed-by: Zach Anderson <zra@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2021-12-08 00:25:10 +00:00
Sam Rawlins
b06b60702b analysis_server: Enforce strict-casts
Bug: https://github.com/dart-lang/sdk/issues/41651
Change-Id: I9be21ab7e8f8b61707a75d7d4b5f9a872ad0fb95
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222220
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-12-07 22:45:59 +00:00
Konstantin Shcheglov
89f2e89719 Make 'Enum' the supertype of enums, not an interface.
CFE already does this, and it seems to be a change necessary for
enhanced enums.

Change-Id: If70e1ea66c946a61cc48410867ebdad023662740
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222322
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2021-12-07 22:02:00 +00:00
Johnni Winther
2b4934a54d [cfe,dart2js] Reuse field reference for static late lowering
In response to https://github.com/flutter/flutter/issues/89740 and
https://github.com/flutter/flutter/issues/94561

Change-Id: I22c100a575b91e70a2c5835b8db6dd450f319ce7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221947
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-12-07 21:12:17 +00:00
Konstantin Shcheglov
8f249569ad Tweak counts for warm-ups and repeats.
Change-Id: I43c3eff0fee7ea551f268536334702bab521f798
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222323
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-12-07 21:08:59 +00:00
Chloe Stefantsova
7359264b13 Revert "[parser] Add support for typed super-initializer parameters"
This reverts commit fc9f7e3372.

Reason for revert: breakages in ternary operators involving super access.

Original change's description:
> [parser] Add support for typed super-initializer parameters
>
> Part of https://github.com/dart-lang/sdk/issues/47525
>
> Closes https://github.com/dart-lang/sdk/issues/47741
>
> Bug: https://github.com/dart-lang/sdk/issues/47741
> Change-Id: I0558b33aa43cc73e67ca0d17bd5c8ec1afdc526f
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221634
> Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
> Reviewed-by: Johnni Winther <johnniwinther@google.com>

# Not skipping CQ checks because original CL landed > 1 day ago.

Bug: https://github.com/dart-lang/sdk/issues/47741
Change-Id: I565faadeb0776a089853dc2264af50b069e16056
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222301
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
2021-12-07 18:52:49 +00:00
Nate Bosch
6de562dfde Revert "Update to the latest package:csslib"
This reverts commit 486e867093.

Reason for revert: Breaks google3 code. Will do selective
reverts upstream before rolling again.

Original change's description:
> Update to the latest package:csslib
>
> Change-Id: Iedf84af1a7f5d454b8d9b2e56a8e91fdfe84e952
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222260
> Auto-Submit: Nate Bosch <nbosch@google.com>
> Commit-Queue: Nate Bosch <nbosch@google.com>
> Commit-Queue: Leon Senft <leonsenft@google.com>
> Reviewed-by: Leon Senft <leonsenft@google.com>

TBR=nbosch@google.com,leonsenft@google.com

Change-Id: I46fde47be272c07e0dc129656fd3f93f55e979e0
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222320
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
2021-12-07 17:48:42 +00:00
Michael Thomsen
55e0a53f39 Fix typo in changelog
Change-Id: If375217c253202202c1621696d504c2dfcb1736b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222302
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
2021-12-07 17:13:49 +00:00
Konstantin Shcheglov
91bdbf0e40 Renames / reorders for element model resynthesize tests.
Change-Id: Id874c8a26e165f89809d32753e248e96336ded61
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222247
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2021-12-07 15:56:10 +00:00
Michael Thomsen
71e3dac037 Remove deprecated packageRoot API, which doesn't work in Dart 2
Bug: https://github.com/dart-lang/sdk/issues/47769
Change-Id: I1cbd7761e7119c07f2697d7624bec703ba4c4641
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221340
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Michael Thomsen <mit@google.com>
2021-12-07 14:44:49 +00:00
Alexander Thomas
afc70dbeef [co19] Roll co19 to a4144628905e0d3326b2549c9a1425bfca06c681
2021-12-07 sgrekhov@unipro.ru dart-lang/co19#932. HttpRequestUpload tests fixed
2021-12-06 irina.arkhipets@gmail.com Issue dart-lang/co19#1094: Runtime executable mode checks moved to Utils/Expect, Language/Libraries_and_Scripts/Scripts, LibTest/io/Process tests corrected.
2021-12-03 irina.arkhipets@gmail.com Issue dart-lang/co19#1239: in LibTest/io/Process/run_A01_t03 isDartkp is a getter now.
2021-12-03 sgrekhov@unipro.ru Subtype test added testing 500 elements deep transitivity
2021-12-02 irina.arkhipets@gmail.com Issue dart-lang/co19#1239: typo corrected in LibTest/io/Process/run_A01_t03
2021-12-02 sgrekhov@unipro.ru Fixes dart-lang/co19#1241. Missed return statements added
2021-12-02 sgrekhov@unipro.ru Fixes dart-lang/co19#1240. Typos fixed in Named arguments anywhere tests
2021-12-01 irina.arkhipets@gmail.com More fix for dart-lang/co19#1094: LibTest/io/Process/run_A01_t03 test corrected: exit code for precompiled runtime should be 255

Cq-Include-Trybots: dart/try:analyzer-nnbd-linux-release-try,dart2js-nnbd-linux-x64-chrome-try,ddc-nnbd-linux-release-chrome-try,front-end-nnbd-linux-release-x64-try,vm-kernel-nnbd-linux-release-x64-try,vm-kernel-nnbd-win-release-x64-try,vm-kernel-precomp-nnbd-linux-release-x64-try
Change-Id: I96860dcd3b42d56d2a0c202e1e5fbc251b92106a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222202
Reviewed-by: William Hesse <whesse@google.com>
2021-12-07 11:32:48 +00:00
Sergey G. Grekhov
c4d5a2ed8a [co19] co19/LibTest/html/responseText_A01_t02 test enabled
Change-Id: I4ca667b2b82cb5587854686851e6f9992a1fc233
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221462
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2021-12-07 11:14:19 +00:00
Alexander Thomas
c29e1c6a58 [co19] Roll co19 to 063592eb09adbd227e920fcf076a5b88b2ac377b
2021-11-29 sgrekhov@unipro.ru dart-lang/co19#932. HttpRequest/responseText_A01_t02 test fixed
2021-11-26 sgrekhov@unipro.ru Fixes dart-lang/co19#1231. More Super parameters tests added
2021-11-25 sgrekhov@unipro.ru dart-lang/co19#1238. FFI tests fixed and issue numbers added
2021-11-24 irina.arkhipets@gmail.com Merge branch 'master' of https://github.com/dart-lang/co19
2021-11-24 irina.arkhipets@gmail.com More fix for dart-lang/co19#1094: LibTest/io/Link tests updated: comments added.
2021-11-24 sgrekhov@unipro.ru dart-lang/co19#1231. Super parameters tests fixed and new ones added
2021-11-24 irina.arkhipets@gmail.com More fix for dart-lang/co19#1094: LibTest/io/Process/killPid_* tests updated.
2021-11-24 irina.arkhipets@gmail.com More fix for dart-lang/co19#1094: LibTestCopyrights updated in LibTest/io/Process test.
2021-11-24 irina.arkhipets@gmail.com More fix for dart-lang/co19#1094: LibTest/io/Process tests updated to check process exit code correctly, new test added.

Cq-Include-Trybots: dart/try:analyzer-nnbd-linux-release-try,dart2js-nnbd-linux-x64-chrome-try,ddc-nnbd-linux-release-chrome-try,front-end-nnbd-linux-release-x64-try,vm-kernel-nnbd-linux-release-x64-try,vm-kernel-nnbd-win-release-x64-try,vm-kernel-precomp-nnbd-linux-release-x64-try
Change-Id: I9f878f3400324fc44215350fa715e2e258cfd8bf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221466
Reviewed-by: William Hesse <whesse@google.com>
2021-12-07 08:45:15 +00:00
Nate Bosch
486e867093 Update to the latest package:csslib
Change-Id: Iedf84af1a7f5d454b8d9b2e56a8e91fdfe84e952
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222260
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Commit-Queue: Leon Senft <leonsenft@google.com>
Reviewed-by: Leon Senft <leonsenft@google.com>
2021-12-07 00:35:47 +00:00
Konstantin Shcheglov
0d98f6ab5d Suggest named arguments anywhere when named_arguments_anywhere.
Change-Id: I1aefd0c7f4c4e140e5505a2b91a65a8c3b1e449a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222080
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2021-12-06 21:41:31 +00:00
Konstantin Shcheglov
76bfec126d Issue 47842. Add a test for extension from other package.
Bug: https://github.com/dart-lang/sdk/issues/47842
Change-Id: Ib6c4d6791f823191ef39998a6e350c48915d52fa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222243
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2021-12-06 21:40:47 +00:00
Konstantin Shcheglov
df48d2f744 Rewrite any URIs to canonical, not only file://.
Change-Id: I690154d54818ec576908563ea6f3ed76799be951
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222240
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2021-12-06 21:39:57 +00:00
Jonas Finnemann Jensen
ad9e6d2ec3 Enable lints to understand short-form git-dependencies
This will fix the case where insecure git-dependencies are not caught when using the short-form git-dependencies.
https://github.com/dart-lang/linter/pull/3087/files#diff-b58e5cf5db10a02c5191e3240563bdbb9fc04727327ad709e406ac6ec4366532R25

Change-Id: I83826df588b1df4e29df1fec9d65c9ab7f62b57d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221945
Auto-Submit: Jonas Jensen <jonasfj@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2021-12-06 21:36:16 +00:00
Konstantin Shcheglov
4a51fffe45 Change MultiCorrectionProducer.producers to Stream.
In order to eventually remove DeclarationsTracker we would need to
switch Import Library fix to AnalysisDriver APIs that are async.

Change-Id: Ief1dea72d63e4b508dce05a66b7cb82893a8a996
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221881
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-12-06 19:59:46 +00:00
Sam Rawlins
ed9f6b0015 Remove convertChildToChildren; tidy convertChildToChildren2
convertChildToChildren is unused within the package.

Convert Function type to function types in convertChildToChildren2,
to reduce implicit casts.

Bug: https://github.com/dart-lang/sdk/issues/41651
Change-Id: I60dcec3649a98c39057869f3210b6b44aba0ddd2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222040
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-12-06 19:54:46 +00:00
Konstantin Shcheglov
abd1dc8465 Extend AST for enhanced enums.
Change-Id: Ief64e4ba23311543702e7aa1b855e1a3519172a0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222120
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-12-06 18:57:17 +00:00
Konstantin Shcheglov
24e681927a Implement isEnumConstant in ConstFieldElementImpl_EnumValue.
Change-Id: Icbb2dac7db5299a72294f31e119000bd8f535516
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222100
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-12-06 18:46:46 +00:00
Michael Thomsen
370a9d7b78 Mark dartdoc deprecated
Mark the `dartdoc` command as deprecated.
It's being replaced by the `dart doc` command.

Part of https://github.com/dart-lang/sdk/issues/44610

Change-Id: Ia0607cb53ef526388a749acb735fd6145149334e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221948
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Michael Thomsen <mit@google.com>
2021-12-06 15:47:17 +00:00
Sam Rawlins
d45fba5527 analyzer: Stop over-reporting 'unused' parameters
Currently analyzer is reporting optional parameters of private
functions, methods, and constructors as unused in some cases where the
function (or enclosing class for a constructor) is generic. In order to
support unused_element as a no-false-positives rule, this CL changes
the behavior to _always_ consider such parameters as used, and never
report them as unused.

The real fix is harder; I think it requires something like
ParameterMembers to be created during inference, but that is a pretty
sweeping change, and requiring TypeProviders to be passed around a lot
where they are not now.

Also move the `_hasPragmaVmEntryPoint` check to much later, as it is an
exceedingly uncommon annotation.

Bug: https://github.com/dart-lang/sdk/issues/47839
Change-Id: Ie2bc0dfbe2e4527676b1cd15045e67fb5f0f1719
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221992
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-12-06 15:25:36 +00:00
Chloe Stefantsova
fc9f7e3372 [parser] Add support for typed super-initializer parameters
Part of https://github.com/dart-lang/sdk/issues/47525

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

Bug: https://github.com/dart-lang/sdk/issues/47741
Change-Id: I0558b33aa43cc73e67ca0d17bd5c8ec1afdc526f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221634
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-12-06 10:31:57 +00:00
Michael Thomsen
7da2117892 Initial 'dart doc' developer command
Initial 'dart doc' command for the unified 'dart' developer tool,
over time replacing the exiting 'bin/dartdoc' tool.

This is a second attempt after the previous got reverted:
https://dart-review.googlesource.com/c/sdk/+/217980

The first attempt, which was already reviewed, is
in patchset 1.

Change-Id: Id9e0e572944ba032c32f3cebec579ab23d0df036
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220744
Commit-Queue: Michael Thomsen <mit@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2021-12-06 10:26:09 +00:00
Sam Rawlins
e774227a81 analysis_server: Remove implicit casts from test and tool
Bug: https://github.com/dart-lang/sdk/issues/41651
Change-Id: I0a165aef2b5d5cd2f97e5728bb6011a8eb70d9a5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222041
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-12-06 03:30:26 +00:00
Sam Rawlins
2206b6999b analysis_server: Remove implicit casts in lib/
Bug: https://github.com/dart-lang/sdk/issues/41651
Change-Id: I1a804bbf0c0b2d26fcd12111ec68f673f4a41a04
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222042
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-12-06 00:54:35 +00:00
Joshua Litt
3bfb2db3d0 [dart2js] Add a flag to dump unused dill libraries.
Change-Id: I27c3fd8121c2744212afab70a827d515e45666ae
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/220062
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2021-12-04 20:34:15 +00:00
Sam Rawlins
0b73860956 analysis_server: more strict-casts improvements
Mostly this CL involves adding types to parameters which were implicitly
dynamic, and casting a few JSON results. It should be a no-op,
behaviorally.

Bug: https://github.com/dart-lang/sdk/issues/41651
Change-Id: I230ae4f9eef3a6c9e4dbfe60b95907402aefda05
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222027
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-12-04 01:38:59 +00:00
Nate Bosch
edf7b0587a Update to the latest package:stack_trace
Change-Id: I82810028b0c276a3f1e8cd7cd53c8514a64264af
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222029
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
Reviewed-by: Jake Macdonald <jakemac@google.com>
2021-12-03 22:11:23 +00:00
Paul Berry
bce700e369 Migration: add tests for some implicit coercion corner cases
Bug: https://github.com/dart-lang/sdk/issues/47848
Change-Id: I5d04be8f379e35b70b86437940dd9b04c26e8174
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222028
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2021-12-03 20:11:48 +00:00
Alexander Aprelev
e07ff780e2 [gardening] Guard use of lib atomic so it's not used on ios builds.
This is follow-up to e78e0dd261.

TEST=ci

Change-Id: I089299076b115ee384bc2f485a01045367bf78ef
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222026
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2021-12-03 18:10:58 +00:00
Chloe Stefantsova
312eb812c8 [parser][analyzer][cfe] Add parsing support for enhanced enums
Part of https://github.com/dart-lang/sdk/issues/47453.

Change-Id: I3a722cbcca6323b751eb3b2429bb9ffb642972b7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/217011
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
2021-12-03 17:05:39 +00:00
Johnni Winther
b878f6e275 [cfe] Replace use of IncrementalCompiler._userCode with local variables
This splits the usage of [_userCode] into `lastGoodKernelTarget` and
[currentKernelTarget], and renames the field to [_lastGoodKernelTarget].
This is done to make it clearer in what capacity the field is accessed.

Change-Id: Ie9344410ee62b649016a80e88bba731fa0a2344f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221942
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2021-12-03 10:45:18 +00:00
Konstantin Shcheglov
2dbb4d4536 Remove unused findChildElement()
Change-Id: Ie8a863c268cd3d2e606f0178b90bb4f358040cf0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221990
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-12-03 00:05:57 +00:00
Konstantin Shcheglov
387fc2e8db Use testPackageLibPath in analysis_server/ tests.
Change-Id: I0500183fe14288447735c85e6d8e070fc913e8a4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221993
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-12-03 00:05:26 +00:00
Nicholas Shahan
73f4377011 [ddc] Fix named args in redirecting constructors
Change-Id: Iaed36c3cab43672338a5b1750aad25951428052c
Fixes: https://github.com/dart-lang/sdk/issues/47831
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221887
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2021-12-03 00:02:57 +00:00