You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
461 B
Kotlin

package me.eater.hefbrug.dsl.context
import me.eater.hefbrug.node.Node
import me.eater.hefbrug.selector.SelectorInterface
class AssignContext(private val node: Node) :
SelectionDefinitionContext<AssignContext.() -> Unit> {
val groups: MutableSet<String>
get() = node.groups
override fun select(selector: SelectorInterface, block: AssignContext.() -> Unit) {
if (selector.matches(node)) {
block(this)
}
}
}