Kernel-Objects.deploy.js 93 KB

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