The analysis package defines support for performing static analysis of Dart code. It was designed to support tooling efforts, but has also been used for such things as statistics gathering and code transformers.
If you are interested in providing Dart support in a long-running tool, such as an editor or IDE, you should use the analysis server instead of this package. The analysis server is currently shipped as an executable in the SDK and will be released as a package in the near future. In the meantime, if you'd like to learn more about it, please look at the Analysis Server API Specification or contact the mailing list (see below).
The API's in this package are, quite frankly, a mess at the moment. They were originally machine generated by a translator and were based on an earlier Java implementation. Several of the API's still look like their Java predecessors (or worse) rather than clean Dart API's.
In addition, there is currently no clean distinction between public and internal API's. We plan to address this issue soon, but doing so will, unfortunately, require a large number of breaking changes. We will try to minimize the pain this causes for our clients, but some pain is inevitable.
OptionsProcessor extension point API changed to pass associated
AnalysisContext instance into the
ErrorHandlertypedef API fix.
.packagesfiles (issue 24126)
Add a PathFilter and AnalysisOptionsProvider utility classes to aid clients in excluding files from analysis when directed to do so by an options file.
UriResolver.resolveUri(..)now takes an optional
ResolutionCopier.visitAwaitExpressionto copy *Type fields.
ClassName?.staticMemberto match spec.
Fix some implementations of
UriResolver.resolveUri(..) that did not
properly handle the new
_sdkext(to play nicer with pub).
analyzer_clipackage. Files moved:
Add this to your package's pubspec.yaml file:
dependencies: analyzer: "^0.26.1+9"
You can install packages from the command line:
$ pub get
Alternatively, your editor might support pub. Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.26.1+9||Oct 8, 2015||Go to the documentation of analyzer 0.26.1+9||Download analyzer 0.26.1+9 archive|
|0.26.1+8||Oct 7, 2015||Go to the documentation of analyzer 0.26.1+8||Download analyzer 0.26.1+8 archive|
|0.26.1+7||Sep 30, 2015||Go to the documentation of analyzer 0.26.1+7||Download analyzer 0.26.1+7 archive|
|0.26.1+6||Sep 24, 2015||Go to the documentation of analyzer 0.26.1+6||Download analyzer 0.26.1+6 archive|
|0.26.1+5||Sep 23, 2015||Go to the documentation of analyzer 0.26.1+5||Download analyzer 0.26.1+5 archive|
|0.26.1+4||Sep 23, 2015||Go to the documentation of analyzer 0.26.1+4||Download analyzer 0.26.1+4 archive|
|0.26.1+3||Aug 31, 2015||Go to the documentation of analyzer 0.26.1+3||Download analyzer 0.26.1+3 archive|
|0.26.1+2||Aug 28, 2015||Go to the documentation of analyzer 0.26.1+2||Download analyzer 0.26.1+2 archive|
|0.26.1+1||Aug 24, 2015||Go to the documentation of analyzer 0.26.1+1||Download analyzer 0.26.1+1 archive|
|0.26.1||Aug 19, 2015||Go to the documentation of analyzer 0.26.1||Download analyzer 0.26.1 archive|