Kernel-Objects.deploy.js 108 KB

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