mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +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
@@ -111,12 +111,8 @@ func (g *gen) writeStatementAssign(b *buffer, op t.ID, lhs *a.Expr, rhs *a.Expr,
|
||||
}
|
||||
|
||||
func (g *gen) writeStatementAssign0(b *buffer, op t.ID, lhs *a.Expr, rhs *a.Expr) error {
|
||||
if rhs.Effect().Coroutine() {
|
||||
if err := g.writeBuiltinQuestionCall(b, rhs, 0); err == nil {
|
||||
return nil
|
||||
} else if err != errNoSuchBuiltin {
|
||||
return err
|
||||
}
|
||||
if err := g.writeBuiltinQuestionCall(b, rhs, 0); err != errNoSuchBuiltin {
|
||||
return err
|
||||
}
|
||||
|
||||
if (lhs == nil) || rhs.Effect().Coroutine() {
|
||||
|
||||
Reference in new issue
Block a user