(&self)
| 66 | |
| 67 | impl dyn Expr { |
| 68 | pub fn is_const(&self) -> bool { |
| 69 | matches!( |
| 70 | self.kind(), |
| 71 | ExprKind::Number | ExprKind::Boolean | ExprKind::String | ExprKind::Null |
| 72 | ) |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | #[derive(Clone)] |
no outgoing calls
no test coverage detected