Commit graph

72209 commits

Author SHA1 Message Date
Paul Berry
a6b0e4fa13 Fix an analysis_server lint (prefer single-quoted strings)
Change-Id: If154127c6625194a856c23729f5b4a26b8b7fe8a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144472
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Janice Collins <jcollins@google.com>
2020-04-24 10:55:34 +00:00
Paul Berry
319843b6ff Migration: Further decouple NonNullableFix from DartFixListener.
NonNullableFix now communicates with DartFixListener through the
abstract interface DartFixListenerInterface; this will allow us to
build a version of DartFixListenerInterface that doesn't require the
analysis server.

Change-Id: I106d769b0e6ed49a916e2f1665a7e31a9a63be86
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144471
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Janice Collins <jcollins@google.com>
2020-04-24 10:06:53 +00:00
Paul Berry
4787fc190b Decouple migration logic from AnalysisDriver.
The migration logic doesn't need to access the AnalysisDriver object;
it just needs access to the AnalysisSession (which the driver holds).
By changing the interface so that it requests the session directly, we
pave the way for making a version of the migration tool that doesn't
require the analysis server.

Change-Id: Ib99725bbb2c1728a4c57b46659e9d94cbfe65ee0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144470
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Janice Collins <jcollins@google.com>
2020-04-24 10:06:53 +00:00
Paul Berry
b0173c1d3e Begin to decouple nnbd_migration tool from analysis_server.
This removes most of the imports from nnbd_migration to
analysis_server by replacing them with abstract interfaces that are in
turn implemented by classes in analysis_server.

Change-Id: I9be9a5bd69b1664f0fea9ff3b6ba4678f134f0e9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144468
Reviewed-by: Janice Collins <jcollins@google.com>
2020-04-24 10:06:53 +00:00
David Morgan
f901ee33d2 Upgraded package:fixnum from 0.10.9 (0.10.9 in pubpsec.yaml) to eb3748663dc979271ff6a3d014fbe522543b1d91 (0.10.11-dev in pubspec.yaml).
R=nbosch@google.com

Change-Id: I5c0e430f3694b6a4603e4081ce360d85c4806f42
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144504
Commit-Queue: David Morgan <davidmorgan@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
2020-04-24 10:03:33 +00:00
David Morgan
72fdcebe03 Upgraded package:mime from 0.9.6+2 (0.9.6+2 in pubpsec.yaml) to 179b5e6a88f4b63f36dc1b8fcbc1e83e5e0cd3a7 (0.9.6+3 in pubspec.yaml).
R=nbosch@google.com

Change-Id: Ifa61b90bdca2ab689ce7d8c3257ea04790a19211
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144512
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: David Morgan <davidmorgan@google.com>
2020-04-24 09:50:33 +00:00
David Morgan
f2b006d82f Upgraded package:charcode from v1.1.2 (1.1.2 in pubpsec.yaml) to 9085e6b6127f084d66c0a94810a808121459012a (1.1.3-dev in pubspec.yaml).
R=nbosch@google.com

Change-Id: I0ac78e1b23eec9021e348bc6446757e1bb061ee5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144405
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: David Morgan <davidmorgan@google.com>
2020-04-24 09:30:03 +00:00
David Morgan
64e76739bb Upgraded package:markdown from 2.1.1 (2.1.1 in pubpsec.yaml) to dd150bb64c5f3b41d31f20f399ae2a855f7f8c00 (2.1.4-dev in pubspec.yaml).
R=nbosch@google.com

Change-Id: I79e0ea754e7de125e0216e475b6886e2dbd390bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144510
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: David Morgan <davidmorgan@google.com>
2020-04-24 09:22:13 +00:00
David Morgan
027d5feb0d Upgraded package:logging from 0.11.3+2 (0.11.3+2 in pubpsec.yaml) to 9561ba016ae607747ae69b846c0e10958ca58ed4 (0.11.4 in pubspec.yaml).
R=nbosch@google.com

