use crate::ns::*; use serde::{Serialize, Deserialize}; #[derive(Clone, Serialize, Deserialize)] pub struct ArrayLiteral { pub location: Location, /// ASDoc. Always ignore this field; it is used solely /// when parsing meta-data. pub asdoc: Option>, pub elements: Vec, } #[derive(Clone, Serialize, Deserialize)] pub enum Element { Elision, Expression(Rc), Rest((Rc, Location)), }