mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 00:47:56 +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
@@ -86,7 +86,7 @@ func (g *gen) writeStatementAssign(b *buffer, op t.ID, lhs *a.Expr, rhs *a.Expr,
|
||||
|
||||
needWriteLoadExprDerivedVars := false
|
||||
if (len(g.currFunk.derivedVars) > 0) &&
|
||||
(rhs.Operator() == t.IDOpenParen) {
|
||||
(rhs.Operator() == a.ExprOperatorCall) {
|
||||
method := rhs.LHS().AsExpr()
|
||||
recvTyp := method.LHS().MType().Pointee()
|
||||
if (recvTyp.Decorator() == 0) && (recvTyp.QID()[0] != t.IDBase) {
|
||||
|
||||
Reference in new issue
Block a user