Change-Id: Iee7248c2b74d3843ab67595e21a458dc9b406717
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144509
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: David Morgan <davidmorgan@google.com>
2020-04-24 09:15:08 +00:00
David Morgan
4b8f7e0dc3 Upgraded package:http from 0.12.0+2 (0.12.0+2 in pubpsec.yaml) to a131e563c09349f624d5421237183a06fb10552d (0.12.1-dev in pubspec.yaml).
R=nbosch@google.com

Change-Id: I9bfcaceae4a48efa6e8c2e6d2100cf61f137f83d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144507
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: David Morgan <davidmorgan@google.com>
2020-04-24 09:14:08 +00:00
David Morgan
8ce707c3fa Upgraded package:csslib from 0.15.0 (0.15.0 in pubpsec.yaml) to bf372d4fdc6dfa232ad93f77a0a3de0891edd04c (0.16.2-dev in pubspec.yaml).
R=nbosch@google.com

Change-Id: I4a9656bceefe1749b5efa6cd411ec386d0d12956
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144503
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: David Morgan <davidmorgan@google.com>
2020-04-24 09:07:03 +00:00
David Morgan
1b465e4802 Upgraded package:json_rpc_2 from 2.0.9 (2.0.9 in pubpsec.yaml) to eec10819a40e7bf2e401f2b97368776a90cc5550 (2.1.1 in pubspec.yaml).
R=nbosch@google.com

Change-Id: If7561072a574caf9cba86dad2c3322ea8e041549
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144508
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: David Morgan <davidmorgan@google.com>
2020-04-24 09:06:03 +00:00
Martin Kustermann
0f28b1d30e [vm/gc] Hold new space lock while modifying top_ to prevent TSAN from reporting race
https://github.com/dart-lang/sdk/issues/41635

Change-Id: I3c3d79ac982d426e3cb9d7cdfeb92d664d607391
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144581
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2020-04-24 08:54:03 +00:00
David Morgan
017fb22ee8 Upgraded package:glob from 1.1.7 (1.1.7 in pubpsec.yaml) to e9f4e6b7ae8abe5071461cf8f47191bb19cf7ef6 (1.2.1-dev in pubspec.yaml).
R=nbosch@google.com

Change-Id: Ib7a41bd46c87bf9b2fdc517864bec84751be9d8b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144505
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: David Morgan <davidmorgan@google.com>
2020-04-24 08:48:43 +00:00
Robert Nystrom
064f4e7a93 Roll dart_style to 1.3.6.
This should fix the Windows failures from the 1.3.5 roll.

Change-Id: If0470b63ae301b5ce3a8a92458cf7388d5b5ddf6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144686
Commit-Queue: William Hesse <whesse@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2020-04-24 07:40:21 +00:00
Mayank Patke
c0adda609c [dart2js] Add tests/{corelib,language,lib} to dart2js_hostasserts_nnbd.
Change-Id: Id3ed7574dcf7e97b729cfe5ea8ae4755cbfcf6c2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144688
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Mayank Patke <fishythefish@google.com>
2020-04-24 05:24:52 +00:00
Leaf Petersen
6befc18cae Add tests for assignability around Never.
Change-Id: I2d3548eb609743277c026155d70fc1cb4d976cc7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/143040
Reviewed-by: Erik Ernst <eernst@google.com>
2020-04-24 04:38:43 +00:00
Konstantin Shcheglov
8990c063b7 Issue 41603. await voidExpression is an error.
Bug: https://github.com/dart-lang/sdk/issues/41603
Change-Id: I6cbd8938c62e7f5f60e48e0ee65b80f4924a3a65
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144681
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-04-24 03:42:52 +00:00
Nicholas Shahan
1accf661e2 [tests] Break test into weak and strong versions
In weak mode A<dynamic> is a subtype of A<Object>. Break out this
expectation into separate files for weak and strong modes.

