xshade_parser/ast/
import_declaration.rs

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