with
infix fun <T : Any> Declaration<T>.with(tag: DeclarationTag): Declaration<T>
Content copied to clipboard
Adds the given tag to this declaration.
infix fun <T : Any> Declaration<T>.with(tags: List<DeclarationTag>): Declaration<T>
Content copied to clipboard
Adds the given tags to this declaration.
Note that you can also chain the addition of tags using +
.
put(::Foo) with bar + baz
Content copied to clipboard
infix fun <T : Any> Declaration<T>.with(tags: DeclarationTags): Declaration<T>
Content copied to clipboard
Adds the given tags to this declaration.