package com.davidmogar.njc.ast.statements;

import com.davidmogar.njc.visitors.Visitor;
import com.davidmogar.njc.ast.AbstractAstNode;
import com.davidmogar.njc.ast.expressions.Expression;
import com.davidmogar.njc.ast.expressions.Variable;

import java.util.ArrayList;
import java.util.List;

public class InvocationStatement extends AbstractAstNode implements Expression, Statement {

    public List<Expression> arguments;
    public Variable variable;

    public InvocationStatement(int line, int column, Variable variable) {
        this(line, column, variable, new ArrayList<>());
    }

    public InvocationStatement(int line, int column, Variable variable, List<Expression> arguments) {
        super(line, column);
        this.variable = variable;
        this.arguments = arguments;
    }

    @Override
    public void accept(Visitor visitor, Object object) {
        visitor.visit(this, object);
    }

}

@@ -67,71 +67,42 @@
 njc.
-visitors.Visitor;%0Aimport com.davidmogar.njc.ast.AbstractAstNode
+ast.expressions.AbstractExpression
 ;%0Aim
@@ -204,16 +204,60 @@
 ariable;
+%0Aimport com.davidmogar.njc.visitors.Visitor;
 %0A%0Aimport
@@ -355,15 +355,18 @@
 ract
-AstNode
+Expression
  imp
@@ -376,20 +376,8 @@
 ents
- Expression,
  Sta

Fix extends declaration