Commit graph

74489 commits

Author SHA1 Message Date
Devon Carew 22b05dbf7a [analyzer] fix a grammar issue for invalid_null_aware_operator_after_short_circuit
Change-Id: I7c2548999757e3f8bc314426be7564165c3d9a33
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156442
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2020-07-30 04:35:30 +00:00
Zichang Guo ca1279e7e3 Fix DartDev run command failed reading Windows path
On Windows platform, backslashes are used as path separator. (Forward
slashes are also accepted by Windows APIs for most cases) But for an Uri
backslashes will be percent-encoded in the Uri. The other problem is
that "C:\directory" when passed into Uri, the drive letter will be
misinterpreted into scheme (common schemes like "http" or "file").

Bug: https://github.com/dart-lang/sdk/issues/42874
Change-Id: I0fe287b65a5b4faeb791665d2fda9ea0a9744cc4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156363
Commit-Queue: Zichang Guo <zichangguo@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2020-07-30 02:25:10 +00:00
Ben Konyi 8dc4833e86 [ VM/ DDS ] Temporarily disable DDS for beta release
https://github.com/dart-lang/sdk/issues/42727 isn't expected to be fixed
before the next beta release. Disabling DDS temporarily until a proper
fix has been landed.

Change-Id: Ib3233e75a115caa9625f1e96d136b0f6abc5f72e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156343
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2020-07-30 01:11:51 +00:00
Sam Rawlins 1dd3fccee9 Update strict-inference to not report 'unreferenced' parameters
This is the implementation CL for
https://github.com/dart-lang/language/pull/599

Change-Id: Icb0af8542a72093a8bdd599c768d5eff46841b9c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155143
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-30 00:54:00 +00:00
Sam Rawlins f23f450e11 Analyzer: Move CONST_CONSTRUCTOR_PARAM_TYPE_MISMATCH to compile-time
Many of the tests were highly redundant. Subtyping has been
consolidated, so the tests don't need to cover a dozen different ways
to subtype a class.

Change-Id: I04448790d3a74690d0edb57f15146a6c3b8f2173
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156400
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2020-07-30 00:34:29 +00:00
Brian Wilkerson 90ad9a810f Reference the design principles from the README
Change-Id: I362587bf98c18f14a2086116e50d47e58b06529c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156420
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2020-07-29 23:10:01 +00:00
Konstantin Shcheglov 219107cca0 Report INVALID_ASSIGNMENT on the cascade target.
https://dart-review.googlesource.com/c/sdk/+/155380 has tests that
show that it is otherwise hard to specify where the offending
expression is.

Change-Id: I8cdbc3d974148d644b75889a8afd921a2a2716cd
Bug: https://github.com/dart-lang/sdk/issues/42865
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156067
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-29 23:04:49 +00:00
Konstantin Shcheglov e60a0315dd Fix for crash in RemoveEmptyConstructorBody.
R=brianwilkerson@google.com

Change-Id: I0fe17e9fe96028c5286f509c3bf9ec16248f4841
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156401
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-07-29 22:01:59 +00:00
Brian Wilkerson 1bf8019253 A document in which to capture dartdev design principles
Change-Id: I5db4055b2fe950c09cdfe95c3f08270bf3f5df7c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156380
Reviewed-by: Jaime Wren <jwren@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2020-07-29 21:53:48 +00:00
Nate Bosch 9b43223afd Fix the IANA link from Encoding.getByName docs
The previous version include the closing parenthesis in the link on the
dart doc site so it won't lead to the right place when clicked.

Switch to a markdown link instead of a raw URL to avoid ambiguity and
improve readability of the rendered doc.

Do some minor rephrasing of the rest of the comment to remove noise
words, format according to effective Dart.

