1
0

Kernel-Objects.deploy.js 111 KB

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