use crate::ast::prelude::*;
#[test]
#[cfg(not(miri))]
fn ast_parse() {
rt::<ast::ExprCall>("test()");
rt::<ast::ExprCall>("(foo::bar)()");
}
#[derive(Debug, TryClone, Parse, PartialEq, Eq, ToTokens, Spanned)]
#[rune(parse = "meta_only")]
#[non_exhaustive]
pub struct ExprCall {
#[rune(iter, meta)]
pub attributes: Vec<ast::Attribute>,
#[rune(meta)]
pub expr: Box<ast::Expr>,
pub args: ast::Parenthesized<ast::Expr, T![,]>,
#[rune(skip)]
pub(crate) id: ItemId,
}
expr_parse!(Call, ExprCall, "call expression");