Remove Sugar enum and inline single variant into CalledVia

This commit is contained in:
ayazhafiz 2021-11-18 21:23:41 -05:00
parent 4ef40be0f0
commit 5bfc52cd3b
3 changed files with 6 additions and 11 deletions

View file

@ -13,13 +13,8 @@ pub enum CalledVia {
/// Calling with a unary operator, e.g. (!foo bar baz) or (-foo bar baz)
UnaryOp(UnaryOp),
/// This call is the result of some desugaring, e.g. "\(first) \(last)" is
/// transformed into first ++ last.
Sugar(Sugar),
}
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Sugar {
/// This call is the result of desugaring string interpolation,
/// e.g. "\(first) \(last)" is transformed into Str.concat (Str.concat first " ") last.
StringInterpolation,
}