buildMessage function
Implementation
ValueNode buildMessage(ValueNode receiver, List parts) {
return parts
.where((selectorAndArguments) => selectorAndArguments.isNotEmpty)
.fold(receiver, (receiver, selectorAndArguments) {
final message = MessageNode(receiver);
addTo<Token>(message.selectorToken, selectorAndArguments);
addTo<ValueNode>(message.arguments, selectorAndArguments);
return message;
});
}