summaryrefslogtreecommitdiff
path: root/src/ast/nodes/CompNode.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/nodes/CompNode.java')
-rw-r--r--src/ast/nodes/CompNode.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ast/nodes/CompNode.java b/src/ast/nodes/CompNode.java
index 8be6ea1..22906df 100644
--- a/src/ast/nodes/CompNode.java
+++ b/src/ast/nodes/CompNode.java
@@ -12,7 +12,7 @@ import org.antlr.v4.runtime.tree.TerminalNode;
*/
public class CompNode implements Node {
- private TerminalNode op;
+ private final TerminalNode op;
public CompNode(TerminalNode op) {
this.op = op;
@@ -20,7 +20,7 @@ public class CompNode implements Node {
@Override
public ArrayList<SemanticError> checkSemantics(SymbolTable ST, int _nesting) {
- return new ArrayList<SemanticError>();
+ return new ArrayList();
}
// TODO: it should be boolean, right?