Change-Id: I497cfeeeff0885eb34e798c469f95dc46f4a81f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156342
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
2020-07-29 21:32:09 +00:00
Konstantin Shcheglov 0b4896ac94 Resolve invalid prefix.name TypeName(s) to dynamic.
Change-Id: If449fcb37c2a095d37d34ea7c068fa85edb112c9
Bug: https://github.com/dart-lang/sdk/issues/42877
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156341
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-07-29 21:08:08 +00:00
Konstantin Shcheglov 86057443c4 Issue 42837. Use legacy erasure in LUB computation in opt-out libraries.
Bug: https://github.com/dart-lang/sdk/issues/42837
Change-Id: Id61e37404d6d2e8452daed2bbd730f32a8687ea6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156320
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-07-29 20:06:35 +00:00
pq e12a536edb bulk fix for avoid_types_on_closure_parameters
Change-Id: Id080559bc2a18fd8ce4c8eb59412c4461d8dac39
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156340
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2020-07-29 19:45:25 +00:00
Alexander Aprelev b4a7c68989 [vm/resolve] Use Resolver instead of Lookup in while-loop.
This is another step in refactoring that should help with protecting class functions lookup with locks.

Change-Id: Icd8a4831684b5514079bd7e03a3d2358b992e729
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156300
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2020-07-29 19:17:15 +00:00
Mark Zhou 0ef03fdc82 [dart2js] Adding null-safe semantics for static fields.
* Adds a bool `isNonNullableByDefault` field to Library entities.
* Adds a bool `usesNonNullableInitialization` to the JS emitter's StaticField.
* Emits two lazy-variable initialization functions: one for
  pre-null-safety and one for post

New issues:
* Always emits both lazy init functions - even when only one is ever used.

Fixes #42419

Change-Id: I6a76798946b13842fbb2ad566d4505bbcd9ca0d1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156063
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2020-07-29 18:39:25 +00:00
Nicholas Shahan b5eca11669 Expand SDK constraint on dart_internal to include 2.9.0
Change-Id: I338463eb12517798af85cd83c771ae40c3c6015d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156280
Reviewed-by: Jake Macdonald <jakemac@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2020-07-29 18:17:35 +00:00
Ben Konyi 45d8bd79f1 [ DartDev ] Launch from snapshot in the current process when possible
Instead of spawning new processes to run a tool for a command, this
change makes it so we run within the current process when possible. In
general, we should avoid spawning any processes when possible from
dartdev unless:

- We need to interact with the child process from dartdev (e.g.,
  analysis server)
- The child needs to interact with the parent process (e.g., DDS)

Change-Id: I9c8cd39de038ab2f3a699165a47bee4c281bda67
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156048
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2020-07-29 17:28:36 +00:00
Brian Wilkerson 15fb170ffb Enable the new code completion relevance feature
The new feature will be enabled by default but the option still exists
so that users can disable it if they want/need to.

Change-Id: I9e001b00b5dfe132a6b7bcfdcacd3143fb24f65c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156121
Reviewed-by: Jaime Wren <jwren@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2020-07-29 17:14:44 +00:00
Konstantin Shcheglov d5845d255c Fix several language/ tests.
Change-Id: I38946733f298bea75e65faff20c6d911e6bd37f5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154361
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-29 17:10:55 +00:00
Nicholas Shahan 687bef277f [deps] Bump csslib dependency to v0.16.2
Revision: 451448a9ac03f87a8d0377fc0b411d8c388a6cb4

Change-Id: I1ea902c5f3ba6304acd1dae72d6fe1b50dfb28c8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156122
Reviewed-by: Nate Bosch <nbosch@google.com>
2020-07-29 16:36:20 +00:00
pq e2f0cbc4d6 bulk fix for avoid_return_types_on_setters
Change-Id: I29465e1a33be384948015682725b3e8f8db99bb9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156260
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-29 16:03:16 +00:00
Alexander Aprelev 3cd8b5ca1e [vm/resolve] Use Resolver instead of Lookup in while-loop.
This is part of refactoring that should help with protecting class functions lookup with locks.

