Brian Wilkerson
fee4fe8241
Generate output files for files outside the migrated package
...
This allows navigation to work from migrated files, but some navigation
from unmiograted files doesn't work.
This also causes the content of the output directory to be deleted
before generation starts so that old files won't confuse the user.
Change-Id: I0007d811e56b82cb6b91582e3237c7383ae2d060
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119660
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2019-10-02 16:31:19 +00:00
Brian Wilkerson
a7b03453d1
Sort the instrumentation renderer.
...
There are no changes other than the sorting.
Change-Id: Ifcb6874324714cad954138a857416b6046bd276e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119585
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Auto-Submit: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2019-10-01 22:19:40 +00:00
pq
23aca57eda
fix for adding boolean diagnostic property references
...
very constrained support for fixing `diagnostic_describe_all_properties` for the boolean field case.
still todo:
* tests for no debugFillProperties method
* tests for getters
* support for ColorProperty -- for Color
* support for EnumProperty -- for any enum class
* support for IntProperty -- int
* support for DoubleProperty -- double
* support for IterableProperty -- any iterable
* support for StringProperty -- string
* support for TransformProperty -- Matrix4
* support for DiagnosticsProperty for any T that doesn't match one of the other cases
(at least)
See: https://github.com/dart-lang/sdk/issues/38633
Change-Id: Ie6875f49914e54d3b4539fcb51a231da688bdf18
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119536
Commit-Queue: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2019-10-01 21:34:00 +00:00
Brian Wilkerson
6ec36b786f
Generate a file for each compilation unit rather than for each library
...
Change-Id: I9a1e812115ba616d0bea57ad6e813c993d1e65d9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119539
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2019-10-01 21:31:29 +00:00
Brian Wilkerson
431176ea26
Add non-nnbd-specific navigation
...
Change-Id: I7b641a89ed935000c54b6f769f50aaf634cdcda8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119531
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2019-10-01 20:15:36 +00:00
Brian Wilkerson
d77f1c8674
Display reasons that are edges; annotate reasons from tests
...
Change-Id: If2703437a4654b2828fbd16f7dfb81ee99f7b874
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119532
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2019-10-01 18:48:56 +00:00
Ben Hagen
082e82ed5e
Remove optional new keyword when extracting widget
...
Closes #38655
https://github.com/dart-lang/sdk/pull/38655
GitOrigin-RevId: 63cd3a9cb6ac0efaa3dee38f5ba6443c17f0f7ba
Change-Id: I97aed6ad2dc740d7c7650aec1234873cab2ceac3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119423
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2019-10-01 15:59:45 +00:00
Devon Carew
5e24d6375e
Rename the dart.assist.flutter.removeWidget action.
...
Change-Id: If836b299b2c3deeae02e61b47a7b21fed5796f7d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119480
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2019-09-30 21:41:04 +00:00
Brian Wilkerson
5236285432
Expose the getter EdgeInfo.isTriggered and make use of it
...
Change-Id: I2177ffb65485f3a9fd73f76a420b4c2aa5007ea8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119422
Reviewed-by: Paul Berry <paulberry@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2019-09-30 17:45:22 +00:00
Brian Wilkerson
425c6c6724
Rename some local variables per earlier feedback
...
Change-Id: I257d0e246b2eb3a7987c9279c6f5b2b0a9453af0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119421
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2019-09-30 17:34:43 +00:00
Danny Tuppeny
34bdcec877
Don't statically register for LSP document changes when dynamic registration is supported
...
Change-Id: I672a3207ab0a0f869721f6cce81b2b81c97db4ea
Bug: https://github.com/dart-lang/sdk/issues/38490
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119333
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Danny Tuppeny <dantup@google.com >
2019-09-30 14:51:36 +00:00
Brian Wilkerson
343723cdff
Support navigation targets in migration tooling
...
Change-Id: I13ee9ae0d87272248b83c45ee775dd359d830850
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119340
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2019-09-30 13:38:09 +00:00
Sam Rawlins
56082c230e
Add highlight.pack.js and highlight.js's androidstudio.css to nnbd i13n output
...
Change-Id: Ica7975af64ca3ab8a8457eb19630032cb48d6a80
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119172
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2019-09-27 22:57:11 +00:00
Sam Rawlins
a1a9d02cfd
Fix CSS regarding tooltip positions and sizing
...
Change-Id: Iac99aa61d722f2132619be7aad23309833c93133
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119175
Auto-Submit: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2019-09-27 22:53:11 +00:00
Brian Wilkerson
2c94bb9849
Fix some recently introduced bugs found by running over logging
...
Change-Id: I1df5217bad7abd30dcb393fbda2aa63a31824993
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119171
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2019-09-27 20:39:41 +00:00
Sam Rawlins
7bf76c5925
Change i13n output files to live in a directory structure; fixes #38503
...
Bug: https://github.com/dart-lang/sdk/issues/38503
Change-Id: I6838a9b07c6a4acdf49839a3992254ec3c9a1ffd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119120
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2019-09-27 18:26:56 +00:00
Brian Wilkerson
0829212a2a
Add a way to map navigation target offsets to the edited content
...
Change-Id: Ia5e10cbc1a3510e6764fa67e5e6d47c9f19dbc48
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119165
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2019-09-27 16:52:24 +00:00
Brian Wilkerson
6eaebb8463
Add navigation targets to the containing unit info
...
Change-Id: I5d4707f019254e9b338eae23bb8a9fb61ef14e54
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119085
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2019-09-27 13:57:13 +00:00
Brian Wilkerson
07db94d454
Add support for details and implement some initial details for regions
...
Details provide a way for clients to provide navigation support. I'm
imagining that the description could be used as link text.
The deatils are currently more of a data dump than information. I need
to see more migration results in order to figure out when and how to
pare down the data into actionable information.
We might want to capture all of the navigation targets as we build the
info so that we can create anchors in the HTML.
Change-Id: Ie48622ce7d935d3c028ea42e51cfc8da590db149
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118908
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
2019-09-26 18:03:40 +00:00
Sam Rawlins
661816ea06
Use Context.separator in nnbd i13n output; Fixes #38574
...
Change-Id: If125bc6d8bc9ae66d949c712921b6ce7da428f6e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118890
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2019-09-26 17:24:12 +00:00
Sam Rawlins
c49d3c3486
Use a root directory for NNBD i13n output.
...
Change-Id: I4ad9d59136010240d56043609ef37edf44ebc4be
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118880
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2019-09-26 02:46:22 +00:00
Sam Rawlins
344b30e8ce
Enable pedantic 1.8.0 in analyzer, analysis_server
...
Since some pedantic issues were individually enabled, this CL turns our
analysis_options files into something more like "pedantic lints,
except ...". Effectively, this _adds_ the following lint rules:
* avoid_empty_else
* avoid_relative_lib_imports
* avoid_shadowing_type_parameters
* avoid_types_as_parameter_names
* library_names
* library_prefixes
* null_closures
* prefer_contains
* recursive_getters
* type_init_formals
* unnecessary_null_in_if_null_operators
* unrelated_type_equality_checks
* use_rethrow_when_possible
It also documents (for some rules) how many violations certain rules have.
Change-Id: I79a2c101ae4d10215d3f232d9e511bf8e6c7faa4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118720
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Paul Berry <paulberry@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2019-09-25 19:08:03 +00:00
pq
7235115f36
statement completion for expression bodies
...
See: https://github.com/flutter/flutter-intellij/issues/3253
Change-Id: Ib892833ecfa4500b726f4f6df42f16f0618c994d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118663
Reviewed-by: Steve Messick <messick@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2019-09-25 17:56:45 +00:00
Brian Wilkerson
763421a88e
Add a first test of the InfoBuilder
...
Change-Id: I0f2f85d31696290b8b46892289e4c1cebf0e042f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118680
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
2019-09-25 01:44:27 +00:00
Sam Rawlins
660ee086b5
NNBD Migration Tool - Use InfoBuilder in non_nullable_fix.
...
Change-Id: Ib1b57e59edd5578246905830afa902668acbb24b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118620
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2019-09-24 23:04:50 +00:00
Brian Wilkerson
eb4aaa1b13
First sketch at generating migration info from instrumentation data
...
Change-Id: I129fe24ee15652e8eec7d674a03b3dee6e44ed9e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117923
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
2019-09-24 18:12:49 +00:00
Sam Rawlins
87a369f1d2
Add syntax highlighting to instrumentation_renderer
...
In this change, we also push HTML escaping to mustache.
Changes can be seen in x20 pages emailed to the team.
Change-Id: I239668a0844fb5bd7c90848f25a3cbf29e50363d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118460
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2019-09-23 18:51:55 +00:00
pq
7367b6f192
fix for MISSING_CONST_FINAL_VAR_OR_TYPE
...
Change-Id: Ic332128c5981d0a120f169c948bf794d57f3c709
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118202
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2019-09-20 01:26:44 +00:00
Sam Rawlins
97346ff476
Initial migration i13n HTML output
...
Change-Id: If614fa0719d8ffdaa7a41cca6d0df249772c2437
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117928
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Paul Berry <paulberry@google.com >
2019-09-19 22:56:44 +00:00
pq
f8f54c883b
check for existing asserts before suggesting to add one
...
Change-Id: Id17bf2e2dedd44c88aa4a95f4e2123a70113399e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118102
Commit-Queue: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2019-09-19 19:07:07 +00:00
pq
ad7374fcdb
assist to insert null checks
...
(still WIP)
Change-Id: Icca46e4a9fbca43f00151d99cb24935e18c97294
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117589
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2019-09-18 22:32:15 +00:00
Brian Wilkerson
771ee9f9ba
Pass the output directory to dartfix and install a listener when output should be generated
...
Change-Id: Ie73287f212246493a6f95aa39f56bf60c0b23f4d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117769
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2019-09-18 20:03:00 +00:00
Konstantin Shcheglov
4102e63f37
Deprecate TypeProvider.listType/mapType
...
R=brianwilkerson@google.com
Change-Id: I7cef0b752be4ef6a7e4bc5394e14cd64ecb67ab5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117765
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2019-09-18 17:55:03 +00:00
Brian Wilkerson
74af5f3496
Add a representation of the information captured from an nnbd migration
...
Change-Id: Ia201c59ebb31709278ec4efaf7432af757716cf6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117764
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2019-09-18 17:22:23 +00:00
Konstantin Shcheglov
d4f1b8f8db
Deprecate TypeProvider.futureType/futureOrType
...
R=paulberry@google.com
Change-Id: Idde7d82b217b5921c0770d9b69f6934a1e1fc493
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117682
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2019-09-18 15:37:21 +00:00
Brian Wilkerson
f3b54fae0a
Information for the migration result pages
...
Change-Id: I237efbbd1ed50963b28dce738c2a365c244b3a88
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117587
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2019-09-18 15:20:50 +00:00
Konstantin Shcheglov
1a812bb6bb
Deprecate TypeProvider.setType
...
R=brianwilkerson@google.com
Change-Id: I522066c919b5eef9640243c8b08435756d9481f6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117597
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2019-09-18 00:20:46 +00:00
Konstantin Shcheglov
e32706ec05
Remove '--use-summary2' from DAS.
...
R=brianwilkerson@google.com
Change-Id: I22d99ae50e19d5e1b624a0d807cead676411f58d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117586
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2019-09-17 19:28:01 +00:00
pq
d4fd853523
fix for unused_element
...
Change-Id: Id72c792dff73a08a10f03f494bf3adc39b91b872
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117521
Commit-Queue: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2019-09-17 17:04:09 +00:00
pq
f309ca5faa
improvements to remove_unused_local_variable
...
Change-Id: Ia787f1ef0d0587b6ba0c91615dc0baaef1b5d0bf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117460
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2019-09-17 02:27:18 +00:00
pq
74fb313c78
nodeInList utility
...
Change-Id: I213dcb281c8484bc2f44a2046dbbe54e92e5d645
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117422
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2019-09-16 21:56:21 +00:00
Konstantin Shcheglov
6a9d792454
Move NullabilitySuffix to API.
...
R=brianwilkerson@google.com
Change-Id: I58547075d3472e6708e6b5ff1c6d89f768aba66a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117440
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2019-09-16 21:14:11 +00:00
Konstantin Shcheglov
e978b32a7e
Stop using '.type' in analysis_server.
...
R=brianwilkerson@google.com
Change-Id: I0cff6d1b46e56651d7ed2d60e0bf76bb7272f5de
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117294
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2019-09-16 19:05:13 +00:00
pq
ec1b9615b1
fix for unused_field
...
Change-Id: I7ea76765eba72290459f333a86349bda5af1370c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117340
Commit-Queue: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2019-09-16 18:20:49 +00:00
pq
4575e4df37
fix for UNUSED_LOCAL_VARIABLE
...
see: https://github.com/dart-lang/sdk/issues/38361
Change-Id: I5329067d6f132393efd9194886713c30e1dafbfc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117205
Commit-Queue: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2019-09-14 13:45:44 +00:00
Brian Wilkerson
e8413cd08d
Add a fix to allow unqualified references to static members to be qualified.
...
Change-Id: Iecc08f6ed05509ff170c3276c89bfbaf1406a437
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117165
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2019-09-13 18:11:36 +00:00
Brian Wilkerson
7badd807b1
Add a fix to replace an override with the extension name if accessing a static member
...
Change-Id: I5c7557aaff6af4eeaad196513c3315679fab26f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117011
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2019-09-12 19:54:52 +00:00
pq
9d3de982c6
fix for REMOVE_UNUSED_LABEL
...
see: https://github.com/dart-lang/sdk/issues/38361
Change-Id: I45fdba9f12d9fdfd7d431149da97632df97a4653
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117008
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2019-09-12 18:59:18 +00:00
pq
1d01d91c33
fix for sort_child_properties_last
...
Change-Id: Ife3f05077fcd48e8f821314b55ba481918ba05c6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/116822
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2019-09-12 00:07:40 +00:00
Konstantin Shcheglov
eac977bef0
Issue 38273. Fix for inlining methods ending with a return statement without an expression.
...
R=brianwilkerson@google.com
Bug: https://github.com/dart-lang/sdk/issues/38273
Change-Id: Ib399379f8aecb1e7737f2efdeb9dbf53f27d4abb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/116881
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2019-09-11 23:27:40 +00:00