Change-Id: I8d7b10d836eeb4a3221fe51ee7717aa544347b05
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144682
Reviewed-by: Leaf Petersen <leafp@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2020-04-24 01:03:52 +00:00
Konstantin Shcheglov
4490e2f541 Deprecate VariableElement.constantValue, use computeConstantValue().
Bug: https://github.com/dart-lang/linter/issues/2073
Change-Id: I68d9c8eaf632c72c4634bb56f13af7ab603e3c5e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144666
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-04-24 00:37:52 +00:00
Mike Fairhurst
94178e920e [nnbd_migration] Fix regression: respondOk not returning JSON.
This causes the current state to fail to parse the (empty) success
result and falsely thinks things like rerunning the migration/applying
the migration result in an error.

Change-Id: Id68e089000e0be65278f687cd06112756ccb2a3d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144668
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
2020-04-23 23:55:12 +00:00
Paul Berry
eab774c255 Move much of migration tool UI code into pkg/nnbd_migration
Change-Id: Ia3b388b274c908dcc6f9cb9ee4bf004b82681c43
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144320
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2020-04-23 23:43:42 +00:00
Mayank Patke
98c62fa2df [dart2js] Fix LUB computation for interop classes.
Previously, we said that the LUB of instantiated subtypes/subclasses for
a JS interop class was JavaScriptObject. This worked in most cases, but
failed when JavaScriptObject was not marked instantiated.

One way this could arise is if the only calls to JS_INTERCEPTOR_CONSTANT
were JS_INTERCEPTOR_CONSTANT(Interceptor). The LUB has to be some
interceptor, but JavaScriptObject (and its interceptor subclasses -
PlainJavaScriptObject, UnknownJavaScriptObject, and JavaScriptFunction)
are not instantiated, so we actually need to go even higher in the type
lattice.

In fact, the class hierarchy already knows how to do this - we need to
assist it a little in going from a JS interop class to JavaScriptObject,
but it can recursively compute LUB(JavaScriptObject) just fine.

Change-Id: I1e08faa42c42a43afc0b1cfafb5a012f5cd69193
Bug: https://github.com/dart-lang/sdk/issues/41330
Fixes: https://github.com/dart-lang/sdk/issues/41330
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144667
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Mayank Patke <fishythefish@google.com>
2020-04-23 22:58:22 +00:00
Brian Wilkerson
c9c4aa5b25 Remove LibraryElementSuggestionBuilder
Change-Id: Idcc99641e3ffc43fea021b5acd0c14a515a4eee5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144670
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2020-04-23 22:32:52 +00:00
Ben Konyi
36159acd2d [ Service / package:vm_service ] Document getClassList RPC, bump VM service version to 3.32, release package:vm_service 4.0.2
Change-Id: If8430f3e5866e40934e308aeff98e46e660b0f0d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144685
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2020-04-23 22:05:52 +00:00
Nicholas Shahan
ea03ea355c [tests] Loosen weak expectation to any throw
The current behavior is inconsistent across the backends so locking this
down in weak mode feels like a subtle breaking change. The VM currently
tries calling .iterable and throws a NoSuchMethodError. DDC throws a
TypeError.

Change-Id: Ib121a91f045a4f190be77dc57b5c216d818e0301
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144683
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2020-04-23 21:54:10 +00:00
Ben Konyi
1f60f431e3 [ VM / Service ] Allow for dart:_* libraries to be set debuggable
Fixes https://github.com/dart-lang/sdk/issues/29813

Change-Id: I995177314dc92dcfc9f5850c68addb48c4e09f9d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144621
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2020-04-23 21:28:20 +00:00
Mike Fairhurst
11c9dd3cd8 [nnbd_migration] Present errors to user in new popup dialog
Includes link to file an issue on github.

Change-Id: Ie0003651d3b3955766c6af016565418fd6ec86a9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144523
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2020-04-23 21:10:49 +00:00
Jaime Wren
005af39cbc Add some extensions for ASTNodes to start to cleanup some common utils.
Brian- I didn't know if we wanted this in analyzer or analysis server, I am happy to move it if we want it in analyzer.

