pub repository
mirror.p-hatan.iranalyzer_plugin
0.11.1A framework and support code for building plugins for the analysis server.
Readme
A framework for building plugins for the analysis server.
Usage
Note: The plugin support is not currently available for general use.
Plugins are written in Dart and are run in the same VM as the analysis server. The analysis server runs each plugin in a separate isolate and communicates with the plugin using a plugin API. This API is similar to the API used by the analysis server to communicate with clients.
Plugins are automatically discovered and run by the analysis server.
This package contains support code to make it easier to write a plugin. There is a tutorial describing how to use the support in this package.
Support
Post issues and feature requests on the issue tracker.
Questions and discussions are welcome at the Dart Analyzer Discussion Group.
License
See the LICENSE file.
Changelog
0.11.1
- Call
analyzeFilesfromhandleAffectedFilesonly for files that are analyzed in this analysis context.
0.11.0
- Using
AnalysisContextCollectionandAnalysisContextfor analysis.
0.10.0
- Support version
4.xof theanalyzerpackage
0.9.0
- Support version
3.xof theanalyzerpackage
0.8.0
- Require SDK
2.14to useObject.hash(). - Require
yaml 3.1.0to userecover.
0.7.0
- Support version
2.xof theanalyzerpackage
0.6.0
- Bug fixes to the protocol.
0.5.0
- Changed the support version range of the analyzer to
^1.3.0. - Removed
Plugin.fileContentOverlay, insteadPlugin.resourceProvideris nowOverlayResourceProvider, andanalysis.updateContentupdates it. - Removed deprecated
DartChangeBuilderandDartChangeBuilderImpl. - Removed deprecated
ChangeBuilder.addFileEdit(). - Stable null safety release.
- Updated dependencies to null safe releases.
0.4.0
- Deprecated the class
DartChangeBuilderand enhancedChangeBuilderto be the replacement for it. - Deprecated the method
ChangeBuilder.addFileEditand introducedChangeBuilder.addDartFileEditandChangeBuilder.addGenericFileEditto be the replacements for it. - Changed the supported version range of the analyzer to
>=0.41.0 <0.42.0.
0.3.0
- Removed deprecated
Plugin.getResolveResult. UsegetResolvedUnitResult.
0.2.5
- Change supported analyzer version to
^0.39.12
0.2.4
- Exposed method
AnalyzerConverter.locationFromElement(was previously private).
0.2.3
- Added class
Relevance. - Removed
FixKind.name, replaced withFixKind.id. Technically this is a breaking change but we believe that in practice it is benign, sinceFixKind.namewas only used for debugging. - Added function
computeDartNavigation. - Note: never published (had problematic imports of package:analysis_server).
0.2.2
- Change supported analyzer version to
^0.39.0
0.2.1
- Bump maximum supported version of the analyzer to
<0.39.0. - Bug fixes: #37916, #38326.
0.2.0
- Change
DartEditBuilder.writeOverride()to acceptExecutableElementinstead ofFunctionType.
0.1.0
- Support the latest
pkg:analyzer. - remove the declared type of generated setters
0.0.1-alpha.8
- Support the latest
pkg:analyzer.
0.0.1-alpha.7
- Remove CompletionSuggestion.elementUri, replaced with AvailableSuggestionSet.
- Remove 'importUri' from CompletionSuggestion.
- Include type parameters into suggested code completions.
0.0.1-alpha.4
- Upgrade the Dart SDK version constraint
0.0.1
- Initial version
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add analyzer_pluginpubspec.yaml
name: analyzer_plugin
description: A framework and support code for building plugins for the analysis server.
version: 0.11.1
repository: https://github.com/dart-lang/sdk/tree/main/pkg/analyzer_plugin
environment:
sdk: '>=2.17.0 <3.0.0'
dependencies:
analyzer: ^4.1.0
collection: ^1.15.0
dart_style: ^2.2.1
pub_semver: ^2.0.0
yaml: ^3.1.0
# We use 'any' version constraints here as we get our package versions from
# the dart-lang/sdk repo's DEPS file. Note that this is a special case; the
# best practice for packages is to specify their compatible version ranges.
# See also https://dart.dev/tools/pub/dependencies.
dev_dependencies:
analyzer_utilities: any
lints: any
meta: any
path: any
test_reflective_loader: any
test: any
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.0.1-alpha.0 | 2017-08-25T21:16:46.985337Z | Download | 468dc39f0cbe559b78be7bebbdda79596ff75b2c45f74bb6168094f138f60bd1 |
| 0.0.1-alpha.1 | 2018-03-12T18:25:37.502521Z | Download | 2a7635dcb0028132d1943e124655be2dffb3b3c4c54bca0eefa377cd38183405 |
| 0.0.1-alpha.2 | 2018-03-26T16:37:15.807026Z | Download | 00aec398f50008ae2c710586d40cd6481fbb575cdd3ccaa74243f0fc112cc788 |
| 0.0.1-alpha.3 | 2018-05-30T20:22:34.781694Z | Download | 48c1984e70ee3d3e487729b19f5e884d3644fab4ae0b577e2cdc3e6fd98dc75a |
| 0.0.1-alpha.4 | 2018-07-23T16:53:18.293215Z | Download | 2af696195f5081ab9ff5e42fe082150bd70afe4d1b13b19769e915f4a3832276 |
| 0.0.1-alpha.5 | 2018-10-22T18:58:43.797676Z | Download | 78ed65ec7f1eb6dff1e97c4673250693d850eb6bdcda1d643d366e2c04a8469f |
| 0.0.1-alpha.6 | 2019-01-18T18:19:56.469096Z | Download | 8d38a67b816d631edc38e074f1e94368b2a1b188484c1671fe83578b2f6235b0 |
| 0.0.1-alpha.7 | 2019-03-06T20:29:19.355072Z | Download | 18d909fe03415f0ffb5c6cf3fd08736465cbc218577635492d513f755c9e45fa |
| 0.0.1-alpha.8 | 2019-04-24T03:25:44.056683Z | Download | 06ebde926c28405ee89001fb023837c021ae3aa11dce3f34e6224734f495db7b |
| 0.1.0 | 2019-07-08T19:47:36.195419Z | Download | 3b6e6b3b7bfa93aa001dbb8c3b7773f6bf3fcb1c822bfc7ebb7c574433f02583 |
| 0.2.1 | 2019-10-09T21:56:25.850451Z | Download | 22c3a221a80bf4ed0b1c0533b50e8aaf8d671307b143d56e9cb88f5066a787aa |
| 0.2.2 | 2020-05-28T20:38:00.736115Z | Download | 4261a723b378fa5f7f79003ef001ea65ee914369ecc31e5c09b1309217a5dd58 |
| 0.2.4 | 2020-05-29T23:39:26.788917Z | Download | 5413c05c8cc1b37cb666880d2f77a5261012133417f51a91faaa905ca5bf01a7 |
| 0.2.5 | 2020-07-07T20:42:59.937464Z | Download | 86e371c906b17de7377b176ceb6d9f8a0ed4b5291b64e5a911641a84f7ff1ca6 |
| 0.3.0 | 2020-07-11T17:05:11.889059Z | Download | 0a53f16bb493298ea9e9b5cece8d8a6252d48f6993aa48066c4fb5b6aeed6dcb |
| 0.4.0 | 2020-12-03T17:49:17.951296Z | Download | 034fce841d3cd19ed9106598b631123ba3834bb764a8f829a250e0bddd27a648 |
| 0.5.0 | 2021-03-30T23:13:00.409661Z | Download | 381d766ef8487027872a2684dccb37d35ecea8f394b7828f4d9227da22d528fb |
| 0.6.0 | 2021-04-09T00:46:25.541827Z | Download | 0f2c3b25e3642158e7074ac6eca541508f3cc3ef8b3b36db88289827b6bec6c2 |
| 0.7.0 | 2021-07-29T17:36:05.203525Z | Download | b932dc08670b2749e0f17f8377012c6bca227600db4f61e6fa4e13402197b67d |
| 0.8.0 | 2021-10-04T05:04:26.563247Z | Download | f25ddec490a021485c9d9cd02ded1563962bc4c5193f15560d8a63a93c0d0c60 |
| 0.9.0 | 2021-12-23T20:46:20.751170Z | Download | 7e72f3049ec40d04fdfb11be6f9afb9737d1240a60ae811898ffdd85d52be447 |
| 0.10.0 | 2022-05-12T19:14:27.922043Z | Download | 0c284758213de797488b570a8e0feaa6546b0e8dd189be6128d49bb0413d021a |
| 0.11.0 | 2022-06-22T00:21:08.864317Z | Download | 82ef414856438c4d6d42ed8712e3397ddaf22680c30647f881bb8adcc3285c37 |
| 0.11.1 | 2022-07-26T04:48:06.653178Z | Download | 02b0046b8b9a4c97a238c66f70acd22eec4263dfc8d9205f9dab5cc8630c5a6f |
| 0.11.2 | 2022-09-26T16:23:33.889295Z | Download | c1d5f167683de03d5ab6c3b53fc9aeefc5d59476e7810ba7bbddff50c6f4392d |
| 0.11.3 | 2023-08-03T05:32:22.403825Z | Download | 9661b30b13a685efaee9f02e5d01ed9f2b423bd889d28a304d02d704aee69161 |
| 0.12.0 | 2024-12-03T19:13:12.359796Z | Download | 1d460d14e3c2ae36dc2b32cef847c4479198cf87704f63c3c3c8150ee50c3916 |
| 0.13.0 | 2025-01-22T15:34:35.664725Z | Download | b3075265c5ab222f8b3188342dcb50b476286394a40323e85d1fa725035d40a4 |
| 0.13.1 | 2025-05-27T17:36:19.107377Z | Download | ee188b6df6c85f1441497c7171c84f1392affadc0384f71089cb10a3bc508cef |
| 0.13.2 | 2025-06-23T17:53:32.652904Z | Download | 15195a59a9a4026b984ded0f13f36e143be239734d0d7c57b8cf5508584d27b1 |
| 0.13.4 | 2025-06-25T22:13:46.111967Z | Download | a5ab7590c27b779f3d4de67f31c4109dbe13dd7339f86461a6f2a8ab2594d8ce |
| 0.13.5 | 2025-07-21T19:48:53.811222Z | Download | c2befc42a121f66a4e7b6bf2892e508276bd41f5735905bfea08ae8ee76989a4 |
| 0.13.6 | 2025-08-07T23:46:27.405714Z | Download | 825071d553c4aef2252196d46a665fbd8e0cb06de07725f25d1b29bd18d65fff |
| 0.13.7 | 2025-08-13T20:22:51.334908Z | Download | dd574a0ab77de88b7d9c12bc4b626109a5ca9078216a79041a5c24c3a1bd103c |
| 0.13.8 | 2025-09-19T20:27:20.341863Z | Download | 7c56a95eebc84db60b6dfa5a545e09df95f2ffc4453a3ef2cec59a08c7d70e56 |
| 0.13.9 | 2025-10-10T20:54:03.122705Z | Download | de43608896f4207d59840cee55c6d39eebacabd599f9f6aaa4850400c72279fe |
| 0.13.10 | 2025-10-21T00:20:09.613046Z | Download | 08cfefa90b4f4dd3b447bda831cecf644029f9f8e22820f6ee310213ebe2dd53 |
| 0.13.11 | 2025-10-23T20:50:51.386858Z | Download | 6645a029da947ffd823d98118f385d4bd26b54eb069c006b22e0b94e451814b5 |
| 0.14.0 | 2026-01-07T19:27:43.283652Z | Download | 07408261549db7bbf8ce96f9ff1c670bfce5f510c00ded591c0c5b3d807a25a8 |
| 0.14.1 | 2026-01-16T23:22:46.286842Z | Download | 7df504f0c9d6891bacc9f73a5a8c5f6fe4fc49c90ec8e3379916372906ba0b32 |
| 0.14.2 | 2026-01-30T17:38:50.796639Z | Download | 9cc40c0ff888cc5d1b306682861545137dc433c29529dbdf0d3a61176eb62b7a |
| 0.14.3 | 2026-02-17T17:51:46.010761Z | Download | 383e9d91be2ae8ab4a423656f1b39152d2ac5aaa88051d4bc178f89d071a90e0 |
| 0.14.4 | 2026-02-21T17:34:15.259335Z | Download | a886aaa94fb128ffe9cf5ee2495d9ef42ef129fe2e265b84b8820987ca15f4cd |
| 0.14.5 | 2026-02-27T18:53:42.461797Z | Download | 06d68a8c9e7302fa44c45aba77d792b6926430a47e0cf82abf6b90436a70d9f4 |
| 0.14.7 | 2026-03-17T02:45:03.426599Z | Download | 886f612deaa64afaa28ba7bcf8d54e1b6d34a269a71a3761125388a78e52551b |
| 0.14.8 | 2026-04-08T17:59:27.616438Z | Download | 0057a98d64d7bb872b0c87dff6e73d2c2d80c77156e7a03f127a26f8aa240649 |
| 0.14.9 | 2026-04-22T18:40:05.473368Z | Download | 9a81dc36f7f71890d7cf83960a3a7df1e6c9a24035f98eb848e91ad48b1d21c6 |
| 0.14.10 | 2026-06-04T18:23:39.402190Z | Download | 30f245bf7bbf194ca6033a9fb1f69cd3d661f4a1b9fcc1a0faba6277980da420 |
| 0.14.11 | 2026-06-10T17:54:25.762730Z | Download | a1a78c7d8f023ee6b2609fe7efe1c5a147ae6aa4cfde22864efa81898e295d73 |
| 0.14.12 | 2026-06-11T18:08:20.842059Z | Download | c2a75baf1657171cc7872db96a12b07e385873cf7a73f2b4f7638e9d0701ee53 |
| 0.14.13 | 2026-06-18T00:45:02.704547Z | Download | a43d6463a4411039ab6e43c02a257b784511b81d3ee923243f5242138a5772c3 |
| 0.14.14 | 2026-07-13T15:30:10.804164Z | Download | 8c988c96836e59db019930c603dd1493797a7aaf97ba71469ea13724602be4dd |
| 0.14.15 | 2026-08-31T19:28:46.697164Z | Download | 30cd04ad5e90bee9f2ab77f55e43cd05221271b1942c5c4b36b9da56cf83b2f0 |
| 0.14.16 | 2026-09-01T16:13:58.948409Z | Download | 521fbb02dada7d99d0fc6d10e4b501a07ae1d39ff2a850afbd0ec2279fb81f5c |
| 0.14.17 | 2026-09-11T16:17:16.359049Z | Download | 9a3518eb84e8e26665874d9867534961d855493e9c5eb0eb55cbd46edd995529 |
| 0.14.18 | 2026-10-06T17:32:41.641222Z | Download | 2c59e6fba4971dc9ece97acd55b4f95b67a98e6ae0a55bff6f9dfc2bb59e8b1a |
| 0.14.19 | 2026-10-20T22:49:05.936995Z | Download | d218f0916ff564cfd9dd032d11e5a990059cb66f88cc741ec6e5e55abdebefcc |
Dependencies
analyzer "^4.1.0"
collection "^1.15.0"
dart_style "^2.2.1"
pub_semver "^2.0.0"
yaml "^3.1.0"