freeze

abstract fun freeze()(source)

Makes this node immutable.

After this method has been called, the expression can never be modified again. This ensures that nodes cannot change after they have been used within other nodes.

To learn more about this process, see Node.

Thread-safety

Instances of Node are not thread-safe before freeze has been called.

Once the freeze function has returned, then the node must be immutable and thread-safe.