Change-Id: I7cf909da6d31009ca9be726829cee4342aa2f7a3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144665
Commit-Queue: Jaime Wren <jwren@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-04-23 19:32:59 +00:00
Brian Wilkerson
c980e5d876 Produce a completion location for the argument list in an extension override
Change-Id: I694d77dbba171fb0d4806933ce766c9d411dba21
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144664
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2020-04-23 19:30:19 +00:00
Regis Crelier
157d567358 [VM/nnbd] Eliminate two VM crashes when running strong mode tests.
Using strong mode with a mix of opted in and opted out libraries may result in a static call with bad arguments (missing required named argument) that may crash the VM with an assert fault. Ideally, we should emit code to throw a NoSuchMethodError when the code is executed. For now, we report the error as an informative exception during compilation instead of aborting.

The name of the enclosing function needs to be canonical when creating an instance of _FallThroughError when compiling a switch statement.

Change-Id: I50349fcc5b5036fbdec4697238b1e840de15ec07
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144498
Commit-Queue: Régis Crelier <regis@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2020-04-23 19:04:05 +00:00
Konstantin Shcheglov
a36ec667e6 Issue 41630. Catch exceptions from Directory.listSync() in EvictingFileByteStore.
Bug: https://github.com/dart-lang/sdk/issues/41630
Change-Id: I02d581c984d69876432b6e17616cab6f84725b38
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144663
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-04-23 19:01:14 +00:00
Leaf Petersen
721f7b4b3b Null safe dart:async optimizations.
Various optimizations to the null safe dart:async sdk to fix
performance regressions in dart2js.

Change-Id: I32c64b54be196ac18946ade45de6b352a20be832
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144302
Commit-Queue: Leaf Petersen <leafp@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2020-04-23 18:56:00 +00:00
Konstantin Shcheglov
9b2663939a Issue 41632. Support Never in NNBD_TOP_MERGE.
Bug: https://github.com/dart-lang/sdk/issues/41632
Change-Id: Ic3d91c8d155068056e2177b2658b99913c95dc05
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144661
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-04-23 18:53:10 +00:00
Brian Wilkerson
747d363720 Move more suggestion building to happen in the SuggestionBuilder
Change-Id: I7ced2ecdf2fd126cab24400cd7d5688c204670d7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144640
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Jaime Wren <jwren@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2020-04-23 18:39:19 +00:00
Ben Konyi
60823bdaf6 Revert "[ DartDev ] Generate dartdev.dart.snapshot for runtime builds and place it in the root of the build output directory"
This reverts commit 367ee916d6.

Reason for revert: Build failures

Original change's description:
> [ DartDev ] Generate dartdev.dart.snapshot for runtime builds and place it in the root of the build output directory
> 
> VM developers rarely run the create_sdk build as it's significantly
> slower than just building the VM. Since DartDev is coupled to the VM, we
> should build it to ensure that there's no snapshot errors due to old
> snapshots from previous create_sdk builds.
> 
> Change-Id: I7626e0f3c791f2a6e69830641d9abf043ec5138f
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144465
> Reviewed-by: Jaime Wren <jwren@google.com>
> Commit-Queue: Ben Konyi <bkonyi@google.com>

TBR=jwren@google.com,bkonyi@google.com,asiva@google.com

Change-Id: I36754f7830e637313a390218d16869a8528f75ff
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144622
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2020-04-23 17:28:20 +00:00
Ben Konyi
367ee916d6 [ DartDev ] Generate dartdev.dart.snapshot for runtime builds and place it in the root of the build output directory
VM developers rarely run the create_sdk build as it's significantly
slower than just building the VM. Since DartDev is coupled to the VM, we
should build it to ensure that there's no snapshot errors due to old
snapshots from previous create_sdk builds.

