1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
use super::Pair; use super::ast::error::Error; use crate::parsers::Spanned; pub use self::attr::Attribute; pub use self::block::Block; pub use self::body::Body; pub use self::hint::InlineHint; mod attr; mod block; mod body; pub mod error; pub mod expr; mod hint; pub type Hcl<'i> = Body<'i>; pub type Str<'i> = Spanned<'i, &'i str>; #[inline] pub(super) fn process(pair: Pair) -> (Hcl, Vec<Error>) { Hcl::process(pair) }