Commit Graph

788 Commits

Author SHA1 Message Date
Paul Berry a9bb706ce2 Migration: allow the client to specify which files to analyze/migrate.
Change-Id: Ie49f003640342a8c0d26b4f509a9268200955dda
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151302
Reviewed-by: Janice Collins <jcollins@google.com>
2020-06-16 21:10:11 +00:00
Mike Fairhurst e11eb2cd08 [nnbd_migration] Fix #42263, tool inserting ! on toString/hashCode
Fixed: 42263
Change-Id: Ia4c6d3543bc7628c76b85d986b9709de58925884
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151441
Auto-Submit: Mike Fairhurst <mfairhurst@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2020-06-16 20:21:31 +00:00
Paul Berry d1638508c1 Migration: streamline behavior injection in migration_cli_test.dart.
We now store both environmentVariables and injectArtificialException
in the _MigrationCliTestBase class, and refer to them wherever they
are needed, so we reduce the amount of plumbing we need to do.

In a follow up CL I'll be adding more behavior injection using the
same technique.

Change-Id: Ib736373f7a92a46922964d3c5c59d35bf72d618a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151300
Reviewed-by: Janice Collins <jcollins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2020-06-16 17:52:10 +00:00
Sam Rawlins efcb8f9213 Migrator: Do not connect return values to return types on generators
Fixes https://github.com/dart-lang/sdk/issues/42299

Change-Id: I07b3955907efa3007ec146f4cb4170b117b58dcf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151328
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2020-06-16 14:08:54 +00:00
Paul Berry 9f8776f4a9 Migration: split out a MigrationCliRunner API from MigrationCli.
This API can be used by tools that wish to perform migration but want
to provide their own command-line argument parsing.

Change-Id: Ic54e993139c803ded5ac39229ae84980db12184e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151080
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
2020-06-15 15:26:48 +00:00
Paul Berry a7c93201e4 Migration: rework how MigrationCli.run() reports an exit code.
Previously, MigrationCli.run() would always return, but it would set
MigrationCli.exitCode to indicate whether an error occurred.  This
made it necessary to thread a lot of tricky logic around to ensure
that we would exit quickly if an error occurred.  This CL switches to
using an exception, so we get the same effect automatically.

Change-Id: I2b885092dec551700900b118ec3d9acd2f3649d7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150760
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
2020-06-15 15:26:48 +00:00
Sam Rawlins 3dc27a55fa Migrator: Add a failing test for #42327
Bug: https://github.com/dart-lang/sdk/issues/42327
Change-Id: I5ac4dbaf95efdc7b54ea4009b78187e519cac92d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151094
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2020-06-13 14:31:15 +00:00
Sam Rawlins b907f9928f Migrator: Begin flow analysis on top-level annotations
Fixes https://github.com/dart-lang/sdk/issues/42295

Change-Id: I9d224b5c8a3fa5d57f17e434a9e6dfbcebc14781
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151026
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2020-06-12 22:01:32 +00:00
Paul Berry 43131b575e Migration: fix crashes with extension Foo<T extends ...> on T
Change-Id: I3a8f1be4f52a6a49bb57ab032fef668482f5acf6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151002
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2020-06-12 18:21:15 +00:00
Mike Fairhurst 6b40b26044 [nnbd_migration] Print warning when SDK_PATH is set and things go wrong.
Also clean up sanity checking code a little bit.

Change-Id: I4274dad42687a4dc419090d656ec56168c982c29
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150661
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2020-06-11 17:19:51 +00:00
Samuel Rawlins 5a32ff0d7f Revert "Bump cli_util to 0.2.0; implement new methods"
This reverts commit ebcc6dc2a2.

Reason for revert: Broke golem. I think there are more implementations of Logger than I realized.

Original change's description:
> Bump cli_util to 0.2.0; implement new methods
> 
> This fixes the issue of progress indicators being shown during tests.
> 
> Change-Id: I39fd68cfeca70a63d088aceb4325b42c53766afd
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150669
> Commit-Queue: Samuel Rawlins <srawlins@google.com>
> Reviewed-by: Paul Berry <paulberry@google.com>

TBR=paulberry@google.com,jcollins@google.com,mfairhurst@google.com,srawlins@google.com

Change-Id: I52ac0f5d96a161534c28cc160c2a2b3b364ad511
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150693
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2020-06-10 23:59:05 +00:00
Sam Rawlins ebcc6dc2a2 Bump cli_util to 0.2.0; implement new methods
This fixes the issue of progress indicators being shown during tests.

