Allow suffixed pure functions that are exposed to the host

This commit is contained in:
Agus Zubiaga 2024-11-27 14:02:13 -03:00
parent 4217ffa333
commit 6ffc8a507b
No known key found for this signature in database
8 changed files with 57 additions and 45 deletions

View file

@ -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)]