buildBlock function

ValueNode buildBlock(
  1. List arguments,
  2. SequenceNode body
)

Implementation

ValueNode buildBlock(List arguments, SequenceNode body) {
  final result = BlockNode(body);
  addTo<VariableNode>(result.arguments, arguments);
  addTo<Token>(result.separators, arguments);
  return result;
}