Change-Id: I39fd68cfeca70a63d088aceb4325b42c53766afd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150669
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2020-06-10 22:10:06 +00:00
Paul Berry aa2566410f Migration: Add a flag to allow the user to ignore exceptions.
This should allow users to work around bugs while waiting for fixes
from the migration team.

Change-Id: I04fe08b4753ee1377a60ec60728a16560847536f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150542
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2020-06-10 13:50:27 +00:00
Mike Fairhurst 2a3d15e16f [nnbd_migration] Decorate Never type.
Both John and I have hit this in our own projects, seemed worth fixing.

Change-Id: Ic053287d365b92cbfd72448fe401ca627891f802
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150663
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
2020-06-10 04:24:17 +00:00
Paul Berry 3aad249fe2 Sort declarations in preview_site_test.dart
Change-Id: I6154bcff1b6421207ef3c76b5679a1d5d3b6a4ba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150541
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2020-06-09 15:14:21 +00:00
Paul Berry 9907b0327b Migration: add an api_test of a14n's repro for #41397
Bug: https://github.com/dart-lang/sdk/issues/41397
Change-Id: I271b8d961faf12d84f5ebd28ac44ec1d8490b465
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150540
Auto-Submit: Paul Berry <paulberry@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2020-06-09 13:58:16 +00:00
Paul Berry 96c2cc2589 Migration: fix class hierarchy handling in FixBuilder.
When running the FixBuilder we need to override the behavior of
ClassElement.interfaces so that it returns the post-migration
interface types.  We also need to override the behavior of
LibraryElement.isNonNullableByDefault so that the library being
migrated is considered opted in during FixBuilder analysis.  This
required adding hooks to the analyzer to allow those overrides.

Additionally, since the analyzer caches the InheritanceManager, we
need to clear that cache out just prior to running the FixBuilder, so
that no pre-migration interface types leak into the FixBuilder.

Fixes #40475.
Fixes #42139.

Change-Id: I45e2c30ebe8c12e4a599e2458d77a3731bad0f98
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150260
Reviewed-by: Janice Collins <jcollins@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2020-06-08 17:26:41 +00:00
Paul Berry b7abe2cf00 Migration: change how migration_cli_test checks for a correct SDK.
When tests are run internally under bazel, there's no `version` file
we can look for to verify that we are looking at an SDK directory.
Looking for a `bin` directory works equally well.

Change-Id: Ib19350eaf90d105ebaa3d197fb45b5a41a10179d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150285
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2020-06-08 16:47:16 +00:00
Devon Carew 88f20ece1e [nnbd_migration] re-land a fix for migrating packages with multiple contexts
Change-Id: I60365e4a159f8696b17a8dd7f6d3fa0641a5afae
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149889
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2020-06-04 17:05:57 +00:00
Paul Berry ac45f23134 Migration: Fix reporting of exceptions.
Permissive mode in the analyzer currently is broken, leading to a
useless stacktrace if an exception occurs.  As a quick fix, turn
permissive mode off, so the exception just bubbles up normally and
shows on the console.  In follow-up CLs I'll actually fix permissive
mode and add a user option to enable it.

Fixes #42138.

Change-Id: I59322ca9dd90b856c56a6ec335762b94ec6935b7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149863
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2020-06-04 13:01:51 +00:00
Devon Carew ceb08283df Revert "[nnbd_migration] handle multiple contexts"
This reverts commit 54adfeb93f.

Reason for revert: this breaks the windows bot

Original change's description:
> [nnbd_migration] handle multiple contexts
> 
> Bug: https://github.com/dart-lang/sdk/issues/42141
> Change-Id: I64179cd3fa0389397a8a9b3a763fbb1a3719294e
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149664
> Commit-Queue: Devon Carew <devoncarew@google.com>
> Reviewed-by: Paul Berry <paulberry@google.com>

TBR=paulberry@google.com,devoncarew@google.com

