mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Add FlagsCallImpure and FlagsCallSuspendible.
This commit is contained in:
1 parent
a6e8ff5736
commit
da133c02ce
5 files changed
+44
-26
No files matched your search
@@ -683,7 +683,7 @@ func (g *gen) writeExprOther(n *a.Expr, depth uint32) error {
|
||||
case t.KeyOpenParen:
|
||||
// n is a function call.
|
||||
// TODO: delete this hack that only matches "in.src.read_u8?()".
|
||||
if isInSrcReadU8(g.idMap, n.LHS().Expr()) && len(n.Args()) == 0 {
|
||||
if isInSrcReadU8(g.idMap, n.LHS().Expr()) && n.CallSuspendible() && len(n.Args()) == 0 {
|
||||
// TODO.
|
||||
g.writes("42")
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user