xshade_parser/ast/
export_declaration.rs

1use ::ast::*;
2
3#[derive(Debug, Eq, PartialEq, Serialize, Deserialize)]
4pub enum ExportItem {
5    Named(Identifier),
6    All
7}
8
9#[derive(Debug, Eq, PartialEq, Serialize, Deserialize)]
10pub struct ExportDeclaration {
11    pub span: Span,
12    pub items: Vec<ExportItem>,
13}
14
15impl Spanned for ExportDeclaration {
16    fn get_span(&self) -> Span {
17        self.span
18    }
19}