Beispiel #1
0
 public LazyVar(global::haxe.lang.Function loader)
 {
     unchecked
     {
         global::alphatab.util.LazyVar <object> .__hx_ctor_alphatab_util_LazyVar <T>(this, loader);
     }
 }
Beispiel #2
0
        public static int lower <T>(global::Array <T> a, global::haxe.lang.Function cmp, int @from, int to, int val)
        {
            unchecked {
                                #line 140 "/opt/haxe/std/haxe/ds/ArraySort.hx"
                int len = (to - @from);
                                #line 140 "/opt/haxe/std/haxe/ds/ArraySort.hx"
                int half = default(int);
                                #line 140 "/opt/haxe/std/haxe/ds/ArraySort.hx"
                int mid = default(int);
                while ((len > 0))
                {
                                        #line 142 "/opt/haxe/std/haxe/ds/ArraySort.hx"
                    half = (len >> 1);
                    mid  = (@from + half);
                                        #line 144 "/opt/haxe/std/haxe/ds/ArraySort.hx"
                    if ((((int)(cmp.__hx_invoke2_f(default(double), a[mid], default(double), a[val]))) < 0))
                    {
                                                #line 145 "/opt/haxe/std/haxe/ds/ArraySort.hx"
                        @from = (mid + 1);
                        len   = ((len - half) - 1);
                    }
                    else
                    {
                                                #line 148 "/opt/haxe/std/haxe/ds/ArraySort.hx"
                        len = half;
                    }
                }

                                #line 150 "/opt/haxe/std/haxe/ds/ArraySort.hx"
                return(@from);
            }
                        #line default
        }
