mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
preparations for specializing closures
This commit is contained in:
parent
48d13a7b12
commit
3408a31453
7 changed files with 113 additions and 21 deletions
|
@ -37,6 +37,9 @@ pub enum TagName {
|
|||
/// Private tags are associated with a specific module, and as such use a
|
||||
/// Symbol just like all other module-specific identifiers.
|
||||
Private(Symbol),
|
||||
|
||||
/// Used to connect the closure size to the function it corresponds to
|
||||
Closure(Symbol),
|
||||
}
|
||||
|
||||
impl TagName {
|
||||
|
@ -44,6 +47,7 @@ impl TagName {
|
|||
match self {
|
||||
TagName::Global(uppercase) => uppercase.as_inline_str().clone(),
|
||||
TagName::Private(symbol) => symbol.fully_qualified(interns, home),
|
||||
TagName::Closure(symbol) => symbol.fully_qualified(interns, home),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue