Returns the textual name of `relop` for diagnostics.
(relop: &CaseRelOp)
| 225 | |
| 226 | /// Returns the textual name of `relop` for diagnostics. |
| 227 | fn case_relop_name(relop: &CaseRelOp) -> &'static str { |
| 228 | match relop { |
| 229 | CaseRelOp::Equal => "=", |
| 230 | CaseRelOp::NotEqual => "<>", |
| 231 | CaseRelOp::Less => "<", |
| 232 | CaseRelOp::LessEqual => "<=", |
| 233 | CaseRelOp::Greater => ">", |
| 234 | CaseRelOp::GreaterEqual => ">=", |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | /// Returns the bytecode opcode constructor for `relop` and operands of type `etype`. |
| 239 | fn case_relop_instr( |
no outgoing calls
no test coverage detected