Sam Rawlins
4ef2725654
Add an analyzer_testing package
...
We intend to publish and maintain this as a set of testing-related
utilities for the analyzer packages and for analyzer plugins.
Work towards https://github.com/dart-lang/sdk/issues/55660
See the doc: https://docs.google.com/document/d/1jRtd8B1ijPAP6Pz89HRnyIZXw2VMjaZx0vRZTpoNO84/edit?tab=t.0#heading=h.2sz41a544qhi
Change-Id: I2764b1357a932fa955060b26d78038997eaa9536
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/425080
Reviewed-by: Slava Egorov <vegorov@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Paul Berry <paulberry@google.com >
2025-05-02 06:58:49 -07:00
Sigurd Meldgaard
2fe05bd568
Reland "Migrate to use pub workspace"
...
This is a reland of commit b9b77058a9
Original change's description:
> Migrate to use pub workspace
>
> Use `pub get` to generate `.dart_tool/package_config.json` on gclient sync.
>
> All pkg/ (and a few third_party) packages that are developed inside the sdk repo are included in the workspace from the root `pubspec.yaml`.
>
> All dependencies that are pulled in via DEPS are added as path dependencies via `dependency_overrides` in the root `pubspec.yaml`.
>
> Bug: https://github.com/dart-lang/sdk/issues/56220
> Change-Id: I38c12b608c68da54c57821116cf9aa6696936746
> Tested: relies on CQ of existing tests. Should have no effect on functionality
> CoreLibraryReviewExempt: only core library change is adding a `// ignore:` comment. Should have no influence on functionality
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/397164
> Commit-Queue: Sigurd Meldgaard <sigurdm@google.com >
> Reviewed-by: Alexander Thomas <athom@google.com >
Bug: https://github.com/dart-lang/sdk/issues/56220
Change-Id: I29afabade2d2447dea05121cb87ff50bb21a4b76
Cq-Include-Trybots: luci.dart.try:flutter-linux-try,flutter-web-try
Tested: relies on CQ of existing tests. Should have no effect on functionality
CoreLibraryReviewExempt: only core library change is adding a `//
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/415561
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
2025-03-20 06:19:16 -07:00
Sigurd Meldgaard
6c4de1ab7e
Revert "Migrate to use pub workspace"
...
This reverts commit b9b77058a9 .
Revert "Add missing sample pubspec to workspace"
This reverts commit 892ea15ac7 .
These seem to break the engine.
Change-Id: Ieee26deb7928c3869a1b6265326c3ce568ffe731
Tested: this is a revert.
CoreLibraryReviewExempt: this is a revert
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/415582
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
2025-03-14 09:08:20 -07:00
Sigurd Meldgaard
b9b77058a9
Migrate to use pub workspace
...
Use `pub get` to generate `.dart_tool/package_config.json` on gclient sync.
All pkg/ (and a few third_party) packages that are developed inside the sdk repo are included in the workspace from the root `pubspec.yaml`.
All dependencies that are pulled in via DEPS are added as path dependencies via `dependency_overrides` in the root `pubspec.yaml`.
Bug: https://github.com/dart-lang/sdk/issues/56220
Change-Id: I38c12b608c68da54c57821116cf9aa6696936746
Tested: relies on CQ of existing tests. Should have no effect on functionality
CoreLibraryReviewExempt: only core library change is adding a `// ignore:` comment. Should have no influence on functionality
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/397164
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
2025-03-14 05:21:40 -07:00
Sigurd Meldgaard
a9ab52bcbb
Language version bumps for publish_to: none pkgs
...
Also a separate pubspec for the tools/ folder
Extracted from https://dart-review.googlesource.com/c/sdk/+/397164
Change-Id: If49a6ede07e4864d0c0fcb210c04c18c804849df
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/412041
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
2025-02-27 00:48:40 -08:00
Devon Carew
7b13bf7541
[analysis_server] move package:matcher to a dev_dependency
...
Change-Id: Id4ed2ea8c960ca35bb1abbe74fdf2a711baf3c1d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/402586
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2025-01-02 18:41:22 -08:00
Devon Carew
372e84189f
[analysis_server] update package deps
...
Change-Id: Ia824cf11c6212e8d81dd2d6e0f900b95bd367672
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/399462
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2024-12-06 19:28:52 +00:00
pq
2f2cf79664
[server] bump SDK constraint; wildcards FTW!
...
Change-Id: I35b68be178eb5518f12520dfd523162b0eb3428d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/390583
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2024-10-16 21:28:20 +00:00
pq
13d84fea3f
(new) formatter language version-aware migrations
...
(Testing to follow.)
See: https://github.com/dart-lang/sdk/issues/56685
Change-Id: I9da0e3868cd3c873c41e8a19a77fad58b9b8dea0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/386901
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2024-09-26 18:30:41 +00:00
Moritz
4eca2005c9
Switch to new locations of mime and source_map_stack_trace
...
Change-Id: I241ddb82a36daaf299291fd59598e5c8f1893984
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/382385
Reviewed-by: Alexander Aprelev <aam@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Moritz Sümmermann <mosum@google.com >
2024-09-04 06:56:37 +00:00
Danny Tuppeny
da414c2957
[analysis_server] Allow passing a DTD URI to the analysis server so it can provide LSP functionality to DTD clients
...
This adds a new request `dart/connectToDtd` that lets a client pass a DTD URI to the server. The server will connect to DTD and provide a subset of LSP methods (those that are currently available over LSP-Over-Legacy, minus the `connectToDtd` method itself) to DTD clients.
This works for both LSP and Legacy servers, and the shared tests run against both (where for legacy, the `dart/connectToDtd` request uses the LSP-over-Legacy support).
This is not currently behind a flag, however it won't do much on its own because no clients will make this request. Once we're happy the functioanlity is good we can either agree an SDK version number for IDEs to gate calling this method on, or we can expose a flag in server capabilities (and some equiv for legacy) so the client knows the functionality is available.
Change-Id: I911d37745a1b2685249dd88e4b152c3196ba627c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/379303
Commit-Queue: Keerti Parthasarathy <keertip@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Keerti Parthasarathy <keertip@google.com >
2024-08-22 20:43:41 +00:00
Devon Carew
8d6ad53c7e
[pkg/analysis_server] remove use of package:usage
...
Change-Id: I3a18670b6131f4e8c445217f1b302e64a74f591c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365489
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2024-05-07 22:11:29 +00:00
Sam Rawlins
1b400ed68d
DAS plugins: Move CorrectionUtils to analysis_server_plugin
...
* Move the only 3 files from server_plugin to analysis_server_plugin.
* Copy some test infra into analysis_server_plugin. This is temporary,
as we need some shared test infra location.
Change-Id: If2b41d436c9d3051e590f60ae2eb7ab31e529321
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/364161
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2024-04-24 14:12:24 +00:00
Sam Rawlins
3a650f40a8
analysis_server: Introduce analysis_server_shared package
...
With a simple move of two classes, Fix and FixContent.
The class moves are not exactly no-ops. I moved each class into its
own library and made the following changes:
* Start doc comments with third person verbs [1].
* Make `Fix` class **final**.
* Make `FixContext` class **interface**.
[1]: https://dart.dev/effective-dart/documentation#prefer-starting-function-or-method-comments-with-third-person-verbs
Work towards https://github.com/dart-lang/sdk/issues/53402
Cq-Include-Trybots: dart-internal/g3.dart-internal.try:g3-cbuild-try
Change-Id: Ic046b236d634543832825db8746e0abdca5191fe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/355889
Reviewed-by: Alexander Thomas <athom@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2024-03-18 20:54:49 +00:00
Konstantin Shcheglov
5f664f7312
Enable language 3.3 in analyzer/ and analysis_server/.
...
Change-Id: I65a439be99cd4c75dba2fc68340e33b7d0dc8ebe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354341
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2024-02-26 19:05:20 +00:00
Parker Lougheed
984e4b214f
[analysis_server] Resolve TODO in convert_to_switch_expression quick assist
...
I'm looking to make some additions to this assist, but to make review easier and assist my understanding, I combined the logic for determining if a switch statement is supported, and if so, what kind it is.
Change-Id: Ic5c48df82c305c31898dd884178ce78ce7da28f7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/336782
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Auto-Submit: Parker Lougheed <parlough@gmail.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2023-11-17 22:53:26 +00:00
Polina Cherkasova
cd96507b72
Switch from leak_tracker/leak_tracker to leak_tracker/memory_usage.
...
It is relanding of https://dart-review.googlesource.com/c/sdk/+/334143
Contributes to https://github.com/flutter/flutter/issues/135856
We want Flutter to take dependency on leak_tracker. It will be easier to manage in G3 if Flutter and Dart SDK depend on different packages. So, separated memory_usage and switching analyzer to it.
Change-Id: Ic85172bfe28cf070e01f5ff298ee975b25ae6f68
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/335061
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Oleh Prypin <oprypin@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Polina Cherkasova <polinach@google.com >
2023-11-08 20:57:51 +00:00
Oleh Prypin
72195c41bb
Revert "Switch from leak_tracker/leak_tracker to leak_tracker/memory_usage."
...
This reverts commit 64adde8968 .
Reason for revert: package is not ready for use in g3
Original change's description:
> Switch from leak_tracker/leak_tracker to leak_tracker/memory_usage.
>
> Contributes to https://github.com/flutter/flutter/issues/135856
>
> We want Flutter to take dependency on leak_tracker. It will be easier to manage in G3 if Flutter and Dart SDK depend on different packages. So, separated memory_usage and switching analyzer to it.
>
> Change-Id: Ib1a7aae4af8c5dfb84e9f7252319862b0c93a8b2
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/334143
> Reviewed-by: Samuel Rawlins <srawlins@google.com >
> Commit-Queue: Polina Cherkasova <polinach@google.com >
Bug: b/309525596
Change-Id: I02cb1097839e37910e40f38f856230a82abbfe61
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/334462
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com >
Commit-Queue: Oleh Prypin <oprypin@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
2023-11-07 11:07:19 +00:00
Polina Cherkasova
64adde8968
Switch from leak_tracker/leak_tracker to leak_tracker/memory_usage.
...
Contributes to https://github.com/flutter/flutter/issues/135856
We want Flutter to take dependency on leak_tracker. It will be easier to manage in G3 if Flutter and Dart SDK depend on different packages. So, separated memory_usage and switching analyzer to it.
Change-Id: Ib1a7aae4af8c5dfb84e9f7252319862b0c93a8b2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/334143
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Polina Cherkasova <polinach@google.com >
2023-11-06 23:06:11 +00:00
Alexander Thomas
49f4c5f94a
[analysis_server] Move language server protocol to third_party
...
Bug: b/286184681
Change-Id: Iabb9070e354f85d29bb94dee4bdd52a0cf664c94
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/326643
Commit-Queue: Alexander Thomas <athom@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Devon Carew <devoncarew@google.com >
2023-10-10 07:48:30 +00:00
Konstantin Shcheglov
224a5c7d32
Enable language 3.2 for analysis_server/ and linter/.
...
Change-Id: Ifba960f2947a6c900c81fc794bfc5ed288cc2e97
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/323700
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2023-08-31 17:38:39 +00:00
William Hesse
ccc7ebcfd9
[linter] Remove linter from DEPS
...
The linter package is now in pkg/linter, not checked out into
third_party.
Bug: https://github.com/dart-lang/linter/issues/4411
Change-Id: Ia7cc11b1d2db05dcc38d40b895ac20845f6116e9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/322920
Reviewed-by: Jonas Termansen <sortie@google.com >
Commit-Queue: William Hesse <whesse@google.com >
2023-08-28 16:01:13 +00:00
Polina Cherkasova
c192336dde
Add auto-snapshotting and usage reporting.
...
Change-Id: I84b48cc750638ab3bcc138f2a0425442559e6d54
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/304212
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com >
Commit-Queue: Polina Cherkasova <polinach@google.com >
Reviewed-by: Ilya Yanok <yanok@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
2023-05-22 18:00:26 +00:00
Ilya Yanok
0c5e1e8e48
Revert "Add auto-snapshotting and usage reporting."
...
This reverts commit 5fa6c5ed2a .
Reason for revert: breaks G3, we need to update //third_party/dart/leak_tracker first
Original change's description:
> Add auto-snapshotting and usage reporting.
>
> First attempt merged without passing bots and was rolled back: https://dart-review.googlesource.com/c/sdk/+/300862
>
> Change-Id: I782bf4d92394055e1f60a4275b5045e3622e239f
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/304101
> Reviewed-by: Samuel Rawlins <srawlins@google.com >
> Commit-Queue: Polina Cherkasova <polinach@google.com >
Change-Id: I8f1643e20f8d134cbf917dc43731798a1234cc2b
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/304181
Commit-Queue: Ilya Yanok <yanok@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com >
2023-05-17 22:03:17 +00:00
Polina Cherkasova
5fa6c5ed2a
Add auto-snapshotting and usage reporting.
...
First attempt merged without passing bots and was rolled back: https://dart-review.googlesource.com/c/sdk/+/300862
Change-Id: I782bf4d92394055e1f60a4275b5045e3622e239f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/304101
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Polina Cherkasova <polinach@google.com >
2023-05-17 17:56:47 +00:00
Daco Harkes
dba0758120
Revert "Add auto-snapshotting and analytics for memory usage."
...
This reverts commit 5f1e7ade45 .
Reason for revert: bots are failing
Original change's description:
> Add auto-snapshotting and analytics for memory usage.
>
> See video linked to issue: https://github.com/flutter/devtools/issues/5606
>
> Change-Id: I9f22031871e30bc7160e2c49b0423fb64df62223
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/300862
> Reviewed-by: Samuel Rawlins <srawlins@google.com >
> Reviewed-by: Jacob Richman <jacobr@google.com >
Change-Id: I54cb3943230ab1229cc8b2c9df40e9c71765df19
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/303881
Auto-Submit: Polina Cherkasova <polinach@google.com >
Reviewed-by: Polina Cherkasova <polinach@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Daco Harkes <dacoharkes@google.com >
2023-05-17 07:43:26 +00:00
Polina Cherkasova
5f1e7ade45
Add auto-snapshotting and analytics for memory usage.
...
See video linked to issue: https://github.com/flutter/devtools/issues/5606
Change-Id: I9f22031871e30bc7160e2c49b0423fb64df62223
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/300862
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Jacob Richman <jacobr@google.com >
2023-05-16 20:15:12 +00:00
Paul Berry
3516c86ae5
Add dependency overrides for pkg/analysis_server
...
These dependency overrides prevent pub from getting confused about the
fact that our SDK development is in a mono-repo; that in turn will
allow unit tests to be run from inside vscode using the standard test
integration (see https://github.com/Dart-Code/Dart-Code/issues/4502 ).
Change-Id: I8ea709984b03927e67f119d147338203d7e80811
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/296980
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Paul Berry <paulberry@google.com >
2023-04-21 18:43:33 +00:00
Konstantin Shcheglov
ef79407d04
Enable language 3.0 for analysis_server/.
...
Change-Id: I6237a9ecfa95438ad1a5959183722cf95fe1cbba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/293740
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2023-04-06 00:27:09 +00:00
Sam Rawlins
3c633384d3
Add a script which generates a testing package
...
This script has a decent description at the top, and decent comments
throughout.
Change-Id: I455c0e7b5354563750636e31a53db2caacdbf687
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286700
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2023-03-07 18:54:28 +00:00
Brian Wilkerson
a4a255e1a9
Reland: Convert the AnalyticsManager to use the analytics package
...
Change-Id: Id3fd3fa172a77fe081ad3f718ba2c893dfd550e4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286600
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Keerti Parthasarathy <keertip@google.com >
2023-03-06 17:24:17 +00:00
Brian Wilkerson
07c5db4d53
Revert "Convert the AnalyticsManager to use the analytics package"
...
This reverts commit 0b8986902e .
Reason for revert: Breaks downstream systems
Original change's description:
> Convert the AnalyticsManager to use the analytics package
>
> Change-Id: Id1822668e0ed7e12e88e990fa02247616b2e54e6
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/285400
> Reviewed-by: Elias Yishak <eliasyishak@google.com >
> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
> Reviewed-by: Keerti Parthasarathy <keertip@google.com >
Change-Id: Ief9d611cf1259ae460c38fadb299f9e09d74d0f3
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286242
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com >
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com >
Auto-Submit: Brian Wilkerson <brianwilkerson@google.com >
2023-03-01 19:37:16 +00:00
Brian Wilkerson
0b8986902e
Convert the AnalyticsManager to use the analytics package
...
Change-Id: Id1822668e0ed7e12e88e990fa02247616b2e54e6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/285400
Reviewed-by: Elias Yishak <eliasyishak@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Keerti Parthasarathy <keertip@google.com >
2023-03-01 17:54:52 +00:00
Jens Johansen
af0e2dd01e
[analyzer] Create report from web interface
...
This CL adds a page "Collect Report" on the
"Analysis Server Diagnostics" website, available from the top right,
between "Diagnostics" and "Feedback".
The created json report includes most data from the subpages of the
"Diagnostics" page as well as data fetched from the observatory
protocol which, if not already enabled, will be enabled while the report
is created.
Change-Id: Iec545fb8caf642088c47ccfc98f005598a462ada
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279093
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Jens Johansen <jensj@google.com >
2023-01-20 11:42:29 +00:00
Sam Rawlins
166c54b4d9
analyzer: Mark implicit-casts and implicit-dynamic as deprecated
...
Also add a fix which replaces 'implicit-casts' with 'strict-casts' and
a fix which replaces 'implicit-dynamic' with 'strict-raw-types'.
Fixes #47902
This reverts 5050f31b29
Change-Id: Icd156b0dda78a50ed28272ddef7460018f511cc2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/276766
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2023-01-03 17:30:28 +00:00
Danny Tuppeny
5b1ca7eef1
[analysis_server] Remove string_scanner dependency from TestCode
...
Change-Id: Ia31efb8b5fede64d91ed1669219d11014afe25c8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/264863
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
2022-10-19 16:28:25 +00:00
Danny Tuppeny
64a2e5c114
[analysis_server] Add a new mechanism for marking up test code with regions/positions
...
Change-Id: I45ca24d2360f7201a563145a19c5291f83b9465c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/259424
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2022-09-22 16:33:18 +00:00
Devon Carew
057d0baaf9
Add a lightweight parser for the analyzer spec (remove sdk deps on package:html).
...
Change-Id: Ia8776c8aea845a7dde089d5ac9f3dab82e984f4f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/249721
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2022-06-25 00:34:40 +00:00
Devon Carew
295898343a
[pkg/analysis_server] remove some references to package:html
...
Change-Id: I5995c1281103e632bd98e180929cb170b2a87ef2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/248180
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2022-06-13 20:00:28 +00:00
Devon Carew
f7c46f145c
[pkg] prefer 'any' deps for package dev dependencies
...
Tested: CI validation
Change-Id: If65cc156130a65ffe00c6f1660ac320e2921afae
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/246053
Commit-Queue: Devon Carew <devoncarew@google.com >
Reviewed-by: Nate Bosch <nbosch@google.com >
2022-05-27 01:34:59 +00:00
Nate Bosch
6ebd2633cd
Use any deps for all unpublished packages
...
It should not be necessary to ever run `pub get` for a package which is
not published. All packages used in the SDK are controlled by a single
package config, so it's not necessary to declare versions or paths for
any packages.
Remove all dependency overrides.
R=devoncarew@google.com
Change-Id: Icb328813b471f35ee4c99995f4e90aac4d8ed438
Tested: Covered by existing static analysis.
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244767
Commit-Queue: Nate Bosch <nbosch@google.com >
Reviewed-by: Alexander Aprelev <aam@google.com >
Reviewed-by: Devon Carew <devoncarew@google.com >
2022-05-17 01:22:25 +00:00
Sam Rawlins
11a01c8fad
Add a progress bar to completion_metrics
...
Progress bar largely taken from
https://github.com/dart-lang/sdk/blob/main/pkg/nnbd_migration/lib/src/utilities/progress_bar.dart
If there's a good common place (in package:analyzer?) to put this,
I'd be happy to do so.
Change-Id: Ic64ac98d8a8f5ae1cc036932364f37f10b837055
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241623
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2022-04-19 20:40:19 +00:00
Konstantin Shcheglov
d422b63758
Switch analysis_server/ to 2.17
...
We don't publish it, so we can use the latest language version, as
long as it works with the SDK and inside google3.
Change-Id: I60f7fb4dcedc4205ed95f8c19d5d335449f3cbe0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240800
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-04-12 23:08:42 +00:00
pq
16b436151a
migrate server to recommended lints
...
See: https://github.com/dart-lang/sdk/issues/48785
Change-Id: I1bec40cc0b52e5df5f07c35ec993e08c56a59cbe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240907
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2022-04-12 13:34:12 +00:00
Konstantin Shcheglov
1377e006fb
Switch analysis_server to 2.15
...
So, we can use constructor tear-offs :-)
Change-Id: Ib819da7715e49496b01defa9dc3837bd70019134
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240642
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-04-08 06:29:48 +00:00
Samuel Rawlins
5050f31b29
Revert "analyzer: Mark implicit-casts and implicit-dynamic as deprecated"
...
This reverts commit 6a54fdd46e .
Reason for revert: broke flutter-analyze
Original change's description:
> analyzer: Mark implicit-casts and implicit-dynamic as deprecated
>
> Also add a fix which replaces 'implicit-casts' with 'strict-casts' and
> a fix which replaces 'implicit-dynamic' with 'strict-raw-types'.
>
> Fixes https://github.com/dart-lang/sdk/issues/47902
>
> Change-Id: I293c3c1fd671ac85c12f9c050465b4d77632f241
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/224800
> Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
> Reviewed-by: Samuel Rawlins <srawlins@google.com >
> Commit-Queue: Samuel Rawlins <srawlins@google.com >
# Not skipping CQ checks because original CL landed > 1 day ago.
Change-Id: Ib2e9492716d3ff6da4fa4e1c64fd658451b16d88
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/239008
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2022-03-27 16:56:01 +00:00
Sam Rawlins
6a54fdd46e
analyzer: Mark implicit-casts and implicit-dynamic as deprecated
...
Also add a fix which replaces 'implicit-casts' with 'strict-casts' and
a fix which replaces 'implicit-dynamic' with 'strict-raw-types'.
Fixes https://github.com/dart-lang/sdk/issues/47902
Change-Id: I293c3c1fd671ac85c12f9c050465b4d77632f241
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/224800
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2022-03-25 14:58:50 +00:00
Devon Carew
1a72a4ca8f
[analysis server] remove the dep on package:cli_util
...
Change-Id: I9a3b7b8c23dc324ad62f0d9b456e608d365133c0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/232423
Auto-Submit: Devon Carew <devoncarew@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2022-02-10 21:27:34 +00:00
Konstantin Shcheglov
8d8da75060
Stop using package:intl, but keep in DEPS.
...
Initial: https://dart-review.googlesource.com/c/sdk/+/224660
Reverted: https://dart-review.googlesource.com/c/sdk/+/225260
Change-Id: I66ef3126997c4f564e4181bbe185a1f64abf43e8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/225324
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2021-12-22 01:17:04 +00:00
Konstantin Shcheglov
73cfe523e0
Revert "Stop using package:intl, remove it from DEPS."
...
This reverts commit b0d7c56e84 .
Reason for revert: breaks Golem, we need these benchmarks.
Original change's description:
> Stop using package:intl, remove it from DEPS.
>
> Change-Id: I7a6c036f7cd2c5ac64b0ab5a8b87bed1b9f34034
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/224660
> Reviewed-by: Samuel Rawlins <srawlins@google.com >
> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
> Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
TBR=scheglov@google.com ,brianwilkerson@google.com ,srawlins@google.com
Change-Id: I39d4a2c773063da4dfa75404b64987f85dbcf764
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/225260
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2021-12-21 19:08:24 +00:00