Kernel-Objects.deploy.js 109 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856
  1. smalltalk.addPackage('Kernel-Objects');
  2. smalltalk.addClass('Object', smalltalk.nil, [], 'Kernel-Objects');
  3. smalltalk.addMethod(
  4. "__minus_gt",
  5. smalltalk.method({
  6. selector: "->",
  7. fn: function (anObject) {
  8. var self=this;
  9. function $Association(){return smalltalk.Association||(typeof Association=="undefined"?nil:Association)}
  10. return smalltalk.withContext(function($ctx1) {
  11. var $1;
  12. $1=_st($Association())._key_value_(self,anObject);
  13. return $1;
  14. }, function($ctx1) {$ctx1.fill(self,"->",{anObject:anObject},smalltalk.Object)});},
  15. messageSends: ["key:value:"]}),
  16. smalltalk.Object);
  17. smalltalk.addMethod(
  18. "__eq",
  19. smalltalk.method({
  20. selector: "=",
  21. fn: function (anObject) {
  22. var self=this;
  23. return smalltalk.withContext(function($ctx1) {
  24. var $1;
  25. $1=_st(self).__eq_eq(anObject);
  26. return $1;
  27. }, function($ctx1) {$ctx1.fill(self,"=",{anObject:anObject},smalltalk.Object)});},
  28. messageSends: ["=="]}),
  29. smalltalk.Object);
  30. smalltalk.addMethod(
  31. "__eq_eq",
  32. smalltalk.method({
  33. selector: "==",
  34. fn: function (anObject) {
  35. var self=this;
  36. return smalltalk.withContext(function($ctx1) {
  37. var $1;
  38. $1=_st(_st(self)._identityHash()).__eq(_st(anObject)._identityHash());
  39. return $1;
  40. }, function($ctx1) {$ctx1.fill(self,"==",{anObject:anObject},smalltalk.Object)});},
  41. messageSends: ["=", "identityHash"]}),
  42. smalltalk.Object);
  43. smalltalk.addMethod(
  44. "_asJSON",
  45. smalltalk.method({
  46. selector: "asJSON",
  47. fn: function () {
  48. var self=this;
  49. var variables;
  50. function $HashedCollection(){return smalltalk.HashedCollection||(typeof HashedCollection=="undefined"?nil:HashedCollection)}
  51. return smalltalk.withContext(function($ctx1) {
  52. var $1;
  53. variables=_st($HashedCollection())._new();
  54. _st(_st(_st(self)._class())._allInstanceVariableNames())._do_((function(each){
  55. return smalltalk.withContext(function($ctx2) {
  56. return _st(variables)._at_put_(each,_st(_st(self)._instVarAt_(each))._asJSON());
  57. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  58. $1=variables;
  59. return $1;
  60. }, function($ctx1) {$ctx1.fill(self,"asJSON",{variables:variables},smalltalk.Object)});},
  61. messageSends: ["new", "do:", "at:put:", "asJSON", "instVarAt:", "allInstanceVariableNames", "class"]}),
  62. smalltalk.Object);
  63. smalltalk.addMethod(
  64. "_asJSONString",
  65. smalltalk.method({
  66. selector: "asJSONString",
  67. fn: function () {
  68. var self=this;
  69. function $JSON(){return smalltalk.JSON||(typeof JSON=="undefined"?nil:JSON)}
  70. return smalltalk.withContext(function($ctx1) {
  71. var $1;
  72. $1=_st($JSON())._stringify_(_st(self)._asJSON());
  73. return $1;
  74. }, function($ctx1) {$ctx1.fill(self,"asJSONString",{},smalltalk.Object)});},
  75. messageSends: ["stringify:", "asJSON"]}),
  76. smalltalk.Object);
  77. smalltalk.addMethod(
  78. "_asJavascript",
  79. smalltalk.method({
  80. selector: "asJavascript",
  81. fn: function () {
  82. var self=this;
  83. return smalltalk.withContext(function($ctx1) {
  84. var $1;
  85. $1=_st(self)._asString();
  86. return $1;
  87. }, function($ctx1) {$ctx1.fill(self,"asJavascript",{},smalltalk.Object)});},
  88. messageSends: ["asString"]}),
  89. smalltalk.Object);
  90. smalltalk.addMethod(
  91. "_asString",
  92. smalltalk.method({
  93. selector: "asString",
  94. fn: function () {
  95. var self=this;
  96. return smalltalk.withContext(function($ctx1) {
  97. var $1;
  98. $1=_st(self)._printString();
  99. return $1;
  100. }, function($ctx1) {$ctx1.fill(self,"asString",{},smalltalk.Object)});},
  101. messageSends: ["printString"]}),
  102. smalltalk.Object);
  103. smalltalk.addMethod(
  104. "_basicAt_",
  105. smalltalk.method({
  106. selector: "basicAt:",
  107. fn: function (aString) {
  108. var self=this;
  109. return smalltalk.withContext(function($ctx1) {
  110. return self[aString];
  111. return self}, function($ctx1) {$ctx1.fill(self,"basicAt:",{aString:aString},smalltalk.Object)});},
  112. messageSends: []}),
  113. smalltalk.Object);
  114. smalltalk.addMethod(
  115. "_basicAt_put_",
  116. smalltalk.method({
  117. selector: "basicAt:put:",
  118. fn: function (aString, anObject) {
  119. var self=this;
  120. return smalltalk.withContext(function($ctx1) {
  121. return self[aString] = anObject;
  122. return self}, function($ctx1) {$ctx1.fill(self,"basicAt:put:",{aString:aString,anObject:anObject},smalltalk.Object)});},
  123. messageSends: []}),
  124. smalltalk.Object);
  125. smalltalk.addMethod(
  126. "_basicDelete_",
  127. smalltalk.method({
  128. selector: "basicDelete:",
  129. fn: function (aString) {
  130. var self=this;
  131. return smalltalk.withContext(function($ctx1) {
  132. delete self[aString]; return aString;
  133. return self}, function($ctx1) {$ctx1.fill(self,"basicDelete:",{aString:aString},smalltalk.Object)});},
  134. messageSends: []}),
  135. smalltalk.Object);
  136. smalltalk.addMethod(
  137. "_basicPerform_",
  138. smalltalk.method({
  139. selector: "basicPerform:",
  140. fn: function (aString) {
  141. var self=this;
  142. return smalltalk.withContext(function($ctx1) {
  143. var $1;
  144. $1=_st(self)._basicPerform_withArguments_(aString,[]);
  145. return $1;
  146. }, function($ctx1) {$ctx1.fill(self,"basicPerform:",{aString:aString},smalltalk.Object)});},
  147. messageSends: ["basicPerform:withArguments:"]}),
  148. smalltalk.Object);
  149. smalltalk.addMethod(
  150. "_basicPerform_withArguments_",
  151. smalltalk.method({
  152. selector: "basicPerform:withArguments:",
  153. fn: function (aString, aCollection) {
  154. var self=this;
  155. return smalltalk.withContext(function($ctx1) {
  156. return self[aString].apply(self, aCollection);;
  157. return self}, function($ctx1) {$ctx1.fill(self,"basicPerform:withArguments:",{aString:aString,aCollection:aCollection},smalltalk.Object)});},
  158. messageSends: []}),
  159. smalltalk.Object);
  160. smalltalk.addMethod(
  161. "_class",
  162. smalltalk.method({
  163. selector: "class",
  164. fn: function () {
  165. var self=this;
  166. return smalltalk.withContext(function($ctx1) {
  167. return self.klass;
  168. return self}, function($ctx1) {$ctx1.fill(self,"class",{},smalltalk.Object)});},
  169. messageSends: []}),
  170. smalltalk.Object);
  171. smalltalk.addMethod(
  172. "_copy",
  173. smalltalk.method({
  174. selector: "copy",
  175. fn: function () {
  176. var self=this;
  177. return smalltalk.withContext(function($ctx1) {
  178. var $1;
  179. $1=_st(_st(self)._shallowCopy())._postCopy();
  180. return $1;
  181. }, function($ctx1) {$ctx1.fill(self,"copy",{},smalltalk.Object)});},
  182. messageSends: ["postCopy", "shallowCopy"]}),
  183. smalltalk.Object);
  184. smalltalk.addMethod(
  185. "_deepCopy",
  186. smalltalk.method({
  187. selector: "deepCopy",
  188. fn: function () {
  189. var self=this;
  190. return smalltalk.withContext(function($ctx1) {
  191. var copy = self.klass._new();
  192. for(var i in self) {
  193. if(/^@.+/.test(i)) {
  194. copy[i] = self[i]._deepCopy();
  195. }
  196. }
  197. return copy;
  198. ;
  199. return self}, function($ctx1) {$ctx1.fill(self,"deepCopy",{},smalltalk.Object)});},
  200. messageSends: []}),
  201. smalltalk.Object);
  202. smalltalk.addMethod(
  203. "_deprecatedAPI",
  204. smalltalk.method({
  205. selector: "deprecatedAPI",
  206. fn: function () {
  207. var self=this;
  208. return smalltalk.withContext(function($ctx1) {
  209. _st(console)._warn_(_st(_st(_st(_st(_st(smalltalk.getThisContext())._home())._asString()).__comma(" is deprecated! (in ")).__comma(_st(_st(_st(smalltalk.getThisContext())._home())._home())._asString())).__comma(")"));
  210. return self}, function($ctx1) {$ctx1.fill(self,"deprecatedAPI",{},smalltalk.Object)});},
  211. messageSends: ["warn:", ",", "asString", "home"]}),
  212. smalltalk.Object);
  213. smalltalk.addMethod(
  214. "_doesNotUnderstand_",
  215. smalltalk.method({
  216. selector: "doesNotUnderstand:",
  217. fn: function (aMessage) {
  218. var self=this;
  219. function $MessageNotUnderstood(){return smalltalk.MessageNotUnderstood||(typeof MessageNotUnderstood=="undefined"?nil:MessageNotUnderstood)}
  220. return smalltalk.withContext(function($ctx1) {
  221. var $1,$2;
  222. $1=_st($MessageNotUnderstood())._new();
  223. _st($1)._receiver_(self);
  224. _st($1)._message_(aMessage);
  225. $2=_st($1)._signal();
  226. return self}, function($ctx1) {$ctx1.fill(self,"doesNotUnderstand:",{aMessage:aMessage},smalltalk.Object)});},
  227. messageSends: ["receiver:", "new", "message:", "signal"]}),
  228. smalltalk.Object);
  229. smalltalk.addMethod(
  230. "_error_",
  231. smalltalk.method({
  232. selector: "error:",
  233. fn: function (aString) {
  234. var self=this;
  235. function $Error(){return smalltalk.Error||(typeof Error=="undefined"?nil:Error)}
  236. return smalltalk.withContext(function($ctx1) {
  237. _st($Error())._signal_(aString);
  238. return self}, function($ctx1) {$ctx1.fill(self,"error:",{aString:aString},smalltalk.Object)});},
  239. messageSends: ["signal:"]}),
  240. smalltalk.Object);
  241. smalltalk.addMethod(
  242. "_halt",
  243. smalltalk.method({
  244. selector: "halt",
  245. fn: function () {
  246. var self=this;
  247. return smalltalk.withContext(function($ctx1) {
  248. _st(self)._error_("Halt encountered");
  249. return self}, function($ctx1) {$ctx1.fill(self,"halt",{},smalltalk.Object)});},
  250. messageSends: ["error:"]}),
  251. smalltalk.Object);
  252. smalltalk.addMethod(
  253. "_identityHash",
  254. smalltalk.method({
  255. selector: "identityHash",
  256. fn: function () {
  257. var self=this;
  258. return smalltalk.withContext(function($ctx1) {
  259. var hash=self.identityHash;
  260. if (hash) return hash;
  261. hash=smalltalk.nextId();
  262. Object.defineProperty(self, 'identityHash', {value:hash});
  263. return hash;
  264. ;
  265. return self}, function($ctx1) {$ctx1.fill(self,"identityHash",{},smalltalk.Object)});},
  266. messageSends: []}),
  267. smalltalk.Object);
  268. smalltalk.addMethod(
  269. "_ifNil_",
  270. smalltalk.method({
  271. selector: "ifNil:",
  272. fn: function (aBlock) {
  273. var self=this;
  274. return smalltalk.withContext(function($ctx1) {
  275. var $1;
  276. $1=self;
  277. return $1;
  278. }, function($ctx1) {$ctx1.fill(self,"ifNil:",{aBlock:aBlock},smalltalk.Object)});},
  279. messageSends: []}),
  280. smalltalk.Object);
  281. smalltalk.addMethod(
  282. "_ifNil_ifNotNil_",
  283. smalltalk.method({
  284. selector: "ifNil:ifNotNil:",
  285. fn: function (aBlock, anotherBlock) {
  286. var self=this;
  287. return smalltalk.withContext(function($ctx1) {
  288. var $1;
  289. $1=_st(anotherBlock)._value_(self);
  290. return $1;
  291. }, function($ctx1) {$ctx1.fill(self,"ifNil:ifNotNil:",{aBlock:aBlock,anotherBlock:anotherBlock},smalltalk.Object)});},
  292. messageSends: ["value:"]}),
  293. smalltalk.Object);
  294. smalltalk.addMethod(
  295. "_ifNotNil_",
  296. smalltalk.method({
  297. selector: "ifNotNil:",
  298. fn: function (aBlock) {
  299. var self=this;
  300. return smalltalk.withContext(function($ctx1) {
  301. var $1;
  302. $1=_st(aBlock)._value_(self);
  303. return $1;
  304. }, function($ctx1) {$ctx1.fill(self,"ifNotNil:",{aBlock:aBlock},smalltalk.Object)});},
  305. messageSends: ["value:"]}),
  306. smalltalk.Object);
  307. smalltalk.addMethod(
  308. "_ifNotNil_ifNil_",
  309. smalltalk.method({
  310. selector: "ifNotNil:ifNil:",
  311. fn: function (aBlock, anotherBlock) {
  312. var self=this;
  313. return smalltalk.withContext(function($ctx1) {
  314. var $1;
  315. $1=_st(aBlock)._value_(self);
  316. return $1;
  317. }, function($ctx1) {$ctx1.fill(self,"ifNotNil:ifNil:",{aBlock:aBlock,anotherBlock:anotherBlock},smalltalk.Object)});},
  318. messageSends: ["value:"]}),
  319. smalltalk.Object);
  320. smalltalk.addMethod(
  321. "_initialize",
  322. smalltalk.method({
  323. selector: "initialize",
  324. fn: function () {
  325. var self=this;
  326. return smalltalk.withContext(function($ctx1) {
  327. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.Object)});},
  328. messageSends: []}),
  329. smalltalk.Object);
  330. smalltalk.addMethod(
  331. "_instVarAt_",
  332. smalltalk.method({
  333. selector: "instVarAt:",
  334. fn: function (aString) {
  335. var self=this;
  336. return smalltalk.withContext(function($ctx1) {
  337. return self['@'+aString] ;
  338. return self}, function($ctx1) {$ctx1.fill(self,"instVarAt:",{aString:aString},smalltalk.Object)});},
  339. messageSends: []}),
  340. smalltalk.Object);
  341. smalltalk.addMethod(
  342. "_instVarAt_put_",
  343. smalltalk.method({
  344. selector: "instVarAt:put:",
  345. fn: function (aString, anObject) {
  346. var self=this;
  347. return smalltalk.withContext(function($ctx1) {
  348. self['@' + aString] = anObject ;
  349. return self}, function($ctx1) {$ctx1.fill(self,"instVarAt:put:",{aString:aString,anObject:anObject},smalltalk.Object)});},
  350. messageSends: []}),
  351. smalltalk.Object);
  352. smalltalk.addMethod(
  353. "_isBoolean",
  354. smalltalk.method({
  355. selector: "isBoolean",
  356. fn: function () {
  357. var self=this;
  358. return smalltalk.withContext(function($ctx1) {
  359. return false;
  360. }, function($ctx1) {$ctx1.fill(self,"isBoolean",{},smalltalk.Object)});},
  361. messageSends: []}),
  362. smalltalk.Object);
  363. smalltalk.addMethod(
  364. "_isClass",
  365. smalltalk.method({
  366. selector: "isClass",
  367. fn: function () {
  368. var self=this;
  369. return smalltalk.withContext(function($ctx1) {
  370. return false;
  371. }, function($ctx1) {$ctx1.fill(self,"isClass",{},smalltalk.Object)});},
  372. messageSends: []}),
  373. smalltalk.Object);
  374. smalltalk.addMethod(
  375. "_isImmutable",
  376. smalltalk.method({
  377. selector: "isImmutable",
  378. fn: function () {
  379. var self=this;
  380. return smalltalk.withContext(function($ctx1) {
  381. return false;
  382. }, function($ctx1) {$ctx1.fill(self,"isImmutable",{},smalltalk.Object)});},
  383. messageSends: []}),
  384. smalltalk.Object);
  385. smalltalk.addMethod(
  386. "_isKindOf_",
  387. smalltalk.method({
  388. selector: "isKindOf:",
  389. fn: function (aClass) {
  390. var self=this;
  391. return smalltalk.withContext(function($ctx1) {
  392. var $2,$1;
  393. $2=_st(self)._isMemberOf_(aClass);
  394. if(smalltalk.assert($2)){
  395. $1=true;
  396. } else {
  397. $1=_st(_st(self)._class())._inheritsFrom_(aClass);
  398. };
  399. return $1;
  400. }, function($ctx1) {$ctx1.fill(self,"isKindOf:",{aClass:aClass},smalltalk.Object)});},
  401. messageSends: ["ifTrue:ifFalse:", "inheritsFrom:", "class", "isMemberOf:"]}),
  402. smalltalk.Object);
  403. smalltalk.addMethod(
  404. "_isMemberOf_",
  405. smalltalk.method({
  406. selector: "isMemberOf:",
  407. fn: function (aClass) {
  408. var self=this;
  409. return smalltalk.withContext(function($ctx1) {
  410. var $1;
  411. $1=_st(_st(self)._class()).__eq(aClass);
  412. return $1;
  413. }, function($ctx1) {$ctx1.fill(self,"isMemberOf:",{aClass:aClass},smalltalk.Object)});},
  414. messageSends: ["=", "class"]}),
  415. smalltalk.Object);
  416. smalltalk.addMethod(
  417. "_isMetaclass",
  418. smalltalk.method({
  419. selector: "isMetaclass",
  420. fn: function () {
  421. var self=this;
  422. return smalltalk.withContext(function($ctx1) {
  423. return false;
  424. }, function($ctx1) {$ctx1.fill(self,"isMetaclass",{},smalltalk.Object)});},
  425. messageSends: []}),
  426. smalltalk.Object);
  427. smalltalk.addMethod(
  428. "_isNil",
  429. smalltalk.method({
  430. selector: "isNil",
  431. fn: function () {
  432. var self=this;
  433. return smalltalk.withContext(function($ctx1) {
  434. return false;
  435. }, function($ctx1) {$ctx1.fill(self,"isNil",{},smalltalk.Object)});},
  436. messageSends: []}),
  437. smalltalk.Object);
  438. smalltalk.addMethod(
  439. "_isNumber",
  440. smalltalk.method({
  441. selector: "isNumber",
  442. fn: function () {
  443. var self=this;
  444. return smalltalk.withContext(function($ctx1) {
  445. return false;
  446. }, function($ctx1) {$ctx1.fill(self,"isNumber",{},smalltalk.Object)});},
  447. messageSends: []}),
  448. smalltalk.Object);
  449. smalltalk.addMethod(
  450. "_isParseFailure",
  451. smalltalk.method({
  452. selector: "isParseFailure",
  453. fn: function () {
  454. var self=this;
  455. return smalltalk.withContext(function($ctx1) {
  456. return false;
  457. }, function($ctx1) {$ctx1.fill(self,"isParseFailure",{},smalltalk.Object)});},
  458. messageSends: []}),
  459. smalltalk.Object);
  460. smalltalk.addMethod(
  461. "_isString",
  462. smalltalk.method({
  463. selector: "isString",
  464. fn: function () {
  465. var self=this;
  466. return smalltalk.withContext(function($ctx1) {
  467. return false;
  468. }, function($ctx1) {$ctx1.fill(self,"isString",{},smalltalk.Object)});},
  469. messageSends: []}),
  470. smalltalk.Object);
  471. smalltalk.addMethod(
  472. "_isSymbol",
  473. smalltalk.method({
  474. selector: "isSymbol",
  475. fn: function () {
  476. var self=this;
  477. return smalltalk.withContext(function($ctx1) {
  478. return false;
  479. }, function($ctx1) {$ctx1.fill(self,"isSymbol",{},smalltalk.Object)});},
  480. messageSends: []}),
  481. smalltalk.Object);
  482. smalltalk.addMethod(
  483. "_notNil",
  484. smalltalk.method({
  485. selector: "notNil",
  486. fn: function () {
  487. var self=this;
  488. return smalltalk.withContext(function($ctx1) {
  489. var $1;
  490. $1=_st(_st(self)._isNil())._not();
  491. return $1;
  492. }, function($ctx1) {$ctx1.fill(self,"notNil",{},smalltalk.Object)});},
  493. messageSends: ["not", "isNil"]}),
  494. smalltalk.Object);
  495. smalltalk.addMethod(
  496. "_perform_",
  497. smalltalk.method({
  498. selector: "perform:",
  499. fn: function (aString) {
  500. var self=this;
  501. return smalltalk.withContext(function($ctx1) {
  502. var $1;
  503. $1=_st(self)._perform_withArguments_(aString,[]);
  504. return $1;
  505. }, function($ctx1) {$ctx1.fill(self,"perform:",{aString:aString},smalltalk.Object)});},
  506. messageSends: ["perform:withArguments:"]}),
  507. smalltalk.Object);
  508. smalltalk.addMethod(
  509. "_perform_withArguments_",
  510. smalltalk.method({
  511. selector: "perform:withArguments:",
  512. fn: function (aString, aCollection) {
  513. var self=this;
  514. return smalltalk.withContext(function($ctx1) {
  515. return smalltalk.send(self, aString._asSelector(), aCollection);
  516. return self}, function($ctx1) {$ctx1.fill(self,"perform:withArguments:",{aString:aString,aCollection:aCollection},smalltalk.Object)});},
  517. messageSends: []}),
  518. smalltalk.Object);
  519. smalltalk.addMethod(
  520. "_postCopy",
  521. smalltalk.method({
  522. selector: "postCopy",
  523. fn: function () {
  524. var self=this;
  525. return smalltalk.withContext(function($ctx1) {
  526. return self}, function($ctx1) {$ctx1.fill(self,"postCopy",{},smalltalk.Object)});},
  527. messageSends: []}),
  528. smalltalk.Object);
  529. smalltalk.addMethod(
  530. "_printOn_",
  531. smalltalk.method({
  532. selector: "printOn:",
  533. fn: function (aStream) {
  534. var self=this;
  535. return smalltalk.withContext(function($ctx1) {
  536. var $1,$3,$2;
  537. $1=aStream;
  538. $3=_st(_st(_st(_st(self)._class())._name())._first())._isVowel();
  539. if(smalltalk.assert($3)){
  540. $2="an ";
  541. } else {
  542. $2="a ";
  543. };
  544. _st($1)._nextPutAll_($2);
  545. _st(aStream)._nextPutAll_(_st(_st(self)._class())._name());
  546. return self}, function($ctx1) {$ctx1.fill(self,"printOn:",{aStream:aStream},smalltalk.Object)});},
  547. messageSends: ["nextPutAll:", "ifTrue:ifFalse:", "isVowel", "first", "name", "class"]}),
  548. smalltalk.Object);
  549. smalltalk.addMethod(
  550. "_printString",
  551. smalltalk.method({
  552. selector: "printString",
  553. fn: function () {
  554. var self=this;
  555. function $String(){return smalltalk.String||(typeof String=="undefined"?nil:String)}
  556. return smalltalk.withContext(function($ctx1) {
  557. var $1;
  558. $1=_st($String())._streamContents_((function(stream){
  559. return smalltalk.withContext(function($ctx2) {
  560. return _st(self)._printOn_(stream);
  561. }, function($ctx2) {$ctx2.fillBlock({stream:stream},$ctx1)})}));
  562. return $1;
  563. }, function($ctx1) {$ctx1.fill(self,"printString",{},smalltalk.Object)});},
  564. messageSends: ["streamContents:", "printOn:"]}),
  565. smalltalk.Object);
  566. smalltalk.addMethod(
  567. "_putOn_",
  568. smalltalk.method({
  569. selector: "putOn:",
  570. fn: function (aStream) {
  571. var self=this;
  572. return smalltalk.withContext(function($ctx1) {
  573. _st(aStream)._nextPut_(self);
  574. return self}, function($ctx1) {$ctx1.fill(self,"putOn:",{aStream:aStream},smalltalk.Object)});},
  575. messageSends: ["nextPut:"]}),
  576. smalltalk.Object);
  577. smalltalk.addMethod(
  578. "_respondsTo_",
  579. smalltalk.method({
  580. selector: "respondsTo:",
  581. fn: function (aSelector) {
  582. var self=this;
  583. return smalltalk.withContext(function($ctx1) {
  584. var $1;
  585. $1=_st(_st(self)._class())._canUnderstand_(aSelector);
  586. return $1;
  587. }, function($ctx1) {$ctx1.fill(self,"respondsTo:",{aSelector:aSelector},smalltalk.Object)});},
  588. messageSends: ["canUnderstand:", "class"]}),
  589. smalltalk.Object);
  590. smalltalk.addMethod(
  591. "_shallowCopy",
  592. smalltalk.method({
  593. selector: "shallowCopy",
  594. fn: function () {
  595. var self=this;
  596. return smalltalk.withContext(function($ctx1) {
  597. var copy = self.klass._new();
  598. for(var i in self) {
  599. if(/^@.+/.test(i)) {
  600. copy[i] = self[i];
  601. }
  602. }
  603. return copy;
  604. ;
  605. return self}, function($ctx1) {$ctx1.fill(self,"shallowCopy",{},smalltalk.Object)});},
  606. messageSends: []}),
  607. smalltalk.Object);
  608. smalltalk.addMethod(
  609. "_shouldNotImplement",
  610. smalltalk.method({
  611. selector: "shouldNotImplement",
  612. fn: function () {
  613. var self=this;
  614. return smalltalk.withContext(function($ctx1) {
  615. _st(self)._error_(_st("This method should not be implemented in ").__comma(_st(_st(self)._class())._name()));
  616. return self}, function($ctx1) {$ctx1.fill(self,"shouldNotImplement",{},smalltalk.Object)});},
  617. messageSends: ["error:", ",", "name", "class"]}),
  618. smalltalk.Object);
  619. smalltalk.addMethod(
  620. "_size",
  621. smalltalk.method({
  622. selector: "size",
  623. fn: function () {
  624. var self=this;
  625. return smalltalk.withContext(function($ctx1) {
  626. _st(self)._error_("Object not indexable");
  627. return self}, function($ctx1) {$ctx1.fill(self,"size",{},smalltalk.Object)});},
  628. messageSends: ["error:"]}),
  629. smalltalk.Object);
  630. smalltalk.addMethod(
  631. "_subclassResponsibility",
  632. smalltalk.method({
  633. selector: "subclassResponsibility",
  634. fn: function () {
  635. var self=this;
  636. return smalltalk.withContext(function($ctx1) {
  637. _st(self)._error_("This method is a responsibility of a subclass");
  638. return self}, function($ctx1) {$ctx1.fill(self,"subclassResponsibility",{},smalltalk.Object)});},
  639. messageSends: ["error:"]}),
  640. smalltalk.Object);
  641. smalltalk.addMethod(
  642. "_test",
  643. smalltalk.method({
  644. selector: "test",
  645. fn: function () {
  646. var self=this;
  647. var a;
  648. return smalltalk.withContext(function($ctx1) {
  649. a=(1);
  650. _st(self)._halt();
  651. return self}, function($ctx1) {$ctx1.fill(self,"test",{a:a},smalltalk.Object)});},
  652. messageSends: ["halt"]}),
  653. smalltalk.Object);
  654. smalltalk.addMethod(
  655. "_throw_",
  656. smalltalk.method({
  657. selector: "throw:",
  658. fn: function (anObject) {
  659. var self=this;
  660. return smalltalk.withContext(function($ctx1) {
  661. throw anObject ;
  662. return self}, function($ctx1) {$ctx1.fill(self,"throw:",{anObject:anObject},smalltalk.Object)});},
  663. messageSends: []}),
  664. smalltalk.Object);
  665. smalltalk.addMethod(
  666. "_try_catch_",
  667. smalltalk.method({
  668. selector: "try:catch:",
  669. fn: function (aBlock, anotherBlock) {
  670. var self=this;
  671. return smalltalk.withContext(function($ctx1) {
  672. try{return aBlock()} catch(e) {return anotherBlock(e)};
  673. return self}, function($ctx1) {$ctx1.fill(self,"try:catch:",{aBlock:aBlock,anotherBlock:anotherBlock},smalltalk.Object)});},
  674. messageSends: []}),
  675. smalltalk.Object);
  676. smalltalk.addMethod(
  677. "_value",
  678. smalltalk.method({
  679. selector: "value",
  680. fn: function () {
  681. var self=this;
  682. return smalltalk.withContext(function($ctx1) {
  683. return self.valueOf();
  684. return self}, function($ctx1) {$ctx1.fill(self,"value",{},smalltalk.Object)});},
  685. messageSends: []}),
  686. smalltalk.Object);
  687. smalltalk.addMethod(
  688. "_yourself",
  689. smalltalk.method({
  690. selector: "yourself",
  691. fn: function () {
  692. var self=this;
  693. return smalltalk.withContext(function($ctx1) {
  694. var $1;
  695. $1=self;
  696. return $1;
  697. }, function($ctx1) {$ctx1.fill(self,"yourself",{},smalltalk.Object)});},
  698. messageSends: []}),
  699. smalltalk.Object);
  700. smalltalk.addMethod(
  701. "__tild_eq",
  702. smalltalk.method({
  703. selector: "~=",
  704. fn: function (anObject) {
  705. var self=this;
  706. return smalltalk.withContext(function($ctx1) {
  707. var $1;
  708. $1=_st(_st(self).__eq(anObject)).__eq(false);
  709. return $1;
  710. }, function($ctx1) {$ctx1.fill(self,"~=",{anObject:anObject},smalltalk.Object)});},
  711. messageSends: ["="]}),
  712. smalltalk.Object);
  713. smalltalk.addMethod(
  714. "__tild_tild",
  715. smalltalk.method({
  716. selector: "~~",
  717. fn: function (anObject) {
  718. var self=this;
  719. return smalltalk.withContext(function($ctx1) {
  720. var $1;
  721. $1=_st(_st(self).__eq_eq(anObject)).__eq(false);
  722. return $1;
  723. }, function($ctx1) {$ctx1.fill(self,"~~",{anObject:anObject},smalltalk.Object)});},
  724. messageSends: ["=", "=="]}),
  725. smalltalk.Object);
  726. smalltalk.addMethod(
  727. "_initialize",
  728. smalltalk.method({
  729. selector: "initialize",
  730. fn: function () {
  731. var self=this;
  732. return smalltalk.withContext(function($ctx1) {
  733. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.Object.klass)});},
  734. messageSends: []}),
  735. smalltalk.Object.klass);
  736. smalltalk.addClass('Boolean', smalltalk.Object, [], 'Kernel-Objects');
  737. smalltalk.addMethod(
  738. "__and",
  739. smalltalk.method({
  740. selector: "&",
  741. fn: function (aBoolean) {
  742. var self=this;
  743. return smalltalk.withContext(function($ctx1) {
  744. if(self == true) {
  745. return aBoolean;
  746. } else {
  747. return false;
  748. }
  749. ;
  750. return self}, function($ctx1) {$ctx1.fill(self,"&",{aBoolean:aBoolean},smalltalk.Boolean)});},
  751. messageSends: []}),
  752. smalltalk.Boolean);
  753. smalltalk.addMethod(
  754. "__eq",
  755. smalltalk.method({
  756. selector: "=",
  757. fn: function (aBoolean) {
  758. var self=this;
  759. return smalltalk.withContext(function($ctx1) {
  760. if(! aBoolean._isBoolean || ! aBoolean._isBoolean()) {
  761. return false;
  762. }
  763. return Boolean(self == true) == aBoolean
  764. ;
  765. return self}, function($ctx1) {$ctx1.fill(self,"=",{aBoolean:aBoolean},smalltalk.Boolean)});},
  766. messageSends: []}),
  767. smalltalk.Boolean);
  768. smalltalk.addMethod(
  769. "__eq_eq",
  770. smalltalk.method({
  771. selector: "==",
  772. fn: function (aBoolean) {
  773. var self=this;
  774. return smalltalk.withContext(function($ctx1) {
  775. var $1;
  776. $1=_st(self).__eq(aBoolean);
  777. return $1;
  778. }, function($ctx1) {$ctx1.fill(self,"==",{aBoolean:aBoolean},smalltalk.Boolean)});},
  779. messageSends: ["="]}),
  780. smalltalk.Boolean);
  781. smalltalk.addMethod(
  782. "_and_",
  783. smalltalk.method({
  784. selector: "and:",
  785. fn: function (aBlock) {
  786. var self=this;
  787. return smalltalk.withContext(function($ctx1) {
  788. var $2,$1;
  789. $2=_st(self).__eq(true);
  790. $1=_st($2)._ifTrue_ifFalse_(aBlock,(function(){
  791. return smalltalk.withContext(function($ctx2) {
  792. return false;
  793. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  794. return $1;
  795. }, function($ctx1) {$ctx1.fill(self,"and:",{aBlock:aBlock},smalltalk.Boolean)});},
  796. messageSends: ["ifTrue:ifFalse:", "="]}),
  797. smalltalk.Boolean);
  798. smalltalk.addMethod(
  799. "_asJSON",
  800. smalltalk.method({
  801. selector: "asJSON",
  802. fn: function () {
  803. var self=this;
  804. return smalltalk.withContext(function($ctx1) {
  805. var $1;
  806. $1=self;
  807. return $1;
  808. }, function($ctx1) {$ctx1.fill(self,"asJSON",{},smalltalk.Boolean)});},
  809. messageSends: []}),
  810. smalltalk.Boolean);
  811. smalltalk.addMethod(
  812. "_asString",
  813. smalltalk.method({
  814. selector: "asString",
  815. fn: function () {
  816. var self=this;
  817. return smalltalk.withContext(function($ctx1) {
  818. return self.toString() ;
  819. return self}, function($ctx1) {$ctx1.fill(self,"asString",{},smalltalk.Boolean)});},
  820. messageSends: []}),
  821. smalltalk.Boolean);
  822. smalltalk.addMethod(
  823. "_deepCopy",
  824. smalltalk.method({
  825. selector: "deepCopy",
  826. fn: function () {
  827. var self=this;
  828. return smalltalk.withContext(function($ctx1) {
  829. var $1;
  830. $1=self;
  831. return $1;
  832. }, function($ctx1) {$ctx1.fill(self,"deepCopy",{},smalltalk.Boolean)});},
  833. messageSends: []}),
  834. smalltalk.Boolean);
  835. smalltalk.addMethod(
  836. "_ifFalse_",
  837. smalltalk.method({
  838. selector: "ifFalse:",
  839. fn: function (aBlock) {
  840. var self=this;
  841. return smalltalk.withContext(function($ctx1) {
  842. var $2,$1;
  843. $2=self;
  844. $1=_st($2)._ifTrue_ifFalse_((function(){
  845. return smalltalk.withContext(function($ctx2) {
  846. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}),aBlock);
  847. return $1;
  848. }, function($ctx1) {$ctx1.fill(self,"ifFalse:",{aBlock:aBlock},smalltalk.Boolean)});},
  849. messageSends: ["ifTrue:ifFalse:"]}),
  850. smalltalk.Boolean);
  851. smalltalk.addMethod(
  852. "_ifFalse_ifTrue_",
  853. smalltalk.method({
  854. selector: "ifFalse:ifTrue:",
  855. fn: function (aBlock, anotherBlock) {
  856. var self=this;
  857. return smalltalk.withContext(function($ctx1) {
  858. var $2,$1;
  859. $2=self;
  860. $1=_st($2)._ifTrue_ifFalse_(anotherBlock,aBlock);
  861. return $1;
  862. }, function($ctx1) {$ctx1.fill(self,"ifFalse:ifTrue:",{aBlock:aBlock,anotherBlock:anotherBlock},smalltalk.Boolean)});},
  863. messageSends: ["ifTrue:ifFalse:"]}),
  864. smalltalk.Boolean);
  865. smalltalk.addMethod(
  866. "_ifTrue_",
  867. smalltalk.method({
  868. selector: "ifTrue:",
  869. fn: function (aBlock) {
  870. var self=this;
  871. return smalltalk.withContext(function($ctx1) {
  872. var $2,$1;
  873. $2=self;
  874. $1=_st($2)._ifTrue_ifFalse_(aBlock,(function(){
  875. return smalltalk.withContext(function($ctx2) {
  876. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  877. return $1;
  878. }, function($ctx1) {$ctx1.fill(self,"ifTrue:",{aBlock:aBlock},smalltalk.Boolean)});},
  879. messageSends: ["ifTrue:ifFalse:"]}),
  880. smalltalk.Boolean);
  881. smalltalk.addMethod(
  882. "_ifTrue_ifFalse_",
  883. smalltalk.method({
  884. selector: "ifTrue:ifFalse:",
  885. fn: function (aBlock, anotherBlock) {
  886. var self=this;
  887. return smalltalk.withContext(function($ctx1) {
  888. if(self == true) {
  889. return aBlock();
  890. } else {
  891. return anotherBlock();
  892. }
  893. ;
  894. return self}, function($ctx1) {$ctx1.fill(self,"ifTrue:ifFalse:",{aBlock:aBlock,anotherBlock:anotherBlock},smalltalk.Boolean)});},
  895. messageSends: []}),
  896. smalltalk.Boolean);
  897. smalltalk.addMethod(
  898. "_isBoolean",
  899. smalltalk.method({
  900. selector: "isBoolean",
  901. fn: function () {
  902. var self=this;
  903. return smalltalk.withContext(function($ctx1) {
  904. return true;
  905. }, function($ctx1) {$ctx1.fill(self,"isBoolean",{},smalltalk.Boolean)});},
  906. messageSends: []}),
  907. smalltalk.Boolean);
  908. smalltalk.addMethod(
  909. "_isImmutable",
  910. smalltalk.method({
  911. selector: "isImmutable",
  912. fn: function () {
  913. var self=this;
  914. return smalltalk.withContext(function($ctx1) {
  915. return true;
  916. }, function($ctx1) {$ctx1.fill(self,"isImmutable",{},smalltalk.Boolean)});},
  917. messageSends: []}),
  918. smalltalk.Boolean);
  919. smalltalk.addMethod(
  920. "_not",
  921. smalltalk.method({
  922. selector: "not",
  923. fn: function () {
  924. var self=this;
  925. return smalltalk.withContext(function($ctx1) {
  926. var $1;
  927. $1=_st(self).__eq(false);
  928. return $1;
  929. }, function($ctx1) {$ctx1.fill(self,"not",{},smalltalk.Boolean)});},
  930. messageSends: ["="]}),
  931. smalltalk.Boolean);
  932. smalltalk.addMethod(
  933. "_or_",
  934. smalltalk.method({
  935. selector: "or:",
  936. fn: function (aBlock) {
  937. var self=this;
  938. return smalltalk.withContext(function($ctx1) {
  939. var $2,$1;
  940. $2=_st(self).__eq(true);
  941. $1=_st($2)._ifTrue_ifFalse_((function(){
  942. return smalltalk.withContext(function($ctx2) {
  943. return true;
  944. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}),aBlock);
  945. return $1;
  946. }, function($ctx1) {$ctx1.fill(self,"or:",{aBlock:aBlock},smalltalk.Boolean)});},
  947. messageSends: ["ifTrue:ifFalse:", "="]}),
  948. smalltalk.Boolean);
  949. smalltalk.addMethod(
  950. "_printOn_",
  951. smalltalk.method({
  952. selector: "printOn:",
  953. fn: function (aStream) {
  954. var self=this;
  955. return smalltalk.withContext(function($ctx1) {
  956. _st(aStream)._nextPutAll_(_st(self)._asString());
  957. return self}, function($ctx1) {$ctx1.fill(self,"printOn:",{aStream:aStream},smalltalk.Boolean)});},
  958. messageSends: ["nextPutAll:", "asString"]}),
  959. smalltalk.Boolean);
  960. smalltalk.addMethod(
  961. "_shallowCopy",
  962. smalltalk.method({
  963. selector: "shallowCopy",
  964. fn: function () {
  965. var self=this;
  966. return smalltalk.withContext(function($ctx1) {
  967. var $1;
  968. $1=self;
  969. return $1;
  970. }, function($ctx1) {$ctx1.fill(self,"shallowCopy",{},smalltalk.Boolean)});},
  971. messageSends: []}),
  972. smalltalk.Boolean);
  973. smalltalk.addMethod(
  974. "__or",
  975. smalltalk.method({
  976. selector: "|",
  977. fn: function (aBoolean) {
  978. var self=this;
  979. return smalltalk.withContext(function($ctx1) {
  980. if(self == true) {
  981. return true;
  982. } else {
  983. return aBoolean;
  984. }
  985. ;
  986. return self}, function($ctx1) {$ctx1.fill(self,"|",{aBoolean:aBoolean},smalltalk.Boolean)});},
  987. messageSends: []}),
  988. smalltalk.Boolean);
  989. smalltalk.addClass('Date', smalltalk.Object, [], 'Kernel-Objects');
  990. smalltalk.addMethod(
  991. "__plus",
  992. smalltalk.method({
  993. selector: "+",
  994. fn: function (aDate) {
  995. var self=this;
  996. return smalltalk.withContext(function($ctx1) {
  997. return self + aDate;
  998. return self}, function($ctx1) {$ctx1.fill(self,"+",{aDate:aDate},smalltalk.Date)});},
  999. messageSends: []}),
  1000. smalltalk.Date);
  1001. smalltalk.addMethod(
  1002. "__minus",
  1003. smalltalk.method({
  1004. selector: "-",
  1005. fn: function (aDate) {
  1006. var self=this;
  1007. return smalltalk.withContext(function($ctx1) {
  1008. return self - aDate;
  1009. return self}, function($ctx1) {$ctx1.fill(self,"-",{aDate:aDate},smalltalk.Date)});},
  1010. messageSends: []}),
  1011. smalltalk.Date);
  1012. smalltalk.addMethod(
  1013. "__lt",
  1014. smalltalk.method({
  1015. selector: "<",
  1016. fn: function (aDate) {
  1017. var self=this;
  1018. return smalltalk.withContext(function($ctx1) {
  1019. return self < aDate;
  1020. return self}, function($ctx1) {$ctx1.fill(self,"<",{aDate:aDate},smalltalk.Date)});},
  1021. messageSends: []}),
  1022. smalltalk.Date);
  1023. smalltalk.addMethod(
  1024. "__lt_eq",
  1025. smalltalk.method({
  1026. selector: "<=",
  1027. fn: function (aDate) {
  1028. var self=this;
  1029. return smalltalk.withContext(function($ctx1) {
  1030. return self <= aDate;
  1031. return self}, function($ctx1) {$ctx1.fill(self,"<=",{aDate:aDate},smalltalk.Date)});},
  1032. messageSends: []}),
  1033. smalltalk.Date);
  1034. smalltalk.addMethod(
  1035. "__gt",
  1036. smalltalk.method({
  1037. selector: ">",
  1038. fn: function (aDate) {
  1039. var self=this;
  1040. return smalltalk.withContext(function($ctx1) {
  1041. return self > aDate;
  1042. return self}, function($ctx1) {$ctx1.fill(self,">",{aDate:aDate},smalltalk.Date)});},
  1043. messageSends: []}),
  1044. smalltalk.Date);
  1045. smalltalk.addMethod(
  1046. "__gt_eq",
  1047. smalltalk.method({
  1048. selector: ">=",
  1049. fn: function (aDate) {
  1050. var self=this;
  1051. return smalltalk.withContext(function($ctx1) {
  1052. return self >= aDate;
  1053. return self}, function($ctx1) {$ctx1.fill(self,">=",{aDate:aDate},smalltalk.Date)});},
  1054. messageSends: []}),
  1055. smalltalk.Date);
  1056. smalltalk.addMethod(
  1057. "_asDateString",
  1058. smalltalk.method({
  1059. selector: "asDateString",
  1060. fn: function () {
  1061. var self=this;
  1062. return smalltalk.withContext(function($ctx1) {
  1063. return self.toDateString();
  1064. return self}, function($ctx1) {$ctx1.fill(self,"asDateString",{},smalltalk.Date)});},
  1065. messageSends: []}),
  1066. smalltalk.Date);
  1067. smalltalk.addMethod(
  1068. "_asLocaleString",
  1069. smalltalk.method({
  1070. selector: "asLocaleString",
  1071. fn: function () {
  1072. var self=this;
  1073. return smalltalk.withContext(function($ctx1) {
  1074. return self.toLocaleString();
  1075. return self}, function($ctx1) {$ctx1.fill(self,"asLocaleString",{},smalltalk.Date)});},
  1076. messageSends: []}),
  1077. smalltalk.Date);
  1078. smalltalk.addMethod(
  1079. "_asMilliseconds",
  1080. smalltalk.method({
  1081. selector: "asMilliseconds",
  1082. fn: function () {
  1083. var self=this;
  1084. return smalltalk.withContext(function($ctx1) {
  1085. var $1;
  1086. $1=_st(self)._time();
  1087. return $1;
  1088. }, function($ctx1) {$ctx1.fill(self,"asMilliseconds",{},smalltalk.Date)});},
  1089. messageSends: ["time"]}),
  1090. smalltalk.Date);
  1091. smalltalk.addMethod(
  1092. "_asNumber",
  1093. smalltalk.method({
  1094. selector: "asNumber",
  1095. fn: function () {
  1096. var self=this;
  1097. return smalltalk.withContext(function($ctx1) {
  1098. var $1;
  1099. $1=_st(self)._asMilliseconds();
  1100. return $1;
  1101. }, function($ctx1) {$ctx1.fill(self,"asNumber",{},smalltalk.Date)});},
  1102. messageSends: ["asMilliseconds"]}),
  1103. smalltalk.Date);
  1104. smalltalk.addMethod(
  1105. "_asString",
  1106. smalltalk.method({
  1107. selector: "asString",
  1108. fn: function () {
  1109. var self=this;
  1110. return smalltalk.withContext(function($ctx1) {
  1111. return self.toString();
  1112. return self}, function($ctx1) {$ctx1.fill(self,"asString",{},smalltalk.Date)});},
  1113. messageSends: []}),
  1114. smalltalk.Date);
  1115. smalltalk.addMethod(
  1116. "_asTimeString",
  1117. smalltalk.method({
  1118. selector: "asTimeString",
  1119. fn: function () {
  1120. var self=this;
  1121. return smalltalk.withContext(function($ctx1) {
  1122. return self.toTimeString();
  1123. return self}, function($ctx1) {$ctx1.fill(self,"asTimeString",{},smalltalk.Date)});},
  1124. messageSends: []}),
  1125. smalltalk.Date);
  1126. smalltalk.addMethod(
  1127. "_day",
  1128. smalltalk.method({
  1129. selector: "day",
  1130. fn: function () {
  1131. var self=this;
  1132. return smalltalk.withContext(function($ctx1) {
  1133. var $1;
  1134. $1=_st(self)._dayOfWeek();
  1135. return $1;
  1136. }, function($ctx1) {$ctx1.fill(self,"day",{},smalltalk.Date)});},
  1137. messageSends: ["dayOfWeek"]}),
  1138. smalltalk.Date);
  1139. smalltalk.addMethod(
  1140. "_day_",
  1141. smalltalk.method({
  1142. selector: "day:",
  1143. fn: function (aNumber) {
  1144. var self=this;
  1145. return smalltalk.withContext(function($ctx1) {
  1146. _st(self)._dayOfWeek_(aNumber);
  1147. return self}, function($ctx1) {$ctx1.fill(self,"day:",{aNumber:aNumber},smalltalk.Date)});},
  1148. messageSends: ["dayOfWeek:"]}),
  1149. smalltalk.Date);
  1150. smalltalk.addMethod(
  1151. "_dayOfMonth",
  1152. smalltalk.method({
  1153. selector: "dayOfMonth",
  1154. fn: function () {
  1155. var self=this;
  1156. return smalltalk.withContext(function($ctx1) {
  1157. return self.getDate();
  1158. return self}, function($ctx1) {$ctx1.fill(self,"dayOfMonth",{},smalltalk.Date)});},
  1159. messageSends: []}),
  1160. smalltalk.Date);
  1161. smalltalk.addMethod(
  1162. "_dayOfMonth_",
  1163. smalltalk.method({
  1164. selector: "dayOfMonth:",
  1165. fn: function (aNumber) {
  1166. var self=this;
  1167. return smalltalk.withContext(function($ctx1) {
  1168. self.setDate(aNumber);
  1169. return self}, function($ctx1) {$ctx1.fill(self,"dayOfMonth:",{aNumber:aNumber},smalltalk.Date)});},
  1170. messageSends: []}),
  1171. smalltalk.Date);
  1172. smalltalk.addMethod(
  1173. "_dayOfWeek",
  1174. smalltalk.method({
  1175. selector: "dayOfWeek",
  1176. fn: function () {
  1177. var self=this;
  1178. return smalltalk.withContext(function($ctx1) {
  1179. return self.getDay() + 1;
  1180. return self}, function($ctx1) {$ctx1.fill(self,"dayOfWeek",{},smalltalk.Date)});},
  1181. messageSends: []}),
  1182. smalltalk.Date);
  1183. smalltalk.addMethod(
  1184. "_dayOfWeek_",
  1185. smalltalk.method({
  1186. selector: "dayOfWeek:",
  1187. fn: function (aNumber) {
  1188. var self=this;
  1189. return smalltalk.withContext(function($ctx1) {
  1190. return self.setDay(aNumber - 1);
  1191. return self}, function($ctx1) {$ctx1.fill(self,"dayOfWeek:",{aNumber:aNumber},smalltalk.Date)});},
  1192. messageSends: []}),
  1193. smalltalk.Date);
  1194. smalltalk.addMethod(
  1195. "_hours",
  1196. smalltalk.method({
  1197. selector: "hours",
  1198. fn: function () {
  1199. var self=this;
  1200. return smalltalk.withContext(function($ctx1) {
  1201. return self.getHours();
  1202. return self}, function($ctx1) {$ctx1.fill(self,"hours",{},smalltalk.Date)});},
  1203. messageSends: []}),
  1204. smalltalk.Date);
  1205. smalltalk.addMethod(
  1206. "_hours_",
  1207. smalltalk.method({
  1208. selector: "hours:",
  1209. fn: function (aNumber) {
  1210. var self=this;
  1211. return smalltalk.withContext(function($ctx1) {
  1212. self.setHours(aNumber);
  1213. return self}, function($ctx1) {$ctx1.fill(self,"hours:",{aNumber:aNumber},smalltalk.Date)});},
  1214. messageSends: []}),
  1215. smalltalk.Date);
  1216. smalltalk.addMethod(
  1217. "_milliseconds",
  1218. smalltalk.method({
  1219. selector: "milliseconds",
  1220. fn: function () {
  1221. var self=this;
  1222. return smalltalk.withContext(function($ctx1) {
  1223. return self.getMilliseconds();
  1224. return self}, function($ctx1) {$ctx1.fill(self,"milliseconds",{},smalltalk.Date)});},
  1225. messageSends: []}),
  1226. smalltalk.Date);
  1227. smalltalk.addMethod(
  1228. "_milliseconds_",
  1229. smalltalk.method({
  1230. selector: "milliseconds:",
  1231. fn: function (aNumber) {
  1232. var self=this;
  1233. return smalltalk.withContext(function($ctx1) {
  1234. self.setMilliseconds(aNumber);
  1235. return self}, function($ctx1) {$ctx1.fill(self,"milliseconds:",{aNumber:aNumber},smalltalk.Date)});},
  1236. messageSends: []}),
  1237. smalltalk.Date);
  1238. smalltalk.addMethod(
  1239. "_minutes",
  1240. smalltalk.method({
  1241. selector: "minutes",
  1242. fn: function () {
  1243. var self=this;
  1244. return smalltalk.withContext(function($ctx1) {
  1245. return self.getMinutes();
  1246. return self}, function($ctx1) {$ctx1.fill(self,"minutes",{},smalltalk.Date)});},
  1247. messageSends: []}),
  1248. smalltalk.Date);
  1249. smalltalk.addMethod(
  1250. "_minutes_",
  1251. smalltalk.method({
  1252. selector: "minutes:",
  1253. fn: function (aNumber) {
  1254. var self=this;
  1255. return smalltalk.withContext(function($ctx1) {
  1256. self.setMinutes(aNumber);
  1257. return self}, function($ctx1) {$ctx1.fill(self,"minutes:",{aNumber:aNumber},smalltalk.Date)});},
  1258. messageSends: []}),
  1259. smalltalk.Date);
  1260. smalltalk.addMethod(
  1261. "_month",
  1262. smalltalk.method({
  1263. selector: "month",
  1264. fn: function () {
  1265. var self=this;
  1266. return smalltalk.withContext(function($ctx1) {
  1267. return self.getMonth() + 1;
  1268. return self}, function($ctx1) {$ctx1.fill(self,"month",{},smalltalk.Date)});},
  1269. messageSends: []}),
  1270. smalltalk.Date);
  1271. smalltalk.addMethod(
  1272. "_month_",
  1273. smalltalk.method({
  1274. selector: "month:",
  1275. fn: function (aNumber) {
  1276. var self=this;
  1277. return smalltalk.withContext(function($ctx1) {
  1278. self.setMonth(aNumber - 1);
  1279. return self}, function($ctx1) {$ctx1.fill(self,"month:",{aNumber:aNumber},smalltalk.Date)});},
  1280. messageSends: []}),
  1281. smalltalk.Date);
  1282. smalltalk.addMethod(
  1283. "_printOn_",
  1284. smalltalk.method({
  1285. selector: "printOn:",
  1286. fn: function (aStream) {
  1287. var self=this;
  1288. return smalltalk.withContext(function($ctx1) {
  1289. _st(aStream)._nextPutAll_(_st(self)._asString());
  1290. return self}, function($ctx1) {$ctx1.fill(self,"printOn:",{aStream:aStream},smalltalk.Date)});},
  1291. messageSends: ["nextPutAll:", "asString"]}),
  1292. smalltalk.Date);
  1293. smalltalk.addMethod(
  1294. "_seconds",
  1295. smalltalk.method({
  1296. selector: "seconds",
  1297. fn: function () {
  1298. var self=this;
  1299. return smalltalk.withContext(function($ctx1) {
  1300. return self.getSeconds();
  1301. return self}, function($ctx1) {$ctx1.fill(self,"seconds",{},smalltalk.Date)});},
  1302. messageSends: []}),
  1303. smalltalk.Date);
  1304. smalltalk.addMethod(
  1305. "_seconds_",
  1306. smalltalk.method({
  1307. selector: "seconds:",
  1308. fn: function (aNumber) {
  1309. var self=this;
  1310. return smalltalk.withContext(function($ctx1) {
  1311. self.setSeconds(aNumber);
  1312. return self}, function($ctx1) {$ctx1.fill(self,"seconds:",{aNumber:aNumber},smalltalk.Date)});},
  1313. messageSends: []}),
  1314. smalltalk.Date);
  1315. smalltalk.addMethod(
  1316. "_time",
  1317. smalltalk.method({
  1318. selector: "time",
  1319. fn: function () {
  1320. var self=this;
  1321. return smalltalk.withContext(function($ctx1) {
  1322. return self.getTime();
  1323. return self}, function($ctx1) {$ctx1.fill(self,"time",{},smalltalk.Date)});},
  1324. messageSends: []}),
  1325. smalltalk.Date);
  1326. smalltalk.addMethod(
  1327. "_time_",
  1328. smalltalk.method({
  1329. selector: "time:",
  1330. fn: function (aNumber) {
  1331. var self=this;
  1332. return smalltalk.withContext(function($ctx1) {
  1333. self.setTime(aNumber);
  1334. return self}, function($ctx1) {$ctx1.fill(self,"time:",{aNumber:aNumber},smalltalk.Date)});},
  1335. messageSends: []}),
  1336. smalltalk.Date);
  1337. smalltalk.addMethod(
  1338. "_year",
  1339. smalltalk.method({
  1340. selector: "year",
  1341. fn: function () {
  1342. var self=this;
  1343. return smalltalk.withContext(function($ctx1) {
  1344. return self.getFullYear();
  1345. return self}, function($ctx1) {$ctx1.fill(self,"year",{},smalltalk.Date)});},
  1346. messageSends: []}),
  1347. smalltalk.Date);
  1348. smalltalk.addMethod(
  1349. "_year_",
  1350. smalltalk.method({
  1351. selector: "year:",
  1352. fn: function (aNumber) {
  1353. var self=this;
  1354. return smalltalk.withContext(function($ctx1) {
  1355. self.setFullYear(aNumber);
  1356. return self}, function($ctx1) {$ctx1.fill(self,"year:",{aNumber:aNumber},smalltalk.Date)});},
  1357. messageSends: []}),
  1358. smalltalk.Date);
  1359. smalltalk.addMethod(
  1360. "_fromMilliseconds_",
  1361. smalltalk.method({
  1362. selector: "fromMilliseconds:",
  1363. fn: function (aNumber) {
  1364. var self=this;
  1365. return smalltalk.withContext(function($ctx1) {
  1366. var $1;
  1367. $1=_st(self)._new_(aNumber);
  1368. return $1;
  1369. }, function($ctx1) {$ctx1.fill(self,"fromMilliseconds:",{aNumber:aNumber},smalltalk.Date.klass)});},
  1370. messageSends: ["new:"]}),
  1371. smalltalk.Date.klass);
  1372. smalltalk.addMethod(
  1373. "_fromSeconds_",
  1374. smalltalk.method({
  1375. selector: "fromSeconds:",
  1376. fn: function (aNumber) {
  1377. var self=this;
  1378. return smalltalk.withContext(function($ctx1) {
  1379. var $1;
  1380. $1=_st(self)._fromMilliseconds_(_st(aNumber).__star((1000)));
  1381. return $1;
  1382. }, function($ctx1) {$ctx1.fill(self,"fromSeconds:",{aNumber:aNumber},smalltalk.Date.klass)});},
  1383. messageSends: ["fromMilliseconds:", "*"]}),
  1384. smalltalk.Date.klass);
  1385. smalltalk.addMethod(
  1386. "_fromString_",
  1387. smalltalk.method({
  1388. selector: "fromString:",
  1389. fn: function (aString) {
  1390. var self=this;
  1391. return smalltalk.withContext(function($ctx1) {
  1392. var $1;
  1393. $1=_st(self)._new_(aString);
  1394. return $1;
  1395. }, function($ctx1) {$ctx1.fill(self,"fromString:",{aString:aString},smalltalk.Date.klass)});},
  1396. messageSends: ["new:"]}),
  1397. smalltalk.Date.klass);
  1398. smalltalk.addMethod(
  1399. "_millisecondsToRun_",
  1400. smalltalk.method({
  1401. selector: "millisecondsToRun:",
  1402. fn: function (aBlock) {
  1403. var self=this;
  1404. var t;
  1405. function $Date(){return smalltalk.Date||(typeof Date=="undefined"?nil:Date)}
  1406. return smalltalk.withContext(function($ctx1) {
  1407. var $1;
  1408. t=_st($Date())._now();
  1409. _st(aBlock)._value();
  1410. $1=_st(_st($Date())._now()).__minus(t);
  1411. return $1;
  1412. }, function($ctx1) {$ctx1.fill(self,"millisecondsToRun:",{aBlock:aBlock,t:t},smalltalk.Date.klass)});},
  1413. messageSends: ["now", "value", "-"]}),
  1414. smalltalk.Date.klass);
  1415. smalltalk.addMethod(
  1416. "_new_",
  1417. smalltalk.method({
  1418. selector: "new:",
  1419. fn: function (anObject) {
  1420. var self=this;
  1421. return smalltalk.withContext(function($ctx1) {
  1422. return new Date(anObject);
  1423. return self}, function($ctx1) {$ctx1.fill(self,"new:",{anObject:anObject},smalltalk.Date.klass)});},
  1424. messageSends: []}),
  1425. smalltalk.Date.klass);
  1426. smalltalk.addMethod(
  1427. "_now",
  1428. smalltalk.method({
  1429. selector: "now",
  1430. fn: function () {
  1431. var self=this;
  1432. return smalltalk.withContext(function($ctx1) {
  1433. var $1;
  1434. $1=_st(self)._today();
  1435. return $1;
  1436. }, function($ctx1) {$ctx1.fill(self,"now",{},smalltalk.Date.klass)});},
  1437. messageSends: ["today"]}),
  1438. smalltalk.Date.klass);
  1439. smalltalk.addMethod(
  1440. "_today",
  1441. smalltalk.method({
  1442. selector: "today",
  1443. fn: function () {
  1444. var self=this;
  1445. return smalltalk.withContext(function($ctx1) {
  1446. var $1;
  1447. $1=_st(self)._new();
  1448. return $1;
  1449. }, function($ctx1) {$ctx1.fill(self,"today",{},smalltalk.Date.klass)});},
  1450. messageSends: ["new"]}),
  1451. smalltalk.Date.klass);
  1452. smalltalk.addClass('JSObjectProxy', smalltalk.Object, ['jsObject'], 'Kernel-Objects');
  1453. smalltalk.addMethod(
  1454. "_addObjectVariablesTo_",
  1455. smalltalk.method({
  1456. selector: "addObjectVariablesTo:",
  1457. fn: function (aDictionary) {
  1458. var self=this;
  1459. return smalltalk.withContext(function($ctx1) {
  1460. for(var i in self['@jsObject']) {
  1461. aDictionary._at_put_(i, self['@jsObject'][i]);
  1462. }
  1463. ;
  1464. return self}, function($ctx1) {$ctx1.fill(self,"addObjectVariablesTo:",{aDictionary:aDictionary},smalltalk.JSObjectProxy)});},
  1465. messageSends: []}),
  1466. smalltalk.JSObjectProxy);
  1467. smalltalk.addMethod(
  1468. "_at_",
  1469. smalltalk.method({
  1470. selector: "at:",
  1471. fn: function (aString) {
  1472. var self=this;
  1473. return smalltalk.withContext(function($ctx1) {
  1474. return self['@jsObject'][aString];
  1475. return self}, function($ctx1) {$ctx1.fill(self,"at:",{aString:aString},smalltalk.JSObjectProxy)});},
  1476. messageSends: []}),
  1477. smalltalk.JSObjectProxy);
  1478. smalltalk.addMethod(
  1479. "_at_ifAbsent_",
  1480. smalltalk.method({
  1481. selector: "at:ifAbsent:",
  1482. fn: function (aString, aBlock) {
  1483. var self=this;
  1484. return smalltalk.withContext(function($ctx1) {
  1485. var obj = self['@jsObject'];
  1486. return aString in obj ? obj[aString] : aBlock();
  1487. ;
  1488. return self}, function($ctx1) {$ctx1.fill(self,"at:ifAbsent:",{aString:aString,aBlock:aBlock},smalltalk.JSObjectProxy)});},
  1489. messageSends: []}),
  1490. smalltalk.JSObjectProxy);
  1491. smalltalk.addMethod(
  1492. "_at_ifPresent_",
  1493. smalltalk.method({
  1494. selector: "at:ifPresent:",
  1495. fn: function (aString, aBlock) {
  1496. var self=this;
  1497. return smalltalk.withContext(function($ctx1) {
  1498. var obj = self['@jsObject'];
  1499. return aString in obj ? aBlock(obj[aString]) : nil;
  1500. ;
  1501. return self}, function($ctx1) {$ctx1.fill(self,"at:ifPresent:",{aString:aString,aBlock:aBlock},smalltalk.JSObjectProxy)});},
  1502. messageSends: []}),
  1503. smalltalk.JSObjectProxy);
  1504. smalltalk.addMethod(
  1505. "_at_ifPresent_ifAbsent_",
  1506. smalltalk.method({
  1507. selector: "at:ifPresent:ifAbsent:",
  1508. fn: function (aString, aBlock, anotherBlock) {
  1509. var self=this;
  1510. return smalltalk.withContext(function($ctx1) {
  1511. var obj = self['@jsObject'];
  1512. return aString in obj ? aBlock(obj[aString]) : anotherBlock();
  1513. ;
  1514. return self}, function($ctx1) {$ctx1.fill(self,"at:ifPresent:ifAbsent:",{aString:aString,aBlock:aBlock,anotherBlock:anotherBlock},smalltalk.JSObjectProxy)});},
  1515. messageSends: []}),
  1516. smalltalk.JSObjectProxy);
  1517. smalltalk.addMethod(
  1518. "_at_put_",
  1519. smalltalk.method({
  1520. selector: "at:put:",
  1521. fn: function (aString, anObject) {
  1522. var self=this;
  1523. return smalltalk.withContext(function($ctx1) {
  1524. self['@jsObject'][aString] = anObject;
  1525. return self}, function($ctx1) {$ctx1.fill(self,"at:put:",{aString:aString,anObject:anObject},smalltalk.JSObjectProxy)});},
  1526. messageSends: []}),
  1527. smalltalk.JSObjectProxy);
  1528. smalltalk.addMethod(
  1529. "_canForwardMessage_",
  1530. smalltalk.method({
  1531. selector: "canForwardMessage:",
  1532. fn: function (aMessage) {
  1533. var self=this;
  1534. return smalltalk.withContext(function($ctx1) {
  1535. var jsSelector = aMessage._selector()._asJavaScriptSelector();
  1536. if(jsSelector in self._jsObject()) {
  1537. return true
  1538. } else {
  1539. return false;
  1540. }
  1541. ;
  1542. return self}, function($ctx1) {$ctx1.fill(self,"canForwardMessage:",{aMessage:aMessage},smalltalk.JSObjectProxy)});},
  1543. messageSends: []}),
  1544. smalltalk.JSObjectProxy);
  1545. smalltalk.addMethod(
  1546. "_doesNotUnderstand_",
  1547. smalltalk.method({
  1548. selector: "doesNotUnderstand:",
  1549. fn: function (aMessage){
  1550. var self=this;
  1551. var jsSelector;
  1552. return smalltalk.withContext(function($ctx1) {
  1553. var $2,$1;
  1554. jsSelector=_st(self)._selectorToForwardMessage_(aMessage);
  1555. $2=jsSelector;
  1556. if(($receiver = $2) == nil || $receiver == undefined){
  1557. $1=smalltalk.Object.fn.prototype._doesNotUnderstand_.apply(_st(self), [aMessage]);
  1558. } else {
  1559. $1=_st(self)._forwardMessage_jsSelector_(aMessage,jsSelector);
  1560. };
  1561. return $1;
  1562. }, function($ctx1) {$ctx1.fill(self,"doesNotUnderstand:",{aMessage:aMessage,jsSelector:jsSelector},smalltalk.JSObjectProxy)})},
  1563. messageSends: ["selectorToForwardMessage:", "ifNotNil:ifNil:", "forwardMessage:jsSelector:", "doesNotUnderstand:"]}),
  1564. smalltalk.JSObjectProxy);
  1565. smalltalk.addMethod(
  1566. "_forwardMessage_",
  1567. smalltalk.method({
  1568. selector: "forwardMessage:",
  1569. fn: function (aMessage) {
  1570. var self=this;
  1571. return smalltalk.withContext(function($ctx1) {
  1572. return smalltalk.send(self._jsObject(), aMessage._selector()._asJavaScriptSelector(), aMessage._arguments());
  1573. ;
  1574. return self}, function($ctx1) {$ctx1.fill(self,"forwardMessage:",{aMessage:aMessage},smalltalk.JSObjectProxy)});},
  1575. messageSends: []}),
  1576. smalltalk.JSObjectProxy);
  1577. smalltalk.addMethod(
  1578. "_forwardMessage_jsSelector_",
  1579. smalltalk.method({
  1580. selector: "forwardMessage:jsSelector:",
  1581. fn: function (aMessage,aString){
  1582. var self=this;
  1583. return smalltalk.withContext(function($ctx1) {
  1584. return smalltalk.send(self._jsObject(), aString, aMessage._arguments());
  1585. ;
  1586. return self}, function($ctx1) {$ctx1.fill(self,"forwardMessage:jsSelector:",{aMessage:aMessage,aString:aString},smalltalk.JSObjectProxy)})},
  1587. messageSends: []}),
  1588. smalltalk.JSObjectProxy);
  1589. smalltalk.addMethod(
  1590. "_inspectOn_",
  1591. smalltalk.method({
  1592. selector: "inspectOn:",
  1593. fn: function (anInspector) {
  1594. var self=this;
  1595. var variables;
  1596. function $Dictionary(){return smalltalk.Dictionary||(typeof Dictionary=="undefined"?nil:Dictionary)}
  1597. return smalltalk.withContext(function($ctx1) {
  1598. variables=_st($Dictionary())._new();
  1599. _st(variables)._at_put_("#self",_st(self)._jsObject());
  1600. _st(anInspector)._setLabel_(_st(self)._printString());
  1601. _st(self)._addObjectVariablesTo_(variables);
  1602. _st(anInspector)._setVariables_(variables);
  1603. return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.JSObjectProxy)});},
  1604. messageSends: ["new", "at:put:", "jsObject", "setLabel:", "printString", "addObjectVariablesTo:", "setVariables:"]}),
  1605. smalltalk.JSObjectProxy);
  1606. smalltalk.addMethod(
  1607. "_jsObject",
  1608. smalltalk.method({
  1609. selector: "jsObject",
  1610. fn: function () {
  1611. var self=this;
  1612. return smalltalk.withContext(function($ctx1) {
  1613. var $1;
  1614. $1=self["@jsObject"];
  1615. return $1;
  1616. }, function($ctx1) {$ctx1.fill(self,"jsObject",{},smalltalk.JSObjectProxy)});},
  1617. messageSends: []}),
  1618. smalltalk.JSObjectProxy);
  1619. smalltalk.addMethod(
  1620. "_jsObject_",
  1621. smalltalk.method({
  1622. selector: "jsObject:",
  1623. fn: function (aJSObject) {
  1624. var self=this;
  1625. return smalltalk.withContext(function($ctx1) {
  1626. self["@jsObject"]=aJSObject;
  1627. return self}, function($ctx1) {$ctx1.fill(self,"jsObject:",{aJSObject:aJSObject},smalltalk.JSObjectProxy)});},
  1628. messageSends: []}),
  1629. smalltalk.JSObjectProxy);
  1630. smalltalk.addMethod(
  1631. "_keysAndValuesDo_",
  1632. smalltalk.method({
  1633. selector: "keysAndValuesDo:",
  1634. fn: function (aBlock) {
  1635. var self=this;
  1636. return smalltalk.withContext(function($ctx1) {
  1637. var o = self['@jsObject'];
  1638. for(var i in o) {
  1639. aBlock(i, o[i]);
  1640. }
  1641. ;
  1642. return self}, function($ctx1) {$ctx1.fill(self,"keysAndValuesDo:",{aBlock:aBlock},smalltalk.JSObjectProxy)});},
  1643. messageSends: []}),
  1644. smalltalk.JSObjectProxy);
  1645. smalltalk.addMethod(
  1646. "_printOn_",
  1647. smalltalk.method({
  1648. selector: "printOn:",
  1649. fn: function (aStream) {
  1650. var self=this;
  1651. return smalltalk.withContext(function($ctx1) {
  1652. _st(aStream)._nextPutAll_(_st(_st(self)._jsObject())._toString());
  1653. return self}, function($ctx1) {$ctx1.fill(self,"printOn:",{aStream:aStream},smalltalk.JSObjectProxy)});},
  1654. messageSends: ["nextPutAll:", "toString", "jsObject"]}),
  1655. smalltalk.JSObjectProxy);
  1656. smalltalk.addMethod(
  1657. "_selectorToForwardMessage_",
  1658. smalltalk.method({
  1659. selector: "selectorToForwardMessage:",
  1660. fn: function (aMessage){
  1661. var self=this;
  1662. return smalltalk.withContext(function($ctx1) {
  1663. var jsSelector = aMessage._selector()._asJavaScriptSelector();
  1664. if(jsSelector in self._jsObject()) {
  1665. return jsSelector;
  1666. } else {
  1667. return nil;
  1668. }
  1669. ;
  1670. return self}, function($ctx1) {$ctx1.fill(self,"selectorToForwardMessage:",{aMessage:aMessage},smalltalk.JSObjectProxy)})},
  1671. messageSends: []}),
  1672. smalltalk.JSObjectProxy);
  1673. smalltalk.addMethod(
  1674. "_value",
  1675. smalltalk.method({
  1676. selector: "value",
  1677. fn: function () {
  1678. var self=this;
  1679. return smalltalk.withContext(function($ctx1) {
  1680. var $1;
  1681. $1=_st(self)._at_ifAbsent_("value",(function(){
  1682. return smalltalk.withContext(function($ctx2) {
  1683. return smalltalk.Object.fn.prototype._value.apply(_st(self), []);
  1684. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1685. return $1;
  1686. }, function($ctx1) {$ctx1.fill(self,"value",{},smalltalk.JSObjectProxy)});},
  1687. messageSends: ["at:ifAbsent:", "value"]}),
  1688. smalltalk.JSObjectProxy);
  1689. smalltalk.addMethod(
  1690. "_on_",
  1691. smalltalk.method({
  1692. selector: "on:",
  1693. fn: function (aJSObject) {
  1694. var self=this;
  1695. return smalltalk.withContext(function($ctx1) {
  1696. var $2,$3,$1;
  1697. $2=_st(self)._new();
  1698. _st($2)._jsObject_(aJSObject);
  1699. $3=_st($2)._yourself();
  1700. $1=$3;
  1701. return $1;
  1702. }, function($ctx1) {$ctx1.fill(self,"on:",{aJSObject:aJSObject},smalltalk.JSObjectProxy.klass)});},
  1703. messageSends: ["jsObject:", "new", "yourself"]}),
  1704. smalltalk.JSObjectProxy.klass);
  1705. smalltalk.addClass('Number', smalltalk.Object, [], 'Kernel-Objects');
  1706. smalltalk.addMethod(
  1707. "__and",
  1708. smalltalk.method({
  1709. selector: "&",
  1710. fn: function (aNumber) {
  1711. var self=this;
  1712. return smalltalk.withContext(function($ctx1) {
  1713. return self & aNumber;
  1714. return self}, function($ctx1) {$ctx1.fill(self,"&",{aNumber:aNumber},smalltalk.Number)});},
  1715. messageSends: []}),
  1716. smalltalk.Number);
  1717. smalltalk.addMethod(
  1718. "__star",
  1719. smalltalk.method({
  1720. selector: "*",
  1721. fn: function (aNumber) {
  1722. var self=this;
  1723. return smalltalk.withContext(function($ctx1) {
  1724. return self * aNumber;
  1725. return self}, function($ctx1) {$ctx1.fill(self,"*",{aNumber:aNumber},smalltalk.Number)});},
  1726. messageSends: []}),
  1727. smalltalk.Number);
  1728. smalltalk.addMethod(
  1729. "__plus",
  1730. smalltalk.method({
  1731. selector: "+",
  1732. fn: function (aNumber) {
  1733. var self=this;
  1734. return smalltalk.withContext(function($ctx1) {
  1735. return self + aNumber;
  1736. return self}, function($ctx1) {$ctx1.fill(self,"+",{aNumber:aNumber},smalltalk.Number)});},
  1737. messageSends: []}),
  1738. smalltalk.Number);
  1739. smalltalk.addMethod(
  1740. "__minus",
  1741. smalltalk.method({
  1742. selector: "-",
  1743. fn: function (aNumber) {
  1744. var self=this;
  1745. return smalltalk.withContext(function($ctx1) {
  1746. return self - aNumber;
  1747. return self}, function($ctx1) {$ctx1.fill(self,"-",{aNumber:aNumber},smalltalk.Number)});},
  1748. messageSends: []}),
  1749. smalltalk.Number);
  1750. smalltalk.addMethod(
  1751. "__slash",
  1752. smalltalk.method({
  1753. selector: "/",
  1754. fn: function (aNumber) {
  1755. var self=this;
  1756. return smalltalk.withContext(function($ctx1) {
  1757. return self / aNumber;
  1758. return self}, function($ctx1) {$ctx1.fill(self,"/",{aNumber:aNumber},smalltalk.Number)});},
  1759. messageSends: []}),
  1760. smalltalk.Number);
  1761. smalltalk.addMethod(
  1762. "__lt",
  1763. smalltalk.method({
  1764. selector: "<",
  1765. fn: function (aNumber) {
  1766. var self=this;
  1767. return smalltalk.withContext(function($ctx1) {
  1768. return self < aNumber;
  1769. return self}, function($ctx1) {$ctx1.fill(self,"<",{aNumber:aNumber},smalltalk.Number)});},
  1770. messageSends: []}),
  1771. smalltalk.Number);
  1772. smalltalk.addMethod(
  1773. "__lt_eq",
  1774. smalltalk.method({
  1775. selector: "<=",
  1776. fn: function (aNumber) {
  1777. var self=this;
  1778. return smalltalk.withContext(function($ctx1) {
  1779. return self <= aNumber;
  1780. return self}, function($ctx1) {$ctx1.fill(self,"<=",{aNumber:aNumber},smalltalk.Number)});},
  1781. messageSends: []}),
  1782. smalltalk.Number);
  1783. smalltalk.addMethod(
  1784. "__eq",
  1785. smalltalk.method({
  1786. selector: "=",
  1787. fn: function (aNumber) {
  1788. var self=this;
  1789. return smalltalk.withContext(function($ctx1) {
  1790. if(! aNumber._isNumber || ! aNumber._isNumber()) {
  1791. return false;
  1792. }
  1793. return Number(self) == aNumber
  1794. ;
  1795. return self}, function($ctx1) {$ctx1.fill(self,"=",{aNumber:aNumber},smalltalk.Number)});},
  1796. messageSends: []}),
  1797. smalltalk.Number);
  1798. smalltalk.addMethod(
  1799. "__gt",
  1800. smalltalk.method({
  1801. selector: ">",
  1802. fn: function (aNumber) {
  1803. var self=this;
  1804. return smalltalk.withContext(function($ctx1) {
  1805. return self > aNumber;
  1806. return self}, function($ctx1) {$ctx1.fill(self,">",{aNumber:aNumber},smalltalk.Number)});},
  1807. messageSends: []}),
  1808. smalltalk.Number);
  1809. smalltalk.addMethod(
  1810. "__gt_eq",
  1811. smalltalk.method({
  1812. selector: ">=",
  1813. fn: function (aNumber) {
  1814. var self=this;
  1815. return smalltalk.withContext(function($ctx1) {
  1816. return self >= aNumber;
  1817. return self}, function($ctx1) {$ctx1.fill(self,">=",{aNumber:aNumber},smalltalk.Number)});},
  1818. messageSends: []}),
  1819. smalltalk.Number);
  1820. smalltalk.addMethod(
  1821. "__at",
  1822. smalltalk.method({
  1823. selector: "@",
  1824. fn: function (aNumber) {
  1825. var self=this;
  1826. function $Point(){return smalltalk.Point||(typeof Point=="undefined"?nil:Point)}
  1827. return smalltalk.withContext(function($ctx1) {
  1828. var $1;
  1829. $1=_st($Point())._x_y_(self,aNumber);
  1830. return $1;
  1831. }, function($ctx1) {$ctx1.fill(self,"@",{aNumber:aNumber},smalltalk.Number)});},
  1832. messageSends: ["x:y:"]}),
  1833. smalltalk.Number);
  1834. smalltalk.addMethod(
  1835. "_IsImmutable",
  1836. smalltalk.method({
  1837. selector: "IsImmutable",
  1838. fn: function () {
  1839. var self=this;
  1840. return smalltalk.withContext(function($ctx1) {
  1841. return true;
  1842. }, function($ctx1) {$ctx1.fill(self,"IsImmutable",{},smalltalk.Number)});},
  1843. messageSends: []}),
  1844. smalltalk.Number);
  1845. smalltalk.addMethod(
  1846. "__backslash_backslash",
  1847. smalltalk.method({
  1848. selector: "\x5c\x5c",
  1849. fn: function (aNumber) {
  1850. var self=this;
  1851. return smalltalk.withContext(function($ctx1) {
  1852. return self % aNumber;
  1853. return self}, function($ctx1) {$ctx1.fill(self,"\x5c\x5c",{aNumber:aNumber},smalltalk.Number)});},
  1854. messageSends: []}),
  1855. smalltalk.Number);
  1856. smalltalk.addMethod(
  1857. "_abs",
  1858. smalltalk.method({
  1859. selector: "abs",
  1860. fn: function () {
  1861. var self=this;
  1862. return smalltalk.withContext(function($ctx1) {
  1863. return Math.abs(self);;
  1864. return self}, function($ctx1) {$ctx1.fill(self,"abs",{},smalltalk.Number)});},
  1865. messageSends: []}),
  1866. smalltalk.Number);
  1867. smalltalk.addMethod(
  1868. "_asJSON",
  1869. smalltalk.method({
  1870. selector: "asJSON",
  1871. fn: function () {
  1872. var self=this;
  1873. return smalltalk.withContext(function($ctx1) {
  1874. var $1;
  1875. $1=self;
  1876. return $1;
  1877. }, function($ctx1) {$ctx1.fill(self,"asJSON",{},smalltalk.Number)});},
  1878. messageSends: []}),
  1879. smalltalk.Number);
  1880. smalltalk.addMethod(
  1881. "_asJavascript",
  1882. smalltalk.method({
  1883. selector: "asJavascript",
  1884. fn: function () {
  1885. var self=this;
  1886. return smalltalk.withContext(function($ctx1) {
  1887. var $1;
  1888. $1=_st(_st("(").__comma(_st(self)._printString())).__comma(")");
  1889. return $1;
  1890. }, function($ctx1) {$ctx1.fill(self,"asJavascript",{},smalltalk.Number)});},
  1891. messageSends: [",", "printString"]}),
  1892. smalltalk.Number);
  1893. smalltalk.addMethod(
  1894. "_asPoint",
  1895. smalltalk.method({
  1896. selector: "asPoint",
  1897. fn: function () {
  1898. var self=this;
  1899. function $Point(){return smalltalk.Point||(typeof Point=="undefined"?nil:Point)}
  1900. return smalltalk.withContext(function($ctx1) {
  1901. var $1;
  1902. $1=_st($Point())._x_y_(self,self);
  1903. return $1;
  1904. }, function($ctx1) {$ctx1.fill(self,"asPoint",{},smalltalk.Number)});},
  1905. messageSends: ["x:y:"]}),
  1906. smalltalk.Number);
  1907. smalltalk.addMethod(
  1908. "_asString",
  1909. smalltalk.method({
  1910. selector: "asString",
  1911. fn: function () {
  1912. var self=this;
  1913. return smalltalk.withContext(function($ctx1) {
  1914. return String(self) ;
  1915. return self}, function($ctx1) {$ctx1.fill(self,"asString",{},smalltalk.Number)});},
  1916. messageSends: []}),
  1917. smalltalk.Number);
  1918. smalltalk.addMethod(
  1919. "_atRandom",
  1920. smalltalk.method({
  1921. selector: "atRandom",
  1922. fn: function () {
  1923. var self=this;
  1924. function $Random(){return smalltalk.Random||(typeof Random=="undefined"?nil:Random)}
  1925. return smalltalk.withContext(function($ctx1) {
  1926. var $1;
  1927. $1=_st(_st(_st(_st(_st($Random())._new())._next()).__star(self))._truncated()).__plus((1));
  1928. return $1;
  1929. }, function($ctx1) {$ctx1.fill(self,"atRandom",{},smalltalk.Number)});},
  1930. messageSends: ["+", "truncated", "*", "next", "new"]}),
  1931. smalltalk.Number);
  1932. smalltalk.addMethod(
  1933. "_copy",
  1934. smalltalk.method({
  1935. selector: "copy",
  1936. fn: function () {
  1937. var self=this;
  1938. return smalltalk.withContext(function($ctx1) {
  1939. var $1;
  1940. $1=self;
  1941. return $1;
  1942. }, function($ctx1) {$ctx1.fill(self,"copy",{},smalltalk.Number)});},
  1943. messageSends: []}),
  1944. smalltalk.Number);
  1945. smalltalk.addMethod(
  1946. "_deepCopy",
  1947. smalltalk.method({
  1948. selector: "deepCopy",
  1949. fn: function () {
  1950. var self=this;
  1951. return smalltalk.withContext(function($ctx1) {
  1952. var $1;
  1953. $1=_st(self)._copy();
  1954. return $1;
  1955. }, function($ctx1) {$ctx1.fill(self,"deepCopy",{},smalltalk.Number)});},
  1956. messageSends: ["copy"]}),
  1957. smalltalk.Number);
  1958. smalltalk.addMethod(
  1959. "_even",
  1960. smalltalk.method({
  1961. selector: "even",
  1962. fn: function () {
  1963. var self=this;
  1964. return smalltalk.withContext(function($ctx1) {
  1965. var $1;
  1966. $1=_st((0)).__eq(_st(self).__backslash_backslash((2)));
  1967. return $1;
  1968. }, function($ctx1) {$ctx1.fill(self,"even",{},smalltalk.Number)});},
  1969. messageSends: ["=", "\x5c\x5c"]}),
  1970. smalltalk.Number);
  1971. smalltalk.addMethod(
  1972. "_identityHash",
  1973. smalltalk.method({
  1974. selector: "identityHash",
  1975. fn: function () {
  1976. var self=this;
  1977. return smalltalk.withContext(function($ctx1) {
  1978. var $1;
  1979. $1=_st(_st(self)._asString()).__comma("n");
  1980. return $1;
  1981. }, function($ctx1) {$ctx1.fill(self,"identityHash",{},smalltalk.Number)});},
  1982. messageSends: [",", "asString"]}),
  1983. smalltalk.Number);
  1984. smalltalk.addMethod(
  1985. "_isNumber",
  1986. smalltalk.method({
  1987. selector: "isNumber",
  1988. fn: function () {
  1989. var self=this;
  1990. return smalltalk.withContext(function($ctx1) {
  1991. return true;
  1992. }, function($ctx1) {$ctx1.fill(self,"isNumber",{},smalltalk.Number)});},
  1993. messageSends: []}),
  1994. smalltalk.Number);
  1995. smalltalk.addMethod(
  1996. "_isZero",
  1997. smalltalk.method({
  1998. selector: "isZero",
  1999. fn: function () {
  2000. var self=this;
  2001. return smalltalk.withContext(function($ctx1) {
  2002. var $1;
  2003. $1=_st(self).__eq((0));
  2004. return $1;
  2005. }, function($ctx1) {$ctx1.fill(self,"isZero",{},smalltalk.Number)});},
  2006. messageSends: ["="]}),
  2007. smalltalk.Number);
  2008. smalltalk.addMethod(
  2009. "_max_",
  2010. smalltalk.method({
  2011. selector: "max:",
  2012. fn: function (aNumber) {
  2013. var self=this;
  2014. return smalltalk.withContext(function($ctx1) {
  2015. return Math.max(self, aNumber);;
  2016. return self}, function($ctx1) {$ctx1.fill(self,"max:",{aNumber:aNumber},smalltalk.Number)});},
  2017. messageSends: []}),
  2018. smalltalk.Number);
  2019. smalltalk.addMethod(
  2020. "_min_",
  2021. smalltalk.method({
  2022. selector: "min:",
  2023. fn: function (aNumber) {
  2024. var self=this;
  2025. return smalltalk.withContext(function($ctx1) {
  2026. return Math.min(self, aNumber);;
  2027. return self}, function($ctx1) {$ctx1.fill(self,"min:",{aNumber:aNumber},smalltalk.Number)});},
  2028. messageSends: []}),
  2029. smalltalk.Number);
  2030. smalltalk.addMethod(
  2031. "_negated",
  2032. smalltalk.method({
  2033. selector: "negated",
  2034. fn: function () {
  2035. var self=this;
  2036. return smalltalk.withContext(function($ctx1) {
  2037. var $1;
  2038. $1=_st((0)).__minus(self);
  2039. return $1;
  2040. }, function($ctx1) {$ctx1.fill(self,"negated",{},smalltalk.Number)});},
  2041. messageSends: ["-"]}),
  2042. smalltalk.Number);
  2043. smalltalk.addMethod(
  2044. "_negative",
  2045. smalltalk.method({
  2046. selector: "negative",
  2047. fn: function () {
  2048. var self=this;
  2049. return smalltalk.withContext(function($ctx1) {
  2050. var $1;
  2051. $1=_st(self).__lt((0));
  2052. return $1;
  2053. }, function($ctx1) {$ctx1.fill(self,"negative",{},smalltalk.Number)});},
  2054. messageSends: ["<"]}),
  2055. smalltalk.Number);
  2056. smalltalk.addMethod(
  2057. "_odd",
  2058. smalltalk.method({
  2059. selector: "odd",
  2060. fn: function () {
  2061. var self=this;
  2062. return smalltalk.withContext(function($ctx1) {
  2063. var $1;
  2064. $1=_st(_st(self)._even())._not();
  2065. return $1;
  2066. }, function($ctx1) {$ctx1.fill(self,"odd",{},smalltalk.Number)});},
  2067. messageSends: ["not", "even"]}),
  2068. smalltalk.Number);
  2069. smalltalk.addMethod(
  2070. "_positive",
  2071. smalltalk.method({
  2072. selector: "positive",
  2073. fn: function () {
  2074. var self=this;
  2075. return smalltalk.withContext(function($ctx1) {
  2076. var $1;
  2077. $1=_st(self).__gt_eq((0));
  2078. return $1;
  2079. }, function($ctx1) {$ctx1.fill(self,"positive",{},smalltalk.Number)});},
  2080. messageSends: [">="]}),
  2081. smalltalk.Number);
  2082. smalltalk.addMethod(
  2083. "_printOn_",
  2084. smalltalk.method({
  2085. selector: "printOn:",
  2086. fn: function (aStream) {
  2087. var self=this;
  2088. return smalltalk.withContext(function($ctx1) {
  2089. _st(aStream)._nextPutAll_(_st(self)._asString());
  2090. return self}, function($ctx1) {$ctx1.fill(self,"printOn:",{aStream:aStream},smalltalk.Number)});},
  2091. messageSends: ["nextPutAll:", "asString"]}),
  2092. smalltalk.Number);
  2093. smalltalk.addMethod(
  2094. "_printShowingDecimalPlaces_",
  2095. smalltalk.method({
  2096. selector: "printShowingDecimalPlaces:",
  2097. fn: function (placesDesired) {
  2098. var self=this;
  2099. return smalltalk.withContext(function($ctx1) {
  2100. return self.toFixed(placesDesired);
  2101. return self}, function($ctx1) {$ctx1.fill(self,"printShowingDecimalPlaces:",{placesDesired:placesDesired},smalltalk.Number)});},
  2102. messageSends: []}),
  2103. smalltalk.Number);
  2104. smalltalk.addMethod(
  2105. "_rounded",
  2106. smalltalk.method({
  2107. selector: "rounded",
  2108. fn: function () {
  2109. var self=this;
  2110. return smalltalk.withContext(function($ctx1) {
  2111. return Math.round(self);;
  2112. return self}, function($ctx1) {$ctx1.fill(self,"rounded",{},smalltalk.Number)});},
  2113. messageSends: []}),
  2114. smalltalk.Number);
  2115. smalltalk.addMethod(
  2116. "_sqrt",
  2117. smalltalk.method({
  2118. selector: "sqrt",
  2119. fn: function () {
  2120. var self=this;
  2121. return smalltalk.withContext(function($ctx1) {
  2122. return Math.sqrt(self);
  2123. return self}, function($ctx1) {$ctx1.fill(self,"sqrt",{},smalltalk.Number)});},
  2124. messageSends: []}),
  2125. smalltalk.Number);
  2126. smalltalk.addMethod(
  2127. "_squared",
  2128. smalltalk.method({
  2129. selector: "squared",
  2130. fn: function () {
  2131. var self=this;
  2132. return smalltalk.withContext(function($ctx1) {
  2133. var $1;
  2134. $1=_st(self).__star(self);
  2135. return $1;
  2136. }, function($ctx1) {$ctx1.fill(self,"squared",{},smalltalk.Number)});},
  2137. messageSends: ["*"]}),
  2138. smalltalk.Number);
  2139. smalltalk.addMethod(
  2140. "_timesRepeat_",
  2141. smalltalk.method({
  2142. selector: "timesRepeat:",
  2143. fn: function (aBlock) {
  2144. var self=this;
  2145. var count;
  2146. return smalltalk.withContext(function($ctx1) {
  2147. count=(1);
  2148. _st((function(){
  2149. return smalltalk.withContext(function($ctx2) {
  2150. return _st(count).__gt(self);
  2151. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileFalse_((function(){
  2152. return smalltalk.withContext(function($ctx2) {
  2153. _st(aBlock)._value();
  2154. count=_st(count).__plus((1));
  2155. return count;
  2156. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2157. return self}, function($ctx1) {$ctx1.fill(self,"timesRepeat:",{aBlock:aBlock,count:count},smalltalk.Number)});},
  2158. messageSends: ["whileFalse:", "value", "+", ">"]}),
  2159. smalltalk.Number);
  2160. smalltalk.addMethod(
  2161. "_to_",
  2162. smalltalk.method({
  2163. selector: "to:",
  2164. fn: function (aNumber) {
  2165. var self=this;
  2166. var array,first,last,count;
  2167. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  2168. return smalltalk.withContext(function($ctx1) {
  2169. var $1;
  2170. first=_st(self)._truncated();
  2171. last=_st(_st(aNumber)._truncated()).__plus((1));
  2172. count=(1);
  2173. array=_st($Array())._new();
  2174. _st(_st(last).__minus(first))._timesRepeat_((function(){
  2175. return smalltalk.withContext(function($ctx2) {
  2176. _st(array)._at_put_(count,first);
  2177. count=_st(count).__plus((1));
  2178. count;
  2179. first=_st(first).__plus((1));
  2180. return first;
  2181. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2182. $1=array;
  2183. return $1;
  2184. }, function($ctx1) {$ctx1.fill(self,"to:",{aNumber:aNumber,array:array,first:first,last:last,count:count},smalltalk.Number)});},
  2185. messageSends: ["truncated", "+", "new", "timesRepeat:", "at:put:", "-"]}),
  2186. smalltalk.Number);
  2187. smalltalk.addMethod(
  2188. "_to_by_",
  2189. smalltalk.method({
  2190. selector: "to:by:",
  2191. fn: function (stop, step) {
  2192. var self=this;
  2193. var array,value,pos;
  2194. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  2195. return smalltalk.withContext(function($ctx1) {
  2196. var $1,$2,$3;
  2197. value=self;
  2198. array=_st($Array())._new();
  2199. pos=(1);
  2200. $1=_st(step).__eq((0));
  2201. if(smalltalk.assert($1)){
  2202. _st(self)._error_("step must be non-zero");
  2203. };
  2204. $2=_st(step).__lt((0));
  2205. if(smalltalk.assert($2)){
  2206. _st((function(){
  2207. return smalltalk.withContext(function($ctx2) {
  2208. return _st(value).__gt_eq(stop);
  2209. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileTrue_((function(){
  2210. return smalltalk.withContext(function($ctx2) {
  2211. _st(array)._at_put_(pos,value);
  2212. pos=_st(pos).__plus((1));
  2213. pos;
  2214. value=_st(value).__plus(step);
  2215. return value;
  2216. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2217. } else {
  2218. _st((function(){
  2219. return smalltalk.withContext(function($ctx2) {
  2220. return _st(value).__lt_eq(stop);
  2221. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileTrue_((function(){
  2222. return smalltalk.withContext(function($ctx2) {
  2223. _st(array)._at_put_(pos,value);
  2224. pos=_st(pos).__plus((1));
  2225. pos;
  2226. value=_st(value).__plus(step);
  2227. return value;
  2228. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2229. };
  2230. $3=array;
  2231. return $3;
  2232. }, function($ctx1) {$ctx1.fill(self,"to:by:",{stop:stop,step:step,array:array,value:value,pos:pos},smalltalk.Number)});},
  2233. messageSends: ["new", "ifTrue:", "error:", "=", "ifTrue:ifFalse:", "whileTrue:", "at:put:", "+", ">=", "<=", "<"]}),
  2234. smalltalk.Number);
  2235. smalltalk.addMethod(
  2236. "_to_by_do_",
  2237. smalltalk.method({
  2238. selector: "to:by:do:",
  2239. fn: function (stop, step, aBlock) {
  2240. var self=this;
  2241. var value;
  2242. return smalltalk.withContext(function($ctx1) {
  2243. var $1,$2;
  2244. value=self;
  2245. $1=_st(step).__eq((0));
  2246. if(smalltalk.assert($1)){
  2247. _st(self)._error_("step must be non-zero");
  2248. };
  2249. $2=_st(step).__lt((0));
  2250. if(smalltalk.assert($2)){
  2251. _st((function(){
  2252. return smalltalk.withContext(function($ctx2) {
  2253. return _st(value).__gt_eq(stop);
  2254. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileTrue_((function(){
  2255. return smalltalk.withContext(function($ctx2) {
  2256. _st(aBlock)._value_(value);
  2257. value=_st(value).__plus(step);
  2258. return value;
  2259. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2260. } else {
  2261. _st((function(){
  2262. return smalltalk.withContext(function($ctx2) {
  2263. return _st(value).__lt_eq(stop);
  2264. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileTrue_((function(){
  2265. return smalltalk.withContext(function($ctx2) {
  2266. _st(aBlock)._value_(value);
  2267. value=_st(value).__plus(step);
  2268. return value;
  2269. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2270. };
  2271. return self}, function($ctx1) {$ctx1.fill(self,"to:by:do:",{stop:stop,step:step,aBlock:aBlock,value:value},smalltalk.Number)});},
  2272. messageSends: ["ifTrue:", "error:", "=", "ifTrue:ifFalse:", "whileTrue:", "value:", "+", ">=", "<=", "<"]}),
  2273. smalltalk.Number);
  2274. smalltalk.addMethod(
  2275. "_to_do_",
  2276. smalltalk.method({
  2277. selector: "to:do:",
  2278. fn: function (stop, aBlock) {
  2279. var self=this;
  2280. var nextValue;
  2281. return smalltalk.withContext(function($ctx1) {
  2282. nextValue=self;
  2283. _st((function(){
  2284. return smalltalk.withContext(function($ctx2) {
  2285. return _st(nextValue).__lt_eq(stop);
  2286. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileTrue_((function(){
  2287. return smalltalk.withContext(function($ctx2) {
  2288. _st(aBlock)._value_(nextValue);
  2289. nextValue=_st(nextValue).__plus((1));
  2290. return nextValue;
  2291. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2292. return self}, function($ctx1) {$ctx1.fill(self,"to:do:",{stop:stop,aBlock:aBlock,nextValue:nextValue},smalltalk.Number)});},
  2293. messageSends: ["whileTrue:", "value:", "+", "<="]}),
  2294. smalltalk.Number);
  2295. smalltalk.addMethod(
  2296. "_truncated",
  2297. smalltalk.method({
  2298. selector: "truncated",
  2299. fn: function () {
  2300. var self=this;
  2301. return smalltalk.withContext(function($ctx1) {
  2302. if(self >= 0) {
  2303. return Math.floor(self);
  2304. } else {
  2305. return Math.floor(self * (-1)) * (-1);
  2306. };
  2307. ;
  2308. return self}, function($ctx1) {$ctx1.fill(self,"truncated",{},smalltalk.Number)});},
  2309. messageSends: []}),
  2310. smalltalk.Number);
  2311. smalltalk.addMethod(
  2312. "__or",
  2313. smalltalk.method({
  2314. selector: "|",
  2315. fn: function (aNumber) {
  2316. var self=this;
  2317. return smalltalk.withContext(function($ctx1) {
  2318. return self | aNumber;
  2319. return self}, function($ctx1) {$ctx1.fill(self,"|",{aNumber:aNumber},smalltalk.Number)});},
  2320. messageSends: []}),
  2321. smalltalk.Number);
  2322. smalltalk.addMethod(
  2323. "_pi",
  2324. smalltalk.method({
  2325. selector: "pi",
  2326. fn: function () {
  2327. var self=this;
  2328. return smalltalk.withContext(function($ctx1) {
  2329. return Math.PI;
  2330. return self}, function($ctx1) {$ctx1.fill(self,"pi",{},smalltalk.Number.klass)});},
  2331. messageSends: []}),
  2332. smalltalk.Number.klass);
  2333. smalltalk.addClass('Organizer', smalltalk.Object, [], 'Kernel-Objects');
  2334. smalltalk.addMethod(
  2335. "_addElement_",
  2336. smalltalk.method({
  2337. selector: "addElement:",
  2338. fn: function (anObject) {
  2339. var self=this;
  2340. return smalltalk.withContext(function($ctx1) {
  2341. self.elements.addElement(anObject);
  2342. return self}, function($ctx1) {$ctx1.fill(self,"addElement:",{anObject:anObject},smalltalk.Organizer)});},
  2343. messageSends: []}),
  2344. smalltalk.Organizer);
  2345. smalltalk.addMethod(
  2346. "_elements",
  2347. smalltalk.method({
  2348. selector: "elements",
  2349. fn: function () {
  2350. var self=this;
  2351. return smalltalk.withContext(function($ctx1) {
  2352. var $1;
  2353. $1=_st(_st(self)._basicAt_("elements"))._copy();
  2354. return $1;
  2355. }, function($ctx1) {$ctx1.fill(self,"elements",{},smalltalk.Organizer)});},
  2356. messageSends: ["copy", "basicAt:"]}),
  2357. smalltalk.Organizer);
  2358. smalltalk.addMethod(
  2359. "_removeElement_",
  2360. smalltalk.method({
  2361. selector: "removeElement:",
  2362. fn: function (anObject) {
  2363. var self=this;
  2364. return smalltalk.withContext(function($ctx1) {
  2365. self.elements.removeElement(anObject);
  2366. return self}, function($ctx1) {$ctx1.fill(self,"removeElement:",{anObject:anObject},smalltalk.Organizer)});},
  2367. messageSends: []}),
  2368. smalltalk.Organizer);
  2369. smalltalk.addClass('ClassOrganizer', smalltalk.Organizer, [], 'Kernel-Objects');
  2370. smalltalk.addMethod(
  2371. "_addElement_",
  2372. smalltalk.method({
  2373. selector: "addElement:",
  2374. fn: function (aString) {
  2375. var self=this;
  2376. function $ProtocolAdded(){return smalltalk.ProtocolAdded||(typeof ProtocolAdded=="undefined"?nil:ProtocolAdded)}
  2377. function $SystemAnnouncer(){return smalltalk.SystemAnnouncer||(typeof SystemAnnouncer=="undefined"?nil:SystemAnnouncer)}
  2378. return smalltalk.withContext(function($ctx1) {
  2379. var $1,$2;
  2380. smalltalk.Organizer.fn.prototype._addElement_.apply(_st(self), [aString]);
  2381. $1=_st($ProtocolAdded())._new();
  2382. _st($1)._protocol_(aString);
  2383. _st($1)._theClass_(_st(self)._theClass());
  2384. $2=_st($1)._yourself();
  2385. _st(_st($SystemAnnouncer())._current())._announce_($2);
  2386. return self}, function($ctx1) {$ctx1.fill(self,"addElement:",{aString:aString},smalltalk.ClassOrganizer)});},
  2387. messageSends: ["addElement:", "announce:", "protocol:", "new", "theClass:", "theClass", "yourself", "current"]}),
  2388. smalltalk.ClassOrganizer);
  2389. smalltalk.addMethod(
  2390. "_removeElement_",
  2391. smalltalk.method({
  2392. selector: "removeElement:",
  2393. fn: function (aString) {
  2394. var self=this;
  2395. function $ProtocolRemoved(){return smalltalk.ProtocolRemoved||(typeof ProtocolRemoved=="undefined"?nil:ProtocolRemoved)}
  2396. function $SystemAnnouncer(){return smalltalk.SystemAnnouncer||(typeof SystemAnnouncer=="undefined"?nil:SystemAnnouncer)}
  2397. return smalltalk.withContext(function($ctx1) {
  2398. var $1,$2;
  2399. smalltalk.Organizer.fn.prototype._removeElement_.apply(_st(self), [aString]);
  2400. $1=_st($ProtocolRemoved())._new();
  2401. _st($1)._protocol_(aString);
  2402. _st($1)._theClass_(_st(self)._theClass());
  2403. $2=_st($1)._yourself();
  2404. _st(_st($SystemAnnouncer())._current())._announce_($2);
  2405. return self}, function($ctx1) {$ctx1.fill(self,"removeElement:",{aString:aString},smalltalk.ClassOrganizer)});},
  2406. messageSends: ["removeElement:", "announce:", "protocol:", "new", "theClass:", "theClass", "yourself", "current"]}),
  2407. smalltalk.ClassOrganizer);
  2408. smalltalk.addMethod(
  2409. "_theClass",
  2410. smalltalk.method({
  2411. selector: "theClass",
  2412. fn: function () {
  2413. var self=this;
  2414. return smalltalk.withContext(function($ctx1) {
  2415. return self.theClass ;
  2416. return self}, function($ctx1) {$ctx1.fill(self,"theClass",{},smalltalk.ClassOrganizer)});},
  2417. messageSends: []}),
  2418. smalltalk.ClassOrganizer);
  2419. smalltalk.addClass('PackageOrganizer', smalltalk.Organizer, [], 'Kernel-Objects');
  2420. smalltalk.addClass('Package', smalltalk.Object, ['commitPathJs', 'commitPathSt'], 'Kernel-Objects');
  2421. smalltalk.addMethod(
  2422. "_classes",
  2423. smalltalk.method({
  2424. selector: "classes",
  2425. fn: function () {
  2426. var self=this;
  2427. return smalltalk.withContext(function($ctx1) {
  2428. var $1;
  2429. $1=_st(_st(self)._organization())._elements();
  2430. return $1;
  2431. }, function($ctx1) {$ctx1.fill(self,"classes",{},smalltalk.Package)});},
  2432. messageSends: ["elements", "organization"]}),
  2433. smalltalk.Package);
  2434. smalltalk.addMethod(
  2435. "_commitPathJs",
  2436. smalltalk.method({
  2437. selector: "commitPathJs",
  2438. fn: function () {
  2439. var self=this;
  2440. return smalltalk.withContext(function($ctx1) {
  2441. var $2,$1;
  2442. $2=self["@commitPathJs"];
  2443. if(($receiver = $2) == nil || $receiver == undefined){
  2444. $1=_st(_st(self)._class())._defaultCommitPathJs();
  2445. } else {
  2446. $1=$2;
  2447. };
  2448. return $1;
  2449. }, function($ctx1) {$ctx1.fill(self,"commitPathJs",{},smalltalk.Package)});},
  2450. messageSends: ["ifNil:", "defaultCommitPathJs", "class"]}),
  2451. smalltalk.Package);
  2452. smalltalk.addMethod(
  2453. "_commitPathJs_",
  2454. smalltalk.method({
  2455. selector: "commitPathJs:",
  2456. fn: function (aString) {
  2457. var self=this;
  2458. return smalltalk.withContext(function($ctx1) {
  2459. self["@commitPathJs"]=aString;
  2460. return self}, function($ctx1) {$ctx1.fill(self,"commitPathJs:",{aString:aString},smalltalk.Package)});},
  2461. messageSends: []}),
  2462. smalltalk.Package);
  2463. smalltalk.addMethod(
  2464. "_commitPathSt",
  2465. smalltalk.method({
  2466. selector: "commitPathSt",
  2467. fn: function () {
  2468. var self=this;
  2469. return smalltalk.withContext(function($ctx1) {
  2470. var $2,$1;
  2471. $2=self["@commitPathSt"];
  2472. if(($receiver = $2) == nil || $receiver == undefined){
  2473. $1=_st(_st(self)._class())._defaultCommitPathSt();
  2474. } else {
  2475. $1=$2;
  2476. };
  2477. return $1;
  2478. }, function($ctx1) {$ctx1.fill(self,"commitPathSt",{},smalltalk.Package)});},
  2479. messageSends: ["ifNil:", "defaultCommitPathSt", "class"]}),
  2480. smalltalk.Package);
  2481. smalltalk.addMethod(
  2482. "_commitPathSt_",
  2483. smalltalk.method({
  2484. selector: "commitPathSt:",
  2485. fn: function (aString) {
  2486. var self=this;
  2487. return smalltalk.withContext(function($ctx1) {
  2488. self["@commitPathSt"]=aString;
  2489. return self}, function($ctx1) {$ctx1.fill(self,"commitPathSt:",{aString:aString},smalltalk.Package)});},
  2490. messageSends: []}),
  2491. smalltalk.Package);
  2492. smalltalk.addMethod(
  2493. "_name",
  2494. smalltalk.method({
  2495. selector: "name",
  2496. fn: function () {
  2497. var self=this;
  2498. return smalltalk.withContext(function($ctx1) {
  2499. return self.pkgName;
  2500. return self}, function($ctx1) {$ctx1.fill(self,"name",{},smalltalk.Package)});},
  2501. messageSends: []}),
  2502. smalltalk.Package);
  2503. smalltalk.addMethod(
  2504. "_name_",
  2505. smalltalk.method({
  2506. selector: "name:",
  2507. fn: function (aString) {
  2508. var self=this;
  2509. return smalltalk.withContext(function($ctx1) {
  2510. self.pkgName = aString;
  2511. return self}, function($ctx1) {$ctx1.fill(self,"name:",{aString:aString},smalltalk.Package)});},
  2512. messageSends: []}),
  2513. smalltalk.Package);
  2514. smalltalk.addMethod(
  2515. "_organization",
  2516. smalltalk.method({
  2517. selector: "organization",
  2518. fn: function () {
  2519. var self=this;
  2520. return smalltalk.withContext(function($ctx1) {
  2521. var $1;
  2522. $1=_st(self)._basicAt_("organization");
  2523. return $1;
  2524. }, function($ctx1) {$ctx1.fill(self,"organization",{},smalltalk.Package)});},
  2525. messageSends: ["basicAt:"]}),
  2526. smalltalk.Package);
  2527. smalltalk.addMethod(
  2528. "_printOn_",
  2529. smalltalk.method({
  2530. selector: "printOn:",
  2531. fn: function (aStream) {
  2532. var self=this;
  2533. return smalltalk.withContext(function($ctx1) {
  2534. var $1,$2;
  2535. smalltalk.Object.fn.prototype._printOn_.apply(_st(self), [aStream]);
  2536. $1=aStream;
  2537. _st($1)._nextPutAll_(" (");
  2538. _st($1)._nextPutAll_(_st(self)._name());
  2539. $2=_st($1)._nextPutAll_(")");
  2540. return self}, function($ctx1) {$ctx1.fill(self,"printOn:",{aStream:aStream},smalltalk.Package)});},
  2541. messageSends: ["printOn:", "nextPutAll:", "name"]}),
  2542. smalltalk.Package);
  2543. smalltalk.addMethod(
  2544. "_setupClasses",
  2545. smalltalk.method({
  2546. selector: "setupClasses",
  2547. fn: function () {
  2548. var self=this;
  2549. function $ClassBuilder(){return smalltalk.ClassBuilder||(typeof ClassBuilder=="undefined"?nil:ClassBuilder)}
  2550. return smalltalk.withContext(function($ctx1) {
  2551. var $1,$2;
  2552. $1=_st(self)._classes();
  2553. _st($1)._do_((function(each){
  2554. return smalltalk.withContext(function($ctx2) {
  2555. return _st(_st($ClassBuilder())._new())._setupClass_(each);
  2556. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  2557. $2=_st($1)._do_((function(each){
  2558. return smalltalk.withContext(function($ctx2) {
  2559. return _st(each)._initialize();
  2560. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  2561. return self}, function($ctx1) {$ctx1.fill(self,"setupClasses",{},smalltalk.Package)});},
  2562. messageSends: ["do:", "setupClass:", "new", "classes", "initialize"]}),
  2563. smalltalk.Package);
  2564. smalltalk.addMethod(
  2565. "_sortedClasses",
  2566. smalltalk.method({
  2567. selector: "sortedClasses",
  2568. fn: function () {
  2569. var self=this;
  2570. return smalltalk.withContext(function($ctx1) {
  2571. var $1;
  2572. $1=_st(_st(self)._class())._sortedClasses_(_st(self)._classes());
  2573. return $1;
  2574. }, function($ctx1) {$ctx1.fill(self,"sortedClasses",{},smalltalk.Package)});},
  2575. messageSends: ["sortedClasses:", "classes", "class"]}),
  2576. smalltalk.Package);
  2577. smalltalk.Package.klass.iVarNames = ['defaultCommitPathJs','defaultCommitPathSt'];
  2578. smalltalk.addMethod(
  2579. "_commitPathsFromLoader",
  2580. smalltalk.method({
  2581. selector: "commitPathsFromLoader",
  2582. fn: function () {
  2583. var self=this;
  2584. return smalltalk.withContext(function($ctx1) {
  2585. var commitPath = typeof amber !== 'undefined' && amber.commitPath;
  2586. if (!commitPath) return;
  2587. if (commitPath.js) self._defaultCommitPathJs_(commitPath.js);
  2588. if (commitPath.st) self._defaultCommitPathSt_(commitPath.st);
  2589. ;
  2590. return self}, function($ctx1) {$ctx1.fill(self,"commitPathsFromLoader",{},smalltalk.Package.klass)});},
  2591. messageSends: []}),
  2592. smalltalk.Package.klass);
  2593. smalltalk.addMethod(
  2594. "_defaultCommitPathJs",
  2595. smalltalk.method({
  2596. selector: "defaultCommitPathJs",
  2597. fn: function () {
  2598. var self=this;
  2599. return smalltalk.withContext(function($ctx1) {
  2600. var $2,$1;
  2601. $2=self["@defaultCommitPathJs"];
  2602. if(($receiver = $2) == nil || $receiver == undefined){
  2603. self["@defaultCommitPathJs"]="js";
  2604. $1=self["@defaultCommitPathJs"];
  2605. } else {
  2606. $1=$2;
  2607. };
  2608. return $1;
  2609. }, function($ctx1) {$ctx1.fill(self,"defaultCommitPathJs",{},smalltalk.Package.klass)});},
  2610. messageSends: ["ifNil:"]}),
  2611. smalltalk.Package.klass);
  2612. smalltalk.addMethod(
  2613. "_defaultCommitPathJs_",
  2614. smalltalk.method({
  2615. selector: "defaultCommitPathJs:",
  2616. fn: function (aString) {
  2617. var self=this;
  2618. return smalltalk.withContext(function($ctx1) {
  2619. self["@defaultCommitPathJs"]=aString;
  2620. return self}, function($ctx1) {$ctx1.fill(self,"defaultCommitPathJs:",{aString:aString},smalltalk.Package.klass)});},
  2621. messageSends: []}),
  2622. smalltalk.Package.klass);
  2623. smalltalk.addMethod(
  2624. "_defaultCommitPathSt",
  2625. smalltalk.method({
  2626. selector: "defaultCommitPathSt",
  2627. fn: function () {
  2628. var self=this;
  2629. return smalltalk.withContext(function($ctx1) {
  2630. var $2,$1;
  2631. $2=self["@defaultCommitPathSt"];
  2632. if(($receiver = $2) == nil || $receiver == undefined){
  2633. self["@defaultCommitPathSt"]="st";
  2634. $1=self["@defaultCommitPathSt"];
  2635. } else {
  2636. $1=$2;
  2637. };
  2638. return $1;
  2639. }, function($ctx1) {$ctx1.fill(self,"defaultCommitPathSt",{},smalltalk.Package.klass)});},
  2640. messageSends: ["ifNil:"]}),
  2641. smalltalk.Package.klass);
  2642. smalltalk.addMethod(
  2643. "_defaultCommitPathSt_",
  2644. smalltalk.method({
  2645. selector: "defaultCommitPathSt:",
  2646. fn: function (aString) {
  2647. var self=this;
  2648. return smalltalk.withContext(function($ctx1) {
  2649. self["@defaultCommitPathSt"]=aString;
  2650. return self}, function($ctx1) {$ctx1.fill(self,"defaultCommitPathSt:",{aString:aString},smalltalk.Package.klass)});},
  2651. messageSends: []}),
  2652. smalltalk.Package.klass);
  2653. smalltalk.addMethod(
  2654. "_initialize",
  2655. smalltalk.method({
  2656. selector: "initialize",
  2657. fn: function () {
  2658. var self=this;
  2659. return smalltalk.withContext(function($ctx1) {
  2660. smalltalk.Object.klass.fn.prototype._initialize.apply(_st(self), []);
  2661. _st(self)._commitPathsFromLoader();
  2662. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.Package.klass)});},
  2663. messageSends: ["initialize", "commitPathsFromLoader"]}),
  2664. smalltalk.Package.klass);
  2665. smalltalk.addMethod(
  2666. "_load_",
  2667. smalltalk.method({
  2668. selector: "load:",
  2669. fn: function (aPackageName) {
  2670. var self=this;
  2671. return smalltalk.withContext(function($ctx1) {
  2672. _st(self)._load_prefix_(aPackageName,_st(_st(self)._defaultCommitPathJs()).__comma("/"));
  2673. return self}, function($ctx1) {$ctx1.fill(self,"load:",{aPackageName:aPackageName},smalltalk.Package.klass)});},
  2674. messageSends: ["load:prefix:", ",", "defaultCommitPathJs"]}),
  2675. smalltalk.Package.klass);
  2676. smalltalk.addMethod(
  2677. "_load_prefix_",
  2678. smalltalk.method({
  2679. selector: "load:prefix:",
  2680. fn: function (aPackageName, aPrefix) {
  2681. var self=this;
  2682. function $Package(){return smalltalk.Package||(typeof Package=="undefined"?nil:Package)}
  2683. return smalltalk.withContext(function($ctx1) {
  2684. _st(jQuery)._getScript_onSuccess_(_st(_st(aPrefix).__comma(aPackageName)).__comma(".js"),(function(){
  2685. return smalltalk.withContext(function($ctx2) {
  2686. return _st(_st($Package())._named_(aPackageName))._setupClasses();
  2687. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2688. return self}, function($ctx1) {$ctx1.fill(self,"load:prefix:",{aPackageName:aPackageName,aPrefix:aPrefix},smalltalk.Package.klass)});},
  2689. messageSends: ["getScript:onSuccess:", ",", "setupClasses", "named:"]}),
  2690. smalltalk.Package.klass);
  2691. smalltalk.addMethod(
  2692. "_named_",
  2693. smalltalk.method({
  2694. selector: "named:",
  2695. fn: function (aPackageName) {
  2696. var self=this;
  2697. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  2698. return smalltalk.withContext(function($ctx1) {
  2699. var $1;
  2700. $1=_st(_st($Smalltalk())._current())._packageAt_(aPackageName);
  2701. return $1;
  2702. }, function($ctx1) {$ctx1.fill(self,"named:",{aPackageName:aPackageName},smalltalk.Package.klass)});},
  2703. messageSends: ["packageAt:", "current"]}),
  2704. smalltalk.Package.klass);
  2705. smalltalk.addMethod(
  2706. "_named_ifAbsent_",
  2707. smalltalk.method({
  2708. selector: "named:ifAbsent:",
  2709. fn: function (aPackageName, aBlock) {
  2710. var self=this;
  2711. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  2712. return smalltalk.withContext(function($ctx1) {
  2713. var $1;
  2714. $1=_st(_st($Smalltalk())._current())._packageAt_ifAbsent_(aPackageName,aBlock);
  2715. return $1;
  2716. }, function($ctx1) {$ctx1.fill(self,"named:ifAbsent:",{aPackageName:aPackageName,aBlock:aBlock},smalltalk.Package.klass)});},
  2717. messageSends: ["packageAt:ifAbsent:", "current"]}),
  2718. smalltalk.Package.klass);
  2719. smalltalk.addMethod(
  2720. "_resetCommitPaths",
  2721. smalltalk.method({
  2722. selector: "resetCommitPaths",
  2723. fn: function () {
  2724. var self=this;
  2725. return smalltalk.withContext(function($ctx1) {
  2726. self["@defaultCommitPathJs"]=nil;
  2727. self["@defaultCommitPathSt"]=nil;
  2728. return self}, function($ctx1) {$ctx1.fill(self,"resetCommitPaths",{},smalltalk.Package.klass)});},
  2729. messageSends: []}),
  2730. smalltalk.Package.klass);
  2731. smalltalk.addMethod(
  2732. "_sortedClasses_",
  2733. smalltalk.method({
  2734. selector: "sortedClasses:",
  2735. fn: function (classes) {
  2736. var self=this;
  2737. var children,others,nodes,expandedClasses;
  2738. function $ClassSorterNode(){return smalltalk.ClassSorterNode||(typeof ClassSorterNode=="undefined"?nil:ClassSorterNode)}
  2739. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  2740. return smalltalk.withContext(function($ctx1) {
  2741. var $1,$2;
  2742. children=[];
  2743. others=[];
  2744. _st(classes)._do_((function(each){
  2745. return smalltalk.withContext(function($ctx2) {
  2746. $1=_st(classes)._includes_(_st(each)._superclass());
  2747. if(smalltalk.assert($1)){
  2748. return _st(others)._add_(each);
  2749. } else {
  2750. return _st(children)._add_(each);
  2751. };
  2752. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  2753. nodes=_st(children)._collect_((function(each){
  2754. return smalltalk.withContext(function($ctx2) {
  2755. return _st($ClassSorterNode())._on_classes_level_(each,others,(0));
  2756. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  2757. nodes=_st(nodes)._sorted_((function(a,b){
  2758. return smalltalk.withContext(function($ctx2) {
  2759. return _st(_st(_st(a)._theClass())._name()).__lt_eq(_st(_st(b)._theClass())._name());
  2760. }, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})}));
  2761. expandedClasses=_st($Array())._new();
  2762. _st(nodes)._do_((function(aNode){
  2763. return smalltalk.withContext(function($ctx2) {
  2764. return _st(aNode)._traverseClassesWith_(expandedClasses);
  2765. }, function($ctx2) {$ctx2.fillBlock({aNode:aNode},$ctx1)})}));
  2766. $2=expandedClasses;
  2767. return $2;
  2768. }, function($ctx1) {$ctx1.fill(self,"sortedClasses:",{classes:classes,children:children,others:others,nodes:nodes,expandedClasses:expandedClasses},smalltalk.Package.klass)});},
  2769. messageSends: ["do:", "ifFalse:ifTrue:", "add:", "includes:", "superclass", "collect:", "on:classes:level:", "sorted:", "<=", "name", "theClass", "new", "traverseClassesWith:"]}),
  2770. smalltalk.Package.klass);
  2771. smalltalk.addClass('Point', smalltalk.Object, ['x', 'y'], 'Kernel-Objects');
  2772. smalltalk.addMethod(
  2773. "__star",
  2774. smalltalk.method({
  2775. selector: "*",
  2776. fn: function (aPoint) {
  2777. var self=this;
  2778. function $Point(){return smalltalk.Point||(typeof Point=="undefined"?nil:Point)}
  2779. return smalltalk.withContext(function($ctx1) {
  2780. var $1;
  2781. $1=_st($Point())._x_y_(_st(_st(self)._x()).__star(_st(_st(aPoint)._asPoint())._x()),_st(_st(self)._y()).__star(_st(_st(aPoint)._asPoint())._y()));
  2782. return $1;
  2783. }, function($ctx1) {$ctx1.fill(self,"*",{aPoint:aPoint},smalltalk.Point)});},
  2784. messageSends: ["x:y:", "*", "x", "asPoint", "y"]}),
  2785. smalltalk.Point);
  2786. smalltalk.addMethod(
  2787. "__plus",
  2788. smalltalk.method({
  2789. selector: "+",
  2790. fn: function (aPoint) {
  2791. var self=this;
  2792. function $Point(){return smalltalk.Point||(typeof Point=="undefined"?nil:Point)}
  2793. return smalltalk.withContext(function($ctx1) {
  2794. var $1;
  2795. $1=_st($Point())._x_y_(_st(_st(self)._x()).__plus(_st(_st(aPoint)._asPoint())._x()),_st(_st(self)._y()).__plus(_st(_st(aPoint)._asPoint())._y()));
  2796. return $1;
  2797. }, function($ctx1) {$ctx1.fill(self,"+",{aPoint:aPoint},smalltalk.Point)});},
  2798. messageSends: ["x:y:", "+", "x", "asPoint", "y"]}),
  2799. smalltalk.Point);
  2800. smalltalk.addMethod(
  2801. "__minus",
  2802. smalltalk.method({
  2803. selector: "-",
  2804. fn: function (aPoint) {
  2805. var self=this;
  2806. function $Point(){return smalltalk.Point||(typeof Point=="undefined"?nil:Point)}
  2807. return smalltalk.withContext(function($ctx1) {
  2808. var $1;
  2809. $1=_st($Point())._x_y_(_st(_st(self)._x()).__minus(_st(_st(aPoint)._asPoint())._x()),_st(_st(self)._y()).__minus(_st(_st(aPoint)._asPoint())._y()));
  2810. return $1;
  2811. }, function($ctx1) {$ctx1.fill(self,"-",{aPoint:aPoint},smalltalk.Point)});},
  2812. messageSends: ["x:y:", "-", "x", "asPoint", "y"]}),
  2813. smalltalk.Point);
  2814. smalltalk.addMethod(
  2815. "__slash",
  2816. smalltalk.method({
  2817. selector: "/",
  2818. fn: function (aPoint) {
  2819. var self=this;
  2820. function $Point(){return smalltalk.Point||(typeof Point=="undefined"?nil:Point)}
  2821. return smalltalk.withContext(function($ctx1) {
  2822. var $1;
  2823. $1=_st($Point())._x_y_(_st(_st(self)._x()).__slash(_st(_st(aPoint)._asPoint())._x()),_st(_st(self)._y()).__slash(_st(_st(aPoint)._asPoint())._y()));
  2824. return $1;
  2825. }, function($ctx1) {$ctx1.fill(self,"/",{aPoint:aPoint},smalltalk.Point)});},
  2826. messageSends: ["x:y:", "/", "x", "asPoint", "y"]}),
  2827. smalltalk.Point);
  2828. smalltalk.addMethod(
  2829. "__eq",
  2830. smalltalk.method({
  2831. selector: "=",
  2832. fn: function (aPoint) {
  2833. var self=this;
  2834. return smalltalk.withContext(function($ctx1) {
  2835. var $1;
  2836. $1=_st(_st(_st(aPoint)._class()).__eq(_st(self)._class()))._and_((function(){
  2837. return smalltalk.withContext(function($ctx2) {
  2838. return _st(_st(_st(aPoint)._x()).__eq(_st(self)._x())).__and(_st(_st(aPoint)._y()).__eq(_st(self)._y()));
  2839. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2840. return $1;
  2841. }, function($ctx1) {$ctx1.fill(self,"=",{aPoint:aPoint},smalltalk.Point)});},
  2842. messageSends: ["and:", "&", "=", "y", "x", "class"]}),
  2843. smalltalk.Point);
  2844. smalltalk.addMethod(
  2845. "_asPoint",
  2846. smalltalk.method({
  2847. selector: "asPoint",
  2848. fn: function () {
  2849. var self=this;
  2850. return smalltalk.withContext(function($ctx1) {
  2851. var $1;
  2852. $1=self;
  2853. return $1;
  2854. }, function($ctx1) {$ctx1.fill(self,"asPoint",{},smalltalk.Point)});},
  2855. messageSends: []}),
  2856. smalltalk.Point);
  2857. smalltalk.addMethod(
  2858. "_printOn_",
  2859. smalltalk.method({
  2860. selector: "printOn:",
  2861. fn: function (aStream) {
  2862. var self=this;
  2863. return smalltalk.withContext(function($ctx1) {
  2864. var $1;
  2865. _st(self["@x"])._printOn_(aStream);
  2866. _st(aStream)._nextPutAll_("@");
  2867. $1=_st(_st(self["@y"])._notNil())._and_((function(){
  2868. return smalltalk.withContext(function($ctx2) {
  2869. return _st(self["@y"])._negative();
  2870. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2871. if(smalltalk.assert($1)){
  2872. _st(aStream)._space();
  2873. };
  2874. _st(self["@y"])._printOn_(aStream);
  2875. return self}, function($ctx1) {$ctx1.fill(self,"printOn:",{aStream:aStream},smalltalk.Point)});},
  2876. messageSends: ["printOn:", "nextPutAll:", "ifTrue:", "space", "and:", "negative", "notNil"]}),
  2877. smalltalk.Point);
  2878. smalltalk.addMethod(
  2879. "_translateBy_",
  2880. smalltalk.method({
  2881. selector: "translateBy:",
  2882. fn: function (delta) {
  2883. var self=this;
  2884. return smalltalk.withContext(function($ctx1) {
  2885. var $1;
  2886. $1=_st(_st(_st(delta)._x()).__plus(self["@x"])).__at(_st(_st(delta)._y()).__plus(self["@y"]));
  2887. return $1;
  2888. }, function($ctx1) {$ctx1.fill(self,"translateBy:",{delta:delta},smalltalk.Point)});},
  2889. messageSends: ["@", "+", "y", "x"]}),
  2890. smalltalk.Point);
  2891. smalltalk.addMethod(
  2892. "_x",
  2893. smalltalk.method({
  2894. selector: "x",
  2895. fn: function () {
  2896. var self=this;
  2897. return smalltalk.withContext(function($ctx1) {
  2898. var $1;
  2899. $1=self["@x"];
  2900. return $1;
  2901. }, function($ctx1) {$ctx1.fill(self,"x",{},smalltalk.Point)});},
  2902. messageSends: []}),
  2903. smalltalk.Point);
  2904. smalltalk.addMethod(
  2905. "_x_",
  2906. smalltalk.method({
  2907. selector: "x:",
  2908. fn: function (aNumber) {
  2909. var self=this;
  2910. return smalltalk.withContext(function($ctx1) {
  2911. self["@x"]=aNumber;
  2912. return self}, function($ctx1) {$ctx1.fill(self,"x:",{aNumber:aNumber},smalltalk.Point)});},
  2913. messageSends: []}),
  2914. smalltalk.Point);
  2915. smalltalk.addMethod(
  2916. "_y",
  2917. smalltalk.method({
  2918. selector: "y",
  2919. fn: function () {
  2920. var self=this;
  2921. return smalltalk.withContext(function($ctx1) {
  2922. var $1;
  2923. $1=self["@y"];
  2924. return $1;
  2925. }, function($ctx1) {$ctx1.fill(self,"y",{},smalltalk.Point)});},
  2926. messageSends: []}),
  2927. smalltalk.Point);
  2928. smalltalk.addMethod(
  2929. "_y_",
  2930. smalltalk.method({
  2931. selector: "y:",
  2932. fn: function (aNumber) {
  2933. var self=this;
  2934. return smalltalk.withContext(function($ctx1) {
  2935. self["@y"]=aNumber;
  2936. return self}, function($ctx1) {$ctx1.fill(self,"y:",{aNumber:aNumber},smalltalk.Point)});},
  2937. messageSends: []}),
  2938. smalltalk.Point);
  2939. smalltalk.addMethod(
  2940. "_x_y_",
  2941. smalltalk.method({
  2942. selector: "x:y:",
  2943. fn: function (aNumber, anotherNumber) {
  2944. var self=this;
  2945. return smalltalk.withContext(function($ctx1) {
  2946. var $2,$3,$1;
  2947. $2=_st(self)._new();
  2948. _st($2)._x_(aNumber);
  2949. _st($2)._y_(anotherNumber);
  2950. $3=_st($2)._yourself();
  2951. $1=$3;
  2952. return $1;
  2953. }, function($ctx1) {$ctx1.fill(self,"x:y:",{aNumber:aNumber,anotherNumber:anotherNumber},smalltalk.Point.klass)});},
  2954. messageSends: ["x:", "new", "y:", "yourself"]}),
  2955. smalltalk.Point.klass);
  2956. smalltalk.addClass('Random', smalltalk.Object, [], 'Kernel-Objects');
  2957. smalltalk.addMethod(
  2958. "_next",
  2959. smalltalk.method({
  2960. selector: "next",
  2961. fn: function () {
  2962. var self=this;
  2963. return smalltalk.withContext(function($ctx1) {
  2964. return Math.random();
  2965. return self}, function($ctx1) {$ctx1.fill(self,"next",{},smalltalk.Random)});},
  2966. messageSends: []}),
  2967. smalltalk.Random);
  2968. smalltalk.addMethod(
  2969. "_next_",
  2970. smalltalk.method({
  2971. selector: "next:",
  2972. fn: function (anInteger) {
  2973. var self=this;
  2974. return smalltalk.withContext(function($ctx1) {
  2975. var $1;
  2976. $1=_st(_st((1))._to_(anInteger))._collect_((function(each){
  2977. return smalltalk.withContext(function($ctx2) {
  2978. return _st(self)._next();
  2979. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  2980. return $1;
  2981. }, function($ctx1) {$ctx1.fill(self,"next:",{anInteger:anInteger},smalltalk.Random)});},
  2982. messageSends: ["collect:", "next", "to:"]}),
  2983. smalltalk.Random);
  2984. smalltalk.addClass('Smalltalk', smalltalk.Object, [], 'Kernel-Objects');
  2985. smalltalk.addMethod(
  2986. "_asSmalltalkException_",
  2987. smalltalk.method({
  2988. selector: "asSmalltalkException:",
  2989. fn: function (anObject) {
  2990. var self=this;
  2991. function $JavaScriptException(){return smalltalk.JavaScriptException||(typeof JavaScriptException=="undefined"?nil:JavaScriptException)}
  2992. function $Error(){return smalltalk.Error||(typeof Error=="undefined"?nil:Error)}
  2993. return smalltalk.withContext(function($ctx1) {
  2994. var $2,$1;
  2995. $2=_st(_st(self)._isSmalltalkObject_(anObject))._and_((function(){
  2996. return smalltalk.withContext(function($ctx2) {
  2997. return _st(anObject)._isKindOf_($Error());
  2998. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2999. if(smalltalk.assert($2)){
  3000. $1=anObject;
  3001. } else {
  3002. $1=_st($JavaScriptException())._on_(anObject);
  3003. };
  3004. return $1;
  3005. }, function($ctx1) {$ctx1.fill(self,"asSmalltalkException:",{anObject:anObject},smalltalk.Smalltalk)});},
  3006. messageSends: ["ifTrue:ifFalse:", "on:", "and:", "isKindOf:", "isSmalltalkObject:"]}),
  3007. smalltalk.Smalltalk);
  3008. smalltalk.addMethod(
  3009. "_at_",
  3010. smalltalk.method({
  3011. selector: "at:",
  3012. fn: function (aString) {
  3013. var self=this;
  3014. return smalltalk.withContext(function($ctx1) {
  3015. return self[aString];
  3016. return self}, function($ctx1) {$ctx1.fill(self,"at:",{aString:aString},smalltalk.Smalltalk)});},
  3017. messageSends: []}),
  3018. smalltalk.Smalltalk);
  3019. smalltalk.addMethod(
  3020. "_basicParse_",
  3021. smalltalk.method({
  3022. selector: "basicParse:",
  3023. fn: function (aString) {
  3024. var self=this;
  3025. return smalltalk.withContext(function($ctx1) {
  3026. return smalltalk.parser.parse(aString);
  3027. return self}, function($ctx1) {$ctx1.fill(self,"basicParse:",{aString:aString},smalltalk.Smalltalk)});},
  3028. messageSends: []}),
  3029. smalltalk.Smalltalk);
  3030. smalltalk.addMethod(
  3031. "_classes",
  3032. smalltalk.method({
  3033. selector: "classes",
  3034. fn: function () {
  3035. var self=this;
  3036. return smalltalk.withContext(function($ctx1) {
  3037. return self.classes();
  3038. return self}, function($ctx1) {$ctx1.fill(self,"classes",{},smalltalk.Smalltalk)});},
  3039. messageSends: []}),
  3040. smalltalk.Smalltalk);
  3041. smalltalk.addMethod(
  3042. "_createPackage_",
  3043. smalltalk.method({
  3044. selector: "createPackage:",
  3045. fn: function (packageName) {
  3046. var self=this;
  3047. return smalltalk.withContext(function($ctx1) {
  3048. return smalltalk.addPackage(packageName);
  3049. return self}, function($ctx1) {$ctx1.fill(self,"createPackage:",{packageName:packageName},smalltalk.Smalltalk)});},
  3050. messageSends: []}),
  3051. smalltalk.Smalltalk);
  3052. smalltalk.addMethod(
  3053. "_createPackage_properties_",
  3054. smalltalk.method({
  3055. selector: "createPackage:properties:",
  3056. fn: function (packageName, aDict) {
  3057. var self=this;
  3058. return smalltalk.withContext(function($ctx1) {
  3059. var $1,$2;
  3060. _st(self)._deprecatedAPI();
  3061. $1=_st(aDict)._isEmpty();
  3062. if(! smalltalk.assert($1)){
  3063. _st(self)._error_("createPackage:properties: called with nonempty properties");
  3064. };
  3065. $2=_st(self)._createPackage_(packageName);
  3066. return $2;
  3067. }, function($ctx1) {$ctx1.fill(self,"createPackage:properties:",{packageName:packageName,aDict:aDict},smalltalk.Smalltalk)});},
  3068. messageSends: ["deprecatedAPI", "ifFalse:", "error:", "isEmpty", "createPackage:"]}),
  3069. smalltalk.Smalltalk);
  3070. smalltalk.addMethod(
  3071. "_deleteClass_",
  3072. smalltalk.method({
  3073. selector: "deleteClass:",
  3074. fn: function (aClass) {
  3075. var self=this;
  3076. return smalltalk.withContext(function($ctx1) {
  3077. self.removeClass(aClass);
  3078. return self}, function($ctx1) {$ctx1.fill(self,"deleteClass:",{aClass:aClass},smalltalk.Smalltalk)});},
  3079. messageSends: []}),
  3080. smalltalk.Smalltalk);
  3081. smalltalk.addMethod(
  3082. "_deletePackage_",
  3083. smalltalk.method({
  3084. selector: "deletePackage:",
  3085. fn: function (packageName) {
  3086. var self=this;
  3087. return smalltalk.withContext(function($ctx1) {
  3088. delete smalltalk.packages[packageName];
  3089. return self}, function($ctx1) {$ctx1.fill(self,"deletePackage:",{packageName:packageName},smalltalk.Smalltalk)});},
  3090. messageSends: []}),
  3091. smalltalk.Smalltalk);
  3092. smalltalk.addMethod(
  3093. "_isSmalltalkObject_",
  3094. smalltalk.method({
  3095. selector: "isSmalltalkObject:",
  3096. fn: function (anObject) {
  3097. var self=this;
  3098. return smalltalk.withContext(function($ctx1) {
  3099. return typeof anObject.klass !== 'undefined';
  3100. return self}, function($ctx1) {$ctx1.fill(self,"isSmalltalkObject:",{anObject:anObject},smalltalk.Smalltalk)});},
  3101. messageSends: []}),
  3102. smalltalk.Smalltalk);
  3103. smalltalk.addMethod(
  3104. "_packageAt_",
  3105. smalltalk.method({
  3106. selector: "packageAt:",
  3107. fn: function (packageName) {
  3108. var self=this;
  3109. return smalltalk.withContext(function($ctx1) {
  3110. return self.packages[packageName];
  3111. return self}, function($ctx1) {$ctx1.fill(self,"packageAt:",{packageName:packageName},smalltalk.Smalltalk)});},
  3112. messageSends: []}),
  3113. smalltalk.Smalltalk);
  3114. smalltalk.addMethod(
  3115. "_packageAt_ifAbsent_",
  3116. smalltalk.method({
  3117. selector: "packageAt:ifAbsent:",
  3118. fn: function (packageName, aBlock) {
  3119. var self=this;
  3120. return smalltalk.withContext(function($ctx1) {
  3121. var $2,$1;
  3122. $2=_st(self)._packageAt_(packageName);
  3123. $1=_st($2)._ifNil_(aBlock);
  3124. return $1;
  3125. }, function($ctx1) {$ctx1.fill(self,"packageAt:ifAbsent:",{packageName:packageName,aBlock:aBlock},smalltalk.Smalltalk)});},
  3126. messageSends: ["ifNil:", "packageAt:"]}),
  3127. smalltalk.Smalltalk);
  3128. smalltalk.addMethod(
  3129. "_packages",
  3130. smalltalk.method({
  3131. selector: "packages",
  3132. fn: function () {
  3133. var self=this;
  3134. return smalltalk.withContext(function($ctx1) {
  3135. return self.packages.all();
  3136. return self}, function($ctx1) {$ctx1.fill(self,"packages",{},smalltalk.Smalltalk)});},
  3137. messageSends: []}),
  3138. smalltalk.Smalltalk);
  3139. smalltalk.addMethod(
  3140. "_parse_",
  3141. smalltalk.method({
  3142. selector: "parse:",
  3143. fn: function (aString) {
  3144. var self=this;
  3145. var result;
  3146. return smalltalk.withContext(function($ctx1) {
  3147. var $1;
  3148. _st(self)._try_catch_((function(){
  3149. return smalltalk.withContext(function($ctx2) {
  3150. result=_st(self)._basicParse_(aString);
  3151. return result;
  3152. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}),(function(ex){
  3153. return smalltalk.withContext(function($ctx2) {
  3154. return _st(_st(self)._parseError_parsing_(ex,aString))._signal();
  3155. }, function($ctx2) {$ctx2.fillBlock({ex:ex},$ctx1)})}));
  3156. $1=result;
  3157. return $1;
  3158. }, function($ctx1) {$ctx1.fill(self,"parse:",{aString:aString,result:result},smalltalk.Smalltalk)});},
  3159. messageSends: ["try:catch:", "basicParse:", "signal", "parseError:parsing:"]}),
  3160. smalltalk.Smalltalk);
  3161. smalltalk.addMethod(
  3162. "_parseError_parsing_",
  3163. smalltalk.method({
  3164. selector: "parseError:parsing:",
  3165. fn: function (anException, aString) {
  3166. var self=this;
  3167. function $ParseError(){return smalltalk.ParseError||(typeof ParseError=="undefined"?nil:ParseError)}
  3168. return smalltalk.withContext(function($ctx1) {
  3169. var $1;
  3170. $1=_st(_st($ParseError())._new())._messageText_(_st(_st(_st(_st(_st("Parse error on line ").__comma(_st(anException)._basicAt_("line"))).__comma(" column ")).__comma(_st(anException)._basicAt_("column"))).__comma(" : Unexpected character ")).__comma(_st(anException)._basicAt_("found")));
  3171. return $1;
  3172. }, function($ctx1) {$ctx1.fill(self,"parseError:parsing:",{anException:anException,aString:aString},smalltalk.Smalltalk)});},
  3173. messageSends: ["messageText:", ",", "basicAt:", "new"]}),
  3174. smalltalk.Smalltalk);
  3175. smalltalk.addMethod(
  3176. "_pseudoVariableNames",
  3177. smalltalk.method({
  3178. selector: "pseudoVariableNames",
  3179. fn: function () {
  3180. var self=this;
  3181. return smalltalk.withContext(function($ctx1) {
  3182. var $1;
  3183. $1=["self", "super", "nil", "true", "false", "thisContext"];
  3184. return $1;
  3185. }, function($ctx1) {$ctx1.fill(self,"pseudoVariableNames",{},smalltalk.Smalltalk)});},
  3186. messageSends: []}),
  3187. smalltalk.Smalltalk);
  3188. smalltalk.addMethod(
  3189. "_readJSObject_",
  3190. smalltalk.method({
  3191. selector: "readJSObject:",
  3192. fn: function (anObject) {
  3193. var self=this;
  3194. return smalltalk.withContext(function($ctx1) {
  3195. return self.readJSObject(anObject);
  3196. return self}, function($ctx1) {$ctx1.fill(self,"readJSObject:",{anObject:anObject},smalltalk.Smalltalk)});},
  3197. messageSends: []}),
  3198. smalltalk.Smalltalk);
  3199. smalltalk.addMethod(
  3200. "_removeClass_",
  3201. smalltalk.method({
  3202. selector: "removeClass:",
  3203. fn: function (aClass) {
  3204. var self=this;
  3205. function $ClassRemoved(){return smalltalk.ClassRemoved||(typeof ClassRemoved=="undefined"?nil:ClassRemoved)}
  3206. function $SystemAnnouncer(){return smalltalk.SystemAnnouncer||(typeof SystemAnnouncer=="undefined"?nil:SystemAnnouncer)}
  3207. return smalltalk.withContext(function($ctx1) {
  3208. var $1,$2,$3;
  3209. $1=_st(aClass)._isMetaclass();
  3210. if(smalltalk.assert($1)){
  3211. _st(self)._error_(_st(_st(aClass)._asString()).__comma(" is a Metaclass and cannot be removed!"));
  3212. };
  3213. _st(self)._deleteClass_(aClass);
  3214. $2=_st($ClassRemoved())._new();
  3215. _st($2)._theClass_(aClass);
  3216. $3=_st($2)._yourself();
  3217. _st(_st($SystemAnnouncer())._current())._announce_($3);
  3218. return self}, function($ctx1) {$ctx1.fill(self,"removeClass:",{aClass:aClass},smalltalk.Smalltalk)});},
  3219. messageSends: ["ifTrue:", "error:", ",", "asString", "isMetaclass", "deleteClass:", "announce:", "theClass:", "new", "yourself", "current"]}),
  3220. smalltalk.Smalltalk);
  3221. smalltalk.addMethod(
  3222. "_removePackage_",
  3223. smalltalk.method({
  3224. selector: "removePackage:",
  3225. fn: function (packageName) {
  3226. var self=this;
  3227. var pkg;
  3228. return smalltalk.withContext(function($ctx1) {
  3229. pkg=_st(self)._packageAt_ifAbsent_(packageName,(function(){
  3230. return smalltalk.withContext(function($ctx2) {
  3231. return _st(self)._error_(_st("Missing package: ").__comma(packageName));
  3232. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3233. _st(_st(pkg)._classes())._do_((function(each){
  3234. return smalltalk.withContext(function($ctx2) {
  3235. return _st(self)._removeClass_(each);
  3236. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  3237. _st(self)._deletePackage_(packageName);
  3238. return self}, function($ctx1) {$ctx1.fill(self,"removePackage:",{packageName:packageName,pkg:pkg},smalltalk.Smalltalk)});},
  3239. messageSends: ["packageAt:ifAbsent:", "error:", ",", "do:", "removeClass:", "classes", "deletePackage:"]}),
  3240. smalltalk.Smalltalk);
  3241. smalltalk.addMethod(
  3242. "_renamePackage_to_",
  3243. smalltalk.method({
  3244. selector: "renamePackage:to:",
  3245. fn: function (packageName, newName) {
  3246. var self=this;
  3247. var pkg;
  3248. return smalltalk.withContext(function($ctx1) {
  3249. var $1;
  3250. pkg=_st(self)._packageAt_ifAbsent_(packageName,(function(){
  3251. return smalltalk.withContext(function($ctx2) {
  3252. return _st(self)._error_(_st("Missing package: ").__comma(packageName));
  3253. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3254. $1=_st(self)._packageAt_(newName);
  3255. if(($receiver = $1) == nil || $receiver == undefined){
  3256. $1;
  3257. } else {
  3258. _st(self)._error_(_st("Already exists a package called: ").__comma(newName));
  3259. };
  3260. _st(_st(self)._basicAt_("packages"))._at_put_(newName,pkg);
  3261. _st(pkg)._name_(newName);
  3262. _st(self)._deletePackage_(packageName);
  3263. return self}, function($ctx1) {$ctx1.fill(self,"renamePackage:to:",{packageName:packageName,newName:newName,pkg:pkg},smalltalk.Smalltalk)});},
  3264. messageSends: ["packageAt:ifAbsent:", "error:", ",", "ifNotNil:", "packageAt:", "at:put:", "basicAt:", "name:", "deletePackage:"]}),
  3265. smalltalk.Smalltalk);
  3266. smalltalk.addMethod(
  3267. "_reservedWords",
  3268. smalltalk.method({
  3269. selector: "reservedWords",
  3270. fn: function () {
  3271. var self=this;
  3272. return smalltalk.withContext(function($ctx1) {
  3273. return self.reservedWords;
  3274. return self}, function($ctx1) {$ctx1.fill(self,"reservedWords",{},smalltalk.Smalltalk)});},
  3275. messageSends: []}),
  3276. smalltalk.Smalltalk);
  3277. smalltalk.addMethod(
  3278. "_version",
  3279. smalltalk.method({
  3280. selector: "version",
  3281. fn: function () {
  3282. var self=this;
  3283. return smalltalk.withContext(function($ctx1) {
  3284. return "0.10";
  3285. }, function($ctx1) {$ctx1.fill(self,"version",{},smalltalk.Smalltalk)});},
  3286. messageSends: []}),
  3287. smalltalk.Smalltalk);
  3288. smalltalk.Smalltalk.klass.iVarNames = ['current'];
  3289. smalltalk.addMethod(
  3290. "_current",
  3291. smalltalk.method({
  3292. selector: "current",
  3293. fn: function () {
  3294. var self=this;
  3295. return smalltalk.withContext(function($ctx1) {
  3296. return smalltalk;
  3297. return self}, function($ctx1) {$ctx1.fill(self,"current",{},smalltalk.Smalltalk.klass)});},
  3298. messageSends: []}),
  3299. smalltalk.Smalltalk.klass);
  3300. smalltalk.addClass('Timeout', smalltalk.Object, ['rawTimeout'], 'Kernel-Objects');
  3301. smalltalk.addMethod(
  3302. "_clearInterval",
  3303. smalltalk.method({
  3304. selector: "clearInterval",
  3305. fn: function () {
  3306. var self=this;
  3307. return smalltalk.withContext(function($ctx1) {
  3308. var interval = self["@rawTimeout"];
  3309. clearInterval(interval);
  3310. ;
  3311. return self}, function($ctx1) {$ctx1.fill(self,"clearInterval",{},smalltalk.Timeout)});},
  3312. messageSends: []}),
  3313. smalltalk.Timeout);
  3314. smalltalk.addMethod(
  3315. "_clearTimeout",
  3316. smalltalk.method({
  3317. selector: "clearTimeout",
  3318. fn: function () {
  3319. var self=this;
  3320. return smalltalk.withContext(function($ctx1) {
  3321. var timeout = self["@rawTimeout"];
  3322. clearTimeout(timeout);
  3323. ;
  3324. return self}, function($ctx1) {$ctx1.fill(self,"clearTimeout",{},smalltalk.Timeout)});},
  3325. messageSends: []}),
  3326. smalltalk.Timeout);
  3327. smalltalk.addMethod(
  3328. "_rawTimeout_",
  3329. smalltalk.method({
  3330. selector: "rawTimeout:",
  3331. fn: function (anObject) {
  3332. var self=this;
  3333. return smalltalk.withContext(function($ctx1) {
  3334. self["@rawTimeout"]=anObject;
  3335. return self}, function($ctx1) {$ctx1.fill(self,"rawTimeout:",{anObject:anObject},smalltalk.Timeout)});},
  3336. messageSends: []}),
  3337. smalltalk.Timeout);
  3338. smalltalk.addMethod(
  3339. "_on_",
  3340. smalltalk.method({
  3341. selector: "on:",
  3342. fn: function (anObject) {
  3343. var self=this;
  3344. return smalltalk.withContext(function($ctx1) {
  3345. var $2,$3,$1;
  3346. $2=_st(self)._new();
  3347. _st($2)._rawTimeout_(anObject);
  3348. $3=_st($2)._yourself();
  3349. $1=$3;
  3350. return $1;
  3351. }, function($ctx1) {$ctx1.fill(self,"on:",{anObject:anObject},smalltalk.Timeout.klass)});},
  3352. messageSends: ["rawTimeout:", "new", "yourself"]}),
  3353. smalltalk.Timeout.klass);
  3354. smalltalk.addClass('UndefinedObject', smalltalk.Object, [], 'Kernel-Objects');
  3355. smalltalk.addMethod(
  3356. "_asJSON",
  3357. smalltalk.method({
  3358. selector: "asJSON",
  3359. fn: function () {
  3360. var self=this;
  3361. return smalltalk.withContext(function($ctx1) {
  3362. var $1;
  3363. $1=null;
  3364. return $1;
  3365. }, function($ctx1) {$ctx1.fill(self,"asJSON",{},smalltalk.UndefinedObject)});},
  3366. messageSends: []}),
  3367. smalltalk.UndefinedObject);
  3368. smalltalk.addMethod(
  3369. "_deepCopy",
  3370. smalltalk.method({
  3371. selector: "deepCopy",
  3372. fn: function () {
  3373. var self=this;
  3374. return smalltalk.withContext(function($ctx1) {
  3375. var $1;
  3376. $1=self;
  3377. return $1;
  3378. }, function($ctx1) {$ctx1.fill(self,"deepCopy",{},smalltalk.UndefinedObject)});},
  3379. messageSends: []}),
  3380. smalltalk.UndefinedObject);
  3381. smalltalk.addMethod(
  3382. "_ifNil_",
  3383. smalltalk.method({
  3384. selector: "ifNil:",
  3385. fn: function (aBlock) {
  3386. var self=this;
  3387. return smalltalk.withContext(function($ctx1) {
  3388. var $2,$1;
  3389. $2=self;
  3390. $1=_st($2)._ifNil_ifNotNil_(aBlock,(function(){
  3391. return smalltalk.withContext(function($ctx2) {
  3392. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3393. return $1;
  3394. }, function($ctx1) {$ctx1.fill(self,"ifNil:",{aBlock:aBlock},smalltalk.UndefinedObject)});},
  3395. messageSends: ["ifNil:ifNotNil:"]}),
  3396. smalltalk.UndefinedObject);
  3397. smalltalk.addMethod(
  3398. "_ifNil_ifNotNil_",
  3399. smalltalk.method({
  3400. selector: "ifNil:ifNotNil:",
  3401. fn: function (aBlock, anotherBlock) {
  3402. var self=this;
  3403. return smalltalk.withContext(function($ctx1) {
  3404. var $1;
  3405. $1=_st(aBlock)._value();
  3406. return $1;
  3407. }, function($ctx1) {$ctx1.fill(self,"ifNil:ifNotNil:",{aBlock:aBlock,anotherBlock:anotherBlock},smalltalk.UndefinedObject)});},
  3408. messageSends: ["value"]}),
  3409. smalltalk.UndefinedObject);
  3410. smalltalk.addMethod(
  3411. "_ifNotNil_",
  3412. smalltalk.method({
  3413. selector: "ifNotNil:",
  3414. fn: function (aBlock) {
  3415. var self=this;
  3416. return smalltalk.withContext(function($ctx1) {
  3417. var $1;
  3418. $1=self;
  3419. return $1;
  3420. }, function($ctx1) {$ctx1.fill(self,"ifNotNil:",{aBlock:aBlock},smalltalk.UndefinedObject)});},
  3421. messageSends: []}),
  3422. smalltalk.UndefinedObject);
  3423. smalltalk.addMethod(
  3424. "_ifNotNil_ifNil_",
  3425. smalltalk.method({
  3426. selector: "ifNotNil:ifNil:",
  3427. fn: function (aBlock, anotherBlock) {
  3428. var self=this;
  3429. return smalltalk.withContext(function($ctx1) {
  3430. var $1;
  3431. $1=_st(anotherBlock)._value();
  3432. return $1;
  3433. }, function($ctx1) {$ctx1.fill(self,"ifNotNil:ifNil:",{aBlock:aBlock,anotherBlock:anotherBlock},smalltalk.UndefinedObject)});},
  3434. messageSends: ["value"]}),
  3435. smalltalk.UndefinedObject);
  3436. smalltalk.addMethod(
  3437. "_isImmutable",
  3438. smalltalk.method({
  3439. selector: "isImmutable",
  3440. fn: function () {
  3441. var self=this;
  3442. return smalltalk.withContext(function($ctx1) {
  3443. return true;
  3444. }, function($ctx1) {$ctx1.fill(self,"isImmutable",{},smalltalk.UndefinedObject)});},
  3445. messageSends: []}),
  3446. smalltalk.UndefinedObject);
  3447. smalltalk.addMethod(
  3448. "_isNil",
  3449. smalltalk.method({
  3450. selector: "isNil",
  3451. fn: function () {
  3452. var self=this;
  3453. return smalltalk.withContext(function($ctx1) {
  3454. return true;
  3455. }, function($ctx1) {$ctx1.fill(self,"isNil",{},smalltalk.UndefinedObject)});},
  3456. messageSends: []}),
  3457. smalltalk.UndefinedObject);
  3458. smalltalk.addMethod(
  3459. "_notNil",
  3460. smalltalk.method({
  3461. selector: "notNil",
  3462. fn: function () {
  3463. var self=this;
  3464. return smalltalk.withContext(function($ctx1) {
  3465. return false;
  3466. }, function($ctx1) {$ctx1.fill(self,"notNil",{},smalltalk.UndefinedObject)});},
  3467. messageSends: []}),
  3468. smalltalk.UndefinedObject);
  3469. smalltalk.addMethod(
  3470. "_printOn_",
  3471. smalltalk.method({
  3472. selector: "printOn:",
  3473. fn: function (aStream) {
  3474. var self=this;
  3475. return smalltalk.withContext(function($ctx1) {
  3476. _st(aStream)._nextPutAll_("nil");
  3477. return self}, function($ctx1) {$ctx1.fill(self,"printOn:",{aStream:aStream},smalltalk.UndefinedObject)});},
  3478. messageSends: ["nextPutAll:"]}),
  3479. smalltalk.UndefinedObject);
  3480. smalltalk.addMethod(
  3481. "_shallowCopy",
  3482. smalltalk.method({
  3483. selector: "shallowCopy",
  3484. fn: function () {
  3485. var self=this;
  3486. return smalltalk.withContext(function($ctx1) {
  3487. var $1;
  3488. $1=self;
  3489. return $1;
  3490. }, function($ctx1) {$ctx1.fill(self,"shallowCopy",{},smalltalk.UndefinedObject)});},
  3491. messageSends: []}),
  3492. smalltalk.UndefinedObject);
  3493. smalltalk.addMethod(
  3494. "_subclass_instanceVariableNames_",
  3495. smalltalk.method({
  3496. selector: "subclass:instanceVariableNames:",
  3497. fn: function (aString, anotherString) {
  3498. var self=this;
  3499. return smalltalk.withContext(function($ctx1) {
  3500. var $1;
  3501. $1=_st(self)._subclass_instanceVariableNames_package_(aString,anotherString,nil);
  3502. return $1;
  3503. }, function($ctx1) {$ctx1.fill(self,"subclass:instanceVariableNames:",{aString:aString,anotherString:anotherString},smalltalk.UndefinedObject)});},
  3504. messageSends: ["subclass:instanceVariableNames:package:"]}),
  3505. smalltalk.UndefinedObject);
  3506. smalltalk.addMethod(
  3507. "_subclass_instanceVariableNames_category_",
  3508. smalltalk.method({
  3509. selector: "subclass:instanceVariableNames:category:",
  3510. fn: function (aString, aString2, aString3) {
  3511. var self=this;
  3512. return smalltalk.withContext(function($ctx1) {
  3513. var $1;
  3514. _st(self)._deprecatedAPI();
  3515. $1=_st(self)._subclass_instanceVariableNames_package_(aString,aString2,aString3);
  3516. return $1;
  3517. }, function($ctx1) {$ctx1.fill(self,"subclass:instanceVariableNames:category:",{aString:aString,aString2:aString2,aString3:aString3},smalltalk.UndefinedObject)});},
  3518. messageSends: ["deprecatedAPI", "subclass:instanceVariableNames:package:"]}),
  3519. smalltalk.UndefinedObject);
  3520. smalltalk.addMethod(
  3521. "_subclass_instanceVariableNames_package_",
  3522. smalltalk.method({
  3523. selector: "subclass:instanceVariableNames:package:",
  3524. fn: function (aString, aString2, aString3) {
  3525. var self=this;
  3526. function $ClassBuilder(){return smalltalk.ClassBuilder||(typeof ClassBuilder=="undefined"?nil:ClassBuilder)}
  3527. return smalltalk.withContext(function($ctx1) {
  3528. var $1;
  3529. $1=_st(_st($ClassBuilder())._new())._superclass_subclass_instanceVariableNames_package_(self,_st(aString)._asString(),aString2,aString3);
  3530. return $1;
  3531. }, function($ctx1) {$ctx1.fill(self,"subclass:instanceVariableNames:package:",{aString:aString,aString2:aString2,aString3:aString3},smalltalk.UndefinedObject)});},
  3532. messageSends: ["superclass:subclass:instanceVariableNames:package:", "asString", "new"]}),
  3533. smalltalk.UndefinedObject);
  3534. smalltalk.addMethod(
  3535. "_new",
  3536. smalltalk.method({
  3537. selector: "new",
  3538. fn: function () {
  3539. var self=this;
  3540. return smalltalk.withContext(function($ctx1) {
  3541. _st(self)._error_("You cannot create new instances of UndefinedObject. Use nil");
  3542. return self}, function($ctx1) {$ctx1.fill(self,"new",{},smalltalk.UndefinedObject.klass)});},
  3543. messageSends: ["error:"]}),
  3544. smalltalk.UndefinedObject.klass);