Use the new AssignmentNode constructor to simplify some code

We often assign left and right operands when creating a new
AssignmentNode. So simplify by using the new constructor.