[ClavaAst] Changes ao ClavaData is used in ClavaNode.toString()
@@ -71,8 +71,10 @@ public abstract class ClavaNode extends ATreeNode<ClavaNode> {
@Override
public String toContentString() {
+ if (getData() != null) {
return getData().toString();
- /*
+ }
+
if (getId().isPresent()) {
// return "(0x" + Long.toHexString(getId().get().getId()) + ") ";
// String location = getLocation().isValid() ? getLocation().toString() + " " : "";
@@ -80,7 +82,7 @@ public abstract class ClavaNode extends ATreeNode<ClavaNode> {
return location + "(" + getId().get().getId() + ") ";
}
return "";
- */
+
}
protected static String toContentString(String previousContentString, String suffix) {
