コード例 #1
0
        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)}}}");
            }
        }
コード例 #2
0
 public Transition(StateSpec state, Subtransitions subtransitions)
 {
     State          = state;
     Subtransitions = subtransitions;
 }