[ClavaAst] Reverts LiteralStmt, no longer introduces ; automatically
@@ -34,14 +34,16 @@ public class LiteralStmt extends Stmt implements LiteralNode {
@Override
public String getCode() {
- String code = get(LITERAL_CODE);
-
- // Should automatically add ; to the end?
- if (!code.strip().endsWith(";")) {
- code = code + ";";
- }
-
- return code;
+ return get(LITERAL_CODE);
+ // Better to stick with what the user gives you. Statement could be a CompoudStmt (e.g., {})
+ // String code = get(LITERAL_CODE);
+ //
+ // // Should automatically add ; to the end?
+ // if (!code.strip().endsWith(";")) {
+ // code = code + ";";
+ // }
+ //
+ // return code;
}
}
