analysis_server_plugin 0.2.2
analysis_server_plugin: ^0.2.2 copied to clipboard
A framework and support code for building plugins for the analysis server.
0.2.2 #
- Require version
8.1.1
of theanalyzer
package.
0.2.1 #
- Require version
^8.1.0
of theanalyzer
package.
0.2.0 #
- Require version
^8.0.0
of theanalyzer
package. - Require Dart SDK version
^3.5.0
. - Plugins can now register assists. See the documentation for details.
- With the initial release of the new
analyzer_testing
package, there is now a framework for testing analysis rules. See the documentation for details. - Added documentation for several features:
- Require that CorrectionProducers registered as fixes have a non-
null
fixKind
, and that CorrectionProducers registered as assists have a non-null
assistKind
. - Various performance improvements are included.
- Breaking change: The
DartFixContext.librariesWithExtensions
method now accepts aName
instead of aString
, and only yields library elements that actually export an extension with a member of the given name. CorrectionProducer.errorLength
is renamedCorrectionProducer.diagnosticLength
.CorrectionProducer.errorOffset
is renamedCorrectionProducer.diagnosticOffset
.FixContext.error
is renamedFixContext.diagnostic
.- The new minimum analyzer version contains a number of API changes that should
be noted for use in this package:
ErrorCode
is renamedDiagnosticCode
.AnalysisError
is renamedDiagnostic
. This class'serrorCode
field is now nameddiagnosticCode
.ErrorListener
is renamedDiagnosticListener
.ErrorReporter
is renamedDiagnosticReporter
.LintRule
is split into two classses:AnalysisRule
, for rules which report exactly one code, andMultiAnalysisRule
, for rules which report multiple codes. These classes are public API. Classes that used to extendLintRule
and either implemented thelintCode
getter or thelintCodes
getter now must implementdiagnosticCode
(forAnalysisRule
) ordiagnosticCodes
(forMultiAnalysisRule
).NodeLintRegistry
is renamedRuleVisitorRegistry
. It is now public API.- A
LintCode
's severity can now be specified when in the constructor call. LinterContext
is renamedRuleContext
. It is now public API.LinterContextWithParsedResults
is renamedRuleContextWithParsedResults
.LinterContextWithResolvedResults
is renamedRuleContextWithResolvedResults
.LintRuleUnitContext
is renamedRuleUnitContext
. It is now public API.CorrectionProducer.inheritanceManager
is deprecated, in favor of the methods found onInterfaceElement
.
0.1.0-dev.1 #
- Initial release