mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Fold Expr statements into Assign statements
This commit is contained in:
1 parent
796c8ccc30
commit
c9e6ee6fb3
6 files changed
+34
-38
No files matched your search
+2
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user