mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 13:41:10 +00:00
Updated to remove field
With this, try_reduce_tuple were changed from self.lpop() to self.skip()
This commit is contained in:
parent
1902ad5a15
commit
e3135778d5
2 changed files with 7 additions and 15 deletions
|
@ -493,8 +493,6 @@ impl_locational_for_enum!(Array; Normal, WithLength, Comprehension);
|
|||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub struct NormalTuple {
|
||||
pub l_paren: Token,
|
||||
pub r_paren: Token,
|
||||
pub elems: Args,
|
||||
}
|
||||
|
||||
|
@ -505,13 +503,11 @@ impl NestedDisplay for NormalTuple {
|
|||
}
|
||||
|
||||
impl_display_from_nested!(NormalTuple);
|
||||
impl_locational!(NormalTuple, l_paren, r_paren);
|
||||
impl_locational!(NormalTuple, elems, elems);
|
||||
|
||||
impl NormalTuple {
|
||||
pub fn new(l_paren: Token, r_paren: Token, elems: Args) -> Self {
|
||||
pub fn new(elems: Args) -> Self {
|
||||
Self {
|
||||
l_paren,
|
||||
r_paren,
|
||||
elems,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue