xshade-parser 0.1.2

Parser and untyped AST for the xshade language.
Documentation
use ::ast::*;

#[derive(Debug, Eq, PartialEq, Serialize, Deserialize)]
pub enum ImportItem {
    Named(Identifier),
    All
}

#[derive(Debug, Eq, PartialEq, Serialize, Deserialize)]
pub struct ImportDeclaration {
    pub span: Span,
    pub items: Vec<ImportItem>,
    pub module_id: String,
}

impl Spanned for ImportDeclaration {
    fn get_span(&self) -> Span {
        self.span
    }
}