Skip to content

Commit

Permalink
Move dag.Assignment to compiler/dag/op.go (#5480)
Browse files Browse the repository at this point in the history
It doesn't implement dag.Expr and grouping it with types that do is
misleading.
  • Loading branch information
nwt authored Nov 21, 2024
1 parent c06e81a commit 98f94ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions compiler/dag/expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 5 additions & 0 deletions compiler/dag/op.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 98f94ff

Please sign in to comment.