rune/ast/
expr_continue.rsuse crate::ast::prelude::*;
#[test]
#[cfg(not(miri))]
fn ast_parse() {
rt::<ast::ExprContinue>("continue");
rt::<ast::ExprContinue>("continue 'foo");
}
#[derive(Debug, TryClone, PartialEq, Eq, Parse, ToTokens, Spanned)]
#[rune(parse = "meta_only")]
#[non_exhaustive]
pub struct ExprContinue {
#[rune(iter, meta)]
pub attributes: Vec<ast::Attribute>,
pub continue_token: T![continue],
#[rune(iter)]
pub label: Option<ast::Label>,
}
expr_parse!(Continue, ExprContinue, "continue expression");