Kernel-Objects.deploy.js 111 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946
  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();
  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. return smalltalk.withContext(function($ctx1) {
  1552. var $2,$3,$1;
  1553. $2=_st(self)._canForwardMessage_(aMessage);
  1554. if(smalltalk.assert($2)){
  1555. $1=_st(self)._forwardMessage_(aMessage);
  1556. } else {
  1557. $3=smalltalk.Object.fn.prototype._doesNotUnderstand_.apply(_st(self), [aMessage]);
  1558. return $3;
  1559. };
  1560. return $1;
  1561. }, function($ctx1) {$ctx1.fill(self,"doesNotUnderstand:",{aMessage:aMessage},smalltalk.JSObjectProxy)})},
  1562. messageSends: ["ifTrue:ifFalse:", "forwardMessage:", "doesNotUnderstand:", "canForwardMessage:"]}),
  1563. smalltalk.JSObjectProxy);
  1564. smalltalk.addMethod(
  1565. "_forwardMessage_",
  1566. smalltalk.method({
  1567. selector: "forwardMessage:",
  1568. fn: function (aMessage){
  1569. var self=this;
  1570. return smalltalk.withContext(function($ctx1) {
  1571. return smalltalk.send(self._jsObject(), aMessage._selector()._asJavaScriptSelector(), aMessage._arguments());
  1572. ;
  1573. return self}, function($ctx1) {$ctx1.fill(self,"forwardMessage:",{aMessage:aMessage},smalltalk.JSObjectProxy)})},
  1574. messageSends: []}),
  1575. smalltalk.JSObjectProxy);
  1576. smalltalk.addMethod(
  1577. "_inspectOn_",
  1578. smalltalk.method({
  1579. selector: "inspectOn:",
  1580. fn: function (anInspector){
  1581. var self=this;
  1582. var variables;
  1583. function $Dictionary(){return smalltalk.Dictionary||(typeof Dictionary=="undefined"?nil:Dictionary)}
  1584. return smalltalk.withContext(function($ctx1) {
  1585. variables=_st($Dictionary())._new();
  1586. _st(variables)._at_put_("#self",_st(self)._jsObject());
  1587. _st(anInspector)._setLabel_(_st(self)._printString());
  1588. _st(self)._addObjectVariablesTo_(variables);
  1589. _st(anInspector)._setVariables_(variables);
  1590. return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.JSObjectProxy)})},
  1591. messageSends: ["new", "at:put:", "jsObject", "setLabel:", "printString", "addObjectVariablesTo:", "setVariables:"]}),
  1592. smalltalk.JSObjectProxy);
  1593. smalltalk.addMethod(
  1594. "_jsObject",
  1595. smalltalk.method({
  1596. selector: "jsObject",
  1597. fn: function (){
  1598. var self=this;
  1599. return smalltalk.withContext(function($ctx1) {
  1600. var $1;
  1601. $1=self["@jsObject"];
  1602. return $1;
  1603. }, function($ctx1) {$ctx1.fill(self,"jsObject",{},smalltalk.JSObjectProxy)})},
  1604. messageSends: []}),
  1605. smalltalk.JSObjectProxy);
  1606. smalltalk.addMethod(
  1607. "_jsObject_",
  1608. smalltalk.method({
  1609. selector: "jsObject:",
  1610. fn: function (aJSObject){
  1611. var self=this;
  1612. return smalltalk.withContext(function($ctx1) {
  1613. self["@jsObject"]=aJSObject;
  1614. return self}, function($ctx1) {$ctx1.fill(self,"jsObject:",{aJSObject:aJSObject},smalltalk.JSObjectProxy)})},
  1615. messageSends: []}),
  1616. smalltalk.JSObjectProxy);
  1617. smalltalk.addMethod(
  1618. "_keysAndValuesDo_",
  1619. smalltalk.method({
  1620. selector: "keysAndValuesDo:",
  1621. fn: function (aBlock){
  1622. var self=this;
  1623. return smalltalk.withContext(function($ctx1) {
  1624. var o = self['@jsObject'];
  1625. for(var i in o) {
  1626. aBlock(i, o[i]);
  1627. }
  1628. ;
  1629. return self}, function($ctx1) {$ctx1.fill(self,"keysAndValuesDo:",{aBlock:aBlock},smalltalk.JSObjectProxy)})},
  1630. messageSends: []}),
  1631. smalltalk.JSObjectProxy);
  1632. smalltalk.addMethod(
  1633. "_printOn_",
  1634. smalltalk.method({
  1635. selector: "printOn:",
  1636. fn: function (aStream){
  1637. var self=this;
  1638. return smalltalk.withContext(function($ctx1) {
  1639. _st(aStream)._nextPutAll_(_st(_st(self)._jsObject())._toString());
  1640. return self}, function($ctx1) {$ctx1.fill(self,"printOn:",{aStream:aStream},smalltalk.JSObjectProxy)})},
  1641. messageSends: ["nextPutAll:", "toString", "jsObject"]}),
  1642. smalltalk.JSObjectProxy);
  1643. smalltalk.addMethod(
  1644. "_value",
  1645. smalltalk.method({
  1646. selector: "value",
  1647. fn: function (){
  1648. var self=this;
  1649. return smalltalk.withContext(function($ctx1) {
  1650. var $1;
  1651. $1=_st(self)._at_ifAbsent_("value",(function(){
  1652. return smalltalk.withContext(function($ctx2) {
  1653. return smalltalk.Object.fn.prototype._value.apply(_st(self), []);
  1654. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1655. return $1;
  1656. }, function($ctx1) {$ctx1.fill(self,"value",{},smalltalk.JSObjectProxy)})},
  1657. messageSends: ["at:ifAbsent:", "value"]}),
  1658. smalltalk.JSObjectProxy);
  1659. smalltalk.addMethod(
  1660. "_on_",
  1661. smalltalk.method({
  1662. selector: "on:",
  1663. fn: function (aJSObject){
  1664. var self=this;
  1665. return smalltalk.withContext(function($ctx1) {
  1666. var $2,$3,$1;
  1667. $2=_st(self)._new();
  1668. _st($2)._jsObject_(aJSObject);
  1669. $3=_st($2)._yourself();
  1670. $1=$3;
  1671. return $1;
  1672. }, function($ctx1) {$ctx1.fill(self,"on:",{aJSObject:aJSObject},smalltalk.JSObjectProxy.klass)})},
  1673. messageSends: ["jsObject:", "new", "yourself"]}),
  1674. smalltalk.JSObjectProxy.klass);
  1675. smalltalk.addClass('Number', smalltalk.Object, [], 'Kernel-Objects');
  1676. smalltalk.addMethod(
  1677. "__and",
  1678. smalltalk.method({
  1679. selector: "&",
  1680. fn: function (aNumber){
  1681. var self=this;
  1682. return smalltalk.withContext(function($ctx1) {
  1683. return self & aNumber;
  1684. return self}, function($ctx1) {$ctx1.fill(self,"&",{aNumber:aNumber},smalltalk.Number)})},
  1685. messageSends: []}),
  1686. smalltalk.Number);
  1687. smalltalk.addMethod(
  1688. "__star",
  1689. smalltalk.method({
  1690. selector: "*",
  1691. fn: function (aNumber){
  1692. var self=this;
  1693. return smalltalk.withContext(function($ctx1) {
  1694. return self * aNumber;
  1695. return self}, function($ctx1) {$ctx1.fill(self,"*",{aNumber:aNumber},smalltalk.Number)})},
  1696. messageSends: []}),
  1697. smalltalk.Number);
  1698. smalltalk.addMethod(
  1699. "__plus",
  1700. smalltalk.method({
  1701. selector: "+",
  1702. fn: function (aNumber){
  1703. var self=this;
  1704. return smalltalk.withContext(function($ctx1) {
  1705. return self + aNumber;
  1706. return self}, function($ctx1) {$ctx1.fill(self,"+",{aNumber:aNumber},smalltalk.Number)})},
  1707. messageSends: []}),
  1708. smalltalk.Number);
  1709. smalltalk.addMethod(
  1710. "__minus",
  1711. smalltalk.method({
  1712. selector: "-",
  1713. fn: function (aNumber){
  1714. var self=this;
  1715. return smalltalk.withContext(function($ctx1) {
  1716. return self - aNumber;
  1717. return self}, function($ctx1) {$ctx1.fill(self,"-",{aNumber:aNumber},smalltalk.Number)})},
  1718. messageSends: []}),
  1719. smalltalk.Number);
  1720. smalltalk.addMethod(
  1721. "__slash",
  1722. smalltalk.method({
  1723. selector: "/",
  1724. fn: function (aNumber){
  1725. var self=this;
  1726. return smalltalk.withContext(function($ctx1) {
  1727. return self / aNumber;
  1728. return self}, function($ctx1) {$ctx1.fill(self,"/",{aNumber:aNumber},smalltalk.Number)})},
  1729. messageSends: []}),
  1730. smalltalk.Number);
  1731. smalltalk.addMethod(
  1732. "__lt",
  1733. smalltalk.method({
  1734. selector: "<",
  1735. fn: function (aNumber){
  1736. var self=this;
  1737. return smalltalk.withContext(function($ctx1) {
  1738. return self < aNumber;
  1739. return self}, function($ctx1) {$ctx1.fill(self,"<",{aNumber:aNumber},smalltalk.Number)})},
  1740. messageSends: []}),
  1741. smalltalk.Number);
  1742. smalltalk.addMethod(
  1743. "__lt_eq",
  1744. smalltalk.method({
  1745. selector: "<=",
  1746. fn: function (aNumber){
  1747. var self=this;
  1748. return smalltalk.withContext(function($ctx1) {
  1749. return self <= aNumber;
  1750. return self}, function($ctx1) {$ctx1.fill(self,"<=",{aNumber:aNumber},smalltalk.Number)})},
  1751. messageSends: []}),
  1752. smalltalk.Number);
  1753. smalltalk.addMethod(
  1754. "__eq",
  1755. smalltalk.method({
  1756. selector: "=",
  1757. fn: function (aNumber){
  1758. var self=this;
  1759. return smalltalk.withContext(function($ctx1) {
  1760. if(! aNumber._isNumber || ! aNumber._isNumber()) {
  1761. return false;
  1762. }
  1763. return Number(self) == aNumber
  1764. ;
  1765. return self}, function($ctx1) {$ctx1.fill(self,"=",{aNumber:aNumber},smalltalk.Number)})},
  1766. messageSends: []}),
  1767. smalltalk.Number);
  1768. smalltalk.addMethod(
  1769. "__gt",
  1770. smalltalk.method({
  1771. selector: ">",
  1772. fn: function (aNumber){
  1773. var self=this;
  1774. return smalltalk.withContext(function($ctx1) {
  1775. return self > aNumber;
  1776. return self}, function($ctx1) {$ctx1.fill(self,">",{aNumber:aNumber},smalltalk.Number)})},
  1777. messageSends: []}),
  1778. smalltalk.Number);
  1779. smalltalk.addMethod(
  1780. "__gt_eq",
  1781. smalltalk.method({
  1782. selector: ">=",
  1783. fn: function (aNumber){
  1784. var self=this;
  1785. return smalltalk.withContext(function($ctx1) {
  1786. return self >= aNumber;
  1787. return self}, function($ctx1) {$ctx1.fill(self,">=",{aNumber:aNumber},smalltalk.Number)})},
  1788. messageSends: []}),
  1789. smalltalk.Number);
  1790. smalltalk.addMethod(
  1791. "__at",
  1792. smalltalk.method({
  1793. selector: "@",
  1794. fn: function (aNumber){
  1795. var self=this;
  1796. function $Point(){return smalltalk.Point||(typeof Point=="undefined"?nil:Point)}
  1797. return smalltalk.withContext(function($ctx1) {
  1798. var $1;
  1799. $1=_st($Point())._x_y_(self,aNumber);
  1800. return $1;
  1801. }, function($ctx1) {$ctx1.fill(self,"@",{aNumber:aNumber},smalltalk.Number)})},
  1802. messageSends: ["x:y:"]}),
  1803. smalltalk.Number);
  1804. smalltalk.addMethod(
  1805. "_IsImmutable",
  1806. smalltalk.method({
  1807. selector: "IsImmutable",
  1808. fn: function (){
  1809. var self=this;
  1810. return smalltalk.withContext(function($ctx1) {
  1811. return true;
  1812. }, function($ctx1) {$ctx1.fill(self,"IsImmutable",{},smalltalk.Number)})},
  1813. messageSends: []}),
  1814. smalltalk.Number);
  1815. smalltalk.addMethod(
  1816. "__backslash_backslash",
  1817. smalltalk.method({
  1818. selector: "\x5c\x5c",
  1819. fn: function (aNumber){
  1820. var self=this;
  1821. return smalltalk.withContext(function($ctx1) {
  1822. return self % aNumber;
  1823. return self}, function($ctx1) {$ctx1.fill(self,"\x5c\x5c",{aNumber:aNumber},smalltalk.Number)})},
  1824. messageSends: []}),
  1825. smalltalk.Number);
  1826. smalltalk.addMethod(
  1827. "_abs",
  1828. smalltalk.method({
  1829. selector: "abs",
  1830. fn: function (){
  1831. var self=this;
  1832. return smalltalk.withContext(function($ctx1) {
  1833. return Math.abs(self);;
  1834. return self}, function($ctx1) {$ctx1.fill(self,"abs",{},smalltalk.Number)})},
  1835. messageSends: []}),
  1836. smalltalk.Number);
  1837. smalltalk.addMethod(
  1838. "_asJSON",
  1839. smalltalk.method({
  1840. selector: "asJSON",
  1841. fn: function (){
  1842. var self=this;
  1843. return smalltalk.withContext(function($ctx1) {
  1844. var $1;
  1845. $1=self;
  1846. return $1;
  1847. }, function($ctx1) {$ctx1.fill(self,"asJSON",{},smalltalk.Number)})},
  1848. messageSends: []}),
  1849. smalltalk.Number);
  1850. smalltalk.addMethod(
  1851. "_asJavascript",
  1852. smalltalk.method({
  1853. selector: "asJavascript",
  1854. fn: function (){
  1855. var self=this;
  1856. return smalltalk.withContext(function($ctx1) {
  1857. var $1;
  1858. $1=_st(_st("(").__comma(_st(self)._printString())).__comma(")");
  1859. return $1;
  1860. }, function($ctx1) {$ctx1.fill(self,"asJavascript",{},smalltalk.Number)})},
  1861. messageSends: [",", "printString"]}),
  1862. smalltalk.Number);
  1863. smalltalk.addMethod(
  1864. "_asPoint",
  1865. smalltalk.method({
  1866. selector: "asPoint",
  1867. fn: function (){
  1868. var self=this;
  1869. function $Point(){return smalltalk.Point||(typeof Point=="undefined"?nil:Point)}
  1870. return smalltalk.withContext(function($ctx1) {
  1871. var $1;
  1872. $1=_st($Point())._x_y_(self,self);
  1873. return $1;
  1874. }, function($ctx1) {$ctx1.fill(self,"asPoint",{},smalltalk.Number)})},
  1875. messageSends: ["x:y:"]}),
  1876. smalltalk.Number);
  1877. smalltalk.addMethod(
  1878. "_asString",
  1879. smalltalk.method({
  1880. selector: "asString",
  1881. fn: function (){
  1882. var self=this;
  1883. return smalltalk.withContext(function($ctx1) {
  1884. return String(self) ;
  1885. return self}, function($ctx1) {$ctx1.fill(self,"asString",{},smalltalk.Number)})},
  1886. messageSends: []}),
  1887. smalltalk.Number);
  1888. smalltalk.addMethod(
  1889. "_atRandom",
  1890. smalltalk.method({
  1891. selector: "atRandom",
  1892. fn: function (){
  1893. var self=this;
  1894. function $Random(){return smalltalk.Random||(typeof Random=="undefined"?nil:Random)}
  1895. return smalltalk.withContext(function($ctx1) {
  1896. var $1;
  1897. $1=_st(_st(_st(_st(_st($Random())._new())._next()).__star(self))._truncated()).__plus((1));
  1898. return $1;
  1899. }, function($ctx1) {$ctx1.fill(self,"atRandom",{},smalltalk.Number)})},
  1900. messageSends: ["+", "truncated", "*", "next", "new"]}),
  1901. smalltalk.Number);
  1902. smalltalk.addMethod(
  1903. "_copy",
  1904. smalltalk.method({
  1905. selector: "copy",
  1906. fn: function (){
  1907. var self=this;
  1908. return smalltalk.withContext(function($ctx1) {
  1909. var $1;
  1910. $1=self;
  1911. return $1;
  1912. }, function($ctx1) {$ctx1.fill(self,"copy",{},smalltalk.Number)})},
  1913. messageSends: []}),
  1914. smalltalk.Number);
  1915. smalltalk.addMethod(
  1916. "_deepCopy",
  1917. smalltalk.method({
  1918. selector: "deepCopy",
  1919. fn: function (){
  1920. var self=this;
  1921. return smalltalk.withContext(function($ctx1) {
  1922. var $1;
  1923. $1=_st(self)._copy();
  1924. return $1;
  1925. }, function($ctx1) {$ctx1.fill(self,"deepCopy",{},smalltalk.Number)})},
  1926. messageSends: ["copy"]}),
  1927. smalltalk.Number);
  1928. smalltalk.addMethod(
  1929. "_even",
  1930. smalltalk.method({
  1931. selector: "even",
  1932. fn: function (){
  1933. var self=this;
  1934. return smalltalk.withContext(function($ctx1) {
  1935. var $1;
  1936. $1=_st((0)).__eq(_st(self).__backslash_backslash((2)));
  1937. return $1;
  1938. }, function($ctx1) {$ctx1.fill(self,"even",{},smalltalk.Number)})},
  1939. messageSends: ["=", "\x5c\x5c"]}),
  1940. smalltalk.Number);
  1941. smalltalk.addMethod(
  1942. "_identityHash",
  1943. smalltalk.method({
  1944. selector: "identityHash",
  1945. fn: function (){
  1946. var self=this;
  1947. return smalltalk.withContext(function($ctx1) {
  1948. var $1;
  1949. $1=_st(_st(self)._asString()).__comma("n");
  1950. return $1;
  1951. }, function($ctx1) {$ctx1.fill(self,"identityHash",{},smalltalk.Number)})},
  1952. messageSends: [",", "asString"]}),
  1953. smalltalk.Number);
  1954. smalltalk.addMethod(
  1955. "_isNumber",
  1956. smalltalk.method({
  1957. selector: "isNumber",
  1958. fn: function (){
  1959. var self=this;
  1960. return smalltalk.withContext(function($ctx1) {
  1961. return true;
  1962. }, function($ctx1) {$ctx1.fill(self,"isNumber",{},smalltalk.Number)})},
  1963. messageSends: []}),
  1964. smalltalk.Number);
  1965. smalltalk.addMethod(
  1966. "_isZero",
  1967. smalltalk.method({
  1968. selector: "isZero",
  1969. fn: function (){
  1970. var self=this;
  1971. return smalltalk.withContext(function($ctx1) {
  1972. var $1;
  1973. $1=_st(self).__eq((0));
  1974. return $1;
  1975. }, function($ctx1) {$ctx1.fill(self,"isZero",{},smalltalk.Number)})},
  1976. messageSends: ["="]}),
  1977. smalltalk.Number);
  1978. smalltalk.addMethod(
  1979. "_max_",
  1980. smalltalk.method({
  1981. selector: "max:",
  1982. fn: function (aNumber){
  1983. var self=this;
  1984. return smalltalk.withContext(function($ctx1) {
  1985. return Math.max(self, aNumber);;
  1986. return self}, function($ctx1) {$ctx1.fill(self,"max:",{aNumber:aNumber},smalltalk.Number)})},
  1987. messageSends: []}),
  1988. smalltalk.Number);
  1989. smalltalk.addMethod(
  1990. "_min_",
  1991. smalltalk.method({
  1992. selector: "min:",
  1993. fn: function (aNumber){
  1994. var self=this;
  1995. return smalltalk.withContext(function($ctx1) {
  1996. return Math.min(self, aNumber);;
  1997. return self}, function($ctx1) {$ctx1.fill(self,"min:",{aNumber:aNumber},smalltalk.Number)})},
  1998. messageSends: []}),
  1999. smalltalk.Number);
  2000. smalltalk.addMethod(
  2001. "_negated",
  2002. smalltalk.method({
  2003. selector: "negated",
  2004. fn: function (){
  2005. var self=this;
  2006. return smalltalk.withContext(function($ctx1) {
  2007. var $1;
  2008. $1=_st((0)).__minus(self);
  2009. return $1;
  2010. }, function($ctx1) {$ctx1.fill(self,"negated",{},smalltalk.Number)})},
  2011. messageSends: ["-"]}),
  2012. smalltalk.Number);
  2013. smalltalk.addMethod(
  2014. "_negative",
  2015. smalltalk.method({
  2016. selector: "negative",
  2017. fn: function (){
  2018. var self=this;
  2019. return smalltalk.withContext(function($ctx1) {
  2020. var $1;
  2021. $1=_st(self).__lt((0));
  2022. return $1;
  2023. }, function($ctx1) {$ctx1.fill(self,"negative",{},smalltalk.Number)})},
  2024. messageSends: ["<"]}),
  2025. smalltalk.Number);
  2026. smalltalk.addMethod(
  2027. "_odd",
  2028. smalltalk.method({
  2029. selector: "odd",
  2030. fn: function (){
  2031. var self=this;
  2032. return smalltalk.withContext(function($ctx1) {
  2033. var $1;
  2034. $1=_st(_st(self)._even())._not();
  2035. return $1;
  2036. }, function($ctx1) {$ctx1.fill(self,"odd",{},smalltalk.Number)})},
  2037. messageSends: ["not", "even"]}),
  2038. smalltalk.Number);
  2039. smalltalk.addMethod(
  2040. "_positive",
  2041. smalltalk.method({
  2042. selector: "positive",
  2043. fn: function (){
  2044. var self=this;
  2045. return smalltalk.withContext(function($ctx1) {
  2046. var $1;
  2047. $1=_st(self).__gt_eq((0));
  2048. return $1;
  2049. }, function($ctx1) {$ctx1.fill(self,"positive",{},smalltalk.Number)})},
  2050. messageSends: [">="]}),
  2051. smalltalk.Number);
  2052. smalltalk.addMethod(
  2053. "_printOn_",
  2054. smalltalk.method({
  2055. selector: "printOn:",
  2056. fn: function (aStream){
  2057. var self=this;
  2058. return smalltalk.withContext(function($ctx1) {
  2059. _st(aStream)._nextPutAll_(_st(self)._asString());
  2060. return self}, function($ctx1) {$ctx1.fill(self,"printOn:",{aStream:aStream},smalltalk.Number)})},
  2061. messageSends: ["nextPutAll:", "asString"]}),
  2062. smalltalk.Number);
  2063. smalltalk.addMethod(
  2064. "_printShowingDecimalPlaces_",
  2065. smalltalk.method({
  2066. selector: "printShowingDecimalPlaces:",
  2067. fn: function (placesDesired){
  2068. var self=this;
  2069. return smalltalk.withContext(function($ctx1) {
  2070. return self.toFixed(placesDesired);
  2071. return self}, function($ctx1) {$ctx1.fill(self,"printShowingDecimalPlaces:",{placesDesired:placesDesired},smalltalk.Number)})},
  2072. messageSends: []}),
  2073. smalltalk.Number);
  2074. smalltalk.addMethod(
  2075. "_rounded",
  2076. smalltalk.method({
  2077. selector: "rounded",
  2078. fn: function (){
  2079. var self=this;
  2080. return smalltalk.withContext(function($ctx1) {
  2081. return Math.round(self);;
  2082. return self}, function($ctx1) {$ctx1.fill(self,"rounded",{},smalltalk.Number)})},
  2083. messageSends: []}),
  2084. smalltalk.Number);
  2085. smalltalk.addMethod(
  2086. "_sqrt",
  2087. smalltalk.method({
  2088. selector: "sqrt",
  2089. fn: function (){
  2090. var self=this;
  2091. return smalltalk.withContext(function($ctx1) {
  2092. return Math.sqrt(self);
  2093. return self}, function($ctx1) {$ctx1.fill(self,"sqrt",{},smalltalk.Number)})},
  2094. messageSends: []}),
  2095. smalltalk.Number);
  2096. smalltalk.addMethod(
  2097. "_squared",
  2098. smalltalk.method({
  2099. selector: "squared",
  2100. fn: function (){
  2101. var self=this;
  2102. return smalltalk.withContext(function($ctx1) {
  2103. var $1;
  2104. $1=_st(self).__star(self);
  2105. return $1;
  2106. }, function($ctx1) {$ctx1.fill(self,"squared",{},smalltalk.Number)})},
  2107. messageSends: ["*"]}),
  2108. smalltalk.Number);
  2109. smalltalk.addMethod(
  2110. "_timesRepeat_",
  2111. smalltalk.method({
  2112. selector: "timesRepeat:",
  2113. fn: function (aBlock){
  2114. var self=this;
  2115. var count;
  2116. return smalltalk.withContext(function($ctx1) {
  2117. count=(1);
  2118. _st((function(){
  2119. return smalltalk.withContext(function($ctx2) {
  2120. return _st(count).__gt(self);
  2121. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileFalse_((function(){
  2122. return smalltalk.withContext(function($ctx2) {
  2123. _st(aBlock)._value();
  2124. count=_st(count).__plus((1));
  2125. return count;
  2126. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2127. return self}, function($ctx1) {$ctx1.fill(self,"timesRepeat:",{aBlock:aBlock,count:count},smalltalk.Number)})},
  2128. messageSends: ["whileFalse:", "value", "+", ">"]}),
  2129. smalltalk.Number);
  2130. smalltalk.addMethod(
  2131. "_to_",
  2132. smalltalk.method({
  2133. selector: "to:",
  2134. fn: function (aNumber){
  2135. var self=this;
  2136. var array,first,last,count;
  2137. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  2138. return smalltalk.withContext(function($ctx1) {
  2139. var $1;
  2140. first=_st(self)._truncated();
  2141. last=_st(_st(aNumber)._truncated()).__plus((1));
  2142. count=(1);
  2143. array=_st($Array())._new();
  2144. _st(_st(last).__minus(first))._timesRepeat_((function(){
  2145. return smalltalk.withContext(function($ctx2) {
  2146. _st(array)._at_put_(count,first);
  2147. count=_st(count).__plus((1));
  2148. count;
  2149. first=_st(first).__plus((1));
  2150. return first;
  2151. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2152. $1=array;
  2153. return $1;
  2154. }, function($ctx1) {$ctx1.fill(self,"to:",{aNumber:aNumber,array:array,first:first,last:last,count:count},smalltalk.Number)})},
  2155. messageSends: ["truncated", "+", "new", "timesRepeat:", "at:put:", "-"]}),
  2156. smalltalk.Number);
  2157. smalltalk.addMethod(
  2158. "_to_by_",
  2159. smalltalk.method({
  2160. selector: "to:by:",
  2161. fn: function (stop,step){
  2162. var self=this;
  2163. var array,value,pos;
  2164. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  2165. return smalltalk.withContext(function($ctx1) {
  2166. var $1,$2,$3;
  2167. value=self;
  2168. array=_st($Array())._new();
  2169. pos=(1);
  2170. $1=_st(step).__eq((0));
  2171. if(smalltalk.assert($1)){
  2172. _st(self)._error_("step must be non-zero");
  2173. };
  2174. $2=_st(step).__lt((0));
  2175. if(smalltalk.assert($2)){
  2176. _st((function(){
  2177. return smalltalk.withContext(function($ctx2) {
  2178. return _st(value).__gt_eq(stop);
  2179. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileTrue_((function(){
  2180. return smalltalk.withContext(function($ctx2) {
  2181. _st(array)._at_put_(pos,value);
  2182. pos=_st(pos).__plus((1));
  2183. pos;
  2184. value=_st(value).__plus(step);
  2185. return value;
  2186. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2187. } else {
  2188. _st((function(){
  2189. return smalltalk.withContext(function($ctx2) {
  2190. return _st(value).__lt_eq(stop);
  2191. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileTrue_((function(){
  2192. return smalltalk.withContext(function($ctx2) {
  2193. _st(array)._at_put_(pos,value);
  2194. pos=_st(pos).__plus((1));
  2195. pos;
  2196. value=_st(value).__plus(step);
  2197. return value;
  2198. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2199. };
  2200. $3=array;
  2201. return $3;
  2202. }, function($ctx1) {$ctx1.fill(self,"to:by:",{stop:stop,step:step,array:array,value:value,pos:pos},smalltalk.Number)})},
  2203. messageSends: ["new", "ifTrue:", "error:", "=", "ifTrue:ifFalse:", "whileTrue:", "at:put:", "+", ">=", "<=", "<"]}),
  2204. smalltalk.Number);
  2205. smalltalk.addMethod(
  2206. "_to_by_do_",
  2207. smalltalk.method({
  2208. selector: "to:by:do:",
  2209. fn: function (stop,step,aBlock){
  2210. var self=this;
  2211. var value;
  2212. return smalltalk.withContext(function($ctx1) {
  2213. var $1,$2;
  2214. value=self;
  2215. $1=_st(step).__eq((0));
  2216. if(smalltalk.assert($1)){
  2217. _st(self)._error_("step must be non-zero");
  2218. };
  2219. $2=_st(step).__lt((0));
  2220. if(smalltalk.assert($2)){
  2221. _st((function(){
  2222. return smalltalk.withContext(function($ctx2) {
  2223. return _st(value).__gt_eq(stop);
  2224. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileTrue_((function(){
  2225. return smalltalk.withContext(function($ctx2) {
  2226. _st(aBlock)._value_(value);
  2227. value=_st(value).__plus(step);
  2228. return value;
  2229. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2230. } else {
  2231. _st((function(){
  2232. return smalltalk.withContext(function($ctx2) {
  2233. return _st(value).__lt_eq(stop);
  2234. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileTrue_((function(){
  2235. return smalltalk.withContext(function($ctx2) {
  2236. _st(aBlock)._value_(value);
  2237. value=_st(value).__plus(step);
  2238. return value;
  2239. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2240. };
  2241. return self}, function($ctx1) {$ctx1.fill(self,"to:by:do:",{stop:stop,step:step,aBlock:aBlock,value:value},smalltalk.Number)})},
  2242. messageSends: ["ifTrue:", "error:", "=", "ifTrue:ifFalse:", "whileTrue:", "value:", "+", ">=", "<=", "<"]}),
  2243. smalltalk.Number);
  2244. smalltalk.addMethod(
  2245. "_to_do_",
  2246. smalltalk.method({
  2247. selector: "to:do:",
  2248. fn: function (stop,aBlock){
  2249. var self=this;
  2250. var nextValue;
  2251. return smalltalk.withContext(function($ctx1) {
  2252. nextValue=self;
  2253. _st((function(){
  2254. return smalltalk.withContext(function($ctx2) {
  2255. return _st(nextValue).__lt_eq(stop);
  2256. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._whileTrue_((function(){
  2257. return smalltalk.withContext(function($ctx2) {
  2258. _st(aBlock)._value_(nextValue);
  2259. nextValue=_st(nextValue).__plus((1));
  2260. return nextValue;
  2261. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2262. return self}, function($ctx1) {$ctx1.fill(self,"to:do:",{stop:stop,aBlock:aBlock,nextValue:nextValue},smalltalk.Number)})},
  2263. messageSends: ["whileTrue:", "value:", "+", "<="]}),
  2264. smalltalk.Number);
  2265. smalltalk.addMethod(
  2266. "_truncated",
  2267. smalltalk.method({
  2268. selector: "truncated",
  2269. fn: function (){
  2270. var self=this;
  2271. return smalltalk.withContext(function($ctx1) {
  2272. if(self >= 0) {
  2273. return Math.floor(self);
  2274. } else {
  2275. return Math.floor(self * (-1)) * (-1);
  2276. };
  2277. ;
  2278. return self}, function($ctx1) {$ctx1.fill(self,"truncated",{},smalltalk.Number)})},
  2279. messageSends: []}),
  2280. smalltalk.Number);
  2281. smalltalk.addMethod(
  2282. "__or",
  2283. smalltalk.method({
  2284. selector: "|",
  2285. fn: function (aNumber){
  2286. var self=this;
  2287. return smalltalk.withContext(function($ctx1) {
  2288. return self | aNumber;
  2289. return self}, function($ctx1) {$ctx1.fill(self,"|",{aNumber:aNumber},smalltalk.Number)})},
  2290. messageSends: []}),
  2291. smalltalk.Number);
  2292. smalltalk.addMethod(
  2293. "_pi",
  2294. smalltalk.method({
  2295. selector: "pi",
  2296. fn: function (){
  2297. var self=this;
  2298. return smalltalk.withContext(function($ctx1) {
  2299. return Math.PI;
  2300. return self}, function($ctx1) {$ctx1.fill(self,"pi",{},smalltalk.Number.klass)})},
  2301. messageSends: []}),
  2302. smalltalk.Number.klass);
  2303. smalltalk.addClass('Organizer', smalltalk.Object, [], 'Kernel-Objects');
  2304. smalltalk.addMethod(
  2305. "_addElement_",
  2306. smalltalk.method({
  2307. selector: "addElement:",
  2308. fn: function (anObject){
  2309. var self=this;
  2310. return smalltalk.withContext(function($ctx1) {
  2311. self.elements.addElement(anObject);
  2312. return self}, function($ctx1) {$ctx1.fill(self,"addElement:",{anObject:anObject},smalltalk.Organizer)})},
  2313. messageSends: []}),
  2314. smalltalk.Organizer);
  2315. smalltalk.addMethod(
  2316. "_elements",
  2317. smalltalk.method({
  2318. selector: "elements",
  2319. fn: function (){
  2320. var self=this;
  2321. return smalltalk.withContext(function($ctx1) {
  2322. var $1;
  2323. $1=_st(_st(self)._basicAt_("elements"))._copy();
  2324. return $1;
  2325. }, function($ctx1) {$ctx1.fill(self,"elements",{},smalltalk.Organizer)})},
  2326. messageSends: ["copy", "basicAt:"]}),
  2327. smalltalk.Organizer);
  2328. smalltalk.addMethod(
  2329. "_removeElement_",
  2330. smalltalk.method({
  2331. selector: "removeElement:",
  2332. fn: function (anObject){
  2333. var self=this;
  2334. return smalltalk.withContext(function($ctx1) {
  2335. self.elements.removeElement(anObject);
  2336. return self}, function($ctx1) {$ctx1.fill(self,"removeElement:",{anObject:anObject},smalltalk.Organizer)})},
  2337. messageSends: []}),
  2338. smalltalk.Organizer);
  2339. smalltalk.addClass('ClassOrganizer', smalltalk.Organizer, [], 'Kernel-Objects');
  2340. smalltalk.addMethod(
  2341. "_addElement_",
  2342. smalltalk.method({
  2343. selector: "addElement:",
  2344. fn: function (aString){
  2345. var self=this;
  2346. function $ProtocolAdded(){return smalltalk.ProtocolAdded||(typeof ProtocolAdded=="undefined"?nil:ProtocolAdded)}
  2347. function $SystemAnnouncer(){return smalltalk.SystemAnnouncer||(typeof SystemAnnouncer=="undefined"?nil:SystemAnnouncer)}
  2348. return smalltalk.withContext(function($ctx1) {
  2349. var $1,$2;
  2350. smalltalk.Organizer.fn.prototype._addElement_.apply(_st(self), [aString]);
  2351. $1=_st($ProtocolAdded())._new();
  2352. _st($1)._protocol_(aString);
  2353. _st($1)._theClass_(_st(self)._theClass());
  2354. $2=_st($1)._yourself();
  2355. _st(_st($SystemAnnouncer())._current())._announce_($2);
  2356. return self}, function($ctx1) {$ctx1.fill(self,"addElement:",{aString:aString},smalltalk.ClassOrganizer)})},
  2357. messageSends: ["addElement:", "announce:", "protocol:", "new", "theClass:", "theClass", "yourself", "current"]}),
  2358. smalltalk.ClassOrganizer);
  2359. smalltalk.addMethod(
  2360. "_removeElement_",
  2361. smalltalk.method({
  2362. selector: "removeElement:",
  2363. fn: function (aString){
  2364. var self=this;
  2365. function $ProtocolRemoved(){return smalltalk.ProtocolRemoved||(typeof ProtocolRemoved=="undefined"?nil:ProtocolRemoved)}
  2366. function $SystemAnnouncer(){return smalltalk.SystemAnnouncer||(typeof SystemAnnouncer=="undefined"?nil:SystemAnnouncer)}
  2367. return smalltalk.withContext(function($ctx1) {
  2368. var $1,$2;
  2369. smalltalk.Organizer.fn.prototype._removeElement_.apply(_st(self), [aString]);
  2370. $1=_st($ProtocolRemoved())._new();
  2371. _st($1)._protocol_(aString);
  2372. _st($1)._theClass_(_st(self)._theClass());
  2373. $2=_st($1)._yourself();
  2374. _st(_st($SystemAnnouncer())._current())._announce_($2);
  2375. return self}, function($ctx1) {$ctx1.fill(self,"removeElement:",{aString:aString},smalltalk.ClassOrganizer)})},
  2376. messageSends: ["removeElement:", "announce:", "protocol:", "new", "theClass:", "theClass", "yourself", "current"]}),
  2377. smalltalk.ClassOrganizer);
  2378. smalltalk.addMethod(
  2379. "_theClass",
  2380. smalltalk.method({
  2381. selector: "theClass",
  2382. fn: function (){
  2383. var self=this;
  2384. return smalltalk.withContext(function($ctx1) {
  2385. return self.theClass ;
  2386. return self}, function($ctx1) {$ctx1.fill(self,"theClass",{},smalltalk.ClassOrganizer)})},
  2387. messageSends: []}),
  2388. smalltalk.ClassOrganizer);
  2389. smalltalk.addClass('PackageOrganizer', smalltalk.Organizer, [], 'Kernel-Objects');
  2390. smalltalk.addClass('Package', smalltalk.Object, ['commitPathJs', 'commitPathSt'], 'Kernel-Objects');
  2391. smalltalk.addMethod(
  2392. "_classes",
  2393. smalltalk.method({
  2394. selector: "classes",
  2395. fn: function (){
  2396. var self=this;
  2397. return smalltalk.withContext(function($ctx1) {
  2398. var $1;
  2399. $1=_st(_st(self)._organization())._elements();
  2400. return $1;
  2401. }, function($ctx1) {$ctx1.fill(self,"classes",{},smalltalk.Package)})},
  2402. messageSends: ["elements", "organization"]}),
  2403. smalltalk.Package);
  2404. smalltalk.addMethod(
  2405. "_commitPathJs",
  2406. smalltalk.method({
  2407. selector: "commitPathJs",
  2408. fn: function (){
  2409. var self=this;
  2410. return smalltalk.withContext(function($ctx1) {
  2411. var $2,$1;
  2412. $2=self["@commitPathJs"];
  2413. if(($receiver = $2) == nil || $receiver == undefined){
  2414. $1=_st(_st(self)._class())._defaultCommitPathJs();
  2415. } else {
  2416. $1=$2;
  2417. };
  2418. return $1;
  2419. }, function($ctx1) {$ctx1.fill(self,"commitPathJs",{},smalltalk.Package)})},
  2420. messageSends: ["ifNil:", "defaultCommitPathJs", "class"]}),
  2421. smalltalk.Package);
  2422. smalltalk.addMethod(
  2423. "_commitPathJs_",
  2424. smalltalk.method({
  2425. selector: "commitPathJs:",
  2426. fn: function (aString){
  2427. var self=this;
  2428. return smalltalk.withContext(function($ctx1) {
  2429. self["@commitPathJs"]=aString;
  2430. return self}, function($ctx1) {$ctx1.fill(self,"commitPathJs:",{aString:aString},smalltalk.Package)})},
  2431. messageSends: []}),
  2432. smalltalk.Package);
  2433. smalltalk.addMethod(
  2434. "_commitPathSt",
  2435. smalltalk.method({
  2436. selector: "commitPathSt",
  2437. fn: function (){
  2438. var self=this;
  2439. return smalltalk.withContext(function($ctx1) {
  2440. var $2,$1;
  2441. $2=self["@commitPathSt"];
  2442. if(($receiver = $2) == nil || $receiver == undefined){
  2443. $1=_st(_st(self)._class())._defaultCommitPathSt();
  2444. } else {
  2445. $1=$2;
  2446. };
  2447. return $1;
  2448. }, function($ctx1) {$ctx1.fill(self,"commitPathSt",{},smalltalk.Package)})},
  2449. messageSends: ["ifNil:", "defaultCommitPathSt", "class"]}),
  2450. smalltalk.Package);
  2451. smalltalk.addMethod(
  2452. "_commitPathSt_",
  2453. smalltalk.method({
  2454. selector: "commitPathSt:",
  2455. fn: function (aString){
  2456. var self=this;
  2457. return smalltalk.withContext(function($ctx1) {
  2458. self["@commitPathSt"]=aString;
  2459. return self}, function($ctx1) {$ctx1.fill(self,"commitPathSt:",{aString:aString},smalltalk.Package)})},
  2460. messageSends: []}),
  2461. smalltalk.Package);
  2462. smalltalk.addMethod(
  2463. "_dependencies",
  2464. smalltalk.method({
  2465. selector: "dependencies",
  2466. fn: function (){
  2467. var self=this;
  2468. return smalltalk.withContext(function($ctx1) {
  2469. var $1;
  2470. $1=_st(self)._propertyAt_ifAbsent_("dependencies",(function(){
  2471. return smalltalk.withContext(function($ctx2) {
  2472. return [];
  2473. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2474. return $1;
  2475. }, function($ctx1) {$ctx1.fill(self,"dependencies",{},smalltalk.Package)})},
  2476. messageSends: ["propertyAt:ifAbsent:"]}),
  2477. smalltalk.Package);
  2478. smalltalk.addMethod(
  2479. "_dependencies_",
  2480. smalltalk.method({
  2481. selector: "dependencies:",
  2482. fn: function (anArray){
  2483. var self=this;
  2484. return smalltalk.withContext(function($ctx1) {
  2485. var $1;
  2486. $1=_st(self)._propertyAt_put_("dependencies",anArray);
  2487. return $1;
  2488. }, function($ctx1) {$ctx1.fill(self,"dependencies:",{anArray:anArray},smalltalk.Package)})},
  2489. messageSends: ["propertyAt:put:"]}),
  2490. smalltalk.Package);
  2491. smalltalk.addMethod(
  2492. "_jsProperties",
  2493. smalltalk.method({
  2494. selector: "jsProperties",
  2495. fn: function (){
  2496. var self=this;
  2497. return smalltalk.withContext(function($ctx1) {
  2498. return self.properties;
  2499. return self}, function($ctx1) {$ctx1.fill(self,"jsProperties",{},smalltalk.Package)})},
  2500. messageSends: []}),
  2501. smalltalk.Package);
  2502. smalltalk.addMethod(
  2503. "_jsProperties_",
  2504. smalltalk.method({
  2505. selector: "jsProperties:",
  2506. fn: function (aJSObject){
  2507. var self=this;
  2508. return smalltalk.withContext(function($ctx1) {
  2509. return self.properties = aJSObject;
  2510. return self}, function($ctx1) {$ctx1.fill(self,"jsProperties:",{aJSObject:aJSObject},smalltalk.Package)})},
  2511. messageSends: []}),
  2512. smalltalk.Package);
  2513. smalltalk.addMethod(
  2514. "_name",
  2515. smalltalk.method({
  2516. selector: "name",
  2517. fn: function (){
  2518. var self=this;
  2519. return smalltalk.withContext(function($ctx1) {
  2520. return self.pkgName;
  2521. return self}, function($ctx1) {$ctx1.fill(self,"name",{},smalltalk.Package)})},
  2522. messageSends: []}),
  2523. smalltalk.Package);
  2524. smalltalk.addMethod(
  2525. "_name_",
  2526. smalltalk.method({
  2527. selector: "name:",
  2528. fn: function (aString){
  2529. var self=this;
  2530. return smalltalk.withContext(function($ctx1) {
  2531. self.pkgName = aString;
  2532. return self}, function($ctx1) {$ctx1.fill(self,"name:",{aString:aString},smalltalk.Package)})},
  2533. messageSends: []}),
  2534. smalltalk.Package);
  2535. smalltalk.addMethod(
  2536. "_organization",
  2537. smalltalk.method({
  2538. selector: "organization",
  2539. fn: function (){
  2540. var self=this;
  2541. return smalltalk.withContext(function($ctx1) {
  2542. var $1;
  2543. $1=_st(self)._basicAt_("organization");
  2544. return $1;
  2545. }, function($ctx1) {$ctx1.fill(self,"organization",{},smalltalk.Package)})},
  2546. messageSends: ["basicAt:"]}),
  2547. smalltalk.Package);
  2548. smalltalk.addMethod(
  2549. "_printOn_",
  2550. smalltalk.method({
  2551. selector: "printOn:",
  2552. fn: function (aStream){
  2553. var self=this;
  2554. return smalltalk.withContext(function($ctx1) {
  2555. var $1,$2;
  2556. smalltalk.Object.fn.prototype._printOn_.apply(_st(self), [aStream]);
  2557. $1=aStream;
  2558. _st($1)._nextPutAll_(" (");
  2559. _st($1)._nextPutAll_(_st(self)._name());
  2560. $2=_st($1)._nextPutAll_(")");
  2561. return self}, function($ctx1) {$ctx1.fill(self,"printOn:",{aStream:aStream},smalltalk.Package)})},
  2562. messageSends: ["printOn:", "nextPutAll:", "name"]}),
  2563. smalltalk.Package);
  2564. smalltalk.addMethod(
  2565. "_properties",
  2566. smalltalk.method({
  2567. selector: "properties",
  2568. fn: function (){
  2569. var self=this;
  2570. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  2571. return smalltalk.withContext(function($ctx1) {
  2572. var $1;
  2573. $1=_st(_st($Smalltalk())._current())._readJSObject_(_st(self)._basicAt_("properties"));
  2574. return $1;
  2575. }, function($ctx1) {$ctx1.fill(self,"properties",{},smalltalk.Package)})},
  2576. messageSends: ["readJSObject:", "basicAt:", "current"]}),
  2577. smalltalk.Package);
  2578. smalltalk.addMethod(
  2579. "_propertiesAsJSON",
  2580. smalltalk.method({
  2581. selector: "propertiesAsJSON",
  2582. fn: function (){
  2583. var self=this;
  2584. return smalltalk.withContext(function($ctx1) {
  2585. return JSON.stringify(self.properties);
  2586. return self}, function($ctx1) {$ctx1.fill(self,"propertiesAsJSON",{},smalltalk.Package)})},
  2587. messageSends: []}),
  2588. smalltalk.Package);
  2589. smalltalk.addMethod(
  2590. "_propertyAt_",
  2591. smalltalk.method({
  2592. selector: "propertyAt:",
  2593. fn: function (key){
  2594. var self=this;
  2595. return smalltalk.withContext(function($ctx1) {
  2596. return self.properties[key];
  2597. return self}, function($ctx1) {$ctx1.fill(self,"propertyAt:",{key:key},smalltalk.Package)})},
  2598. messageSends: []}),
  2599. smalltalk.Package);
  2600. smalltalk.addMethod(
  2601. "_propertyAt_ifAbsent_",
  2602. smalltalk.method({
  2603. selector: "propertyAt:ifAbsent:",
  2604. fn: function (key,block){
  2605. var self=this;
  2606. return smalltalk.withContext(function($ctx1) {
  2607. var $2,$1;
  2608. $2=_st(self)._propertyAt_(key);
  2609. if(($receiver = $2) == nil || $receiver == undefined){
  2610. $1=_st(block)._value();
  2611. } else {
  2612. $1=$2;
  2613. };
  2614. return $1;
  2615. }, function($ctx1) {$ctx1.fill(self,"propertyAt:ifAbsent:",{key:key,block:block},smalltalk.Package)})},
  2616. messageSends: ["ifNil:", "value", "propertyAt:"]}),
  2617. smalltalk.Package);
  2618. smalltalk.addMethod(
  2619. "_propertyAt_put_",
  2620. smalltalk.method({
  2621. selector: "propertyAt:put:",
  2622. fn: function (key,value){
  2623. var self=this;
  2624. return smalltalk.withContext(function($ctx1) {
  2625. return self.properties[key] = value;
  2626. return self}, function($ctx1) {$ctx1.fill(self,"propertyAt:put:",{key:key,value:value},smalltalk.Package)})},
  2627. messageSends: []}),
  2628. smalltalk.Package);
  2629. smalltalk.addMethod(
  2630. "_setupClasses",
  2631. smalltalk.method({
  2632. selector: "setupClasses",
  2633. fn: function (){
  2634. var self=this;
  2635. function $ClassBuilder(){return smalltalk.ClassBuilder||(typeof ClassBuilder=="undefined"?nil:ClassBuilder)}
  2636. return smalltalk.withContext(function($ctx1) {
  2637. var $1,$2;
  2638. $1=_st(self)._classes();
  2639. _st($1)._do_((function(each){
  2640. return smalltalk.withContext(function($ctx2) {
  2641. return _st(_st($ClassBuilder())._new())._setupClass_(each);
  2642. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  2643. $2=_st($1)._do_((function(each){
  2644. return smalltalk.withContext(function($ctx2) {
  2645. return _st(each)._initialize();
  2646. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  2647. return self}, function($ctx1) {$ctx1.fill(self,"setupClasses",{},smalltalk.Package)})},
  2648. messageSends: ["do:", "setupClass:", "new", "classes", "initialize"]}),
  2649. smalltalk.Package);
  2650. smalltalk.addMethod(
  2651. "_sortedClasses",
  2652. smalltalk.method({
  2653. selector: "sortedClasses",
  2654. fn: function (){
  2655. var self=this;
  2656. return smalltalk.withContext(function($ctx1) {
  2657. var $1;
  2658. $1=_st(_st(self)._class())._sortedClasses_(_st(self)._classes());
  2659. return $1;
  2660. }, function($ctx1) {$ctx1.fill(self,"sortedClasses",{},smalltalk.Package)})},
  2661. messageSends: ["sortedClasses:", "classes", "class"]}),
  2662. smalltalk.Package);
  2663. smalltalk.Package.klass.iVarNames = ['defaultCommitPathJs','defaultCommitPathSt'];
  2664. smalltalk.addMethod(
  2665. "_commitPathsFromLoader",
  2666. smalltalk.method({
  2667. selector: "commitPathsFromLoader",
  2668. fn: function (){
  2669. var self=this;
  2670. return smalltalk.withContext(function($ctx1) {
  2671. var cp = typeof amber !== 'undefined' && amber.commitPath;
  2672. if (!cp) return;
  2673. if (cp.js) self._defaultCommitPathJs_(cp.js);
  2674. if (cp.st) self._defaultCommitPathSt_(cp.st);;
  2675. return self}, function($ctx1) {$ctx1.fill(self,"commitPathsFromLoader",{},smalltalk.Package.klass)})},
  2676. messageSends: []}),
  2677. smalltalk.Package.klass);
  2678. smalltalk.addMethod(
  2679. "_defaultCommitPathJs",
  2680. smalltalk.method({
  2681. selector: "defaultCommitPathJs",
  2682. fn: function (){
  2683. var self=this;
  2684. return smalltalk.withContext(function($ctx1) {
  2685. var $2,$1;
  2686. $2=self["@defaultCommitPathJs"];
  2687. if(($receiver = $2) == nil || $receiver == undefined){
  2688. self["@defaultCommitPathJs"]="js";
  2689. $1=self["@defaultCommitPathJs"];
  2690. } else {
  2691. $1=$2;
  2692. };
  2693. return $1;
  2694. }, function($ctx1) {$ctx1.fill(self,"defaultCommitPathJs",{},smalltalk.Package.klass)})},
  2695. messageSends: ["ifNil:"]}),
  2696. smalltalk.Package.klass);
  2697. smalltalk.addMethod(
  2698. "_defaultCommitPathJs_",
  2699. smalltalk.method({
  2700. selector: "defaultCommitPathJs:",
  2701. fn: function (aString){
  2702. var self=this;
  2703. return smalltalk.withContext(function($ctx1) {
  2704. self["@defaultCommitPathJs"]=aString;
  2705. return self}, function($ctx1) {$ctx1.fill(self,"defaultCommitPathJs:",{aString:aString},smalltalk.Package.klass)})},
  2706. messageSends: []}),
  2707. smalltalk.Package.klass);
  2708. smalltalk.addMethod(
  2709. "_defaultCommitPathSt",
  2710. smalltalk.method({
  2711. selector: "defaultCommitPathSt",
  2712. fn: function (){
  2713. var self=this;
  2714. return smalltalk.withContext(function($ctx1) {
  2715. var $2,$1;
  2716. $2=self["@defaultCommitPathSt"];
  2717. if(($receiver = $2) == nil || $receiver == undefined){
  2718. self["@defaultCommitPathSt"]="st";
  2719. $1=self["@defaultCommitPathSt"];
  2720. } else {
  2721. $1=$2;
  2722. };
  2723. return $1;
  2724. }, function($ctx1) {$ctx1.fill(self,"defaultCommitPathSt",{},smalltalk.Package.klass)})},
  2725. messageSends: ["ifNil:"]}),
  2726. smalltalk.Package.klass);
  2727. smalltalk.addMethod(
  2728. "_defaultCommitPathSt_",
  2729. smalltalk.method({
  2730. selector: "defaultCommitPathSt:",
  2731. fn: function (aString){
  2732. var self=this;
  2733. return smalltalk.withContext(function($ctx1) {
  2734. self["@defaultCommitPathSt"]=aString;
  2735. return self}, function($ctx1) {$ctx1.fill(self,"defaultCommitPathSt:",{aString:aString},smalltalk.Package.klass)})},
  2736. messageSends: []}),
  2737. smalltalk.Package.klass);
  2738. smalltalk.addMethod(
  2739. "_fetch_",
  2740. smalltalk.method({
  2741. selector: "fetch:",
  2742. fn: function (aPackageName){
  2743. var self=this;
  2744. return smalltalk.withContext(function($ctx1) {
  2745. _st(self)._fetch_prefix_(aPackageName,_st(_st(self)._defaultCommitPathJs()).__comma("/"));
  2746. return self}, function($ctx1) {$ctx1.fill(self,"fetch:",{aPackageName:aPackageName},smalltalk.Package.klass)})},
  2747. messageSends: ["fetch:prefix:", ",", "defaultCommitPathJs"]}),
  2748. smalltalk.Package.klass);
  2749. smalltalk.addMethod(
  2750. "_fetch_prefix_",
  2751. smalltalk.method({
  2752. selector: "fetch:prefix:",
  2753. fn: function (aPackageName,aPrefix){
  2754. var self=this;
  2755. function $Package(){return smalltalk.Package||(typeof Package=="undefined"?nil:Package)}
  2756. return smalltalk.withContext(function($ctx1) {
  2757. _st(jQuery)._getScript_onSuccess_(_st(_st(aPrefix).__comma(aPackageName)).__comma(".js"),(function(){
  2758. return smalltalk.withContext(function($ctx2) {
  2759. return _st(_st($Package())._named_(aPackageName))._setupClasses();
  2760. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2761. return self}, function($ctx1) {$ctx1.fill(self,"fetch:prefix:",{aPackageName:aPackageName,aPrefix:aPrefix},smalltalk.Package.klass)})},
  2762. messageSends: ["getScript:onSuccess:", ",", "setupClasses", "named:"]}),
  2763. smalltalk.Package.klass);
  2764. smalltalk.addMethod(
  2765. "_initialize",
  2766. smalltalk.method({
  2767. selector: "initialize",
  2768. fn: function (){
  2769. var self=this;
  2770. return smalltalk.withContext(function($ctx1) {
  2771. smalltalk.Object.klass.fn.prototype._initialize.apply(_st(self), []);
  2772. _st(self)._commitPathsFromLoader();
  2773. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.Package.klass)})},
  2774. messageSends: ["initialize", "commitPathsFromLoader"]}),
  2775. smalltalk.Package.klass);
  2776. smalltalk.addMethod(
  2777. "_named_",
  2778. smalltalk.method({
  2779. selector: "named:",
  2780. fn: function (aPackageName){
  2781. var self=this;
  2782. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  2783. return smalltalk.withContext(function($ctx1) {
  2784. var $1;
  2785. $1=_st(_st($Smalltalk())._current())._packageAt_(aPackageName);
  2786. return $1;
  2787. }, function($ctx1) {$ctx1.fill(self,"named:",{aPackageName:aPackageName},smalltalk.Package.klass)})},
  2788. messageSends: ["packageAt:", "current"]}),
  2789. smalltalk.Package.klass);
  2790. smalltalk.addMethod(
  2791. "_named_ifAbsent_",
  2792. smalltalk.method({
  2793. selector: "named:ifAbsent:",
  2794. fn: function (aPackageName,aBlock){
  2795. var self=this;
  2796. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  2797. return smalltalk.withContext(function($ctx1) {
  2798. var $1;
  2799. $1=_st(_st($Smalltalk())._current())._packageAt_ifAbsent_(aPackageName,aBlock);
  2800. return $1;
  2801. }, function($ctx1) {$ctx1.fill(self,"named:ifAbsent:",{aPackageName:aPackageName,aBlock:aBlock},smalltalk.Package.klass)})},
  2802. messageSends: ["packageAt:ifAbsent:", "current"]}),
  2803. smalltalk.Package.klass);
  2804. smalltalk.addMethod(
  2805. "_resetCommitPaths",
  2806. smalltalk.method({
  2807. selector: "resetCommitPaths",
  2808. fn: function (){
  2809. var self=this;
  2810. return smalltalk.withContext(function($ctx1) {
  2811. self["@defaultCommitPathJs"]=nil;
  2812. self["@defaultCommitPathSt"]=nil;
  2813. return self}, function($ctx1) {$ctx1.fill(self,"resetCommitPaths",{},smalltalk.Package.klass)})},
  2814. messageSends: []}),
  2815. smalltalk.Package.klass);
  2816. smalltalk.addMethod(
  2817. "_sortedClasses_",
  2818. smalltalk.method({
  2819. selector: "sortedClasses:",
  2820. fn: function (classes){
  2821. var self=this;
  2822. var children,others,nodes,expandedClasses;
  2823. function $ClassSorterNode(){return smalltalk.ClassSorterNode||(typeof ClassSorterNode=="undefined"?nil:ClassSorterNode)}
  2824. function $Array(){return smalltalk.Array||(typeof Array=="undefined"?nil:Array)}
  2825. return smalltalk.withContext(function($ctx1) {
  2826. var $1,$2;
  2827. children=[];
  2828. others=[];
  2829. _st(classes)._do_((function(each){
  2830. return smalltalk.withContext(function($ctx2) {
  2831. $1=_st(classes)._includes_(_st(each)._superclass());
  2832. if(smalltalk.assert($1)){
  2833. return _st(others)._add_(each);
  2834. } else {
  2835. return _st(children)._add_(each);
  2836. };
  2837. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  2838. nodes=_st(children)._collect_((function(each){
  2839. return smalltalk.withContext(function($ctx2) {
  2840. return _st($ClassSorterNode())._on_classes_level_(each,others,(0));
  2841. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  2842. nodes=_st(nodes)._sorted_((function(a,b){
  2843. return smalltalk.withContext(function($ctx2) {
  2844. return _st(_st(_st(a)._theClass())._name()).__lt_eq(_st(_st(b)._theClass())._name());
  2845. }, function($ctx2) {$ctx2.fillBlock({a:a,b:b},$ctx1)})}));
  2846. expandedClasses=_st($Array())._new();
  2847. _st(nodes)._do_((function(aNode){
  2848. return smalltalk.withContext(function($ctx2) {
  2849. return _st(aNode)._traverseClassesWith_(expandedClasses);
  2850. }, function($ctx2) {$ctx2.fillBlock({aNode:aNode},$ctx1)})}));
  2851. $2=expandedClasses;
  2852. return $2;
  2853. }, function($ctx1) {$ctx1.fill(self,"sortedClasses:",{classes:classes,children:children,others:others,nodes:nodes,expandedClasses:expandedClasses},smalltalk.Package.klass)})},
  2854. messageSends: ["do:", "ifFalse:ifTrue:", "add:", "includes:", "superclass", "collect:", "on:classes:level:", "sorted:", "<=", "name", "theClass", "new", "traverseClassesWith:"]}),
  2855. smalltalk.Package.klass);
  2856. smalltalk.addClass('Point', smalltalk.Object, ['x', 'y'], 'Kernel-Objects');
  2857. smalltalk.addMethod(
  2858. "__star",
  2859. smalltalk.method({
  2860. selector: "*",
  2861. fn: function (aPoint){
  2862. var self=this;
  2863. function $Point(){return smalltalk.Point||(typeof Point=="undefined"?nil:Point)}
  2864. return smalltalk.withContext(function($ctx1) {
  2865. var $1;
  2866. $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()));
  2867. return $1;
  2868. }, function($ctx1) {$ctx1.fill(self,"*",{aPoint:aPoint},smalltalk.Point)})},
  2869. messageSends: ["x:y:", "*", "x", "asPoint", "y"]}),
  2870. smalltalk.Point);
  2871. smalltalk.addMethod(
  2872. "__plus",
  2873. smalltalk.method({
  2874. selector: "+",
  2875. fn: function (aPoint){
  2876. var self=this;
  2877. function $Point(){return smalltalk.Point||(typeof Point=="undefined"?nil:Point)}
  2878. return smalltalk.withContext(function($ctx1) {
  2879. var $1;
  2880. $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()));
  2881. return $1;
  2882. }, function($ctx1) {$ctx1.fill(self,"+",{aPoint:aPoint},smalltalk.Point)})},
  2883. messageSends: ["x:y:", "+", "x", "asPoint", "y"]}),
  2884. smalltalk.Point);
  2885. smalltalk.addMethod(
  2886. "__minus",
  2887. smalltalk.method({
  2888. selector: "-",
  2889. fn: function (aPoint){
  2890. var self=this;
  2891. function $Point(){return smalltalk.Point||(typeof Point=="undefined"?nil:Point)}
  2892. return smalltalk.withContext(function($ctx1) {
  2893. var $1;
  2894. $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()));
  2895. return $1;
  2896. }, function($ctx1) {$ctx1.fill(self,"-",{aPoint:aPoint},smalltalk.Point)})},
  2897. messageSends: ["x:y:", "-", "x", "asPoint", "y"]}),
  2898. smalltalk.Point);
  2899. smalltalk.addMethod(
  2900. "__slash",
  2901. smalltalk.method({
  2902. selector: "/",
  2903. fn: function (aPoint){
  2904. var self=this;
  2905. function $Point(){return smalltalk.Point||(typeof Point=="undefined"?nil:Point)}
  2906. return smalltalk.withContext(function($ctx1) {
  2907. var $1;
  2908. $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()));
  2909. return $1;
  2910. }, function($ctx1) {$ctx1.fill(self,"/",{aPoint:aPoint},smalltalk.Point)})},
  2911. messageSends: ["x:y:", "/", "x", "asPoint", "y"]}),
  2912. smalltalk.Point);
  2913. smalltalk.addMethod(
  2914. "__eq",
  2915. smalltalk.method({
  2916. selector: "=",
  2917. fn: function (aPoint){
  2918. var self=this;
  2919. return smalltalk.withContext(function($ctx1) {
  2920. var $1;
  2921. $1=_st(_st(_st(aPoint)._class()).__eq(_st(self)._class()))._and_((function(){
  2922. return smalltalk.withContext(function($ctx2) {
  2923. return _st(_st(_st(aPoint)._x()).__eq(_st(self)._x())).__and(_st(_st(aPoint)._y()).__eq(_st(self)._y()));
  2924. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2925. return $1;
  2926. }, function($ctx1) {$ctx1.fill(self,"=",{aPoint:aPoint},smalltalk.Point)})},
  2927. messageSends: ["and:", "&", "=", "y", "x", "class"]}),
  2928. smalltalk.Point);
  2929. smalltalk.addMethod(
  2930. "_asPoint",
  2931. smalltalk.method({
  2932. selector: "asPoint",
  2933. fn: function (){
  2934. var self=this;
  2935. return smalltalk.withContext(function($ctx1) {
  2936. var $1;
  2937. $1=self;
  2938. return $1;
  2939. }, function($ctx1) {$ctx1.fill(self,"asPoint",{},smalltalk.Point)})},
  2940. messageSends: []}),
  2941. smalltalk.Point);
  2942. smalltalk.addMethod(
  2943. "_printOn_",
  2944. smalltalk.method({
  2945. selector: "printOn:",
  2946. fn: function (aStream){
  2947. var self=this;
  2948. return smalltalk.withContext(function($ctx1) {
  2949. var $1;
  2950. _st(self["@x"])._printOn_(aStream);
  2951. _st(aStream)._nextPutAll_("@");
  2952. $1=_st(_st(self["@y"])._notNil())._and_((function(){
  2953. return smalltalk.withContext(function($ctx2) {
  2954. return _st(self["@y"])._negative();
  2955. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2956. if(smalltalk.assert($1)){
  2957. _st(aStream)._space();
  2958. };
  2959. _st(self["@y"])._printOn_(aStream);
  2960. return self}, function($ctx1) {$ctx1.fill(self,"printOn:",{aStream:aStream},smalltalk.Point)})},
  2961. messageSends: ["printOn:", "nextPutAll:", "ifTrue:", "space", "and:", "negative", "notNil"]}),
  2962. smalltalk.Point);
  2963. smalltalk.addMethod(
  2964. "_translateBy_",
  2965. smalltalk.method({
  2966. selector: "translateBy:",
  2967. fn: function (delta){
  2968. var self=this;
  2969. return smalltalk.withContext(function($ctx1) {
  2970. var $1;
  2971. $1=_st(_st(_st(delta)._x()).__plus(self["@x"])).__at(_st(_st(delta)._y()).__plus(self["@y"]));
  2972. return $1;
  2973. }, function($ctx1) {$ctx1.fill(self,"translateBy:",{delta:delta},smalltalk.Point)})},
  2974. messageSends: ["@", "+", "y", "x"]}),
  2975. smalltalk.Point);
  2976. smalltalk.addMethod(
  2977. "_x",
  2978. smalltalk.method({
  2979. selector: "x",
  2980. fn: function (){
  2981. var self=this;
  2982. return smalltalk.withContext(function($ctx1) {
  2983. var $1;
  2984. $1=self["@x"];
  2985. return $1;
  2986. }, function($ctx1) {$ctx1.fill(self,"x",{},smalltalk.Point)})},
  2987. messageSends: []}),
  2988. smalltalk.Point);
  2989. smalltalk.addMethod(
  2990. "_x_",
  2991. smalltalk.method({
  2992. selector: "x:",
  2993. fn: function (aNumber){
  2994. var self=this;
  2995. return smalltalk.withContext(function($ctx1) {
  2996. self["@x"]=aNumber;
  2997. return self}, function($ctx1) {$ctx1.fill(self,"x:",{aNumber:aNumber},smalltalk.Point)})},
  2998. messageSends: []}),
  2999. smalltalk.Point);
  3000. smalltalk.addMethod(
  3001. "_y",
  3002. smalltalk.method({
  3003. selector: "y",
  3004. fn: function (){
  3005. var self=this;
  3006. return smalltalk.withContext(function($ctx1) {
  3007. var $1;
  3008. $1=self["@y"];
  3009. return $1;
  3010. }, function($ctx1) {$ctx1.fill(self,"y",{},smalltalk.Point)})},
  3011. messageSends: []}),
  3012. smalltalk.Point);
  3013. smalltalk.addMethod(
  3014. "_y_",
  3015. smalltalk.method({
  3016. selector: "y:",
  3017. fn: function (aNumber){
  3018. var self=this;
  3019. return smalltalk.withContext(function($ctx1) {
  3020. self["@y"]=aNumber;
  3021. return self}, function($ctx1) {$ctx1.fill(self,"y:",{aNumber:aNumber},smalltalk.Point)})},
  3022. messageSends: []}),
  3023. smalltalk.Point);
  3024. smalltalk.addMethod(
  3025. "_x_y_",
  3026. smalltalk.method({
  3027. selector: "x:y:",
  3028. fn: function (aNumber,anotherNumber){
  3029. var self=this;
  3030. return smalltalk.withContext(function($ctx1) {
  3031. var $2,$3,$1;
  3032. $2=_st(self)._new();
  3033. _st($2)._x_(aNumber);
  3034. _st($2)._y_(anotherNumber);
  3035. $3=_st($2)._yourself();
  3036. $1=$3;
  3037. return $1;
  3038. }, function($ctx1) {$ctx1.fill(self,"x:y:",{aNumber:aNumber,anotherNumber:anotherNumber},smalltalk.Point.klass)})},
  3039. messageSends: ["x:", "new", "y:", "yourself"]}),
  3040. smalltalk.Point.klass);
  3041. smalltalk.addClass('Random', smalltalk.Object, [], 'Kernel-Objects');
  3042. smalltalk.addMethod(
  3043. "_next",
  3044. smalltalk.method({
  3045. selector: "next",
  3046. fn: function (){
  3047. var self=this;
  3048. return smalltalk.withContext(function($ctx1) {
  3049. return Math.random();
  3050. return self}, function($ctx1) {$ctx1.fill(self,"next",{},smalltalk.Random)})},
  3051. messageSends: []}),
  3052. smalltalk.Random);
  3053. smalltalk.addMethod(
  3054. "_next_",
  3055. smalltalk.method({
  3056. selector: "next:",
  3057. fn: function (anInteger){
  3058. var self=this;
  3059. return smalltalk.withContext(function($ctx1) {
  3060. var $1;
  3061. $1=_st(_st((1))._to_(anInteger))._collect_((function(each){
  3062. return smalltalk.withContext(function($ctx2) {
  3063. return _st(self)._next();
  3064. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  3065. return $1;
  3066. }, function($ctx1) {$ctx1.fill(self,"next:",{anInteger:anInteger},smalltalk.Random)})},
  3067. messageSends: ["collect:", "next", "to:"]}),
  3068. smalltalk.Random);
  3069. smalltalk.addClass('Smalltalk', smalltalk.Object, [], 'Kernel-Objects');
  3070. smalltalk.addMethod(
  3071. "_asSmalltalkException_",
  3072. smalltalk.method({
  3073. selector: "asSmalltalkException:",
  3074. fn: function (anObject){
  3075. var self=this;
  3076. function $JavaScriptException(){return smalltalk.JavaScriptException||(typeof JavaScriptException=="undefined"?nil:JavaScriptException)}
  3077. function $Error(){return smalltalk.Error||(typeof Error=="undefined"?nil:Error)}
  3078. return smalltalk.withContext(function($ctx1) {
  3079. var $2,$1;
  3080. $2=_st(_st(self)._isSmalltalkObject_(anObject))._and_((function(){
  3081. return smalltalk.withContext(function($ctx2) {
  3082. return _st(anObject)._isKindOf_($Error());
  3083. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3084. if(smalltalk.assert($2)){
  3085. $1=anObject;
  3086. } else {
  3087. $1=_st($JavaScriptException())._on_(anObject);
  3088. };
  3089. return $1;
  3090. }, function($ctx1) {$ctx1.fill(self,"asSmalltalkException:",{anObject:anObject},smalltalk.Smalltalk)})},
  3091. messageSends: ["ifTrue:ifFalse:", "on:", "and:", "isKindOf:", "isSmalltalkObject:"]}),
  3092. smalltalk.Smalltalk);
  3093. smalltalk.addMethod(
  3094. "_at_",
  3095. smalltalk.method({
  3096. selector: "at:",
  3097. fn: function (aString){
  3098. var self=this;
  3099. return smalltalk.withContext(function($ctx1) {
  3100. return self[aString];
  3101. return self}, function($ctx1) {$ctx1.fill(self,"at:",{aString:aString},smalltalk.Smalltalk)})},
  3102. messageSends: []}),
  3103. smalltalk.Smalltalk);
  3104. smalltalk.addMethod(
  3105. "_basicParse_",
  3106. smalltalk.method({
  3107. selector: "basicParse:",
  3108. fn: function (aString){
  3109. var self=this;
  3110. return smalltalk.withContext(function($ctx1) {
  3111. return smalltalk.parser.parse(aString);
  3112. return self}, function($ctx1) {$ctx1.fill(self,"basicParse:",{aString:aString},smalltalk.Smalltalk)})},
  3113. messageSends: []}),
  3114. smalltalk.Smalltalk);
  3115. smalltalk.addMethod(
  3116. "_classes",
  3117. smalltalk.method({
  3118. selector: "classes",
  3119. fn: function (){
  3120. var self=this;
  3121. return smalltalk.withContext(function($ctx1) {
  3122. return self.classes();
  3123. return self}, function($ctx1) {$ctx1.fill(self,"classes",{},smalltalk.Smalltalk)})},
  3124. messageSends: []}),
  3125. smalltalk.Smalltalk);
  3126. smalltalk.addMethod(
  3127. "_createPackage_",
  3128. smalltalk.method({
  3129. selector: "createPackage:",
  3130. fn: function (packageName){
  3131. var self=this;
  3132. return smalltalk.withContext(function($ctx1) {
  3133. return smalltalk.addPackage(packageName);
  3134. return self}, function($ctx1) {$ctx1.fill(self,"createPackage:",{packageName:packageName},smalltalk.Smalltalk)})},
  3135. messageSends: []}),
  3136. smalltalk.Smalltalk);
  3137. smalltalk.addMethod(
  3138. "_createPackage_properties_",
  3139. smalltalk.method({
  3140. selector: "createPackage:properties:",
  3141. fn: function (packageName,aDict){
  3142. var self=this;
  3143. return smalltalk.withContext(function($ctx1) {
  3144. var $1,$2;
  3145. _st(self)._deprecatedAPI();
  3146. $1=_st(aDict)._isEmpty();
  3147. if(! smalltalk.assert($1)){
  3148. _st(self)._error_("createPackage:properties: called with nonempty properties");
  3149. };
  3150. $2=_st(self)._createPackage_(packageName);
  3151. return $2;
  3152. }, function($ctx1) {$ctx1.fill(self,"createPackage:properties:",{packageName:packageName,aDict:aDict},smalltalk.Smalltalk)})},
  3153. messageSends: ["deprecatedAPI", "ifFalse:", "error:", "isEmpty", "createPackage:"]}),
  3154. smalltalk.Smalltalk);
  3155. smalltalk.addMethod(
  3156. "_deleteClass_",
  3157. smalltalk.method({
  3158. selector: "deleteClass:",
  3159. fn: function (aClass){
  3160. var self=this;
  3161. return smalltalk.withContext(function($ctx1) {
  3162. self.removeClass(aClass);
  3163. return self}, function($ctx1) {$ctx1.fill(self,"deleteClass:",{aClass:aClass},smalltalk.Smalltalk)})},
  3164. messageSends: []}),
  3165. smalltalk.Smalltalk);
  3166. smalltalk.addMethod(
  3167. "_deletePackage_",
  3168. smalltalk.method({
  3169. selector: "deletePackage:",
  3170. fn: function (packageName){
  3171. var self=this;
  3172. return smalltalk.withContext(function($ctx1) {
  3173. delete smalltalk.packages[packageName];
  3174. return self}, function($ctx1) {$ctx1.fill(self,"deletePackage:",{packageName:packageName},smalltalk.Smalltalk)})},
  3175. messageSends: []}),
  3176. smalltalk.Smalltalk);
  3177. smalltalk.addMethod(
  3178. "_isSmalltalkObject_",
  3179. smalltalk.method({
  3180. selector: "isSmalltalkObject:",
  3181. fn: function (anObject){
  3182. var self=this;
  3183. return smalltalk.withContext(function($ctx1) {
  3184. return typeof anObject.klass !== 'undefined';
  3185. return self}, function($ctx1) {$ctx1.fill(self,"isSmalltalkObject:",{anObject:anObject},smalltalk.Smalltalk)})},
  3186. messageSends: []}),
  3187. smalltalk.Smalltalk);
  3188. smalltalk.addMethod(
  3189. "_packageAt_",
  3190. smalltalk.method({
  3191. selector: "packageAt:",
  3192. fn: function (packageName){
  3193. var self=this;
  3194. return smalltalk.withContext(function($ctx1) {
  3195. return self.packages[packageName];
  3196. return self}, function($ctx1) {$ctx1.fill(self,"packageAt:",{packageName:packageName},smalltalk.Smalltalk)})},
  3197. messageSends: []}),
  3198. smalltalk.Smalltalk);
  3199. smalltalk.addMethod(
  3200. "_packageAt_ifAbsent_",
  3201. smalltalk.method({
  3202. selector: "packageAt:ifAbsent:",
  3203. fn: function (packageName,aBlock){
  3204. var self=this;
  3205. return smalltalk.withContext(function($ctx1) {
  3206. var $2,$1;
  3207. $2=_st(self)._packageAt_(packageName);
  3208. $1=_st($2)._ifNil_(aBlock);
  3209. return $1;
  3210. }, function($ctx1) {$ctx1.fill(self,"packageAt:ifAbsent:",{packageName:packageName,aBlock:aBlock},smalltalk.Smalltalk)})},
  3211. messageSends: ["ifNil:", "packageAt:"]}),
  3212. smalltalk.Smalltalk);
  3213. smalltalk.addMethod(
  3214. "_packages",
  3215. smalltalk.method({
  3216. selector: "packages",
  3217. fn: function (){
  3218. var self=this;
  3219. return smalltalk.withContext(function($ctx1) {
  3220. return self.packages.all();
  3221. return self}, function($ctx1) {$ctx1.fill(self,"packages",{},smalltalk.Smalltalk)})},
  3222. messageSends: []}),
  3223. smalltalk.Smalltalk);
  3224. smalltalk.addMethod(
  3225. "_parse_",
  3226. smalltalk.method({
  3227. selector: "parse:",
  3228. fn: function (aString){
  3229. var self=this;
  3230. var result;
  3231. return smalltalk.withContext(function($ctx1) {
  3232. var $1;
  3233. _st(self)._try_catch_((function(){
  3234. return smalltalk.withContext(function($ctx2) {
  3235. result=_st(self)._basicParse_(aString);
  3236. return result;
  3237. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}),(function(ex){
  3238. return smalltalk.withContext(function($ctx2) {
  3239. return _st(_st(self)._parseError_parsing_(ex,aString))._signal();
  3240. }, function($ctx2) {$ctx2.fillBlock({ex:ex},$ctx1)})}));
  3241. $1=result;
  3242. return $1;
  3243. }, function($ctx1) {$ctx1.fill(self,"parse:",{aString:aString,result:result},smalltalk.Smalltalk)})},
  3244. messageSends: ["try:catch:", "basicParse:", "signal", "parseError:parsing:"]}),
  3245. smalltalk.Smalltalk);
  3246. smalltalk.addMethod(
  3247. "_parseError_parsing_",
  3248. smalltalk.method({
  3249. selector: "parseError:parsing:",
  3250. fn: function (anException,aString){
  3251. var self=this;
  3252. function $ParseError(){return smalltalk.ParseError||(typeof ParseError=="undefined"?nil:ParseError)}
  3253. return smalltalk.withContext(function($ctx1) {
  3254. var $1;
  3255. $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")));
  3256. return $1;
  3257. }, function($ctx1) {$ctx1.fill(self,"parseError:parsing:",{anException:anException,aString:aString},smalltalk.Smalltalk)})},
  3258. messageSends: ["messageText:", ",", "basicAt:", "new"]}),
  3259. smalltalk.Smalltalk);
  3260. smalltalk.addMethod(
  3261. "_pseudoVariableNames",
  3262. smalltalk.method({
  3263. selector: "pseudoVariableNames",
  3264. fn: function (){
  3265. var self=this;
  3266. return smalltalk.withContext(function($ctx1) {
  3267. var $1;
  3268. $1=["self", "super", "nil", "true", "false", "thisContext"];
  3269. return $1;
  3270. }, function($ctx1) {$ctx1.fill(self,"pseudoVariableNames",{},smalltalk.Smalltalk)})},
  3271. messageSends: []}),
  3272. smalltalk.Smalltalk);
  3273. smalltalk.addMethod(
  3274. "_readJSObject_",
  3275. smalltalk.method({
  3276. selector: "readJSObject:",
  3277. fn: function (anObject){
  3278. var self=this;
  3279. return smalltalk.withContext(function($ctx1) {
  3280. return self.readJSObject(anObject);
  3281. return self}, function($ctx1) {$ctx1.fill(self,"readJSObject:",{anObject:anObject},smalltalk.Smalltalk)})},
  3282. messageSends: []}),
  3283. smalltalk.Smalltalk);
  3284. smalltalk.addMethod(
  3285. "_removeClass_",
  3286. smalltalk.method({
  3287. selector: "removeClass:",
  3288. fn: function (aClass){
  3289. var self=this;
  3290. function $ClassRemoved(){return smalltalk.ClassRemoved||(typeof ClassRemoved=="undefined"?nil:ClassRemoved)}
  3291. function $SystemAnnouncer(){return smalltalk.SystemAnnouncer||(typeof SystemAnnouncer=="undefined"?nil:SystemAnnouncer)}
  3292. return smalltalk.withContext(function($ctx1) {
  3293. var $1,$2,$3;
  3294. $1=_st(aClass)._isMetaclass();
  3295. if(smalltalk.assert($1)){
  3296. _st(self)._error_(_st(_st(aClass)._asString()).__comma(" is a Metaclass and cannot be removed!"));
  3297. };
  3298. _st(self)._deleteClass_(aClass);
  3299. $2=_st($ClassRemoved())._new();
  3300. _st($2)._theClass_(aClass);
  3301. $3=_st($2)._yourself();
  3302. _st(_st($SystemAnnouncer())._current())._announce_($3);
  3303. return self}, function($ctx1) {$ctx1.fill(self,"removeClass:",{aClass:aClass},smalltalk.Smalltalk)})},
  3304. messageSends: ["ifTrue:", "error:", ",", "asString", "isMetaclass", "deleteClass:", "announce:", "theClass:", "new", "yourself", "current"]}),
  3305. smalltalk.Smalltalk);
  3306. smalltalk.addMethod(
  3307. "_removePackage_",
  3308. smalltalk.method({
  3309. selector: "removePackage:",
  3310. fn: function (packageName){
  3311. var self=this;
  3312. var pkg;
  3313. return smalltalk.withContext(function($ctx1) {
  3314. pkg=_st(self)._packageAt_ifAbsent_(packageName,(function(){
  3315. return smalltalk.withContext(function($ctx2) {
  3316. return _st(self)._error_(_st("Missing package: ").__comma(packageName));
  3317. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3318. _st(_st(pkg)._classes())._do_((function(each){
  3319. return smalltalk.withContext(function($ctx2) {
  3320. return _st(self)._removeClass_(each);
  3321. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  3322. _st(self)._deletePackage_(packageName);
  3323. return self}, function($ctx1) {$ctx1.fill(self,"removePackage:",{packageName:packageName,pkg:pkg},smalltalk.Smalltalk)})},
  3324. messageSends: ["packageAt:ifAbsent:", "error:", ",", "do:", "removeClass:", "classes", "deletePackage:"]}),
  3325. smalltalk.Smalltalk);
  3326. smalltalk.addMethod(
  3327. "_renamePackage_to_",
  3328. smalltalk.method({
  3329. selector: "renamePackage:to:",
  3330. fn: function (packageName,newName){
  3331. var self=this;
  3332. var pkg;
  3333. return smalltalk.withContext(function($ctx1) {
  3334. var $1;
  3335. pkg=_st(self)._packageAt_ifAbsent_(packageName,(function(){
  3336. return smalltalk.withContext(function($ctx2) {
  3337. return _st(self)._error_(_st("Missing package: ").__comma(packageName));
  3338. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3339. $1=_st(self)._packageAt_(newName);
  3340. if(($receiver = $1) == nil || $receiver == undefined){
  3341. $1;
  3342. } else {
  3343. _st(self)._error_(_st("Already exists a package called: ").__comma(newName));
  3344. };
  3345. _st(_st(self)._basicAt_("packages"))._at_put_(newName,pkg);
  3346. _st(pkg)._name_(newName);
  3347. _st(self)._deletePackage_(packageName);
  3348. return self}, function($ctx1) {$ctx1.fill(self,"renamePackage:to:",{packageName:packageName,newName:newName,pkg:pkg},smalltalk.Smalltalk)})},
  3349. messageSends: ["packageAt:ifAbsent:", "error:", ",", "ifNotNil:", "packageAt:", "at:put:", "basicAt:", "name:", "deletePackage:"]}),
  3350. smalltalk.Smalltalk);
  3351. smalltalk.addMethod(
  3352. "_reservedWords",
  3353. smalltalk.method({
  3354. selector: "reservedWords",
  3355. fn: function (){
  3356. var self=this;
  3357. return smalltalk.withContext(function($ctx1) {
  3358. return self.reservedWords;
  3359. return self}, function($ctx1) {$ctx1.fill(self,"reservedWords",{},smalltalk.Smalltalk)})},
  3360. messageSends: []}),
  3361. smalltalk.Smalltalk);
  3362. smalltalk.addMethod(
  3363. "_version",
  3364. smalltalk.method({
  3365. selector: "version",
  3366. fn: function (){
  3367. var self=this;
  3368. return smalltalk.withContext(function($ctx1) {
  3369. return "0.10";
  3370. }, function($ctx1) {$ctx1.fill(self,"version",{},smalltalk.Smalltalk)})},
  3371. messageSends: []}),
  3372. smalltalk.Smalltalk);
  3373. smalltalk.Smalltalk.klass.iVarNames = ['current'];
  3374. smalltalk.addMethod(
  3375. "_current",
  3376. smalltalk.method({
  3377. selector: "current",
  3378. fn: function (){
  3379. var self=this;
  3380. return smalltalk.withContext(function($ctx1) {
  3381. return smalltalk;
  3382. return self}, function($ctx1) {$ctx1.fill(self,"current",{},smalltalk.Smalltalk.klass)})},
  3383. messageSends: []}),
  3384. smalltalk.Smalltalk.klass);
  3385. smalltalk.addClass('Timeout', smalltalk.Object, ['rawTimeout'], 'Kernel-Objects');
  3386. smalltalk.addMethod(
  3387. "_clearInterval",
  3388. smalltalk.method({
  3389. selector: "clearInterval",
  3390. fn: function (){
  3391. var self=this;
  3392. return smalltalk.withContext(function($ctx1) {
  3393. var interval = self["@rawTimeout"];
  3394. clearInterval(interval);
  3395. ;
  3396. return self}, function($ctx1) {$ctx1.fill(self,"clearInterval",{},smalltalk.Timeout)})},
  3397. messageSends: []}),
  3398. smalltalk.Timeout);
  3399. smalltalk.addMethod(
  3400. "_clearTimeout",
  3401. smalltalk.method({
  3402. selector: "clearTimeout",
  3403. fn: function (){
  3404. var self=this;
  3405. return smalltalk.withContext(function($ctx1) {
  3406. var timeout = self["@rawTimeout"];
  3407. clearTimeout(timeout);
  3408. ;
  3409. return self}, function($ctx1) {$ctx1.fill(self,"clearTimeout",{},smalltalk.Timeout)})},
  3410. messageSends: []}),
  3411. smalltalk.Timeout);
  3412. smalltalk.addMethod(
  3413. "_rawTimeout_",
  3414. smalltalk.method({
  3415. selector: "rawTimeout:",
  3416. fn: function (anObject){
  3417. var self=this;
  3418. return smalltalk.withContext(function($ctx1) {
  3419. self["@rawTimeout"]=anObject;
  3420. return self}, function($ctx1) {$ctx1.fill(self,"rawTimeout:",{anObject:anObject},smalltalk.Timeout)})},
  3421. messageSends: []}),
  3422. smalltalk.Timeout);
  3423. smalltalk.addMethod(
  3424. "_on_",
  3425. smalltalk.method({
  3426. selector: "on:",
  3427. fn: function (anObject){
  3428. var self=this;
  3429. return smalltalk.withContext(function($ctx1) {
  3430. var $2,$3,$1;
  3431. $2=_st(self)._new();
  3432. _st($2)._rawTimeout_(anObject);
  3433. $3=_st($2)._yourself();
  3434. $1=$3;
  3435. return $1;
  3436. }, function($ctx1) {$ctx1.fill(self,"on:",{anObject:anObject},smalltalk.Timeout.klass)})},
  3437. messageSends: ["rawTimeout:", "new", "yourself"]}),
  3438. smalltalk.Timeout.klass);
  3439. smalltalk.addClass('UndefinedObject', smalltalk.Object, [], 'Kernel-Objects');
  3440. smalltalk.addMethod(
  3441. "_asJSON",
  3442. smalltalk.method({
  3443. selector: "asJSON",
  3444. fn: function (){
  3445. var self=this;
  3446. return smalltalk.withContext(function($ctx1) {
  3447. var $1;
  3448. $1=null;
  3449. return $1;
  3450. }, function($ctx1) {$ctx1.fill(self,"asJSON",{},smalltalk.UndefinedObject)})},
  3451. messageSends: []}),
  3452. smalltalk.UndefinedObject);
  3453. smalltalk.addMethod(
  3454. "_deepCopy",
  3455. smalltalk.method({
  3456. selector: "deepCopy",
  3457. fn: function (){
  3458. var self=this;
  3459. return smalltalk.withContext(function($ctx1) {
  3460. var $1;
  3461. $1=self;
  3462. return $1;
  3463. }, function($ctx1) {$ctx1.fill(self,"deepCopy",{},smalltalk.UndefinedObject)})},
  3464. messageSends: []}),
  3465. smalltalk.UndefinedObject);
  3466. smalltalk.addMethod(
  3467. "_ifNil_",
  3468. smalltalk.method({
  3469. selector: "ifNil:",
  3470. fn: function (aBlock){
  3471. var self=this;
  3472. return smalltalk.withContext(function($ctx1) {
  3473. var $2,$1;
  3474. $2=self;
  3475. $1=_st($2)._ifNil_ifNotNil_(aBlock,(function(){
  3476. return smalltalk.withContext(function($ctx2) {
  3477. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3478. return $1;
  3479. }, function($ctx1) {$ctx1.fill(self,"ifNil:",{aBlock:aBlock},smalltalk.UndefinedObject)})},
  3480. messageSends: ["ifNil:ifNotNil:"]}),
  3481. smalltalk.UndefinedObject);
  3482. smalltalk.addMethod(
  3483. "_ifNil_ifNotNil_",
  3484. smalltalk.method({
  3485. selector: "ifNil:ifNotNil:",
  3486. fn: function (aBlock,anotherBlock){
  3487. var self=this;
  3488. return smalltalk.withContext(function($ctx1) {
  3489. var $1;
  3490. $1=_st(aBlock)._value();
  3491. return $1;
  3492. }, function($ctx1) {$ctx1.fill(self,"ifNil:ifNotNil:",{aBlock:aBlock,anotherBlock:anotherBlock},smalltalk.UndefinedObject)})},
  3493. messageSends: ["value"]}),
  3494. smalltalk.UndefinedObject);
  3495. smalltalk.addMethod(
  3496. "_ifNotNil_",
  3497. smalltalk.method({
  3498. selector: "ifNotNil:",
  3499. fn: function (aBlock){
  3500. var self=this;
  3501. return smalltalk.withContext(function($ctx1) {
  3502. var $1;
  3503. $1=self;
  3504. return $1;
  3505. }, function($ctx1) {$ctx1.fill(self,"ifNotNil:",{aBlock:aBlock},smalltalk.UndefinedObject)})},
  3506. messageSends: []}),
  3507. smalltalk.UndefinedObject);
  3508. smalltalk.addMethod(
  3509. "_ifNotNil_ifNil_",
  3510. smalltalk.method({
  3511. selector: "ifNotNil:ifNil:",
  3512. fn: function (aBlock,anotherBlock){
  3513. var self=this;
  3514. return smalltalk.withContext(function($ctx1) {
  3515. var $1;
  3516. $1=_st(anotherBlock)._value();
  3517. return $1;
  3518. }, function($ctx1) {$ctx1.fill(self,"ifNotNil:ifNil:",{aBlock:aBlock,anotherBlock:anotherBlock},smalltalk.UndefinedObject)})},
  3519. messageSends: ["value"]}),
  3520. smalltalk.UndefinedObject);
  3521. smalltalk.addMethod(
  3522. "_isImmutable",
  3523. smalltalk.method({
  3524. selector: "isImmutable",
  3525. fn: function (){
  3526. var self=this;
  3527. return smalltalk.withContext(function($ctx1) {
  3528. return true;
  3529. }, function($ctx1) {$ctx1.fill(self,"isImmutable",{},smalltalk.UndefinedObject)})},
  3530. messageSends: []}),
  3531. smalltalk.UndefinedObject);
  3532. smalltalk.addMethod(
  3533. "_isNil",
  3534. smalltalk.method({
  3535. selector: "isNil",
  3536. fn: function (){
  3537. var self=this;
  3538. return smalltalk.withContext(function($ctx1) {
  3539. return true;
  3540. }, function($ctx1) {$ctx1.fill(self,"isNil",{},smalltalk.UndefinedObject)})},
  3541. messageSends: []}),
  3542. smalltalk.UndefinedObject);
  3543. smalltalk.addMethod(
  3544. "_notNil",
  3545. smalltalk.method({
  3546. selector: "notNil",
  3547. fn: function (){
  3548. var self=this;
  3549. return smalltalk.withContext(function($ctx1) {
  3550. return false;
  3551. }, function($ctx1) {$ctx1.fill(self,"notNil",{},smalltalk.UndefinedObject)})},
  3552. messageSends: []}),
  3553. smalltalk.UndefinedObject);
  3554. smalltalk.addMethod(
  3555. "_printOn_",
  3556. smalltalk.method({
  3557. selector: "printOn:",
  3558. fn: function (aStream){
  3559. var self=this;
  3560. return smalltalk.withContext(function($ctx1) {
  3561. _st(aStream)._nextPutAll_("nil");
  3562. return self}, function($ctx1) {$ctx1.fill(self,"printOn:",{aStream:aStream},smalltalk.UndefinedObject)})},
  3563. messageSends: ["nextPutAll:"]}),
  3564. smalltalk.UndefinedObject);
  3565. smalltalk.addMethod(
  3566. "_shallowCopy",
  3567. smalltalk.method({
  3568. selector: "shallowCopy",
  3569. fn: function (){
  3570. var self=this;
  3571. return smalltalk.withContext(function($ctx1) {
  3572. var $1;
  3573. $1=self;
  3574. return $1;
  3575. }, function($ctx1) {$ctx1.fill(self,"shallowCopy",{},smalltalk.UndefinedObject)})},
  3576. messageSends: []}),
  3577. smalltalk.UndefinedObject);
  3578. smalltalk.addMethod(
  3579. "_subclass_instanceVariableNames_",
  3580. smalltalk.method({
  3581. selector: "subclass:instanceVariableNames:",
  3582. fn: function (aString,anotherString){
  3583. var self=this;
  3584. return smalltalk.withContext(function($ctx1) {
  3585. var $1;
  3586. $1=_st(self)._subclass_instanceVariableNames_package_(aString,anotherString,nil);
  3587. return $1;
  3588. }, function($ctx1) {$ctx1.fill(self,"subclass:instanceVariableNames:",{aString:aString,anotherString:anotherString},smalltalk.UndefinedObject)})},
  3589. messageSends: ["subclass:instanceVariableNames:package:"]}),
  3590. smalltalk.UndefinedObject);
  3591. smalltalk.addMethod(
  3592. "_subclass_instanceVariableNames_category_",
  3593. smalltalk.method({
  3594. selector: "subclass:instanceVariableNames:category:",
  3595. fn: function (aString,aString2,aString3){
  3596. var self=this;
  3597. return smalltalk.withContext(function($ctx1) {
  3598. var $1;
  3599. _st(self)._deprecatedAPI();
  3600. $1=_st(self)._subclass_instanceVariableNames_package_(aString,aString2,aString3);
  3601. return $1;
  3602. }, function($ctx1) {$ctx1.fill(self,"subclass:instanceVariableNames:category:",{aString:aString,aString2:aString2,aString3:aString3},smalltalk.UndefinedObject)})},
  3603. messageSends: ["deprecatedAPI", "subclass:instanceVariableNames:package:"]}),
  3604. smalltalk.UndefinedObject);
  3605. smalltalk.addMethod(
  3606. "_subclass_instanceVariableNames_package_",
  3607. smalltalk.method({
  3608. selector: "subclass:instanceVariableNames:package:",
  3609. fn: function (aString,aString2,aString3){
  3610. var self=this;
  3611. function $ClassBuilder(){return smalltalk.ClassBuilder||(typeof ClassBuilder=="undefined"?nil:ClassBuilder)}
  3612. return smalltalk.withContext(function($ctx1) {
  3613. var $1;
  3614. $1=_st(_st($ClassBuilder())._new())._superclass_subclass_instanceVariableNames_package_(self,_st(aString)._asString(),aString2,aString3);
  3615. return $1;
  3616. }, function($ctx1) {$ctx1.fill(self,"subclass:instanceVariableNames:package:",{aString:aString,aString2:aString2,aString3:aString3},smalltalk.UndefinedObject)})},
  3617. messageSends: ["superclass:subclass:instanceVariableNames:package:", "asString", "new"]}),
  3618. smalltalk.UndefinedObject);
  3619. smalltalk.addMethod(
  3620. "_new",
  3621. smalltalk.method({
  3622. selector: "new",
  3623. fn: function (){
  3624. var self=this;
  3625. return smalltalk.withContext(function($ctx1) {
  3626. _st(self)._error_("You cannot create new instances of UndefinedObject. Use nil");
  3627. return self}, function($ctx1) {$ctx1.fill(self,"new",{},smalltalk.UndefinedObject.klass)})},
  3628. messageSends: ["error:"]}),
  3629. smalltalk.UndefinedObject.klass);