Change-Id: I7626e0f3c791f2a6e69830641d9abf043ec5138f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144465
Reviewed-by: Jaime Wren <jwren@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2020-04-23 16:47:09 +00:00
Jaime Wren
f7d14e49c2 Modify the override_contributor.dart to provide the completions even when no class member characters have been typed.
Change-Id: I03164bcb0761faf7634ec219a1b1cc87dc568fa9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144493
Commit-Queue: Jaime Wren <jwren@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-04-23 16:19:49 +00:00
Alexander Thomas
68e77baf59 [release] Add 2.5.2 release notes missing on master
The 2.5.2 release notes were never copied from stable to master.

Change-Id: I270227bb1701fbbf1df2f22de6f72d022214175a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144561
Reviewed-by: William Hesse <whesse@google.com>
2020-04-23 15:40:02 +00:00
Tess Strickland
7db07dadd6 [vm] Only visit Code objects in the static call tables when necessary.
In most cases, Code objects in the static calls tables are reachable
through other means. Thus, only add the overhead of walking the static
calls tables when we are in precompiled mode and
--retain-function-objects is disabled.

Also, when deduplicating Instructions objects in Code objects, only
adjust the entry points for the owning function if the Code object is
the current code for that function.

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

Bug: 41619
Change-Id: I51621ccfe1d1c8402088a1c24c56e0a74a02e1ed
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144560
Commit-Queue: Tess Strickland <sstrickl@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-04-23 15:10:49 +00:00
Tess Strickland
bd2ed4c68a [vm] Make the non-symbolic causal stacks tests no-ops on Android.
We don't copy the saved debugging info over to the Android device,
so these tests can't succeed.

Bug: https://github.com/dart-lang/sdk/issues/41578
Change-Id: Ife11e31862457e7c7dba1c38f15c8c7d22eda414
Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-android-release-arm64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144562
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2020-04-23 13:39:28 +00:00
Johnni Winther
d59d0752e2 [cfe] Avoid hoisting in top-level inference
Change-Id: I1ae642c241557f0c5d00a56ab6af350408aef1bd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144513
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-04-23 13:35:09 +00:00
William Hesse
dfaca330c4 Revert "Update dart_style to 1.3.5."
This reverts commit 334dd63dac.

Reason for revert: There are unit test failures on Windows, including crashes of the formatter.

Original change's description:
> Update dart_style to 1.3.5.
> 
> The main change is not directly user visible: it brings in the new
> Command used by the new "dart" tool to invoke the formatter. But there
> are also a handful of minor formatting changes.
> 
> Change-Id: If7ce92e5a97d527749030714397b7b56773d9987
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/142541
> Commit-Queue: William Hesse <whesse@google.com>
> Reviewed-by: William Hesse <whesse@google.com>
> Auto-Submit: Bob Nystrom <rnystrom@google.com>

TBR=whesse@google.com,rnystrom@google.com,athom@google.com

Change-Id: If6afb82e83c2e491c63e5fa0859b10daaa7d4f33
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144563
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: William Hesse <whesse@google.com>
2020-04-23 12:39:30 +00:00
Paul Berry
4d4353ded9 Move navigation_dart.dart from analysis_server to analyzer_plugin.
This will allow it to be used by the nnbd_migration package.

Change-Id: Ia628630cf156af7bbfdbe2e104254cf5a609ae91
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144467
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2020-04-23 12:35:39 +00:00
Paul Berry
d2331fd8fc Migration: Remove MigrationState.adapter and InfoBuilder.adapter.
These fields were not being used.  Removing them will make it easier
to move these classes into pkg/nnbd_migration.

