(&mut self)
| 357 | } |
| 358 | |
| 359 | fn parse_coord_literal(&mut self) -> Result<ArrayCoordLiteral> { |
| 360 | match self.bump().map(|t| &t.tok) { |
| 361 | Some(Tok::Int(n)) => Ok(ArrayCoordLiteral::Int64(*n)), |
| 362 | Some(Tok::Float(f)) => Ok(ArrayCoordLiteral::Float64(*f)), |
| 363 | Some(Tok::Str(s)) => Ok(ArrayCoordLiteral::String(s.clone())), |
| 364 | other => Err(self.err(format!("expected coord literal, got {other:?}"))), |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | fn parse_attr_literal(&mut self) -> Result<ArrayAttrLiteral> { |
| 369 | match self.bump().map(|t| &t.tok) { |
no test coverage detected