Change-Id: I28d25aa78c0b4d83eb8ceab827b71852a23368b3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156162
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-07-29 15:48:15 +00:00
pq 1324146fb4 bulk fix for avoid_redundant_argument_values
Change-Id: Id7dacf56d72acecfbd0f862585e68d93f2c22d55
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156160
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-29 15:11:13 +00:00
jlcontreras 17be0b4edf Fix nnbd flag bug in tests for Value Classes feature.
Change-Id: I1a092c951d529c1db395a3bb03e887a3a33a96e5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156194
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2020-07-29 15:07:09 +00:00
Johnni Winther eb1dc6786b [cfe] Revert receiverType/receiverBound update
This change was introduced in https://dart-review.googlesource.com/c/sdk/+/155324
but has unforeseen negative consequences.

Change-Id: Ifda680a533833fc21f575f13f0e6f0f3be857fa2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156195
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2020-07-29 14:59:01 +00:00
Martin Kustermann fd959b824e [vm/compiler] Graph intrinsify implicit getters/setters in common cases.
To make implicit getters/setters frameless in common cases we use graph
intrinsics. We do this for boxed as well as unboxed fields. We do this
only for simple cases (e.g. not if field guards or possible boxing are
involved).

It also removes the hand-written assembly intrinsics for the getters,
which avoids bugs if boxing-state of field is not the same as
boxing-state of setter/getter.

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

Change-Id: Id3bd7842ead0278fee61d4a21c8661ce18dbccee
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155900
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Reviewed-by: Tess Strickland <sstrickl@google.com>
2020-07-29 14:49:45 +00:00
Dmitry Stefantsov 1b2c267bb2 [cfe] Use unwrapping of nullability constructor in upper bound
Previously to unwrap a type in isTop method the declared nullability
was set to Nullability.nonNullable.  This doesn't work for
intersection type because .withDeclaredNullability() doesn't work for
them.  This CL introduces a method that simulates the removal of the
top-level nullability type constructor from a type term, and uses the
method in isTop to account for intersection types and other possible
similar cases in future.

Change-Id: I3e6f30b5d93850b2cf92475a89d09d6d9255089f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156193
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2020-07-29 14:24:05 +00:00
Johnni Winther ac85af3a0c [cfe] Handle type parameters bounded by Null/Never in local function parameter type inference
Closes #42206

Change-Id: Id36fe76d8581ab0712165a8c90f1734d4be1a913
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156186
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2020-07-29 14:21:17 +00:00
Martin Kustermann 5b18fa0798 [vm/compiler] Move CheckArrayBoundInstr::Canonicalize to its base class
This ensures redundant bounds checks are eliminated for
GenericCheckBoundsInstr (in addition to CheckArrayBoundInstr which we
already do).

Change-Id: Ie49e63f3e48cd7c90f5616cc1394f4d8a6920699
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156188
Reviewed-by: Tess Strickland <sstrickl@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2020-07-29 13:46:06 +00:00
Alexander Thomas bac90ab84f [co19] Roll co19 to 86c948fbe7c8a9e74f572038f2ec70dfce7f20b0
2020-07-29 sgrekhov@unipro.ru Fixes 875. LibTest\io\HttpClientBasicCredentials and LibTest\io\HttpClientDigestCredentials migrated to null safety
2020-07-29 sgrekhov@unipro.ru 870. Minor fixes
2020-07-29 sgrekhov@unipro.ru Fixes 870. LibTest\io\HttpClient migrated to null safety
2020-07-29 sgrekhov@unipro.ru Fixes 871. Don't expect an error for super.== any longer
2020-07-29 irina.arkhipets@gmail.com Fixes 873: minor improvements for LibTest\typed_data\Float32x4 tests.
2020-07-29 sgrekhov@unipro.ru LibTest/collection tests fixed after tryjob run

Change-Id: I12a86bd0b87e395ef0bb336b8af998ba21608bcf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156190
Reviewed-by: William Hesse <whesse@google.com>
2020-07-29 12:33:44 +00:00
jlcontreras 35a8b1ec28 Add tests for the Value Class feature.
Add experimental flag to tests.
Add words to test spelling dictionary.

