Fold Expr statements into Assign statements

This commit is contained in:
Nigel Tao committed 2018-12-27 17:36:08 +11:00
1 parent 796c8ccc30
commit c9e6ee6fb3
6 files changed
+34 -38

No files matched your search

+2 -3
View File
@@ -414,9 +414,9 @@ func NewArg(name t.ID, value *Expr) *Arg {
}
}
// Assign is "LHS = RHS" or "LHS op= RHS":
// Assign is "LHS = RHS" or "LHS op= RHS" or "RHS":
// - ID0: operator
// - LHS: <Expr>
// - LHS: <nil|Expr>
// - RHS: <Expr>
type Assign Node
@@ -791,7 +791,6 @@ const MaxBodyDepth = 255
// Statement means one of:
// - Assert
// - Assign
// - Expr
// - IOBind
// - If
// - Iterate