mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Switch fx mode based on platform main too
This commit is contained in:
parent
2c8571537e
commit
b80f44738f
4 changed files with 19 additions and 15 deletions
|
@ -386,7 +386,14 @@ impl IdentSuffix {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn is_suffixed(&self) -> bool {
|
||||
pub fn is_none(&self) -> bool {
|
||||
match self {
|
||||
IdentSuffix::None => true,
|
||||
IdentSuffix::Bang => false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_bang(&self) -> bool {
|
||||
match self {
|
||||
IdentSuffix::None => false,
|
||||
IdentSuffix::Bang => true,
|
||||
|
|
|
@ -1068,7 +1068,7 @@ macro_rules! define_builtins {
|
|||
// or `if false` and will get optimized out.
|
||||
debug_assert_eq!($exposed_apply_type, $ident_name.chars().next().unwrap().is_uppercase());
|
||||
// Types should not be suffixed
|
||||
debug_assert!(!IdentSuffix::from_name($ident_name).is_suffixed());
|
||||
debug_assert!(IdentSuffix::from_name($ident_name).is_none());
|
||||
|
||||
if $exposed_apply_type {
|
||||
scope.insert($ident_name.into(), (Symbol::new(ModuleId::$module_const, IdentId::from_index($ident_id, IdentSuffix::None)), Region::zero()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue