buildAssignment function
Implementation
ValueNode buildAssignment(ValueNode node, List parts) {
return parts.reversed.fold(
node,
(result, variableAndToken) =>
AssignmentNode(variableAndToken[0], variableAndToken[1], result));
}