buildSequence function

SequenceNode buildSequence(
  1. List temporaries,
  2. List statements
)

Implementation

SequenceNode buildSequence(List temporaries, List statements) {
  final result = SequenceNode();
  addTo<VariableNode>(result.temporaries, temporaries);
  addTo<IsStatement>(result.statements, statements);
  addTo<Token>(result.periods, statements);
  return result;
}