diff options
Diffstat (limited to 'src/ast/nodes/CompNode.java')
| -rw-r--r-- | src/ast/nodes/CompNode.java | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/src/ast/nodes/CompNode.java b/src/ast/nodes/CompNode.java index 33976bf..22906df 100644 --- a/src/ast/nodes/CompNode.java +++ b/src/ast/nodes/CompNode.java @@ -11,7 +11,8 @@ import org.antlr.v4.runtime.tree.TerminalNode;   * Node for the `comp_op` statement of the grammar.   */  public class CompNode implements Node { -    private TerminalNode op; + +    private final TerminalNode op;      public CompNode(TerminalNode op) {          this.op = op; @@ -19,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? | 
