package yokohama.unit.ast;

import lombok.EqualsAndHashCode;
import lombok.Value;

@Value
@EqualsAndHashCode(exclude={"span"})
public class Type {
    private NonArrayType nonArrayType;
    private int dims;
    private Span span;
}

@@ -234,12 +234,106 @@
 n span;%0D
+%0A%0D%0A    public Type toArray() %7B%0D%0A        return new Type(nonArrayType, dims + 1, span);%0D%0A    %7D%0D
 %0A%7D%0D%0A

Add toArray method