InjectableModule

class InjectableModule(val name: String, defs: Collection<Declaration<*>>)

A module that can be injected in environments. At their core, injectable modules are just lists of declarations that get copied over when adding this module to environments.

Constructors

Link copied to clipboard
fun InjectableModule(name: String, defs: Collection<Declaration<*>>)

Properties

Link copied to clipboard
val declarations: List<Declaration<*>>

The declarations contained in this module.

Link copied to clipboard
val name: String

The name of this module. It is only used for debugging purposes. May be empty.