procedureBody function

State procedureBody(
  1. String type,
  2. State state
)

Implementation

State procedureBody(String type, State state) {
  const template = '''
{{@state}}
''';

  final automaton = Automaton(
    accept: 'return;',
    template: template,
  );

  final generator = AutomatonGenerator(automaton);
  final start = generator.generate(type, state);
  return start;
}