mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Add stream.er
This commit is contained in:
parent
48f8ef3788
commit
f3a5d31ec4
4 changed files with 24 additions and 10 deletions
|
@ -1017,8 +1017,12 @@ impl NestedDisplay for Call {
|
|||
if let Some(attr_name) = self.attr_name.as_ref() {
|
||||
write!(f, "{}", attr_name)?;
|
||||
}
|
||||
writeln!(f, ":")?;
|
||||
self.args.fmt_nest(f, level + 1)
|
||||
if self.args.is_empty() {
|
||||
write!(f, "()")
|
||||
} else {
|
||||
writeln!(f, ":")?;
|
||||
self.args.fmt_nest(f, level + 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue