Add ast.ExprOperatorEtc constants

This commit is contained in:
Nigel Tao committed 2021-03-29 19:54:51 +11:00
1 parent 41e407a774
commit decb64e5ea
8 files changed
+34 -26

No files matched your search

+1 -1
View File
@@ -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) {