Change-Id: I7528bc07e5efd3936a9c6fd1635415e139d5df43
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144466
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2020-04-23 12:35:39 +00:00
Tess Strickland
38c7291e9e [pkg/test_runner] Pass -Ddart.vm.product to gen_kernel.
Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-linux-product-x64-try
Change-Id: I1040d3d8d26a7921ca81a843b4f9e581ac42a4d9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144362
Commit-Queue: Tess Strickland <sstrickl@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2020-04-23 10:20:29 +00:00
Alexander Thomas
2ede35a7f9 [co19] Roll co19 to 919e0b662aa4b392dcb791446d80f31e972f8635
2020-04-23 sgrekhov@unipro.ru 605. Type normalization tests added
2020-04-23 irina.arkhipets@gmail.com Fixed issue 611: Type operator tests adopted for nnbd and moved from LanguageFeatures/Constant-update-2018 folder to LanguageFeatures/nnbd/Constant-update-2018.
2020-04-22 sgrekhov@unipro.ru 605. Tests renamed
2020-04-22 sgrekhov@unipro.ru void? is a syntax error
2020-04-22 sgrekhov@unipro.ru 605. Type normalization tests rewritten to really test normalization
2020-04-21 sgrekhov@unipro.ru 478. Add type promotion tests
2020-04-21 sgrekhov@unipro.ru Fixes  613. Move all tests that use type aliases to type-aliases folder
2020-04-21 sgrekhov@unipro.ru Missed experimental flags added
2020-04-20 irina.arkhipets@gmail.com Fixed issue 612: test corrected.
2020-04-20 irina.arkhipets@gmail.com Fixed issue 610: Missing Issue tags added.
2020-04-19 irina.arkhipets@gmail.com Fixed issue 610: Overriding tests updated, new test added.
2020-04-18 irina.arkhipets@gmail.com Fixed issue 610: Overriding tests updated, new test added.
2020-04-17 irina.arkhipets@gmail.com Fixed issue 609: Missed Issue tags added.
2020-04-16 irina.arkhipets@gmail.com Fixed issue 609: typo in the test corrected.
2020-04-16 irina.arkhipets@gmail.com Fixed issue 609: nnbd tests update.
2020-04-16 sgrekhov@unipro.ru 609. Typos in tests fixed and issue numbers added

Failures will be triaged on dart-lang/co19#618.

Change-Id: Ibac62e8964ad2ae17336a2cd19edb2097e4d1839
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144502
Reviewed-by: William Hesse <whesse@google.com>
2020-04-23 10:04:06 +00:00
Robert Nystrom
334dd63dac Update dart_style to 1.3.5.
The main change is not directly user visible: it brings in the new
Command used by the new "dart" tool to invoke the formatter. But there
are also a handful of minor formatting changes.

Change-Id: If7ce92e5a97d527749030714397b7b56773d9987
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/142541
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
2020-04-23 09:50:39 +00:00
William Hesse
665981b4bd [infra] Compute builder redness due to unapproved failures on the builder
Fixes: https://github.com/dart-lang/sdk/issues/41627
Change-Id: Ie197409520b8215047df215429c3febf3ee7000d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144501
Reviewed-by: Karl Klose <karlklose@google.com>
2020-04-23 09:32:35 +00:00
Tess Strickland
2d865dc69b [vm] Fix non-symbolic stack traces with --lazy-async-stacks.
Symbolic and non-symbolic stack traces had separate ToCString
implementations with the same general structure, but those
implementations diverged enough to cause issues in certain async stack
modes. They are now merged, with the --dwarf-stack-traces-mode flag
checked where appropriate within the merged method.

Also, now non-symbolic stack traces do not include frames for Code with
invisible Function owners unless the flag --show-invisible-frames is
enabled. With this change, pkg/native_stack_traces no longer needs to
guess at which frames corresponding to Dart code should be treated as
internal.

Tested by adding --dwarf-stack-traces version of the tests
in runtime/tests/vm/dart/causal_stacks.

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

Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-linux-release-x64-try,vm-kernel-precomp-linux-product-x64-try,vm-kernel-precomp-obfuscate-linux-release-x64-try
Change-Id: I41a887129616c88acd7729492addf7364d95df33
Bug: 41578
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/143816
Commit-Queue: Tess Strickland <sstrickl@google.com>
Reviewed-by: Clement Skau <cskau@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-04-23 09:31:08 +00:00