public override Node VisitCase_of([NotNull] coolgrammarParser.Case_ofContext context)
        {
            Expr          exp      = (Expr)Visit(context.expr());
            List <Branch> branches = new List <Branch>();

            foreach (var item in context.branch())
            {
                branches.Add((Branch)Visit(item));
            }
            return(new CASE_OF(exp, new Lista <Branch>(branches)));
        }
 /// <summary>
 /// Visit a parse tree produced by the <c>case_of</c>
 /// labeled alternative in <see cref="coolgrammarParser.expr"/>.
 /// <para>
 /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/>
 /// on <paramref name="context"/>.
 /// </para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 /// <return>The visitor result.</return>
 public virtual Result VisitCase_of([NotNull] coolgrammarParser.Case_ofContext context)
 {
     return(VisitChildren(context));
 }