mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Fix ast.Expr.Str for impure calls
This commit is contained in:
1 parent
e450f049cf
commit
c403f06b25
1 file changed
+2
@@ -50,6 +50,8 @@ func (n *Expr) appendStr(buf []byte, tm *t.Map, parenthesize bool, depth uint32)
|
|||||||
buf = n.lhs.Expr().appendStr(buf, tm, true, depth)
|
buf = n.lhs.Expr().appendStr(buf, tm, true, depth)
|
||||||
if n.flags&FlagsSuspendible != 0 {
|
if n.flags&FlagsSuspendible != 0 {
|
||||||
buf = append(buf, '?')
|
buf = append(buf, '?')
|
||||||
|
} else if n.flags&FlagsImpure != 0 {
|
||||||
|
buf = append(buf, '!')
|
||||||
}
|
}
|
||||||
buf = append(buf, '(')
|
buf = append(buf, '(')
|
||||||
for i, o := range n.list0 {
|
for i, o := range n.list0 {
|
||||||
|
|||||||
Reference in new issue
Block a user