mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 09:01:35 +01:00
Simplify the gen.writeBuiltinQuestionCall caller
This commit is contained in:
1 parent
1b3f800416
commit
796c8ccc30
2 files changed
+3
-7
No files matched your search
@@ -539,7 +539,7 @@ func (g *gen) writeArgs(b *buffer, args []*a.Node, depth uint32) error {
|
||||
|
||||
func (g *gen) writeBuiltinQuestionCall(b *buffer, n *a.Expr, depth uint32) error {
|
||||
// TODO: also handle (or reject??) being on the RHS of an =? operator.
|
||||
if n.Operator() != t.IDOpenParen {
|
||||
if (n.Operator() != t.IDOpenParen) || (!n.Effect().Coroutine()) {
|
||||
return errNoSuchBuiltin
|
||||
}
|
||||
method := n.LHS().AsExpr()
|
||||
|
||||
Reference in new issue
Block a user