mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Introduce finer-grained effects
This commit is contained in:
1 parent
77e538aec8
commit
0a47966e72
12 files changed
+129
-115
No files matched your search
+1
-5
@@ -102,11 +102,7 @@ func (n *Expr) appendStr(buf []byte, tm *t.Map, parenthesize bool, depth uint32)
|
||||
|
||||
case t.IDOpenParen:
|
||||
buf = n.lhs.AsExpr().appendStr(buf, tm, true, depth)
|
||||
if n.flags&FlagsSuspendible != 0 {
|
||||
buf = append(buf, '?')
|
||||
} else if n.flags&FlagsImpure != 0 {
|
||||
buf = append(buf, '!')
|
||||
}
|
||||
buf = append(buf, n.flags.AsEffect().String()...)
|
||||
buf = append(buf, '(')
|
||||
for i, o := range n.list0 {
|
||||
if i != 0 {
|
||||
|
||||
Reference in new issue
Block a user