diff --git a/node.go b/node.go index 82d3fb9..9fb2cf8 100644 --- a/node.go +++ b/node.go @@ -1082,6 +1082,14 @@ func (this *conversionState) convertNoFreeFloating(n_ node.Node) (string, error) case *expr.ShortArray: return this.convertArrayLiteralCommon(n.Items) + case *expr.BooleanNot: + rhs, err := this.convert(n.Expr) + if err != nil { + return "", parseErr{n, err} + } + + return "!(" + rhs + ")", nil + case *expr.ArrayDimFetch: // Might be x[foo], might be x[] (i.e. append() call) // In order to make the append() transformation, we need to lookahead