package yokohama.unit.ast;

import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Value;
import yokohama.unit.position.Span;

@Value
@EqualsAndHashCode(exclude={"span"})
public class ChoiceBinding implements Binding {
    Ident name;
    List<Expr> choices;
    Span span;

    @Override
    public <T> T accept(BindingVisitor<T> visitor) {
        return visitor.visitChoiceBinding(this);
    }
}

@@ -139,16 +139,49 @@
 n.Span;%0D
+%0Aimport yokohama.unit.util.Pair;%0D
 %0A%0D%0A@Valu
@@ -330,16 +330,115 @@
 pan;%0D%0A%0D%0A
+    public Pair%3CIdent, List%3CExpr%3E%3E toPair() %7B%0D%0A        return new Pair%3C%3E(name, choices);%0D%0A    %7D%0D%0A%0D%0A
     @Ove

Add toPair method to ChoiceBinding