diff options
author | geno <gabriele.genovese2@studio.unibo.it> | 2024-07-18 12:16:40 +0200 |
---|---|---|
committer | geno <gabriele.genovese2@studio.unibo.it> | 2024-07-18 12:16:40 +0200 |
commit | 31ee062ad12adcf6dae6716cb566fcbcde9f6959 (patch) | |
tree | 2fdc2b1b8ee39269bb1308cbff12f9e60630ee02 /src/ast/Python3VisitorImpl.java | |
parent | 635360137c14d785ccbea17d4a93f49418c8ca69 (diff) |
codegen while implemented, test added
Diffstat (limited to 'src/ast/Python3VisitorImpl.java')
-rw-r--r-- | src/ast/Python3VisitorImpl.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ast/Python3VisitorImpl.java b/src/ast/Python3VisitorImpl.java index e6728d5..7e8881f 100644 --- a/src/ast/Python3VisitorImpl.java +++ b/src/ast/Python3VisitorImpl.java @@ -504,7 +504,6 @@ public class Python3VisitorImpl extends Python3ParserBaseVisitor<Node> { } private void optimizeWithThird(BlockNode block, int lineStart, int lineStop, int index) { - int counter = 0; ArrayList<Node> stms = block.getChilds(); for (var e : stms) { if (e instanceof SimpleStmtsNode) { @@ -543,7 +542,6 @@ public class Python3VisitorImpl extends Python3ParserBaseVisitor<Node> { rewriter.replace(firstToken, lastToken, newVar); } } - counter++; } } } |