p-hatan/ mirror

pub repository

mirror.p-hatan.ir

analyzer_plugin

0.4.0

A framework and support code for building plugins for the analysis server.

Download archive

Readme

analyzer_plugin

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.4.0

  • Deprecated the class DartChangeBuilder and enhanced ChangeBuilder to be the replacement for it.
  • Deprecated the method ChangeBuilder.addFileEdit and introduced ChangeBuilder.addDartFileEdit and ChangeBuilder.addGenericFileEdit to be the replacements for it.
  • Changed the support version range of the analyzer to >=0.41.0 <0.42.0.

0.3.0

  • Removed deprecated Plugin.getResolveResult. Use getResolvedUnitResult.

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 with FixKind.id. Technically this is a breaking change but we believe that in practice it is benign, since FixKind.name was 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 accept ExecutableElement instead of FunctionType.

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_plugin
pubspec.yaml
name: analyzer_plugin
description: A framework and support code for building plugins for the analysis server.
version: 0.4.0
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/dart-lang/sdk/tree/master/pkg/analyzer_plugin

environment:
  sdk: '>=2.9.0 <3.0.0'

dependencies:
  analyzer: '>=0.41.0 <0.42.0'
  dart_style: '^1.2.0'
  meta: ^1.2.3
  pub_semver: '^1.3.2'

dev_dependencies:
  analyzer_utilities:
    path: ../analyzer_utilities
  html: '>=0.13.1 <0.15.0'
  path: '^1.4.1'
  test_reflective_loader: ^0.1.8
  test: ^1.0.0

Version history

