with

infix fun <T : Any> Declaration<T>.with(tag: DeclarationTag): Declaration<T>

Adds the given tag to this declaration.


infix fun <T : Any> Declaration<T>.with(tags: List<DeclarationTag>): Declaration<T>

Adds the given tags to this declaration.

Note that you can also chain the addition of tags using +.

put(::Foo) with bar + baz

infix fun <T : Any> Declaration<T>.with(tags: DeclarationTags): Declaration<T>

Adds the given tags to this declaration.