mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Implement match guard (literal)
This commit is contained in:
parent
a4c6009ec6
commit
bd29985cc7
3 changed files with 106 additions and 37 deletions
|
@ -1529,6 +1529,10 @@ impl ConstArgs {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn deconstruct(self) -> (Vec<ConstPosArg>, Vec<ConstKwArg>, Option<(Token, Token)>) {
|
||||
(self.pos_args, self.kw_args, self.paren)
|
||||
}
|
||||
|
||||
pub const fn empty() -> Self {
|
||||
Self::new(vec![], vec![], None)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue