예제 #1
0
파일: ydef_api.cs 프로젝트: NNNIC/haxe-test
        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
파일: ydef_api.cs 프로젝트: NNNIC/haxe-test
        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
파일: ydef_api.cs 프로젝트: NNNIC/haxe-test
 public string get_type_name()
 {
     return(YDEF.get_name(type));
 }