1
0

Kernel-Objects.deploy.js 108 KB

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