public override object VisitNewTypeExp([NotNull] CoolParser.NewTypeExpContext context)
        {
            Type t = null;

            if (p.Types.ContainsKey(context.TYPE().GetText()))
            {
                t = p.Types[context.TYPE().GetText()];
            }
            else
            {
                t = new Type(context.TYPE().GetText(), "Object", new Coord(-1, -1));
            }

            return(new New(t, GetCoord(context)));
        }
 public NewTypeNode(CoolParser.NewTypeExpContext context, Node s) : base(s.Childs)
 {
     this.context = context;
     this.Type    = context.TYPE().GetText();
 }