| ... | @@ -363,9 +363,47 @@ pub const NodeInfixOp = struct { | ... | @@ -363,9 +363,47 @@ pub const NodeInfixOp = struct { |
| 363 | i -= 1; | 363 | i -= 1; |
| 364 | | 364 | |
| 365 | switch (self.op) { | 365 | switch (self.op) { |
| 366 | InfixOp.EqualEqual, | 366 | InfixOp.Add, |
| | 367 | InfixOp.AddWrap, |
| | 368 | InfixOp.ArrayCat, |
| | 369 | InfixOp.ArrayMult, |
| | 370 | InfixOp.Assign, |
| | 371 | InfixOp.AssignBitAnd, |
| | 372 | InfixOp.AssignBitOr, |
| | 373 | InfixOp.AssignBitShiftLeft, |
| | 374 | InfixOp.AssignBitShiftRight, |
| | 375 | InfixOp.AssignBitXor, |
| | 376 | InfixOp.AssignDiv, |
| | 377 | InfixOp.AssignMinus, |
| | 378 | InfixOp.AssignMinusWrap, |
| | 379 | InfixOp.AssignMod, |
| | 380 | InfixOp.AssignPlus, |
| | 381 | InfixOp.AssignPlusWrap, |
| | 382 | InfixOp.AssignTimes, |
| | 383 | InfixOp.AssignTimesWarp, |
| 367 | InfixOp.BangEqual, | 384 | InfixOp.BangEqual, |
| 368 | InfixOp.Period => {}, | 385 | InfixOp.BitAnd, |
| | 386 | InfixOp.BitOr, |
| | 387 | InfixOp.BitShiftLeft, |
| | 388 | InfixOp.BitShiftRight, |
| | 389 | InfixOp.BitXor, |
| | 390 | InfixOp.BoolAnd, |
| | 391 | InfixOp.BoolOr, |
| | 392 | InfixOp.Div, |
| | 393 | InfixOp.EqualEqual, |
| | 394 | InfixOp.ErrorUnion, |
| | 395 | InfixOp.GreaterOrEqual, |
| | 396 | InfixOp.GreaterThan, |
| | 397 | InfixOp.LessOrEqual, |
| | 398 | InfixOp.LessThan, |
| | 399 | InfixOp.MergeErrorSets, |
| | 400 | InfixOp.Mod, |
| | 401 | InfixOp.Mult, |
| | 402 | InfixOp.MultWrap, |
| | 403 | InfixOp.Period, |
| | 404 | InfixOp.Sub, |
| | 405 | InfixOp.SubWrap, |
| | 406 | InfixOp.UnwrapMaybe => {}, |
| 369 | } | 407 | } |
| 370 | | 408 | |
| 371 | if (i < 1) return self.rhs; | 409 | if (i < 1) return self.rhs; |