buildAssignment function

ValueNode buildAssignment(
  1. ValueNode node,
  2. List parts
)

Implementation

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