(&mut self)
| 366 | } |
| 367 | |
| 368 | fn parse_attr_literal(&mut self) -> Result<ArrayAttrLiteral> { |
| 369 | match self.bump().map(|t| &t.tok) { |
| 370 | Some(Tok::Null) => Ok(ArrayAttrLiteral::Null), |
| 371 | Some(Tok::Int(n)) => Ok(ArrayAttrLiteral::Int64(*n)), |
| 372 | Some(Tok::Float(f)) => Ok(ArrayAttrLiteral::Float64(*f)), |
| 373 | Some(Tok::Str(s)) => Ok(ArrayAttrLiteral::String(s.clone())), |
| 374 | other => Err(self.err(format!("expected attr literal, got {other:?}"))), |
| 375 | } |
| 376 | } |
| 377 | |
| 378 | // ── ALTER ARRAY ──────────────────────────────────────────── |
| 379 |
no test coverage detected