sway_ast/submodule.rs
use crate::priv_prelude::*;
#[derive(Clone, Debug, Serialize)]
pub struct Submodule {
pub mod_token: ModToken,
pub name: Ident,
pub semicolon_token: SemicolonToken,
pub visibility: Option<PubToken>,
}
impl Spanned for Submodule {
fn span(&self) -> Span {
Span::join(self.mod_token.span(), &self.semicolon_token.span())
}
}