scala.tools.selectivecps.CPSUtils
Sets the tree's type to the result of the given function.
Sets the tree's type to the result of the given function. If the type is null, it remains null - the function is not called.