mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
preparations for specializing closures
This commit is contained in:
parent
48d13a7b12
commit
3408a31453
7 changed files with 113 additions and 21 deletions
|
@ -924,6 +924,10 @@ fn add_category<'b>(
|
|||
alloc.private_tag_name(*name),
|
||||
alloc.text(" private tag application has the type:"),
|
||||
]),
|
||||
TagApply {
|
||||
tag_name: TagName::Closure(_name),
|
||||
args_count: _,
|
||||
} => unreachable!("closure tags are for internal use only"),
|
||||
|
||||
Record => alloc.concat(vec![this_is, alloc.text(" a record of type:")]),
|
||||
|
||||
|
|
|
@ -248,6 +248,7 @@ impl<'a> RocDocAllocator<'a> {
|
|||
match tn {
|
||||
TagName::Global(uppercase) => self.global_tag_name(uppercase),
|
||||
TagName::Private(symbol) => self.private_tag_name(symbol),
|
||||
TagName::Closure(_symbol) => unreachable!("closure tags are internal only"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue