Returns the first child if this Expr is a CastExpr or builtin cast function. Otherwise, returns 'this'.
(boolean implicitOnly)
| 1717 | * function. Otherwise, returns 'this'. |
| 1718 | */ |
| 1719 | public Expr unwrapExpr(boolean implicitOnly) { |
| 1720 | if ((this instanceof CastExpr |
| 1721 | && (!implicitOnly || ((CastExpr) this).isImplicit())) |
| 1722 | || (this instanceof FunctionCallExpr |
| 1723 | && ((FunctionCallExpr) this).isBuiltinCastFunction())) { |
| 1724 | return children_.get(0); |
| 1725 | } |
| 1726 | return this; |
| 1727 | } |
| 1728 | |
| 1729 | /** |
| 1730 | * Returns the source expression for this expression. Traverses the source |
no test coverage detected