Kernel-Objects.deploy.js 111 KB

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