Change-Id: Ie739a84fd85e7f85f312416f34506ee76313803b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156021
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2020-07-29 11:47:06 +00:00
Jonas Termansen defb631f2e Roll benchmarks-internal 171db4d6bcd4..9bc9e373b3d3
d33955fd00f65fc5703c46245162feb4cb647098 https://dart-internal-review.googlesource.com/c/benchmarks-internal/+/2200
9bc9e373b3d3cacdd7aba906caea77075c6cd2e3 https://dart-internal-review.googlesource.com/c/benchmarks-internal/+/2201

R=whesse@google.com

Change-Id: Ia666c4edaf6eaba90da874bf084362383a4bcb54
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156189
Auto-Submit: Jonas Termansen <sortie@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2020-07-29 11:11:24 +00:00
Alexander Thomas 7d15f06959 [infra] Add VM simarm64 nnbd builder to the test matrix
Also balances shards to reduce cycle time.

Change-Id: I3e6446076e29627e171a41bd53a1dd4754ce68ab
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156187
Reviewed-by: William Hesse <whesse@google.com>
2020-07-29 10:53:36 +00:00
Alexander Thomas a22f38efa7 [co19] Roll co19 to 872367c00df43a2057f541d1920b8f42f6ebbeec
2020-07-29 irina.arkhipets@gmail.com Fixes 872: LibTest\typed_data\Float32List tests adopted for null safety.
2020-07-28 irina.arkhipets@gmail.com Fixes 869: LibTest\typed_data\ByteData tests adopted for null safety.
2020-07-28 sgrekhov@unipro.ru Fixes 868. LibTest\io\GZipCodec migrated to null safety
2020-07-28 irina.arkhipets@gmail.com Fixes 867: LibTest\typed_data\ByteBuffer tests adopted for null safety.
2020-07-28 sgrekhov@unipro.ru Fixes 866. LibTest\io\FileSystemModifyEvent and LibTest\io\FileSystemMoveEvent migrated to null safety
2020-07-28 irina.arkhipets@gmail.com Fixes 852: Constant-update-2018 tests adopted for null safety.
2020-07-28 sgrekhov@unipro.ru Fixes 865. LibTest\io\FileSystemDeleteEvent migrated to null safety
2020-07-28 irina.arkhipets@gmail.com Additional fix for 848: qreflection test updated according to the recent dart changes.
2020-07-27 sgrekhov@unipro.ru Fixes 864. LibTest\io\FileSystemCreateEvent migrated to null safety
2020-07-27 sgrekhov@unipro.ru Fixes 863. LibTest\io\File migrated to null safety
2020-07-27 sgrekhov@unipro.ru Fixes 862. LibTest\io\exit and LibTest\io\exitCode migrated to null safety

Change-Id: Ib5aed3ef85525c438da23e99daa45b8f35e5e06f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156185
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Sergey Grekhov <sgrekhov@unipro.ru>
2020-07-29 10:52:53 +00:00
Johnni Winther 135c44afd9 [analyzer,cfe,dart2js] Ensure id-testing shards are deterministic
Sharding was based on the directory listing. Now we sort the entities
by test name before sharding to avoid dependency on the file system.

Change-Id: I5e6ecc191d84eb1820c05bcef0a27d8b03d89286
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156025
Reviewed-by: Jens Johansen <jensj@google.com>
2020-07-29 09:45:59 +00:00
Johnni Winther a021b99fc3 [cfe] Fix scope setup for generic function types
Closes #36870
Closes #41951
Closes #42364

Change-Id: Id323bfdc26c688bfeb756ef8c1e0530283b44e34
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156028
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-07-29 09:04:24 +00:00
Johnni Winther 767692b32f [cfe] Remove error/warning on duplicate library name in export/import
Closes #42700

Change-Id: I1fd047ea91de45be727690cf6053298cecf91410
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155326
Reviewed-by: Jens Johansen <jensj@google.com>
2020-07-29 08:53:06 +00:00
Johnni Winther 07aa9ec332 [cfe] Add test for issue 42537
This adds a language versioning test that shows that the language
version for a package defined in a `.packages` will have version 2.7
and whereas a package defined in a `.packages_config.json` will have
the current language version (2.8 in the test). Therefore the
former will not have the non-nullable experiment enabled even when
the package is in allowed_experiments.json.

