public virtual void GetHighestBids(string auctionId, int numBids, global::haxe.lang.Function callback) { #line 58 "/my-component/src/englishauction/BidRepository.hx" global::maglev.MagLevArray args = global::maglev.MagLevArray.create(); args.push(global::maglev.MagLevString.fromString(auctionId)); #line 60 "/my-component/src/englishauction/BidRepository.hx" args.push(global::maglev.MagLevNumber.fromInt(numBids)); global::maglev.MagLevResult res = this.bus.call("Persistence.EnglishAuction.Bid.FindByHighestPriceForAuction", args); #line 62 "/my-component/src/englishauction/BidRepository.hx" res.onError((((global::englishauction.BidRepository_GetHighestBids_62__Fun.__hx_current != null)) ? (global::englishauction.BidRepository_GetHighestBids_62__Fun.__hx_current) : (global::englishauction.BidRepository_GetHighestBids_62__Fun.__hx_current = ((global::englishauction.BidRepository_GetHighestBids_62__Fun)(new global::englishauction.BidRepository_GetHighestBids_62__Fun()))))); #line 65 "/my-component/src/englishauction/BidRepository.hx" res.onResult(new global::englishauction.BidRepository_GetHighestBids_65__Fun(callback, auctionId)); }
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_invoke1_o(double __fn_float1, object __fn_dyn1) { #line 46 "/my-component/src/shoppingcart/ShoppingCart.hx" global::Array <object> items = (((__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 48 "/my-component/src/shoppingcart/ShoppingCart.hx" { #line 48 "/my-component/src/shoppingcart/ShoppingCart.hx" int _g = 0; #line 48 "/my-component/src/shoppingcart/ShoppingCart.hx" while ((_g < items.length)) { #line 48 "/my-component/src/shoppingcart/ShoppingCart.hx" object item = items[_g]; #line 48 "/my-component/src/shoppingcart/ShoppingCart.hx" ++_g; global::maglev.MagLevObject obj = global::maglev.MagLevObject.create(); #line 50 "/my-component/src/shoppingcart/ShoppingCart.hx" obj.@set("idx", global::maglev.MagLevNumber.fromInt(((int)(global::haxe.lang.Runtime.getField_f(item, "idx", 5243965, true))))); obj.@set("itemId", global::maglev.MagLevString.fromString(global::haxe.lang.Runtime.toString(global::haxe.lang.Runtime.getField(item, "itemId", 151629774, true)))); #line 52 "/my-component/src/shoppingcart/ShoppingCart.hx" obj.@set("qty", global::maglev.MagLevNumber.fromFloat(global::haxe.lang.Runtime.getField_f(item, "qty", 5645366, true))); obj.@set("price", global::maglev.MagLevNumber.fromFloat(global::haxe.lang.Runtime.getField_f(item, "price", 1217089161, true))); #line 54 "/my-component/src/shoppingcart/ShoppingCart.hx" arr.push(obj); } } #line 56 "/my-component/src/shoppingcart/ShoppingCart.hx" this.result.setResult(arr); #line 46 "/my-component/src/shoppingcart/ShoppingCart.hx" return(null); }
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)); }
public virtual void FindOpenAuctions(int page, int perpage, string sort, bool asc, global::haxe.lang.Function callback) { #line 132 "/my-component/src/englishauction/AuctionRepository.hx" global::Array <object> auctions = new global::Array <object>(); global::maglev.MagLevArray args = global::maglev.MagLevArray.create(); #line 134 "/my-component/src/englishauction/AuctionRepository.hx" args.push(global::maglev.MagLevNumber.fromInt(page)); args.push(global::maglev.MagLevNumber.fromInt(perpage)); #line 136 "/my-component/src/englishauction/AuctionRepository.hx" args.push(global::maglev.MagLevString.fromString(sort)); args.push(global::maglev.MagLevBoolean.fromBool(asc)); #line 138 "/my-component/src/englishauction/AuctionRepository.hx" global::maglev.MagLevResult res = this.bus.call("Persistence.EnglishAuction.Auction.FindOpen", args); res.onError((((global::englishauction.AuctionRepository_FindOpenAuctions_139__Fun.__hx_current != null)) ? (global::englishauction.AuctionRepository_FindOpenAuctions_139__Fun.__hx_current) : (global::englishauction.AuctionRepository_FindOpenAuctions_139__Fun.__hx_current = ((global::englishauction.AuctionRepository_FindOpenAuctions_139__Fun)(new global::englishauction.AuctionRepository_FindOpenAuctions_139__Fun()))))); #line 142 "/my-component/src/englishauction/AuctionRepository.hx" res.onResult(new global::englishauction.AuctionRepository_FindOpenAuctions_142__Fun(res, callback, auctions)); }
public override object __hx_invoke1_o(double __fn_float1, object __fn_dyn1) { unchecked { #line 52 "/my-component/src/electricalc/ElectriCalc.hx" global::maglev.MagLevArray args = (((__fn_dyn1 == global::haxe.lang.Runtime.undefined)) ? (((global::maglev.MagLevArray)(((object)(__fn_float1))))) : (((global::maglev.MagLevArray)(__fn_dyn1)))); global::maglev.MagLevArray data = global::maglev.MagLevArray.create(); #line 54 "/my-component/src/electricalc/ElectriCalc.hx" data.push(global::maglev.MagLevString.fromString("_not_implemented_")); data.push(global::maglev.MagLevString.fromString("ElectricalCalculator.CalculateThreePhasePower")); #line 56 "/my-component/src/electricalc/ElectriCalc.hx" data.push(global::maglev.MagLevString.fromString("electricalc")); this.bus.call("MindPowered.Telemetry.Send", data); #line 58 "/my-component/src/electricalc/ElectriCalc.hx" global::maglev.MagLevError err = global::maglev.MagLevError.create(-20000, "You are trying to use the \'ElectricalCalculator.CalculateThreePhasePower\' method but it\'s not quite done yet. Please email [email protected] to find out when it will be done.", data); global::maglev.MagLevResult result = global::maglev.MagLevResult.fromError(err); #line 60 "/my-component/src/electricalc/ElectriCalc.hx" return(result); } #line default }
public override object __hx_invoke1_o(double __fn_float1, object __fn_dyn1) { unchecked { #line 21 "/my-component/src/financecalculator/FinanceCalculator.hx" global::maglev.MagLevArray args = (((__fn_dyn1 == global::haxe.lang.Runtime.undefined)) ? (((global::maglev.MagLevArray)(((object)(__fn_float1))))) : (((global::maglev.MagLevArray)(__fn_dyn1)))); global::maglev.MagLevArray data = global::maglev.MagLevArray.create(); #line 23 "/my-component/src/financecalculator/FinanceCalculator.hx" data.push(global::maglev.MagLevString.fromString("_not_implemented_")); data.push(global::maglev.MagLevString.fromString("FinanceCalculator.PresentValueOfFutureMoney")); #line 25 "/my-component/src/financecalculator/FinanceCalculator.hx" data.push(global::maglev.MagLevString.fromString("financecalculator")); this.bus.call("MindPowered.Telemetry.Send", data); #line 27 "/my-component/src/financecalculator/FinanceCalculator.hx" global::maglev.MagLevError err = global::maglev.MagLevError.create(-20000, "You are trying to use the \'FinanceCalculator.PresentValueOfFutureMoney\' method but it\'s not quite done yet. Please email [email protected] to find out when it will be done.", data); global::maglev.MagLevResult result = global::maglev.MagLevResult.fromError(err); #line 29 "/my-component/src/financecalculator/FinanceCalculator.hx" return(result); } #line default }
public override object __hx_invoke1_o(double __fn_float1, object __fn_dyn1) { unchecked { #line 107 "/my-component/src/invoices/Invoices.hx" global::maglev.MagLevArray args = (((__fn_dyn1 == global::haxe.lang.Runtime.undefined)) ? (((global::maglev.MagLevArray)(((object)(__fn_float1))))) : (((global::maglev.MagLevArray)(__fn_dyn1)))); global::maglev.MagLevArray data = global::maglev.MagLevArray.create(); #line 109 "/my-component/src/invoices/Invoices.hx" data.push(global::maglev.MagLevString.fromString("_not_implemented_")); data.push(global::maglev.MagLevString.fromString("Invoices.GetInvoicesByClient")); #line 111 "/my-component/src/invoices/Invoices.hx" data.push(global::maglev.MagLevString.fromString("invoices")); this.bus.call("MindPowered.Telemetry.Send", data); #line 113 "/my-component/src/invoices/Invoices.hx" global::maglev.MagLevError err = global::maglev.MagLevError.create(-20000, "You are trying to use the \'Invoices.GetInvoicesByClient\' method but it\'s not quite done yet. Please email [email protected] to find out when it will be done.", data); global::maglev.MagLevResult result = global::maglev.MagLevResult.fromError(err); #line 115 "/my-component/src/invoices/Invoices.hx" return(result); } #line default }
public virtual void FindById(string auctionId, global::haxe.lang.Function callback) { #line 41 "/my-component/src/englishauction/AuctionRepository.hx" global::maglev.MagLevArray args = global::maglev.MagLevArray.create(); args.push(global::maglev.MagLevString.fromString(auctionId)); #line 43 "/my-component/src/englishauction/AuctionRepository.hx" global::maglev.MagLevResult res = this.bus.call("Persistence.EnglishAuction.Auction.FindById", args); res.onError((((global::englishauction.AuctionRepository_FindById_44__Fun.__hx_current != null)) ? (global::englishauction.AuctionRepository_FindById_44__Fun.__hx_current) : (global::englishauction.AuctionRepository_FindById_44__Fun.__hx_current = ((global::englishauction.AuctionRepository_FindById_44__Fun)(new global::englishauction.AuctionRepository_FindById_44__Fun()))))); #line 47 "/my-component/src/englishauction/AuctionRepository.hx" res.onResult(new global::englishauction.AuctionRepository_FindById_47__Fun(res, callback)); }
public virtual void GetNumberOfBids(string auctionId, global::haxe.lang.Function callback) { #line 44 "/my-component/src/englishauction/BidRepository.hx" global::maglev.MagLevArray args = global::maglev.MagLevArray.create(); args.push(global::maglev.MagLevString.fromString(auctionId)); #line 46 "/my-component/src/englishauction/BidRepository.hx" global::maglev.MagLevResult ret = this.bus.call("Persistence.EnglishAuction.Bid.CountForAuction", args); int count = 0; #line 48 "/my-component/src/englishauction/BidRepository.hx" ret.onResult(new global::englishauction.BidRepository_GetNumberOfBids_48__Fun(callback)); #line 52 "/my-component/src/englishauction/BidRepository.hx" ret.onError((((global::englishauction.BidRepository_GetNumberOfBids_52__Fun.__hx_current != null)) ? (global::englishauction.BidRepository_GetNumberOfBids_52__Fun.__hx_current) : (global::englishauction.BidRepository_GetNumberOfBids_52__Fun.__hx_current = ((global::englishauction.BidRepository_GetNumberOfBids_52__Fun)(new global::englishauction.BidRepository_GetNumberOfBids_52__Fun()))))); }
public virtual void Add(global::englishauction.BidModel bid, global::haxe.lang.Function callback) { #line 14 "/my-component/src/englishauction/BidRepository.hx" global::maglev.MagLevObject data = global::maglev.MagLevObject.create(); data.@set("auctionId", global::maglev.MagLevString.fromString(bid.auctionId)); #line 16 "/my-component/src/englishauction/BidRepository.hx" data.@set("userId", global::maglev.MagLevString.fromString(bid.userId)); data.@set("price", global::maglev.MagLevNumber.fromFloat(bid.price)); #line 18 "/my-component/src/englishauction/BidRepository.hx" global::maglev.MagLevArray args = global::maglev.MagLevArray.create(); args.push(data); #line 20 "/my-component/src/englishauction/BidRepository.hx" global::maglev.MagLevResult res = this.bus.call("Persistence.EnglishAuction.Bid.New", args); res.onResult(new global::englishauction.BidRepository_Add_21__Fun(callback)); #line 25 "/my-component/src/englishauction/BidRepository.hx" res.onError((((global::englishauction.BidRepository_Add_25__Fun.__hx_current != null)) ? (global::englishauction.BidRepository_Add_25__Fun.__hx_current) : (global::englishauction.BidRepository_Add_25__Fun.__hx_current = ((global::englishauction.BidRepository_Add_25__Fun)(new global::englishauction.BidRepository_Add_25__Fun()))))); }
public override object __hx_invoke1_o(double __fn_float1, object __fn_dyn1) { unchecked { #line 20 "/my-component/src/carloancalculator/CarLoanCalculator.hx" global::maglev.MagLevArray args = (((__fn_dyn1 == global::haxe.lang.Runtime.undefined)) ? (((global::maglev.MagLevArray)(((object)(__fn_float1))))) : (((global::maglev.MagLevArray)(__fn_dyn1)))); double newCarPrice = (((global::maglev.MagLevNumber)(args.@get(0)))).getFloat(); #line 22 "/my-component/src/carloancalculator/CarLoanCalculator.hx" double tradeInAllowance = (((global::maglev.MagLevNumber)(args.@get(1)))).getFloat(); double tradeInLoanBalance = (((global::maglev.MagLevNumber)(args.@get(2)))).getFloat(); #line 24 "/my-component/src/carloancalculator/CarLoanCalculator.hx" double downPaymentAndRebates = (((global::maglev.MagLevNumber)(args.@get(3)))).getFloat(); double loanDuration = (((global::maglev.MagLevNumber)(args.@get(4)))).getFloat(); #line 26 "/my-component/src/carloancalculator/CarLoanCalculator.hx" double salesTaxRate = (((global::maglev.MagLevNumber)(args.@get(5)))).getFloat(); double interestRate = (((global::maglev.MagLevNumber)(args.@get(6)))).getFloat(); #line 28 "/my-component/src/carloancalculator/CarLoanCalculator.hx" global::Array <object> payments = this._gthis.calc.calcPayments(newCarPrice, tradeInAllowance, tradeInLoanBalance, downPaymentAndRebates, loanDuration, salesTaxRate, interestRate); #line 35 "/my-component/src/carloancalculator/CarLoanCalculator.hx" global::maglev.MagLevArray arr = global::maglev.MagLevArray.create(); { #line 36 "/my-component/src/carloancalculator/CarLoanCalculator.hx" int _g = 0; #line 36 "/my-component/src/carloancalculator/CarLoanCalculator.hx" while ((_g < payments.length)) { #line 36 "/my-component/src/carloancalculator/CarLoanCalculator.hx" object payment = payments[_g]; #line 36 "/my-component/src/carloancalculator/CarLoanCalculator.hx" ++_g; global::maglev.MagLevObject obj = global::maglev.MagLevObject.create(); #line 38 "/my-component/src/carloancalculator/CarLoanCalculator.hx" obj.@set("frequency", global::maglev.MagLevString.fromString(global::haxe.lang.Runtime.toString(global::haxe.lang.Runtime.getField(payment, "frequency", 1005224604, true)))); obj.@set("payment", global::maglev.MagLevNumber.fromFloat(global::haxe.lang.Runtime.getField_f(payment, "payment", 1842834182, true))); #line 40 "/my-component/src/carloancalculator/CarLoanCalculator.hx" obj.@set("interest", global::maglev.MagLevNumber.fromFloat(global::haxe.lang.Runtime.getField_f(payment, "interest", 678404778, true))); arr.push(obj); } } #line 43 "/my-component/src/carloancalculator/CarLoanCalculator.hx" return(global::maglev.MagLevResult.fromResult(arr)); } #line default }
public virtual void Add(global::englishauction.AuctionModel auction, global::haxe.lang.Function callback) { #line 14 "/my-component/src/englishauction/AuctionRepository.hx" global::maglev.MagLevObject obj = global::maglev.MagLevObject.create(); obj.@set("start", global::maglev.MagLevNumber.fromInt(auction.start)); #line 16 "/my-component/src/englishauction/AuctionRepository.hx" obj.@set("end", global::maglev.MagLevNumber.fromInt(auction.end)); obj.@set("startingPrice", global::maglev.MagLevNumber.fromFloat(auction.startingPrice)); #line 18 "/my-component/src/englishauction/AuctionRepository.hx" obj.@set("reservePrice", global::maglev.MagLevNumber.fromFloat(auction.reservePrice)); obj.@set("priceIncrement", global::maglev.MagLevNumber.fromFloat(auction.priceIncrement)); #line 20 "/my-component/src/englishauction/AuctionRepository.hx" global::maglev.MagLevArray args = global::maglev.MagLevArray.create(); args.push(obj); #line 22 "/my-component/src/englishauction/AuctionRepository.hx" global::maglev.MagLevResult res = this.bus.call("Persistence.EnglishAuction.Auction.CreateNew", args); res.onResult(new global::englishauction.AuctionRepository_Add_23__Fun(callback)); #line 27 "/my-component/src/englishauction/AuctionRepository.hx" res.onError((((global::englishauction.AuctionRepository_Add_27__Fun.__hx_current != null)) ? (global::englishauction.AuctionRepository_Add_27__Fun.__hx_current) : (global::englishauction.AuctionRepository_Add_27__Fun.__hx_current = ((global::englishauction.AuctionRepository_Add_27__Fun)(new global::englishauction.AuctionRepository_Add_27__Fun()))))); }
public virtual void emit(string @event, global::Array <object> args) { #line 99 "/my-component/src/maglev/MagLevCs.hx" global::maglev.MagLevArray myargs = new global::maglev.MagLevArray(); { #line 100 "/my-component/src/maglev/MagLevCs.hx" int _g = 0; #line 100 "/my-component/src/maglev/MagLevCs.hx" while ((_g < args.length)) { #line 100 "/my-component/src/maglev/MagLevCs.hx" object arg = args[_g]; #line 100 "/my-component/src/maglev/MagLevCs.hx" ++_g; myargs.push(this.convertToMagLev(arg)); } } #line 103 "/my-component/src/maglev/MagLevCs.hx" this.maglev.emit(@event, myargs); }
public virtual void FindAuctionsEnding(int endfrom, int endto, int page, int perpage, string sort, bool asc, global::haxe.lang.Function callback) { #line 65 "/my-component/src/englishauction/AuctionRepository.hx" global::Array <object> auctions = new global::Array <object>(); global::maglev.MagLevArray args = global::maglev.MagLevArray.create(); #line 67 "/my-component/src/englishauction/AuctionRepository.hx" args.push(global::maglev.MagLevNumber.fromInt(endfrom)); args.push(global::maglev.MagLevNumber.fromInt(endto)); #line 69 "/my-component/src/englishauction/AuctionRepository.hx" args.push(global::maglev.MagLevNumber.fromInt(page)); args.push(global::maglev.MagLevNumber.fromInt(perpage)); #line 71 "/my-component/src/englishauction/AuctionRepository.hx" args.push(global::maglev.MagLevString.fromString(sort)); args.push(global::maglev.MagLevBoolean.fromBool(asc)); #line 73 "/my-component/src/englishauction/AuctionRepository.hx" global::maglev.MagLevResult res = this.bus.call("Persistence.EnglishAuction.Auction.FindEnding", args); res.onError((((global::englishauction.AuctionRepository_FindAuctionsEnding_74__Fun.__hx_current != null)) ? (global::englishauction.AuctionRepository_FindAuctionsEnding_74__Fun.__hx_current) : (global::englishauction.AuctionRepository_FindAuctionsEnding_74__Fun.__hx_current = ((global::englishauction.AuctionRepository_FindAuctionsEnding_74__Fun)(new global::englishauction.AuctionRepository_FindAuctionsEnding_74__Fun()))))); #line 77 "/my-component/src/englishauction/AuctionRepository.hx" res.onResult(new global::englishauction.AuctionRepository_FindAuctionsEnding_77__Fun(callback, auctions)); }
public static global::maglev.MagLevAny convertToMagLev(object x) { #line 77 "/my-component/src/persistence/MagLevConverter.hx" if ((x == null)) { #line 78 "/my-component/src/persistence/MagLevConverter.hx" return(global::maglev.MagLevNull.create()); } else if (global::Std.isOfType(((object)(x)), ((object)(typeof(bool))))) { #line 81 "/my-component/src/persistence/MagLevConverter.hx" return(global::maglev.MagLevBoolean.fromBool(global::haxe.lang.Runtime.toBool(x))); } else if (global::Std.isOfType(((object)(x)), ((object)(typeof(string))))) { #line 84 "/my-component/src/persistence/MagLevConverter.hx" return(global::maglev.MagLevString.fromString(global::haxe.lang.Runtime.toString(x))); } else if (global::Std.isOfType(((object)(x)), ((object)(typeof(int))))) { #line 87 "/my-component/src/persistence/MagLevConverter.hx" return(global::maglev.MagLevNumber.fromInt(((int)(global::haxe.lang.Runtime.toInt(x))))); } else if (global::Std.isOfType(((object)(x)), ((object)(typeof(double))))) { #line 90 "/my-component/src/persistence/MagLevConverter.hx" return(global::maglev.MagLevNumber.fromFloat(((double)(global::haxe.lang.Runtime.toDouble(((object)(x))))))); } else if ((((object)(x)) is global::haxe.lang.Function)) { #line 93 "/my-component/src/persistence/MagLevConverter.hx" global::haxe.lang.Function f = new global::persistence.MagLevConverter_convertToMagLev_93__Fun(x); #line 103 "/my-component/src/persistence/MagLevConverter.hx" return(global::maglev.MagLevFunction.fromFunction(f)); } else if (global::Std.isOfType(((object)(x)), ((object)(typeof(global::Array <object>))))) { #line 106 "/my-component/src/persistence/MagLevConverter.hx" global::maglev.MagLevArray arr = global::maglev.MagLevArray.create(); global::Array <object> y = ((global::Array <object>)(global::Array <object> .__hx_cast <object>(((global::Array)(((object)(x))))))); #line 108 "/my-component/src/persistence/MagLevConverter.hx" { #line 108 "/my-component/src/persistence/MagLevConverter.hx" int _g = 0; #line 108 "/my-component/src/persistence/MagLevConverter.hx" while ((_g < y.length)) { #line 108 "/my-component/src/persistence/MagLevConverter.hx" object item = y[_g]; #line 108 "/my-component/src/persistence/MagLevConverter.hx" ++_g; arr.push(global::persistence.MagLevConverter.convertToMagLev(item)); } } #line 111 "/my-component/src/persistence/MagLevConverter.hx" return(arr); } else if (global::Std.isOfType(((object)(x)), ((object)(typeof(global::haxe.ds.StringMap <object>))))) { #line 114 "/my-component/src/persistence/MagLevConverter.hx" global::haxe.ds.StringMap <object> map = ((global::haxe.ds.StringMap <object>)(global::haxe.ds.StringMap <object> .__hx_cast <object>(((global::haxe.ds.StringMap)(((object)(x))))))); global::maglev.MagLevObject obj = global::maglev.MagLevObject.create(); #line 116 "/my-component/src/persistence/MagLevConverter.hx" { #line 116 "/my-component/src/persistence/MagLevConverter.hx" object key = ((object)(new global::haxe.ds._StringMap.StringMapKeyIterator <object>(((global::haxe.ds.StringMap <object>)(map))))); #line 116 "/my-component/src/persistence/MagLevConverter.hx" while (global::haxe.lang.Runtime.toBool(global::haxe.lang.Runtime.callField(key, "hasNext", 407283053, null))) { #line 116 "/my-component/src/persistence/MagLevConverter.hx" string key1 = global::haxe.lang.Runtime.toString(global::haxe.lang.Runtime.callField(key, "next", 1224901875, null)); obj.@set(key1, global::persistence.MagLevConverter.convertToMagLev((map.@get(key1)).toDynamic())); } } #line 119 "/my-component/src/persistence/MagLevConverter.hx" return(obj); } else if (global::Reflect.isObject(x)) { #line 122 "/my-component/src/persistence/MagLevConverter.hx" global::maglev.MagLevObject obj1 = global::maglev.MagLevObject.create(); { #line 123 "/my-component/src/persistence/MagLevConverter.hx" int _g1 = 0; #line 123 "/my-component/src/persistence/MagLevConverter.hx" global::Array <string> _g2 = global::Reflect.fields(x); #line 123 "/my-component/src/persistence/MagLevConverter.hx" while ((_g1 < _g2.length)) { #line 123 "/my-component/src/persistence/MagLevConverter.hx" string field = _g2[_g1]; #line 123 "/my-component/src/persistence/MagLevConverter.hx" ++_g1; object val = global::Reflect.getProperty(x, field); #line 125 "/my-component/src/persistence/MagLevConverter.hx" obj1.@set(field, global::persistence.MagLevConverter.convertToMagLev(val)); } } #line 127 "/my-component/src/persistence/MagLevConverter.hx" return(obj1); } else { #line 130 "/my-component/src/persistence/MagLevConverter.hx" throw ((global::System.Exception)(global::haxe.Exception.thrown("convertToMagLev: unknown type"))); } }