Returns `true` if the given expression is a complex number literal.
(expr: &Expr)
| 829 | |
| 830 | /// Returns `true` if the given expression is a complex number literal. |
| 831 | const fn is_complex_number(expr: &Expr) -> bool { |
| 832 | matches!( |
| 833 | expr, |
| 834 | Expr::NumberLiteral(ast::ExprNumberLiteral { |
| 835 | value: ast::Number::Complex { .. }, |
| 836 | .. |
| 837 | }) |
| 838 | ) |
| 839 | } |
no outgoing calls
no test coverage detected