示例#1
0
        public string get_ascent_types() //タイプを遡って纏めて文字列化。listの先頭のみが対象
        {
            string         s         = null;
            Action <VALUE> printtype = null;

            printtype = (v) =>
            {
                if (v == null)
                {
                    return;
                }
                if (s != null)
                {
                    s += "-";
                }
                s += YDEF.get_name(v.type);
                if (v.list != null && v.list.Count > 0)
                {
                    printtype(v.list[0]);
                }
            };

            printtype(this);

            return(s);
        }
示例#2
0
        public override string ToString()
        {
            string s = null;

            s += type.ToString() + ":" + YDEF.get_name(type);

            return(s + ":" + (o != null ? o.ToString() : "null"));
        }
示例#3
0
 // -- util --
 private static string gn(object[] o)
 {
     return(YDEF.get_name(o));
 }
示例#4
0
 public string get_type_name()
 {
     return(YDEF.get_name(type));
 }