mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Allow suffixed pure functions that are exposed to the host
This commit is contained in:
parent
4217ffa333
commit
6ffc8a507b
8 changed files with 57 additions and 45 deletions
|
@ -957,6 +957,13 @@ impl FxSuffixKind {
|
|||
Self::UnsuffixedRecordField => IdentSuffix::None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn symbol(&self) -> Option<&Symbol> {
|
||||
match self {
|
||||
Self::Let(symbol) | Self::Pattern(symbol) => Some(symbol),
|
||||
Self::UnsuffixedRecordField => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue