diff --git a/compiler/dag/expr.go b/compiler/dag/expr.go index a824a970fc..6055d5c791 100644 --- a/compiler/dag/expr.go +++ b/compiler/dag/expr.go @@ -27,11 +27,6 @@ type ( Kind string `json:"kind" unpack:""` Elems []VectorElem `json:"elems"` } - Assignment struct { - Kind string `json:"kind" unpack:""` - LHS Expr `json:"lhs"` - RHS Expr `json:"rhs"` - } // A BadExpr node is a placeholder for an expression containing semantic // errors. BadExpr struct { diff --git a/compiler/dag/op.go b/compiler/dag/op.go index dee0cb686d..c8149b0e6e 100644 --- a/compiler/dag/op.go +++ b/compiler/dag/op.go @@ -294,6 +294,11 @@ func (*Deleter) OpNode() {} // Various Op fields type ( + Assignment struct { + Kind string `json:"kind" unpack:""` + LHS Expr `json:"lhs"` + RHS Expr `json:"rhs"` + } Case struct { Expr Expr `json:"expr"` Path Seq `json:"seq"`