mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +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
|
@ -1,6 +1,6 @@
|
|||
use roc_can::expected::{Expected, PExpected};
|
||||
use roc_collections::all::{Index, MutSet, SendMap};
|
||||
use roc_module::called_via::{BinOp, CalledVia, Sugar};
|
||||
use roc_module::called_via::{BinOp, CalledVia};
|
||||
use roc_module::ident::{Ident, IdentStr, Lowercase, TagName};
|
||||
use roc_module::symbol::Symbol;
|
||||
use roc_region::all::{Located, Region};
|
||||
|
@ -1055,7 +1055,7 @@ fn add_category<'b>(
|
|||
| BinOp::GreaterThanOrEq,
|
||||
),
|
||||
) => alloc.concat(vec![alloc.text("This comparison produces:")]),
|
||||
CallResult(Some(_), CalledVia::Sugar(Sugar::StringInterpolation)) => {
|
||||
CallResult(Some(_), CalledVia::StringInterpolation) => {
|
||||
alloc.concat(vec![alloc.text("This string interpolation produces:")])
|
||||
}
|
||||
CallResult(Some(symbol), _) => alloc.concat(vec![
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue