perf: reduce performing of .loc()

This commit is contained in:
Shunsuke Shibayama 2023-02-15 02:33:28 +09:00
parent 5d90029f09
commit 5f6c8a3b2b
9 changed files with 83 additions and 49 deletions

View file

@ -1390,11 +1390,7 @@ impl HasType for Call {
}
}
impl Locational for Call {
fn loc(&self) -> Location {
Location::concat(self.obj.as_ref(), &self.args)
}
}
impl_locational!(Call, obj, args);
impl Call {
pub fn new(obj: Expr, attr_name: Option<Identifier>, args: Args) -> Self {