Kernel-Objects.deploy.js 109 KB

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