parse a shortname prefix before Effects

This commit is contained in:
Folkert 2021-01-31 13:43:19 +01:00
parent 44fd0351be
commit 53afa3c3fc
4 changed files with 12 additions and 1 deletions

View file

@ -143,11 +143,13 @@ pub struct PlatformHeader<'a> {
pub after_provides: &'a [CommentOrNewline<'a>],
}
/// e.g. fx.Effects
#[derive(Clone, Debug, PartialEq)]
pub struct Effects<'a> {
pub spaces_before_effects_keyword: &'a [CommentOrNewline<'a>],
pub spaces_after_effects_keyword: &'a [CommentOrNewline<'a>],
pub spaces_after_type_name: &'a [CommentOrNewline<'a>],
pub type_shortname: &'a str,
pub type_name: &'a str,
pub entries: Vec<'a, Loc<TypedIdent<'a>>>,
}