MCPcopy Index your code
hub / github.com/endbasic/endbasic / case_relop_name

Function case_relop_name

core/src/compiler/top.rs:227–236  ·  view source on GitHub ↗

Returns the textual name of `relop` for diagnostics.

(relop: &CaseRelOp)

Source from the content-addressed store, hash-verified

225
226/// Returns the textual name of `relop` for diagnostics.
227fn 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`.
239fn case_relop_instr(

Callers 1

compile_case_relopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected