(&mut self)
| 459 | ("sqrt", 1) => Op::Sqrt, |
| 460 | ("min", 2) => Op::Min, |
| 461 | ("max", 2) => Op::Max, |
| 462 | ("clamp", 3) => Op::Clamp, |
| 463 | ("hash", 1) => Op::Hash, |
| 464 | _ => return Err(CompileError::InvalidFunctionArity), |
| 465 | }; |
| 466 | self.ops.push(op); |
| 467 | return Ok(()); |
| 468 | } |
| 469 | |
| 470 | match ident.as_str() { |
| 471 | "t" => self.ops.push(Op::T), |
| 472 | "life" => self.ops.push(Op::Life), |
| 473 | "lifetime" => self.ops.push(Op::Lifetime), |
| 474 | "age_left" => self.ops.push(Op::AgeLeft), |
| 475 | "age01" => self.ops.push(Op::Age01), |
no test coverage detected