From ce49d20a5fe3726e1800bc495a25c7617212abf4 Mon Sep 17 00:00:00 2001 From: Emanuele Grasso <96300448+L0P0P@users.noreply.github.com> Date: Sun, 14 Jul 2024 18:48:09 +0200 Subject: Reaching definition analysis (#17) Co-authored-by: Santo Cariotti Co-authored-by: geno Co-authored-by: geno --- src/ast/nodes/AugassignNode.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/ast/nodes/AugassignNode.java') diff --git a/src/ast/nodes/AugassignNode.java b/src/ast/nodes/AugassignNode.java index 906dcd7..8b07c67 100644 --- a/src/ast/nodes/AugassignNode.java +++ b/src/ast/nodes/AugassignNode.java @@ -36,7 +36,13 @@ public class AugassignNode implements Node { } @Override - public String toPrint(String prefix) { + public String printAST(String prefix) { return prefix + "Augassign(" + val + ")\n"; } + + @Override + public String toPrint(String prefix) { + String str = prefix + val.toString(); + return str; + } } -- cgit v1.2.3-18-g5258