Add a cast expression above child. If child is a literal expression, we attempt to convert the value of the child directly, and not insert a cast node. @param targetType type to be cast to @param childIndex index of child to be cast
(Type targetType, int childIndex)
| 1659 | * index of child to be cast |
| 1660 | */ |
| 1661 | public void castChild(Type targetType, int childIndex) throws AnalysisException { |
| 1662 | Expr child = getChild(childIndex); |
| 1663 | Expr newChild = child.castTo(targetType); |
| 1664 | setChild(childIndex, newChild); |
| 1665 | } |
| 1666 | |
| 1667 | /** |
| 1668 | * Convert child to to targetType, possibly by inserting an implicit cast, or by |
no test coverage detected