Skip to content

Commit 12f2ab8

Browse files
committed
fix: super() call not modify method Obj node
1 parent ab498df commit 12f2ab8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

MJCompiler/src/rs/ac/bg/etf/pp1/SemanticAnalyzer.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
import rs.etf.pp1.symboltable.concepts.Obj;
9191
import rs.etf.pp1.symboltable.concepts.Scope;
9292
import rs.etf.pp1.symboltable.concepts.Struct;
93-
import rs.etf.pp1.symboltable.structure.SymbolDataStructure;
9493
import rs.etf.pp1.symboltable.visitors.DumpSymbolTableVisitor;
9594
import rs.etf.pp1.symboltable.visitors.SymbolTableVisitor;
9695

@@ -162,9 +161,11 @@ enum RelOpEnum { EQUAL, NOT_EQUAL, LESS, GREATER, GREATER_EQUAL, LESS_EQUAL }
162161
private RelOpEnum relationalOperation = null;
163162

164163
enum AddOpEnum { PLUS, MINUS }
164+
@SuppressWarnings("unused")
165165
private AddOpEnum addLikeOperation = null;
166166

167167
enum MulOpEnum { MULTIPLY, DIVIDE, MODUO }
168+
@SuppressWarnings("unused")
168169
private MulOpEnum mulLikeOperation = null;
169170

170171
/* Global utility functions */
@@ -205,15 +206,17 @@ private String relationalOperationDecoding(RelOpEnum relationalOp) {
205206
}
206207
}
207208

208-
private String addLikeOperationDecoding(AddOpEnum addLikeOp) {
209+
@SuppressWarnings("unused")
210+
private String addLikeOperationDecoding(AddOpEnum addLikeOp) {
209211
switch (addLikeOp) {
210212
case PLUS: return "+";
211213
case MINUS: return "-";
212214
default: return "";
213215
}
214216
}
215217

216-
private String mulLikeOperationDecoding(MulOpEnum mulLikeOp) {
218+
@SuppressWarnings("unused")
219+
private String mulLikeOperationDecoding(MulOpEnum mulLikeOp) {
217220
switch (mulLikeOp) {
218221
case MULTIPLY: return "*";
219222
case DIVIDE: return "/";

0 commit comments

Comments
 (0)