Skip to content

Commit

Permalink
Rename <anonymous parselet> into __AnonymousParselet__
Browse files Browse the repository at this point in the history
  • Loading branch information
phorward committed Mar 28, 2024
1 parent b8cc0cf commit 3c31d15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/compiler/iml/imlparselet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl std::fmt::Display for ImlParseletInstance {
write!(
f,
"{}",
self.name.as_deref().unwrap_or("<anonymous parselet>")
self.name.as_deref().unwrap_or("__AnonymousParselet__")
)?;

if !self.generics.is_empty() {
Expand Down Expand Up @@ -248,7 +248,7 @@ impl ImlParselet {
if !required.is_empty() {
return Err(format!(
"{} requires assignment of generic argument {}",
instance.name.as_deref().unwrap_or("<anonymous parselet>"),
instance.name.as_deref().unwrap_or("__AnonymousParselet__"),
required.join(", ")
));
}
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/iml/imlvalue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ impl std::fmt::Display for ImlValue {
.borrow()
.name
.as_deref()
.unwrap_or("<anonymous parselet>")
.unwrap_or("__AnonymousParselet__")
),
Self::Variable {
name, is_global, ..
Expand Down

0 comments on commit 3c31d15

Please sign in to comment.