package xhl.core.elements;

import java.util.List;

/**
 * @author Sergej Chodarev
 */
public class Block extends Statement {
    private Expression head;
    private List<Statement> body;

    public Block(Expression head, List<Statement> body, CodePosition position) {
        super(position);
        this.head = head;
        this.body = body;
    }

    public Expression getHead() {
        return head;
    }

    public List<Statement> getBody() {
        return body;
    }

    @Override
    public <R> R accept(ElementVisitor<R> visitor) {
        return visitor.visit(this);
    }
}

@@ -131,16 +131,22 @@
 private 
+final 
 Expressi
@@ -166,16 +166,22 @@
 private 
+final 
 List%3CSta

Make fields final