mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-03 18:29:00 +00:00
chore: fix minor bugs
This commit is contained in:
parent
c8f71d78f9
commit
0b0badfef4
4 changed files with 30 additions and 21 deletions
|
@ -2575,6 +2575,13 @@ impl Expr {
|
|||
self.call_expr(Args::single(PosArg::new(expr)))
|
||||
}
|
||||
|
||||
pub fn call2(self, expr1: Expr, expr2: Expr) -> Self {
|
||||
self.call_expr(Args::pos_only(
|
||||
vec![PosArg::new(expr1), PosArg::new(expr2)],
|
||||
None,
|
||||
))
|
||||
}
|
||||
|
||||
pub fn attr(self, ident: Identifier) -> Accessor {
|
||||
Accessor::attr(self, ident)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue