Declaration

sealed class Declaration<T : Any>

A declaration within an environment that is being built. These declarations can be:

Properties

Link copied to clipboard
val identifier: Identifier<T>

The identifier for this declaration.

Link copied to clipboard
val tags: MutableList<DeclarationTag>

Tags attached to this declaration.

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
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>
infix fun <T : Any> Declaration<T>.with(tags: DeclarationTags): Declaration<T>

Adds the given tags to this declaration.