chore: fix minor bugs

This commit is contained in:
Shunsuke Shibayama 2023-05-17 19:56:28 +09:00
parent c8f71d78f9
commit 0b0badfef4
4 changed files with 30 additions and 21 deletions

View file

@ -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)
}