(&mut self)
| 274 | } |
| 275 | |
| 276 | fn parse_cell_order(&mut self) -> Result<ArrayCellOrderAst> { |
| 277 | let id = self.expect_ident()?; |
| 278 | match id.to_ascii_uppercase().as_str() { |
| 279 | "ROW_MAJOR" => Ok(ArrayCellOrderAst::RowMajor), |
| 280 | "COL_MAJOR" => Ok(ArrayCellOrderAst::ColMajor), |
| 281 | "HILBERT" => Ok(ArrayCellOrderAst::Hilbert), |
| 282 | "ZORDER" | "Z_ORDER" => Ok(ArrayCellOrderAst::ZOrder), |
| 283 | other => Err(self.err(format!("unknown CELL_ORDER `{other}`"))), |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | fn parse_tile_order(&mut self) -> Result<ArrayTileOrderAst> { |
| 288 | let id = self.expect_ident()?; |
no test coverage detected