substituteNode

abstract fun substituteNode(hint: EmitHint, node: Node): Node(source)

Gets a substitute for a node, if one is available; otherwise, returns the original node.

Parameters

hint

A hint as to the intended usage of the node.

node

The node to substitute.