mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
Add ast.ExprOperatorEtc constants
This commit is contained in:
1 parent
41e407a774
commit
decb64e5ea
8 files changed
+34
-26
No files matched your search
@@ -30,7 +30,7 @@ var (
|
||||
)
|
||||
|
||||
func (g *gen) writeBuiltinCall(b *buffer, n *a.Expr, sideEffectsOnly bool, depth uint32) error {
|
||||
if n.Operator() != t.IDOpenParen {
|
||||
if n.Operator() != a.ExprOperatorCall {
|
||||
return errNoSuchBuiltin
|
||||
}
|
||||
method := n.LHS().AsExpr()
|
||||
@@ -1043,7 +1043,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) || (!n.Effect().Coroutine()) {
|
||||
if (n.Operator() != a.ExprOperatorCall) || (!n.Effect().Coroutine()) {
|
||||
return errNoSuchBuiltin
|
||||
}
|
||||
method := n.LHS().AsExpr()
|
||||
|
||||
Reference in new issue
Block a user