Change-Id: I793d8f4a2832e7da0cb30565aee4a4806c0b0e02
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: https://github.com/dart-lang/sdk/issues/42141
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149803
Reviewed-by: Devon Carew <devoncarew@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2020-06-03 16:04:53 +00:00
Mike Fairhurst e39568516b [nnbd_migration] Fix #42117, cannot load edit details on windows.
Change-Id: I5b10861b870d0d3d37a9abfacbc18152844e4ec9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149760
Commit-Queue: Paul Berry <paulberry@google.com>
Auto-Submit: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2020-06-03 12:20:19 +00:00
Devon Carew 54adfeb93f [nnbd_migration] handle multiple contexts
Bug: https://github.com/dart-lang/sdk/issues/42141
Change-Id: I64179cd3fa0389397a8a9b3a763fbb1a3719294e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149664
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2020-06-02 18:40:43 +00:00
Sam Rawlins 93d39a5ef5 Migrator: Edit the package_config.json file
Bug: https://github.com/dart-lang/sdk/issues/41765
Change-Id: I019a97427b6faa4d4f5335b64424fab4bc3c5cde
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149611
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2020-06-02 15:51:11 +00:00
Sam Rawlins b9a89b223f Migrator: improve pubspec parsing
* Prevent cast exception crash when pubspec.yaml is not a map
* Prevent cast exception crash when pubspec sdk is not a string
* Test error cases for parsing pubspec.

Change-Id: Id392815207dc52719cfec5038d6fa2d09f952f08
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149602
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2020-06-01 17:57:07 +00:00
Sam Rawlins d79c5b5d31 Migrator: run pub outdated from the correct directory
Fixes https://github.com/dart-lang/sdk/issues/42084

Change-Id: I74eb3cbf61f4346b82f81f77977989fbbd7f8274
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149366
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Janice Collins <jcollins@google.com>
2020-05-29 00:23:09 +00:00
Paul Berry bf30eb53e2 Migration: Remove "fantasy land" functionality
We're not currently working on this, and it has some dependencies that
interfere with publishing the migration tool.  If we wind up needing
it again, we can always revert.

Change-Id: Ia6219ac376cef77bda7470777eaf2bebf38769b4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149343
Commit-Queue: Janice Collins <jcollins@google.com>
Reviewed-by: Janice Collins <jcollins@google.com>
2020-05-28 22:05:05 +00:00
Paul Berry 2e261f9386 Migration: add locations to trace entries that refer to elements.
Bug: https://github.com/dart-lang/sdk/issues/41402
Change-Id: I0dc59ae9d64c6e8ab470b2ddcb5fd42557ba5704
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148742
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2020-05-27 21:52:14 +00:00
Paul Berry be6cbd3fb8 Sort declarations in instrumentation_test.dart
Change-Id: I0a9febdad57779b2d9d3f17e1d4909194ca15772
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148740
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Janice Collins <jcollins@google.com>
2020-05-27 21:52:14 +00:00
Mike Fairhurst 76839d5e4d [nnbd_migration] Fix navigation urls on windows.
Change-Id: I226b36039c781e3f12b76e8ee3a5ae5e8eefcbed
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149055
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
2020-05-27 19:56:14 +00:00
Konstantin Shcheglov 00fa48fbb1 MockSdk does need to create summary.
Change-Id: Id62bc99394e9afd6306ba6a12118d7bcd045a598
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149202
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-05-27 19:39:10 +00:00
Sam Rawlins 3c6a3fba30 Migrator: Add some failing tests for extensions
Bug: https://github.com/dart-lang/sdk/issues/39387
Change-Id: I2187db2433255fd950789942712d215c2472db4f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149005
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2020-05-26 23:24:22 +00:00
Sam Rawlins 0f7653bb66 Migrator: Fix crash when target of extension method invocation has type names
Fixes https://github.com/dart-lang/sdk/issues/41958

Change-Id: Ib6e3b9d8fbb9d0083c007118a346150d57969461
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148884
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2020-05-26 17:54:13 +00:00
Konstantin Shcheglov 80e9667f2c Fix unused imports.
R=brianwilkerson@google.com

Change-Id: I02f47632bef3a2e601f7f471c7149829e06844f6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148963
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-05-25 16:58:38 +00:00
Sam Rawlins 16b90d2085 Migrator: Check dependencies with pub outdated
Fixes https://github.com/dart-lang/sdk/issues/41769

Change-Id: I892322076c1d03026c42c13b98bb1dcb466e9263
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148789
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
2020-05-21 22:06:53 +00:00
Sam Rawlins 07dd27673a Migrator: Fix crash when casting to generic type
Fixes https://github.com/dart-lang/sdk/issues/41955

Change-Id: I6ca9f1ceae7992f4085f96c927ec989dbb6e2568
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148741
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2020-05-21 17:09:43 +00:00
Sam Rawlins 562b11a4d8 Migrator: Add types to implicitly-typed field formal parameters
Fixes https://github.com/dart-lang/sdk/issues/38453

