mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Parse opaque references
This commit is contained in:
parent
a38f1d1e8d
commit
6104a27b45
22 changed files with 206 additions and 25 deletions
|
@ -30,6 +30,7 @@ impl<'a> Formattable for Pattern<'a> {
|
|||
Pattern::Identifier(_)
|
||||
| Pattern::GlobalTag(_)
|
||||
| Pattern::PrivateTag(_)
|
||||
| Pattern::OpaqueRef(_)
|
||||
| Pattern::Apply(_, _)
|
||||
| Pattern::NumLiteral(..)
|
||||
| Pattern::NonBase10Literal { .. }
|
||||
|
@ -56,7 +57,7 @@ impl<'a> Formattable for Pattern<'a> {
|
|||
buf.indent(indent);
|
||||
buf.push_str(string)
|
||||
}
|
||||
GlobalTag(name) | PrivateTag(name) => {
|
||||
GlobalTag(name) | PrivateTag(name) | OpaqueRef(name) => {
|
||||
buf.indent(indent);
|
||||
buf.push_str(name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue