Kernel-Objects.deploy.js 108 KB

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