Change-Id: I56474071fcc7d408487fc74bd76d7520022f0259
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148643
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2020-05-20 22:29:14 +00:00
Mike Fairhurst 79762f96f8 [nnbd_migration] fix hint test on windows that unnecessarily maps a path
Change-Id: Id35ae2332520c96265b92abd31c8ec3a92521c8b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148569
Commit-Queue: Paul Berry <paulberry@google.com>
Auto-Submit: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2020-05-20 15:42:54 +00:00
Paul Berry 15df850fd3 Migration: fix trace display for variable and field types.
Change-Id: Ib601fea6b6edd50a047471fe4eacf56339e4a4a0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/147345
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2020-05-20 15:09:10 +00:00
Mike Fairhurst 71c10c4c9c [nnbd_migration] Fix navigation tree test on windows
Change-Id: Ib6bbf1af5c6061423093e1b05a1ce135ee097d47
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148686
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Auto-Submit: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2020-05-20 14:05:10 +00:00
Mike Fairhurst 4e2f7ac9a2 [nnbd_migration] Fix navigation tree on windows.
Ensure that the preview server responds with full paths so that the
front end does not need to do path magic on relative links, and test
that those full paths are correct on both windows and linux.

Remove [UnitLink.uri], as it is no longer correct, and it does not have
access to a [PathMapper] which is necessary to build a correct URI.

Change-Id: I7ef764d84c0859d72a21134dc042f837767e91b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148565
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2020-05-19 21:08:51 +00:00
Mike Fairhurst a2a98e2362 [nnbd_migration] Fix stack trace links on windows.
Previously, the backend was returning a relative URI, but that doesn't
work when you have stack traces across root directories. So the front
end used path logic to turn the relative path into an absolute one, but
it didn't do this correctly on windows.

Instead just send an absolute path (still a relative URI, though) from
the backend.

Change-Id: Ied06a9d948851fcf6dc1d4aa007961d3d2a000fd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148564
Reviewed-by: Paul Berry <paulberry@google.com>
2020-05-19 21:08:51 +00:00
Mike Fairhurst 59d66151d8 [nnbd_migration] Fix edit region top link on windows.
We want to continue to show windows users the windows path, but on click
we want to take load based on the uri path.

Change-Id: Idb1bff3cac1a7b9830c3a4458fc79fbf76551b4f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148561
Reviewed-by: Paul Berry <paulberry@google.com>
2020-05-19 21:08:51 +00:00
Paul Berry 9261549cdb Migration: eliminate preview_site_test.dart's dependency on analysis_server.
Change-Id: I7582f1cfc52d1fa7ed84e1c2f9b3669d3af4ef57
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148541
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
2020-05-19 18:09:54 +00:00
Sam Rawlins 718c83abe6 Migrator: Add decorated types for class alias implicit constructor parameters
This is necessary for the included test case, and also for an upcoming
change to MigrationResolutionHooksImpl to support changing parameter
types in general.

Bug: https://github.com/dart-lang/sdk/issues/38453
Change-Id: I587ae86943d0fa349b03037a76dee91fb0298dcc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148583
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2020-05-19 17:26:51 +00:00
Paul Berry e1316a1cc1 Migration: replace imports of analysis_server with imports of analyzer_plugin where possible.
Change-Id: I329e423bbe47645432d7a37e50a1877c7395f63d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148504
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2020-05-19 17:08:00 +00:00
Paul Berry e589f5f76b Migration: remove isolate_server.dart.
This code was necessary when the NNBD migration engine was part of the
analysis server, to allow migration to be run in-process.  Now that
it's been separated to its own library, it always runs in process, so
this code is not needed anymore.

Change-Id: Id9e497dca6700ad804f2410cb3b20107be3a4bd2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148503
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
2020-05-19 17:08:00 +00:00
Paul Berry fc9ed66071 Migration: remove analysis_server dependencies from some test classes.
These tests were initially based on analysis server tests, so they
shared a lot of analysis server infrastructure.  However, none of that
infrastructure was really needed; we can test equally well just using
analyzer infrastructure.  This helps pave the way for removing the
dependency from nnbd_migration on analysis_server, which will in turn
allow nnbd_migration to be published as its own package.

Change-Id: Icccb73a6248a0b766db5cfe66f42a6dceac0d944
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148540
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
2020-05-19 17:08:00 +00:00
Paul Berry fa3a17bc4f Sort declarations in nnbd_migration_test_base.dart
Change-Id: I866fe463c81f59e40898f3ac39df54d8fc1a3c19
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148469
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2020-05-19 17:08:00 +00:00
Mike Fairhurst f943d994d3 [nnbd_migration] Support change hint type in stack trace
Change-Id: I715875bb72d4a19480c5f42e796b4ec4cabe3881
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148189
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2020-05-19 16:34:20 +00:00