setType

open fun setType(type: Type)


abstract fun setType(type: Type, root: List<HasType>)

Set the node's type. This may start a chain of type listener notifications

Parameters

type

new type

root

The nodes which we have seen in the type change chain. When a node receives a type setting command where root.contains(this), we know that we have a type listener circle and can abort. If root is an empty list, the type change is seen as an externally triggered event and subsequent type listeners receive the current node as their root.