[ClavaAst] LiteralStmt automatically introduces ; if not present
@@ -34,7 +34,14 @@ public class LiteralStmt extends Stmt implements LiteralNode {
@Override
public String getCode() {
- return get(LITERAL_CODE);
+ String code = get(LITERAL_CODE);
+
+ // Should automatically add ; to the end?
+ if (!code.strip().endsWith(";")) {
+ code = code + ";";
+ }
+
+ return code;
}
}
