cobalt_annotations 0.3.0
cobalt_annotations: ^0.3.0 copied to clipboard
Annotations for Cobalt — @CobaltInject, @injected, @CobaltBootstrap, @CobaltInit and @CobaltScopeRoot.
0.3.0 #
@CobaltDecorates(Target, {name, order}): the generated form ofCobaltScope.decorate. The class implementsTargetand takes the wrapped instance in its constructor;ordersays which of several wraps which.
0.2.1 #
- No code changes in this package. Republished in lockstep with the toolchain
packages, which now accept analyzer 13 and 14 — see
cobalt_generator's changelog.
0.2.0 #
@CobaltInit(lazy: true), and the shorthand@cobaltLazyInit: the class is built by the firstgetAsyncinstead of duringscope.init().@CobaltInject(lazyInit: true)— the same for a@CobaltModulemember returning aFuture.
0.1.2 #
- No code changes in this package. Republished in lockstep with a
packaging fix in
cobalt0.1.2 (a stray file removed from its archive) — see its changelog. A fix in one package still ships as a patch for all fifteen, because publishing a subset is what lets the set drift.
0.1.1 #
- No code changes in this package. Republished in lockstep with the fix
in
cobalt_lint0.1.1 — see its changelog. Lockstep is the whole versioning policy: a fix in one package still ships as a patch for all fifteen, because publishing a subset is what lets the set drift.
0.1.0 #
- An optional
@CobaltParamparameter is refused: the record the call site passes carries no defaults, so the default could never be used. @CobaltParammarks a constructor parameter the call site supplies rather than the graph.- Initial release.
- Annotations shared by the generator and the lint plugin, with no runtime and
no analyzer dependency:
@CobaltInject(plus the@cobaltInject/@cobaltSingleton/@cobaltTransientshorthands),@Injected,@Named,@CobaltBootstrap,@CobaltInit,@CobaltScopeRootand@CobaltEnvironment. CobaltEnvironment.matcheslives here rather than in the runtime: it is pure logic over strings, and both generated and hand-written code need it.@CobaltScopeRoot(provides: [...])andCobaltProvideddeclare registrations the generator cannot see, so its completeness check does not report them missing.@CobaltModulemarks a class whose members register types the package does not own, and@CobaltInjectgaineddisposefor closing them.