mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 23:23:50 +03:00
adds self canonicalization for static calls
This commit is contained in:
parent
15599c71ce
commit
a9a684ef2b
@ -276,6 +276,11 @@ impl Canonicalizer {
|
||||
span: call.span.clone(),
|
||||
});
|
||||
}
|
||||
Expression::Identifier(identifier) => {
|
||||
if identifier.name.as_ref() == "Self" && self.circuit_name.is_some() {
|
||||
return Expression::Identifier(self.circuit_name.as_ref().unwrap().clone());
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user