@return true if exp can hold reference values.
(Exp exp)
| 68 | * @return {@code true} if {@code exp} can hold reference values. |
| 69 | */ |
| 70 | public static boolean holdsReference(Exp exp) { |
| 71 | // TODO: exclude null type? |
| 72 | return exp.getType() instanceof ReferenceType; |
| 73 | } |
| 74 | } |