Keerti Parthasarathy
a77ee421d9
Add support for documents symbols to Cider
...
Change-Id: I0fb225a09b4a4f12ee1440dd94ff3dc2d9363a82
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237748
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Keerti Parthasarathy <keertip@google.com >
2022-03-18 16:53:58 +00:00
Danny Tuppeny
9a49921c6f
[analyzer] Don't produce nested LinkedEditGroups
...
Fixes https://github.com/dart-lang/sdk/issues/48612 .
Change-Id: Ibe8e5036420e24a1dc5cc36f93e42eded607eaf5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237820
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-18 16:08:40 +00:00
Ahmed Ashour
c51b09bd4e
[analyzer] fix require_trailing_commas for assertions
...
Fixes #48605
Change-Id: I62b449b326827e6f289d90f96d8d7658d28d0615
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237694
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-18 15:58:48 +00:00
Ben Konyi
b036052077
Reland "[ Service ] Update VM service message to not reference Observatory"
...
This reverts commit ee5837aa7a .
Updated Intellij plugins have been published which support the new
message.
TEST=CQ
Change-Id: I81f6d878f036991a95cc1f58d3102015e77aa609
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237741
Reviewed-by: Siva Annamalai <asiva@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2022-03-17 23:15:57 +00:00
Konstantin Shcheglov
592bfc0174
Remove newDotPackagesFile(), related from file_paths, context location / manager.
...
Change-Id: I0f3c067b47e4d0f6171b8a26d34fc173df983c29
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237637
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-17 17:40:16 +00:00
Ahmed Ashour
3ebb07c016
[analyzer] AddTrailingComma to handle FormalParameterList
...
Fixes #48578
Change-Id: If3f7d4e407512117729396ca7582f1923f55aab7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237660
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-17 16:47:47 +00:00
Konstantin Shcheglov
b2044efef7
Look for and build package_config.json files in PluginManager.
...
Change-Id: Iea851a2c773163a274b5ffc7259b2647aaa5099d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237640
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-17 03:48:23 +00:00
Konstantin Shcheglov
bff94a4c3a
Always provide 'isNonNullableByDefault' arguments for ErrorReporter.
...
Change-Id: If556a25d5ce6d0d33e55d2cf8fb2df950d3959a6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237626
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-16 23:53:35 +00:00
Brian Wilkerson
844ca214c4
Correctly handle a trailing comma in convert_to_super_parameter
...
Change-Id: I8acfe80106666d9105f0c7a4c5e8c6352635e2bf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237601
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-16 21:41:44 +00:00
Konstantin Shcheglov
408083ccad
Use PluginFiles instead of List<String> in PluginManager.
...
Change-Id: I517830dfd388af6ac293ff7eea2ea8840c60fc01
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237623
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-16 18:36:24 +00:00
Brian Wilkerson
519b391291
Do not convert field initializing parameters to super parameters
...
Change-Id: I2238b49fe9a872d5235108839fa60a98e6de3c09
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237600
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-16 18:29:04 +00:00
Brian Wilkerson
8d6fb0f31c
Add ignore comments for upcoming dead code warnings
...
Change-Id: I80406737abdbaded667cbb8b830e38be2a1f3280
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237621
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-16 16:55:44 +00:00
Brian Wilkerson
cd5933c833
Fix a false positive in convert_to_super_parameters
...
Unlike normal parameters, super parameters are visible in the body of
the constructor. So if the normal parameter is referenced it can't be
converted.
Change-Id: I6a48e0d6de896b25d7a9d25f6d20ae7ad01f82c3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237502
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-16 04:19:03 +00:00
Brian Wilkerson
37e67cccfa
Add a quick fix for convert_to_super_parameters
...
Change-Id: Ied50bcd6af6e0cf4871c8810c5b8466fa268bd86
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237460
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-15 20:12:26 +00:00
Danny Tuppeny
094c598703
[analysis_server] Change empty linked edit groups to have placeholder text
...
Change-Id: Id687c4db11a1b43507f61e6d8ff5775ccccc819f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237421
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-15 20:03:33 +00:00
Konstantin Shcheglov
111101039b
Don't create default constructors for mixins.
...
Mixins are not classes, they cannot be instantiated.
Change-Id: Ib91b53046fead331886e4099625371016c4b2ba8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237240
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-15 15:48:21 +00:00
Brian Wilkerson
aec5b376d8
Fix handling of named constructors in convert_to_super_parameters
...
Change-Id: If20d797cf8ad0c91d42e4d56e5cf7fecc1124e0d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237200
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-15 00:35:18 +00:00
Brian Wilkerson
5eba89dc30
Rewrite the assist to convert to super parameters
...
The assist used to convert one parameter at a time, but now it will
convert all of the parameters that can be converted at the same time.
Change-Id: I862e0f89f55b4a76bb4347a93e8d94fdad556135
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/236920
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2022-03-14 20:05:44 +00:00
Konstantin Shcheglov
501f1abf25
Rebase after newFile() changes.
...
Change-Id: If7c4057e22d571bf5d3df259cc718fbd287f3c23
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237122
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
2022-03-14 19:45:35 +00:00
Konstantin Shcheglov
41b3e0abcc
Make 'content' required in ResourceProviderMixin.newFile()
...
Change-Id: Id697b0736b95a913c31247a66425027852f1ddc5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/236800
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-14 17:31:48 +00:00
Konstantin Shcheglov
6de7ea7432
Don't remove overlays immediately, wait for the next watch event.
...
Change-Id: Ie3352bf70010de88874aea122d83a5533a00a1ca
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235740
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Jaime Wren <jwren@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-14 17:21:28 +00:00
Danny Tuppeny
b9a7f00a9a
[analysis_server] Add server snippets for classes, and test/groups in test files
...
Change-Id: I72758dba2967c678d96adbc9f7bbd4bd307caf67
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/237083
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-14 16:43:38 +00:00
pq
0d130c3148
fix for unnecessary_null_aware_assignments
...
Fixes: https://github.com/dart-lang/lints/issues/66
Change-Id: Ib14902c76910d550fbf69161a257d59cd268be9c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/236701
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2022-03-14 16:04:40 +00:00
Brian Wilkerson
2ce7aa3b16
Add a fix for the use_enums lint
...
Change-Id: I6f3e7b1c3f9b8b4ce7a1737130e3f98896b2123c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/236981
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-14 15:58:40 +00:00
Danny Tuppeny
4b0706aec7
[analysis_server] Support multi-group snippets in LSP CodeActions
...
Fixes https://github.com/Dart-Code/Dart-Code/issues/3869 .
Change-Id: Ib1925cc090fe62815c9257c72823c0e84d93efd0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/236640
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-10 20:35:35 +00:00
Konstantin Shcheglov
2184481d93
Replace addProjectFile() with newFile() and explicit waitForSetWithUri().
...
Change-Id: Ie9d9afa66ace10fdb1d8cc5501cb9e777c60fe5a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/236740
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-10 20:08:35 +00:00
Konstantin Shcheglov
13c0a4c2c0
Enable 'macros' experiment in tests.
...
Change-Id: Ib5593b12f13c23cc9a703d80cf50bbec5608e53f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/236702
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2022-03-10 20:08:21 +00:00
Konstantin Shcheglov
5fa65048c1
Use file_paths.pubspecYaml instead of 'pubspec.yaml' literal.
...
WDYT ?
Change-Id: I6677b2237e0558c74bb11073dcfb44d7b672323f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/236480
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-10 19:03:55 +00:00
Konstantin Shcheglov
1531030b42
Stop using newDotPackagesFile() in analysis_server/.
...
Change-Id: Iaa4e8657ee1d5f115ab62177570aa662494b9d9c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/236440
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-09 23:56:15 +00:00
Danny Tuppeny
dd34c92da0
[analysis_server] Add snippets for for/for-in/while/do-while loops
...
Change-Id: Ie9f7a73ddf3e9661b91212cdafb95f34a9994cc8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/236244
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Danny Tuppeny <danny@tuppeny.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-09 21:44:05 +00:00
Konstantin Shcheglov
5ffba0a660
Remove unnecessary code for enum constants from AstBuilder, completion.
...
With https://github.com/dart-lang/sdk/issues/48380 fixed, we can simplify.
Change-Id: Ic453fe9e86af2f6cb437ff016a9b3786959b05d2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/236302
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-09 21:07:44 +00:00
Danny Tuppeny
13a6faf36c
[analysis_server] Add snippets for if, if-else, switch, try-catch
...
Change-Id: I4146cf465817f46ffbec6e32630fd8425dcd0fd1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235840
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-09 21:00:46 +00:00
Konstantin Shcheglov
1693908268
Apply file changes between (not during) other operations.
...
This would be a breaking change, so for now it is disabled, but
the method `applyPendingFileChanges()` can be added, and the clients
will call it to be ready for the switching the flag.
Only clients that call methods like `changeFile` have to await applying
the file changes. Other clients can continue using synchronous
`currentSession`.
Change-Id: I0f8d4cc874f485776f611790f6c80fd7e07c8051
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/236041
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-09 18:16:45 +00:00
Danny Tuppeny
4e9244cf25
[analysis_server] Fix error trying to compute ColorPresentations for files outside of analysis roots
...
Fixes https://github.com/Dart-Code/Dart-Code/issues/3864 .
Change-Id: Ibfbcff12393e0944841954225b209c38dd43a79f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/236242
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-09 17:08:04 +00:00
Danny Tuppeny
da5670c677
[analysis_server] Fix end locations of navigation regions for code sample links
...
Fixes https://github.com/Dart-Code/Dart-Code/issues/3867 .
Change-Id: Icdfc93c1b03fdd4c40e3ea4563045d993cb50c32
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/236221
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-09 16:40:25 +00:00
pq
75e03d7875
linter 1.19.2
...
Change-Id: Ied72b70663dee8cb91ebc18204464baa2a9644b8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235720
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2022-03-08 23:34:54 +00:00
Danny Tuppeny
9c0689a887
[analysis_server] Add code snippet for main functions
...
Change-Id: Ie74f92ab321d426897163f7f33b94828c9e0f99a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235240
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-03-08 20:18:04 +00:00
Konstantin Shcheglov
d72934449f
Deprecate 'Resource.parent2', use 'parent' instead.
...
Change-Id: Icf3cefa8061543a3965e1eedab4b57bb6c67c920
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235761
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-07 22:11:23 +00:00
Konstantin Shcheglov
0b7b70b758
Deprecate synchronous methods in AnalysisSession.
...
Change-Id: I9bd3bf2d3d6dbc74ffefde1c06f83e9200b0f552
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235100
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Jonas Termansen <sortie@google.com >
2022-03-07 18:17:41 +00:00
Konstantin Shcheglov
bf40bf4ebb
Move / rewrite a few other analysis domain tests.
...
Change-Id: I4e86f5b9cdb8f84c3e3ed897599157918133ccfd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235580
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-07 17:21:53 +00:00
Konstantin Shcheglov
5f0afa0ac4
Switch _AnalysisDomainTest to PubPackageAnalysisServerTest.
...
Change-Id: I65404b3ff29cd5155ce67e4827f4337aef7183f3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235520
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-06 22:06:23 +00:00
Konstantin Shcheglov
641255b292
Don't suggest from internal 'dart:' libraries.
...
Change-Id: Idb84a248b14b50fb38ad02e420ad48dea70a6f64
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235404
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-04 20:17:40 +00:00
Jaime Wren
b63550cb85
Change reference from .packages to .dart_tool/package_config.json in the analysis server spec_input.html
...
Bug: https://github.com/dart-lang/sdk/issues/48272
Change-Id: Ica02829fbf9309327210e67d059d4606bb58b528
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235282
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Jaime Wren <jwren@google.com >
2022-03-04 00:02:01 +00:00
Sam Rawlins
3e423cdc33
Quick fix for unnecessary_late
...
Change-Id: I2cc2851d150570761e1e8a278b3fef15c2f18056
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235261
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2022-03-03 22:21:00 +00:00
Sam Rawlins
e610c17ddb
Quick fix for no_leading_underscores_for_library_prefixes
...
Change-Id: If1e0235a0704e349cc1aa9e732644cbfe49f2565
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235166
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
2022-03-03 22:05:54 +00:00
Danny Tuppeny
1e9fb81697
[analysis_server] Make CompilationUnit.lineInfo non-nullable
...
Change-Id: Ib628751a14dc3257cf7325432ab20f2bdb9d6f3b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/234290
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-03 06:59:00 +00:00
Konstantin Shcheglov
30f285efa6
Fix an enum rename test after merge.
...
TBR
Change-Id: Ifb379c1beaab977239070c2bb87f3bedf276c770
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/235061
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-03 00:46:49 +00:00
Konstantin Shcheglov
601b5379a8
Tests for hover and enums.
...
Change-Id: I633d6aaf8e0ff425aeb4b461677d6aaff187f85f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/234911
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-02 23:36:31 +00:00
Konstantin Shcheglov
e133fe8102
Tests for type hierarchy and enum.
...
Change-Id: I4992176e8ff1481502364ec3f6dcce28bc2abcde
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/234910
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-02 23:36:03 +00:00
Konstantin Shcheglov
7516925fef
Tests for extract and inline methods for enums.
...
Change-Id: I02da04feb4143c7793f17fe627b4c831c8ce98ce
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/234909
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-03-02 23:28:29 +00:00