VersionPublishedArchiveSHA-256
0.0.1-alpha.02017-08-25T21:16:46.985337ZDownload468dc39f0cbe559b78be7bebbdda79596ff75b2c45f74bb6168094f138f60bd1
0.0.1-alpha.12018-03-12T18:25:37.502521ZDownload2a7635dcb0028132d1943e124655be2dffb3b3c4c54bca0eefa377cd38183405
0.0.1-alpha.22018-03-26T16:37:15.807026ZDownload00aec398f50008ae2c710586d40cd6481fbb575cdd3ccaa74243f0fc112cc788
0.0.1-alpha.32018-05-30T20:22:34.781694ZDownload48c1984e70ee3d3e487729b19f5e884d3644fab4ae0b577e2cdc3e6fd98dc75a
0.0.1-alpha.42018-07-23T16:53:18.293215ZDownload2af696195f5081ab9ff5e42fe082150bd70afe4d1b13b19769e915f4a3832276
0.0.1-alpha.52018-10-22T18:58:43.797676ZDownload78ed65ec7f1eb6dff1e97c4673250693d850eb6bdcda1d643d366e2c04a8469f
0.0.1-alpha.62019-01-18T18:19:56.469096ZDownload8d38a67b816d631edc38e074f1e94368b2a1b188484c1671fe83578b2f6235b0
0.0.1-alpha.72019-03-06T20:29:19.355072ZDownload18d909fe03415f0ffb5c6cf3fd08736465cbc218577635492d513f755c9e45fa
0.0.1-alpha.82019-04-24T03:25:44.056683ZDownload06ebde926c28405ee89001fb023837c021ae3aa11dce3f34e6224734f495db7b
0.1.02019-07-08T19:47:36.195419ZDownload3b6e6b3b7bfa93aa001dbb8c3b7773f6bf3fcb1c822bfc7ebb7c574433f02583
0.2.12019-10-09T21:56:25.850451ZDownload22c3a221a80bf4ed0b1c0533b50e8aaf8d671307b143d56e9cb88f5066a787aa
0.2.22020-05-28T20:38:00.736115ZDownload4261a723b378fa5f7f79003ef001ea65ee914369ecc31e5c09b1309217a5dd58
0.2.42020-05-29T23:39:26.788917ZDownload5413c05c8cc1b37cb666880d2f77a5261012133417f51a91faaa905ca5bf01a7
0.2.52020-07-07T20:42:59.937464ZDownload86e371c906b17de7377b176ceb6d9f8a0ed4b5291b64e5a911641a84f7ff1ca6
0.3.02020-07-11T17:05:11.889059ZDownload0a53f16bb493298ea9e9b5cece8d8a6252d48f6993aa48066c4fb5b6aeed6dcb
0.4.02020-12-03T17:49:17.951296ZDownload034fce841d3cd19ed9106598b631123ba3834bb764a8f829a250e0bddd27a648
0.5.02021-03-30T23:13:00.409661ZDownload381d766ef8487027872a2684dccb37d35ecea8f394b7828f4d9227da22d528fb
0.6.02021-04-09T00:46:25.541827ZDownload0f2c3b25e3642158e7074ac6eca541508f3cc3ef8b3b36db88289827b6bec6c2
0.7.02021-07-29T17:36:05.203525ZDownloadb932dc08670b2749e0f17f8377012c6bca227600db4f61e6fa4e13402197b67d
0.8.02021-10-04T05:04:26.563247ZDownloadf25ddec490a021485c9d9cd02ded1563962bc4c5193f15560d8a63a93c0d0c60
0.9.02021-12-23T20:46:20.751170ZDownload7e72f3049ec40d04fdfb11be6f9afb9737d1240a60ae811898ffdd85d52be447
0.10.02022-05-12T19:14:27.922043ZDownload0c284758213de797488b570a8e0feaa6546b0e8dd189be6128d49bb0413d021a
0.11.02022-06-22T00:21:08.864317ZDownload82ef414856438c4d6d42ed8712e3397ddaf22680c30647f881bb8adcc3285c37
0.11.12022-07-26T04:48:06.653178ZDownload02b0046b8b9a4c97a238c66f70acd22eec4263dfc8d9205f9dab5cc8630c5a6f
0.11.22022-09-26T16:23:33.889295ZDownloadc1d5f167683de03d5ab6c3b53fc9aeefc5d59476e7810ba7bbddff50c6f4392d
0.11.32023-08-03T05:32:22.403825ZDownload9661b30b13a685efaee9f02e5d01ed9f2b423bd889d28a304d02d704aee69161
0.12.02024-12-03T19:13:12.359796ZDownload1d460d14e3c2ae36dc2b32cef847c4479198cf87704f63c3c3c8150ee50c3916
0.13.02025-01-22T15:34:35.664725ZDownloadb3075265c5ab222f8b3188342dcb50b476286394a40323e85d1fa725035d40a4
0.13.12025-05-27T17:36:19.107377ZDownloadee188b6df6c85f1441497c7171c84f1392affadc0384f71089cb10a3bc508cef
0.13.22025-06-23T17:53:32.652904ZDownload15195a59a9a4026b984ded0f13f36e143be239734d0d7c57b8cf5508584d27b1
0.13.42025-06-25T22:13:46.111967ZDownloada5ab7590c27b779f3d4de67f31c4109dbe13dd7339f86461a6f2a8ab2594d8ce
0.13.52025-07-21T19:48:53.811222ZDownloadc2befc42a121f66a4e7b6bf2892e508276bd41f5735905bfea08ae8ee76989a4
0.13.62025-08-07T23:46:27.405714ZDownload825071d553c4aef2252196d46a665fbd8e0cb06de07725f25d1b29bd18d65fff
0.13.72025-08-13T20:22:51.334908ZDownloaddd574a0ab77de88b7d9c12bc4b626109a5ca9078216a79041a5c24c3a1bd103c
0.13.82025-09-19T20:27:20.341863ZDownload7c56a95eebc84db60b6dfa5a545e09df95f2ffc4453a3ef2cec59a08c7d70e56
0.13.92025-10-10T20:54:03.122705ZDownloadde43608896f4207d59840cee55c6d39eebacabd599f9f6aaa4850400c72279fe
0.13.102025-10-21T00:20:09.613046ZDownload08cfefa90b4f4dd3b447bda831cecf644029f9f8e22820f6ee310213ebe2dd53
0.13.112025-10-23T20:50:51.386858ZDownload6645a029da947ffd823d98118f385d4bd26b54eb069c006b22e0b94e451814b5
0.14.02026-01-07T19:27:43.283652ZDownload07408261549db7bbf8ce96f9ff1c670bfce5f510c00ded591c0c5b3d807a25a8
0.14.12026-01-16T23:22:46.286842ZDownload7df504f0c9d6891bacc9f73a5a8c5f6fe4fc49c90ec8e3379916372906ba0b32
0.14.22026-01-30T17:38:50.796639ZDownload9cc40c0ff888cc5d1b306682861545137dc433c29529dbdf0d3a61176eb62b7a
0.14.32026-02-17T17:51:46.010761ZDownload383e9d91be2ae8ab4a423656f1b39152d2ac5aaa88051d4bc178f89d071a90e0
0.14.42026-02-21T17:34:15.259335ZDownloada886aaa94fb128ffe9cf5ee2495d9ef42ef129fe2e265b84b8820987ca15f4cd
0.14.52026-02-27T18:53:42.461797ZDownload06d68a8c9e7302fa44c45aba77d792b6926430a47e0cf82abf6b90436a70d9f4
0.14.72026-03-17T02:45:03.426599ZDownload886f612deaa64afaa28ba7bcf8d54e1b6d34a269a71a3761125388a78e52551b
0.14.82026-04-08T17:59:27.616438ZDownload0057a98d64d7bb872b0c87dff6e73d2c2d80c77156e7a03f127a26f8aa240649
0.14.92026-04-22T18:40:05.473368ZDownload9a81dc36f7f71890d7cf83960a3a7df1e6c9a24035f98eb848e91ad48b1d21c6
0.14.102026-06-04T18:23:39.402190ZDownload30f245bf7bbf194ca6033a9fb1f69cd3d661f4a1b9fcc1a0faba6277980da420
0.14.112026-06-10T17:54:25.762730ZDownloada1a78c7d8f023ee6b2609fe7efe1c5a147ae6aa4cfde22864efa81898e295d73
0.14.122026-06-11T18:08:20.842059ZDownloadc2a75baf1657171cc7872db96a12b07e385873cf7a73f2b4f7638e9d0701ee53
0.14.132026-06-18T00:45:02.704547ZDownloada43d6463a4411039ab6e43c02a257b784511b81d3ee923243f5242138a5772c3
0.14.142026-07-13T15:30:10.804164ZDownload8c988c96836e59db019930c603dd1493797a7aaf97ba71469ea13724602be4dd
0.14.152026-08-31T19:28:46.697164ZDownload30cd04ad5e90bee9f2ab77f55e43cd05221271b1942c5c4b36b9da56cf83b2f0
0.14.162026-09-01T16:13:58.948409ZDownload521fbb02dada7d99d0fc6d10e4b501a07ae1d39ff2a850afbd0ec2279fb81f5c
0.14.172026-09-11T16:17:16.359049ZDownload9a3518eb84e8e26665874d9867534961d855493e9c5eb0eb55cbd46edd995529
0.14.182026-10-06T17:32:41.641222ZDownload2c59e6fba4971dc9ece97acd55b4f95b67a98e6ae0a55bff6f9dfc2bb59e8b1a
0.14.192026-10-20T22:49:05.936995ZDownloadd218f0916ff564cfd9dd032d11e5a990059cb66f88cc741ec6e5e55abdebefcc

Dependencies

analyzer "\u003e=0.41.0 \u003c0.42.0"

dart_style "^1.2.0"

meta "^1.2.3"

pub_semver "^1.3.2"