public void Visit(Subtransitions subtransitions) { if (subtransitions.Count == 1) { subtransitions.First().Accept(this); } else { builder.AppendLine(); builder.AppendLine($"{Indent(1)}{{"); foreach (var subtransition in subtransitions) { builder.Append(Indent(2)); subtransition.Accept(this); builder.AppendLine(); } builder.Append($"{Indent(1)}}}"); } }
public Transition(StateSpec state, Subtransitions subtransitions) { State = state; Subtransitions = subtransitions; }