Danny Tuppeny
afc2778802
[Analyzer] Don't create new analysis roots for files opened outside an existing root
...
Change-Id: I55a0bf44551ba1e7abe810fc3fa5654c6cd4ea8c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162508
Commit-Queue: Danny Tuppeny <danny@tuppeny.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-09-11 15:40:22 +00:00
Brian Wilkerson
e29f248d3e
Enable the add-missing-required-argument fix for missing required named
...
parameters under null safety
Note that the fix is disabled when we can't suggest anything other than
`null` in an opted-in library and the parameter can't accept `null`. We
might want to relax that restriction, even though we'd be introducing an
error, if we think it's better to provide some fix rather than none in
this case. Doing so would violate a long-standing design constraint,
which is why I haven't already done it. Reducing the temptation to do so
is why I provided non-null defaults for so many other types.
Change-Id: I114a495ee2bf3e01f02a51b87cc8659048e56aa2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162440
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-09-11 00:43:10 +00:00
Brian Wilkerson
4e9a98bb45
Add a date field for transforms
...
This also contains a few minor clean-up changes to the parser, mostly
dealing with keys that should have been required but weren't.
I'm tempted to make the date a required field and then use it to sort
the transforms so that they are applied from oldest to newest. Right
now it's optional but provides a way for users to document the date
for their own record keeping. Thoughts appreciated.
Change-Id: If3a22bbc2dea30f760f868c1ca1bf41aaf4654c9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162382
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-09-10 22:32:11 +00:00
Brian Wilkerson
dbbe5c3934
Remove the defaultValue from the add-parameter change
...
I originally thought we'd need this to handle updating overrides, but I
now think we can get the deafult value from the overridden method and
hence don't need it in the data file. We can always re-add it when we
support the override case if I'm wrong.
Change-Id: I1016841d18badf9deeb92ad2294e5ffe4af94ef2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162380
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-09-10 17:44:09 +00:00
pq
4d72ed38b8
bulk fix for prefer_final_locals
...
Change-Id: I9076dbf40aea9f261fe0374aa624bb64e6ec5a8b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162246
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2020-09-09 22:42:06 +00:00
Brian Wilkerson
bf80bb23db
Add support for add-parameter and remove-parameter changes
...
Change-Id: Ifc1ed1bbbdd553daf3a91e044ade1c579962dba5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162244
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-09-09 22:14:26 +00:00
Danny Tuppeny
9181df9d6b
[Analyzer] Fix error in LSP go-to-definition when target is in a "part"
...
Plus unrelated navigation regions (for example in comments, references
outside of the required range would be returned).
Fixes https://github.com/dart-lang/sdk/issues/28799 .
Change-Id: I2fce33a3bd2678abfb40e5e9b3e3c5662e4f5608
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161948
Commit-Queue: Danny Tuppeny <danny@tuppeny.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-09-09 18:53:39 +00:00
Danny Tuppeny
d3b0979b04
[Analyzer] Use ImportOrganizer for Sort Members instead of own code
...
Change-Id: I8640a49fb1577eb8b79673970208791e02d475de
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162009
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Danny Tuppeny <danny@tuppeny.com >
2020-09-09 08:31:04 +00:00
pq
343a6965c6
bulk fix for prefer_relative_imports
...
Change-Id: Iaf55633c6c9a8b8ec493c892ec213adfdf486bc2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162103
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2020-09-08 23:10:08 +00:00
pq
adb63719f9
bulk fix for prefer_const_constructors_in_immutables
...
Change-Id: I071757c3a00afa879a35b5318604a3418a109323
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162121
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2020-09-08 21:41:11 +00:00
Brian Wilkerson
8c26946ecc
Add more parse errors and fix two return types based on comments from a previous CL
...
Change-Id: If0f11df6d1d638dbc89a15e8cebaa534424e9b6b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162100
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-09-08 20:16:05 +00:00
Danny Tuppeny
cef054ae31
[Analyzer] Add trigger characters to LSP signature help
...
Change-Id: I3b5c73e7341df818fb558dc7a0f03d6f94428096
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/162000
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Danny Tuppeny <danny@tuppeny.com >
2020-09-08 15:09:32 +00:00
Danny Tuppeny
725d3e4498
[Analyzer] Handle directive comments that are split between directives
...
Change-Id: I013195403361772322c848db10d0c59e48a702b2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161785
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Danny Tuppeny <danny@tuppeny.com >
2020-09-08 14:47:22 +00:00
Danny Tuppeny
4c58698a91
[Analyzer] Add a preview setting to enable completion commit characters for LSP
...
Change-Id: Id8607fd0a176f47ac3cf9505a2d2c51d6f9925fb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161942
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Danny Tuppeny <danny@tuppeny.com >
2020-09-08 14:09:22 +00:00
pq
5b956bd8a0
bulk fix for prefer_const_declarations
...
Change-Id: I5ee65d901d8777df032f447b8a56bf1d654b98f1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161824
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2020-09-03 23:57:35 +00:00
pq
8e85c1e7c6
bulk fix for non_constant_identifier_names
...
Change-Id: I4c6086eadff4de8c53569321bef9f5b3215eafd3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161820
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2020-09-03 22:48:55 +00:00
Brian Wilkerson
40c648990b
Add parser support for add-type-parameter
...
Change-Id: I48c9a46e2c233a4ab49842b74b0ae689bc71563c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161762
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-09-03 20:14:25 +00:00
pq
910d1d7e05
bulk fix for sort_child_properties_last
...
Change-Id: If340bb29892eded3801801bf5e97794b45eae321
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161624
Commit-Queue: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-09-03 20:13:05 +00:00
Brian Wilkerson
f9e53846be
Add more tests of the add-type-parameter change
...
I added several tests. I also renamed most of the tests to remove a
component that was redundant with the class name after my previous
reorganization of the tests. Unfortunately this will probably make it
fairly difficult to see what changed. No test coverage was lost, so it
might be easier to just look at the new version of the file.
Change-Id: I5a1c9ce6e062f9520631a9ec4a9cfc34141bf2c8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161663
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-09-03 17:23:35 +00:00
Paul Berry
a4b2047d9d
Reland "Flow analysis changes to fix mixed-mode unsoundness loophole."
...
This is a reland of d833f2f65c
Original change's description:
> Flow analysis changes to fix mixed-mode unsoundness loophole.
>
> This is the flow analysis portion of the fix to
> https://github.com/dart-lang/language/issues/1143 . Follow-up changes
> will be needed in the CFE and/or backends to ensure that exceptions
> are thrown under appropriate circumstances.
>
> This CL also makes some improvements to flow analysis's reachability
> analysis so that it accounts for nullability of the target when
> analyzing the reachability of `??=` and `?.`. Hopefully these
> improvements should make the fix to
> https://github.com/dart-lang/language/issues/1143 clearer and more
> consistent.
>
> Change-Id: I5fa5c070f13fd57ac4c2fb87f2d67588861594b0
> Bug: https://github.com/dart-lang/language/issues/1143
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/160440
> Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
> Reviewed-by: Johnni Winther <johnniwinther@google.com >
> Commit-Queue: Paul Berry <paulberry@google.com >
Bug: https://github.com/dart-lang/language/issues/1143
Change-Id: If9c45649c1e9f4b19f7c282e7a1c4c956a7bc17f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161622
Commit-Queue: Paul Berry <paulberry@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2020-09-03 01:01:43 +00:00
Brian Wilkerson
1cb49093fe
Change the data-driven file parser to support the style of element reference used in the design docs
...
Change-Id: I042f43670187c21314feb5e348b9c1bcdfde3605
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161632
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-09-03 00:17:22 +00:00
Mike Fairhurst
d313fb70b6
[analysis_server] Tests should import dart:async to use Future
...
Tests which depend on the import can merely use Completer instead of
Future to get the same result. Tests which do not rely upon the import
have had the import removed.
Change-Id: I74641a58b1f97c8599c8faad86943b1c68508980
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161625
Auto-Submit: Mike Fairhurst <mfairhurst@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-09-02 21:48:03 +00:00
Danny Tuppeny
31cc6df4fe
[Analyzer] Compute code locations for LSP definitions
...
Change-Id: Id52fefae11b0d779b860cb44e33bc36cc12e55bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161168
Commit-Queue: Danny Tuppeny <danny@tuppeny.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-09-02 20:51:27 +00:00
Danny Tuppeny
5112f526cf
[Analyzer] Add optional support for codeOffset/codeLength on navigation targets
...
Change-Id: Ib328c408d590398d30bd341603781f68f2fd1402
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161166
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-09-02 20:51:27 +00:00
Danny Tuppeny
047c0f860a
[Analyzer] Support analyzing open files without open workspaces
...
This introduces the concept of temporary analysis roots, used to ensure loose files that are opened can be analyzed even when there are no other analysis roots (and therefore no existing analysis drivers).
Fixes https://github.com/Dart-Code/Dart-Code/issues/2764 .
Change-Id: I6b208f7c2fe8b538d7254691221fb72604ef156e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161500
Commit-Queue: Danny Tuppeny <danny@tuppeny.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-09-02 17:46:02 +00:00
Mike Fairhurst
1134a0f17c
[analysis_server] Remove unused dart:async imports
...
Change-Id: I764ee78cb9e31bdb3abaa36ca4754e1fed180311
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161447
Auto-Submit: Mike Fairhurst <mfairhurst@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2020-09-02 17:29:52 +00:00
Paul Berry
ab16d79af9
Revert "Flow analysis changes to fix mixed-mode unsoundness loophole."
...
This reverts commit d833f2f65c .
Reason for revert: Broke build, e.g. https://ci.chromium.org/p/dart/builders/ci/dart-sdk-mac/12688
Original change's description:
> Flow analysis changes to fix mixed-mode unsoundness loophole.
>
> This is the flow analysis portion of the fix to
> https://github.com/dart-lang/language/issues/1143 . Follow-up changes
> will be needed in the CFE and/or backends to ensure that exceptions
> are thrown under appropriate circumstances.
>
> This CL also makes some improvements to flow analysis's reachability
> analysis so that it accounts for nullability of the target when
> analyzing the reachability of `??=` and `?.`. Hopefully these
> improvements should make the fix to
> https://github.com/dart-lang/language/issues/1143 clearer and more
> consistent.
>
> Change-Id: I5fa5c070f13fd57ac4c2fb87f2d67588861594b0
> Bug: https://github.com/dart-lang/language/issues/1143
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/160440
> Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
> Reviewed-by: Johnni Winther <johnniwinther@google.com >
> Commit-Queue: Paul Berry <paulberry@google.com >
TBR=paulberry@google.com ,scheglov@google.com ,johnniwinther@google.com
Change-Id: If1215b19975e0958d612dd69767088095d853879
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: https://github.com/dart-lang/language/issues/1143
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161580
Reviewed-by: Paul Berry <paulberry@google.com >
2020-09-02 15:02:46 +00:00
Paul Berry
d833f2f65c
Flow analysis changes to fix mixed-mode unsoundness loophole.
...
This is the flow analysis portion of the fix to
https://github.com/dart-lang/language/issues/1143 . Follow-up changes
will be needed in the CFE and/or backends to ensure that exceptions
are thrown under appropriate circumstances.
This CL also makes some improvements to flow analysis's reachability
analysis so that it accounts for nullability of the target when
analyzing the reachability of `??=` and `?.`. Hopefully these
improvements should make the fix to
https://github.com/dart-lang/language/issues/1143 clearer and more
consistent.
Change-Id: I5fa5c070f13fd57ac4c2fb87f2d67588861594b0
Bug: https://github.com/dart-lang/language/issues/1143
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/160440
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Commit-Queue: Paul Berry <paulberry@google.com >
2020-09-02 14:27:52 +00:00
pq
e6bfae0552
test case for potential overlap in convert_to_null_aware_test
...
Change-Id: I54a002fc60328eea13e14a57785298f4907e22c3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161460
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2020-09-01 23:47:01 +00:00
pq
2b937656bd
bulk fix for prefer_null_aware_operators
...
Change-Id: I12b0f8bded48cf17550b6d7203e7b45576953574
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161340
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2020-09-01 22:12:16 +00:00
Danny Tuppeny
fb0729b35d
[Analyzer] Fix convert_to_single_quotes fix for interpolated strings
...
See https://github.com/Dart-Code/Dart-Code/issues/2727
Change-Id: Ibcea426952835c5919b804781d1c01febaf9a6f1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161171
Commit-Queue: Danny Tuppeny <danny@tuppeny.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-09-01 19:31:59 +00:00
Brian Wilkerson
f5fbe015f0
Reorganize the tests for the data-driven changes
...
The tests have been re-organized and renamed, but there are no
substantive changes.
Change-Id: I0ce3447f56ade2a52a52d89e522275f4c1ea4e2a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161341
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-09-01 18:46:53 +00:00
Danny Tuppeny
c34cd2c758
[Analyzer] Use relative paths to libraries in refactor error messages
...
Change-Id: Iacac96d3bf80a5ee29b45500c439ec7f527e6a39
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161160
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Danny Tuppeny <danny@tuppeny.com >
2020-09-01 16:10:01 +00:00
pq
c6cbf51cc4
bulk fix for prefer_int_literals
...
Change-Id: I24714e1268734fc947f8df0444d0ba2d94ac39de
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161320
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2020-09-01 15:37:19 +00:00
Brian Wilkerson
306dcc41cc
Add an end-to-end test of data-driven fixes
...
Change-Id: Idb932f3e4195e47a84826f42a44571c26bedd76b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161300
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-09-01 15:25:49 +00:00
Brian Wilkerson
96d2c2da4a
Add more tests for the data-driven rename fix
...
There is one test marked as failing because we haven't implemented
support for it yet (discussion welcome). Getting the other tests to pass
prompted enabling the fix for several additional error codes.
Also, I'm not convinced the organization of the tests is optimal. It was
fairly easy to see missing test cases for the deprecated API cases, but
I find it much harder when the tests are divided based on the error code
that is produced in the code to be fixed. Discussion of alternatives is
also welcome.
Change-Id: I51af96c72ca86b37aac59c769b42c2c93012ed80
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161181
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-08-31 21:40:29 +00:00
pq
e031b554c4
bulk fix for prefer_for_elements_to_map_fromIterable
...
Change-Id: If733742caf164a523f157ff3c557a21a118b1926
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161000
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2020-08-29 15:33:34 +00:00
Brian Wilkerson
e7d483e499
Add data-driven data file parser tests for some invalid input
...
Change-Id: Ic47d53cce17cf78daa1b73a9d570aa77ab5d483f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/160920
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-08-28 19:26:08 +00:00
Danny Tuppeny
59d7bf2ca4
[Analyzer] Handle highlights for trailing comments that aren't the entire file
...
Change-Id: I4138250ab2721f3c9ef57a7283c67880f46aae9c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/160641
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Danny Tuppeny <danny@tuppeny.com >
2020-08-28 18:49:58 +00:00
Brian Wilkerson
14a6f4fed3
Add a way to locate data files and convert them to transform sets for data-driven fixes
...
Change-Id: Id8183fb43263bc19ece595be9ebd2408bf1222a3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/160780
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-08-28 14:35:28 +00:00
Simon Binder
366a3f37c6
Analysis server: Show current registration in LSP Diagnostics
...
Show the current registration and params in the capabilities page.
For me, this was useful to verify plugin registrations with a custom
document selector.
Change-Id: If8c009cb75a6c4b42661354ee90eb515eee2da06
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/160720
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-08-27 20:41:57 +00:00
Danny Tuppeny
b29aebbc8d
[Analyzer] Produce tokens for trailing comments in a file
...
Change-Id: I65e611f1bbe29a511264df203067bd9628990acd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/160580
Commit-Queue: Danny Tuppeny <danny@tuppeny.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-08-27 15:32:57 +00:00
Danny Tuppeny
d5b9dcb00c
[Analyzer] Ensure LSP analysis drivers are seeded with existing priority files
...
Fixes https://github.com/dart-lang/sdk/issues/42994 .
Change-Id: If8482040b76645ee44224d5a44174ef74ade8e99
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/160225
Commit-Queue: Danny Tuppeny <danny@tuppeny.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-08-26 17:55:25 +00:00
Danny Tuppeny
84c24d8f68
[Analyzer] Fix analysis of analysis_options.yaml in LSP server
...
Notification managers roots need to get set before context managers otherwise the error is filtered out.
Change-Id: I82c46136fa8b32846817ec950405c7093fec1dd0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/160070
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Danny Tuppeny <danny@tuppeny.com >
2020-08-25 15:03:29 +00:00
Danny Tuppeny
b613265c85
[Analyzer] Reanalyze analysis_options when .packages changes
...
Fixes https://github.com/dart-lang/stagehand/issues/619 .
Change-Id: I30022215b23de2b690b5cde95c9dd256a9ef83d8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/160068
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2020-08-25 15:03:29 +00:00
Brian Wilkerson
680f3b51ca
Suggest named parameter names in a super constructor invocation
...
Change-Id: Ibe095cab1473aefd3a1067bb0264a115f44c05d3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/159964
Reviewed-by: Jaime Wren <jwren@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-08-24 20:42:07 +00:00
Brian Wilkerson
ebb9a321c1
Create constructor should not initialize late final fields
...
Bug: 43161
Change-Id: I2bda5eca3527486b44090f8efff3c77a04ee214b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/159962
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Paul Berry <paulberry@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2020-08-24 20:21:27 +00:00
Konstantin Shcheglov
675891ae0c
Issue 43152. Use existing LineInfo in newDiagnosticMessage().
...
R=brianwilkerson@google.com
Bug: https://github.com/dart-lang/sdk/issues/43152
Change-Id: I1e88df0a5d2b1695b45ddfe22c84a354a9e33c4e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/159741
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-08-24 14:34:03 +00:00
Konstantin Shcheglov
cf4d41074e
Fix crash when working with directives with invalid URIs.
...
R=brianwilkerson@google.com
Change-Id: Id8bd5c49269c58404b4a4d3182b77a37fb494c11
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/159720
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2020-08-22 18:37:51 +00:00
Brian Wilkerson
d0ac759927
Initial parser for the data-driven fixes data file
...
This is very incomplete, but allows us to read rename changes, which will
enable us to get a steel thread in place.
Change-Id: I3259f64bd6d3dc1fdc4894d2b08b5388e8652dac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/159642
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2020-08-21 19:11:30 +00:00