mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Remove Sugar
enum and inline single variant into CalledVia
This commit is contained in:
parent
4ef40be0f0
commit
5bfc52cd3b
3 changed files with 6 additions and 11 deletions
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue