Skip to main content

cobalt_analyzer 1.7.0 copy "cobalt_analyzer: ^1.7.0" to clipboard
cobalt_analyzer: ^1.7.0 copied to clipboard

Internal analysis layer of cobalt_generator and cobalt_lint — parses Cobalt annotations once for both. Not covered by semver; depend on those packages instead.

cobalt_analyzer #

Shared static analysis layer for Cobalt. It turns annotated Dart source into a typed intermediate representation.

Both cobalt_generator and cobalt_lint consume this package, so a declaration is parsed by one implementation rather than two that drift apart. It depends on analyzer but deliberately not on build or on the plugin API, so the lint plugin does not pull the build system into the analysis server.

This is an internal package, and its API is not covered by semantic versioning: its models and parsers change whenever the generator or the lint plugin needs them to, in any release. It is published because those two depend on it, and its version moves in lockstep with theirs. Depend on cobalt_generator or cobalt_lint; if you build your own tooling on Cobalt's annotations on top of this package, pin an exact version.

0
likes
160
points
1.6k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Internal analysis layer of cobalt_generator and cobalt_lint — parses Cobalt annotations once for both. Not covered by semver; depend on those packages instead.

Repository (GitHub)
View/report issues
Contributing

Topics

#dependency-injection #analyzer #codegen #static-analysis

License

MIT (license)

Dependencies

analyzer, cobalt, cobalt_annotations, collection, meta, path

More

Packages that depend on cobalt_analyzer