Beispiel #3
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked
            {
                switch (hash)
                {
                case 1189501348:
                {
                    this._loaded = ((bool)(@value));
                    return(@value);
                }


                case 1189501362:
                {
                    this._loader = ((global::haxe.lang.Function)(@value));
                    return(@value);
                }


                case 1059398626:
                {
                    this._val = global::haxe.lang.Runtime.genericCast <T>(@value);
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
Beispiel #4
0
 public AuctionRepository_FindAuctionsEnding_77__Fun(global::haxe.lang.Function callback, global::Array <object> auctions) : base(1, 0)
 {
                 #line 77 "/my-component/src/englishauction/AuctionRepository.hx"
     this.callback = callback;
                 #line 77 "/my-component/src/englishauction/AuctionRepository.hx"
     this.auctions = auctions;
 }
Beispiel #5
0
        static Day9()
        {
            unchecked {
                global::solutions.Day9.input = global::sys.io.File.getContent("E:/Mila/Documents/GitHub/adventofcode2020/src/inputs/Day9.txt");
                object __temp_stmt2 = null;
                {
                    global::Array <string>     _this = global::haxe.lang.StringExt.split(global::solutions.Day9.input, "\r\n");
                    global::haxe.lang.Function f     = ((global::haxe.lang.Function)(new global::haxe.lang.Closure(typeof(global::haxe._Int64.Int64_Impl_), "parseString", 208459108)));
                    global::Array <long>       ret   = new global::Array <long>(((long[])(new long[_this.length])));
                    {
                        int _g  = 0;
                        int _g1 = _this.length;
                        while ((_g < _g1))
                        {
                            int i = _g++;
                            {
                                long val = ((long)(f.__hx_invoke1_o(default(double), ((string)(_this.__a[i])))));
                                ret.__a[i] = val;
                            }
                        }
                    }

                    __temp_stmt2 = ret;
                }

                object __temp_stmt1 = global::Array <object> .__hx_cast <long>(((global::Array)(__temp_stmt2)));

                global::solutions.Day9.arr            = ((global::Array <long>)(__temp_stmt1));
                global::solutions.Day9.preambleLength = 25;
            }
        }
Beispiel #6
0
 public virtual void off(string type, global::haxe.lang.Function listener, object useCapture)
 {
                 #line 39 "D:\\project\\sangong\\sangong\\src\\web\\proto\\WebEventDispatch.hx"
     bool useCapture1 = (((useCapture == default(object))) ? (false) : (global::haxe.lang.Runtime.toBool(useCapture)));
                 #line 39 "D:\\project\\sangong\\sangong\\src\\web\\proto\\WebEventDispatch.hx"
     this.removeEventListener(((string)(type)), ((global::haxe.lang.Function)(listener)), ((object)(useCapture1)));
 }
Beispiel #7
0
 public AuctionRepository_FindById_47__Fun(global::maglev.MagLevResult res, global::haxe.lang.Function callback) : base(1, 0)
 {
                 #line 47 "/my-component/src/englishauction/AuctionRepository.hx"
     this.res = res;
                 #line 47 "/my-component/src/englishauction/AuctionRepository.hx"
     this.callback = callback;
 }
Beispiel #8
0
        public virtual void call(string method, global::Array <object> args, global::haxe.lang.Function callback)
        {
                        #line 67 "/my-component/src/maglev/MagLevCs.hx"
            global::maglev.MagLevCs    _gthis = this;
            global::maglev.MagLevArray myargs = new global::maglev.MagLevArray();
                        #line 69 "/my-component/src/maglev/MagLevCs.hx"
            {
                                #line 69 "/my-component/src/maglev/MagLevCs.hx"
                int _g = 0;
                                #line 69 "/my-component/src/maglev/MagLevCs.hx"
                while ((_g < args.length))
                {
                                        #line 69 "/my-component/src/maglev/MagLevCs.hx"
                    object arg = args[_g];
                                        #line 69 "/my-component/src/maglev/MagLevCs.hx"
                    ++_g;
                    myargs.push(this.convertToMagLev(arg));
                }
            }

                        #line 72 "/my-component/src/maglev/MagLevCs.hx"
            global::maglev.MagLevResult myresult = this.maglev.call(method, myargs);
            myresult.onError((((global::maglev.MagLevCs_call_73__Fun.__hx_current != null)) ? (global::maglev.MagLevCs_call_73__Fun.__hx_current) : (global::maglev.MagLevCs_call_73__Fun.__hx_current = ((global::maglev.MagLevCs_call_73__Fun)(new global::maglev.MagLevCs_call_73__Fun())))));
                        #line 76 "/my-component/src/maglev/MagLevCs.hx"
            myresult.onResult(new global::maglev.MagLevCs_call_76__Fun(callback, _gthis));
        }
Beispiel #9
0
 public Client()
 {
     unchecked {
                     #line 78 "D:\\project\\sangong\\sangong\\src\\Client.hx"
         global::haxe.Log.trace.__hx_invoke2_o(default(double), "\u662f\u5426\u6211\u7684\u7248\u672c\uff1f", default(double), new global::haxe.lang.DynamicObject(new int[] { 302979532, 1547539107, 1648581351 }, new object[] { "new", "Client", "src/Client.hx" }, new int[] { 1981972957 }, new double[] { ((double)(78)) }));
                     #line 80 "D:\\project\\sangong\\sangong\\src\\Client.hx"
         global::utils.AES_Test.test();
         object a = new global::haxe.lang.DynamicObject(new int[] { 97 }, new object[] { "\u4e2d\u6587\u6d4b\u8bd5" }, new int[] {}, new double[] {});
                     #line 85 "D:\\project\\sangong\\sangong\\src\\Client.hx"
         global::Client.testThread();
                     #line 87 "D:\\project\\sangong\\sangong\\src\\Client.hx"
         global::haxe.io.Bytes b = global::org.msgpack.MsgPack.encode(a);
         object c = global::org.msgpack.MsgPack.decode(b, null);
                     #line 90 "D:\\project\\sangong\\sangong\\src\\Client.hx"
         global::haxe.Log.trace.__hx_invoke2_o(default(double), global::haxe.lang.Runtime.getField(c, "a", 97, true), default(double), new global::haxe.lang.DynamicObject(new int[] { 302979532, 1547539107, 1648581351 }, new object[] { "new", "Client", "src/Client.hx" }, new int[] { 1981972957 }, new double[] { ((double)(90)) }));
                     #line 94 "D:\\project\\sangong\\sangong\\src\\Client.hx"
         global::haxe.lang.Function replacer = null;
                     #line 94 "D:\\project\\sangong\\sangong\\src\\Client.hx"
         string space = null;
                     #line 94 "D:\\project\\sangong\\sangong\\src\\Client.hx"
         string a1 = global::haxe.format.JsonPrinter.print(((object)(a)), replacer, space);
         object b1 = new global::haxe.format.JsonParser(((string)(a1))).doParse();
                     #line 98 "D:\\project\\sangong\\sangong\\src\\Client.hx"
         global::web.proto.WebEventDispatch.getInstance().addEventListener(((string)("error")), ((global::haxe.lang.Function)(new global::haxe.lang.Closure(this, "onErrorFromServer", 1415277398))), default(object), default(object), default(object));
                     #line 100 "D:\\project\\sangong\\sangong\\src\\Client.hx"
         this.code = global::haxe.root.Random.@string(32, null);
     }
             #line default
 }
        public virtual void Remove(string cartId, global::haxe.lang.Function callback)
        {
                        #line 38 "/my-component/src/shoppingcart/CartRepository.hx"
            {
                                #line 38 "/my-component/src/shoppingcart/CartRepository.hx"
                int _g = 0;
                                #line 38 "/my-component/src/shoppingcart/CartRepository.hx"
                global::Array <object> _g1 = this.carts;
                                #line 38 "/my-component/src/shoppingcart/CartRepository.hx"
                while ((_g < _g1.length))
                {
                                        #line 38 "/my-component/src/shoppingcart/CartRepository.hx"
                    global::shoppingcart.CartModel cart = ((global::shoppingcart.CartModel)(_g1[_g]));
                                        #line 38 "/my-component/src/shoppingcart/CartRepository.hx"
                    ++_g;
                    if ((cart.id == cartId))
                    {
                                                #line 40 "/my-component/src/shoppingcart/CartRepository.hx"
                        this.carts.@remove(cart);
                        callback.__hx_invoke0_o();
                                                #line 42 "/my-component/src/shoppingcart/CartRepository.hx"
                        return;
                    }
                }
            }

                        #line 45 "/my-component/src/shoppingcart/CartRepository.hx"
            callback.__hx_invoke0_o();
        }
Beispiel #11
0
 public MagLevCs_call_76__Fun(global::haxe.lang.Function callback, global::maglev.MagLevCs _gthis) : base(1, 0)
 {
                 #line 76 "/my-component/src/maglev/MagLevCs.hx"
     this.callback = callback;
                 #line 76 "/my-component/src/maglev/MagLevCs.hx"
     this._gthis = _gthis;
 }
Beispiel #12
0
        public virtual void stop()
        {
                        #line 44 "C:\\HaxeToolkit\\haxe\\std\\haxe\\MainLoop.hx"
            if ((this.f == null))
            {
                                #line 45 "C:\\HaxeToolkit\\haxe\\std\\haxe\\MainLoop.hx"
                return;
            }

                        #line 46 "C:\\HaxeToolkit\\haxe\\std\\haxe\\MainLoop.hx"
            this.f       = null;
            this.nextRun = global::haxe.root.Math.NEGATIVE_INFINITY;
                        #line 48 "C:\\HaxeToolkit\\haxe\\std\\haxe\\MainLoop.hx"
            if ((this.prev == null))
            {
                                #line 49 "C:\\HaxeToolkit\\haxe\\std\\haxe\\MainLoop.hx"
                global::haxe.MainLoop.pending = this.next;
            }
            else
            {
                                #line 51 "C:\\HaxeToolkit\\haxe\\std\\haxe\\MainLoop.hx"
                this.prev.next = this.next;
            }

                        #line 52 "C:\\HaxeToolkit\\haxe\\std\\haxe\\MainLoop.hx"
            if ((this.next != null))
            {
                                #line 53 "C:\\HaxeToolkit\\haxe\\std\\haxe\\MainLoop.hx"
                this.next.prev = this.prev;
            }
        }
Beispiel #13
0
        public static global::haxe.MainEvent @add(global::haxe.lang.Function f, object priority)
        {
                        #line 87 "C:\\HaxeToolkit\\haxe\\std\\haxe\\MainLoop.hx"
            int priority1 = (((priority == default(object))) ? (0) : (((int)(global::haxe.lang.Runtime.toInt(priority)))));
            if ((f == null))
            {
                                #line 89 "C:\\HaxeToolkit\\haxe\\std\\haxe\\MainLoop.hx"
                throw global::haxe.lang.HaxeException.wrap("Event function is null");
            }

                        #line 90 "C:\\HaxeToolkit\\haxe\\std\\haxe\\MainLoop.hx"
            global::haxe.MainEvent e    = new global::haxe.MainEvent(f, priority1);
            global::haxe.MainEvent head = global::haxe.MainLoop.pending;
                        #line 92 "C:\\HaxeToolkit\\haxe\\std\\haxe\\MainLoop.hx"
            if ((head != null))
            {
                                #line 93 "C:\\HaxeToolkit\\haxe\\std\\haxe\\MainLoop.hx"
                head.prev = e;
            }

                        #line 94 "C:\\HaxeToolkit\\haxe\\std\\haxe\\MainLoop.hx"
            e.next = head;
            global::haxe.MainLoop.pending = e;
                        #line 96 "C:\\HaxeToolkit\\haxe\\std\\haxe\\MainLoop.hx"
            return(e);
        }
 public BidRepository_GetHighestBids_65__Fun(global::haxe.lang.Function callback, string auctionId) : base(1, 0)
 {
                 #line 65 "/my-component/src/englishauction/BidRepository.hx"
     this.callback = callback;
                 #line 65 "/my-component/src/englishauction/BidRepository.hx"
     this.auctionId = auctionId;
 }
Beispiel #15
0
 public static object makeVarArgs(global::haxe.lang.Function f)
 {
     unchecked
     {
         return(new global::haxe.lang.VarArgsFunction(((global::haxe.lang.Function)(f))));
     }
 }
Beispiel #16
0
        public static global::haxe.root.Array filter(object it, global::haxe.lang.Function f)
        {
                        #line 168 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
            global::haxe.root.Array _g = new global::haxe.root.Array(new object[] {});
                        #line 168 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
            {
                                #line 168 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
                object x = ((object)(global::haxe.lang.Runtime.callField(it, "iterator", 328878574, null)));
                                #line 168 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
                while (global::haxe.lang.Runtime.toBool(global::haxe.lang.Runtime.callField(x, "hasNext", 407283053, null)))
                {
                                        #line 168 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
                    object x1 = ((object)(global::haxe.lang.Runtime.callField(x, "next", 1224901875, null)));
                                        #line 168 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
                    if (global::haxe.lang.Runtime.toBool(f.__hx_invoke1_o(default(double), x1)))
                    {
                                                #line 168 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
                        _g.push(x1);
                    }
                }
            }

                        #line 168 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
            return(_g);
        }
        public override object __hx_invoke2_o(double __fn_float1, object __fn_dyn1, double __fn_float2, object __fn_dyn2)
        {
                        #line 55 "/my-component/src/persistence/MagLevConverter.hx"
            global::haxe.lang.Function callback = (((__fn_dyn2 == global::haxe.lang.Runtime.undefined)) ? (((global::haxe.lang.Function)(((object)(__fn_float2))))) : (((global::haxe.lang.Function)(__fn_dyn2))));
                        #line 55 "/my-component/src/persistence/MagLevConverter.hx"
            global::Array <object>     args = (((__fn_dyn1 == global::haxe.lang.Runtime.undefined)) ? (((global::Array <object>)(global::Array <object> .__hx_cast <object>(((global::Array)(((object)(__fn_float1)))))))) : (((global::Array <object>)(global::Array <object> .__hx_cast <object>(((global::Array)(__fn_dyn1)))))));
            global::maglev.MagLevArray arr  = global::maglev.MagLevArray.create();
                        #line 57 "/my-component/src/persistence/MagLevConverter.hx"
            {
                                #line 57 "/my-component/src/persistence/MagLevConverter.hx"
                int _g = 0;
                                #line 57 "/my-component/src/persistence/MagLevConverter.hx"
                while ((_g < args.length))
                {
                                        #line 57 "/my-component/src/persistence/MagLevConverter.hx"
                    object arg = args[_g];
                                        #line 57 "/my-component/src/persistence/MagLevConverter.hx"
                    ++_g;
                    arr.push(global::persistence.MagLevConverter.convertToMagLev(arg));
                }
            }

                        #line 60 "/my-component/src/persistence/MagLevConverter.hx"
            global::maglev.MagLevResult ret = this.y5.call(arr);
            ret.onError(new global::persistence.MagLevConverter_convertToHaxe_61__Fun(ret));
                        #line 64 "/my-component/src/persistence/MagLevConverter.hx"
            ret.onResult(new global::persistence.MagLevConverter_convertToHaxe_64__Fun(callback));
                        #line 55 "/my-component/src/persistence/MagLevConverter.hx"
            return(null);
        }
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked {
                                #line 33 "/opt/haxe/std/haxe/format/JsonPrinter.hx"
                switch (hash)
                {
                case 1225098545:
                {
                                                #line 33 "/opt/haxe/std/haxe/format/JsonPrinter.hx"
                    this.nind = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                                                #line 33 "/opt/haxe/std/haxe/format/JsonPrinter.hx"
                    return(@value);
                }


                case 784433846:
                {
                                                #line 33 "/opt/haxe/std/haxe/format/JsonPrinter.hx"
                    this.pretty = global::haxe.lang.Runtime.toBool(@value);
                                                #line 33 "/opt/haxe/std/haxe/format/JsonPrinter.hx"
                    return(@value);
                }


                case 334695532:
                {
                                                #line 33 "/opt/haxe/std/haxe/format/JsonPrinter.hx"
                    this.indent = global::haxe.lang.Runtime.toString(@value);
                                                #line 33 "/opt/haxe/std/haxe/format/JsonPrinter.hx"
                    return(@value);
                }


                case 404153790:
                {
                                                #line 33 "/opt/haxe/std/haxe/format/JsonPrinter.hx"
                    this.replacer = ((global::haxe.lang.Function)(@value));
                                                #line 33 "/opt/haxe/std/haxe/format/JsonPrinter.hx"
                    return(@value);
                }


                case 4899635:
                {
                                                #line 33 "/opt/haxe/std/haxe/format/JsonPrinter.hx"
                    this.buf = ((global::StringBuf)(@value));
                                                #line 33 "/opt/haxe/std/haxe/format/JsonPrinter.hx"
                    return(@value);
                }


                default:
                {
                                                #line 33 "/opt/haxe/std/haxe/format/JsonPrinter.hx"
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
                        #line default
        }
Beispiel #19
0
 public VarArgsFunction(global::haxe.lang.Function fun) : base(-1, -1)
 {
     unchecked
     {
         this.fun = fun;
     }
 }
Beispiel #20
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked {
                                #line 39 "C:\\HaxeToolkit\\haxe\\std\\haxe\\Timer.hx"
                switch (hash)
                {
                case 5695307:
                {
                                                #line 39 "C:\\HaxeToolkit\\haxe\\std\\haxe\\Timer.hx"
                    this.run = ((global::haxe.lang.Function)(@value));
                                                #line 39 "C:\\HaxeToolkit\\haxe\\std\\haxe\\Timer.hx"
                    return(@value);
                }


                case 1975830554:
                {
                                                #line 39 "C:\\HaxeToolkit\\haxe\\std\\haxe\\Timer.hx"
                    this.@event = ((global::haxe.MainEvent)(@value));
                                                #line 39 "C:\\HaxeToolkit\\haxe\\std\\haxe\\Timer.hx"
                    return(@value);
                }


                default:
                {
                                                #line 39 "C:\\HaxeToolkit\\haxe\\std\\haxe\\Timer.hx"
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
                        #line default
        }
Beispiel #21
0
 public virtual void setFileFilter(global::haxe.lang.Function fileFilter)
 {
     unchecked
     {
         this._fileFilter = fileFilter;
     }
 }
Beispiel #22
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked
            {
                switch (hash)
                {
                case 10018423:
                {
                    this.files = ((global::haxe.root.Array <object>)(global::haxe.root.Array <object> .__hx_cast <object>(((global::haxe.root.Array)(@value)))));
                    return(@value);
                }


                case 943928435:
                {
                    this._fileFilter = ((global::haxe.lang.Function)(@value));
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
Beispiel #23
0
 public virtual void removeRenderFinishedListener(global::haxe.lang.Function listener)
 {
     unchecked
     {
         this._renderFinishedListeners.@remove(listener);
     }
 }
Beispiel #24
0
    public static int findIndex <T>(object it, global::haxe.lang.Function f)
    {
        unchecked {
                        #line 274 "/opt/haxe/std/Lambda.hx"
            int i = 0;
            {
                                #line 275 "/opt/haxe/std/Lambda.hx"
                object v = ((object)(global::haxe.lang.Runtime.callField(it, "iterator", 328878574, null)));
                                #line 275 "/opt/haxe/std/Lambda.hx"
                while (global::haxe.lang.Runtime.toBool(global::haxe.lang.Runtime.callField(v, "hasNext", 407283053, null)))
                {
                                        #line 275 "/opt/haxe/std/Lambda.hx"
                    T v1 = global::haxe.lang.Runtime.genericCast <T>(global::haxe.lang.Runtime.callField(v, "next", 1224901875, null));
                    if (global::haxe.lang.Runtime.toBool(f.__hx_invoke1_o(default(double), v1)))
                    {
                                                #line 277 "/opt/haxe/std/Lambda.hx"
                        return(i);
                    }

                                        #line 278 "/opt/haxe/std/Lambda.hx"
                    ++i;
                }
            }

                        #line 280 "/opt/haxe/std/Lambda.hx"
            return(-1);
        }
                #line default
    }
Beispiel #25
0
 public virtual void addRenderFinishedListener(global::haxe.lang.Function listener)
 {
     unchecked
     {
         this._renderFinishedListeners.push(listener);
     }
 }
Beispiel #26
0
        public static void solve()
        {
            global::System.Console.WriteLine(((object)("Solving Day1")));
            global::Array <string> _this = global::haxe.lang.StringExt.split(global::solutions.Day1.input, "\r\n");

            global::haxe.lang.Function f   = ((global::haxe.lang.Function)(new global::haxe.lang.Closure(typeof(global::Std), "parseInt", 1450317436)));
            global::Array <object>     ret = new global::Array <object>(((object[])(new object[_this.length])));
            {
                int _g  = 0;
                int _g1 = _this.length;
                while ((_g < _g1))
                {
                    int i = _g++;
                    {
                        global::haxe.lang.Null <int> val = global::haxe.lang.Null <object> .ofDynamic <int>(f.__hx_invoke1_o(default(double), ((string)(_this.__a[i]))));

                        ret.__a[i] = (val).toDynamic();
                    }
                }
            }

            global::Array <int> arr = ((global::Array <int>)(global::Array <object> .__hx_cast <int>(((global::Array)(ret)))));

            global::solutions.Day1.solve_a(arr);
            global::solutions.Day1.solve_b(arr);
        }
Beispiel #27
0
    public static global::Array <A> filter <A>(object it, global::haxe.lang.Function f)
    {
                #line 168 "/opt/haxe/std/Lambda.hx"
        global::Array <A> _g = new global::Array <A>(new A[] {});
                #line 168 "/opt/haxe/std/Lambda.hx"
        {
                        #line 168 "/opt/haxe/std/Lambda.hx"
            object x = ((object)(global::haxe.lang.Runtime.callField(it, "iterator", 328878574, null)));
                        #line 168 "/opt/haxe/std/Lambda.hx"
            while (global::haxe.lang.Runtime.toBool(global::haxe.lang.Runtime.callField(x, "hasNext", 407283053, null)))
            {
                                #line 168 "/opt/haxe/std/Lambda.hx"
                A x1 = global::haxe.lang.Runtime.genericCast <A>(global::haxe.lang.Runtime.callField(x, "next", 1224901875, null));
                                #line 168 "/opt/haxe/std/Lambda.hx"
                if (global::haxe.lang.Runtime.toBool(f.__hx_invoke1_o(default(double), x1)))
                {
                                        #line 168 "/opt/haxe/std/Lambda.hx"
                    _g.push(x1);
                }
            }
        }

                #line 168 "/opt/haxe/std/Lambda.hx"
        return(_g);
    }
Beispiel #28
0
        public static double processEvents()
        {
            unchecked {
                                #line 87 "C:\\HaxeToolkit\\haxe\\std\\haxe\\EntryPoint.hx"
                while (true)
                {
                                        #line 89 "C:\\HaxeToolkit\\haxe\\std\\haxe\\EntryPoint.hx"
                    global::haxe.EntryPoint.mutex.acquire();
                    global::haxe.lang.Function f = ((global::haxe.lang.Function)(global::haxe.EntryPoint.pending.shift()));
                                        #line 91 "C:\\HaxeToolkit\\haxe\\std\\haxe\\EntryPoint.hx"
                    global::haxe.EntryPoint.mutex.release();
                                        #line 95 "C:\\HaxeToolkit\\haxe\\std\\haxe\\EntryPoint.hx"
                    if ((f == null))
                    {
                                                #line 96 "C:\\HaxeToolkit\\haxe\\std\\haxe\\EntryPoint.hx"
                        break;
                    }

                                        #line 97 "C:\\HaxeToolkit\\haxe\\std\\haxe\\EntryPoint.hx"
                    ((global::haxe.lang.Function)(f)).__hx_invoke0_o();
                }

                                #line 99 "C:\\HaxeToolkit\\haxe\\std\\haxe\\EntryPoint.hx"
                double time = global::haxe.MainLoop.tick();
                if ((!(global::haxe.MainLoop.hasEvents()) && (global::haxe.EntryPoint.threadCount == 0)))
                {
                                        #line 101 "C:\\HaxeToolkit\\haxe\\std\\haxe\\EntryPoint.hx"
                    return((double)(-1));
                }

                                #line 102 "C:\\HaxeToolkit\\haxe\\std\\haxe\\EntryPoint.hx"
                return(time);
            }
                        #line default
        }
Beispiel #29
0
 public virtual void onLoginC(global::web.proto.HallEvent e)
 {
     unchecked {
                         #line 86 "D:\\project\\sangong\\sangong\\src\\Comments.hx"
         //  用户登录成功,如果检测到player.roomid有值,跳对应的游戏房间。                                             ;
                         #line 1274 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx"
         object player = e.player;
         global::haxe.Log.trace.__hx_invoke2_o(default(double), "\u767b\u9646\u6210\u529f", default(double), new global::haxe.lang.DynamicObject(new int[] { 302979532, 1547539107, 1648581351 }, new object[] { "onLoginC", "gameRoom.Hall", "src/gameRoom/Hall.hx" }, new int[] { 1981972957 }, new double[] { ((double)(1275)) }));
                         #line 1276 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx"
         global::haxe.lang.Function replacer = null;
                         #line 1276 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx"
         string space = null;
                         #line 1276 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx"
         global::haxe.Log.trace.__hx_invoke2_o(default(double), global::haxe.format.JsonPrinter.print(((object)(player)), replacer, space), default(double), new global::haxe.lang.DynamicObject(new int[] { 302979532, 1547539107, 1648581351 }, new object[] { "onLoginC", "gameRoom.Hall", "src/gameRoom/Hall.hx" }, new int[] { 1981972957 }, new double[] { ((double)(1276)) }));
                         #line 1278 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx"
         object tiny_pay = ((object)(2));
                         #line 1278 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx"
         object tiny_owerID = global::haxe.lang.Runtime.getField(player, "id", 23515, true);
                         #line 1278 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx"
         object tiny_playType = ((object)(0));
                         #line 1278 "D:\\project\\sangong\\sangong\\src\\gameRoom\\Hall.hx"
         object tiny_gameID = ((object)(1001));
     }
                 #line default
 }
Beispiel #30
0
        public override object __hx_invokeDynamic(object[] dynArgs)
        {
                        #line 49 "C:\\HaxeToolkit\\haxe\\std\\cs\\internal\\Function.hx"
            global::haxe.lang.Function tmp = this.fun;
                        #line 49 "C:\\HaxeToolkit\\haxe\\std\\cs\\internal\\Function.hx"
            object[] ret = new object[(dynArgs as global::System.Array).Length];
                        #line 49 "C:\\HaxeToolkit\\haxe\\std\\cs\\internal\\Function.hx"
            {
                                #line 49 "C:\\HaxeToolkit\\haxe\\std\\cs\\internal\\Function.hx"
                int _g = 0;
                                #line 49 "C:\\HaxeToolkit\\haxe\\std\\cs\\internal\\Function.hx"
                int _g1 = (dynArgs as global::System.Array).Length;
                                #line 49 "C:\\HaxeToolkit\\haxe\\std\\cs\\internal\\Function.hx"
                while ((_g < _g1))
                {
                                        #line 49 "C:\\HaxeToolkit\\haxe\\std\\cs\\internal\\Function.hx"
                    int i = _g++;
                                        #line 49 "C:\\HaxeToolkit\\haxe\\std\\cs\\internal\\Function.hx"
                    ret[i] = ((object)(dynArgs[i]));
                }
            }

                        #line 49 "C:\\HaxeToolkit\\haxe\\std\\cs\\internal\\Function.hx"
            object[] dyn = ret;
                        #line 49 "C:\\HaxeToolkit\\haxe\\std\\cs\\internal\\Function.hx"
            return((object)(tmp.__hx_invoke1_o(default(double), new global::haxe.root.Array(((object[])(dyn))))));
        }
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 1692978337:
					{
						this.beamingHelper = ((global::alphatab.rendering.utils.BeamingHelper) (@value) );
						return @value;
					}
					
					
					case 1091821942:
					{
						this.beat = ((global::alphatab.model.Beat) (@value) );
						return @value;
					}
					
					
					case 108520940:
					{
						this.beatEffects = ((global::haxe.ds.StringMap<object>) (global::haxe.ds.StringMap<object>.__hx_cast<object>(((global::haxe.ds.StringMap) (@value) ))) );
						return @value;
					}
					
					
					case 186102306:
					{
						this.downLineX = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1366752649:
					{
						this.upLineX = ((int) (global::haxe.lang.Runtime.toInt(@value)) );
						return @value;
					}
					
					
					case 1464822705:
					{
						this.spacingChanged = ((global::haxe.lang.Function) (@value) );
						return @value;
					}
					
					
					case 1228566710:
					{
						this.maxNote = ((object) (@value) );
						return @value;
					}
					
					
					case 974358180:
					{
						this.minNote = ((object) (@value) );
						return @value;
					}
					
					
					case 1270934932:
					{
						this._tremoloPicking = ((global::alphatab.rendering.Glyph) (@value) );
						return @value;
					}
					
					
					case 1381203243:
					{
						this._noteLookup = ((global::haxe.ds.IntMap<object>) (global::haxe.ds.IntMap<object>.__hx_cast<object>(((global::haxe.ds.IntMap) (@value) ))) );
						return @value;
					}
					
					
					case 972910470:
					{
						this._infos = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
		public override   object __hx_setField(string field, int hash, object @value, bool handleProperties)
		{
			unchecked 
			{
				switch (hash)
				{
					case 10018423:
					{
						this.files = ((global::haxe.root.Array<object>) (global::haxe.root.Array<object>.__hx_cast<object>(((global::haxe.root.Array) (@value) ))) );
						return @value;
					}
					
					
					case 943928435:
					{
						this._fileFilter = ((global::haxe.lang.Function) (@value) );
						return @value;
					}
					
					
					default:
					{
						return base.__hx_setField(field, hash, @value, handleProperties);
					}
					
				}
				
			}
		}
		public virtual   void setFileFilter(global::haxe.lang.Function fileFilter)
		{
			unchecked 
			{
				this._fileFilter = fileFilter;
			}
		}