Change-Id: Iabf5d6882e21538cfc1237d848bad03a37825dfb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156000
Reviewed-by: Jens Johansen <jensj@google.com>
2020-07-29 08:15:33 +00:00
Johnni Winther 8e7e400a00 [cfe] Use legacy erasure in LUB computation in opt-out libraries
Closes #42836

Change-Id: Ibe6d8e54e082ffb204ccc18f438809c7776c1cd4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156001
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2020-07-29 07:36:34 +00:00
Leaf Petersen fcbf4932be Add tests for mixed mode upper bound.
Tests for the null safety specification change landed
in https://github.com/dart-lang/language/pull/1109 .

Change-Id: I5e9388a99a8a121870b5dd8a844db4f9857a9eea
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155380
Reviewed-by: Paul Berry <paulberry@google.com>
2020-07-29 05:04:38 +00:00
Karl Klose 637aeeb781 [infra] Empty SDK commit to validate recipe changes
TBR=athom@google.com

Change-Id: I267ffe00047a403ad4d98b959ead370b3ed89f7e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156180
Reviewed-by: Karl Klose <karlklose@google.com>
2020-07-29 03:41:44 +00:00
Sam Rawlins d4f912dadb Analyzer: Move all remaining tests from compile_time_error_code.dart and remove
Change-Id: Id3c2a3df6aea0437b9e0798040ac76fa96a01215
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156080
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-29 02:51:50 +00:00
Nicholas Shahan bad34bdb9d [ddc] Delete unused target dartdevc_patch_sdk
Change-Id: Ia15ffea7f5198125d6ce1b8b04ef8d830678d420
Fixes: https://github.com/dart-lang/sdk/issues/42825
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156041
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2020-07-29 01:10:51 +00:00
Nate Bosch 5e6d949757 Remove some misleading int returns from main
During normal execution the return value from `main` is _not_ used as an
exit code. Fix some cases that try to use it that way.

Change-Id: I292dc8ebf0acc8cb3d4d72f55107e438df9112de
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156143
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2020-07-29 00:47:01 +00:00
pq 89504b4e84 bulk fix for avoid_empty_else
Change-Id: I5ec1f4c1223aba42e972b78a3c31cc7c2f71c23e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156141
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-29 00:43:31 +00:00
Ryan Macnak fbc753337f [test] Skip scavenger_abort_test on AOT.
Bots seem much slower than local testing.

Change-Id: If5ce44a0b59b82c8651017f7efe810b8a4c65ef5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156052
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2020-07-29 00:36:55 +00:00
pq 1a28fb28c8 bulk fix for avoid_annotating_with_dynamic
Change-Id: I29815825e65f51f3db8ec2320412f9926abd0a92
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156123
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-28 22:10:55 +00:00
pq 2cd8fc1e97 fix command
(Disabled; comment in to enable.)

The command calls out to the DAS using the bulk fix protocol to fix all bulk-fixable issues.

Fixable diagnostics are captured in the `BulkFixProcessor.lintProducerMap`.


Sample output:


```
[~/src/repos/dart/sdk/pkg/dartdev] (fix_cmd) $ dart bin/dartdev.dart fix

*** The `fix` command is provisional and subject to change or removal in future releases. ***

Computing fixes in dartdev...          5.0s
Applying fixes to:
  lib/dummy2.dart
  lib/dummy.dart
Done.
```


Change-Id: I71f82623a452cb747bfc13dba0bb764ec9b1a15b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156046
Reviewed-by: Jaime Wren <jwren@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2020-07-28 22:02:51 +00:00
Ryan Macnak 5a085c6bcb [test] Prevent tree-shaking of fields in scavenger_abort_test.
Change-Id: I427987827200d9311ba94040d673e4d2a8e06d65
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156049
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2020-07-28 21:57:51 +00:00
Konstantin Shcheglov 78bcab9428 Fix for NPE when REMOVE_UNUSED_PARAMETER in invalid code.
R=brianwilkerson@google.com

Change-Id: Ida985d86e062d6c62efa2ae8a394f75a239644e6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156068
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-28 21:24:06 +00:00