public virtual object haxe_ds_IntMap_cast <T_c>() { unchecked { if (global::haxe.lang.Runtime.eq(typeof(T), typeof(T_c))) { return(this); } global::haxe.ds.IntMap <T_c> new_me = new global::haxe.ds.IntMap <T_c>(global::haxe.lang.EmptyObject.EMPTY); global::Array <object> fields = global::Reflect.fields(this); int i = 0; while ((i < fields.length)) { string field = global::haxe.lang.Runtime.toString(fields[i++]); switch (field) { case "vals": { if ((this.vals != null)) { T_c[] __temp_new_arr4 = new T_c[this.vals.Length]; int __temp_i5 = -1; while ((++__temp_i5 < this.vals.Length)) { object __temp_obj6 = ((object)(this.vals[__temp_i5])); if ((__temp_obj6 != null)) { __temp_new_arr4[__temp_i5] = global::haxe.lang.Runtime.genericCast <T_c>(__temp_obj6); } } new_me.vals = __temp_new_arr4; } else { new_me.vals = null; } break; } default: { global::Reflect.setField(new_me, field, global::Reflect.field(this, field)); break; } } } return(new_me); } }
public object Array_cast <T_c>() { unchecked { if (global::haxe.lang.Runtime.eq(typeof(T), typeof(T_c))) { return(this); } global::Array <T_c> new_me = new global::Array <T_c>(((global::haxe.lang.EmptyObject)(global::haxe.lang.EmptyObject.EMPTY))); global::Array <string> fields = global::Reflect.fields(this); int i = 0; while ((i < fields.length)) { string field = fields[i++]; switch (field) { case "__a": { if ((this.__a != null)) { T_c[] __temp_new_arr1 = new T_c[this.__a.Length]; int __temp_i2 = -1; while ((++__temp_i2 < this.__a.Length)) { object __temp_obj3 = ((object)(this.__a[__temp_i2])); if ((__temp_obj3 != null)) { __temp_new_arr1[__temp_i2] = global::haxe.lang.Runtime.genericCast <T_c>(__temp_obj3); } } new_me.__a = __temp_new_arr1; } else { new_me.__a = null; } break; } default: { global::Reflect.setField(new_me, field, global::Reflect.field(this, field)); break; } } } return(new_me); } }
public virtual object haxe_ds_StringMap_cast <T_c>() { unchecked { if (global::haxe.lang.Runtime.eq(typeof(T), typeof(T_c))) { return(this); } global::haxe.ds.StringMap <T_c> new_me = new global::haxe.ds.StringMap <T_c>(((global::haxe.lang.EmptyObject)(global::haxe.lang.EmptyObject.EMPTY))); { object __temp_iterator303 = global::haxe.root.Reflect.fields(this).iterator(); while (((bool)(global::haxe.lang.Runtime.callField(__temp_iterator303, "hasNext", 407283053, default(global::haxe.root.Array))))) { string field = global::haxe.lang.Runtime.toString(global::haxe.lang.Runtime.callField(__temp_iterator303, "next", 1224901875, default(global::haxe.root.Array))); switch (field) { case "vals": { { T_c[] __temp_new_arr12 = new T_c[((int)(this.vals.Length))]; int __temp_i13 = -1; while ((++__temp_i13 < this.vals.Length)) { object __temp_obj14 = ((object)(this.vals[__temp_i13])); if (!(global::haxe.lang.Runtime.eq(__temp_obj14, default(T[])))) { __temp_new_arr12[__temp_i13] = global::haxe.lang.Runtime.genericCast <T_c>(__temp_obj14); } } new_me.vals = __temp_new_arr12; } break; } default: { global::haxe.root.Reflect.setField(new_me, field, ((object)(global::haxe.root.Reflect.field(this, field)))); break; } } } } return(new_me); } }
public object Array_cast <T_c>() { unchecked { if (global::haxe.lang.Runtime.eq(typeof(T), typeof(T_c))) { return(this); } global::haxe.root.Array <T_c> new_me = new global::haxe.root.Array <T_c>(((global::haxe.lang.EmptyObject)(global::haxe.lang.EmptyObject.EMPTY))); { object __temp_iterator299 = global::haxe.root.Reflect.fields(this).iterator(); while (((bool)(global::haxe.lang.Runtime.callField(__temp_iterator299, "hasNext", 407283053, default(global::haxe.root.Array))))) { string field = global::haxe.lang.Runtime.toString(global::haxe.lang.Runtime.callField(__temp_iterator299, "next", 1224901875, default(global::haxe.root.Array))); switch (field) { case "__a": { { T_c[] __temp_new_arr1 = new T_c[((int)(this.__a.Length))]; int __temp_i2 = -1; while ((++__temp_i2 < this.__a.Length)) { object __temp_obj3 = ((object)(this.__a[__temp_i2])); if (!(global::haxe.lang.Runtime.eq(__temp_obj3, default(T[])))) { __temp_new_arr1[__temp_i2] = global::haxe.lang.Runtime.genericCast <T_c>(__temp_obj3); } } new_me.__a = __temp_new_arr1; } break; } default: { global::haxe.root.Reflect.setField(new_me, field, ((object)(global::haxe.root.Reflect.field(this, field)))); break; } } } } return(new_me); } }
public virtual object cs__NativeArray_NativeArrayIterator_cast <T_c>() { unchecked { #line 63 "/opt/haxe/std/cs/NativeArray.hx" if (global::haxe.lang.Runtime.eq(typeof(T), typeof(T_c))) { #line 63 "/opt/haxe/std/cs/NativeArray.hx" return(this); } #line 63 "/opt/haxe/std/cs/NativeArray.hx" global::cs._NativeArray.NativeArrayIterator <T_c> new_me = new global::cs._NativeArray.NativeArrayIterator <T_c>(((global::haxe.lang.EmptyObject)(global::haxe.lang.EmptyObject.EMPTY))); #line 63 "/opt/haxe/std/cs/NativeArray.hx" global::Array <string> fields = global::Reflect.fields(this); #line 63 "/opt/haxe/std/cs/NativeArray.hx" int i = 0; #line 63 "/opt/haxe/std/cs/NativeArray.hx" while ((i < fields.length)) { #line 63 "/opt/haxe/std/cs/NativeArray.hx" string field = fields[i++]; #line 63 "/opt/haxe/std/cs/NativeArray.hx" switch (field) { case "arr": { #line 63 "/opt/haxe/std/cs/NativeArray.hx" if ((this.arr != null)) { #line 63 "/opt/haxe/std/cs/NativeArray.hx" T_c[] __temp_new_arr1 = new T_c[this.arr.Length]; #line 63 "/opt/haxe/std/cs/NativeArray.hx" int __temp_i2 = -1; #line 63 "/opt/haxe/std/cs/NativeArray.hx" while ((++__temp_i2 < this.arr.Length)) { #line 63 "/opt/haxe/std/cs/NativeArray.hx" object __temp_obj3 = ((object)(this.arr[__temp_i2])); #line 63 "/opt/haxe/std/cs/NativeArray.hx" if ((__temp_obj3 != null)) { #line 63 "/opt/haxe/std/cs/NativeArray.hx" __temp_new_arr1[__temp_i2] = global::haxe.lang.Runtime.genericCast <T_c>(__temp_obj3); } } #line 63 "/opt/haxe/std/cs/NativeArray.hx" new_me.arr = __temp_new_arr1; } else { #line 63 "/opt/haxe/std/cs/NativeArray.hx" new_me.arr = null; } #line 63 "/opt/haxe/std/cs/NativeArray.hx" break; } default: { #line 63 "/opt/haxe/std/cs/NativeArray.hx" global::Reflect.setField(new_me, field, global::Reflect.field(this, field)); #line 63 "/opt/haxe/std/cs/NativeArray.hx" break; } } } #line 63 "/opt/haxe/std/cs/NativeArray.hx" return(new_me); } #line default }