opBinaryKeyName function

String opBinaryKeyName(
  1. OpBinary_Operator o
)

Implementation

String opBinaryKeyName(OpBinary_Operator o) {
  return switch (o) {
    OpBinary_Operator.SUB => "sub",
    OpBinary_Operator.DIV => "div",
    OpBinary_Operator.EQ => "eq",
    OpBinary_Operator.NEQ => "neq",
    OpBinary_Operator.LT => "lt",
    OpBinary_Operator.LTE => "lte",
    OpBinary_Operator.GT => "gt",
    OpBinary_Operator.GTE => "gte",
    _ => throw "unexpected OperatorBinary $o",
  };
}