use crate::ns::*; use serde::{Serialize, Deserialize}; use std::rc::Rc; #[derive(Clone, Serialize, Deserialize)] pub struct ArrayLiteral { pub location: Location, pub elements: Vec, pub type_annotation: Option>, } #[derive(Clone, Serialize, Deserialize)] pub enum Element { Elision, Expression(Rc), Rest((Rc, Location)), }