Add: parse set literal

This commit is contained in:
GreasySlug 2022-10-03 17:00:00 +09:00
parent 9d4949c70f
commit bc63e9c9cb
2 changed files with 54 additions and 4 deletions

View file

@ -194,6 +194,10 @@ impl Args {
&self.kw_args[..]
}
pub fn has_pos_arg(&self, pa: &PosArg) -> bool {
self.pos_args.contains(pa)
}
pub fn into_iters(
self,
) -> (
@ -765,8 +769,8 @@ impl_locational_for_enum!(Record; Normal, Shortened);
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub struct NormalSet {
l_brace: Token,
r_brace: Token,
pub l_brace: Token,
pub r_brace: Token,
pub elems: Args,
}