1
0

Kernel.js 340 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993
  1. smalltalk.addPackage('Kernel', {});
  2. smalltalk.addClass('Object', smalltalk.nil, [], 'Kernel');
  3. smalltalk.addMethod(
  4. unescape('__eq'),
  5. smalltalk.method({
  6. selector: unescape('%3D'),
  7. category: 'comparing',
  8. fn: function (anObject){
  9. var self=this;
  10. return smalltalk.send(self, "__eq_eq", [anObject]);
  11. return self;},
  12. args: ["anObject"],
  13. source: unescape('%3D%20anObject%0A%09%5Eself%20%3D%3D%20anObject'),
  14. messageSends: [unescape("%3D%3D")],
  15. referencedClasses: []
  16. }),
  17. smalltalk.Object);
  18. smalltalk.addMethod(
  19. unescape('_%7E_eq'),
  20. smalltalk.method({
  21. selector: unescape('%7E%3D'),
  22. category: 'comparing',
  23. fn: function (anObject){
  24. var self=this;
  25. return smalltalk.send(smalltalk.send(self, "__eq", [anObject]), "__eq", [false]);
  26. return self;},
  27. args: ["anObject"],
  28. source: unescape('%7E%3D%20anObject%0A%09%5E%28self%20%3D%20anObject%29%20%3D%20false'),
  29. messageSends: [unescape("%3D")],
  30. referencedClasses: []
  31. }),
  32. smalltalk.Object);
  33. smalltalk.addMethod(
  34. unescape('_initialize'),
  35. smalltalk.method({
  36. selector: unescape('initialize'),
  37. category: 'initialization',
  38. fn: function (){
  39. var self=this;
  40. return self;},
  41. args: [],
  42. source: unescape('initialize'),
  43. messageSends: [],
  44. referencedClasses: []
  45. }),
  46. smalltalk.Object);
  47. smalltalk.addMethod(
  48. unescape('_yourself'),
  49. smalltalk.method({
  50. selector: unescape('yourself'),
  51. category: 'accessing',
  52. fn: function (){
  53. var self=this;
  54. return self;
  55. return self;},
  56. args: [],
  57. source: unescape('yourself%0A%09%5Eself'),
  58. messageSends: [],
  59. referencedClasses: []
  60. }),
  61. smalltalk.Object);
  62. smalltalk.addMethod(
  63. unescape('_class'),
  64. smalltalk.method({
  65. selector: unescape('class'),
  66. category: 'accessing',
  67. fn: function (){
  68. var self=this;
  69. return self.klass;
  70. return self;},
  71. args: [],
  72. source: unescape('class%0A%09%3Creturn%20self.klass%3E'),
  73. messageSends: [],
  74. referencedClasses: []
  75. }),
  76. smalltalk.Object);
  77. smalltalk.addMethod(
  78. unescape('_size'),
  79. smalltalk.method({
  80. selector: unescape('size'),
  81. category: 'accessing',
  82. fn: function (){
  83. var self=this;
  84. smalltalk.send(self, "_error_", ["Object not indexable"]);
  85. return self;},
  86. args: [],
  87. source: unescape('size%0A%09self%20error%3A%20%27Object%20not%20indexable%27'),
  88. messageSends: ["error:"],
  89. referencedClasses: []
  90. }),
  91. smalltalk.Object);
  92. smalltalk.addMethod(
  93. unescape('_copy'),
  94. smalltalk.method({
  95. selector: unescape('copy'),
  96. category: 'copying',
  97. fn: function (){
  98. var self=this;
  99. return smalltalk.send(smalltalk.send(self, "_shallowCopy", []), "_postCopy", []);
  100. return self;},
  101. args: [],
  102. source: unescape('copy%0A%09%5Eself%20shallowCopy%20postCopy'),
  103. messageSends: ["postCopy", "shallowCopy"],
  104. referencedClasses: []
  105. }),
  106. smalltalk.Object);
  107. smalltalk.addMethod(
  108. unescape('_shallowCopy'),
  109. smalltalk.method({
  110. selector: unescape('shallowCopy'),
  111. category: 'copying',
  112. fn: function (){
  113. var self=this;
  114. var copy = self.klass._new();
  115. for(var i in self) {
  116. if(/^@.+/.test(i)) {
  117. copy[i] = self[i];
  118. }
  119. }
  120. return copy;
  121. ;
  122. return self;},
  123. args: [],
  124. source: unescape('shallowCopy%0A%09%3C%0A%09%20%20%20%20var%20copy%20%3D%20self.klass._new%28%29%3B%0A%09%20%20%20%20for%28var%20i%20in%20self%29%20%7B%0A%09%09if%28/%5E@.+/.test%28i%29%29%20%7B%0A%09%09%20%20%20%20copy%5Bi%5D%20%3D%20self%5Bi%5D%3B%0A%09%09%7D%0A%09%20%20%20%20%7D%0A%09%20%20%20%20return%20copy%3B%0A%09%3E'),
  125. messageSends: [],
  126. referencedClasses: []
  127. }),
  128. smalltalk.Object);
  129. smalltalk.addMethod(
  130. unescape('_deepCopy'),
  131. smalltalk.method({
  132. selector: unescape('deepCopy'),
  133. category: 'copying',
  134. fn: function (){
  135. var self=this;
  136. var copy = self.klass._new();
  137. for(var i in self) {
  138. if(/^@.+/.test(i)) {
  139. copy[i] = self[i]._deepCopy();
  140. }
  141. }
  142. return copy;
  143. ;
  144. return self;},
  145. args: [],
  146. source: unescape('deepCopy%0A%09%3C%20%20%20%20%0A%09%20%20%20%20var%20copy%20%3D%20self.klass._new%28%29%3B%0A%09%20%20%20%20for%28var%20i%20in%20self%29%20%7B%0A%09%09if%28/%5E@.+/.test%28i%29%29%20%7B%0A%09%09%20%20%20%20copy%5Bi%5D%20%3D%20self%5Bi%5D._deepCopy%28%29%3B%0A%09%09%7D%0A%09%20%20%20%20%7D%0A%09%20%20%20%20return%20copy%3B%0A%09%3E'),
  147. messageSends: [],
  148. referencedClasses: []
  149. }),
  150. smalltalk.Object);
  151. smalltalk.addMethod(
  152. unescape('_postCopy'),
  153. smalltalk.method({
  154. selector: unescape('postCopy'),
  155. category: 'copying',
  156. fn: function (){
  157. var self=this;
  158. return self;},
  159. args: [],
  160. source: unescape('postCopy'),
  161. messageSends: [],
  162. referencedClasses: []
  163. }),
  164. smalltalk.Object);
  165. smalltalk.addMethod(
  166. unescape('__minus_gt'),
  167. smalltalk.method({
  168. selector: unescape('-%3E'),
  169. category: 'converting',
  170. fn: function (anObject){
  171. var self=this;
  172. return smalltalk.send((smalltalk.Association || Association), "_key_value_", [self, anObject]);
  173. return self;},
  174. args: ["anObject"],
  175. source: unescape('-%3E%20anObject%0A%09%5EAssociation%20key%3A%20self%20value%3A%20anObject'),
  176. messageSends: ["key:value:"],
  177. referencedClasses: ["Association"]
  178. }),
  179. smalltalk.Object);
  180. smalltalk.addMethod(
  181. unescape('_asString'),
  182. smalltalk.method({
  183. selector: unescape('asString'),
  184. category: 'converting',
  185. fn: function (){
  186. var self=this;
  187. return smalltalk.send(self, "_printString", []);
  188. return self;},
  189. args: [],
  190. source: unescape('asString%0A%09%5Eself%20printString'),
  191. messageSends: ["printString"],
  192. referencedClasses: []
  193. }),
  194. smalltalk.Object);
  195. smalltalk.addMethod(
  196. unescape('_asJavascript'),
  197. smalltalk.method({
  198. selector: unescape('asJavascript'),
  199. category: 'converting',
  200. fn: function (){
  201. var self=this;
  202. return smalltalk.send(self, "_asString", []);
  203. return self;},
  204. args: [],
  205. source: unescape('asJavascript%0A%09%5Eself%20asString'),
  206. messageSends: ["asString"],
  207. referencedClasses: []
  208. }),
  209. smalltalk.Object);
  210. smalltalk.addMethod(
  211. unescape('_perform_'),
  212. smalltalk.method({
  213. selector: unescape('perform%3A'),
  214. category: 'message handling',
  215. fn: function (aSymbol){
  216. var self=this;
  217. return smalltalk.send(self, "_perform_withArguments_", [aSymbol, []]);
  218. return self;},
  219. args: ["aSymbol"],
  220. source: unescape('perform%3A%20aSymbol%0A%09%5Eself%20perform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
  221. messageSends: ["perform:withArguments:"],
  222. referencedClasses: []
  223. }),
  224. smalltalk.Object);
  225. smalltalk.addMethod(
  226. unescape('_perform_withArguments_'),
  227. smalltalk.method({
  228. selector: unescape('perform%3AwithArguments%3A'),
  229. category: 'message handling',
  230. fn: function (aSymbol, aCollection){
  231. var self=this;
  232. return smalltalk.send(self, "_basicPerform_withArguments_", [smalltalk.send(aSymbol, "_asSelector", []), aCollection]);
  233. return self;},
  234. args: ["aSymbol", "aCollection"],
  235. source: unescape('perform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%5Eself%20basicPerform%3A%20aSymbol%20asSelector%20withArguments%3A%20aCollection'),
  236. messageSends: ["basicPerform:withArguments:", "asSelector"],
  237. referencedClasses: []
  238. }),
  239. smalltalk.Object);
  240. smalltalk.addMethod(
  241. unescape('_instVarAt_'),
  242. smalltalk.method({
  243. selector: unescape('instVarAt%3A'),
  244. category: 'accessing',
  245. fn: function (aString){
  246. var self=this;
  247. return self['@'+aString];
  248. return self;},
  249. args: ["aString"],
  250. source: unescape('instVarAt%3A%20aString%0A%09%3Creturn%20self%5B%27@%27+aString%5D%3E'),
  251. messageSends: [],
  252. referencedClasses: []
  253. }),
  254. smalltalk.Object);
  255. smalltalk.addMethod(
  256. unescape('_instVarAt_put_'),
  257. smalltalk.method({
  258. selector: unescape('instVarAt%3Aput%3A'),
  259. category: 'accessing',
  260. fn: function (aString, anObject){
  261. var self=this;
  262. self['@' + aString] = anObject;
  263. return self;},
  264. args: ["aString", "anObject"],
  265. source: unescape('instVarAt%3A%20aString%20put%3A%20anObject%0A%09%3Cself%5B%27@%27%20+%20aString%5D%20%3D%20anObject%3E'),
  266. messageSends: [],
  267. referencedClasses: []
  268. }),
  269. smalltalk.Object);
  270. smalltalk.addMethod(
  271. unescape('_basicAt_'),
  272. smalltalk.method({
  273. selector: unescape('basicAt%3A'),
  274. category: 'accessing',
  275. fn: function (aString){
  276. var self=this;
  277. return self[aString];
  278. return self;},
  279. args: ["aString"],
  280. source: unescape('basicAt%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
  281. messageSends: [],
  282. referencedClasses: []
  283. }),
  284. smalltalk.Object);
  285. smalltalk.addMethod(
  286. unescape('_basicAt_put_'),
  287. smalltalk.method({
  288. selector: unescape('basicAt%3Aput%3A'),
  289. category: 'accessing',
  290. fn: function (aString, anObject){
  291. var self=this;
  292. return self[aString] = anObject;
  293. return self;},
  294. args: ["aString", "anObject"],
  295. source: unescape('basicAt%3A%20aString%20put%3A%20anObject%0A%09%3Creturn%20self%5BaString%5D%20%3D%20anObject%3E'),
  296. messageSends: [],
  297. referencedClasses: []
  298. }),
  299. smalltalk.Object);
  300. smalltalk.addMethod(
  301. unescape('_error_'),
  302. smalltalk.method({
  303. selector: unescape('error%3A'),
  304. category: 'error handling',
  305. fn: function (aString){
  306. var self=this;
  307. smalltalk.send((smalltalk.Error || Error), "_signal_", [aString]);
  308. return self;},
  309. args: ["aString"],
  310. source: unescape('error%3A%20aString%0A%09Error%20signal%3A%20aString'),
  311. messageSends: ["signal:"],
  312. referencedClasses: ["Error"]
  313. }),
  314. smalltalk.Object);
  315. smalltalk.addMethod(
  316. unescape('_subclassResponsibility'),
  317. smalltalk.method({
  318. selector: unescape('subclassResponsibility'),
  319. category: 'error handling',
  320. fn: function (){
  321. var self=this;
  322. smalltalk.send(self, "_error_", ["This method is a responsibility of a subclass"]);
  323. return self;},
  324. args: [],
  325. source: unescape('subclassResponsibility%0A%09self%20error%3A%20%27This%20method%20is%20a%20responsibility%20of%20a%20subclass%27'),
  326. messageSends: ["error:"],
  327. referencedClasses: []
  328. }),
  329. smalltalk.Object);
  330. smalltalk.addMethod(
  331. unescape('_shouldNotImplement'),
  332. smalltalk.method({
  333. selector: unescape('shouldNotImplement'),
  334. category: 'error handling',
  335. fn: function (){
  336. var self=this;
  337. smalltalk.send(self, "_error_", [smalltalk.send("This method should not be implemented in ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])])]);
  338. return self;},
  339. args: [],
  340. source: unescape('shouldNotImplement%0A%09self%20error%3A%20%27This%20method%20should%20not%20be%20implemented%20in%20%27%2C%20self%20class%20name'),
  341. messageSends: ["error:", unescape("%2C"), "name", "class"],
  342. referencedClasses: []
  343. }),
  344. smalltalk.Object);
  345. smalltalk.addMethod(
  346. unescape('_try_catch_'),
  347. smalltalk.method({
  348. selector: unescape('try%3Acatch%3A'),
  349. category: 'error handling',
  350. fn: function (aBlock, anotherBlock){
  351. var self=this;
  352. try{aBlock()} catch(e) {anotherBlock(e)};
  353. return self;},
  354. args: ["aBlock", "anotherBlock"],
  355. source: unescape('try%3A%20aBlock%20catch%3A%20anotherBlock%0A%09%3Ctry%7BaBlock%28%29%7D%20catch%28e%29%20%7BanotherBlock%28e%29%7D%3E'),
  356. messageSends: [],
  357. referencedClasses: []
  358. }),
  359. smalltalk.Object);
  360. smalltalk.addMethod(
  361. unescape('_printString'),
  362. smalltalk.method({
  363. selector: unescape('printString'),
  364. category: 'printing',
  365. fn: function (){
  366. var self=this;
  367. return smalltalk.send("a ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])]);
  368. return self;},
  369. args: [],
  370. source: unescape('printString%0A%09%5E%27a%20%27%2C%20self%20class%20name'),
  371. messageSends: [unescape("%2C"), "name", "class"],
  372. referencedClasses: []
  373. }),
  374. smalltalk.Object);
  375. smalltalk.addMethod(
  376. unescape('_printNl'),
  377. smalltalk.method({
  378. selector: unescape('printNl'),
  379. category: 'printing',
  380. fn: function (){
  381. var self=this;
  382. console.log(self);
  383. return self;},
  384. args: [],
  385. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  386. messageSends: [],
  387. referencedClasses: []
  388. }),
  389. smalltalk.Object);
  390. smalltalk.addMethod(
  391. unescape('_isKindOf_'),
  392. smalltalk.method({
  393. selector: unescape('isKindOf%3A'),
  394. category: 'testing',
  395. fn: function (aClass){
  396. var self=this;
  397. return ((($receiver = smalltalk.send(self, "_isMemberOf_", [aClass])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return true;})() : (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return true;}), (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})]));
  398. return self;},
  399. args: ["aClass"],
  400. source: unescape('isKindOf%3A%20aClass%0A%09%5E%28self%20isMemberOf%3A%20aClass%29%0A%09%20%20%20%20ifTrue%3A%20%5Btrue%5D%0A%09%20%20%20%20ifFalse%3A%20%5Bself%20class%20inheritsFrom%3A%20aClass%5D'),
  401. messageSends: ["ifTrue:ifFalse:", "isMemberOf:", "inheritsFrom:", "class"],
  402. referencedClasses: []
  403. }),
  404. smalltalk.Object);
  405. smalltalk.addMethod(
  406. unescape('_isMemberOf_'),
  407. smalltalk.method({
  408. selector: unescape('isMemberOf%3A'),
  409. category: 'testing',
  410. fn: function (aClass){
  411. var self=this;
  412. return smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [aClass]);
  413. return self;},
  414. args: ["aClass"],
  415. source: unescape('isMemberOf%3A%20aClass%0A%09%5Eself%20class%20%3D%20aClass'),
  416. messageSends: [unescape("%3D"), "class"],
  417. referencedClasses: []
  418. }),
  419. smalltalk.Object);
  420. smalltalk.addMethod(
  421. unescape('_ifNil_'),
  422. smalltalk.method({
  423. selector: unescape('ifNil%3A'),
  424. category: 'testing',
  425. fn: function (aBlock){
  426. var self=this;
  427. return self;
  428. return self;},
  429. args: ["aBlock"],
  430. source: unescape('ifNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself'),
  431. messageSends: [],
  432. referencedClasses: []
  433. }),
  434. smalltalk.Object);
  435. smalltalk.addMethod(
  436. unescape('_ifNil_ifNotNil_'),
  437. smalltalk.method({
  438. selector: unescape('ifNil%3AifNotNil%3A'),
  439. category: 'testing',
  440. fn: function (aBlock, anotherBlock){
  441. var self=this;
  442. return smalltalk.send(anotherBlock, "_value", []);
  443. return self;},
  444. args: ["aBlock", "anotherBlock"],
  445. source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EanotherBlock%20value'),
  446. messageSends: ["value"],
  447. referencedClasses: []
  448. }),
  449. smalltalk.Object);
  450. smalltalk.addMethod(
  451. unescape('_ifNotNil_'),
  452. smalltalk.method({
  453. selector: unescape('ifNotNil%3A'),
  454. category: 'testing',
  455. fn: function (aBlock){
  456. var self=this;
  457. return smalltalk.send(aBlock, "_value", []);
  458. return self;},
  459. args: ["aBlock"],
  460. source: unescape('ifNotNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  461. messageSends: ["value"],
  462. referencedClasses: []
  463. }),
  464. smalltalk.Object);
  465. smalltalk.addMethod(
  466. unescape('_ifNotNil_ifNil_'),
  467. smalltalk.method({
  468. selector: unescape('ifNotNil%3AifNil%3A'),
  469. category: 'testing',
  470. fn: function (aBlock, anotherBlock){
  471. var self=this;
  472. return smalltalk.send(aBlock, "_value", []);
  473. return self;},
  474. args: ["aBlock", "anotherBlock"],
  475. source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  476. messageSends: ["value"],
  477. referencedClasses: []
  478. }),
  479. smalltalk.Object);
  480. smalltalk.addMethod(
  481. unescape('_isNil'),
  482. smalltalk.method({
  483. selector: unescape('isNil'),
  484. category: 'testing',
  485. fn: function (){
  486. var self=this;
  487. return false;
  488. return self;},
  489. args: [],
  490. source: unescape('isNil%0A%09%5Efalse'),
  491. messageSends: [],
  492. referencedClasses: []
  493. }),
  494. smalltalk.Object);
  495. smalltalk.addMethod(
  496. unescape('_notNil'),
  497. smalltalk.method({
  498. selector: unescape('notNil'),
  499. category: 'testing',
  500. fn: function (){
  501. var self=this;
  502. return smalltalk.send(smalltalk.send(self, "_isNil", []), "_not", []);
  503. return self;},
  504. args: [],
  505. source: unescape('notNil%0A%09%5Eself%20isNil%20not'),
  506. messageSends: ["not", "isNil"],
  507. referencedClasses: []
  508. }),
  509. smalltalk.Object);
  510. smalltalk.addMethod(
  511. unescape('_isClass'),
  512. smalltalk.method({
  513. selector: unescape('isClass'),
  514. category: 'testing',
  515. fn: function (){
  516. var self=this;
  517. return false;
  518. return self;},
  519. args: [],
  520. source: unescape('isClass%0A%09%5Efalse'),
  521. messageSends: [],
  522. referencedClasses: []
  523. }),
  524. smalltalk.Object);
  525. smalltalk.addMethod(
  526. unescape('_isMetaclass'),
  527. smalltalk.method({
  528. selector: unescape('isMetaclass'),
  529. category: 'testing',
  530. fn: function (){
  531. var self=this;
  532. return false;
  533. return self;},
  534. args: [],
  535. source: unescape('isMetaclass%0A%09%5Efalse'),
  536. messageSends: [],
  537. referencedClasses: []
  538. }),
  539. smalltalk.Object);
  540. smalltalk.addMethod(
  541. unescape('_isNumber'),
  542. smalltalk.method({
  543. selector: unescape('isNumber'),
  544. category: 'testing',
  545. fn: function (){
  546. var self=this;
  547. return false;
  548. return self;},
  549. args: [],
  550. source: unescape('isNumber%0A%09%5Efalse'),
  551. messageSends: [],
  552. referencedClasses: []
  553. }),
  554. smalltalk.Object);
  555. smalltalk.addMethod(
  556. unescape('_isString'),
  557. smalltalk.method({
  558. selector: unescape('isString'),
  559. category: 'testing',
  560. fn: function (){
  561. var self=this;
  562. return false;
  563. return self;},
  564. args: [],
  565. source: unescape('isString%0A%09%5Efalse'),
  566. messageSends: [],
  567. referencedClasses: []
  568. }),
  569. smalltalk.Object);
  570. smalltalk.addMethod(
  571. unescape('_isParseFailure'),
  572. smalltalk.method({
  573. selector: unescape('isParseFailure'),
  574. category: 'testing',
  575. fn: function (){
  576. var self=this;
  577. return false;
  578. return self;},
  579. args: [],
  580. source: unescape('isParseFailure%0A%09%5Efalse'),
  581. messageSends: [],
  582. referencedClasses: []
  583. }),
  584. smalltalk.Object);
  585. smalltalk.addMethod(
  586. unescape('_basicPerform_'),
  587. smalltalk.method({
  588. selector: unescape('basicPerform%3A'),
  589. category: 'message handling',
  590. fn: function (aSymbol){
  591. var self=this;
  592. return smalltalk.send(self, "_basicPerform_withArguments_", [aSymbol, []]);
  593. return self;},
  594. args: ["aSymbol"],
  595. source: unescape('basicPerform%3A%20aSymbol%20%0A%09%5Eself%20basicPerform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
  596. messageSends: ["basicPerform:withArguments:"],
  597. referencedClasses: []
  598. }),
  599. smalltalk.Object);
  600. smalltalk.addMethod(
  601. unescape('_basicPerform_withArguments_'),
  602. smalltalk.method({
  603. selector: unescape('basicPerform%3AwithArguments%3A'),
  604. category: 'message handling',
  605. fn: function (aSymbol, aCollection){
  606. var self=this;
  607. return self[aSymbol].apply(self, aCollection);;
  608. return self;},
  609. args: ["aSymbol", "aCollection"],
  610. source: unescape('basicPerform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%3Creturn%20self%5BaSymbol%5D.apply%28self%2C%20aCollection%29%3B%3E'),
  611. messageSends: [],
  612. referencedClasses: []
  613. }),
  614. smalltalk.Object);
  615. smalltalk.addMethod(
  616. unescape('_basicDelete_'),
  617. smalltalk.method({
  618. selector: unescape('basicDelete%3A'),
  619. category: 'accessing',
  620. fn: function (aString){
  621. var self=this;
  622. delete self[aString];
  623. return self;},
  624. args: ["aString"],
  625. source: unescape('basicDelete%3A%20aString%0A%20%20%20%20%3Cdelete%20self%5BaString%5D%3E'),
  626. messageSends: [],
  627. referencedClasses: []
  628. }),
  629. smalltalk.Object);
  630. smalltalk.addMethod(
  631. unescape('_doesNotUnderstand_'),
  632. smalltalk.method({
  633. selector: unescape('doesNotUnderstand%3A'),
  634. category: 'error handling',
  635. fn: function (aMessage){
  636. var self=this;
  637. (function($rec){smalltalk.send($rec, "_receiver_", [self]);smalltalk.send($rec, "_message_", [aMessage]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send((smalltalk.MessageNotUnderstood || MessageNotUnderstood), "_new", []));
  638. return self;},
  639. args: ["aMessage"],
  640. source: unescape('doesNotUnderstand%3A%20aMessage%0A%09MessageNotUnderstood%20new%0A%09%09receiver%3A%20self%3B%0A%09%09message%3A%20aMessage%3B%0A%09%09signal'),
  641. messageSends: ["receiver:", "message:", "signal", "new"],
  642. referencedClasses: ["MessageNotUnderstood"]
  643. }),
  644. smalltalk.Object);
  645. smalltalk.addMethod(
  646. unescape('_asJSON'),
  647. smalltalk.method({
  648. selector: unescape('asJSON'),
  649. category: 'converting',
  650. fn: function (){
  651. var self=this;
  652. return JSON.stringify(self._asJSONObject());
  653. return self;},
  654. args: [],
  655. source: unescape('asJSON%0A%09%3Creturn%20JSON.stringify%28self._asJSONObject%28%29%29%3E'),
  656. messageSends: [],
  657. referencedClasses: []
  658. }),
  659. smalltalk.Object);
  660. smalltalk.addMethod(
  661. unescape('_asJSONObject'),
  662. smalltalk.method({
  663. selector: unescape('asJSONObject'),
  664. category: 'converting',
  665. fn: function (){
  666. var self=this;
  667. var object=nil;
  668. object=smalltalk.send((smalltalk.Object || Object), "_new", []);
  669. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_instanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(object, "_basicAt_put_", [each, smalltalk.send(smalltalk.send(self, "_instVarAt_", [each]), "_asJSONObject", [])]);})]);
  670. return object;
  671. return self;},
  672. args: [],
  673. source: unescape('asJSONObject%0A%09%7C%20object%20%7C%0A%09object%20%3A%3D%20Object%20new.%0A%09self%20class%20instanceVariableNames%20do%3A%20%5B%3Aeach%20%7C%0A%09%09object%20basicAt%3A%20each%20put%3A%20%28self%20instVarAt%3A%20each%29%20asJSONObject%5D.%0A%09%5Eobject'),
  674. messageSends: ["new", "do:", "instanceVariableNames", "class", "basicAt:put:", "asJSONObject", "instVarAt:"],
  675. referencedClasses: ["Object"]
  676. }),
  677. smalltalk.Object);
  678. smalltalk.addMethod(
  679. unescape('_halt'),
  680. smalltalk.method({
  681. selector: unescape('halt'),
  682. category: 'error handling',
  683. fn: function (){
  684. var self=this;
  685. smalltalk.send(self, "_error_", ["Halt encountered"]);
  686. return self;},
  687. args: [],
  688. source: unescape('halt%0A%09self%20error%3A%20%27Halt%20encountered%27'),
  689. messageSends: ["error:"],
  690. referencedClasses: []
  691. }),
  692. smalltalk.Object);
  693. smalltalk.addMethod(
  694. unescape('_log_block_'),
  695. smalltalk.method({
  696. selector: unescape('log%3Ablock%3A'),
  697. category: 'printing',
  698. fn: function (aString, aBlock){
  699. var self=this;
  700. var result=nil;
  701. smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [smalltalk.send(smalltalk.send(aString, "__comma", [" time: "]), "__comma", [smalltalk.send(smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [(function(){return result=smalltalk.send(aBlock, "_value", []);})]), "_printString", [])])]);
  702. return result;
  703. return self;},
  704. args: ["aString", "aBlock"],
  705. source: unescape('log%3A%20aString%20block%3A%20aBlock%0A%0A%09%7C%20result%20%7C%0A%09console%20log%3A%20%20aString%2C%20%20%27%20time%3A%20%27%2C%20%28Date%20millisecondsToRun%3A%20%5Bresult%20%3A%3D%20aBlock%20value%5D%29%20printString.%0A%09%5Eresult'),
  706. messageSends: ["log:", unescape("%2C"), "printString", "millisecondsToRun:", "value"],
  707. referencedClasses: ["Date"]
  708. }),
  709. smalltalk.Object);
  710. smalltalk.addMethod(
  711. unescape('__eq_eq'),
  712. smalltalk.method({
  713. selector: unescape('%3D%3D'),
  714. category: 'comparing',
  715. fn: function (anObject){
  716. var self=this;
  717. return self === anObject;
  718. return self;},
  719. args: ["anObject"],
  720. source: unescape('%3D%3D%20anObject%0A%09%3Creturn%20self%20%3D%3D%3D%20anObject%3E'),
  721. messageSends: [],
  722. referencedClasses: []
  723. }),
  724. smalltalk.Object);
  725. smalltalk.addMethod(
  726. unescape('_%7E%7E'),
  727. smalltalk.method({
  728. selector: unescape('%7E%7E'),
  729. category: 'comparing',
  730. fn: function (anObject){
  731. var self=this;
  732. return smalltalk.send(smalltalk.send(self, "__eq_eq", [anObject]), "__eq", [false]);
  733. return self;},
  734. args: ["anObject"],
  735. source: unescape('%7E%7E%20anObject%0A%09%5E%28self%20%3D%3D%20anObject%29%20%3D%20false'),
  736. messageSends: [unescape("%3D"), unescape("%3D%3D")],
  737. referencedClasses: []
  738. }),
  739. smalltalk.Object);
  740. smalltalk.addMethod(
  741. unescape('_deprecatedAPI'),
  742. smalltalk.method({
  743. selector: unescape('deprecatedAPI'),
  744. category: 'error handling',
  745. fn: function (){
  746. var self=this;
  747. smalltalk.send((typeof console == 'undefined' ? nil : console), "_warn_", [smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.getThisContext()), "_home", []), "_asString", []), "__comma", [unescape("%20is%20deprecated%21")])]);
  748. return self;},
  749. args: [],
  750. source: unescape('deprecatedAPI%0A%09%22Just%20a%20simple%20way%20to%20deprecate%20methods.%0A%09%23deprecatedAPI%20is%20in%20the%20%27error%20handling%27%20protocol%20even%20if%20it%20doesn%27t%20throw%20an%20error%2C%0A%09but%20it%20could%20in%20the%20future.%22%0A%09console%20warn%3A%20thisContext%20home%20asString%2C%20%27%20is%20deprecated%21%27'),
  751. messageSends: ["warn:", unescape("%2C"), "asString", "home"],
  752. referencedClasses: []
  753. }),
  754. smalltalk.Object);
  755. smalltalk.addMethod(
  756. unescape('_storeString'),
  757. smalltalk.method({
  758. selector: unescape('storeString'),
  759. category: 'printing',
  760. fn: function (){
  761. var self=this;
  762. return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(s){return smalltalk.send(self, "_storeOn_", [s]);})]);
  763. return self;},
  764. args: [],
  765. source: unescape('storeString%0A%09%22Answer%20a%20String%20representation%20of%20the%20receiver%20from%20which%20the%20receiver%20%0A%09can%20be%20reconstructed.%22%0A%0A%09%5E%20String%20streamContents%3A%20%5B%3As%20%7C%20self%20storeOn%3A%20s%5D'),
  766. messageSends: ["streamContents:", "storeOn:"],
  767. referencedClasses: ["String"]
  768. }),
  769. smalltalk.Object);
  770. smalltalk.addMethod(
  771. unescape('_storeOn_'),
  772. smalltalk.method({
  773. selector: unescape('storeOn%3A'),
  774. category: 'printing',
  775. fn: function (aStream){
  776. var self=this;
  777. smalltalk.send(aStream, "_nextPutAll_", [smalltalk.send(self, "_printString", [])]);
  778. return self;},
  779. args: ["aStream"],
  780. source: unescape('storeOn%3A%20aStream%0A%09aStream%20nextPutAll%3A%20self%20printString'),
  781. messageSends: ["nextPutAll:", "printString"],
  782. referencedClasses: []
  783. }),
  784. smalltalk.Object);
  785. smalltalk.addMethod(
  786. unescape('_initialize'),
  787. smalltalk.method({
  788. selector: unescape('initialize'),
  789. category: 'initialization',
  790. fn: function (){
  791. var self=this;
  792. return self;},
  793. args: [],
  794. source: unescape('initialize%0A%09%22no%20op%22'),
  795. messageSends: [],
  796. referencedClasses: []
  797. }),
  798. smalltalk.Object.klass);
  799. smalltalk.addClass('Smalltalk', smalltalk.Object, [], 'Kernel');
  800. smalltalk.addMethod(
  801. unescape('_classes'),
  802. smalltalk.method({
  803. selector: unescape('classes'),
  804. category: 'accessing',
  805. fn: function (){
  806. var self=this;
  807. return self.classes();
  808. return self;},
  809. args: [],
  810. source: unescape('classes%0A%09%3Creturn%20self.classes%28%29%3E'),
  811. messageSends: [],
  812. referencedClasses: []
  813. }),
  814. smalltalk.Smalltalk);
  815. smalltalk.addMethod(
  816. unescape('_at_'),
  817. smalltalk.method({
  818. selector: unescape('at%3A'),
  819. category: 'accessing',
  820. fn: function (aString){
  821. var self=this;
  822. return self[aString];
  823. return self;},
  824. args: ["aString"],
  825. source: unescape('at%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
  826. messageSends: [],
  827. referencedClasses: []
  828. }),
  829. smalltalk.Smalltalk);
  830. smalltalk.addMethod(
  831. unescape('_removeClass_'),
  832. smalltalk.method({
  833. selector: unescape('removeClass%3A'),
  834. category: 'classes',
  835. fn: function (aClass){
  836. var self=this;
  837. ((($receiver = smalltalk.send(aClass, "_isMetaclass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_asString", []), "__comma", [unescape("%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21")])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_asString", []), "__comma", [unescape("%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21")])]);})]));
  838. smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(aClass, "_removeCompiledMethod_", [each]);})]);
  839. smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(aClass, "_class", []), "_removeCompiledMethod_", [each]);})]);
  840. smalltalk.send(self, "_basicDelete_", [smalltalk.send(aClass, "_name", [])]);
  841. return self;},
  842. args: ["aClass"],
  843. source: unescape('removeClass%3A%20aClass%0A%09aClass%20isMetaclass%20ifTrue%3A%20%5Bself%20error%3A%20aClass%20asString%2C%20%27%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21%27%5D.%0A%09aClass%20methodDictionary%20values%20do%3A%20%5B%3Aeach%20%7C%0A%09%09aClass%20removeCompiledMethod%3A%20each%5D.%0A%09aClass%20class%20methodDictionary%20values%20do%3A%20%5B%3Aeach%20%7C%0A%09%09aClass%20class%20removeCompiledMethod%3A%20each%5D.%0A%09self%20basicDelete%3A%20aClass%20name'),
  844. messageSends: ["ifTrue:", "isMetaclass", "error:", unescape("%2C"), "asString", "do:", "values", "methodDictionary", "removeCompiledMethod:", "class", "basicDelete:", "name"],
  845. referencedClasses: []
  846. }),
  847. smalltalk.Smalltalk);
  848. smalltalk.addMethod(
  849. unescape('_basicParse_'),
  850. smalltalk.method({
  851. selector: unescape('basicParse%3A'),
  852. category: 'accessing',
  853. fn: function (aString){
  854. var self=this;
  855. return smalltalk.parser.parse(aString);
  856. return self;},
  857. args: ["aString"],
  858. source: unescape('basicParse%3A%20aString%0A%09%3Creturn%20smalltalk.parser.parse%28aString%29%3E'),
  859. messageSends: [],
  860. referencedClasses: []
  861. }),
  862. smalltalk.Smalltalk);
  863. smalltalk.addMethod(
  864. unescape('_parse_'),
  865. smalltalk.method({
  866. selector: unescape('parse%3A'),
  867. category: 'accessing',
  868. fn: function (aString){
  869. var self=this;
  870. var result=nil;
  871. smalltalk.send(self, "_try_catch_", [(function(){return result=smalltalk.send(self, "_basicParse_", [aString]);}), (function(ex){return smalltalk.send(smalltalk.send(self, "_parseError_parsing_", [ex, aString]), "_signal", []);})]);
  872. return result;
  873. return self;},
  874. args: ["aString"],
  875. source: unescape('parse%3A%20aString%0A%09%7C%20result%20%7C%20%0A%09self%20try%3A%20%5Bresult%20%3A%3D%20self%20basicParse%3A%20aString%5D%20catch%3A%20%5B%3Aex%20%7C%20%28self%20parseError%3A%20ex%20parsing%3A%20aString%29%20signal%5D.%0A%09%5Eresult'),
  876. messageSends: ["try:catch:", "basicParse:", "signal", "parseError:parsing:"],
  877. referencedClasses: []
  878. }),
  879. smalltalk.Smalltalk);
  880. smalltalk.addMethod(
  881. unescape('_parseError_parsing_'),
  882. smalltalk.method({
  883. selector: unescape('parseError%3Aparsing%3A'),
  884. category: 'accessing',
  885. fn: function (anException, aString){
  886. var self=this;
  887. var row=nil;
  888. var col=nil;
  889. var message=nil;
  890. var lines=nil;
  891. var badLine=nil;
  892. var code=nil;
  893. row = anException.line;
  894. col = anException.column;
  895. message = anException.message;;
  896. lines=smalltalk.send(aString, "_lines", []);
  897. badLine=smalltalk.send(lines, "_at_", [row]);
  898. badLine=smalltalk.send(smalltalk.send(smalltalk.send(badLine, "_copyFrom_to_", [(1), ((($receiver = col).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]), "__comma", [unescape("%20%3D%3D%3D%3E")]), "__comma", [smalltalk.send(badLine, "_copyFrom_to_", [col, smalltalk.send(badLine, "_size", [])])]);
  899. smalltalk.send(lines, "_at_put_", [row, badLine]);
  900. code=smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(s){return smalltalk.send(lines, "_withIndexDo_", [(function(l, i){return smalltalk.send(s, "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(i, "_asString", []), "__comma", [": "]), "__comma", [l]), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])])]);})]);})]);
  901. return smalltalk.send(smalltalk.send((smalltalk.Error || Error), "_new", []), "_messageText_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("Parse error on line ", "__comma", [row]), "__comma", [" column "]), "__comma", [col]), "__comma", [" : "]), "__comma", [message]), "__comma", [unescape("%20Below%20is%20code%20with%20line%20numbers%20and%20%3D%3D%3D%3E%20marker%20inserted%3A")]), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])]), "__comma", [code])]);
  902. return self;},
  903. args: ["anException", "aString"],
  904. source: unescape('parseError%3A%20anException%20parsing%3A%20aString%0A%09%7C%20row%20col%20message%20lines%20badLine%20code%20%7C%0A%09%3Crow%20%3D%20anException.line%3B%0A%09col%20%3D%20anException.column%3B%0A%09message%20%3D%20anException.message%3B%3E.%0A%09lines%20%3A%3D%20aString%20lines.%0A%09badLine%20%3A%3D%20lines%20at%3A%20row.%0A%09badLine%20%3A%3D%20%28badLine%20copyFrom%3A%201%20to%3A%20col%20-%201%29%2C%20%27%20%3D%3D%3D%3E%27%2C%20%28badLine%20copyFrom%3A%20%20col%20to%3A%20badLine%20size%29.%0A%09lines%20at%3A%20row%20put%3A%20badLine.%0A%09code%20%3A%3D%20String%20streamContents%3A%20%5B%3As%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20lines%20withIndexDo%3A%20%5B%3Al%20%3Ai%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20s%20nextPutAll%3A%20i%20asString%2C%20%27%3A%20%27%2C%20l%2C%20String%20lf%5D%5D.%0A%09%5E%20Error%20new%20messageText%3A%20%28%27Parse%20error%20on%20line%20%27%20%2C%20row%20%2C%20%27%20column%20%27%20%2C%20col%20%2C%20%27%20%3A%20%27%20%2C%20message%20%2C%20%27%20Below%20is%20code%20with%20line%20numbers%20and%20%3D%3D%3D%3E%20marker%20inserted%3A%27%20%2C%20String%20lf%2C%20code%29'),
  905. messageSends: ["lines", "at:", unescape("%2C"), "copyFrom:to:", unescape("-"), "size", "at:put:", "streamContents:", "withIndexDo:", "nextPutAll:", "asString", "lf", "messageText:", "new"],
  906. referencedClasses: ["String", "Error"]
  907. }),
  908. smalltalk.Smalltalk);
  909. smalltalk.addMethod(
  910. unescape('_packages'),
  911. smalltalk.method({
  912. selector: unescape('packages'),
  913. category: 'packages',
  914. fn: function (){
  915. var self=this;
  916. return self.packages.all();
  917. return self;},
  918. args: [],
  919. source: unescape('packages%0A%09%22Return%20all%20Package%20instances%20in%20the%20system.%22%0A%0A%09%3Creturn%20self.packages.all%28%29%3E'),
  920. messageSends: [],
  921. referencedClasses: []
  922. }),
  923. smalltalk.Smalltalk);
  924. smalltalk.addMethod(
  925. unescape('_packageAt_'),
  926. smalltalk.method({
  927. selector: unescape('packageAt%3A'),
  928. category: 'packages',
  929. fn: function (packageName){
  930. var self=this;
  931. return self.packages[packageName];
  932. return self;},
  933. args: ["packageName"],
  934. source: unescape('packageAt%3A%20packageName%0A%20%20%20%20%20%20%20%3Creturn%20self.packages%5BpackageName%5D%3E'),
  935. messageSends: [],
  936. referencedClasses: []
  937. }),
  938. smalltalk.Smalltalk);
  939. smalltalk.addMethod(
  940. unescape('_packageAt_ifAbsent_'),
  941. smalltalk.method({
  942. selector: unescape('packageAt%3AifAbsent%3A'),
  943. category: 'packages',
  944. fn: function (packageName, aBlock){
  945. var self=this;
  946. return smalltalk.send(smalltalk.send(self, "_packageAt_", [packageName]), "_ifNil_", [aBlock]);
  947. return self;},
  948. args: ["packageName", "aBlock"],
  949. source: unescape('packageAt%3A%20packageName%20ifAbsent%3A%20aBlock%0A%20%20%20%20%20%20%20%5E%28self%20packageAt%3A%20packageName%29%20ifNil%3A%20aBlock'),
  950. messageSends: ["ifNil:", "packageAt:"],
  951. referencedClasses: []
  952. }),
  953. smalltalk.Smalltalk);
  954. smalltalk.addMethod(
  955. unescape('_createPackage_'),
  956. smalltalk.method({
  957. selector: unescape('createPackage%3A'),
  958. category: 'private',
  959. fn: function (packageName){
  960. var self=this;
  961. return smalltalk.addPackage(packageName, nil);
  962. return self;},
  963. args: ["packageName"],
  964. source: unescape('createPackage%3A%20packageName%0A%09%22Create%20and%20bind%20a%20new%20package%20with%20given%20name%20and%20return%20it.%22%0A%0A%20%20%20%20%20%20%3Creturn%20smalltalk.addPackage%28packageName%2C%20nil%29%3E'),
  965. messageSends: [],
  966. referencedClasses: []
  967. }),
  968. smalltalk.Smalltalk);
  969. smalltalk.addMethod(
  970. unescape('_deletePackage_'),
  971. smalltalk.method({
  972. selector: unescape('deletePackage%3A'),
  973. category: 'private',
  974. fn: function (packageName){
  975. var self=this;
  976. delete smalltalk.packages[packageName];
  977. return self;},
  978. args: ["packageName"],
  979. source: unescape('deletePackage%3A%20packageName%0A%09%22Deletes%20a%20package%20by%20deleting%20its%20binding%2C%20but%20does%20not%20check%20if%20it%20contains%20classes%20etc.%0A%09To%20remove%20a%20package%2C%20use%20%23removePackage%20instead.%22%0A%0A%20%20%20%20%20%20%20%3Cdelete%20smalltalk.packages%5BpackageName%5D%3E'),
  980. messageSends: [],
  981. referencedClasses: []
  982. }),
  983. smalltalk.Smalltalk);
  984. smalltalk.addMethod(
  985. unescape('_removePackage_'),
  986. smalltalk.method({
  987. selector: unescape('removePackage%3A'),
  988. category: 'packages',
  989. fn: function (packageName){
  990. var self=this;
  991. var pkg=nil;
  992. pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]);
  993. smalltalk.send(smalltalk.send(pkg, "_classes", []), "_do_", [(function(each){return smalltalk.send(self, "_removeClass_", [each]);})]);
  994. smalltalk.send(self, "_deletePackage_", [packageName]);
  995. return self;},
  996. args: ["packageName"],
  997. source: unescape('removePackage%3A%20packageName%0A%09%22Removes%20a%20package%20and%20all%20its%20classes.%22%0A%0A%09%7C%20pkg%20%7C%0A%09pkg%20%3A%3D%20self%20packageAt%3A%20packageName%20ifAbsent%3A%20%5Bself%20error%3A%20%27Missing%20package%3A%20%27%2C%20packageName%5D.%0A%09pkg%20classes%20do%3A%20%5B%3Aeach%20%7C%0A%20%20%20%20%20%20%20%20%09self%20removeClass%3A%20each%5D.%0A%09self%20deletePackage%3A%20packageName'),
  998. messageSends: ["packageAt:ifAbsent:", "error:", unescape("%2C"), "do:", "classes", "removeClass:", "deletePackage:"],
  999. referencedClasses: []
  1000. }),
  1001. smalltalk.Smalltalk);
  1002. smalltalk.addMethod(
  1003. unescape('_renamePackage_to_'),
  1004. smalltalk.method({
  1005. selector: unescape('renamePackage%3Ato%3A'),
  1006. category: 'packages',
  1007. fn: function (packageName, newName){
  1008. var self=this;
  1009. var pkg=nil;
  1010. pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]);
  1011. (($receiver = smalltalk.send(self, "_packageAt_", [newName])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Already exists a package called: ", "__comma", [newName])]);})() : nil;
  1012. smalltalk.packages[newName] = smalltalk.packages[packageName];
  1013. smalltalk.send(pkg, "_name_", [newName]);
  1014. smalltalk.send(self, "_deletePackage_", [packageName]);
  1015. return self;},
  1016. args: ["packageName", "newName"],
  1017. source: unescape('renamePackage%3A%20packageName%20to%3A%20newName%0A%09%22Rename%20a%20package.%22%0A%0A%09%7C%20pkg%20%7C%0A%09pkg%20%3A%3D%20self%20packageAt%3A%20packageName%20ifAbsent%3A%20%5Bself%20error%3A%20%27Missing%20package%3A%20%27%2C%20packageName%5D.%0A%09%28self%20packageAt%3A%20newName%29%20ifNotNil%3A%20%5Bself%20error%3A%20%27Already%20exists%20a%20package%20called%3A%20%27%2C%20newName%5D.%0A%09%3Csmalltalk.packages%5BnewName%5D%20%3D%20smalltalk.packages%5BpackageName%5D%3E.%0A%09pkg%20name%3A%20newName.%0A%09self%20deletePackage%3A%20packageName.'),
  1018. messageSends: ["packageAt:ifAbsent:", "error:", unescape("%2C"), "ifNotNil:", "packageAt:", "name:", "deletePackage:"],
  1019. referencedClasses: []
  1020. }),
  1021. smalltalk.Smalltalk);
  1022. smalltalk.addMethod(
  1023. unescape('_reservedWords'),
  1024. smalltalk.method({
  1025. selector: unescape('reservedWords'),
  1026. category: 'accessing',
  1027. fn: function (){
  1028. var self=this;
  1029. return self.reservedWords;
  1030. return self;},
  1031. args: [],
  1032. source: unescape('reservedWords%0A%09%22JavaScript%20reserved%20words%22%0A%09%3Creturn%20self.reservedWords%3E'),
  1033. messageSends: [],
  1034. referencedClasses: []
  1035. }),
  1036. smalltalk.Smalltalk);
  1037. smalltalk.addMethod(
  1038. unescape('_createPackage_properties_'),
  1039. smalltalk.method({
  1040. selector: unescape('createPackage%3Aproperties%3A'),
  1041. category: 'private',
  1042. fn: function (packageName, aDict){
  1043. var self=this;
  1044. var object=nil;
  1045. object = {};;
  1046. smalltalk.send(aDict, "_keysAndValuesDo_", [(function(key, value){return object[key] = value;})]);
  1047. return smalltalk.addPackage(packageName, object);
  1048. return self;},
  1049. args: ["packageName", "aDict"],
  1050. source: unescape('createPackage%3A%20packageName%20properties%3A%20aDict%0A%09%22Create%20and%20bind%20a%20new%20package%20with%20given%20name%20and%20return%20it.%22%0A%0A%09%7C%20object%20%7C%0A%09%3Cobject%20%3D%20%7B%7D%3B%3E.%0A%09aDict%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09%3Cobject%5Bkey%5D%20%3D%20value%3E.%0A%09%5D.%0A%20%20%20%20%20%20%20%3Creturn%20smalltalk.addPackage%28packageName%2C%20object%29%3E'),
  1051. messageSends: ["keysAndValuesDo:"],
  1052. referencedClasses: []
  1053. }),
  1054. smalltalk.Smalltalk);
  1055. smalltalk.addMethod(
  1056. unescape('_readJSObject_'),
  1057. smalltalk.method({
  1058. selector: unescape('readJSObject%3A'),
  1059. category: 'accessing',
  1060. fn: function (anObject){
  1061. var self=this;
  1062. return self.readJSObject(anObject);
  1063. return self;},
  1064. args: ["anObject"],
  1065. source: unescape('readJSObject%3A%20anObject%0A%09%3Creturn%20self.readJSObject%28anObject%29%3E'),
  1066. messageSends: [],
  1067. referencedClasses: []
  1068. }),
  1069. smalltalk.Smalltalk);
  1070. smalltalk.Smalltalk.klass.iVarNames = ['current'];
  1071. smalltalk.addMethod(
  1072. unescape('_current'),
  1073. smalltalk.method({
  1074. selector: unescape('current'),
  1075. category: 'accessing',
  1076. fn: function (){
  1077. var self=this;
  1078. return smalltalk;
  1079. return self;},
  1080. args: [],
  1081. source: unescape('current%0A%09%3Creturn%20smalltalk%3E'),
  1082. messageSends: [],
  1083. referencedClasses: []
  1084. }),
  1085. smalltalk.Smalltalk.klass);
  1086. smalltalk.addClass('Package', smalltalk.Object, ['commitPathJs', 'commitPathSt'], 'Kernel');
  1087. smalltalk.Package.comment=unescape('A%20Package%20is%20similar%20to%20a%20%22class%20category%22%20typically%20found%20in%20other%20Smalltalks%20like%20Pharo%20or%20Squeak.%20Amber%20does%20not%20have%20class%20categories%20anymore%2C%20it%20had%20in%20the%20beginning%20but%20now%20each%20class%20in%20the%20system%20knows%20which%20package%20it%20belongs%20to.%0A%0AA%20Package%20has%20a%20name%2C%20an%20Array%20of%20%22requires%22%2C%20a%20comment%20and%20a%20Dictionary%20with%20other%20optional%20key%20value%20attributes.%20A%20Package%20can%20also%20be%20queried%20for%20its%20classes%2C%20but%20it%20will%20then%20resort%20to%20a%20reverse%20scan%20of%20all%20classes%20to%20find%20them.%0APackages%20are%20manipulated%20through%20%22Smalltalk%20current%22%2C%20like%20for%20example%20finding%20one%20based%20on%20a%20name%3A%0A%0A%09Smalltalk%20current%20packageAt%3A%20%27Kernel%27%0A%0A...but%20you%20can%20also%20use%3A%0A%0A%09Package%20named%3A%20%27Kernel%27%0A%0AA%20Package%20differs%20slightly%20from%20a%20Monticello%20package%20which%20can%20span%20multiple%20class%20categories%20using%20a%20naming%20convention%20based%20on%20hyphenation.%20But%20just%20as%20in%20Monticello%20a%20Package%20supports%20%22class%20extensions%22%20so%20a%20Package%0Acan%20define%20behaviors%20in%20foreign%20classes%20using%20a%20naming%20convention%20for%20method%20categories%20where%20the%20category%20starts%20with%20an%20asterisk%20and%20then%20the%20name%20of%20the%20owning%20package%20follows.%20This%20can%20easily%20be%20seen%20in%20for%20example%20class%0AString%20where%20the%20method%20category%20%22*IDE%22%20defines%20%23inspectOn%3A%20which%20thus%20is%20a%20method%20belonging%20to%20the%20IDE%20package.')
  1088. smalltalk.addMethod(
  1089. unescape('_name'),
  1090. smalltalk.method({
  1091. selector: unescape('name'),
  1092. category: 'accessing',
  1093. fn: function (){
  1094. var self=this;
  1095. return self.pkgName;
  1096. return self;},
  1097. args: [],
  1098. source: unescape('name%0A%09%3Creturn%20self.pkgName%3E'),
  1099. messageSends: [],
  1100. referencedClasses: []
  1101. }),
  1102. smalltalk.Package);
  1103. smalltalk.addMethod(
  1104. unescape('_name_'),
  1105. smalltalk.method({
  1106. selector: unescape('name%3A'),
  1107. category: 'accessing',
  1108. fn: function (aString){
  1109. var self=this;
  1110. self.pkgName = aString;
  1111. return self;},
  1112. args: ["aString"],
  1113. source: unescape('name%3A%20aString%0A%09%3Cself.pkgName%20%3D%20aString%3E'),
  1114. messageSends: [],
  1115. referencedClasses: []
  1116. }),
  1117. smalltalk.Package);
  1118. smalltalk.addMethod(
  1119. unescape('_classes'),
  1120. smalltalk.method({
  1121. selector: unescape('classes'),
  1122. category: 'classes',
  1123. fn: function (){
  1124. var self=this;
  1125. return smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_select_", [(function(c){return smalltalk.send(smalltalk.send(c, "_package", []), "__eq_eq", [self]);})]);
  1126. return self;},
  1127. args: [],
  1128. source: unescape('classes%0A%09%22We%20need%20to%20do%20a%20reverse%20scan.%22%0A%09%5ESmalltalk%20current%20classes%20select%3A%20%5B%3Ac%20%7C%20c%20package%20%3D%3D%20self%5D'),
  1129. messageSends: ["select:", "classes", "current", unescape("%3D%3D"), "package"],
  1130. referencedClasses: ["Smalltalk"]
  1131. }),
  1132. smalltalk.Package);
  1133. smalltalk.addMethod(
  1134. unescape('_printString'),
  1135. smalltalk.method({
  1136. selector: unescape('printString'),
  1137. category: 'printing',
  1138. fn: function (){
  1139. var self=this;
  1140. return smalltalk.send(self, "_name", []);
  1141. return self;},
  1142. args: [],
  1143. source: unescape('printString%0A%09%5Eself%20name'),
  1144. messageSends: ["name"],
  1145. referencedClasses: []
  1146. }),
  1147. smalltalk.Package);
  1148. smalltalk.addMethod(
  1149. unescape('_dependencies'),
  1150. smalltalk.method({
  1151. selector: unescape('dependencies'),
  1152. category: 'accessing',
  1153. fn: function (){
  1154. var self=this;
  1155. return smalltalk.send(self, "_propertyAt_ifAbsent_", ["dependencies", (function(){return [];})]);
  1156. return self;},
  1157. args: [],
  1158. source: unescape('dependencies%0A%09%5Eself%20propertyAt%3A%20%27dependencies%27%20ifAbsent%3A%20%5B%23%28%29%5D'),
  1159. messageSends: ["propertyAt:ifAbsent:"],
  1160. referencedClasses: []
  1161. }),
  1162. smalltalk.Package);
  1163. smalltalk.addMethod(
  1164. unescape('_dependencies_'),
  1165. smalltalk.method({
  1166. selector: unescape('dependencies%3A'),
  1167. category: 'accessing',
  1168. fn: function (anArray){
  1169. var self=this;
  1170. return smalltalk.send(self, "_propertyAt_put_", ["dependencies", anArray]);
  1171. return self;},
  1172. args: ["anArray"],
  1173. source: unescape('dependencies%3A%20anArray%0A%09%5Eself%20propertyAt%3A%20%27dependencies%27%20put%3A%20anArray'),
  1174. messageSends: ["propertyAt:put:"],
  1175. referencedClasses: []
  1176. }),
  1177. smalltalk.Package);
  1178. smalltalk.addMethod(
  1179. unescape('_properties'),
  1180. smalltalk.method({
  1181. selector: unescape('properties'),
  1182. category: 'accessing',
  1183. fn: function (){
  1184. var self=this;
  1185. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_readJSObject_", [smalltalk.send(self, "_basicAt_", ["properties"])]);
  1186. return self;},
  1187. args: [],
  1188. source: unescape('properties%0A%09%5ESmalltalk%20current%20readJSObject%3A%20%28self%20basicAt%3A%20%27properties%27%29'),
  1189. messageSends: ["readJSObject:", "current", "basicAt:"],
  1190. referencedClasses: ["Smalltalk"]
  1191. }),
  1192. smalltalk.Package);
  1193. smalltalk.addMethod(
  1194. unescape('_propertiesAsJSON'),
  1195. smalltalk.method({
  1196. selector: unescape('propertiesAsJSON'),
  1197. category: 'private',
  1198. fn: function (){
  1199. var self=this;
  1200. return JSON.stringify(self.properties);
  1201. return self;},
  1202. args: [],
  1203. source: unescape('propertiesAsJSON%0A%09%3Creturn%20JSON.stringify%28self.properties%29%3E'),
  1204. messageSends: [],
  1205. referencedClasses: []
  1206. }),
  1207. smalltalk.Package);
  1208. smalltalk.addMethod(
  1209. unescape('_properties_'),
  1210. smalltalk.method({
  1211. selector: unescape('properties%3A'),
  1212. category: 'accessing',
  1213. fn: function (aDict){
  1214. var self=this;
  1215. var object=nil;
  1216. object = {};;
  1217. smalltalk.send(aDict, "_keysAndValuesDo_", [(function(key, value){return object[key] = value;})]);
  1218. return self.properties = object;
  1219. return self;},
  1220. args: ["aDict"],
  1221. source: unescape('properties%3A%20aDict%0A%09%22We%20store%20it%20as%20a%20javascript%20object.%22%0A%09%0A%09%7C%20object%20%7C%0A%09%3Cobject%20%3D%20%7B%7D%3B%3E.%0A%09aDict%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09%3Cobject%5Bkey%5D%20%3D%20value%3E.%0A%09%5D.%0A%09%3Creturn%20self.properties%20%3D%20object%3E'),
  1222. messageSends: ["keysAndValuesDo:"],
  1223. referencedClasses: []
  1224. }),
  1225. smalltalk.Package);
  1226. smalltalk.addMethod(
  1227. unescape('_jsProperties'),
  1228. smalltalk.method({
  1229. selector: unescape('jsProperties'),
  1230. category: 'private',
  1231. fn: function (){
  1232. var self=this;
  1233. return self.properties;
  1234. return self;},
  1235. args: [],
  1236. source: unescape('jsProperties%0A%09%3Creturn%20self.properties%3E'),
  1237. messageSends: [],
  1238. referencedClasses: []
  1239. }),
  1240. smalltalk.Package);
  1241. smalltalk.addMethod(
  1242. unescape('_jsProperties_'),
  1243. smalltalk.method({
  1244. selector: unescape('jsProperties%3A'),
  1245. category: 'private',
  1246. fn: function (aJSObject){
  1247. var self=this;
  1248. return self.properties = aJSObject;
  1249. return self;},
  1250. args: ["aJSObject"],
  1251. source: unescape('jsProperties%3A%20aJSObject%0A%09%3Creturn%20self.properties%20%3D%20aJSObject%3E'),
  1252. messageSends: [],
  1253. referencedClasses: []
  1254. }),
  1255. smalltalk.Package);
  1256. smalltalk.addMethod(
  1257. unescape('_propertyAt_'),
  1258. smalltalk.method({
  1259. selector: unescape('propertyAt%3A'),
  1260. category: 'properties',
  1261. fn: function (key){
  1262. var self=this;
  1263. return self.properties[key];
  1264. return self;},
  1265. args: ["key"],
  1266. source: unescape('propertyAt%3A%20key%0A%0A%09%3Creturn%20self.properties%5Bkey%5D%3E'),
  1267. messageSends: [],
  1268. referencedClasses: []
  1269. }),
  1270. smalltalk.Package);
  1271. smalltalk.addMethod(
  1272. unescape('_propertyAt_put_'),
  1273. smalltalk.method({
  1274. selector: unescape('propertyAt%3Aput%3A'),
  1275. category: 'properties',
  1276. fn: function (key, value){
  1277. var self=this;
  1278. return self.properties[key] = value;
  1279. return self;},
  1280. args: ["key", "value"],
  1281. source: unescape('propertyAt%3A%20key%20put%3A%20value%0A%0A%09%3Creturn%20self.properties%5Bkey%5D%20%3D%20value%3E'),
  1282. messageSends: [],
  1283. referencedClasses: []
  1284. }),
  1285. smalltalk.Package);
  1286. smalltalk.addMethod(
  1287. unescape('_propertyAt_ifAbsent_'),
  1288. smalltalk.method({
  1289. selector: unescape('propertyAt%3AifAbsent%3A'),
  1290. category: 'properties',
  1291. fn: function (key, block){
  1292. var self=this;
  1293. return (($receiver = smalltalk.send(self, "_propertyAt_", [key])) == nil || $receiver == undefined) ? (function(){return smalltalk.send(block, "_value", []);})() : $receiver;
  1294. return self;},
  1295. args: ["key", "block"],
  1296. source: unescape('propertyAt%3A%20key%20ifAbsent%3A%20block%0A%0A%09%5E%28self%20propertyAt%3A%20key%29%20ifNil%3A%20%5Bblock%20value%5D'),
  1297. messageSends: ["ifNil:", "propertyAt:", "value"],
  1298. referencedClasses: []
  1299. }),
  1300. smalltalk.Package);
  1301. smalltalk.addMethod(
  1302. unescape('_commitPathSt_'),
  1303. smalltalk.method({
  1304. selector: unescape('commitPathSt%3A'),
  1305. category: 'accessing',
  1306. fn: function (aString){
  1307. var self=this;
  1308. self['@commitPathSt']=aString;
  1309. return self;},
  1310. args: ["aString"],
  1311. source: unescape('commitPathSt%3A%20aString%0A%09commitPathSt%A0%3A%3D%20aString'),
  1312. messageSends: [],
  1313. referencedClasses: []
  1314. }),
  1315. smalltalk.Package);
  1316. smalltalk.addMethod(
  1317. unescape('_commitPathJs'),
  1318. smalltalk.method({
  1319. selector: unescape('commitPathJs'),
  1320. category: 'accessing',
  1321. fn: function (){
  1322. var self=this;
  1323. return (($receiver = self['@commitPathJs']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_defaultCommitPathJs", []);})() : $receiver;
  1324. return self;},
  1325. args: [],
  1326. source: unescape('commitPathJs%0A%09%5E%20commitPathJs%20ifNil%3A%20%5Bself%20class%20defaultCommitPathJs%5D'),
  1327. messageSends: ["ifNil:", "defaultCommitPathJs", "class"],
  1328. referencedClasses: []
  1329. }),
  1330. smalltalk.Package);
  1331. smalltalk.addMethod(
  1332. unescape('_commitPathSt'),
  1333. smalltalk.method({
  1334. selector: unescape('commitPathSt'),
  1335. category: 'accessing',
  1336. fn: function (){
  1337. var self=this;
  1338. return (($receiver = self['@commitPathSt']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_defaultCommitPathSt", []);})() : $receiver;
  1339. return self;},
  1340. args: [],
  1341. source: unescape('commitPathSt%0A%09%5E%20commitPathSt%20ifNil%3A%20%5Bself%20class%20defaultCommitPathSt%5D'),
  1342. messageSends: ["ifNil:", "defaultCommitPathSt", "class"],
  1343. referencedClasses: []
  1344. }),
  1345. smalltalk.Package);
  1346. smalltalk.addMethod(
  1347. unescape('_commitPathJs_'),
  1348. smalltalk.method({
  1349. selector: unescape('commitPathJs%3A'),
  1350. category: 'accessing',
  1351. fn: function (aString){
  1352. var self=this;
  1353. self['@commitPathJs']=aString;
  1354. return self;},
  1355. args: ["aString"],
  1356. source: unescape('commitPathJs%3A%20aString%0A%09commitPathJs%A0%3A%3D%20aString'),
  1357. messageSends: [],
  1358. referencedClasses: []
  1359. }),
  1360. smalltalk.Package);
  1361. smalltalk.Package.klass.iVarNames = ['defaultCommitPathJs','defaultCommitPathSt'];
  1362. smalltalk.addMethod(
  1363. unescape('_named_'),
  1364. smalltalk.method({
  1365. selector: unescape('named%3A'),
  1366. category: 'accessing',
  1367. fn: function (aPackageName){
  1368. var self=this;
  1369. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_", [aPackageName]);
  1370. return self;},
  1371. args: ["aPackageName"],
  1372. source: unescape('named%3A%20aPackageName%0A%0A%09%5ESmalltalk%20current%20packageAt%3A%20aPackageName'),
  1373. messageSends: ["packageAt:", "current"],
  1374. referencedClasses: ["Smalltalk"]
  1375. }),
  1376. smalltalk.Package.klass);
  1377. smalltalk.addMethod(
  1378. unescape('_named_ifAbsent_'),
  1379. smalltalk.method({
  1380. selector: unescape('named%3AifAbsent%3A'),
  1381. category: 'accessing',
  1382. fn: function (aPackageName, aBlock){
  1383. var self=this;
  1384. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_ifAbsent_", [aPackageName, aBlock]);
  1385. return self;},
  1386. args: ["aPackageName", "aBlock"],
  1387. source: unescape('named%3A%20aPackageName%20ifAbsent%3A%20aBlock%0A%0A%09%5ESmalltalk%20current%20packageAt%3A%20aPackageName%20ifAbsent%3A%20aBlock'),
  1388. messageSends: ["packageAt:ifAbsent:", "current"],
  1389. referencedClasses: ["Smalltalk"]
  1390. }),
  1391. smalltalk.Package.klass);
  1392. smalltalk.addMethod(
  1393. unescape('_defaultCommitPathSt'),
  1394. smalltalk.method({
  1395. selector: unescape('defaultCommitPathSt'),
  1396. category: 'accessing',
  1397. fn: function (){
  1398. var self=this;
  1399. return (($receiver = self['@defaultCommitPathSt']) == nil || $receiver == undefined) ? (function(){return self['@defaultCommitPathSt']="st";})() : $receiver;
  1400. return self;},
  1401. args: [],
  1402. source: unescape('defaultCommitPathSt%0A%09%5E%20defaultCommitPathSt%20ifNil%3A%20%5B%20defaultCommitPathSt%20%3A%3D%20%27st%27%5D'),
  1403. messageSends: ["ifNil:"],
  1404. referencedClasses: []
  1405. }),
  1406. smalltalk.Package.klass);
  1407. smalltalk.addMethod(
  1408. unescape('_defaultCommitPathJs'),
  1409. smalltalk.method({
  1410. selector: unescape('defaultCommitPathJs'),
  1411. category: 'accessing',
  1412. fn: function (){
  1413. var self=this;
  1414. return (($receiver = self['@defaultCommitPathJs']) == nil || $receiver == undefined) ? (function(){return self['@defaultCommitPathJs']="js";})() : $receiver;
  1415. return self;},
  1416. args: [],
  1417. source: unescape('defaultCommitPathJs%0A%09%5E%20defaultCommitPathJs%20ifNil%3A%20%5B%20defaultCommitPathJs%20%3A%3D%20%27js%27%5D'),
  1418. messageSends: ["ifNil:"],
  1419. referencedClasses: []
  1420. }),
  1421. smalltalk.Package.klass);
  1422. smalltalk.addMethod(
  1423. unescape('_defaultCommitPathSt_'),
  1424. smalltalk.method({
  1425. selector: unescape('defaultCommitPathSt%3A'),
  1426. category: 'accessing',
  1427. fn: function (aString){
  1428. var self=this;
  1429. self['@defaultCommitPathSt']=aString;
  1430. return self;},
  1431. args: ["aString"],
  1432. source: unescape('defaultCommitPathSt%3A%20aString%0A%09defaultCommitPathSt%20%3A%3D%20aString'),
  1433. messageSends: [],
  1434. referencedClasses: []
  1435. }),
  1436. smalltalk.Package.klass);
  1437. smalltalk.addMethod(
  1438. unescape('_defaultCommitPathJs_'),
  1439. smalltalk.method({
  1440. selector: unescape('defaultCommitPathJs%3A'),
  1441. category: 'accessing',
  1442. fn: function (aString){
  1443. var self=this;
  1444. self['@defaultCommitPathJs']=aString;
  1445. return self;},
  1446. args: ["aString"],
  1447. source: unescape('defaultCommitPathJs%3A%20aString%0A%09defaultCommitPathJs%20%3A%3D%20aString'),
  1448. messageSends: [],
  1449. referencedClasses: []
  1450. }),
  1451. smalltalk.Package.klass);
  1452. smalltalk.addMethod(
  1453. unescape('_resetCommitPaths'),
  1454. smalltalk.method({
  1455. selector: unescape('resetCommitPaths'),
  1456. category: 'reset',
  1457. fn: function (){
  1458. var self=this;
  1459. self['@defaultCommitPathJs']=nil;
  1460. self['@defaultCommitPathSt']=nil;
  1461. return self;},
  1462. args: [],
  1463. source: unescape('resetCommitPaths%0A%09defaultCommitPathJs%20%3A%3D%20nil.%0A%09defaultCommitPathSt%20%3A%3D%20nil.'),
  1464. messageSends: [],
  1465. referencedClasses: []
  1466. }),
  1467. smalltalk.Package.klass);
  1468. smalltalk.addClass('Behavior', smalltalk.Object, [], 'Kernel');
  1469. smalltalk.addMethod(
  1470. unescape('_new'),
  1471. smalltalk.method({
  1472. selector: unescape('new'),
  1473. category: 'instance creation',
  1474. fn: function (){
  1475. var self=this;
  1476. return smalltalk.send(smalltalk.send(self, "_basicNew", []), "_initialize", []);
  1477. return self;},
  1478. args: [],
  1479. source: unescape('new%0A%09%5Eself%20basicNew%20initialize'),
  1480. messageSends: ["initialize", "basicNew"],
  1481. referencedClasses: []
  1482. }),
  1483. smalltalk.Behavior);
  1484. smalltalk.addMethod(
  1485. unescape('_basicNew'),
  1486. smalltalk.method({
  1487. selector: unescape('basicNew'),
  1488. category: 'instance creation',
  1489. fn: function (){
  1490. var self=this;
  1491. return new self.fn();
  1492. return self;},
  1493. args: [],
  1494. source: unescape('basicNew%0A%09%3Creturn%20new%20self.fn%28%29%3E'),
  1495. messageSends: [],
  1496. referencedClasses: []
  1497. }),
  1498. smalltalk.Behavior);
  1499. smalltalk.addMethod(
  1500. unescape('_name'),
  1501. smalltalk.method({
  1502. selector: unescape('name'),
  1503. category: 'accessing',
  1504. fn: function (){
  1505. var self=this;
  1506. return self.className || nil;
  1507. return self;},
  1508. args: [],
  1509. source: unescape('name%0A%09%3Creturn%20self.className%20%7C%7C%20nil%3E'),
  1510. messageSends: [],
  1511. referencedClasses: []
  1512. }),
  1513. smalltalk.Behavior);
  1514. smalltalk.addMethod(
  1515. unescape('_superclass'),
  1516. smalltalk.method({
  1517. selector: unescape('superclass'),
  1518. category: 'accessing',
  1519. fn: function (){
  1520. var self=this;
  1521. return self.superclass || nil;
  1522. return self;},
  1523. args: [],
  1524. source: unescape('superclass%0A%09%3Creturn%20self.superclass%20%7C%7C%20nil%3E'),
  1525. messageSends: [],
  1526. referencedClasses: []
  1527. }),
  1528. smalltalk.Behavior);
  1529. smalltalk.addMethod(
  1530. unescape('_subclasses'),
  1531. smalltalk.method({
  1532. selector: unescape('subclasses'),
  1533. category: 'accessing',
  1534. fn: function (){
  1535. var self=this;
  1536. return smalltalk.subclasses(self);
  1537. return self;},
  1538. args: [],
  1539. source: unescape('subclasses%0A%09%3Creturn%20smalltalk.subclasses%28self%29%3E'),
  1540. messageSends: [],
  1541. referencedClasses: []
  1542. }),
  1543. smalltalk.Behavior);
  1544. smalltalk.addMethod(
  1545. unescape('_allSubclasses'),
  1546. smalltalk.method({
  1547. selector: unescape('allSubclasses'),
  1548. category: 'accessing',
  1549. fn: function (){
  1550. var self=this;
  1551. var result=nil;
  1552. result=smalltalk.send(self, "_subclasses", []);
  1553. smalltalk.send(smalltalk.send(self, "_subclasses", []), "_do_", [(function(each){return smalltalk.send(result, "_addAll_", [smalltalk.send(each, "_allSubclasses", [])]);})]);
  1554. return result;
  1555. return self;},
  1556. args: [],
  1557. source: unescape('allSubclasses%0A%09%7C%20result%20%7C%0A%09result%20%3A%3D%20self%20subclasses.%0A%09self%20subclasses%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20result%20addAll%3A%20each%20allSubclasses%5D.%0A%09%5Eresult'),
  1558. messageSends: ["subclasses", "do:", "addAll:", "allSubclasses"],
  1559. referencedClasses: []
  1560. }),
  1561. smalltalk.Behavior);
  1562. smalltalk.addMethod(
  1563. unescape('_withAllSubclasses'),
  1564. smalltalk.method({
  1565. selector: unescape('withAllSubclasses'),
  1566. category: 'accessing',
  1567. fn: function (){
  1568. var self=this;
  1569. return (function($rec){smalltalk.send($rec, "_addAll_", [smalltalk.send(self, "_allSubclasses", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.Array || Array), "_with_", [self]));
  1570. return self;},
  1571. args: [],
  1572. source: unescape('withAllSubclasses%0A%09%5E%28Array%20with%3A%20self%29%20addAll%3A%20self%20allSubclasses%3B%20yourself'),
  1573. messageSends: ["addAll:", "allSubclasses", "yourself", "with:"],
  1574. referencedClasses: ["Array"]
  1575. }),
  1576. smalltalk.Behavior);
  1577. smalltalk.addMethod(
  1578. unescape('_prototype'),
  1579. smalltalk.method({
  1580. selector: unescape('prototype'),
  1581. category: 'accessing',
  1582. fn: function (){
  1583. var self=this;
  1584. return self.fn.prototype;
  1585. return self;},
  1586. args: [],
  1587. source: unescape('prototype%0A%09%3Creturn%20self.fn.prototype%3E'),
  1588. messageSends: [],
  1589. referencedClasses: []
  1590. }),
  1591. smalltalk.Behavior);
  1592. smalltalk.addMethod(
  1593. unescape('_methodDictionary'),
  1594. smalltalk.method({
  1595. selector: unescape('methodDictionary'),
  1596. category: 'accessing',
  1597. fn: function (){
  1598. var self=this;
  1599. var dict = smalltalk.Dictionary._new();
  1600. var methods = self.fn.prototype.methods;
  1601. for(var i in methods) {
  1602. if(methods[i].selector) {
  1603. dict._at_put_(methods[i].selector, methods[i]);
  1604. }
  1605. };
  1606. return dict;
  1607. return self;},
  1608. args: [],
  1609. source: unescape('methodDictionary%0A%09%3Cvar%20dict%20%3D%20smalltalk.Dictionary._new%28%29%3B%0A%09var%20methods%20%3D%20self.fn.prototype.methods%3B%0A%09for%28var%20i%20in%20methods%29%20%7B%0A%09%09if%28methods%5Bi%5D.selector%29%20%7B%0A%09%09%09dict._at_put_%28methods%5Bi%5D.selector%2C%20methods%5Bi%5D%29%3B%0A%09%09%7D%0A%09%7D%3B%0A%09return%20dict%3E'),
  1610. messageSends: [],
  1611. referencedClasses: []
  1612. }),
  1613. smalltalk.Behavior);
  1614. smalltalk.addMethod(
  1615. unescape('_methodsFor_'),
  1616. smalltalk.method({
  1617. selector: unescape('methodsFor%3A'),
  1618. category: 'accessing',
  1619. fn: function (aString){
  1620. var self=this;
  1621. return (function($rec){smalltalk.send($rec, "_class_category_", [self, aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.ClassCategoryReader || ClassCategoryReader), "_new", []));
  1622. return self;},
  1623. args: ["aString"],
  1624. source: unescape('methodsFor%3A%20aString%0A%09%5EClassCategoryReader%20new%0A%09%20%20%20%20class%3A%20self%20category%3A%20aString%3B%0A%09%20%20%20%20yourself'),
  1625. messageSends: ["class:category:", "yourself", "new"],
  1626. referencedClasses: ["ClassCategoryReader"]
  1627. }),
  1628. smalltalk.Behavior);
  1629. smalltalk.addMethod(
  1630. unescape('_addCompiledMethod_'),
  1631. smalltalk.method({
  1632. selector: unescape('addCompiledMethod%3A'),
  1633. category: 'accessing',
  1634. fn: function (aMethod){
  1635. var self=this;
  1636. smalltalk.addMethod(aMethod.selector._asSelector(), aMethod, self);
  1637. return self;},
  1638. args: ["aMethod"],
  1639. source: unescape('addCompiledMethod%3A%20aMethod%0A%09%3Csmalltalk.addMethod%28aMethod.selector._asSelector%28%29%2C%20aMethod%2C%20self%29%3E'),
  1640. messageSends: [],
  1641. referencedClasses: []
  1642. }),
  1643. smalltalk.Behavior);
  1644. smalltalk.addMethod(
  1645. unescape('_instanceVariableNames'),
  1646. smalltalk.method({
  1647. selector: unescape('instanceVariableNames'),
  1648. category: 'accessing',
  1649. fn: function (){
  1650. var self=this;
  1651. return self.iVarNames;
  1652. return self;},
  1653. args: [],
  1654. source: unescape('instanceVariableNames%0A%09%3Creturn%20self.iVarNames%3E'),
  1655. messageSends: [],
  1656. referencedClasses: []
  1657. }),
  1658. smalltalk.Behavior);
  1659. smalltalk.addMethod(
  1660. unescape('_comment'),
  1661. smalltalk.method({
  1662. selector: unescape('comment'),
  1663. category: 'accessing',
  1664. fn: function (){
  1665. var self=this;
  1666. return (($receiver = smalltalk.send(self, "_basicAt_", ["comment"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  1667. return self;},
  1668. args: [],
  1669. source: unescape('comment%0A%20%20%20%20%5E%28self%20basicAt%3A%20%27comment%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1670. messageSends: ["ifNil:", "basicAt:"],
  1671. referencedClasses: []
  1672. }),
  1673. smalltalk.Behavior);
  1674. smalltalk.addMethod(
  1675. unescape('_comment_'),
  1676. smalltalk.method({
  1677. selector: unescape('comment%3A'),
  1678. category: 'accessing',
  1679. fn: function (aString){
  1680. var self=this;
  1681. smalltalk.send(self, "_basicAt_put_", ["comment", aString]);
  1682. return self;},
  1683. args: ["aString"],
  1684. source: unescape('comment%3A%20aString%0A%20%20%20%20self%20basicAt%3A%20%27comment%27%20put%3A%20aString'),
  1685. messageSends: ["basicAt:put:"],
  1686. referencedClasses: []
  1687. }),
  1688. smalltalk.Behavior);
  1689. smalltalk.addMethod(
  1690. unescape('_commentStamp'),
  1691. smalltalk.method({
  1692. selector: unescape('commentStamp'),
  1693. category: 'accessing',
  1694. fn: function (){
  1695. var self=this;
  1696. return (function($rec){smalltalk.send($rec, "_class_", [self]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.ClassCommentReader || ClassCommentReader), "_new", []));
  1697. return self;},
  1698. args: [],
  1699. source: unescape('commentStamp%0A%20%20%20%20%5EClassCommentReader%20new%0A%09class%3A%20self%3B%0A%09yourself'),
  1700. messageSends: ["class:", "yourself", "new"],
  1701. referencedClasses: ["ClassCommentReader"]
  1702. }),
  1703. smalltalk.Behavior);
  1704. smalltalk.addMethod(
  1705. unescape('_removeCompiledMethod_'),
  1706. smalltalk.method({
  1707. selector: unescape('removeCompiledMethod%3A'),
  1708. category: 'accessing',
  1709. fn: function (aMethod){
  1710. var self=this;
  1711. delete self.fn.prototype[aMethod.selector._asSelector()];
  1712. delete self.fn.prototype.methods[aMethod.selector];
  1713. smalltalk.init(self);;
  1714. return self;},
  1715. args: ["aMethod"],
  1716. source: unescape('removeCompiledMethod%3A%20aMethod%0A%09%3Cdelete%20self.fn.prototype%5BaMethod.selector._asSelector%28%29%5D%3B%0A%09delete%20self.fn.prototype.methods%5BaMethod.selector%5D%3B%0A%09smalltalk.init%28self%29%3B%3E'),
  1717. messageSends: [],
  1718. referencedClasses: []
  1719. }),
  1720. smalltalk.Behavior);
  1721. smalltalk.addMethod(
  1722. unescape('_inheritsFrom_'),
  1723. smalltalk.method({
  1724. selector: unescape('inheritsFrom%3A'),
  1725. category: 'instance creation',
  1726. fn: function (aClass){
  1727. var self=this;
  1728. return smalltalk.send(smalltalk.send(aClass, "_allSubclasses", []), "_includes_", [self]);
  1729. return self;},
  1730. args: ["aClass"],
  1731. source: unescape('inheritsFrom%3A%20aClass%0A%09%5EaClass%20allSubclasses%20includes%3A%20self'),
  1732. messageSends: ["includes:", "allSubclasses"],
  1733. referencedClasses: []
  1734. }),
  1735. smalltalk.Behavior);
  1736. smalltalk.addMethod(
  1737. unescape('_protocols'),
  1738. smalltalk.method({
  1739. selector: unescape('protocols'),
  1740. category: 'accessing',
  1741. fn: function (){
  1742. var self=this;
  1743. var protocols=nil;
  1744. protocols=smalltalk.send((smalltalk.Array || Array), "_new", []);
  1745. smalltalk.send(smalltalk.send(self, "_methodDictionary", []), "_do_", [(function(each){return ((($receiver = smalltalk.send(protocols, "_includes_", [smalltalk.send(each, "_category", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(protocols, "_add_", [smalltalk.send(each, "_category", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(protocols, "_add_", [smalltalk.send(each, "_category", [])]);})]));})]);
  1746. return smalltalk.send(protocols, "_sort", []);
  1747. return self;},
  1748. args: [],
  1749. source: unescape('protocols%0A%20%20%20%20%7C%20protocols%20%7C%0A%20%20%20%20protocols%20%3A%3D%20Array%20new.%0A%20%20%20%20self%20methodDictionary%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20%28protocols%20includes%3A%20each%20category%29%20ifFalse%3A%20%5B%0A%09%09protocols%20add%3A%20each%20category%5D%5D.%0A%20%20%20%20%5Eprotocols%20sort'),
  1750. messageSends: ["new", "do:", "methodDictionary", "ifFalse:", "includes:", "category", "add:", "sort"],
  1751. referencedClasses: ["Array"]
  1752. }),
  1753. smalltalk.Behavior);
  1754. smalltalk.addMethod(
  1755. unescape('_protocolsDo_'),
  1756. smalltalk.method({
  1757. selector: unescape('protocolsDo%3A'),
  1758. category: 'accessing',
  1759. fn: function (aBlock){
  1760. var self=this;
  1761. var methodsByCategory=nil;
  1762. methodsByCategory=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  1763. smalltalk.send(smalltalk.send(smalltalk.send(self, "_methodDictionary", []), "_values", []), "_do_", [(function(m){return smalltalk.send(smalltalk.send(methodsByCategory, "_at_ifAbsentPut_", [smalltalk.send(m, "_category", []), (function(){return smalltalk.send((smalltalk.Array || Array), "_new", []);})]), "_add_", [m]);})]);
  1764. smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(category){return smalltalk.send(aBlock, "_value_value_", [category, smalltalk.send(methodsByCategory, "_at_", [category])]);})]);
  1765. return self;},
  1766. args: ["aBlock"],
  1767. source: unescape('protocolsDo%3A%20aBlock%0A%09%22Execute%20aBlock%20for%20each%20method%20category%20with%0A%09its%20collection%20of%20methods%20in%20the%20sort%20order%20of%20category%20name.%22%0A%0A%09%7C%20methodsByCategory%20%7C%0A%09methodsByCategory%20%3A%3D%20Dictionary%20new.%0A%09self%20methodDictionary%20values%20do%3A%20%5B%3Am%20%7C%0A%09%09%28methodsByCategory%20at%3A%20m%20category%20ifAbsentPut%3A%20%5BArray%20new%5D%29%0A%20%09%09%09add%3A%20m%5D.%20%0A%09self%20protocols%20do%3A%20%5B%3Acategory%20%7C%0A%09%09aBlock%20value%3A%20category%20value%3A%20%28methodsByCategory%20at%3A%20category%29%5D'),
  1768. messageSends: ["new", "do:", "values", "methodDictionary", "add:", "at:ifAbsentPut:", "category", "protocols", "value:value:", "at:"],
  1769. referencedClasses: ["Dictionary", "Array"]
  1770. }),
  1771. smalltalk.Behavior);
  1772. smalltalk.addMethod(
  1773. unescape('_allInstanceVariableNames'),
  1774. smalltalk.method({
  1775. selector: unescape('allInstanceVariableNames'),
  1776. category: 'accessing',
  1777. fn: function (){
  1778. var self=this;
  1779. var result=nil;
  1780. result=smalltalk.send(smalltalk.send(self, "_instanceVariableNames", []), "_copy", []);
  1781. (($receiver = smalltalk.send(self, "_superclass", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(result, "_addAll_", [smalltalk.send(smalltalk.send(self, "_superclass", []), "_allInstanceVariableNames", [])]);})() : nil;
  1782. return result;
  1783. return self;},
  1784. args: [],
  1785. source: unescape('allInstanceVariableNames%0A%09%7C%20result%20%7C%0A%09result%20%3A%3D%20self%20instanceVariableNames%20copy.%0A%09self%20superclass%20ifNotNil%3A%20%5B%0A%09%20%20%20%20result%20addAll%3A%20self%20superclass%20allInstanceVariableNames%5D.%0A%09%5Eresult'),
  1786. messageSends: ["copy", "instanceVariableNames", "ifNotNil:", "superclass", "addAll:", "allInstanceVariableNames"],
  1787. referencedClasses: []
  1788. }),
  1789. smalltalk.Behavior);
  1790. smalltalk.addMethod(
  1791. unescape('_methodAt_'),
  1792. smalltalk.method({
  1793. selector: unescape('methodAt%3A'),
  1794. category: 'accessing',
  1795. fn: function (aString){
  1796. var self=this;
  1797. return smalltalk.methods(self)[aString];
  1798. return self;},
  1799. args: ["aString"],
  1800. source: unescape('methodAt%3A%20aString%0A%09%3Creturn%20smalltalk.methods%28self%29%5BaString%5D%3E'),
  1801. messageSends: [],
  1802. referencedClasses: []
  1803. }),
  1804. smalltalk.Behavior);
  1805. smalltalk.addMethod(
  1806. unescape('_methodsFor_stamp_'),
  1807. smalltalk.method({
  1808. selector: unescape('methodsFor%3Astamp%3A'),
  1809. category: 'accessing',
  1810. fn: function (aString, aStamp){
  1811. var self=this;
  1812. return smalltalk.send(self, "_methodsFor_", [aString]);
  1813. return self;},
  1814. args: ["aString", "aStamp"],
  1815. source: unescape('methodsFor%3A%20aString%20stamp%3A%20aStamp%0A%09%22Added%20for%20compatibility%2C%20right%20now%20ignores%20stamp.%22%0A%09%5Eself%20methodsFor%3A%20aString'),
  1816. messageSends: ["methodsFor:"],
  1817. referencedClasses: []
  1818. }),
  1819. smalltalk.Behavior);
  1820. smalltalk.addMethod(
  1821. unescape('_commentStamp_prior_'),
  1822. smalltalk.method({
  1823. selector: unescape('commentStamp%3Aprior%3A'),
  1824. category: 'accessing',
  1825. fn: function (aStamp, prior){
  1826. var self=this;
  1827. return smalltalk.send(self, "_commentStamp", []);
  1828. return self;},
  1829. args: ["aStamp", "prior"],
  1830. source: unescape('commentStamp%3A%20aStamp%20prior%3A%20prior%0A%20%20%20%20%20%20%20%20%5Eself%20commentStamp'),
  1831. messageSends: ["commentStamp"],
  1832. referencedClasses: []
  1833. }),
  1834. smalltalk.Behavior);
  1835. smalltalk.addMethod(
  1836. unescape('_compile_'),
  1837. smalltalk.method({
  1838. selector: unescape('compile%3A'),
  1839. category: 'compiling',
  1840. fn: function (aString){
  1841. var self=this;
  1842. smalltalk.send(self, "_compile_category_", [aString, ""]);
  1843. return self;},
  1844. args: ["aString"],
  1845. source: unescape('compile%3A%20aString%0A%09self%20compile%3A%20aString%20category%3A%20%27%27'),
  1846. messageSends: ["compile:category:"],
  1847. referencedClasses: []
  1848. }),
  1849. smalltalk.Behavior);
  1850. smalltalk.addMethod(
  1851. unescape('_compile_category_'),
  1852. smalltalk.method({
  1853. selector: unescape('compile%3Acategory%3A'),
  1854. category: 'compiling',
  1855. fn: function (aString, anotherString){
  1856. var self=this;
  1857. var method=nil;
  1858. method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self]);
  1859. smalltalk.send(method, "_category_", [anotherString]);
  1860. smalltalk.send(self, "_addCompiledMethod_", [method]);
  1861. return self;},
  1862. args: ["aString", "anotherString"],
  1863. source: unescape('compile%3A%20aString%20category%3A%20anotherString%0A%09%7C%20method%20%7C%0A%09method%20%3A%3D%20Compiler%20new%20load%3A%20aString%20forClass%3A%20self.%0A%09method%20category%3A%20anotherString.%0A%09self%20addCompiledMethod%3A%20method'),
  1864. messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
  1865. referencedClasses: ["Compiler"]
  1866. }),
  1867. smalltalk.Behavior);
  1868. smalltalk.addClass('Class', smalltalk.Behavior, [], 'Kernel');
  1869. smalltalk.addMethod(
  1870. unescape('_category'),
  1871. smalltalk.method({
  1872. selector: unescape('category'),
  1873. category: 'accessing',
  1874. fn: function (){
  1875. var self=this;
  1876. return (($receiver = smalltalk.send(self, "_package", [])) == nil || $receiver == undefined) ? (function(){return "Unclassified";})() : (function(){return smalltalk.send(smalltalk.send(self, "_package", []), "_name", []);})();
  1877. return self;},
  1878. args: [],
  1879. source: unescape('category%0A%09%5Eself%20package%20ifNil%3A%20%5B%27Unclassified%27%5D%20ifNotNil%3A%20%5Bself%20package%20name%5D'),
  1880. messageSends: ["ifNil:ifNotNil:", "package", "name"],
  1881. referencedClasses: []
  1882. }),
  1883. smalltalk.Class);
  1884. smalltalk.addMethod(
  1885. unescape('_subclass_instanceVariableNames_'),
  1886. smalltalk.method({
  1887. selector: unescape('subclass%3AinstanceVariableNames%3A'),
  1888. category: 'class creation',
  1889. fn: function (aString, anotherString){
  1890. var self=this;
  1891. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
  1892. return self;},
  1893. args: ["aString", "anotherString"],
  1894. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%0A%09%22Kept%20for%20compatibility.%22%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%20package%3A%20nil'),
  1895. messageSends: ["subclass:instanceVariableNames:package:"],
  1896. referencedClasses: []
  1897. }),
  1898. smalltalk.Class);
  1899. smalltalk.addMethod(
  1900. unescape('_subclass_instanceVariableNames_category_'),
  1901. smalltalk.method({
  1902. selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
  1903. category: 'class creation',
  1904. fn: function (aString, aString2, aString3){
  1905. var self=this;
  1906. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  1907. return self;},
  1908. args: ["aString", "aString2", "aString3"],
  1909. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20category%3A%20aString3%0A%09%22Kept%20for%20compatibility.%22%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  1910. messageSends: ["subclass:instanceVariableNames:package:"],
  1911. referencedClasses: []
  1912. }),
  1913. smalltalk.Class);
  1914. smalltalk.addMethod(
  1915. unescape('_isClass'),
  1916. smalltalk.method({
  1917. selector: unescape('isClass'),
  1918. category: 'testing',
  1919. fn: function (){
  1920. var self=this;
  1921. return true;
  1922. return self;},
  1923. args: [],
  1924. source: unescape('isClass%0A%09%5Etrue'),
  1925. messageSends: [],
  1926. referencedClasses: []
  1927. }),
  1928. smalltalk.Class);
  1929. smalltalk.addMethod(
  1930. unescape('_printString'),
  1931. smalltalk.method({
  1932. selector: unescape('printString'),
  1933. category: 'printing',
  1934. fn: function (){
  1935. var self=this;
  1936. return smalltalk.send(self, "_name", []);
  1937. return self;},
  1938. args: [],
  1939. source: unescape('printString%0A%09%5Eself%20name'),
  1940. messageSends: ["name"],
  1941. referencedClasses: []
  1942. }),
  1943. smalltalk.Class);
  1944. smalltalk.addMethod(
  1945. unescape('_rename_'),
  1946. smalltalk.method({
  1947. selector: unescape('rename%3A'),
  1948. category: 'accessing',
  1949. fn: function (aString){
  1950. var self=this;
  1951. smalltalk[aString] = self;
  1952. delete smalltalk[self.className];
  1953. self.className = aString;
  1954. ;
  1955. return self;},
  1956. args: ["aString"],
  1957. source: unescape('rename%3A%20aString%0A%09%3C%0A%09%09smalltalk%5BaString%5D%20%3D%20self%3B%0A%09%09delete%20smalltalk%5Bself.className%5D%3B%0A%09%09self.className%20%3D%20aString%3B%0A%09%3E'),
  1958. messageSends: [],
  1959. referencedClasses: []
  1960. }),
  1961. smalltalk.Class);
  1962. smalltalk.addMethod(
  1963. unescape('_subclass_instanceVariableNames_classVariableNames_poolDictionaries_category_'),
  1964. smalltalk.method({
  1965. selector: unescape('subclass%3AinstanceVariableNames%3AclassVariableNames%3ApoolDictionaries%3Acategory%3A'),
  1966. category: 'class creation',
  1967. fn: function (aString, aString2, classVars, pools, aString3){
  1968. var self=this;
  1969. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  1970. return self;},
  1971. args: ["aString", "aString2", "classVars", "pools", "aString3"],
  1972. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20classVariableNames%3A%20classVars%20poolDictionaries%3A%20pools%20category%3A%20aString3%0A%09%22Just%20ignore%20class%20variables%20and%20pools.%20Added%20for%20compatibility.%22%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  1973. messageSends: ["subclass:instanceVariableNames:package:"],
  1974. referencedClasses: []
  1975. }),
  1976. smalltalk.Class);
  1977. smalltalk.addMethod(
  1978. unescape('_package'),
  1979. smalltalk.method({
  1980. selector: unescape('package'),
  1981. category: 'accessing',
  1982. fn: function (){
  1983. var self=this;
  1984. return self.pkg;
  1985. return self;},
  1986. args: [],
  1987. source: unescape('package%0A%09%3Creturn%20self.pkg%3E'),
  1988. messageSends: [],
  1989. referencedClasses: []
  1990. }),
  1991. smalltalk.Class);
  1992. smalltalk.addMethod(
  1993. unescape('_package_'),
  1994. smalltalk.method({
  1995. selector: unescape('package%3A'),
  1996. category: 'accessing',
  1997. fn: function (aPackage){
  1998. var self=this;
  1999. self.pkg = aPackage;
  2000. return self;},
  2001. args: ["aPackage"],
  2002. source: unescape('package%3A%20aPackage%0A%09%3Cself.pkg%20%3D%20aPackage%3E'),
  2003. messageSends: [],
  2004. referencedClasses: []
  2005. }),
  2006. smalltalk.Class);
  2007. smalltalk.addMethod(
  2008. unescape('_subclass_instanceVariableNames_package_'),
  2009. smalltalk.method({
  2010. selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
  2011. category: 'class creation',
  2012. fn: function (aString, aString2, aString3){
  2013. var self=this;
  2014. return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
  2015. return self;},
  2016. args: ["aString", "aString2", "aString3"],
  2017. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3%0A%09%5EClassBuilder%20new%0A%09%20%20%20%20superclass%3A%20self%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  2018. messageSends: ["superclass:subclass:instanceVariableNames:package:", "new"],
  2019. referencedClasses: ["ClassBuilder"]
  2020. }),
  2021. smalltalk.Class);
  2022. smalltalk.addClass('Metaclass', smalltalk.Behavior, [], 'Kernel');
  2023. smalltalk.addMethod(
  2024. unescape('_instanceClass'),
  2025. smalltalk.method({
  2026. selector: unescape('instanceClass'),
  2027. category: 'accessing',
  2028. fn: function (){
  2029. var self=this;
  2030. return self.instanceClass;
  2031. return self;},
  2032. args: [],
  2033. source: unescape('instanceClass%0A%09%3Creturn%20self.instanceClass%3E'),
  2034. messageSends: [],
  2035. referencedClasses: []
  2036. }),
  2037. smalltalk.Metaclass);
  2038. smalltalk.addMethod(
  2039. unescape('_instanceVariableNames_'),
  2040. smalltalk.method({
  2041. selector: unescape('instanceVariableNames%3A'),
  2042. category: 'accessing',
  2043. fn: function (aCollection){
  2044. var self=this;
  2045. smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_class_instanceVariableNames_", [self, aCollection]);
  2046. return self;},
  2047. args: ["aCollection"],
  2048. source: unescape('instanceVariableNames%3A%20aCollection%0A%09ClassBuilder%20new%0A%09%20%20%20%20class%3A%20self%20instanceVariableNames%3A%20aCollection'),
  2049. messageSends: ["class:instanceVariableNames:", "new"],
  2050. referencedClasses: ["ClassBuilder"]
  2051. }),
  2052. smalltalk.Metaclass);
  2053. smalltalk.addMethod(
  2054. unescape('_isMetaclass'),
  2055. smalltalk.method({
  2056. selector: unescape('isMetaclass'),
  2057. category: 'testing',
  2058. fn: function (){
  2059. var self=this;
  2060. return true;
  2061. return self;},
  2062. args: [],
  2063. source: unescape('isMetaclass%0A%09%5Etrue'),
  2064. messageSends: [],
  2065. referencedClasses: []
  2066. }),
  2067. smalltalk.Metaclass);
  2068. smalltalk.addMethod(
  2069. unescape('_printString'),
  2070. smalltalk.method({
  2071. selector: unescape('printString'),
  2072. category: 'printing',
  2073. fn: function (){
  2074. var self=this;
  2075. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_instanceClass", []), "_name", []), "__comma", [" class"]);
  2076. return self;},
  2077. args: [],
  2078. source: unescape('printString%0A%09%5Eself%20instanceClass%20name%2C%20%27%20class%27'),
  2079. messageSends: [unescape("%2C"), "name", "instanceClass"],
  2080. referencedClasses: []
  2081. }),
  2082. smalltalk.Metaclass);
  2083. smalltalk.addClass('CompiledMethod', smalltalk.Object, [], 'Kernel');
  2084. smalltalk.addMethod(
  2085. unescape('_source'),
  2086. smalltalk.method({
  2087. selector: unescape('source'),
  2088. category: 'accessing',
  2089. fn: function (){
  2090. var self=this;
  2091. return (($receiver = smalltalk.send(self, "_basicAt_", ["source"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  2092. return self;},
  2093. args: [],
  2094. source: unescape('source%0A%09%5E%28self%20basicAt%3A%20%27source%27%29%20ifNil%3A%20%5B%27%27%5D'),
  2095. messageSends: ["ifNil:", "basicAt:"],
  2096. referencedClasses: []
  2097. }),
  2098. smalltalk.CompiledMethod);
  2099. smalltalk.addMethod(
  2100. unescape('_source_'),
  2101. smalltalk.method({
  2102. selector: unescape('source%3A'),
  2103. category: 'accessing',
  2104. fn: function (aString){
  2105. var self=this;
  2106. smalltalk.send(self, "_basicAt_put_", ["source", aString]);
  2107. return self;},
  2108. args: ["aString"],
  2109. source: unescape('source%3A%20aString%0A%09self%20basicAt%3A%20%27source%27%20put%3A%20aString'),
  2110. messageSends: ["basicAt:put:"],
  2111. referencedClasses: []
  2112. }),
  2113. smalltalk.CompiledMethod);
  2114. smalltalk.addMethod(
  2115. unescape('_category'),
  2116. smalltalk.method({
  2117. selector: unescape('category'),
  2118. category: 'accessing',
  2119. fn: function (){
  2120. var self=this;
  2121. return (($receiver = smalltalk.send(self, "_basicAt_", ["category"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  2122. return self;},
  2123. args: [],
  2124. source: unescape('category%0A%09%5E%28self%20basicAt%3A%20%27category%27%29%20ifNil%3A%20%5B%27%27%5D'),
  2125. messageSends: ["ifNil:", "basicAt:"],
  2126. referencedClasses: []
  2127. }),
  2128. smalltalk.CompiledMethod);
  2129. smalltalk.addMethod(
  2130. unescape('_category_'),
  2131. smalltalk.method({
  2132. selector: unescape('category%3A'),
  2133. category: 'accessing',
  2134. fn: function (aString){
  2135. var self=this;
  2136. smalltalk.send(self, "_basicAt_put_", ["category", aString]);
  2137. return self;},
  2138. args: ["aString"],
  2139. source: unescape('category%3A%20aString%0A%09self%20basicAt%3A%20%27category%27%20put%3A%20aString'),
  2140. messageSends: ["basicAt:put:"],
  2141. referencedClasses: []
  2142. }),
  2143. smalltalk.CompiledMethod);
  2144. smalltalk.addMethod(
  2145. unescape('_selector'),
  2146. smalltalk.method({
  2147. selector: unescape('selector'),
  2148. category: 'accessing',
  2149. fn: function (){
  2150. var self=this;
  2151. return smalltalk.send(self, "_basicAt_", ["selector"]);
  2152. return self;},
  2153. args: [],
  2154. source: unescape('selector%0A%09%5Eself%20basicAt%3A%20%27selector%27'),
  2155. messageSends: ["basicAt:"],
  2156. referencedClasses: []
  2157. }),
  2158. smalltalk.CompiledMethod);
  2159. smalltalk.addMethod(
  2160. unescape('_selector_'),
  2161. smalltalk.method({
  2162. selector: unescape('selector%3A'),
  2163. category: 'accessing',
  2164. fn: function (aString){
  2165. var self=this;
  2166. smalltalk.send(self, "_basicAt_put_", ["selector", aString]);
  2167. return self;},
  2168. args: ["aString"],
  2169. source: unescape('selector%3A%20aString%0A%09self%20basicAt%3A%20%27selector%27%20put%3A%20aString'),
  2170. messageSends: ["basicAt:put:"],
  2171. referencedClasses: []
  2172. }),
  2173. smalltalk.CompiledMethod);
  2174. smalltalk.addMethod(
  2175. unescape('_fn'),
  2176. smalltalk.method({
  2177. selector: unescape('fn'),
  2178. category: 'accessing',
  2179. fn: function (){
  2180. var self=this;
  2181. return smalltalk.send(self, "_basicAt_", ["fn"]);
  2182. return self;},
  2183. args: [],
  2184. source: unescape('fn%0A%09%5Eself%20basicAt%3A%20%27fn%27'),
  2185. messageSends: ["basicAt:"],
  2186. referencedClasses: []
  2187. }),
  2188. smalltalk.CompiledMethod);
  2189. smalltalk.addMethod(
  2190. unescape('_fn_'),
  2191. smalltalk.method({
  2192. selector: unescape('fn%3A'),
  2193. category: 'accessing',
  2194. fn: function (aBlock){
  2195. var self=this;
  2196. smalltalk.send(self, "_basicAt_put_", ["fn", aBlock]);
  2197. return self;},
  2198. args: ["aBlock"],
  2199. source: unescape('fn%3A%20aBlock%0A%09self%20basicAt%3A%20%27fn%27%20put%3A%20aBlock'),
  2200. messageSends: ["basicAt:put:"],
  2201. referencedClasses: []
  2202. }),
  2203. smalltalk.CompiledMethod);
  2204. smalltalk.addMethod(
  2205. unescape('_messageSends'),
  2206. smalltalk.method({
  2207. selector: unescape('messageSends'),
  2208. category: 'accessing',
  2209. fn: function (){
  2210. var self=this;
  2211. return smalltalk.send(self, "_basicAt_", ["messageSends"]);
  2212. return self;},
  2213. args: [],
  2214. source: unescape('messageSends%0A%09%5Eself%20basicAt%3A%20%27messageSends%27'),
  2215. messageSends: ["basicAt:"],
  2216. referencedClasses: []
  2217. }),
  2218. smalltalk.CompiledMethod);
  2219. smalltalk.addMethod(
  2220. unescape('_methodClass'),
  2221. smalltalk.method({
  2222. selector: unescape('methodClass'),
  2223. category: 'accessing',
  2224. fn: function (){
  2225. var self=this;
  2226. return smalltalk.send(self, "_basicAt_", ["methodClass"]);
  2227. return self;},
  2228. args: [],
  2229. source: unescape('methodClass%0A%09%5Eself%20basicAt%3A%20%27methodClass%27'),
  2230. messageSends: ["basicAt:"],
  2231. referencedClasses: []
  2232. }),
  2233. smalltalk.CompiledMethod);
  2234. smalltalk.addMethod(
  2235. unescape('_referencedClasses'),
  2236. smalltalk.method({
  2237. selector: unescape('referencedClasses'),
  2238. category: 'accessing',
  2239. fn: function (){
  2240. var self=this;
  2241. return smalltalk.send(self, "_basicAt_", ["referencedClasses"]);
  2242. return self;},
  2243. args: [],
  2244. source: unescape('referencedClasses%0A%09%5Eself%20basicAt%3A%20%27referencedClasses%27'),
  2245. messageSends: ["basicAt:"],
  2246. referencedClasses: []
  2247. }),
  2248. smalltalk.CompiledMethod);
  2249. smalltalk.addMethod(
  2250. unescape('_arguments'),
  2251. smalltalk.method({
  2252. selector: unescape('arguments'),
  2253. category: 'accessing',
  2254. fn: function (){
  2255. var self=this;
  2256. return self.args || [];
  2257. return self;},
  2258. args: [],
  2259. source: unescape('arguments%0A%09%3Creturn%20self.args%20%7C%7C%20%5B%5D%3E'),
  2260. messageSends: [],
  2261. referencedClasses: []
  2262. }),
  2263. smalltalk.CompiledMethod);
  2264. smalltalk.addClass('Number', smalltalk.Object, [], 'Kernel');
  2265. smalltalk.addMethod(
  2266. unescape('__eq'),
  2267. smalltalk.method({
  2268. selector: unescape('%3D'),
  2269. category: 'comparing',
  2270. fn: function (aNumber){
  2271. var self=this;
  2272. try{((($receiver = smalltalk.send(smalltalk.send(aNumber, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  2273. return Number(self) == aNumber;
  2274. return self;
  2275. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  2276. args: ["aNumber"],
  2277. source: unescape('%3D%20aNumber%0A%09aNumber%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%20%0A%09%3Creturn%20Number%28self%29%20%3D%3D%20aNumber%3E'),
  2278. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  2279. referencedClasses: []
  2280. }),
  2281. smalltalk.Number);
  2282. smalltalk.addMethod(
  2283. unescape('__gt'),
  2284. smalltalk.method({
  2285. selector: unescape('%3E'),
  2286. category: 'comparing',
  2287. fn: function (aNumber){
  2288. var self=this;
  2289. return self > aNumber;
  2290. return self;},
  2291. args: ["aNumber"],
  2292. source: unescape('%3E%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3E%3E%20aNumber%3E'),
  2293. messageSends: [],
  2294. referencedClasses: []
  2295. }),
  2296. smalltalk.Number);
  2297. smalltalk.addMethod(
  2298. unescape('__lt'),
  2299. smalltalk.method({
  2300. selector: unescape('%3C'),
  2301. category: 'comparing',
  2302. fn: function (aNumber){
  2303. var self=this;
  2304. return self < aNumber;
  2305. return self;},
  2306. args: ["aNumber"],
  2307. source: unescape('%3C%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3C%20aNumber%3E'),
  2308. messageSends: [],
  2309. referencedClasses: []
  2310. }),
  2311. smalltalk.Number);
  2312. smalltalk.addMethod(
  2313. unescape('__gt_eq'),
  2314. smalltalk.method({
  2315. selector: unescape('%3E%3D'),
  2316. category: 'comparing',
  2317. fn: function (aNumber){
  2318. var self=this;
  2319. return self >= aNumber;
  2320. return self;},
  2321. args: ["aNumber"],
  2322. source: unescape('%3E%3D%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3E%3E%3D%20aNumber%3E'),
  2323. messageSends: [],
  2324. referencedClasses: []
  2325. }),
  2326. smalltalk.Number);
  2327. smalltalk.addMethod(
  2328. unescape('__lt_eq'),
  2329. smalltalk.method({
  2330. selector: unescape('%3C%3D'),
  2331. category: 'comparing',
  2332. fn: function (aNumber){
  2333. var self=this;
  2334. return self <= aNumber;
  2335. return self;},
  2336. args: ["aNumber"],
  2337. source: unescape('%3C%3D%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3C%3D%20aNumber%3E'),
  2338. messageSends: [],
  2339. referencedClasses: []
  2340. }),
  2341. smalltalk.Number);
  2342. smalltalk.addMethod(
  2343. unescape('__plus'),
  2344. smalltalk.method({
  2345. selector: unescape('+'),
  2346. category: 'arithmetic',
  2347. fn: function (aNumber){
  2348. var self=this;
  2349. return self + aNumber;
  2350. return self;},
  2351. args: ["aNumber"],
  2352. source: unescape('+%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20+%20aNumber%3E'),
  2353. messageSends: [],
  2354. referencedClasses: []
  2355. }),
  2356. smalltalk.Number);
  2357. smalltalk.addMethod(
  2358. unescape('__minus'),
  2359. smalltalk.method({
  2360. selector: unescape('-'),
  2361. category: 'arithmetic',
  2362. fn: function (aNumber){
  2363. var self=this;
  2364. return self - aNumber;
  2365. return self;},
  2366. args: ["aNumber"],
  2367. source: unescape('-%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20-%20aNumber%3E'),
  2368. messageSends: [],
  2369. referencedClasses: []
  2370. }),
  2371. smalltalk.Number);
  2372. smalltalk.addMethod(
  2373. unescape('__star'),
  2374. smalltalk.method({
  2375. selector: unescape('*'),
  2376. category: 'arithmetic',
  2377. fn: function (aNumber){
  2378. var self=this;
  2379. return self * aNumber;
  2380. return self;},
  2381. args: ["aNumber"],
  2382. source: unescape('*%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20*%20aNumber%3E'),
  2383. messageSends: [],
  2384. referencedClasses: []
  2385. }),
  2386. smalltalk.Number);
  2387. smalltalk.addMethod(
  2388. unescape('__slash'),
  2389. smalltalk.method({
  2390. selector: unescape('/'),
  2391. category: 'arithmetic',
  2392. fn: function (aNumber){
  2393. var self=this;
  2394. return self / aNumber;
  2395. return self;},
  2396. args: ["aNumber"],
  2397. source: unescape('/%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20/%20aNumber%3E'),
  2398. messageSends: [],
  2399. referencedClasses: []
  2400. }),
  2401. smalltalk.Number);
  2402. smalltalk.addMethod(
  2403. unescape('_max_'),
  2404. smalltalk.method({
  2405. selector: unescape('max%3A'),
  2406. category: 'arithmetic',
  2407. fn: function (aNumber){
  2408. var self=this;
  2409. return Math.max(self, aNumber);;
  2410. return self;},
  2411. args: ["aNumber"],
  2412. source: unescape('max%3A%20aNumber%0A%09%3Creturn%20Math.max%28self%2C%20aNumber%29%3B%3E'),
  2413. messageSends: [],
  2414. referencedClasses: []
  2415. }),
  2416. smalltalk.Number);
  2417. smalltalk.addMethod(
  2418. unescape('_min_'),
  2419. smalltalk.method({
  2420. selector: unescape('min%3A'),
  2421. category: 'arithmetic',
  2422. fn: function (aNumber){
  2423. var self=this;
  2424. return Math.min(self, aNumber);;
  2425. return self;},
  2426. args: ["aNumber"],
  2427. source: unescape('min%3A%20aNumber%0A%09%3Creturn%20Math.min%28self%2C%20aNumber%29%3B%3E'),
  2428. messageSends: [],
  2429. referencedClasses: []
  2430. }),
  2431. smalltalk.Number);
  2432. smalltalk.addMethod(
  2433. unescape('_rounded'),
  2434. smalltalk.method({
  2435. selector: unescape('rounded'),
  2436. category: 'converting',
  2437. fn: function (){
  2438. var self=this;
  2439. return Math.round(self);;
  2440. return self;},
  2441. args: [],
  2442. source: unescape('rounded%0A%09%3Creturn%20Math.round%28self%29%3B%3E'),
  2443. messageSends: [],
  2444. referencedClasses: []
  2445. }),
  2446. smalltalk.Number);
  2447. smalltalk.addMethod(
  2448. unescape('_truncated'),
  2449. smalltalk.method({
  2450. selector: unescape('truncated'),
  2451. category: 'converting',
  2452. fn: function (){
  2453. var self=this;
  2454. var result=nil;
  2455. ((($receiver = self >= (0)).klass === smalltalk.Boolean) ? ($receiver ? (function(){return result = Math.floor(self);;})() : (function(){return result = (Math.floor(self * (-1)) * (-1));;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return result = Math.floor(self);;}), (function(){return result = (Math.floor(self * (-1)) * (-1));;})]));
  2456. return result;
  2457. return self;},
  2458. args: [],
  2459. source: unescape('truncated%0A%7Cresult%7C%0A%0A%20%20%20%20self%20%3E%3D%200%20%0A%20%20%20%20%20%20%20%20ifTrue%3A%20%5B%3Cresult%20%3D%20Math.floor%28self%29%3B%3E%5D%0A%20%20%20%20%20%20%20%20ifFalse%3A%20%5B%3Cresult%20%3D%20%28Math.floor%28self%20*%20%28-1%29%29%20*%20%28-1%29%29%3B%3E%5D.%0A%0A%20%20%20%20%5E%20result'),
  2460. messageSends: ["ifTrue:ifFalse:", unescape("%3E%3D")],
  2461. referencedClasses: []
  2462. }),
  2463. smalltalk.Number);
  2464. smalltalk.addMethod(
  2465. unescape('_to_'),
  2466. smalltalk.method({
  2467. selector: unescape('to%3A'),
  2468. category: 'converting',
  2469. fn: function (aNumber){
  2470. var self=this;
  2471. var array=nil;
  2472. var first=nil;
  2473. var last=nil;
  2474. var count=nil;
  2475. first=smalltalk.send(self, "_truncated", []);
  2476. last=((($receiver = smalltalk.send(aNumber, "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));
  2477. count=(1);
  2478. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2479. smalltalk.send(((($receiver = last).klass === smalltalk.Number) ? $receiver -first : smalltalk.send($receiver, "__minus", [first])), "_timesRepeat_", [(function(){smalltalk.send(array, "_at_put_", [count, first]);count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return first=((($receiver = first).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})]);
  2480. return array;
  2481. return self;},
  2482. args: ["aNumber"],
  2483. source: unescape('to%3A%20aNumber%0A%09%7C%20array%20first%20last%20count%20%7C%0A%09first%20%3A%3D%20self%20truncated.%0A%09last%20%3A%3D%20aNumber%20truncated%20+%201.%0A%09count%20%3A%3D%201.%0A%09array%20%3A%3D%20Array%20new.%0A%09%28last%20-%20first%29%20timesRepeat%3A%20%5B%0A%09%20%20%20%20array%20at%3A%20count%20put%3A%20first.%0A%09%20%20%20%20count%20%3A%3D%20count%20+%201.%0A%09%20%20%20%20first%20%3A%3D%20first%20+%201%5D.%0A%09%5Earray'),
  2484. messageSends: ["truncated", unescape("+"), "new", "timesRepeat:", unescape("-"), "at:put:"],
  2485. referencedClasses: ["Array"]
  2486. }),
  2487. smalltalk.Number);
  2488. smalltalk.addMethod(
  2489. unescape('_timesRepeat_'),
  2490. smalltalk.method({
  2491. selector: unescape('timesRepeat%3A'),
  2492. category: 'enumerating',
  2493. fn: function (aBlock){
  2494. var self=this;
  2495. var integer=nil;
  2496. var count=nil;
  2497. integer=smalltalk.send(self, "_truncated", []);
  2498. count=(1);
  2499. (function(){while(!(function(){return ((($receiver = count).klass === smalltalk.Number) ? $receiver >self : smalltalk.send($receiver, "__gt", [self]));})()) {(function(){smalltalk.send(aBlock, "_value", []);return count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})()}})();
  2500. return self;},
  2501. args: ["aBlock"],
  2502. source: unescape('timesRepeat%3A%20aBlock%0A%09%7C%20integer%20count%20%7C%0A%09integer%20%3A%3D%20self%20truncated.%0A%09count%20%3A%3D%201.%0A%09%5Bcount%20%3E%20self%5D%20whileFalse%3A%20%5B%0A%09%20%20%20%20aBlock%20value.%0A%09%20%20%20%20count%20%3A%3D%20count%20+%201%5D'),
  2503. messageSends: ["truncated", "whileFalse:", unescape("%3E"), "value", unescape("+")],
  2504. referencedClasses: []
  2505. }),
  2506. smalltalk.Number);
  2507. smalltalk.addMethod(
  2508. unescape('_to_do_'),
  2509. smalltalk.method({
  2510. selector: unescape('to%3Ado%3A'),
  2511. category: 'enumerating',
  2512. fn: function (stop, aBlock){
  2513. var self=this;
  2514. var nextValue=nil;
  2515. nextValue=self;
  2516. (function(){while((function(){return ((($receiver = nextValue).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [nextValue]);return nextValue=((($receiver = nextValue).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})()}})();
  2517. return self;},
  2518. args: ["stop", "aBlock"],
  2519. source: unescape('to%3A%20stop%20do%3A%20aBlock%0A%09%22Evaluate%20aBlock%20for%20each%20number%20from%20self%20to%20aNumber.%22%0A%09%7C%20nextValue%20%7C%0A%09nextValue%20%3A%3D%20self.%0A%09%5BnextValue%20%3C%3D%20stop%5D%0A%09%09whileTrue%3A%20%0A%09%09%09%5BaBlock%20value%3A%20nextValue.%0A%09%09%09nextValue%20%3A%3D%20nextValue%20+%201%5D'),
  2520. messageSends: ["whileTrue:", unescape("%3C%3D"), "value:", unescape("+")],
  2521. referencedClasses: []
  2522. }),
  2523. smalltalk.Number);
  2524. smalltalk.addMethod(
  2525. unescape('_asString'),
  2526. smalltalk.method({
  2527. selector: unescape('asString'),
  2528. category: 'converting',
  2529. fn: function (){
  2530. var self=this;
  2531. return smalltalk.send(self, "_printString", []);
  2532. return self;},
  2533. args: [],
  2534. source: unescape('asString%0A%09%5Eself%20printString'),
  2535. messageSends: ["printString"],
  2536. referencedClasses: []
  2537. }),
  2538. smalltalk.Number);
  2539. smalltalk.addMethod(
  2540. unescape('_asJavascript'),
  2541. smalltalk.method({
  2542. selector: unescape('asJavascript'),
  2543. category: 'converting',
  2544. fn: function (){
  2545. var self=this;
  2546. return smalltalk.send(smalltalk.send(unescape("%28"), "__comma", [smalltalk.send(self, "_printString", [])]), "__comma", [unescape("%29")]);
  2547. return self;},
  2548. args: [],
  2549. source: unescape('asJavascript%0A%09%5E%27%28%27%2C%20self%20printString%2C%20%27%29%27'),
  2550. messageSends: [unescape("%2C"), "printString"],
  2551. referencedClasses: []
  2552. }),
  2553. smalltalk.Number);
  2554. smalltalk.addMethod(
  2555. unescape('_printString'),
  2556. smalltalk.method({
  2557. selector: unescape('printString'),
  2558. category: 'printing',
  2559. fn: function (){
  2560. var self=this;
  2561. return String(self);
  2562. return self;},
  2563. args: [],
  2564. source: unescape('printString%0A%09%3Creturn%20String%28self%29%3E'),
  2565. messageSends: [],
  2566. referencedClasses: []
  2567. }),
  2568. smalltalk.Number);
  2569. smalltalk.addMethod(
  2570. unescape('_isNumber'),
  2571. smalltalk.method({
  2572. selector: unescape('isNumber'),
  2573. category: 'testing',
  2574. fn: function (){
  2575. var self=this;
  2576. return true;
  2577. return self;},
  2578. args: [],
  2579. source: unescape('isNumber%0A%09%5Etrue'),
  2580. messageSends: [],
  2581. referencedClasses: []
  2582. }),
  2583. smalltalk.Number);
  2584. smalltalk.addMethod(
  2585. unescape('_atRandom'),
  2586. smalltalk.method({
  2587. selector: unescape('atRandom'),
  2588. category: 'converting',
  2589. fn: function (){
  2590. var self=this;
  2591. return ((($receiver = smalltalk.send(((($receiver = smalltalk.send(smalltalk.send((smalltalk.Random || Random), "_new", []), "_next", [])).klass === smalltalk.Number) ? $receiver *self : smalltalk.send($receiver, "__star", [self])), "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));
  2592. return self;},
  2593. args: [],
  2594. source: unescape('atRandom%0A%20%20%20%20%5E%28Random%20new%20next%20*%20self%29%20truncated%20+%201'),
  2595. messageSends: [unescape("+"), "truncated", unescape("*"), "next", "new"],
  2596. referencedClasses: ["Random"]
  2597. }),
  2598. smalltalk.Number);
  2599. smalltalk.addMethod(
  2600. unescape('__at'),
  2601. smalltalk.method({
  2602. selector: unescape('@'),
  2603. category: 'converting',
  2604. fn: function (aNumber){
  2605. var self=this;
  2606. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, aNumber]);
  2607. return self;},
  2608. args: ["aNumber"],
  2609. source: unescape('@%20aNumber%0A%09%5EPoint%20x%3A%20self%20y%3A%20aNumber'),
  2610. messageSends: ["x:y:"],
  2611. referencedClasses: ["Point"]
  2612. }),
  2613. smalltalk.Number);
  2614. smalltalk.addMethod(
  2615. unescape('_asPoint'),
  2616. smalltalk.method({
  2617. selector: unescape('asPoint'),
  2618. category: 'converting',
  2619. fn: function (){
  2620. var self=this;
  2621. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, self]);
  2622. return self;},
  2623. args: [],
  2624. source: unescape('asPoint%0A%09%5EPoint%20x%3A%20self%20y%3A%20self'),
  2625. messageSends: ["x:y:"],
  2626. referencedClasses: ["Point"]
  2627. }),
  2628. smalltalk.Number);
  2629. smalltalk.addMethod(
  2630. unescape('_clearInterval'),
  2631. smalltalk.method({
  2632. selector: unescape('clearInterval'),
  2633. category: 'timeouts/intervals',
  2634. fn: function (){
  2635. var self=this;
  2636. clearInterval(Number(self));
  2637. return self;},
  2638. args: [],
  2639. source: unescape('clearInterval%0A%09%3CclearInterval%28Number%28self%29%29%3E'),
  2640. messageSends: [],
  2641. referencedClasses: []
  2642. }),
  2643. smalltalk.Number);
  2644. smalltalk.addMethod(
  2645. unescape('_asJSONObject'),
  2646. smalltalk.method({
  2647. selector: unescape('asJSONObject'),
  2648. category: 'converting',
  2649. fn: function (){
  2650. var self=this;
  2651. return self;
  2652. return self;},
  2653. args: [],
  2654. source: unescape('asJSONObject%0A%09%5Eself'),
  2655. messageSends: [],
  2656. referencedClasses: []
  2657. }),
  2658. smalltalk.Number);
  2659. smalltalk.addMethod(
  2660. unescape('_clearTimeout'),
  2661. smalltalk.method({
  2662. selector: unescape('clearTimeout'),
  2663. category: 'timeouts/intervals',
  2664. fn: function (){
  2665. var self=this;
  2666. clearTimeout(Number(self));
  2667. return self;},
  2668. args: [],
  2669. source: unescape('clearTimeout%0A%09%3CclearTimeout%28Number%28self%29%29%3E'),
  2670. messageSends: [],
  2671. referencedClasses: []
  2672. }),
  2673. smalltalk.Number);
  2674. smalltalk.addMethod(
  2675. unescape('_even'),
  2676. smalltalk.method({
  2677. selector: unescape('even'),
  2678. category: 'testing',
  2679. fn: function (){
  2680. var self=this;
  2681. return smalltalk.send((0), "__eq", [smalltalk.send(self, "_\\\\", [(2)])]);
  2682. return self;},
  2683. args: [],
  2684. source: unescape('even%0A%09%5E%200%20%3D%20%28self%20%5C%5C%202%29'),
  2685. messageSends: [unescape("%3D"), unescape("%5C%5C%5C%5C")],
  2686. referencedClasses: []
  2687. }),
  2688. smalltalk.Number);
  2689. smalltalk.addMethod(
  2690. unescape('_odd'),
  2691. smalltalk.method({
  2692. selector: unescape('odd'),
  2693. category: 'testing',
  2694. fn: function (){
  2695. var self=this;
  2696. return smalltalk.send(smalltalk.send(self, "_even", []), "_not", []);
  2697. return self;},
  2698. args: [],
  2699. source: unescape('odd%0A%09%5E%20self%20even%20not'),
  2700. messageSends: ["not", "even"],
  2701. referencedClasses: []
  2702. }),
  2703. smalltalk.Number);
  2704. smalltalk.addMethod(
  2705. unescape('_negated'),
  2706. smalltalk.method({
  2707. selector: unescape('negated'),
  2708. category: 'arithmetic',
  2709. fn: function (){
  2710. var self=this;
  2711. return (0) - self;
  2712. return self;},
  2713. args: [],
  2714. source: unescape('negated%0A%09%5E0%20-%20self'),
  2715. messageSends: [unescape("-")],
  2716. referencedClasses: []
  2717. }),
  2718. smalltalk.Number);
  2719. smalltalk.addMethod(
  2720. unescape('__eq_eq'),
  2721. smalltalk.method({
  2722. selector: unescape('%3D%3D'),
  2723. category: 'comparing',
  2724. fn: function (aNumber){
  2725. var self=this;
  2726. try{((($receiver = smalltalk.send(smalltalk.send(aNumber, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})]));
  2727. return Number(self) === Number(aNumber);
  2728. return self;
  2729. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  2730. args: ["aNumber"],
  2731. source: unescape('%3D%3D%20aNumber%0A%09aNumber%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%20%0A%09%3Creturn%20Number%28self%29%20%3D%3D%3D%20Number%28aNumber%29%3E'),
  2732. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  2733. referencedClasses: []
  2734. }),
  2735. smalltalk.Number);
  2736. smalltalk.addMethod(
  2737. unescape('_printShowingDecimalPlaces_'),
  2738. smalltalk.method({
  2739. selector: unescape('printShowingDecimalPlaces%3A'),
  2740. category: 'printing',
  2741. fn: function (placesDesired){
  2742. var self=this;
  2743. return self.toFixed(placesDesired);
  2744. return self;},
  2745. args: ["placesDesired"],
  2746. source: unescape('printShowingDecimalPlaces%3A%20placesDesired%0A%09%3Creturn%20self.toFixed%28placesDesired%29%3E'),
  2747. messageSends: [],
  2748. referencedClasses: []
  2749. }),
  2750. smalltalk.Number);
  2751. smalltalk.addMethod(
  2752. unescape('_%5C'),
  2753. smalltalk.method({
  2754. selector: unescape('%5C'),
  2755. category: '',
  2756. fn: function (aNumber){
  2757. var self=this;
  2758. return self % aNumber;
  2759. return self;},
  2760. args: ["aNumber"],
  2761. source: unescape(''),
  2762. messageSends: [],
  2763. referencedClasses: []
  2764. }),
  2765. smalltalk.Number);
  2766. smalltalk.addMethod(
  2767. unescape('_to_by_'),
  2768. smalltalk.method({
  2769. selector: unescape('to%3Aby%3A'),
  2770. category: 'converting',
  2771. fn: function (stop, step){
  2772. var self=this;
  2773. var array=nil;
  2774. var value=nil;
  2775. var pos=nil;
  2776. value=self;
  2777. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2778. pos=(1);
  2779. ((($receiver = smalltalk.send(step, "__eq", [(0)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})]));
  2780. ((($receiver = ((($receiver = step).klass === smalltalk.Number) ? $receiver <(0) : smalltalk.send($receiver, "__lt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})() : (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();}), (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})]));
  2781. return array;
  2782. return self;},
  2783. args: ["stop", "step"],
  2784. source: unescape('to%3A%20stop%20by%3A%20step%0A%09%7C%20array%20value%20pos%20%7C%0A%09value%20%3A%3D%20self.%0A%09array%20%3A%3D%20Array%20new.%0A%09pos%20%3A%3D%201.%0A%09step%20%3D%200%20ifTrue%3A%20%5Bself%20error%3A%20%27step%20must%20be%20non-zero%27%5D.%0A%09step%20%3C%200%0A%09%09ifTrue%3A%20%5B%5B%20value%20%3E%3D%20stop%20%5D%20whileTrue%3A%20%5B%0A%09%20%20%20%20%09%09%09array%20at%3A%20pos%20put%3A%20value.%0A%09%20%20%20%20%09%09%09pos%20%3A%3D%20pos%20+%201.%0A%09%20%20%20%20%09%09%09value%20%3A%3D%20value%20+%20step%5D%5D%0A%09%09ifFalse%3A%20%5B%5B%20value%20%3C%3D%20stop%20%5D%20whileTrue%3A%20%5B%0A%09%20%20%20%20%09%09%09array%20at%3A%20pos%20put%3A%20value.%0A%09%20%20%09%09%09pos%20%3A%3D%20pos%20+%201.%0A%09%20%20%20%20%09%09%09value%20%3A%3D%20value%20+%20step%5D%5D.%0A%09%5Earray'),
  2785. messageSends: ["new", "ifTrue:", unescape("%3D"), "error:", "ifTrue:ifFalse:", unescape("%3C"), "whileTrue:", unescape("%3E%3D"), "at:put:", unescape("+"), unescape("%3C%3D")],
  2786. referencedClasses: ["Array"]
  2787. }),
  2788. smalltalk.Number);
  2789. smalltalk.addMethod(
  2790. unescape('_to_by_do_'),
  2791. smalltalk.method({
  2792. selector: unescape('to%3Aby%3Ado%3A'),
  2793. category: 'enumerating',
  2794. fn: function (stop, step, aBlock){
  2795. var self=this;
  2796. var value=nil;
  2797. value=self;
  2798. ((($receiver = smalltalk.send(step, "__eq", [(0)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})]));
  2799. ((($receiver = ((($receiver = step).klass === smalltalk.Number) ? $receiver <(0) : smalltalk.send($receiver, "__lt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})() : (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();}), (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})]));
  2800. return self;},
  2801. args: ["stop", "step", "aBlock"],
  2802. source: unescape('to%3A%20stop%20by%3A%20step%20do%3A%20aBlock%0A%09%7C%20value%20%7C%0A%09value%20%3A%3D%20self.%0A%09step%20%3D%200%20ifTrue%3A%20%5Bself%20error%3A%20%27step%20must%20be%20non-zero%27%5D.%0A%09step%20%3C%200%0A%09%09ifTrue%3A%20%5B%5B%20value%20%3E%3D%20stop%20%5D%20whileTrue%3A%20%5B%0A%09%20%20%20%20%09%09%09aBlock%20value%3A%20value.%0A%09%20%20%20%20%09%09%09value%20%3A%3D%20value%20+%20step%5D%5D%0A%09%09ifFalse%3A%20%5B%5B%20value%20%3C%3D%20stop%20%5D%20whileTrue%3A%20%5B%0A%09%20%20%20%20%09%09%09aBlock%20value%3A%20value.%0A%09%20%20%20%20%09%09%09value%20%3A%3D%20value%20+%20step%5D%5D'),
  2803. messageSends: ["ifTrue:", unescape("%3D"), "error:", "ifTrue:ifFalse:", unescape("%3C"), "whileTrue:", unescape("%3E%3D"), "value:", unescape("+"), unescape("%3C%3D")],
  2804. referencedClasses: []
  2805. }),
  2806. smalltalk.Number);
  2807. smalltalk.addMethod(
  2808. unescape('_deepCopy'),
  2809. smalltalk.method({
  2810. selector: unescape('deepCopy'),
  2811. category: 'copying',
  2812. fn: function (){
  2813. var self=this;
  2814. return smalltalk.send(self, "_copy", []);
  2815. return self;},
  2816. args: [],
  2817. source: unescape('deepCopy%0A%09%5Eself%20copy'),
  2818. messageSends: ["copy"],
  2819. referencedClasses: []
  2820. }),
  2821. smalltalk.Number);
  2822. smalltalk.addMethod(
  2823. unescape('_copy'),
  2824. smalltalk.method({
  2825. selector: unescape('copy'),
  2826. category: 'copying',
  2827. fn: function (){
  2828. var self=this;
  2829. return self;
  2830. return self;},
  2831. args: [],
  2832. source: unescape('copy%0A%09%5Eself'),
  2833. messageSends: [],
  2834. referencedClasses: []
  2835. }),
  2836. smalltalk.Number);
  2837. smalltalk.addMethod(
  2838. unescape('_%5C%5C'),
  2839. smalltalk.method({
  2840. selector: unescape('%5C%5C'),
  2841. category: 'arithmetic',
  2842. fn: function (aNumber){
  2843. var self=this;
  2844. return self % aNumber;
  2845. return self;},
  2846. args: ["aNumber"],
  2847. source: unescape('%5C%5C%20aNumber%0A%09%3Creturn%20self%20%25%20aNumber%3E'),
  2848. messageSends: [],
  2849. referencedClasses: []
  2850. }),
  2851. smalltalk.Number);
  2852. smalltalk.addMethod(
  2853. unescape('_sqrt'),
  2854. smalltalk.method({
  2855. selector: unescape('sqrt'),
  2856. category: 'arithmetic',
  2857. fn: function (){
  2858. var self=this;
  2859. return Math.sqrt(self);
  2860. return self;},
  2861. args: [],
  2862. source: unescape('sqrt%0A%09%3Creturn%20Math.sqrt%28self%29%3E'),
  2863. messageSends: [],
  2864. referencedClasses: []
  2865. }),
  2866. smalltalk.Number);
  2867. smalltalk.addMethod(
  2868. unescape('_squared'),
  2869. smalltalk.method({
  2870. selector: unescape('squared'),
  2871. category: 'arithmetic',
  2872. fn: function (){
  2873. var self=this;
  2874. return self * self;
  2875. return self;},
  2876. args: [],
  2877. source: unescape('squared%0A%09%5Eself%20*%20self'),
  2878. messageSends: [unescape("*")],
  2879. referencedClasses: []
  2880. }),
  2881. smalltalk.Number);
  2882. smalltalk.addMethod(
  2883. unescape('_pi'),
  2884. smalltalk.method({
  2885. selector: unescape('pi'),
  2886. category: 'instance creation',
  2887. fn: function (){
  2888. var self=this;
  2889. return Math.PI;
  2890. return self;},
  2891. args: [],
  2892. source: unescape('pi%0A%09%3Creturn%20Math.PI%3E'),
  2893. messageSends: [],
  2894. referencedClasses: []
  2895. }),
  2896. smalltalk.Number.klass);
  2897. smalltalk.addClass('BlockClosure', smalltalk.Object, [], 'Kernel');
  2898. smalltalk.addMethod(
  2899. unescape('_compiledSource'),
  2900. smalltalk.method({
  2901. selector: unescape('compiledSource'),
  2902. category: 'accessing',
  2903. fn: function (){
  2904. var self=this;
  2905. return self.toString();
  2906. return self;},
  2907. args: [],
  2908. source: unescape('compiledSource%0A%09%3Creturn%20self.toString%28%29%3E'),
  2909. messageSends: [],
  2910. referencedClasses: []
  2911. }),
  2912. smalltalk.BlockClosure);
  2913. smalltalk.addMethod(
  2914. unescape('_whileTrue_'),
  2915. smalltalk.method({
  2916. selector: unescape('whileTrue%3A'),
  2917. category: 'controlling',
  2918. fn: function (aBlock){
  2919. var self=this;
  2920. while(self()) {aBlock()};
  2921. return self;},
  2922. args: ["aBlock"],
  2923. source: unescape('whileTrue%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Cwhile%28self%28%29%29%20%7BaBlock%28%29%7D%3E'),
  2924. messageSends: [],
  2925. referencedClasses: []
  2926. }),
  2927. smalltalk.BlockClosure);
  2928. smalltalk.addMethod(
  2929. unescape('_whileFalse_'),
  2930. smalltalk.method({
  2931. selector: unescape('whileFalse%3A'),
  2932. category: 'controlling',
  2933. fn: function (aBlock){
  2934. var self=this;
  2935. while(!self()) {aBlock()};
  2936. return self;},
  2937. args: ["aBlock"],
  2938. source: unescape('whileFalse%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Cwhile%28%21self%28%29%29%20%7BaBlock%28%29%7D%3E'),
  2939. messageSends: [],
  2940. referencedClasses: []
  2941. }),
  2942. smalltalk.BlockClosure);
  2943. smalltalk.addMethod(
  2944. unescape('_value'),
  2945. smalltalk.method({
  2946. selector: unescape('value'),
  2947. category: 'evaluating',
  2948. fn: function (){
  2949. var self=this;
  2950. return self();;
  2951. return self;},
  2952. args: [],
  2953. source: unescape('value%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28%29%3B%3E'),
  2954. messageSends: [],
  2955. referencedClasses: []
  2956. }),
  2957. smalltalk.BlockClosure);
  2958. smalltalk.addMethod(
  2959. unescape('_value_'),
  2960. smalltalk.method({
  2961. selector: unescape('value%3A'),
  2962. category: 'evaluating',
  2963. fn: function (anArg){
  2964. var self=this;
  2965. return self(anArg);;
  2966. return self;},
  2967. args: ["anArg"],
  2968. source: unescape('value%3A%20anArg%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28anArg%29%3B%3E'),
  2969. messageSends: [],
  2970. referencedClasses: []
  2971. }),
  2972. smalltalk.BlockClosure);
  2973. smalltalk.addMethod(
  2974. unescape('_value_value_'),
  2975. smalltalk.method({
  2976. selector: unescape('value%3Avalue%3A'),
  2977. category: 'evaluating',
  2978. fn: function (firstArg, secondArg){
  2979. var self=this;
  2980. return self(firstArg, secondArg);;
  2981. return self;},
  2982. args: ["firstArg", "secondArg"],
  2983. source: unescape('value%3A%20firstArg%20value%3A%20secondArg%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28firstArg%2C%20secondArg%29%3B%3E'),
  2984. messageSends: [],
  2985. referencedClasses: []
  2986. }),
  2987. smalltalk.BlockClosure);
  2988. smalltalk.addMethod(
  2989. unescape('_value_value_value_'),
  2990. smalltalk.method({
  2991. selector: unescape('value%3Avalue%3Avalue%3A'),
  2992. category: 'evaluating',
  2993. fn: function (firstArg, secondArg, thirdArg){
  2994. var self=this;
  2995. return self(firstArg, secondArg, thirdArg);;
  2996. return self;},
  2997. args: ["firstArg", "secondArg", "thirdArg"],
  2998. source: unescape('value%3A%20firstArg%20value%3A%20secondArg%20value%3A%20thirdArg%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28firstArg%2C%20secondArg%2C%20thirdArg%29%3B%3E'),
  2999. messageSends: [],
  3000. referencedClasses: []
  3001. }),
  3002. smalltalk.BlockClosure);
  3003. smalltalk.addMethod(
  3004. unescape('_valueWithPossibleArguments_'),
  3005. smalltalk.method({
  3006. selector: unescape('valueWithPossibleArguments%3A'),
  3007. category: 'evaluating',
  3008. fn: function (aCollection){
  3009. var self=this;
  3010. return self.apply(null, aCollection);;
  3011. return self;},
  3012. args: ["aCollection"],
  3013. source: unescape('valueWithPossibleArguments%3A%20aCollection%0A%09%3Creturn%20self.apply%28null%2C%20aCollection%29%3B%3E'),
  3014. messageSends: [],
  3015. referencedClasses: []
  3016. }),
  3017. smalltalk.BlockClosure);
  3018. smalltalk.addMethod(
  3019. unescape('_on_do_'),
  3020. smalltalk.method({
  3021. selector: unescape('on%3Ado%3A'),
  3022. category: 'error handling',
  3023. fn: function (anErrorClass, aBlock){
  3024. var self=this;
  3025. smalltalk.send(self, "_try_catch_", [self, (function(error){return ((($receiver = smalltalk.send(error, "_isKindOf_", [anErrorClass])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(aBlock, "_value_", [error]);})() : (function(){return smalltalk.send(error, "_signal", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(aBlock, "_value_", [error]);}), (function(){return smalltalk.send(error, "_signal", []);})]));})]);
  3026. return self;},
  3027. args: ["anErrorClass", "aBlock"],
  3028. source: unescape('on%3A%20anErrorClass%20do%3A%20aBlock%0A%09self%20try%3A%20self%20catch%3A%20%5B%3Aerror%20%7C%0A%09%20%20%20%20%28error%20isKindOf%3A%20anErrorClass%29%20%0A%09%20%20%20%20%20ifTrue%3A%20%5BaBlock%20value%3A%20error%5D%0A%09%20%20%20%20%20ifFalse%3A%20%5Berror%20signal%5D%5D'),
  3029. messageSends: ["try:catch:", "ifTrue:ifFalse:", "isKindOf:", "value:", "signal"],
  3030. referencedClasses: []
  3031. }),
  3032. smalltalk.BlockClosure);
  3033. smalltalk.addMethod(
  3034. unescape('_valueWithTimeout_'),
  3035. smalltalk.method({
  3036. selector: unescape('valueWithTimeout%3A'),
  3037. category: 'timeout/interval',
  3038. fn: function (aNumber){
  3039. var self=this;
  3040. return setTimeout(self, aNumber);
  3041. return self;},
  3042. args: ["aNumber"],
  3043. source: unescape('valueWithTimeout%3A%20aNumber%0A%09%3Creturn%20setTimeout%28self%2C%20aNumber%29%3E'),
  3044. messageSends: [],
  3045. referencedClasses: []
  3046. }),
  3047. smalltalk.BlockClosure);
  3048. smalltalk.addMethod(
  3049. unescape('_valueWithInterval_'),
  3050. smalltalk.method({
  3051. selector: unescape('valueWithInterval%3A'),
  3052. category: 'timeout/interval',
  3053. fn: function (aNumber){
  3054. var self=this;
  3055. return setInterval(self, aNumber);
  3056. return self;},
  3057. args: ["aNumber"],
  3058. source: unescape('valueWithInterval%3A%20aNumber%0A%09%3Creturn%20setInterval%28self%2C%20aNumber%29%3E'),
  3059. messageSends: [],
  3060. referencedClasses: []
  3061. }),
  3062. smalltalk.BlockClosure);
  3063. smalltalk.addMethod(
  3064. unescape('_whileFalse'),
  3065. smalltalk.method({
  3066. selector: unescape('whileFalse'),
  3067. category: 'controlling',
  3068. fn: function (){
  3069. var self=this;
  3070. smalltalk.send(self, "_whileFalse_", [(function(){return nil;})]);
  3071. return self;},
  3072. args: [],
  3073. source: unescape('whileFalse%0A%09%22inlined%20in%20the%20Compiler%22%0A%09self%20whileFalse%3A%20%5B%5D'),
  3074. messageSends: ["whileFalse:"],
  3075. referencedClasses: []
  3076. }),
  3077. smalltalk.BlockClosure);
  3078. smalltalk.addMethod(
  3079. unescape('_whileTrue'),
  3080. smalltalk.method({
  3081. selector: unescape('whileTrue'),
  3082. category: 'controlling',
  3083. fn: function (){
  3084. var self=this;
  3085. smalltalk.send(self, "_whileTrue_", [(function(){return nil;})]);
  3086. return self;},
  3087. args: [],
  3088. source: unescape('whileTrue%0A%09%22inlined%20in%20the%20Compiler%22%0A%09self%20whileTrue%3A%20%5B%5D'),
  3089. messageSends: ["whileTrue:"],
  3090. referencedClasses: []
  3091. }),
  3092. smalltalk.BlockClosure);
  3093. smalltalk.addMethod(
  3094. unescape('_new'),
  3095. smalltalk.method({
  3096. selector: unescape('new'),
  3097. category: 'evaluating',
  3098. fn: function (){
  3099. var self=this;
  3100. return new self();
  3101. return self;},
  3102. args: [],
  3103. source: unescape('new%0A%09%22Use%20the%20receiver%20as%20a%20JS%20constructor.%20%0A%09*Do%20not*%20use%20this%20method%20to%20instanciate%20Smalltalk%20objects%21%22%0A%09%3Creturn%20new%20self%28%29%3E'),
  3104. messageSends: [],
  3105. referencedClasses: []
  3106. }),
  3107. smalltalk.BlockClosure);
  3108. smalltalk.addMethod(
  3109. unescape('_applyTo_arguments_'),
  3110. smalltalk.method({
  3111. selector: unescape('applyTo%3Aarguments%3A'),
  3112. category: 'evaluating',
  3113. fn: function (anObject, aCollection){
  3114. var self=this;
  3115. return self.apply(anObject, aCollection);
  3116. return self;},
  3117. args: ["anObject", "aCollection"],
  3118. source: unescape('applyTo%3A%20anObject%20arguments%3A%20aCollection%0A%09%3Creturn%20self.apply%28anObject%2C%20aCollection%29%3E'),
  3119. messageSends: [],
  3120. referencedClasses: []
  3121. }),
  3122. smalltalk.BlockClosure);
  3123. smalltalk.addMethod(
  3124. unescape('_timeToRun'),
  3125. smalltalk.method({
  3126. selector: unescape('timeToRun'),
  3127. category: 'evaluating',
  3128. fn: function (){
  3129. var self=this;
  3130. return smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [self]);
  3131. return self;},
  3132. args: [],
  3133. source: unescape('timeToRun%0A%09%22Answer%20the%20number%20of%20milliseconds%20taken%20to%20execute%20this%20block.%22%0A%0A%09%5E%20Date%20millisecondsToRun%3A%20self'),
  3134. messageSends: ["millisecondsToRun:"],
  3135. referencedClasses: ["Date"]
  3136. }),
  3137. smalltalk.BlockClosure);
  3138. smalltalk.addMethod(
  3139. unescape('_numArgs'),
  3140. smalltalk.method({
  3141. selector: unescape('numArgs'),
  3142. category: 'accessing',
  3143. fn: function (){
  3144. var self=this;
  3145. return self.length;
  3146. return self;},
  3147. args: [],
  3148. source: unescape('numArgs%0A%09%3Creturn%20self.length%3E'),
  3149. messageSends: [],
  3150. referencedClasses: []
  3151. }),
  3152. smalltalk.BlockClosure);
  3153. smalltalk.addMethod(
  3154. unescape('_ensure_'),
  3155. smalltalk.method({
  3156. selector: unescape('ensure%3A'),
  3157. category: 'evaluating',
  3158. fn: function (aBlock){
  3159. var self=this;
  3160. var success=nil;
  3161. success=false;
  3162. smalltalk.send((function(){smalltalk.send(self, "_value", []);success=true;return smalltalk.send(aBlock, "_value", []);}), "_on_do_", [(smalltalk.Error || Error), (function(ex){((($receiver = success).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(aBlock, "_value", []);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(aBlock, "_value", []);})]));return smalltalk.send(ex, "_signal", []);})]);
  3163. return self;},
  3164. args: ["aBlock"],
  3165. source: unescape('ensure%3A%20aBlock%0A%09%7C%20success%20%7C%0A%09success%20%3A%3D%20false.%0A%09%5Bself%20value.%20success%20%3A%3D%20true.%20aBlock%20value%5D%0A%09%09on%3A%20Error%0A%09%09do%3A%20%5B%3Aex%20%7C%0A%09%09%09success%20ifFalse%3A%20%5BaBlock%20value%5D.%0A%09%09%09ex%20signal%5D'),
  3166. messageSends: ["on:do:", "value", "ifFalse:", "signal"],
  3167. referencedClasses: ["Error"]
  3168. }),
  3169. smalltalk.BlockClosure);
  3170. smalltalk.addClass('Boolean', smalltalk.Object, [], 'Kernel');
  3171. smalltalk.addMethod(
  3172. unescape('__eq'),
  3173. smalltalk.method({
  3174. selector: unescape('%3D'),
  3175. category: 'comparing',
  3176. fn: function (aBoolean){
  3177. var self=this;
  3178. try{((($receiver = smalltalk.send(smalltalk.send(aBoolean, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  3179. return Boolean(self == true) == aBoolean;
  3180. return self;
  3181. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  3182. args: ["aBoolean"],
  3183. source: unescape('%3D%20aBoolean%0A%09aBoolean%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%3Creturn%20Boolean%28self%20%3D%3D%20true%29%20%3D%3D%20aBoolean%3E'),
  3184. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  3185. referencedClasses: []
  3186. }),
  3187. smalltalk.Boolean);
  3188. smalltalk.addMethod(
  3189. unescape('_shallowCopy'),
  3190. smalltalk.method({
  3191. selector: unescape('shallowCopy'),
  3192. category: 'copying',
  3193. fn: function (){
  3194. var self=this;
  3195. return self;
  3196. return self;},
  3197. args: [],
  3198. source: unescape('shallowCopy%0A%09%5Eself'),
  3199. messageSends: [],
  3200. referencedClasses: []
  3201. }),
  3202. smalltalk.Boolean);
  3203. smalltalk.addMethod(
  3204. unescape('_deepCopy'),
  3205. smalltalk.method({
  3206. selector: unescape('deepCopy'),
  3207. category: 'copying',
  3208. fn: function (){
  3209. var self=this;
  3210. return self;
  3211. return self;},
  3212. args: [],
  3213. source: unescape('deepCopy%0A%09%5Eself'),
  3214. messageSends: [],
  3215. referencedClasses: []
  3216. }),
  3217. smalltalk.Boolean);
  3218. smalltalk.addMethod(
  3219. unescape('_ifTrue_'),
  3220. smalltalk.method({
  3221. selector: unescape('ifTrue%3A'),
  3222. category: 'controlling',
  3223. fn: function (aBlock){
  3224. var self=this;
  3225. return smalltalk.send(self, "_ifTrue_ifFalse_", [aBlock, (function(){return nil;})]);
  3226. return self;},
  3227. args: ["aBlock"],
  3228. source: unescape('ifTrue%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20aBlock%20ifFalse%3A%20%5B%5D'),
  3229. messageSends: ["ifTrue:ifFalse:"],
  3230. referencedClasses: []
  3231. }),
  3232. smalltalk.Boolean);
  3233. smalltalk.addMethod(
  3234. unescape('_ifFalse_'),
  3235. smalltalk.method({
  3236. selector: unescape('ifFalse%3A'),
  3237. category: 'controlling',
  3238. fn: function (aBlock){
  3239. var self=this;
  3240. return smalltalk.send(self, "_ifTrue_ifFalse_", [(function(){return nil;}), aBlock]);
  3241. return self;},
  3242. args: ["aBlock"],
  3243. source: unescape('ifFalse%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20%5B%5D%20ifFalse%3A%20aBlock'),
  3244. messageSends: ["ifTrue:ifFalse:"],
  3245. referencedClasses: []
  3246. }),
  3247. smalltalk.Boolean);
  3248. smalltalk.addMethod(
  3249. unescape('_ifFalse_ifTrue_'),
  3250. smalltalk.method({
  3251. selector: unescape('ifFalse%3AifTrue%3A'),
  3252. category: 'controlling',
  3253. fn: function (aBlock, anotherBlock){
  3254. var self=this;
  3255. return smalltalk.send(self, "_ifTrue_ifFalse_", [anotherBlock, aBlock]);
  3256. return self;},
  3257. args: ["aBlock", "anotherBlock"],
  3258. source: unescape('ifFalse%3A%20aBlock%20ifTrue%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20anotherBlock%20ifFalse%3A%20aBlock'),
  3259. messageSends: ["ifTrue:ifFalse:"],
  3260. referencedClasses: []
  3261. }),
  3262. smalltalk.Boolean);
  3263. smalltalk.addMethod(
  3264. unescape('_ifTrue_ifFalse_'),
  3265. smalltalk.method({
  3266. selector: unescape('ifTrue%3AifFalse%3A'),
  3267. category: 'controlling',
  3268. fn: function (aBlock, anotherBlock){
  3269. var self=this;
  3270. if(self == true) {
  3271. return aBlock();
  3272. } else {
  3273. return anotherBlock();
  3274. }
  3275. ;
  3276. return self;},
  3277. args: ["aBlock", "anotherBlock"],
  3278. source: unescape('ifTrue%3A%20aBlock%20ifFalse%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3C%0A%09%20%20%20%20if%28self%20%3D%3D%20true%29%20%7B%0A%09%09return%20aBlock%28%29%3B%0A%09%20%20%20%20%7D%20else%20%7B%0A%09%09return%20anotherBlock%28%29%3B%0A%09%20%20%20%20%7D%0A%09%3E'),
  3279. messageSends: [],
  3280. referencedClasses: []
  3281. }),
  3282. smalltalk.Boolean);
  3283. smalltalk.addMethod(
  3284. unescape('_and_'),
  3285. smalltalk.method({
  3286. selector: unescape('and%3A'),
  3287. category: 'controlling',
  3288. fn: function (aBlock){
  3289. var self=this;
  3290. return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [aBlock, (function(){return false;})]);
  3291. return self;},
  3292. args: ["aBlock"],
  3293. source: unescape('and%3A%20aBlock%0A%09%5Eself%20%3D%20true%0A%09%20%20%20%20ifTrue%3A%20aBlock%0A%09%20%20%20%20ifFalse%3A%20%5Bfalse%5D'),
  3294. messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
  3295. referencedClasses: []
  3296. }),
  3297. smalltalk.Boolean);
  3298. smalltalk.addMethod(
  3299. unescape('_or_'),
  3300. smalltalk.method({
  3301. selector: unescape('or%3A'),
  3302. category: 'controlling',
  3303. fn: function (aBlock){
  3304. var self=this;
  3305. return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [(function(){return true;}), aBlock]);
  3306. return self;},
  3307. args: ["aBlock"],
  3308. source: unescape('or%3A%20aBlock%0A%09%5Eself%20%3D%20true%0A%09%20%20%20%20ifTrue%3A%20%5Btrue%5D%0A%09%20%20%20%20ifFalse%3A%20aBlock'),
  3309. messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
  3310. referencedClasses: []
  3311. }),
  3312. smalltalk.Boolean);
  3313. smalltalk.addMethod(
  3314. unescape('_not'),
  3315. smalltalk.method({
  3316. selector: unescape('not'),
  3317. category: 'controlling',
  3318. fn: function (){
  3319. var self=this;
  3320. return smalltalk.send(self, "__eq", [false]);
  3321. return self;},
  3322. args: [],
  3323. source: unescape('not%0A%09%5Eself%20%3D%20false'),
  3324. messageSends: [unescape("%3D")],
  3325. referencedClasses: []
  3326. }),
  3327. smalltalk.Boolean);
  3328. smalltalk.addMethod(
  3329. unescape('_printString'),
  3330. smalltalk.method({
  3331. selector: unescape('printString'),
  3332. category: 'printing',
  3333. fn: function (){
  3334. var self=this;
  3335. return self.toString();
  3336. return self;},
  3337. args: [],
  3338. source: unescape('printString%0A%09%3Creturn%20self.toString%28%29%3E'),
  3339. messageSends: [],
  3340. referencedClasses: []
  3341. }),
  3342. smalltalk.Boolean);
  3343. smalltalk.addMethod(
  3344. unescape('_asJSONObject'),
  3345. smalltalk.method({
  3346. selector: unescape('asJSONObject'),
  3347. category: 'converting',
  3348. fn: function (){
  3349. var self=this;
  3350. return self;
  3351. return self;},
  3352. args: [],
  3353. source: unescape('asJSONObject%0A%09%5Eself'),
  3354. messageSends: [],
  3355. referencedClasses: []
  3356. }),
  3357. smalltalk.Boolean);
  3358. smalltalk.addMethod(
  3359. unescape('_%26'),
  3360. smalltalk.method({
  3361. selector: unescape('%26'),
  3362. category: 'controlling',
  3363. fn: function (aBoolean){
  3364. var self=this;
  3365. if(self == true) {
  3366. return aBoolean;
  3367. } else {
  3368. return false;
  3369. }
  3370. ;
  3371. return self;},
  3372. args: ["aBoolean"],
  3373. source: unescape('%26%20aBoolean%0A%09%3C%0A%09%20%20%20%20if%28self%20%3D%3D%20true%29%20%7B%0A%09%09return%20aBoolean%3B%0A%09%20%20%20%20%7D%20else%20%7B%0A%09%09return%20false%3B%0A%09%20%20%20%20%7D%0A%09%3E'),
  3374. messageSends: [],
  3375. referencedClasses: []
  3376. }),
  3377. smalltalk.Boolean);
  3378. smalltalk.addMethod(
  3379. unescape('_%7C'),
  3380. smalltalk.method({
  3381. selector: unescape('%7C'),
  3382. category: 'controlling',
  3383. fn: function (aBoolean){
  3384. var self=this;
  3385. if(self == true) {
  3386. return true;
  3387. } else {
  3388. return aBoolean;
  3389. }
  3390. ;
  3391. return self;},
  3392. args: ["aBoolean"],
  3393. source: unescape('%7C%20aBoolean%0A%09%3C%0A%09%20%20%20%20if%28self%20%3D%3D%20true%29%20%7B%0A%09%09return%20true%3B%0A%09%20%20%20%20%7D%20else%20%7B%0A%09%09return%20aBoolean%3B%0A%09%20%20%20%20%7D%0A%09%3E'),
  3394. messageSends: [],
  3395. referencedClasses: []
  3396. }),
  3397. smalltalk.Boolean);
  3398. smalltalk.addMethod(
  3399. unescape('__eq_eq'),
  3400. smalltalk.method({
  3401. selector: unescape('%3D%3D'),
  3402. category: 'comparing',
  3403. fn: function (aBoolean){
  3404. var self=this;
  3405. try{((($receiver = smalltalk.send(smalltalk.send(aBoolean, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})]));
  3406. return Boolean(self == true) === Boolean(aBoolean == true);
  3407. return self;
  3408. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  3409. args: ["aBoolean"],
  3410. source: unescape('%3D%3D%20aBoolean%0A%09aBoolean%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%3Creturn%20Boolean%28self%20%3D%3D%20true%29%20%3D%3D%3D%20Boolean%28aBoolean%20%3D%3D%20true%29%3E'),
  3411. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  3412. referencedClasses: []
  3413. }),
  3414. smalltalk.Boolean);
  3415. smalltalk.addClass('Date', smalltalk.Object, [], 'Kernel');
  3416. smalltalk.Date.comment=unescape('The%20Date%20class%20is%20used%20to%20work%20with%20dates%20and%20times.')
  3417. smalltalk.addMethod(
  3418. unescape('_year'),
  3419. smalltalk.method({
  3420. selector: unescape('year'),
  3421. category: 'accessing',
  3422. fn: function (){
  3423. var self=this;
  3424. return self.getFullYear();
  3425. return self;},
  3426. args: [],
  3427. source: unescape('year%0A%09%3Creturn%20self.getFullYear%28%29%3E'),
  3428. messageSends: [],
  3429. referencedClasses: []
  3430. }),
  3431. smalltalk.Date);
  3432. smalltalk.addMethod(
  3433. unescape('_month'),
  3434. smalltalk.method({
  3435. selector: unescape('month'),
  3436. category: 'accessing',
  3437. fn: function (){
  3438. var self=this;
  3439. return self.getMonth() + 1;
  3440. return self;},
  3441. args: [],
  3442. source: unescape('month%0A%09%3Creturn%20self.getMonth%28%29%20+%201%3E'),
  3443. messageSends: [],
  3444. referencedClasses: []
  3445. }),
  3446. smalltalk.Date);
  3447. smalltalk.addMethod(
  3448. unescape('_month_'),
  3449. smalltalk.method({
  3450. selector: unescape('month%3A'),
  3451. category: 'accessing',
  3452. fn: function (aNumber){
  3453. var self=this;
  3454. self.setMonth(aNumber - 1);
  3455. return self;},
  3456. args: ["aNumber"],
  3457. source: unescape('month%3A%20aNumber%0A%09%3Cself.setMonth%28aNumber%20-%201%29%3E'),
  3458. messageSends: [],
  3459. referencedClasses: []
  3460. }),
  3461. smalltalk.Date);
  3462. smalltalk.addMethod(
  3463. unescape('_day'),
  3464. smalltalk.method({
  3465. selector: unescape('day'),
  3466. category: 'accessing',
  3467. fn: function (){
  3468. var self=this;
  3469. return smalltalk.send(self, "_dayOfWeek", []);
  3470. return self;},
  3471. args: [],
  3472. source: unescape('day%0A%09%5Eself%20dayOfWeek'),
  3473. messageSends: ["dayOfWeek"],
  3474. referencedClasses: []
  3475. }),
  3476. smalltalk.Date);
  3477. smalltalk.addMethod(
  3478. unescape('_dayOfWeek'),
  3479. smalltalk.method({
  3480. selector: unescape('dayOfWeek'),
  3481. category: 'accessing',
  3482. fn: function (){
  3483. var self=this;
  3484. return self.getDay() + 1;
  3485. return self;},
  3486. args: [],
  3487. source: unescape('dayOfWeek%0A%09%3Creturn%20self.getDay%28%29%20+%201%3E'),
  3488. messageSends: [],
  3489. referencedClasses: []
  3490. }),
  3491. smalltalk.Date);
  3492. smalltalk.addMethod(
  3493. unescape('_dayOfWeek_'),
  3494. smalltalk.method({
  3495. selector: unescape('dayOfWeek%3A'),
  3496. category: 'accessing',
  3497. fn: function (aNumber){
  3498. var self=this;
  3499. return self.setDay(aNumber - 1);
  3500. return self;},
  3501. args: ["aNumber"],
  3502. source: unescape('dayOfWeek%3A%20aNumber%0A%09%3Creturn%20self.setDay%28aNumber%20-%201%29%3E'),
  3503. messageSends: [],
  3504. referencedClasses: []
  3505. }),
  3506. smalltalk.Date);
  3507. smalltalk.addMethod(
  3508. unescape('_day_'),
  3509. smalltalk.method({
  3510. selector: unescape('day%3A'),
  3511. category: 'accessing',
  3512. fn: function (aNumber){
  3513. var self=this;
  3514. smalltalk.send(self, "_day_", [aNumber]);
  3515. return self;},
  3516. args: ["aNumber"],
  3517. source: unescape('day%3A%20aNumber%0A%09self%20day%3A%20aNumber'),
  3518. messageSends: ["day:"],
  3519. referencedClasses: []
  3520. }),
  3521. smalltalk.Date);
  3522. smalltalk.addMethod(
  3523. unescape('_year_'),
  3524. smalltalk.method({
  3525. selector: unescape('year%3A'),
  3526. category: 'accessing',
  3527. fn: function (aNumber){
  3528. var self=this;
  3529. self.setFullYear(aNumber);
  3530. return self;},
  3531. args: ["aNumber"],
  3532. source: unescape('year%3A%20aNumber%0A%09%3Cself.setFullYear%28aNumber%29%3E'),
  3533. messageSends: [],
  3534. referencedClasses: []
  3535. }),
  3536. smalltalk.Date);
  3537. smalltalk.addMethod(
  3538. unescape('_dayOfMonth'),
  3539. smalltalk.method({
  3540. selector: unescape('dayOfMonth'),
  3541. category: 'accessing',
  3542. fn: function (){
  3543. var self=this;
  3544. return self.getDate();
  3545. return self;},
  3546. args: [],
  3547. source: unescape('dayOfMonth%0A%09%3Creturn%20self.getDate%28%29%3E'),
  3548. messageSends: [],
  3549. referencedClasses: []
  3550. }),
  3551. smalltalk.Date);
  3552. smalltalk.addMethod(
  3553. unescape('_dayOfMonth_'),
  3554. smalltalk.method({
  3555. selector: unescape('dayOfMonth%3A'),
  3556. category: 'accessing',
  3557. fn: function (aNumber){
  3558. var self=this;
  3559. self.setDate(aNumber);
  3560. return self;},
  3561. args: ["aNumber"],
  3562. source: unescape('dayOfMonth%3A%20aNumber%0A%09%3Cself.setDate%28aNumber%29%3E'),
  3563. messageSends: [],
  3564. referencedClasses: []
  3565. }),
  3566. smalltalk.Date);
  3567. smalltalk.addMethod(
  3568. unescape('_asString'),
  3569. smalltalk.method({
  3570. selector: unescape('asString'),
  3571. category: 'converting',
  3572. fn: function (){
  3573. var self=this;
  3574. return self.toString();
  3575. return self;},
  3576. args: [],
  3577. source: unescape('asString%0A%09%3Creturn%20self.toString%28%29%3E'),
  3578. messageSends: [],
  3579. referencedClasses: []
  3580. }),
  3581. smalltalk.Date);
  3582. smalltalk.addMethod(
  3583. unescape('_printString'),
  3584. smalltalk.method({
  3585. selector: unescape('printString'),
  3586. category: 'printing',
  3587. fn: function (){
  3588. var self=this;
  3589. return smalltalk.send(self, "_asString", []);
  3590. return self;},
  3591. args: [],
  3592. source: unescape('printString%0A%09%5Eself%20asString'),
  3593. messageSends: ["asString"],
  3594. referencedClasses: []
  3595. }),
  3596. smalltalk.Date);
  3597. smalltalk.addMethod(
  3598. unescape('_asMilliseconds'),
  3599. smalltalk.method({
  3600. selector: unescape('asMilliseconds'),
  3601. category: 'converting',
  3602. fn: function (){
  3603. var self=this;
  3604. return smalltalk.send(self, "_time", []);
  3605. return self;},
  3606. args: [],
  3607. source: unescape('asMilliseconds%0A%09%5Eself%20time'),
  3608. messageSends: ["time"],
  3609. referencedClasses: []
  3610. }),
  3611. smalltalk.Date);
  3612. smalltalk.addMethod(
  3613. unescape('_time'),
  3614. smalltalk.method({
  3615. selector: unescape('time'),
  3616. category: 'accessing',
  3617. fn: function (){
  3618. var self=this;
  3619. return self.getTime();
  3620. return self;},
  3621. args: [],
  3622. source: unescape('time%0A%09%3Creturn%20self.getTime%28%29%3E'),
  3623. messageSends: [],
  3624. referencedClasses: []
  3625. }),
  3626. smalltalk.Date);
  3627. smalltalk.addMethod(
  3628. unescape('_time_'),
  3629. smalltalk.method({
  3630. selector: unescape('time%3A'),
  3631. category: 'accessing',
  3632. fn: function (aNumber){
  3633. var self=this;
  3634. self.setTime(aNumber);
  3635. return self;},
  3636. args: ["aNumber"],
  3637. source: unescape('time%3A%20aNumber%0A%09%3Cself.setTime%28aNumber%29%3E'),
  3638. messageSends: [],
  3639. referencedClasses: []
  3640. }),
  3641. smalltalk.Date);
  3642. smalltalk.addMethod(
  3643. unescape('_asDateString'),
  3644. smalltalk.method({
  3645. selector: unescape('asDateString'),
  3646. category: 'converting',
  3647. fn: function (){
  3648. var self=this;
  3649. return self.toDateString();
  3650. return self;},
  3651. args: [],
  3652. source: unescape('asDateString%0A%09%3Creturn%20self.toDateString%28%29%3E'),
  3653. messageSends: [],
  3654. referencedClasses: []
  3655. }),
  3656. smalltalk.Date);
  3657. smalltalk.addMethod(
  3658. unescape('_asTimeString'),
  3659. smalltalk.method({
  3660. selector: unescape('asTimeString'),
  3661. category: 'converting',
  3662. fn: function (){
  3663. var self=this;
  3664. return self.toTimeString();
  3665. return self;},
  3666. args: [],
  3667. source: unescape('asTimeString%0A%09%3Creturn%20self.toTimeString%28%29%3E'),
  3668. messageSends: [],
  3669. referencedClasses: []
  3670. }),
  3671. smalltalk.Date);
  3672. smalltalk.addMethod(
  3673. unescape('_asLocaleString'),
  3674. smalltalk.method({
  3675. selector: unescape('asLocaleString'),
  3676. category: 'converting',
  3677. fn: function (){
  3678. var self=this;
  3679. return self.toLocaleString();
  3680. return self;},
  3681. args: [],
  3682. source: unescape('asLocaleString%0A%09%3Creturn%20self.toLocaleString%28%29%3E'),
  3683. messageSends: [],
  3684. referencedClasses: []
  3685. }),
  3686. smalltalk.Date);
  3687. smalltalk.addMethod(
  3688. unescape('_asNumber'),
  3689. smalltalk.method({
  3690. selector: unescape('asNumber'),
  3691. category: 'converting',
  3692. fn: function (){
  3693. var self=this;
  3694. return smalltalk.send(self, "_asMilliseconds", []);
  3695. return self;},
  3696. args: [],
  3697. source: unescape('asNumber%0A%09%5Eself%20asMilliseconds'),
  3698. messageSends: ["asMilliseconds"],
  3699. referencedClasses: []
  3700. }),
  3701. smalltalk.Date);
  3702. smalltalk.addMethod(
  3703. unescape('_hours_'),
  3704. smalltalk.method({
  3705. selector: unescape('hours%3A'),
  3706. category: 'accessing',
  3707. fn: function (aNumber){
  3708. var self=this;
  3709. self.setHours(aNumber);
  3710. return self;},
  3711. args: ["aNumber"],
  3712. source: unescape('hours%3A%20aNumber%0A%09%3Cself.setHours%28aNumber%29%3E'),
  3713. messageSends: [],
  3714. referencedClasses: []
  3715. }),
  3716. smalltalk.Date);
  3717. smalltalk.addMethod(
  3718. unescape('_minutes_'),
  3719. smalltalk.method({
  3720. selector: unescape('minutes%3A'),
  3721. category: 'accessing',
  3722. fn: function (aNumber){
  3723. var self=this;
  3724. self.setMinutes(aNumber);
  3725. return self;},
  3726. args: ["aNumber"],
  3727. source: unescape('minutes%3A%20aNumber%0A%09%3Cself.setMinutes%28aNumber%29%3E'),
  3728. messageSends: [],
  3729. referencedClasses: []
  3730. }),
  3731. smalltalk.Date);
  3732. smalltalk.addMethod(
  3733. unescape('_seconds_'),
  3734. smalltalk.method({
  3735. selector: unescape('seconds%3A'),
  3736. category: 'accessing',
  3737. fn: function (aNumber){
  3738. var self=this;
  3739. self.setSeconds(aNumber);
  3740. return self;},
  3741. args: ["aNumber"],
  3742. source: unescape('seconds%3A%20aNumber%0A%09%3Cself.setSeconds%28aNumber%29%3E'),
  3743. messageSends: [],
  3744. referencedClasses: []
  3745. }),
  3746. smalltalk.Date);
  3747. smalltalk.addMethod(
  3748. unescape('_milliseconds_'),
  3749. smalltalk.method({
  3750. selector: unescape('milliseconds%3A'),
  3751. category: 'accessing',
  3752. fn: function (aNumber){
  3753. var self=this;
  3754. self.setMilliseconds(aNumber);
  3755. return self;},
  3756. args: ["aNumber"],
  3757. source: unescape('milliseconds%3A%20aNumber%0A%09%3Cself.setMilliseconds%28aNumber%29%3E'),
  3758. messageSends: [],
  3759. referencedClasses: []
  3760. }),
  3761. smalltalk.Date);
  3762. smalltalk.addMethod(
  3763. unescape('_hours'),
  3764. smalltalk.method({
  3765. selector: unescape('hours'),
  3766. category: 'accessing',
  3767. fn: function (){
  3768. var self=this;
  3769. return self.getHours();
  3770. return self;},
  3771. args: [],
  3772. source: unescape('hours%0A%09%3Creturn%20self.getHours%28%29%3E'),
  3773. messageSends: [],
  3774. referencedClasses: []
  3775. }),
  3776. smalltalk.Date);
  3777. smalltalk.addMethod(
  3778. unescape('_minutes'),
  3779. smalltalk.method({
  3780. selector: unescape('minutes'),
  3781. category: 'accessing',
  3782. fn: function (){
  3783. var self=this;
  3784. return self.getMinutes();
  3785. return self;},
  3786. args: [],
  3787. source: unescape('minutes%0A%09%3Creturn%20self.getMinutes%28%29%3E'),
  3788. messageSends: [],
  3789. referencedClasses: []
  3790. }),
  3791. smalltalk.Date);
  3792. smalltalk.addMethod(
  3793. unescape('_seconds'),
  3794. smalltalk.method({
  3795. selector: unescape('seconds'),
  3796. category: 'accessing',
  3797. fn: function (){
  3798. var self=this;
  3799. return self.getSeconds();
  3800. return self;},
  3801. args: [],
  3802. source: unescape('seconds%0A%09%3Creturn%20self.getSeconds%28%29%3E'),
  3803. messageSends: [],
  3804. referencedClasses: []
  3805. }),
  3806. smalltalk.Date);
  3807. smalltalk.addMethod(
  3808. unescape('_milliseconds'),
  3809. smalltalk.method({
  3810. selector: unescape('milliseconds'),
  3811. category: 'accessing',
  3812. fn: function (){
  3813. var self=this;
  3814. return self.getMilliseconds();
  3815. return self;},
  3816. args: [],
  3817. source: unescape('milliseconds%0A%09%3Creturn%20self.getMilliseconds%28%29%3E'),
  3818. messageSends: [],
  3819. referencedClasses: []
  3820. }),
  3821. smalltalk.Date);
  3822. smalltalk.addMethod(
  3823. unescape('__lt'),
  3824. smalltalk.method({
  3825. selector: unescape('%3C'),
  3826. category: 'comparing',
  3827. fn: function (aDate){
  3828. var self=this;
  3829. return self < aDate;
  3830. return self;},
  3831. args: ["aDate"],
  3832. source: unescape('%3C%20aDate%0A%09%3Creturn%20self%20%3C%20aDate%3E'),
  3833. messageSends: [],
  3834. referencedClasses: []
  3835. }),
  3836. smalltalk.Date);
  3837. smalltalk.addMethod(
  3838. unescape('__gt'),
  3839. smalltalk.method({
  3840. selector: unescape('%3E'),
  3841. category: 'comparing',
  3842. fn: function (aDate){
  3843. var self=this;
  3844. return self > aDate;
  3845. return self;},
  3846. args: ["aDate"],
  3847. source: unescape('%3E%20aDate%0A%09%3Creturn%20self%20%3E%3E%20aDate%3E'),
  3848. messageSends: [],
  3849. referencedClasses: []
  3850. }),
  3851. smalltalk.Date);
  3852. smalltalk.addMethod(
  3853. unescape('__lt_eq'),
  3854. smalltalk.method({
  3855. selector: unescape('%3C%3D'),
  3856. category: 'comparing',
  3857. fn: function (aDate){
  3858. var self=this;
  3859. return self <= aDate;
  3860. return self;},
  3861. args: ["aDate"],
  3862. source: unescape('%3C%3D%20aDate%0A%09%3Creturn%20self%20%3C%3D%20aDate%3E'),
  3863. messageSends: [],
  3864. referencedClasses: []
  3865. }),
  3866. smalltalk.Date);
  3867. smalltalk.addMethod(
  3868. unescape('__gt_eq'),
  3869. smalltalk.method({
  3870. selector: unescape('%3E%3D'),
  3871. category: 'comparing',
  3872. fn: function (aDate){
  3873. var self=this;
  3874. return self >= aDate;
  3875. return self;},
  3876. args: ["aDate"],
  3877. source: unescape('%3E%3D%20aDate%0A%09%3Creturn%20self%20%3E%3E%3D%20aDate%3E'),
  3878. messageSends: [],
  3879. referencedClasses: []
  3880. }),
  3881. smalltalk.Date);
  3882. smalltalk.addMethod(
  3883. unescape('__minus'),
  3884. smalltalk.method({
  3885. selector: unescape('-'),
  3886. category: 'arithmetic',
  3887. fn: function (aDate){
  3888. var self=this;
  3889. return self - aDate;
  3890. return self;},
  3891. args: ["aDate"],
  3892. source: unescape('-%20aDate%0A%09%3Creturn%20self%20-%20aDate%3E'),
  3893. messageSends: [],
  3894. referencedClasses: []
  3895. }),
  3896. smalltalk.Date);
  3897. smalltalk.addMethod(
  3898. unescape('__plus'),
  3899. smalltalk.method({
  3900. selector: unescape('+'),
  3901. category: 'arithmetic',
  3902. fn: function (aDate){
  3903. var self=this;
  3904. return self + aDate;
  3905. return self;},
  3906. args: ["aDate"],
  3907. source: unescape('+%20aDate%0A%09%3Creturn%20self%20+%20aDate%3E'),
  3908. messageSends: [],
  3909. referencedClasses: []
  3910. }),
  3911. smalltalk.Date);
  3912. smalltalk.addMethod(
  3913. unescape('_asJSONObject'),
  3914. smalltalk.method({
  3915. selector: unescape('asJSONObject'),
  3916. category: 'converting',
  3917. fn: function (){
  3918. var self=this;
  3919. return self;
  3920. return self;},
  3921. args: [],
  3922. source: unescape('asJSONObject%0A%09%5Eself'),
  3923. messageSends: [],
  3924. referencedClasses: []
  3925. }),
  3926. smalltalk.Date);
  3927. smalltalk.addMethod(
  3928. unescape('_new_'),
  3929. smalltalk.method({
  3930. selector: unescape('new%3A'),
  3931. category: 'instance creation',
  3932. fn: function (anObject){
  3933. var self=this;
  3934. return new Date(anObject);
  3935. return self;},
  3936. args: ["anObject"],
  3937. source: unescape('new%3A%20anObject%0A%09%3Creturn%20new%20Date%28anObject%29%3E'),
  3938. messageSends: [],
  3939. referencedClasses: []
  3940. }),
  3941. smalltalk.Date.klass);
  3942. smalltalk.addMethod(
  3943. unescape('_fromString_'),
  3944. smalltalk.method({
  3945. selector: unescape('fromString%3A'),
  3946. category: 'instance creation',
  3947. fn: function (aString){
  3948. var self=this;
  3949. return smalltalk.send(self, "_new_", [aString]);
  3950. return self;},
  3951. args: ["aString"],
  3952. source: unescape('fromString%3A%20aString%0A%09%22Example%3A%20Date%20fromString%28%272011/04/15%2000%3A00%3A00%27%29%22%0A%09%5Eself%20new%3A%20aString'),
  3953. messageSends: ["new:"],
  3954. referencedClasses: []
  3955. }),
  3956. smalltalk.Date.klass);
  3957. smalltalk.addMethod(
  3958. unescape('_fromSeconds_'),
  3959. smalltalk.method({
  3960. selector: unescape('fromSeconds%3A'),
  3961. category: 'instance creation',
  3962. fn: function (aNumber){
  3963. var self=this;
  3964. return smalltalk.send(self, "_fromMilliseconds_", [((($receiver = aNumber).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))]);
  3965. return self;},
  3966. args: ["aNumber"],
  3967. source: unescape('fromSeconds%3A%20aNumber%0A%09%5Eself%20fromMilliseconds%3A%20aNumber%20*%201000'),
  3968. messageSends: ["fromMilliseconds:", unescape("*")],
  3969. referencedClasses: []
  3970. }),
  3971. smalltalk.Date.klass);
  3972. smalltalk.addMethod(
  3973. unescape('_fromMilliseconds_'),
  3974. smalltalk.method({
  3975. selector: unescape('fromMilliseconds%3A'),
  3976. category: 'instance creation',
  3977. fn: function (aNumber){
  3978. var self=this;
  3979. return smalltalk.send(self, "_new_", [aNumber]);
  3980. return self;},
  3981. args: ["aNumber"],
  3982. source: unescape('fromMilliseconds%3A%20aNumber%0A%09%5Eself%20new%3A%20aNumber'),
  3983. messageSends: ["new:"],
  3984. referencedClasses: []
  3985. }),
  3986. smalltalk.Date.klass);
  3987. smalltalk.addMethod(
  3988. unescape('_today'),
  3989. smalltalk.method({
  3990. selector: unescape('today'),
  3991. category: 'instance creation',
  3992. fn: function (){
  3993. var self=this;
  3994. return smalltalk.send(self, "_new", []);
  3995. return self;},
  3996. args: [],
  3997. source: unescape('today%0A%09%5Eself%20new'),
  3998. messageSends: ["new"],
  3999. referencedClasses: []
  4000. }),
  4001. smalltalk.Date.klass);
  4002. smalltalk.addMethod(
  4003. unescape('_now'),
  4004. smalltalk.method({
  4005. selector: unescape('now'),
  4006. category: 'instance creation',
  4007. fn: function (){
  4008. var self=this;
  4009. return smalltalk.send(self, "_today", []);
  4010. return self;},
  4011. args: [],
  4012. source: unescape('now%0A%09%5Eself%20today'),
  4013. messageSends: ["today"],
  4014. referencedClasses: []
  4015. }),
  4016. smalltalk.Date.klass);
  4017. smalltalk.addMethod(
  4018. unescape('_millisecondsToRun_'),
  4019. smalltalk.method({
  4020. selector: unescape('millisecondsToRun%3A'),
  4021. category: 'instance creation',
  4022. fn: function (aBlock){
  4023. var self=this;
  4024. var t=nil;
  4025. t=smalltalk.send((smalltalk.Date || Date), "_now", []);
  4026. smalltalk.send(aBlock, "_value", []);
  4027. return ((($receiver = smalltalk.send((smalltalk.Date || Date), "_now", [])).klass === smalltalk.Number) ? $receiver -t : smalltalk.send($receiver, "__minus", [t]));
  4028. return self;},
  4029. args: ["aBlock"],
  4030. source: unescape('millisecondsToRun%3A%20aBlock%0A%09%7C%20t%20%7C%0A%09t%20%3A%3D%20Date%20now.%0A%09aBlock%20value.%0A%09%5EDate%20now%20-%20t'),
  4031. messageSends: ["now", "value", unescape("-")],
  4032. referencedClasses: ["Date"]
  4033. }),
  4034. smalltalk.Date.klass);
  4035. smalltalk.addClass('UndefinedObject', smalltalk.Object, [], 'Kernel');
  4036. smalltalk.addMethod(
  4037. unescape('_subclass_instanceVariableNames_'),
  4038. smalltalk.method({
  4039. selector: unescape('subclass%3AinstanceVariableNames%3A'),
  4040. category: 'class creation',
  4041. fn: function (aString, anotherString){
  4042. var self=this;
  4043. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
  4044. return self;},
  4045. args: ["aString", "anotherString"],
  4046. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%20package%3A%20nil'),
  4047. messageSends: ["subclass:instanceVariableNames:package:"],
  4048. referencedClasses: []
  4049. }),
  4050. smalltalk.UndefinedObject);
  4051. smalltalk.addMethod(
  4052. unescape('_subclass_instanceVariableNames_category_'),
  4053. smalltalk.method({
  4054. selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
  4055. category: 'class creation',
  4056. fn: function (aString, aString2, aString3){
  4057. var self=this;
  4058. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  4059. return self;},
  4060. args: ["aString", "aString2", "aString3"],
  4061. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20category%3A%20aString3%0A%09%22Kept%20for%20compatibility.%22%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  4062. messageSends: ["subclass:instanceVariableNames:package:"],
  4063. referencedClasses: []
  4064. }),
  4065. smalltalk.UndefinedObject);
  4066. smalltalk.addMethod(
  4067. unescape('_shallowCopy'),
  4068. smalltalk.method({
  4069. selector: unescape('shallowCopy'),
  4070. category: 'copying',
  4071. fn: function (){
  4072. var self=this;
  4073. return self;
  4074. return self;},
  4075. args: [],
  4076. source: unescape('shallowCopy%0A%09%5Eself'),
  4077. messageSends: [],
  4078. referencedClasses: []
  4079. }),
  4080. smalltalk.UndefinedObject);
  4081. smalltalk.addMethod(
  4082. unescape('_deepCopy'),
  4083. smalltalk.method({
  4084. selector: unescape('deepCopy'),
  4085. category: 'copying',
  4086. fn: function (){
  4087. var self=this;
  4088. return self;
  4089. return self;},
  4090. args: [],
  4091. source: unescape('deepCopy%0A%09%5Eself'),
  4092. messageSends: [],
  4093. referencedClasses: []
  4094. }),
  4095. smalltalk.UndefinedObject);
  4096. smalltalk.addMethod(
  4097. unescape('_ifNil_'),
  4098. smalltalk.method({
  4099. selector: unescape('ifNil%3A'),
  4100. category: 'testing',
  4101. fn: function (aBlock){
  4102. var self=this;
  4103. return smalltalk.send(self, "_ifNil_ifNotNil_", [aBlock, (function(){return nil;})]);
  4104. return self;},
  4105. args: ["aBlock"],
  4106. source: unescape('ifNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifNil%3A%20aBlock%20ifNotNil%3A%20%5B%5D'),
  4107. messageSends: ["ifNil:ifNotNil:"],
  4108. referencedClasses: []
  4109. }),
  4110. smalltalk.UndefinedObject);
  4111. smalltalk.addMethod(
  4112. unescape('_ifNotNil_'),
  4113. smalltalk.method({
  4114. selector: unescape('ifNotNil%3A'),
  4115. category: 'testing',
  4116. fn: function (aBlock){
  4117. var self=this;
  4118. return self;
  4119. return self;},
  4120. args: ["aBlock"],
  4121. source: unescape('ifNotNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself'),
  4122. messageSends: [],
  4123. referencedClasses: []
  4124. }),
  4125. smalltalk.UndefinedObject);
  4126. smalltalk.addMethod(
  4127. unescape('_ifNil_ifNotNil_'),
  4128. smalltalk.method({
  4129. selector: unescape('ifNil%3AifNotNil%3A'),
  4130. category: 'testing',
  4131. fn: function (aBlock, anotherBlock){
  4132. var self=this;
  4133. return smalltalk.send(aBlock, "_value", []);
  4134. return self;},
  4135. args: ["aBlock", "anotherBlock"],
  4136. source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  4137. messageSends: ["value"],
  4138. referencedClasses: []
  4139. }),
  4140. smalltalk.UndefinedObject);
  4141. smalltalk.addMethod(
  4142. unescape('_ifNotNil_ifNil_'),
  4143. smalltalk.method({
  4144. selector: unescape('ifNotNil%3AifNil%3A'),
  4145. category: 'testing',
  4146. fn: function (aBlock, anotherBlock){
  4147. var self=this;
  4148. return smalltalk.send(anotherBlock, "_value", []);
  4149. return self;},
  4150. args: ["aBlock", "anotherBlock"],
  4151. source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EanotherBlock%20value'),
  4152. messageSends: ["value"],
  4153. referencedClasses: []
  4154. }),
  4155. smalltalk.UndefinedObject);
  4156. smalltalk.addMethod(
  4157. unescape('_isNil'),
  4158. smalltalk.method({
  4159. selector: unescape('isNil'),
  4160. category: 'testing',
  4161. fn: function (){
  4162. var self=this;
  4163. return true;
  4164. return self;},
  4165. args: [],
  4166. source: unescape('isNil%0A%09%5Etrue'),
  4167. messageSends: [],
  4168. referencedClasses: []
  4169. }),
  4170. smalltalk.UndefinedObject);
  4171. smalltalk.addMethod(
  4172. unescape('_notNil'),
  4173. smalltalk.method({
  4174. selector: unescape('notNil'),
  4175. category: 'testing',
  4176. fn: function (){
  4177. var self=this;
  4178. return false;
  4179. return self;},
  4180. args: [],
  4181. source: unescape('notNil%0A%09%5Efalse'),
  4182. messageSends: [],
  4183. referencedClasses: []
  4184. }),
  4185. smalltalk.UndefinedObject);
  4186. smalltalk.addMethod(
  4187. unescape('_printString'),
  4188. smalltalk.method({
  4189. selector: unescape('printString'),
  4190. category: 'printing',
  4191. fn: function (){
  4192. var self=this;
  4193. return "nil";
  4194. return self;},
  4195. args: [],
  4196. source: unescape('printString%0A%20%20%20%20%5E%27nil%27'),
  4197. messageSends: [],
  4198. referencedClasses: []
  4199. }),
  4200. smalltalk.UndefinedObject);
  4201. smalltalk.addMethod(
  4202. unescape('_subclass_instanceVariableNames_package_'),
  4203. smalltalk.method({
  4204. selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
  4205. category: 'class creation',
  4206. fn: function (aString, aString2, aString3){
  4207. var self=this;
  4208. return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
  4209. return self;},
  4210. args: ["aString", "aString2", "aString3"],
  4211. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3%0A%09%5EClassBuilder%20new%0A%09%20%20%20%20superclass%3A%20self%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  4212. messageSends: ["superclass:subclass:instanceVariableNames:package:", "new"],
  4213. referencedClasses: ["ClassBuilder"]
  4214. }),
  4215. smalltalk.UndefinedObject);
  4216. smalltalk.addMethod(
  4217. unescape('_new'),
  4218. smalltalk.method({
  4219. selector: unescape('new'),
  4220. category: 'instance creation',
  4221. fn: function (){
  4222. var self=this;
  4223. smalltalk.send(self, "_error_", ["You cannot create new instances of UndefinedObject. Use nil"]);
  4224. return self;},
  4225. args: [],
  4226. source: unescape('new%0A%09%20%20%20%20self%20error%3A%20%27You%20cannot%20create%20new%20instances%20of%20UndefinedObject.%20Use%20nil%27'),
  4227. messageSends: ["error:"],
  4228. referencedClasses: []
  4229. }),
  4230. smalltalk.UndefinedObject.klass);
  4231. smalltalk.addClass('Collection', smalltalk.Object, [], 'Kernel');
  4232. smalltalk.addMethod(
  4233. unescape('_size'),
  4234. smalltalk.method({
  4235. selector: unescape('size'),
  4236. category: 'accessing',
  4237. fn: function (){
  4238. var self=this;
  4239. smalltalk.send(self, "_subclassResponsibility", []);
  4240. return self;},
  4241. args: [],
  4242. source: unescape('size%0A%09self%20subclassResponsibility'),
  4243. messageSends: ["subclassResponsibility"],
  4244. referencedClasses: []
  4245. }),
  4246. smalltalk.Collection);
  4247. smalltalk.addMethod(
  4248. unescape('_readStream'),
  4249. smalltalk.method({
  4250. selector: unescape('readStream'),
  4251. category: 'accessing',
  4252. fn: function (){
  4253. var self=this;
  4254. return smalltalk.send(self, "_stream", []);
  4255. return self;},
  4256. args: [],
  4257. source: unescape('readStream%0A%09%5Eself%20stream'),
  4258. messageSends: ["stream"],
  4259. referencedClasses: []
  4260. }),
  4261. smalltalk.Collection);
  4262. smalltalk.addMethod(
  4263. unescape('_writeStream'),
  4264. smalltalk.method({
  4265. selector: unescape('writeStream'),
  4266. category: 'accessing',
  4267. fn: function (){
  4268. var self=this;
  4269. return smalltalk.send(self, "_stream", []);
  4270. return self;},
  4271. args: [],
  4272. source: unescape('writeStream%0A%09%5Eself%20stream'),
  4273. messageSends: ["stream"],
  4274. referencedClasses: []
  4275. }),
  4276. smalltalk.Collection);
  4277. smalltalk.addMethod(
  4278. unescape('_stream'),
  4279. smalltalk.method({
  4280. selector: unescape('stream'),
  4281. category: 'accessing',
  4282. fn: function (){
  4283. var self=this;
  4284. return smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [self]);
  4285. return self;},
  4286. args: [],
  4287. source: unescape('stream%0A%09%5Eself%20streamClass%20on%3A%20self'),
  4288. messageSends: ["on:", "streamClass"],
  4289. referencedClasses: []
  4290. }),
  4291. smalltalk.Collection);
  4292. smalltalk.addMethod(
  4293. unescape('_streamClass'),
  4294. smalltalk.method({
  4295. selector: unescape('streamClass'),
  4296. category: 'accessing',
  4297. fn: function (){
  4298. var self=this;
  4299. return smalltalk.send(smalltalk.send(self, "_class", []), "_streamClass", []);
  4300. return self;},
  4301. args: [],
  4302. source: unescape('streamClass%0A%09%5Eself%20class%20streamClass'),
  4303. messageSends: ["streamClass", "class"],
  4304. referencedClasses: []
  4305. }),
  4306. smalltalk.Collection);
  4307. smalltalk.addMethod(
  4308. unescape('_add_'),
  4309. smalltalk.method({
  4310. selector: unescape('add%3A'),
  4311. category: 'adding/removing',
  4312. fn: function (anObject){
  4313. var self=this;
  4314. smalltalk.send(self, "_subclassResponsibility", []);
  4315. return self;},
  4316. args: ["anObject"],
  4317. source: unescape('add%3A%20anObject%0A%09self%20subclassResponsibility'),
  4318. messageSends: ["subclassResponsibility"],
  4319. referencedClasses: []
  4320. }),
  4321. smalltalk.Collection);
  4322. smalltalk.addMethod(
  4323. unescape('_addAll_'),
  4324. smalltalk.method({
  4325. selector: unescape('addAll%3A'),
  4326. category: 'adding/removing',
  4327. fn: function (aCollection){
  4328. var self=this;
  4329. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_add_", [each]);})]);
  4330. return aCollection;
  4331. return self;},
  4332. args: ["aCollection"],
  4333. source: unescape('addAll%3A%20aCollection%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20self%20add%3A%20each%5D.%0A%09%5EaCollection'),
  4334. messageSends: ["do:", "add:"],
  4335. referencedClasses: []
  4336. }),
  4337. smalltalk.Collection);
  4338. smalltalk.addMethod(
  4339. unescape('__comma'),
  4340. smalltalk.method({
  4341. selector: unescape('%2C'),
  4342. category: 'copying',
  4343. fn: function (aCollection){
  4344. var self=this;
  4345. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  4346. return self;},
  4347. args: ["aCollection"],
  4348. source: unescape('%2C%20aCollection%0A%09%5Eself%20copy%20%0A%09%20%20%20%20addAll%3A%20aCollection%3B%20%0A%09%20%20%20%20yourself'),
  4349. messageSends: ["addAll:", "yourself", "copy"],
  4350. referencedClasses: []
  4351. }),
  4352. smalltalk.Collection);
  4353. smalltalk.addMethod(
  4354. unescape('_copyWith_'),
  4355. smalltalk.method({
  4356. selector: unescape('copyWith%3A'),
  4357. category: 'copying',
  4358. fn: function (anObject){
  4359. var self=this;
  4360. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  4361. return self;},
  4362. args: ["anObject"],
  4363. source: unescape('copyWith%3A%20anObject%0A%09%5Eself%20copy%20add%3A%20anObject%3B%20yourself'),
  4364. messageSends: ["add:", "yourself", "copy"],
  4365. referencedClasses: []
  4366. }),
  4367. smalltalk.Collection);
  4368. smalltalk.addMethod(
  4369. unescape('_copyWithAll_'),
  4370. smalltalk.method({
  4371. selector: unescape('copyWithAll%3A'),
  4372. category: 'copying',
  4373. fn: function (aCollection){
  4374. var self=this;
  4375. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  4376. return self;},
  4377. args: ["aCollection"],
  4378. source: unescape('copyWithAll%3A%20aCollection%0A%09%5Eself%20copy%20addAll%3A%20aCollection%3B%20yourself'),
  4379. messageSends: ["addAll:", "yourself", "copy"],
  4380. referencedClasses: []
  4381. }),
  4382. smalltalk.Collection);
  4383. smalltalk.addMethod(
  4384. unescape('_asArray'),
  4385. smalltalk.method({
  4386. selector: unescape('asArray'),
  4387. category: 'converting',
  4388. fn: function (){
  4389. var self=this;
  4390. var array=nil;
  4391. var index=nil;
  4392. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  4393. index=(0);
  4394. smalltalk.send(self, "_do_", [(function(each){index=((($receiver = index).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return smalltalk.send(array, "_at_put_", [index, each]);})]);
  4395. return array;
  4396. return self;},
  4397. args: [],
  4398. source: unescape('asArray%0A%09%7C%20array%20index%20%7C%0A%09array%20%3A%3D%20Array%20new.%0A%09index%20%3A%3D%200.%0A%09self%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20index%20%3A%3D%20index%20+%201.%0A%09%20%20%20%20array%20at%3A%20index%20put%3A%20each%5D.%0A%09%5Earray'),
  4399. messageSends: ["new", "do:", unescape("+"), "at:put:"],
  4400. referencedClasses: ["Array"]
  4401. }),
  4402. smalltalk.Collection);
  4403. smalltalk.addMethod(
  4404. unescape('_do_'),
  4405. smalltalk.method({
  4406. selector: unescape('do%3A'),
  4407. category: 'enumerating',
  4408. fn: function (aBlock){
  4409. var self=this;
  4410. for(var i=0;i<self.length;i++){aBlock(self[i]);};
  4411. return self;},
  4412. args: ["aBlock"],
  4413. source: unescape('do%3A%20aBlock%0A%09%3Cfor%28var%20i%3D0%3Bi%3Cself.length%3Bi++%29%7BaBlock%28self%5Bi%5D%29%3B%7D%3E'),
  4414. messageSends: [],
  4415. referencedClasses: []
  4416. }),
  4417. smalltalk.Collection);
  4418. smalltalk.addMethod(
  4419. unescape('_collect_'),
  4420. smalltalk.method({
  4421. selector: unescape('collect%3A'),
  4422. category: 'enumerating',
  4423. fn: function (aBlock){
  4424. var self=this;
  4425. var newCollection=nil;
  4426. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  4427. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(aBlock, "_value_", [each])]);})]);
  4428. return newCollection;
  4429. return self;},
  4430. args: ["aBlock"],
  4431. source: unescape('collect%3A%20aBlock%0A%09%7C%20newCollection%20%7C%0A%09newCollection%20%3A%3D%20self%20class%20new.%0A%09self%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20newCollection%20add%3A%20%28aBlock%20value%3A%20each%29%5D.%0A%09%5EnewCollection'),
  4432. messageSends: ["new", "class", "do:", "add:", "value:"],
  4433. referencedClasses: []
  4434. }),
  4435. smalltalk.Collection);
  4436. smalltalk.addMethod(
  4437. unescape('_detect_'),
  4438. smalltalk.method({
  4439. selector: unescape('detect%3A'),
  4440. category: 'enumerating',
  4441. fn: function (aBlock){
  4442. var self=this;
  4443. return smalltalk.send(self, "_detect_ifNone_", [aBlock, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4444. return self;},
  4445. args: ["aBlock"],
  4446. source: unescape('detect%3A%20aBlock%0A%09%5Eself%20detect%3A%20aBlock%20ifNone%3A%20%5Bself%20errorNotFound%5D'),
  4447. messageSends: ["detect:ifNone:", "errorNotFound"],
  4448. referencedClasses: []
  4449. }),
  4450. smalltalk.Collection);
  4451. smalltalk.addMethod(
  4452. unescape('_detect_ifNone_'),
  4453. smalltalk.method({
  4454. selector: unescape('detect%3AifNone%3A'),
  4455. category: 'enumerating',
  4456. fn: function (aBlock, anotherBlock){
  4457. var self=this;
  4458. for(var i = 0; i < self.length; i++)
  4459. if(aBlock(self[i]))
  4460. return self[i];
  4461. return anotherBlock();
  4462. ;
  4463. return self;},
  4464. args: ["aBlock", "anotherBlock"],
  4465. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%3C%0A%09%09for%28var%20i%20%3D%200%3B%20i%20%3C%20self.length%3B%20i++%29%0A%09%09%09if%28aBlock%28self%5Bi%5D%29%29%0A%09%09%09%09return%20self%5Bi%5D%3B%0A%09%09return%20anotherBlock%28%29%3B%0A%09%3E'),
  4466. messageSends: [],
  4467. referencedClasses: []
  4468. }),
  4469. smalltalk.Collection);
  4470. smalltalk.addMethod(
  4471. unescape('_do_separatedBy_'),
  4472. smalltalk.method({
  4473. selector: unescape('do%3AseparatedBy%3A'),
  4474. category: 'enumerating',
  4475. fn: function (aBlock, anotherBlock){
  4476. var self=this;
  4477. var first=nil;
  4478. first=true;
  4479. smalltalk.send(self, "_do_", [(function(each){((($receiver = first).klass === smalltalk.Boolean) ? ($receiver ? (function(){return first=false;})() : (function(){return smalltalk.send(anotherBlock, "_value", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return first=false;}), (function(){return smalltalk.send(anotherBlock, "_value", []);})]));return smalltalk.send(aBlock, "_value_", [each]);})]);
  4480. return self;},
  4481. args: ["aBlock", "anotherBlock"],
  4482. source: unescape('do%3A%20aBlock%20separatedBy%3A%20anotherBlock%0A%20%20%20%20%09%7C%20first%20%7C%0A%20%20%20%20%09first%20%3A%3D%20true.%0A%20%20%20%20%09self%20do%3A%20%5B%3Aeach%20%7C%0A%20%20%20%20%09%20%20%20%20first%0A%20%20%20%20%09%09ifTrue%3A%20%5Bfirst%20%3A%3D%20false%5D%0A%20%20%20%20%09%09ifFalse%3A%20%5BanotherBlock%20value%5D.%0A%20%20%20%20%09%20%20%20%20aBlock%20value%3A%20each%5D'),
  4483. messageSends: ["do:", "ifTrue:ifFalse:", "value", "value:"],
  4484. referencedClasses: []
  4485. }),
  4486. smalltalk.Collection);
  4487. smalltalk.addMethod(
  4488. unescape('_inject_into_'),
  4489. smalltalk.method({
  4490. selector: unescape('inject%3Ainto%3A'),
  4491. category: 'enumerating',
  4492. fn: function (anObject, aBlock){
  4493. var self=this;
  4494. var result=nil;
  4495. result=anObject;
  4496. smalltalk.send(self, "_do_", [(function(each){return result=smalltalk.send(aBlock, "_value_value_", [result, each]);})]);
  4497. return result;
  4498. return self;},
  4499. args: ["anObject", "aBlock"],
  4500. source: unescape('inject%3A%20anObject%20into%3A%20aBlock%0A%09%7C%20result%20%7C%0A%09result%20%3A%3D%20anObject.%0A%09self%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%20%20%20%20result%20%3A%3D%20aBlock%20value%3A%20result%20value%3A%20each%5D.%0A%09%5Eresult'),
  4501. messageSends: ["do:", "value:value:"],
  4502. referencedClasses: []
  4503. }),
  4504. smalltalk.Collection);
  4505. smalltalk.addMethod(
  4506. unescape('_reject_'),
  4507. smalltalk.method({
  4508. selector: unescape('reject%3A'),
  4509. category: 'enumerating',
  4510. fn: function (aBlock){
  4511. var self=this;
  4512. return smalltalk.send(self, "_select_", [(function(each){return smalltalk.send(smalltalk.send(aBlock, "_value_", [each]), "__eq", [false]);})]);
  4513. return self;},
  4514. args: ["aBlock"],
  4515. source: unescape('reject%3A%20aBlock%0A%09%5Eself%20select%3A%20%5B%3Aeach%20%7C%20%28aBlock%20value%3A%20each%29%20%3D%20false%5D'),
  4516. messageSends: ["select:", unescape("%3D"), "value:"],
  4517. referencedClasses: []
  4518. }),
  4519. smalltalk.Collection);
  4520. smalltalk.addMethod(
  4521. unescape('_select_'),
  4522. smalltalk.method({
  4523. selector: unescape('select%3A'),
  4524. category: 'enumerating',
  4525. fn: function (aBlock){
  4526. var self=this;
  4527. var stream=nil;
  4528. stream=smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_new", []), "_writeStream", []);
  4529. smalltalk.send(self, "_do_", [(function(each){return ((($receiver = smalltalk.send(aBlock, "_value_", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(stream, "_nextPut_", [each]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(stream, "_nextPut_", [each]);})]));})]);
  4530. return smalltalk.send(stream, "_contents", []);
  4531. return self;},
  4532. args: ["aBlock"],
  4533. source: unescape('select%3A%20aBlock%0A%09%7C%20stream%20%7C%0A%09stream%20%3A%3D%20self%20class%20new%20writeStream.%0A%09self%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20%28aBlock%20value%3A%20each%29%20ifTrue%3A%20%5B%0A%09%09stream%20nextPut%3A%20each%5D%5D.%0A%09%5Estream%20contents'),
  4534. messageSends: ["writeStream", "new", "class", "do:", "ifTrue:", "value:", "nextPut:", "contents"],
  4535. referencedClasses: []
  4536. }),
  4537. smalltalk.Collection);
  4538. smalltalk.addMethod(
  4539. unescape('_errorNotFound'),
  4540. smalltalk.method({
  4541. selector: unescape('errorNotFound'),
  4542. category: 'error handling',
  4543. fn: function (){
  4544. var self=this;
  4545. smalltalk.send(self, "_error_", ["Object is not in the collection"]);
  4546. return self;},
  4547. args: [],
  4548. source: unescape('errorNotFound%0A%09self%20error%3A%20%27Object%20is%20not%20in%20the%20collection%27'),
  4549. messageSends: ["error:"],
  4550. referencedClasses: []
  4551. }),
  4552. smalltalk.Collection);
  4553. smalltalk.addMethod(
  4554. unescape('_includes_'),
  4555. smalltalk.method({
  4556. selector: unescape('includes%3A'),
  4557. category: 'testing',
  4558. fn: function (anObject){
  4559. var self=this;
  4560. var i = self.length;
  4561. while (i--) {
  4562. if (smalltalk.send(self[i], "__eq", [anObject])) {return true;}
  4563. }
  4564. return false
  4565. ;
  4566. return self;},
  4567. args: ["anObject"],
  4568. source: unescape('includes%3A%20anObject%0A%09%3C%0A%09%09var%20i%20%3D%20self.length%3B%0A%09%09while%20%28i--%29%20%7B%0A%09%09%09if%20%28smalltalk.send%28self%5Bi%5D%2C%20%22__eq%22%2C%20%5BanObject%5D%29%29%20%7Breturn%20true%3B%7D%09%0A%09%09%7D%0A%09%09return%20false%0A%09%3E'),
  4569. messageSends: [],
  4570. referencedClasses: []
  4571. }),
  4572. smalltalk.Collection);
  4573. smalltalk.addMethod(
  4574. unescape('_notEmpty'),
  4575. smalltalk.method({
  4576. selector: unescape('notEmpty'),
  4577. category: 'testing',
  4578. fn: function (){
  4579. var self=this;
  4580. return smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_not", []);
  4581. return self;},
  4582. args: [],
  4583. source: unescape('notEmpty%0A%09%5Eself%20isEmpty%20not'),
  4584. messageSends: ["not", "isEmpty"],
  4585. referencedClasses: []
  4586. }),
  4587. smalltalk.Collection);
  4588. smalltalk.addMethod(
  4589. unescape('_isEmpty'),
  4590. smalltalk.method({
  4591. selector: unescape('isEmpty'),
  4592. category: 'testing',
  4593. fn: function (){
  4594. var self=this;
  4595. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  4596. return self;},
  4597. args: [],
  4598. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  4599. messageSends: [unescape("%3D"), "size"],
  4600. referencedClasses: []
  4601. }),
  4602. smalltalk.Collection);
  4603. smalltalk.addMethod(
  4604. unescape('_remove_'),
  4605. smalltalk.method({
  4606. selector: unescape('remove%3A'),
  4607. category: 'adding/removing',
  4608. fn: function (anObject){
  4609. var self=this;
  4610. smalltalk.send(self, "_subclassResponsibility", []);
  4611. return self;},
  4612. args: ["anObject"],
  4613. source: unescape('remove%3A%20anObject%0A%20%20%20%20self%20subclassResponsibility'),
  4614. messageSends: ["subclassResponsibility"],
  4615. referencedClasses: []
  4616. }),
  4617. smalltalk.Collection);
  4618. smalltalk.addMethod(
  4619. unescape('_asSet'),
  4620. smalltalk.method({
  4621. selector: unescape('asSet'),
  4622. category: 'converting',
  4623. fn: function (){
  4624. var self=this;
  4625. return smalltalk.send((smalltalk.Set || Set), "_withAll_", [self]);
  4626. return self;},
  4627. args: [],
  4628. source: unescape('asSet%0A%09%5ESet%20withAll%3A%20self'),
  4629. messageSends: ["withAll:"],
  4630. referencedClasses: ["Set"]
  4631. }),
  4632. smalltalk.Collection);
  4633. smalltalk.addMethod(
  4634. unescape('_ifNotEmpty_'),
  4635. smalltalk.method({
  4636. selector: unescape('ifNotEmpty%3A'),
  4637. category: 'testing',
  4638. fn: function (aBlock){
  4639. var self=this;
  4640. smalltalk.send(smalltalk.send(self, "_notEmpty", []), "_ifTrue_", [aBlock]);
  4641. return self;},
  4642. args: ["aBlock"],
  4643. source: unescape('ifNotEmpty%3A%20aBlock%0A%09self%20notEmpty%20ifTrue%3A%20aBlock.'),
  4644. messageSends: ["ifTrue:", "notEmpty"],
  4645. referencedClasses: []
  4646. }),
  4647. smalltalk.Collection);
  4648. smalltalk.addMethod(
  4649. unescape('_ifEmpty_'),
  4650. smalltalk.method({
  4651. selector: unescape('ifEmpty%3A'),
  4652. category: 'testing',
  4653. fn: function (aBlock){
  4654. var self=this;
  4655. smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_ifTrue_", [aBlock]);
  4656. return self;},
  4657. args: ["aBlock"],
  4658. source: unescape('ifEmpty%3A%20aBlock%0A%09self%20isEmpty%20ifTrue%3A%20aBlock.'),
  4659. messageSends: ["ifTrue:", "isEmpty"],
  4660. referencedClasses: []
  4661. }),
  4662. smalltalk.Collection);
  4663. smalltalk.addMethod(
  4664. unescape('_copyWithoutAll_'),
  4665. smalltalk.method({
  4666. selector: unescape('copyWithoutAll%3A'),
  4667. category: 'copying',
  4668. fn: function (aCollection){
  4669. var self=this;
  4670. return smalltalk.send(self, "_reject_", [(function(each){return smalltalk.send(aCollection, "_includes_", [each]);})]);
  4671. return self;},
  4672. args: ["aCollection"],
  4673. source: unescape('copyWithoutAll%3A%20aCollection%0A%09%22Answer%20a%20copy%20of%20the%20receiver%20that%20does%20not%20contain%20any%20elements%20%0A%09equal%20to%20those%20in%20aCollection.%22%0A%0A%09%5E%20self%20reject%3A%20%5B%3Aeach%20%7C%20aCollection%20includes%3A%20each%5D'),
  4674. messageSends: ["reject:", "includes:"],
  4675. referencedClasses: []
  4676. }),
  4677. smalltalk.Collection);
  4678. smalltalk.addMethod(
  4679. unescape('_streamClass'),
  4680. smalltalk.method({
  4681. selector: unescape('streamClass'),
  4682. category: 'accessing',
  4683. fn: function (){
  4684. var self=this;
  4685. return (smalltalk.Stream || Stream);
  4686. return self;},
  4687. args: [],
  4688. source: unescape('streamClass%0A%09%20%20%20%20%5EStream'),
  4689. messageSends: [],
  4690. referencedClasses: ["Stream"]
  4691. }),
  4692. smalltalk.Collection.klass);
  4693. smalltalk.addMethod(
  4694. unescape('_with_'),
  4695. smalltalk.method({
  4696. selector: unescape('with%3A'),
  4697. category: 'instance creation',
  4698. fn: function (anObject){
  4699. var self=this;
  4700. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4701. return self;},
  4702. args: ["anObject"],
  4703. source: unescape('with%3A%20anObject%0A%09%20%20%20%20%5Eself%20new%0A%09%09add%3A%20anObject%3B%0A%09%09yourself'),
  4704. messageSends: ["add:", "yourself", "new"],
  4705. referencedClasses: []
  4706. }),
  4707. smalltalk.Collection.klass);
  4708. smalltalk.addMethod(
  4709. unescape('_with_with_'),
  4710. smalltalk.method({
  4711. selector: unescape('with%3Awith%3A'),
  4712. category: 'instance creation',
  4713. fn: function (anObject, anotherObject){
  4714. var self=this;
  4715. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);smalltalk.send($rec, "_add_", [anotherObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4716. return self;},
  4717. args: ["anObject", "anotherObject"],
  4718. source: unescape('with%3A%20anObject%20with%3A%20anotherObject%0A%09%20%20%20%20%5Eself%20new%0A%09%09add%3A%20anObject%3B%0A%09%09add%3A%20anotherObject%3B%0A%09%09yourself'),
  4719. messageSends: ["add:", "yourself", "new"],
  4720. referencedClasses: []
  4721. }),
  4722. smalltalk.Collection.klass);
  4723. smalltalk.addMethod(
  4724. unescape('_with_with_with_'),
  4725. smalltalk.method({
  4726. selector: unescape('with%3Awith%3Awith%3A'),
  4727. category: 'instance creation',
  4728. fn: function (firstObject, secondObject, thirdObject){
  4729. var self=this;
  4730. return (function($rec){smalltalk.send($rec, "_add_", [firstObject]);smalltalk.send($rec, "_add_", [secondObject]);smalltalk.send($rec, "_add_", [thirdObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4731. return self;},
  4732. args: ["firstObject", "secondObject", "thirdObject"],
  4733. source: unescape('with%3A%20firstObject%20with%3A%20secondObject%20with%3A%20thirdObject%0A%09%20%20%20%20%5Eself%20new%0A%09%09add%3A%20firstObject%3B%0A%09%09add%3A%20secondObject%3B%0A%09%09add%3A%20thirdObject%3B%0A%09%09yourself'),
  4734. messageSends: ["add:", "yourself", "new"],
  4735. referencedClasses: []
  4736. }),
  4737. smalltalk.Collection.klass);
  4738. smalltalk.addMethod(
  4739. unescape('_withAll_'),
  4740. smalltalk.method({
  4741. selector: unescape('withAll%3A'),
  4742. category: 'instance creation',
  4743. fn: function (aCollection){
  4744. var self=this;
  4745. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4746. return self;},
  4747. args: ["aCollection"],
  4748. source: unescape('withAll%3A%20aCollection%0A%09%20%20%20%20%5Eself%20new%0A%09%09addAll%3A%20aCollection%3B%0A%09%09yourself'),
  4749. messageSends: ["addAll:", "yourself", "new"],
  4750. referencedClasses: []
  4751. }),
  4752. smalltalk.Collection.klass);
  4753. smalltalk.addClass('SequenceableCollection', smalltalk.Collection, [], 'Kernel');
  4754. smalltalk.addMethod(
  4755. unescape('_at_'),
  4756. smalltalk.method({
  4757. selector: unescape('at%3A'),
  4758. category: 'accessing',
  4759. fn: function (anIndex){
  4760. var self=this;
  4761. return smalltalk.send(self, "_at_ifAbsent_", [anIndex, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4762. return self;},
  4763. args: ["anIndex"],
  4764. source: unescape('at%3A%20anIndex%0A%09%5Eself%20at%3A%20anIndex%20ifAbsent%3A%20%5B%0A%09%20%20%20%20self%20errorNotFound%5D'),
  4765. messageSends: ["at:ifAbsent:", "errorNotFound"],
  4766. referencedClasses: []
  4767. }),
  4768. smalltalk.SequenceableCollection);
  4769. smalltalk.addMethod(
  4770. unescape('_at_ifAbsent_'),
  4771. smalltalk.method({
  4772. selector: unescape('at%3AifAbsent%3A'),
  4773. category: 'accessing',
  4774. fn: function (anIndex, aBlock){
  4775. var self=this;
  4776. smalltalk.send(self, "_subclassResponsibility", []);
  4777. return self;},
  4778. args: ["anIndex", "aBlock"],
  4779. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%09self%20subclassResponsibility'),
  4780. messageSends: ["subclassResponsibility"],
  4781. referencedClasses: []
  4782. }),
  4783. smalltalk.SequenceableCollection);
  4784. smalltalk.addMethod(
  4785. unescape('_at_put_'),
  4786. smalltalk.method({
  4787. selector: unescape('at%3Aput%3A'),
  4788. category: 'accessing',
  4789. fn: function (anIndex, anObject){
  4790. var self=this;
  4791. smalltalk.send(self, "_subclassResponsibility", []);
  4792. return self;},
  4793. args: ["anIndex", "anObject"],
  4794. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09self%20subclassResponsibility'),
  4795. messageSends: ["subclassResponsibility"],
  4796. referencedClasses: []
  4797. }),
  4798. smalltalk.SequenceableCollection);
  4799. smalltalk.addMethod(
  4800. unescape('_copyFrom_to_'),
  4801. smalltalk.method({
  4802. selector: unescape('copyFrom%3Ato%3A'),
  4803. category: 'copying',
  4804. fn: function (anIndex, anotherIndex){
  4805. var self=this;
  4806. smalltalk.send(self, "_subclassResponsibility", []);
  4807. return self;},
  4808. args: ["anIndex", "anotherIndex"],
  4809. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20subclassResponsibility'),
  4810. messageSends: ["subclassResponsibility"],
  4811. referencedClasses: []
  4812. }),
  4813. smalltalk.SequenceableCollection);
  4814. smalltalk.addMethod(
  4815. unescape('_first'),
  4816. smalltalk.method({
  4817. selector: unescape('first'),
  4818. category: 'accessing',
  4819. fn: function (){
  4820. var self=this;
  4821. return smalltalk.send(self, "_at_", [(1)]);
  4822. return self;},
  4823. args: [],
  4824. source: unescape('first%0A%09%5Eself%20at%3A%201'),
  4825. messageSends: ["at:"],
  4826. referencedClasses: []
  4827. }),
  4828. smalltalk.SequenceableCollection);
  4829. smalltalk.addMethod(
  4830. unescape('_fourth'),
  4831. smalltalk.method({
  4832. selector: unescape('fourth'),
  4833. category: 'accessing',
  4834. fn: function (){
  4835. var self=this;
  4836. return smalltalk.send(self, "_at_", [(4)]);
  4837. return self;},
  4838. args: [],
  4839. source: unescape('fourth%0A%09%5Eself%20at%3A%204'),
  4840. messageSends: ["at:"],
  4841. referencedClasses: []
  4842. }),
  4843. smalltalk.SequenceableCollection);
  4844. smalltalk.addMethod(
  4845. unescape('_last'),
  4846. smalltalk.method({
  4847. selector: unescape('last'),
  4848. category: 'accessing',
  4849. fn: function (){
  4850. var self=this;
  4851. return smalltalk.send(self, "_at_", [smalltalk.send(self, "_size", [])]);
  4852. return self;},
  4853. args: [],
  4854. source: unescape('last%0A%09%5Eself%20at%3A%20self%20size'),
  4855. messageSends: ["at:", "size"],
  4856. referencedClasses: []
  4857. }),
  4858. smalltalk.SequenceableCollection);
  4859. smalltalk.addMethod(
  4860. unescape('_second'),
  4861. smalltalk.method({
  4862. selector: unescape('second'),
  4863. category: 'accessing',
  4864. fn: function (){
  4865. var self=this;
  4866. return smalltalk.send(self, "_at_", [(2)]);
  4867. return self;},
  4868. args: [],
  4869. source: unescape('second%0A%09%5Eself%20at%3A%202'),
  4870. messageSends: ["at:"],
  4871. referencedClasses: []
  4872. }),
  4873. smalltalk.SequenceableCollection);
  4874. smalltalk.addMethod(
  4875. unescape('_third'),
  4876. smalltalk.method({
  4877. selector: unescape('third'),
  4878. category: 'accessing',
  4879. fn: function (){
  4880. var self=this;
  4881. return smalltalk.send(self, "_at_", [(3)]);
  4882. return self;},
  4883. args: [],
  4884. source: unescape('third%0A%09%5Eself%20at%3A%203'),
  4885. messageSends: ["at:"],
  4886. referencedClasses: []
  4887. }),
  4888. smalltalk.SequenceableCollection);
  4889. smalltalk.addMethod(
  4890. unescape('_removeLast'),
  4891. smalltalk.method({
  4892. selector: unescape('removeLast'),
  4893. category: 'adding',
  4894. fn: function (){
  4895. var self=this;
  4896. smalltalk.send(self, "_remove_", [smalltalk.send(self, "_last", [])]);
  4897. return self;},
  4898. args: [],
  4899. source: unescape('removeLast%0A%09self%20remove%3A%20self%20last'),
  4900. messageSends: ["remove:", "last"],
  4901. referencedClasses: []
  4902. }),
  4903. smalltalk.SequenceableCollection);
  4904. smalltalk.addMethod(
  4905. unescape('_addLast_'),
  4906. smalltalk.method({
  4907. selector: unescape('addLast%3A'),
  4908. category: 'adding',
  4909. fn: function (anObject){
  4910. var self=this;
  4911. smalltalk.send(self, "_add_", [anObject]);
  4912. return self;},
  4913. args: ["anObject"],
  4914. source: unescape('addLast%3A%20anObject%0A%09self%20add%3A%20anObject'),
  4915. messageSends: ["add:"],
  4916. referencedClasses: []
  4917. }),
  4918. smalltalk.SequenceableCollection);
  4919. smalltalk.addMethod(
  4920. unescape('_withIndexDo_'),
  4921. smalltalk.method({
  4922. selector: unescape('withIndexDo%3A'),
  4923. category: 'enumerating',
  4924. fn: function (aBlock){
  4925. var self=this;
  4926. for(var i=0;i<self.length;i++){aBlock(self[i], i+1);};
  4927. return self;},
  4928. args: ["aBlock"],
  4929. source: unescape('withIndexDo%3A%20aBlock%0A%09%3Cfor%28var%20i%3D0%3Bi%3Cself.length%3Bi++%29%7BaBlock%28self%5Bi%5D%2C%20i+1%29%3B%7D%3E'),
  4930. messageSends: [],
  4931. referencedClasses: []
  4932. }),
  4933. smalltalk.SequenceableCollection);
  4934. smalltalk.addMethod(
  4935. unescape('_allButFirst'),
  4936. smalltalk.method({
  4937. selector: unescape('allButFirst'),
  4938. category: 'accessing',
  4939. fn: function (){
  4940. var self=this;
  4941. return smalltalk.send(self, "_copyFrom_to_", [(2), smalltalk.send(self, "_size", [])]);
  4942. return self;},
  4943. args: [],
  4944. source: unescape('allButFirst%0A%09%5Eself%20copyFrom%3A%202%20to%3A%20self%20size'),
  4945. messageSends: ["copyFrom:to:", "size"],
  4946. referencedClasses: []
  4947. }),
  4948. smalltalk.SequenceableCollection);
  4949. smalltalk.addMethod(
  4950. unescape('_allButLast'),
  4951. smalltalk.method({
  4952. selector: unescape('allButLast'),
  4953. category: 'accessing',
  4954. fn: function (){
  4955. var self=this;
  4956. return smalltalk.send(self, "_copyFrom_to_", [(1), ((($receiver = smalltalk.send(self, "_size", [])).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]);
  4957. return self;},
  4958. args: [],
  4959. source: unescape('allButLast%0A%09%5Eself%20copyFrom%3A%201%20to%3A%20self%20size%20-%201'),
  4960. messageSends: ["copyFrom:to:", unescape("-"), "size"],
  4961. referencedClasses: []
  4962. }),
  4963. smalltalk.SequenceableCollection);
  4964. smalltalk.addMethod(
  4965. unescape('_indexOf_'),
  4966. smalltalk.method({
  4967. selector: unescape('indexOf%3A'),
  4968. category: 'accessing',
  4969. fn: function (anObject){
  4970. var self=this;
  4971. return smalltalk.send(self, "_indexOf_ifAbsent_", [anObject, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4972. return self;},
  4973. args: ["anObject"],
  4974. source: unescape('indexOf%3A%20anObject%0A%09%5Eself%20indexOf%3A%20anObject%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  4975. messageSends: ["indexOf:ifAbsent:", "errorNotFound"],
  4976. referencedClasses: []
  4977. }),
  4978. smalltalk.SequenceableCollection);
  4979. smalltalk.addMethod(
  4980. unescape('_indexOf_ifAbsent_'),
  4981. smalltalk.method({
  4982. selector: unescape('indexOf%3AifAbsent%3A'),
  4983. category: 'accessing',
  4984. fn: function (anObject, aBlock){
  4985. var self=this;
  4986. for(var i=0;i<self.length;i++){
  4987. if(self[i].__eq(anObject)) {return i+1}
  4988. }
  4989. return aBlock();
  4990. ;
  4991. return self;},
  4992. args: ["anObject", "aBlock"],
  4993. source: unescape('indexOf%3A%20anObject%20ifAbsent%3A%20aBlock%0A%09%3C%0A%09%09for%28var%20i%3D0%3Bi%3Cself.length%3Bi++%29%7B%0A%09%09%09if%28self%5Bi%5D.__eq%28anObject%29%29%20%7Breturn%20i+1%7D%0A%09%09%7D%0A%09%09return%20aBlock%28%29%3B%0A%09%3E'),
  4994. messageSends: [],
  4995. referencedClasses: []
  4996. }),
  4997. smalltalk.SequenceableCollection);
  4998. smalltalk.addMethod(
  4999. unescape('_indexOf_startingAt_ifAbsent_'),
  5000. smalltalk.method({
  5001. selector: unescape('indexOf%3AstartingAt%3AifAbsent%3A'),
  5002. category: 'accessing',
  5003. fn: function (anObject, start, aBlock){
  5004. var self=this;
  5005. for(var i=start-1;i<self.length;i++){
  5006. if(self[i].__eq(anObject)) {return i+1}
  5007. }
  5008. return aBlock();
  5009. ;
  5010. return self;},
  5011. args: ["anObject", "start", "aBlock"],
  5012. source: unescape('indexOf%3A%20anObject%20startingAt%3A%20start%20ifAbsent%3A%20aBlock%0A%09%3C%0A%09%09for%28var%20i%3Dstart-1%3Bi%3Cself.length%3Bi++%29%7B%0A%09%09%09if%28self%5Bi%5D.__eq%28anObject%29%29%20%7Breturn%20i+1%7D%0A%09%09%7D%0A%09%09return%20aBlock%28%29%3B%0A%09%3E'),
  5013. messageSends: [],
  5014. referencedClasses: []
  5015. }),
  5016. smalltalk.SequenceableCollection);
  5017. smalltalk.addMethod(
  5018. unescape('_indexOf_startingAt_'),
  5019. smalltalk.method({
  5020. selector: unescape('indexOf%3AstartingAt%3A'),
  5021. category: 'accessing',
  5022. fn: function (anObject, start){
  5023. var self=this;
  5024. return smalltalk.send(self, "_indexOf_startingAt_ifAbsent_", [anObject, start, (function(){return (0);})]);
  5025. return self;},
  5026. args: ["anObject", "start"],
  5027. source: unescape('indexOf%3A%20anObject%20startingAt%3A%20start%0A%09%22Answer%20the%20index%20of%20the%20first%20occurence%20of%20anElement%20after%20start%0A%09within%20the%20receiver.%20If%20the%20receiver%20does%20not%20contain%20anElement%2C%20%0A%09answer%200.%22%0A%09%5Eself%20indexOf%3A%20anObject%20startingAt%3A%20start%20ifAbsent%3A%20%5B0%5D'),
  5028. messageSends: ["indexOf:startingAt:ifAbsent:"],
  5029. referencedClasses: []
  5030. }),
  5031. smalltalk.SequenceableCollection);
  5032. smalltalk.addMethod(
  5033. unescape('_reversed'),
  5034. smalltalk.method({
  5035. selector: unescape('reversed'),
  5036. category: 'converting',
  5037. fn: function (){
  5038. var self=this;
  5039. smalltalk.send(self, "_subclassResponsibility", []);
  5040. return self;},
  5041. args: [],
  5042. source: unescape('reversed%0A%09self%20subclassResponsibility'),
  5043. messageSends: ["subclassResponsibility"],
  5044. referencedClasses: []
  5045. }),
  5046. smalltalk.SequenceableCollection);
  5047. smalltalk.addMethod(
  5048. unescape('_atRandom'),
  5049. smalltalk.method({
  5050. selector: unescape('atRandom'),
  5051. category: 'accessing',
  5052. fn: function (){
  5053. var self=this;
  5054. return smalltalk.send(self, "_at_", [smalltalk.send(smalltalk.send(self, "_size", []), "_atRandom", [])]);
  5055. return self;},
  5056. args: [],
  5057. source: unescape('atRandom%0A%09%5E%20self%20at%3A%20self%20size%20atRandom'),
  5058. messageSends: ["at:", "atRandom", "size"],
  5059. referencedClasses: []
  5060. }),
  5061. smalltalk.SequenceableCollection);
  5062. smalltalk.addClass('String', smalltalk.SequenceableCollection, [], 'Kernel');
  5063. smalltalk.addMethod(
  5064. unescape('__eq'),
  5065. smalltalk.method({
  5066. selector: unescape('%3D'),
  5067. category: 'comparing',
  5068. fn: function (aString){
  5069. var self=this;
  5070. try{((($receiver = smalltalk.send(smalltalk.send(aString, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  5071. return String(self) == aString;
  5072. return self;
  5073. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  5074. args: ["aString"],
  5075. source: unescape('%3D%20aString%0A%09aString%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%3Creturn%20String%28self%29%20%3D%3D%20aString%3E'),
  5076. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  5077. referencedClasses: []
  5078. }),
  5079. smalltalk.String);
  5080. smalltalk.addMethod(
  5081. unescape('_size'),
  5082. smalltalk.method({
  5083. selector: unescape('size'),
  5084. category: 'accessing',
  5085. fn: function (){
  5086. var self=this;
  5087. return self.length;
  5088. return self;},
  5089. args: [],
  5090. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  5091. messageSends: [],
  5092. referencedClasses: []
  5093. }),
  5094. smalltalk.String);
  5095. smalltalk.addMethod(
  5096. unescape('_at_'),
  5097. smalltalk.method({
  5098. selector: unescape('at%3A'),
  5099. category: 'accessing',
  5100. fn: function (anIndex){
  5101. var self=this;
  5102. return self[anIndex - 1];
  5103. return self;},
  5104. args: ["anIndex"],
  5105. source: unescape('at%3A%20anIndex%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%3E'),
  5106. messageSends: [],
  5107. referencedClasses: []
  5108. }),
  5109. smalltalk.String);
  5110. smalltalk.addMethod(
  5111. unescape('_at_put_'),
  5112. smalltalk.method({
  5113. selector: unescape('at%3Aput%3A'),
  5114. category: 'accessing',
  5115. fn: function (anIndex, anObject){
  5116. var self=this;
  5117. smalltalk.send(self, "_errorReadOnly", []);
  5118. return self;},
  5119. args: ["anIndex", "anObject"],
  5120. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  5121. messageSends: ["errorReadOnly"],
  5122. referencedClasses: []
  5123. }),
  5124. smalltalk.String);
  5125. smalltalk.addMethod(
  5126. unescape('_at_ifAbsent_'),
  5127. smalltalk.method({
  5128. selector: unescape('at%3AifAbsent%3A'),
  5129. category: 'accessing',
  5130. fn: function (anIndex, aBlock){
  5131. var self=this;
  5132. (($receiver = smalltalk.send(self, "_at_", [anIndex])) == nil || $receiver == undefined) ? (function(){return aBlock;})() : $receiver;
  5133. return self;},
  5134. args: ["anIndex", "aBlock"],
  5135. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%20%20%20%20%09%28self%20at%3A%20anIndex%29%20ifNil%3A%20%5BaBlock%5D'),
  5136. messageSends: ["ifNil:", "at:"],
  5137. referencedClasses: []
  5138. }),
  5139. smalltalk.String);
  5140. smalltalk.addMethod(
  5141. unescape('_escaped'),
  5142. smalltalk.method({
  5143. selector: unescape('escaped'),
  5144. category: 'accessing',
  5145. fn: function (){
  5146. var self=this;
  5147. return escape(self);
  5148. return self;},
  5149. args: [],
  5150. source: unescape('escaped%0A%09%3Creturn%20escape%28self%29%3E'),
  5151. messageSends: [],
  5152. referencedClasses: []
  5153. }),
  5154. smalltalk.String);
  5155. smalltalk.addMethod(
  5156. unescape('_unescaped'),
  5157. smalltalk.method({
  5158. selector: unescape('unescaped'),
  5159. category: 'accessing',
  5160. fn: function (){
  5161. var self=this;
  5162. return unescape(self);
  5163. return self;},
  5164. args: [],
  5165. source: unescape('unescaped%0A%09%3Creturn%20unescape%28self%29%3E'),
  5166. messageSends: [],
  5167. referencedClasses: []
  5168. }),
  5169. smalltalk.String);
  5170. smalltalk.addMethod(
  5171. unescape('_add_'),
  5172. smalltalk.method({
  5173. selector: unescape('add%3A'),
  5174. category: 'adding',
  5175. fn: function (anObject){
  5176. var self=this;
  5177. smalltalk.send(self, "_errorReadOnly", []);
  5178. return self;},
  5179. args: ["anObject"],
  5180. source: unescape('add%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  5181. messageSends: ["errorReadOnly"],
  5182. referencedClasses: []
  5183. }),
  5184. smalltalk.String);
  5185. smalltalk.addMethod(
  5186. unescape('__comma'),
  5187. smalltalk.method({
  5188. selector: unescape('%2C'),
  5189. category: 'copying',
  5190. fn: function (aString){
  5191. var self=this;
  5192. return self + aString;
  5193. return self;},
  5194. args: ["aString"],
  5195. source: unescape('%2C%20aString%0A%09%3Creturn%20self%20+%20aString%3E'),
  5196. messageSends: [],
  5197. referencedClasses: []
  5198. }),
  5199. smalltalk.String);
  5200. smalltalk.addMethod(
  5201. unescape('_copyFrom_to_'),
  5202. smalltalk.method({
  5203. selector: unescape('copyFrom%3Ato%3A'),
  5204. category: 'copying',
  5205. fn: function (anIndex, anotherIndex){
  5206. var self=this;
  5207. return self.substring(anIndex - 1, anotherIndex);
  5208. return self;},
  5209. args: ["anIndex", "anotherIndex"],
  5210. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09%3Creturn%20self.substring%28anIndex%20-%201%2C%20anotherIndex%29%3E'),
  5211. messageSends: [],
  5212. referencedClasses: []
  5213. }),
  5214. smalltalk.String);
  5215. smalltalk.addMethod(
  5216. unescape('_shallowCopy'),
  5217. smalltalk.method({
  5218. selector: unescape('shallowCopy'),
  5219. category: 'copying',
  5220. fn: function (){
  5221. var self=this;
  5222. return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [self]);
  5223. return self;},
  5224. args: [],
  5225. source: unescape('shallowCopy%0A%20%20%20%20%09%5Eself%20class%20fromString%3A%20self'),
  5226. messageSends: ["fromString:", "class"],
  5227. referencedClasses: []
  5228. }),
  5229. smalltalk.String);
  5230. smalltalk.addMethod(
  5231. unescape('_deepCopy'),
  5232. smalltalk.method({
  5233. selector: unescape('deepCopy'),
  5234. category: 'copying',
  5235. fn: function (){
  5236. var self=this;
  5237. return smalltalk.send(self, "_shallowCopy", []);
  5238. return self;},
  5239. args: [],
  5240. source: unescape('deepCopy%0A%20%20%20%20%09%5Eself%20shallowCopy'),
  5241. messageSends: ["shallowCopy"],
  5242. referencedClasses: []
  5243. }),
  5244. smalltalk.String);
  5245. smalltalk.addMethod(
  5246. unescape('_asSelector'),
  5247. smalltalk.method({
  5248. selector: unescape('asSelector'),
  5249. category: 'converting',
  5250. fn: function (){
  5251. var self=this;
  5252. var selector=nil;
  5253. selector=smalltalk.send("_", "__comma", [self]);
  5254. selector=smalltalk.send(selector, "_replace_with_", [":", "_"]);
  5255. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B+%5D"), "_plus"]);
  5256. selector=smalltalk.send(selector, "_replace_with_", [unescape("-"), "_minus"]);
  5257. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B*%5D"), "_star"]);
  5258. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B/%5D"), "_slash"]);
  5259. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3E"), "_gt"]);
  5260. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3C"), "_lt"]);
  5261. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3D"), "_eq"]);
  5262. selector=smalltalk.send(selector, "_replace_with_", [unescape("%2C"), "_comma"]);
  5263. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B@%5D"), "_at"]);
  5264. return selector;
  5265. return self;},
  5266. args: [],
  5267. source: unescape('asSelector%0A%09%22If%20you%20change%20this%20method%2C%20change%20smalltalk.convertSelector%20too%20%28see%20js/boot.js%20file%29%22%0A%0A%09%7C%20selector%20%7C%0A%09selector%20%3A%3D%20%27_%27%2C%20self.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%3A%27%20with%3A%20%27_%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%5B+%5D%27%20with%3A%20%27_plus%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27-%27%20with%3A%20%27_minus%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%5B*%5D%27%20with%3A%20%27_star%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%5B/%5D%27%20with%3A%20%27_slash%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%3E%27%20with%3A%20%27_gt%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%3C%27%20with%3A%20%27_lt%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%3D%27%20with%3A%20%27_eq%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%2C%27%20with%3A%20%27_comma%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%5B@%5D%27%20with%3A%20%27_at%27.%0A%09%5Eselector'),
  5268. messageSends: [unescape("%2C"), "replace:with:"],
  5269. referencedClasses: []
  5270. }),
  5271. smalltalk.String);
  5272. smalltalk.addMethod(
  5273. unescape('_asJavascript'),
  5274. smalltalk.method({
  5275. selector: unescape('asJavascript'),
  5276. category: 'converting',
  5277. fn: function (){
  5278. var self=this;
  5279. if(self.search(/^[a-zA-Z0-9_:.$ ]*$/) == -1)
  5280. return "unescape(\"" + escape(self) + "\")";
  5281. else
  5282. return "\"" + self + "\"";
  5283. ;
  5284. return self;},
  5285. args: [],
  5286. source: unescape('asJavascript%0A%09%3C%0A%09%09if%28self.search%28/%5E%5Ba-zA-Z0-9_%3A.%24%20%5D*%24/%29%20%3D%3D%20-1%29%0A%09%09%09return%20%22unescape%28%5C%22%22%20+%20escape%28self%29%20+%20%22%5C%22%29%22%3B%0A%09%09else%0A%09%09%09return%20%22%5C%22%22%20+%20self%20+%20%22%5C%22%22%3B%0A%09%3E'),
  5287. messageSends: [],
  5288. referencedClasses: []
  5289. }),
  5290. smalltalk.String);
  5291. smalltalk.addMethod(
  5292. unescape('_replace_with_'),
  5293. smalltalk.method({
  5294. selector: unescape('replace%3Awith%3A'),
  5295. category: 'regular expressions',
  5296. fn: function (aString, anotherString){
  5297. var self=this;
  5298. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [aString, "g"]), anotherString]);
  5299. return self;},
  5300. args: ["aString", "anotherString"],
  5301. source: unescape('replace%3A%20aString%20with%3A%20anotherString%0A%20%20%20%20%09%5Eself%20replaceRegexp%3A%20%28RegularExpression%20fromString%3A%20aString%20flag%3A%20%27g%27%29%20with%3A%20anotherString'),
  5302. messageSends: ["replaceRegexp:with:", "fromString:flag:"],
  5303. referencedClasses: ["RegularExpression"]
  5304. }),
  5305. smalltalk.String);
  5306. smalltalk.addMethod(
  5307. unescape('_replaceRegexp_with_'),
  5308. smalltalk.method({
  5309. selector: unescape('replaceRegexp%3Awith%3A'),
  5310. category: 'regular expressions',
  5311. fn: function (aRegexp, aString){
  5312. var self=this;
  5313. return self.replace(aRegexp, aString);
  5314. return self;},
  5315. args: ["aRegexp", "aString"],
  5316. source: unescape('replaceRegexp%3A%20aRegexp%20with%3A%20aString%0A%09%3Creturn%20self.replace%28aRegexp%2C%20aString%29%3E'),
  5317. messageSends: [],
  5318. referencedClasses: []
  5319. }),
  5320. smalltalk.String);
  5321. smalltalk.addMethod(
  5322. unescape('_tokenize_'),
  5323. smalltalk.method({
  5324. selector: unescape('tokenize%3A'),
  5325. category: 'converting',
  5326. fn: function (aString){
  5327. var self=this;
  5328. return self.split(aString);
  5329. return self;},
  5330. args: ["aString"],
  5331. source: unescape('tokenize%3A%20aString%0A%09%3Creturn%20self.split%28aString%29%3E'),
  5332. messageSends: [],
  5333. referencedClasses: []
  5334. }),
  5335. smalltalk.String);
  5336. smalltalk.addMethod(
  5337. unescape('_match_'),
  5338. smalltalk.method({
  5339. selector: unescape('match%3A'),
  5340. category: 'regular expressions',
  5341. fn: function (aRegexp){
  5342. var self=this;
  5343. return self.search(aRegexp) != -1;
  5344. return self;},
  5345. args: ["aRegexp"],
  5346. source: unescape('match%3A%20aRegexp%0A%09%3Creturn%20self.search%28aRegexp%29%20%21%3D%20-1%3E'),
  5347. messageSends: [],
  5348. referencedClasses: []
  5349. }),
  5350. smalltalk.String);
  5351. smalltalk.addMethod(
  5352. unescape('_asString'),
  5353. smalltalk.method({
  5354. selector: unescape('asString'),
  5355. category: 'converting',
  5356. fn: function (){
  5357. var self=this;
  5358. return self;
  5359. return self;},
  5360. args: [],
  5361. source: unescape('asString%0A%20%20%20%20%09%5Eself'),
  5362. messageSends: [],
  5363. referencedClasses: []
  5364. }),
  5365. smalltalk.String);
  5366. smalltalk.addMethod(
  5367. unescape('_asNumber'),
  5368. smalltalk.method({
  5369. selector: unescape('asNumber'),
  5370. category: 'converting',
  5371. fn: function (){
  5372. var self=this;
  5373. return Number(self);
  5374. return self;},
  5375. args: [],
  5376. source: unescape('asNumber%0A%09%3Creturn%20Number%28self%29%3E'),
  5377. messageSends: [],
  5378. referencedClasses: []
  5379. }),
  5380. smalltalk.String);
  5381. smalltalk.addMethod(
  5382. unescape('_errorReadOnly'),
  5383. smalltalk.method({
  5384. selector: unescape('errorReadOnly'),
  5385. category: 'error handling',
  5386. fn: function (){
  5387. var self=this;
  5388. smalltalk.send(self, "_error_", [unescape("Object%20is%20read-only")]);
  5389. return self;},
  5390. args: [],
  5391. source: unescape('errorReadOnly%0A%20%20%20%20%09self%20error%3A%20%27Object%20is%20read-only%27'),
  5392. messageSends: ["error:"],
  5393. referencedClasses: []
  5394. }),
  5395. smalltalk.String);
  5396. smalltalk.addMethod(
  5397. unescape('_printString'),
  5398. smalltalk.method({
  5399. selector: unescape('printString'),
  5400. category: 'printing',
  5401. fn: function (){
  5402. var self=this;
  5403. return smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [self]), "__comma", [unescape("%27")]);
  5404. return self;},
  5405. args: [],
  5406. source: unescape('printString%0A%20%20%20%20%09%5E%27%27%27%27%2C%20self%2C%20%27%27%27%27'),
  5407. messageSends: [unescape("%2C")],
  5408. referencedClasses: []
  5409. }),
  5410. smalltalk.String);
  5411. smalltalk.addMethod(
  5412. unescape('_printNl'),
  5413. smalltalk.method({
  5414. selector: unescape('printNl'),
  5415. category: 'printing',
  5416. fn: function (){
  5417. var self=this;
  5418. console.log(self);
  5419. return self;},
  5420. args: [],
  5421. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  5422. messageSends: [],
  5423. referencedClasses: []
  5424. }),
  5425. smalltalk.String);
  5426. smalltalk.addMethod(
  5427. unescape('_isString'),
  5428. smalltalk.method({
  5429. selector: unescape('isString'),
  5430. category: 'testing',
  5431. fn: function (){
  5432. var self=this;
  5433. return true;
  5434. return self;},
  5435. args: [],
  5436. source: unescape('isString%0A%20%20%20%20%09%5Etrue'),
  5437. messageSends: [],
  5438. referencedClasses: []
  5439. }),
  5440. smalltalk.String);
  5441. smalltalk.addMethod(
  5442. unescape('__gt'),
  5443. smalltalk.method({
  5444. selector: unescape('%3E'),
  5445. category: 'comparing',
  5446. fn: function (aString){
  5447. var self=this;
  5448. return String(self) > aString;
  5449. return self;},
  5450. args: ["aString"],
  5451. source: unescape('%3E%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%20aString%3E'),
  5452. messageSends: [],
  5453. referencedClasses: []
  5454. }),
  5455. smalltalk.String);
  5456. smalltalk.addMethod(
  5457. unescape('__lt'),
  5458. smalltalk.method({
  5459. selector: unescape('%3C'),
  5460. category: 'comparing',
  5461. fn: function (aString){
  5462. var self=this;
  5463. return String(self) < aString;
  5464. return self;},
  5465. args: ["aString"],
  5466. source: unescape('%3C%20aString%0A%09%3Creturn%20String%28self%29%20%3C%20aString%3E'),
  5467. messageSends: [],
  5468. referencedClasses: []
  5469. }),
  5470. smalltalk.String);
  5471. smalltalk.addMethod(
  5472. unescape('__gt_eq'),
  5473. smalltalk.method({
  5474. selector: unescape('%3E%3D'),
  5475. category: 'comparing',
  5476. fn: function (aString){
  5477. var self=this;
  5478. return String(self) >= aString;
  5479. return self;},
  5480. args: ["aString"],
  5481. source: unescape('%3E%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%3D%20aString%3E'),
  5482. messageSends: [],
  5483. referencedClasses: []
  5484. }),
  5485. smalltalk.String);
  5486. smalltalk.addMethod(
  5487. unescape('__lt_eq'),
  5488. smalltalk.method({
  5489. selector: unescape('%3C%3D'),
  5490. category: 'comparing',
  5491. fn: function (aString){
  5492. var self=this;
  5493. return String(self) <= aString;
  5494. return self;},
  5495. args: ["aString"],
  5496. source: unescape('%3C%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3C%3D%20aString%3E'),
  5497. messageSends: [],
  5498. referencedClasses: []
  5499. }),
  5500. smalltalk.String);
  5501. smalltalk.addMethod(
  5502. unescape('_remove_'),
  5503. smalltalk.method({
  5504. selector: unescape('remove%3A'),
  5505. category: 'adding',
  5506. fn: function (anObject){
  5507. var self=this;
  5508. smalltalk.send(self, "_errorReadOnly", []);
  5509. return self;},
  5510. args: ["anObject"],
  5511. source: unescape('remove%3A%20anObject%0A%09self%20errorReadOnly'),
  5512. messageSends: ["errorReadOnly"],
  5513. referencedClasses: []
  5514. }),
  5515. smalltalk.String);
  5516. smalltalk.addMethod(
  5517. unescape('_asJSONObject'),
  5518. smalltalk.method({
  5519. selector: unescape('asJSONObject'),
  5520. category: 'converting',
  5521. fn: function (){
  5522. var self=this;
  5523. return self;
  5524. return self;},
  5525. args: [],
  5526. source: unescape('asJSONObject%0A%09%5Eself'),
  5527. messageSends: [],
  5528. referencedClasses: []
  5529. }),
  5530. smalltalk.String);
  5531. smalltalk.addMethod(
  5532. unescape('_trimLeft_'),
  5533. smalltalk.method({
  5534. selector: unescape('trimLeft%3A'),
  5535. category: 'regular expressions',
  5536. fn: function (separators){
  5537. var self=this;
  5538. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [smalltalk.send(smalltalk.send(unescape("%5E%5B"), "__comma", [separators]), "__comma", [unescape("%5D+")]), "g"]), ""]);
  5539. return self;},
  5540. args: ["separators"],
  5541. source: unescape('trimLeft%3A%20separators%0A%0A%20%20%20%20%09%5Eself%20replaceRegexp%3A%20%28RegularExpression%20fromString%3A%20%27%5E%5B%27%2C%20separators%2C%20%27%5D+%27%20flag%3A%20%27g%27%29%20with%3A%20%27%27'),
  5542. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  5543. referencedClasses: ["RegularExpression"]
  5544. }),
  5545. smalltalk.String);
  5546. smalltalk.addMethod(
  5547. unescape('_trimRight_'),
  5548. smalltalk.method({
  5549. selector: unescape('trimRight%3A'),
  5550. category: 'regular expressions',
  5551. fn: function (separators){
  5552. var self=this;
  5553. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [smalltalk.send(smalltalk.send(unescape("%5B"), "__comma", [separators]), "__comma", [unescape("%5D+%24")]), "g"]), ""]);
  5554. return self;},
  5555. args: ["separators"],
  5556. source: unescape('trimRight%3A%20separators%0A%0A%20%20%20%20%09%5Eself%20replaceRegexp%3A%20%28RegularExpression%20fromString%3A%20%27%5B%27%2C%20separators%2C%20%27%5D+%24%27%20flag%3A%20%27g%27%29%20with%3A%20%27%27'),
  5557. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  5558. referencedClasses: ["RegularExpression"]
  5559. }),
  5560. smalltalk.String);
  5561. smalltalk.addMethod(
  5562. unescape('_trimLeft'),
  5563. smalltalk.method({
  5564. selector: unescape('trimLeft'),
  5565. category: 'regular expressions',
  5566. fn: function (){
  5567. var self=this;
  5568. return smalltalk.send(self, "_trimLeft_", [unescape("%5Cs")]);
  5569. return self;},
  5570. args: [],
  5571. source: unescape('trimLeft%0A%09%5Eself%20trimLeft%3A%20%27%5Cs%27'),
  5572. messageSends: ["trimLeft:"],
  5573. referencedClasses: []
  5574. }),
  5575. smalltalk.String);
  5576. smalltalk.addMethod(
  5577. unescape('_trimRight'),
  5578. smalltalk.method({
  5579. selector: unescape('trimRight'),
  5580. category: 'regular expressions',
  5581. fn: function (){
  5582. var self=this;
  5583. return smalltalk.send(self, "_trimRight_", [unescape("%5Cs")]);
  5584. return self;},
  5585. args: [],
  5586. source: unescape('trimRight%0A%09%5Eself%20trimRight%3A%20%27%5Cs%27'),
  5587. messageSends: ["trimRight:"],
  5588. referencedClasses: []
  5589. }),
  5590. smalltalk.String);
  5591. smalltalk.addMethod(
  5592. unescape('_trimBoth'),
  5593. smalltalk.method({
  5594. selector: unescape('trimBoth'),
  5595. category: 'regular expressions',
  5596. fn: function (){
  5597. var self=this;
  5598. return smalltalk.send(self, "_trimBoth_", [unescape("%5Cs")]);
  5599. return self;},
  5600. args: [],
  5601. source: unescape('trimBoth%0A%09%5Eself%20trimBoth%3A%20%27%5Cs%27'),
  5602. messageSends: ["trimBoth:"],
  5603. referencedClasses: []
  5604. }),
  5605. smalltalk.String);
  5606. smalltalk.addMethod(
  5607. unescape('_trimBoth_'),
  5608. smalltalk.method({
  5609. selector: unescape('trimBoth%3A'),
  5610. category: 'regular expressions',
  5611. fn: function (separators){
  5612. var self=this;
  5613. return smalltalk.send(smalltalk.send(self, "_trimLeft_", [separators]), "_trimRight_", [separators]);
  5614. return self;},
  5615. args: ["separators"],
  5616. source: unescape('trimBoth%3A%20separators%0A%0A%20%20%20%20%09%5E%28self%20trimLeft%3A%20separators%29%20trimRight%3A%20separators'),
  5617. messageSends: ["trimRight:", "trimLeft:"],
  5618. referencedClasses: []
  5619. }),
  5620. smalltalk.String);
  5621. smalltalk.addMethod(
  5622. unescape('_asLowercase'),
  5623. smalltalk.method({
  5624. selector: unescape('asLowercase'),
  5625. category: 'converting',
  5626. fn: function (){
  5627. var self=this;
  5628. return self.toLowerCase();
  5629. return self;},
  5630. args: [],
  5631. source: unescape('asLowercase%0A%09%3Creturn%20self.toLowerCase%28%29%3E'),
  5632. messageSends: [],
  5633. referencedClasses: []
  5634. }),
  5635. smalltalk.String);
  5636. smalltalk.addMethod(
  5637. unescape('_asUppercase'),
  5638. smalltalk.method({
  5639. selector: unescape('asUppercase'),
  5640. category: 'converting',
  5641. fn: function (){
  5642. var self=this;
  5643. return self.toUpperCase();
  5644. return self;},
  5645. args: [],
  5646. source: unescape('asUppercase%0A%09%3Creturn%20self.toUpperCase%28%29%3E'),
  5647. messageSends: [],
  5648. referencedClasses: []
  5649. }),
  5650. smalltalk.String);
  5651. smalltalk.addMethod(
  5652. unescape('_join_'),
  5653. smalltalk.method({
  5654. selector: unescape('join%3A'),
  5655. category: 'split join',
  5656. fn: function (aCollection){
  5657. var self=this;
  5658. return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(stream){return smalltalk.send(aCollection, "_do_separatedBy_", [(function(each){return smalltalk.send(stream, "_nextPutAll_", [smalltalk.send(each, "_asString", [])]);}), (function(){return smalltalk.send(stream, "_nextPutAll_", [self]);})]);})]);
  5659. return self;},
  5660. args: ["aCollection"],
  5661. source: unescape('join%3A%20aCollection%20%0A%09%5E%20String%0A%09%09streamContents%3A%20%5B%3Astream%20%7C%20aCollection%0A%09%09%09%09do%3A%20%5B%3Aeach%20%7C%20stream%20nextPutAll%3A%20each%20asString%5D%20%0A%09%09%09%09separatedBy%3A%20%5Bstream%20nextPutAll%3A%20self%5D%5D'),
  5662. messageSends: ["streamContents:", "do:separatedBy:", "nextPutAll:", "asString"],
  5663. referencedClasses: ["String"]
  5664. }),
  5665. smalltalk.String);
  5666. smalltalk.addMethod(
  5667. unescape('_includesSubString_'),
  5668. smalltalk.method({
  5669. selector: unescape('includesSubString%3A'),
  5670. category: 'testing',
  5671. fn: function (subString){
  5672. var self=this;
  5673. return self.indexOf(subString) != -1 ;
  5674. return self;},
  5675. args: ["subString"],
  5676. source: unescape('includesSubString%3A%20subString%0A%09%3C%20return%20self.indexOf%28subString%29%20%21%3D%20-1%20%3E'),
  5677. messageSends: [],
  5678. referencedClasses: []
  5679. }),
  5680. smalltalk.String);
  5681. smalltalk.addMethod(
  5682. unescape('_asciiValue'),
  5683. smalltalk.method({
  5684. selector: unescape('asciiValue'),
  5685. category: 'accessing',
  5686. fn: function (){
  5687. var self=this;
  5688. return self.charCodeAt(0);;
  5689. return self;},
  5690. args: [],
  5691. source: unescape('asciiValue%0A%09%3Creturn%20self.charCodeAt%280%29%3B%3E'),
  5692. messageSends: [],
  5693. referencedClasses: []
  5694. }),
  5695. smalltalk.String);
  5696. smalltalk.addMethod(
  5697. unescape('_lineIndicesDo_'),
  5698. smalltalk.method({
  5699. selector: unescape('lineIndicesDo%3A'),
  5700. category: 'split join',
  5701. fn: function (aBlock){
  5702. var self=this;
  5703. try{var cr=nil;
  5704. var lf=nil;
  5705. var start=nil;
  5706. var sz=nil;
  5707. var nextLF=nil;
  5708. var nextCR=nil;
  5709. start=(1);
  5710. sz=smalltalk.send(self, "_size", []);
  5711. cr=smalltalk.send((smalltalk.String || String), "_cr", []);
  5712. nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, (1)]);
  5713. lf=smalltalk.send((smalltalk.String || String), "_lf", []);
  5714. nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, (1)]);
  5715. (function(){while((function(){return ((($receiver = start).klass === smalltalk.Number) ? $receiver <=sz : smalltalk.send($receiver, "__lt_eq", [sz]));})()) {(function(){((($receiver = smalltalk.send(smalltalk.send(nextLF, "__eq", [(0)]), "_and_", [(function(){return smalltalk.send(nextCR, "__eq", [(0)]);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, sz, sz]);return (function(){throw({name: 'stReturn', selector: '_lineIndicesDo_', fn: function(){return self}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, sz, sz]);return (function(){throw({name: 'stReturn', selector: '_lineIndicesDo_', fn: function(){return self}})})();})]));return ((($receiver = smalltalk.send(smalltalk.send(nextCR, "__eq", [(0)]), "_or_", [(function(){return smalltalk.send((0) < nextLF, "_and_", [(function(){return ((($receiver = nextLF).klass === smalltalk.Number) ? $receiver <nextCR : smalltalk.send($receiver, "__lt", [nextCR]));})]);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextLF).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);})() : (function(){return ((($receiver = smalltalk.send((1) + nextCR, "__eq", [nextLF])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);})() : (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);start=(1) + nextCR;return nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);}), (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);start=(1) + nextCR;return nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextLF).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);}), (function(){return ((($receiver = smalltalk.send((1) + nextCR, "__eq", [nextLF])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);})() : (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);start=(1) + nextCR;return nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);}), (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);start=(1) + nextCR;return nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);})]));})]));})()}})();
  5716. return self;
  5717. } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineIndicesDo_'){return e.fn()} throw(e)}},
  5718. args: ["aBlock"],
  5719. source: unescape('lineIndicesDo%3A%20aBlock%0A%09%22execute%20aBlock%20with%203%20arguments%20for%20each%20line%3A%0A%09-%20start%20index%20of%20line%0A%09-%20end%20index%20of%20line%20without%20line%20delimiter%0A%09-%20end%20index%20of%20line%20including%20line%20delimiter%28s%29%20CR%2C%20LF%20or%20CRLF%22%0A%09%0A%09%7C%20cr%20lf%20start%20sz%20nextLF%20nextCR%20%7C%0A%09start%20%3A%3D%201.%0A%09sz%20%3A%3D%20self%20size.%0A%09cr%20%3A%3D%20String%20cr.%0A%09nextCR%20%3A%3D%20self%20indexOf%3A%20cr%20startingAt%3A%201.%0A%09lf%20%3A%3D%20String%20lf.%0A%09nextLF%20%3A%3D%20self%20indexOf%3A%20lf%20startingAt%3A%201.%0A%09%5B%20start%20%3C%3D%20sz%20%5D%20whileTrue%3A%20%5B%0A%09%09%28nextLF%20%3D%200%20and%3A%20%5B%20nextCR%20%3D%200%20%5D%29%0A%09%09%09ifTrue%3A%20%5B%20%22No%20more%20CR%2C%20nor%20LF%2C%20the%20string%20is%20over%22%0A%09%09%09%09%09aBlock%20value%3A%20start%20value%3A%20sz%20value%3A%20sz.%0A%09%09%09%09%09%5Eself%20%5D.%0A%09%09%28nextCR%20%3D%200%20or%3A%20%5B%200%20%3C%20nextLF%20and%3A%20%5B%20nextLF%20%3C%20nextCR%20%5D%20%5D%29%0A%09%09%09ifTrue%3A%20%5B%20%22Found%20a%20LF%22%0A%09%09%09%09%09aBlock%20value%3A%20start%20value%3A%20nextLF%20-%201%20value%3A%20nextLF.%0A%09%09%09%09%09start%20%3A%3D%201%20+%20nextLF.%0A%09%09%09%09%09nextLF%20%3A%3D%20self%20indexOf%3A%20lf%20startingAt%3A%20start%20%5D%0A%09%09%09ifFalse%3A%20%5B%201%20+%20nextCR%20%3D%20nextLF%0A%09%09%09%09ifTrue%3A%20%5B%20%22Found%20a%20CR-LF%20pair%22%0A%09%09%09%09%09aBlock%20value%3A%20start%20value%3A%20nextCR%20-%201%20value%3A%20nextLF.%0A%09%09%09%09%09start%20%3A%3D%201%20+%20nextLF.%0A%09%09%09%09%09nextCR%20%3A%3D%20self%20indexOf%3A%20cr%20startingAt%3A%20start.%0A%09%09%09%09%09nextLF%20%3A%3D%20self%20indexOf%3A%20lf%20startingAt%3A%20start%20%5D%0A%09%09%09%09ifFalse%3A%20%5B%20%22Found%20a%20CR%22%0A%09%09%09%09%09aBlock%20value%3A%20start%20value%3A%20nextCR%20-%201%20value%3A%20nextCR.%0A%09%09%09%09%09start%20%3A%3D%201%20+%20nextCR.%0A%09%09%09%09%09nextCR%20%3A%3D%20self%20indexOf%3A%20cr%20startingAt%3A%20start%20%5D%5D%5D'),
  5720. messageSends: ["size", "cr", "indexOf:startingAt:", "lf", "whileTrue:", unescape("%3C%3D"), "ifTrue:", "and:", unescape("%3D"), "value:value:value:", "ifTrue:ifFalse:", "or:", unescape("%3C"), unescape("-"), unescape("+")],
  5721. referencedClasses: ["String"]
  5722. }),
  5723. smalltalk.String);
  5724. smalltalk.addMethod(
  5725. unescape('_linesDo_'),
  5726. smalltalk.method({
  5727. selector: unescape('linesDo%3A'),
  5728. category: 'split join',
  5729. fn: function (aBlock){
  5730. var self=this;
  5731. smalltalk.send(self, "_lineIndicesDo_", [(function(start, endWithoutDelimiters, end){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])]);})]);
  5732. return self;},
  5733. args: ["aBlock"],
  5734. source: unescape('linesDo%3A%20aBlock%0A%09%22Execute%20aBlock%20with%20each%20line%20in%20this%20string.%20The%20terminating%20line%0A%09delimiters%20CR%2C%20LF%20or%20CRLF%20pairs%20are%20not%20included%20in%20what%20is%20passed%20to%20aBlock%22%0A%0A%09self%20lineIndicesDo%3A%20%5B%3Astart%20%3AendWithoutDelimiters%20%3Aend%20%7C%0A%09%09aBlock%20value%3A%20%28self%20copyFrom%3A%20start%20to%3A%20endWithoutDelimiters%29%5D'),
  5735. messageSends: ["lineIndicesDo:", "value:", "copyFrom:to:"],
  5736. referencedClasses: []
  5737. }),
  5738. smalltalk.String);
  5739. smalltalk.addMethod(
  5740. unescape('_lines'),
  5741. smalltalk.method({
  5742. selector: unescape('lines'),
  5743. category: 'split join',
  5744. fn: function (){
  5745. var self=this;
  5746. var lines=nil;
  5747. lines=smalltalk.send((smalltalk.Array || Array), "_new", []);
  5748. smalltalk.send(self, "_linesDo_", [(function(aLine){return smalltalk.send(lines, "_add_", [aLine]);})]);
  5749. return lines;
  5750. return self;},
  5751. args: [],
  5752. source: unescape('lines%0A%09%22Answer%20an%20array%20of%20lines%20composing%20this%20receiver%20without%20the%20line%20ending%20delimiters.%22%0A%0A%09%7C%20lines%20%7C%0A%09lines%20%3A%3D%20Array%20new.%0A%09self%20linesDo%3A%20%5B%3AaLine%20%7C%20lines%20add%3A%20aLine%5D.%0A%09%5Elines'),
  5753. messageSends: ["new", "linesDo:", "add:"],
  5754. referencedClasses: ["Array"]
  5755. }),
  5756. smalltalk.String);
  5757. smalltalk.addMethod(
  5758. unescape('_lineNumber_'),
  5759. smalltalk.method({
  5760. selector: unescape('lineNumber%3A'),
  5761. category: 'split join',
  5762. fn: function (anIndex){
  5763. var self=this;
  5764. try{var lineCount=nil;
  5765. lineCount=(0);
  5766. smalltalk.send(self, "_lineIndicesDo_", [(function(start, endWithoutDelimiters, end){return ((($receiver = smalltalk.send(lineCount=((($receiver = lineCount).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])), "__eq", [anIndex])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])}})})();})]));})]);
  5767. (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return nil}})})();
  5768. return self;
  5769. } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineNumber_'){return e.fn()} throw(e)}},
  5770. args: ["anIndex"],
  5771. source: unescape('lineNumber%3A%20anIndex%0A%09%22Answer%20a%20string%20containing%20the%20characters%20in%20the%20given%20line%20number.%22%0A%0A%09%7C%20lineCount%20%7C%0A%09lineCount%20%3A%3D%200.%0A%09self%20lineIndicesDo%3A%20%5B%3Astart%20%3AendWithoutDelimiters%20%3Aend%20%7C%0A%09%09%28lineCount%20%3A%3D%20lineCount%20+%201%29%20%3D%20anIndex%20ifTrue%3A%20%5B%5Eself%20copyFrom%3A%20start%20to%3A%20endWithoutDelimiters%5D%5D.%0A%09%5Enil'),
  5772. messageSends: ["lineIndicesDo:", "ifTrue:", unescape("%3D"), unescape("+"), "copyFrom:to:"],
  5773. referencedClasses: []
  5774. }),
  5775. smalltalk.String);
  5776. smalltalk.addMethod(
  5777. unescape('_reversed'),
  5778. smalltalk.method({
  5779. selector: unescape('reversed'),
  5780. category: 'converting',
  5781. fn: function (){
  5782. var self=this;
  5783. return self.split("").reverse().join("");
  5784. return self;},
  5785. args: [],
  5786. source: unescape('reversed%0A%09%3Creturn%20self.split%28%22%22%29.reverse%28%29.join%28%22%22%29%3E'),
  5787. messageSends: [],
  5788. referencedClasses: []
  5789. }),
  5790. smalltalk.String);
  5791. smalltalk.addMethod(
  5792. unescape('__eq_eq'),
  5793. smalltalk.method({
  5794. selector: unescape('%3D%3D'),
  5795. category: 'comparing',
  5796. fn: function (aString){
  5797. var self=this;
  5798. try{((($receiver = smalltalk.send(smalltalk.send(aString, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})]));
  5799. return String(self) === String(aString);
  5800. return self;
  5801. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  5802. args: ["aString"],
  5803. source: unescape('%3D%3D%20aString%0A%09aString%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%3Creturn%20String%28self%29%20%3D%3D%3D%20String%28aString%29%3E'),
  5804. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  5805. referencedClasses: []
  5806. }),
  5807. smalltalk.String);
  5808. smalltalk.addMethod(
  5809. unescape('_asJavaScriptSelector'),
  5810. smalltalk.method({
  5811. selector: unescape('asJavaScriptSelector'),
  5812. category: 'converting',
  5813. fn: function (){
  5814. var self=this;
  5815. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_asSelector", []), "_replace_with_", [unescape("%5E_"), ""]), "_replace_with_", [unescape("_.*"), ""]);
  5816. return self;},
  5817. args: [],
  5818. source: unescape('asJavaScriptSelector%0A%09%5E%28self%20asSelector%20replace%3A%20%27%5E_%27%20with%3A%20%27%27%29%20replace%3A%20%27_.*%27%20with%3A%20%27%27.'),
  5819. messageSends: ["replace:with:", "asSelector"],
  5820. referencedClasses: []
  5821. }),
  5822. smalltalk.String);
  5823. smalltalk.addMethod(
  5824. unescape('_streamClass'),
  5825. smalltalk.method({
  5826. selector: unescape('streamClass'),
  5827. category: 'accessing',
  5828. fn: function (){
  5829. var self=this;
  5830. return (smalltalk.StringStream || StringStream);
  5831. return self;},
  5832. args: [],
  5833. source: unescape('streamClass%0A%09%20%20%20%20%5EStringStream'),
  5834. messageSends: [],
  5835. referencedClasses: ["StringStream"]
  5836. }),
  5837. smalltalk.String.klass);
  5838. smalltalk.addMethod(
  5839. unescape('_fromString_'),
  5840. smalltalk.method({
  5841. selector: unescape('fromString%3A'),
  5842. category: 'instance creation',
  5843. fn: function (aString){
  5844. var self=this;
  5845. return new self.fn(aString);
  5846. return self;},
  5847. args: ["aString"],
  5848. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%3Creturn%20new%20self.fn%28aString%29%3E'),
  5849. messageSends: [],
  5850. referencedClasses: []
  5851. }),
  5852. smalltalk.String.klass);
  5853. smalltalk.addMethod(
  5854. unescape('_cr'),
  5855. smalltalk.method({
  5856. selector: unescape('cr'),
  5857. category: 'accessing',
  5858. fn: function (){
  5859. var self=this;
  5860. return '\r';
  5861. return self;},
  5862. args: [],
  5863. source: unescape('cr%0A%09%3Creturn%20%27%5Cr%27%3E'),
  5864. messageSends: [],
  5865. referencedClasses: []
  5866. }),
  5867. smalltalk.String.klass);
  5868. smalltalk.addMethod(
  5869. unescape('_lf'),
  5870. smalltalk.method({
  5871. selector: unescape('lf'),
  5872. category: 'accessing',
  5873. fn: function (){
  5874. var self=this;
  5875. return '\n';
  5876. return self;},
  5877. args: [],
  5878. source: unescape('lf%0A%09%3Creturn%20%27%5Cn%27%3E'),
  5879. messageSends: [],
  5880. referencedClasses: []
  5881. }),
  5882. smalltalk.String.klass);
  5883. smalltalk.addMethod(
  5884. unescape('_space'),
  5885. smalltalk.method({
  5886. selector: unescape('space'),
  5887. category: 'accessing',
  5888. fn: function (){
  5889. var self=this;
  5890. return ' ';
  5891. return self;},
  5892. args: [],
  5893. source: unescape('space%0A%09%3Creturn%20%27%20%27%3E'),
  5894. messageSends: [],
  5895. referencedClasses: []
  5896. }),
  5897. smalltalk.String.klass);
  5898. smalltalk.addMethod(
  5899. unescape('_tab'),
  5900. smalltalk.method({
  5901. selector: unescape('tab'),
  5902. category: 'accessing',
  5903. fn: function (){
  5904. var self=this;
  5905. return '\t';
  5906. return self;},
  5907. args: [],
  5908. source: unescape('tab%0A%09%3Creturn%20%27%5Ct%27%3E'),
  5909. messageSends: [],
  5910. referencedClasses: []
  5911. }),
  5912. smalltalk.String.klass);
  5913. smalltalk.addMethod(
  5914. unescape('_crlf'),
  5915. smalltalk.method({
  5916. selector: unescape('crlf'),
  5917. category: 'accessing',
  5918. fn: function (){
  5919. var self=this;
  5920. return '\r\n';
  5921. return self;},
  5922. args: [],
  5923. source: unescape('crlf%0A%09%3Creturn%20%27%5Cr%5Cn%27%3E'),
  5924. messageSends: [],
  5925. referencedClasses: []
  5926. }),
  5927. smalltalk.String.klass);
  5928. smalltalk.addMethod(
  5929. unescape('_streamContents_'),
  5930. smalltalk.method({
  5931. selector: unescape('streamContents%3A'),
  5932. category: 'instance creation',
  5933. fn: function (blockWithArg){
  5934. var self=this;
  5935. var stream=nil;
  5936. stream=smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [smalltalk.send((smalltalk.String || String), "_new", [])]);
  5937. smalltalk.send(blockWithArg, "_value_", [stream]);
  5938. return smalltalk.send(stream, "_contents", []);
  5939. return self;},
  5940. args: ["blockWithArg"],
  5941. source: unescape('streamContents%3A%20blockWithArg%0A%09%7Cstream%7C%0A%09stream%20%3A%3D%20%28self%20streamClass%20on%3A%20String%20new%29.%0A%09blockWithArg%20value%3A%20stream.%0A%09%5E%20stream%20contents'),
  5942. messageSends: ["on:", "streamClass", "new", "value:", "contents"],
  5943. referencedClasses: ["String"]
  5944. }),
  5945. smalltalk.String.klass);
  5946. smalltalk.addMethod(
  5947. unescape('_value_'),
  5948. smalltalk.method({
  5949. selector: unescape('value%3A'),
  5950. category: 'instance creation',
  5951. fn: function (aUTFCharCode){
  5952. var self=this;
  5953. return String.fromCharCode(aUTFCharCode);;
  5954. return self;},
  5955. args: ["aUTFCharCode"],
  5956. source: unescape('value%3A%20aUTFCharCode%0A%0A%09%3Creturn%20String.fromCharCode%28aUTFCharCode%29%3B%3E'),
  5957. messageSends: [],
  5958. referencedClasses: []
  5959. }),
  5960. smalltalk.String.klass);
  5961. smalltalk.addClass('Array', smalltalk.SequenceableCollection, [], 'Kernel');
  5962. smalltalk.addMethod(
  5963. unescape('_size'),
  5964. smalltalk.method({
  5965. selector: unescape('size'),
  5966. category: 'accessing',
  5967. fn: function (){
  5968. var self=this;
  5969. return self.length;
  5970. return self;},
  5971. args: [],
  5972. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  5973. messageSends: [],
  5974. referencedClasses: []
  5975. }),
  5976. smalltalk.Array);
  5977. smalltalk.addMethod(
  5978. unescape('_at_put_'),
  5979. smalltalk.method({
  5980. selector: unescape('at%3Aput%3A'),
  5981. category: 'accessing',
  5982. fn: function (anIndex, anObject){
  5983. var self=this;
  5984. return self[anIndex - 1] = anObject;
  5985. return self;},
  5986. args: ["anIndex", "anObject"],
  5987. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%20%3D%20anObject%3E'),
  5988. messageSends: [],
  5989. referencedClasses: []
  5990. }),
  5991. smalltalk.Array);
  5992. smalltalk.addMethod(
  5993. unescape('_at_ifAbsent_'),
  5994. smalltalk.method({
  5995. selector: unescape('at%3AifAbsent%3A'),
  5996. category: 'accessing',
  5997. fn: function (anIndex, aBlock){
  5998. var self=this;
  5999. var value = self[anIndex - 1];
  6000. if(value === undefined) {
  6001. return aBlock();
  6002. } else {
  6003. return value;
  6004. }
  6005. ;
  6006. return self;},
  6007. args: ["anIndex", "aBlock"],
  6008. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%09%3C%0A%09%20%20%20%20var%20value%20%3D%20self%5BanIndex%20-%201%5D%3B%0A%09%20%20%20%20if%28value%20%3D%3D%3D%20undefined%29%20%7B%0A%09%09return%20aBlock%28%29%3B%0A%09%20%20%20%20%7D%20else%20%7B%0A%09%09return%20value%3B%0A%09%20%20%20%20%7D%0A%09%3E'),
  6009. messageSends: [],
  6010. referencedClasses: []
  6011. }),
  6012. smalltalk.Array);
  6013. smalltalk.addMethod(
  6014. unescape('_add_'),
  6015. smalltalk.method({
  6016. selector: unescape('add%3A'),
  6017. category: 'adding/removing',
  6018. fn: function (anObject){
  6019. var self=this;
  6020. self.push(anObject); return anObject;;
  6021. return self;},
  6022. args: ["anObject"],
  6023. source: unescape('add%3A%20anObject%0A%09%3Cself.push%28anObject%29%3B%20return%20anObject%3B%3E'),
  6024. messageSends: [],
  6025. referencedClasses: []
  6026. }),
  6027. smalltalk.Array);
  6028. smalltalk.addMethod(
  6029. unescape('_shallowCopy'),
  6030. smalltalk.method({
  6031. selector: unescape('shallowCopy'),
  6032. category: 'copying',
  6033. fn: function (){
  6034. var self=this;
  6035. var newCollection=nil;
  6036. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6037. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [each]);})]);
  6038. return newCollection;
  6039. return self;},
  6040. args: [],
  6041. source: unescape('shallowCopy%0A%09%7C%20newCollection%20%7C%0A%09newCollection%20%3A%3D%20self%20class%20new.%0A%09self%20do%3A%20%5B%3Aeach%20%7C%20newCollection%20add%3A%20each%5D.%0A%09%5EnewCollection'),
  6042. messageSends: ["new", "class", "do:", "add:"],
  6043. referencedClasses: []
  6044. }),
  6045. smalltalk.Array);
  6046. smalltalk.addMethod(
  6047. unescape('_deepCopy'),
  6048. smalltalk.method({
  6049. selector: unescape('deepCopy'),
  6050. category: 'copying',
  6051. fn: function (){
  6052. var self=this;
  6053. var newCollection=nil;
  6054. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6055. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(each, "_deepCopy", [])]);})]);
  6056. return newCollection;
  6057. return self;},
  6058. args: [],
  6059. source: unescape('deepCopy%0A%09%7C%20newCollection%20%7C%0A%09newCollection%20%3A%3D%20self%20class%20new.%0A%09self%20do%3A%20%5B%3Aeach%20%7C%20newCollection%20add%3A%20each%20deepCopy%5D.%0A%09%5EnewCollection'),
  6060. messageSends: ["new", "class", "do:", "add:", "deepCopy"],
  6061. referencedClasses: []
  6062. }),
  6063. smalltalk.Array);
  6064. smalltalk.addMethod(
  6065. unescape('_copyFrom_to_'),
  6066. smalltalk.method({
  6067. selector: unescape('copyFrom%3Ato%3A'),
  6068. category: 'copying',
  6069. fn: function (anIndex, anotherIndex){
  6070. var self=this;
  6071. var array=nil;
  6072. array=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6073. smalltalk.send(anIndex, "_to_do_", [anotherIndex, (function(each){return smalltalk.send(array, "_add_", [smalltalk.send(self, "_at_", [each])]);})]);
  6074. return array;
  6075. return self;},
  6076. args: ["anIndex", "anotherIndex"],
  6077. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09%7C%20array%20%7C%0A%09array%20%3A%3D%20self%20class%20new.%0A%09anIndex%20to%3A%20anotherIndex%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20array%20add%3A%20%28self%20at%3A%20each%29%5D.%0A%09%5Earray'),
  6078. messageSends: ["new", "class", "to:do:", "add:", "at:"],
  6079. referencedClasses: []
  6080. }),
  6081. smalltalk.Array);
  6082. smalltalk.addMethod(
  6083. unescape('_join_'),
  6084. smalltalk.method({
  6085. selector: unescape('join%3A'),
  6086. category: 'enumerating',
  6087. fn: function (aString){
  6088. var self=this;
  6089. return self.join(aString);
  6090. return self;},
  6091. args: ["aString"],
  6092. source: unescape('join%3A%20aString%0A%09%3Creturn%20self.join%28aString%29%3E'),
  6093. messageSends: [],
  6094. referencedClasses: []
  6095. }),
  6096. smalltalk.Array);
  6097. smalltalk.addMethod(
  6098. unescape('_asJavascript'),
  6099. smalltalk.method({
  6100. selector: unescape('asJavascript'),
  6101. category: 'converting',
  6102. fn: function (){
  6103. var self=this;
  6104. return smalltalk.send(smalltalk.send(unescape("%5B"), "__comma", [smalltalk.send(smalltalk.send(self, "_collect_", [(function(each){return smalltalk.send(each, "_asJavascript", []);})]), "_join_", [unescape("%2C%20")])]), "__comma", [unescape("%5D")]);
  6105. return self;},
  6106. args: [],
  6107. source: unescape('asJavascript%0A%09%5E%27%5B%27%2C%20%28%28self%20collect%3A%20%5B%3Aeach%20%7C%20each%20asJavascript%5D%29%20join%3A%20%27%2C%20%27%29%2C%20%20%27%5D%27'),
  6108. messageSends: [unescape("%2C"), "join:", "collect:", "asJavascript"],
  6109. referencedClasses: []
  6110. }),
  6111. smalltalk.Array);
  6112. smalltalk.addMethod(
  6113. unescape('_sort'),
  6114. smalltalk.method({
  6115. selector: unescape('sort'),
  6116. category: 'enumerating',
  6117. fn: function (){
  6118. var self=this;
  6119. return smalltalk.send(self, "_basicPerform_", ["sort"]);
  6120. return self;},
  6121. args: [],
  6122. source: unescape('sort%0A%20%20%20%20%5Eself%20basicPerform%3A%20%27sort%27'),
  6123. messageSends: ["basicPerform:"],
  6124. referencedClasses: []
  6125. }),
  6126. smalltalk.Array);
  6127. smalltalk.addMethod(
  6128. unescape('_sort_'),
  6129. smalltalk.method({
  6130. selector: unescape('sort%3A'),
  6131. category: 'enumerating',
  6132. fn: function (aBlock){
  6133. var self=this;
  6134. return self.sort(function(a, b) {
  6135. if(aBlock(a,b)) {return -1} else {return 1}
  6136. })
  6137. ;
  6138. return self;},
  6139. args: ["aBlock"],
  6140. source: unescape('sort%3A%20aBlock%0A%09%3C%0A%09%09return%20self.sort%28function%28a%2C%20b%29%20%7B%0A%09%09%09if%28aBlock%28a%2Cb%29%29%20%7Breturn%20-1%7D%20else%20%7Breturn%201%7D%0A%09%09%7D%29%0A%09%3E'),
  6141. messageSends: [],
  6142. referencedClasses: []
  6143. }),
  6144. smalltalk.Array);
  6145. smalltalk.addMethod(
  6146. unescape('_remove_'),
  6147. smalltalk.method({
  6148. selector: unescape('remove%3A'),
  6149. category: 'adding/removing',
  6150. fn: function (anObject){
  6151. var self=this;
  6152. for(var i=0;i<self.length;i++) {
  6153. if(self[i] == anObject) {
  6154. self.splice(i,1);
  6155. break;
  6156. }
  6157. }
  6158. ;
  6159. return self;},
  6160. args: ["anObject"],
  6161. source: unescape('remove%3A%20anObject%0A%09%3C%0A%09%09for%28var%20i%3D0%3Bi%3Cself.length%3Bi++%29%20%7B%0A%09%09%09if%28self%5Bi%5D%20%3D%3D%20anObject%29%20%7B%0A%09%09%09%09self.splice%28i%2C1%29%3B%0A%09%09%09%09break%3B%0A%09%09%09%7D%0A%09%09%7D%0A%09%3E'),
  6162. messageSends: [],
  6163. referencedClasses: []
  6164. }),
  6165. smalltalk.Array);
  6166. smalltalk.addMethod(
  6167. unescape('_sorted'),
  6168. smalltalk.method({
  6169. selector: unescape('sorted'),
  6170. category: 'enumerating',
  6171. fn: function (){
  6172. var self=this;
  6173. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort", []);
  6174. return self;},
  6175. args: [],
  6176. source: unescape('sorted%0A%09%5Eself%20copy%20sort'),
  6177. messageSends: ["sort", "copy"],
  6178. referencedClasses: []
  6179. }),
  6180. smalltalk.Array);
  6181. smalltalk.addMethod(
  6182. unescape('_sorted_'),
  6183. smalltalk.method({
  6184. selector: unescape('sorted%3A'),
  6185. category: 'enumerating',
  6186. fn: function (aBlock){
  6187. var self=this;
  6188. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort_", [aBlock]);
  6189. return self;},
  6190. args: ["aBlock"],
  6191. source: unescape('sorted%3A%20aBlock%0A%09%5Eself%20copy%20sort%3A%20aBlock'),
  6192. messageSends: ["sort:", "copy"],
  6193. referencedClasses: []
  6194. }),
  6195. smalltalk.Array);
  6196. smalltalk.addMethod(
  6197. unescape('_asJSONObject'),
  6198. smalltalk.method({
  6199. selector: unescape('asJSONObject'),
  6200. category: 'converting',
  6201. fn: function (){
  6202. var self=this;
  6203. return smalltalk.send(self, "_collect_", [(function(each){return smalltalk.send(each, "_asJSONObject", []);})]);
  6204. return self;},
  6205. args: [],
  6206. source: unescape('asJSONObject%0A%09%5Eself%20collect%3A%20%5B%3Aeach%20%7C%20each%20asJSONObject%5D'),
  6207. messageSends: ["collect:", "asJSONObject"],
  6208. referencedClasses: []
  6209. }),
  6210. smalltalk.Array);
  6211. smalltalk.addMethod(
  6212. unescape('_removeFrom_to_'),
  6213. smalltalk.method({
  6214. selector: unescape('removeFrom%3Ato%3A'),
  6215. category: 'adding/removing',
  6216. fn: function (aNumber, anotherNumber){
  6217. var self=this;
  6218. self.splice(aNumber - 1,anotherNumber - 1);
  6219. return self;},
  6220. args: ["aNumber", "anotherNumber"],
  6221. source: unescape('removeFrom%3A%20aNumber%20to%3A%20anotherNumber%0A%09%3Cself.splice%28aNumber%20-%201%2CanotherNumber%20-%201%29%3E'),
  6222. messageSends: [],
  6223. referencedClasses: []
  6224. }),
  6225. smalltalk.Array);
  6226. smalltalk.addMethod(
  6227. unescape('_printString'),
  6228. smalltalk.method({
  6229. selector: unescape('printString'),
  6230. category: 'enumerating',
  6231. fn: function (){
  6232. var self=this;
  6233. var str=nil;
  6234. str=smalltalk.send("", "_writeStream", []);
  6235. smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.SequenceableCollection), "__comma", [unescape("%20%28")])]);
  6236. smalltalk.send(self, "_do_separatedBy_", [(function(each){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(each, "_printString", [])]);}), (function(){return smalltalk.send(str, "_nextPutAll_", [" "]);})]);
  6237. smalltalk.send(str, "_nextPutAll_", [unescape("%29")]);
  6238. return smalltalk.send(str, "_contents", []);
  6239. return self;},
  6240. args: [],
  6241. source: unescape('printString%0A%09%7C%20str%20%7C%0A%09str%20%3A%3D%20%27%27%20writeStream.%0A%09str%20nextPutAll%3A%20super%20printString%2C%20%27%20%28%27.%0A%09self%20%0A%09%09do%3A%20%5B%3Aeach%20%7C%20str%20nextPutAll%3A%20each%20printString%5D%0A%09%09separatedBy%3A%20%5Bstr%20nextPutAll%3A%20%27%20%27%5D.%0A%09str%20nextPutAll%3A%20%27%29%27.%0A%09%5Estr%20contents'),
  6242. messageSends: ["writeStream", "nextPutAll:", unescape("%2C"), "printString", "do:separatedBy:", "contents"],
  6243. referencedClasses: []
  6244. }),
  6245. smalltalk.Array);
  6246. smalltalk.addMethod(
  6247. unescape('_reversed'),
  6248. smalltalk.method({
  6249. selector: unescape('reversed'),
  6250. category: 'converting',
  6251. fn: function (){
  6252. var self=this;
  6253. return self._copy().reverse();
  6254. return self;},
  6255. args: [],
  6256. source: unescape('reversed%0A%09%3Creturn%20self._copy%28%29.reverse%28%29%3E'),
  6257. messageSends: [],
  6258. referencedClasses: []
  6259. }),
  6260. smalltalk.Array);
  6261. smalltalk.addMethod(
  6262. unescape('__eq'),
  6263. smalltalk.method({
  6264. selector: unescape('%3D'),
  6265. category: 'comparing',
  6266. fn: function (aCollection){
  6267. var self=this;
  6268. try{((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aCollection, "_class", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [smalltalk.send(aCollection, "_size", [])]);})])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  6269. smalltalk.send(self, "_withIndexDo_", [(function(each, i){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_at_", [i]), "__eq", [each])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));})]);
  6270. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return true}})})();
  6271. return self;
  6272. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  6273. args: ["aCollection"],
  6274. source: unescape('%3D%20aCollection%0A%09%28self%20class%20%3D%20aCollection%20class%20and%3A%20%5B%0A%20%20%20%20%20%20%20%20%09self%20size%20%3D%20aCollection%20size%5D%29%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09self%20withIndexDo%3A%20%5B%3Aeach%20%3Ai%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%28aCollection%20at%3A%20i%29%20%3D%20each%20ifFalse%3A%20%5B%5Efalse%5D%5D.%0A%09%5Etrue'),
  6275. messageSends: ["ifFalse:", "and:", unescape("%3D"), "class", "size", "withIndexDo:", "at:"],
  6276. referencedClasses: []
  6277. }),
  6278. smalltalk.Array);
  6279. smalltalk.addClass('RegularExpression', smalltalk.Object, [], 'Kernel');
  6280. smalltalk.addMethod(
  6281. unescape('_compile_'),
  6282. smalltalk.method({
  6283. selector: unescape('compile%3A'),
  6284. category: 'evaluating',
  6285. fn: function (aString){
  6286. var self=this;
  6287. return self.compile(aString);
  6288. return self;},
  6289. args: ["aString"],
  6290. source: unescape('compile%3A%20aString%0A%09%3Creturn%20self.compile%28aString%29%3E'),
  6291. messageSends: [],
  6292. referencedClasses: []
  6293. }),
  6294. smalltalk.RegularExpression);
  6295. smalltalk.addMethod(
  6296. unescape('_exec_'),
  6297. smalltalk.method({
  6298. selector: unescape('exec%3A'),
  6299. category: 'evaluating',
  6300. fn: function (aString){
  6301. var self=this;
  6302. return self.exec(aString) || nil;
  6303. return self;},
  6304. args: ["aString"],
  6305. source: unescape('exec%3A%20aString%0A%09%3Creturn%20self.exec%28aString%29%20%7C%7C%20nil%3E'),
  6306. messageSends: [],
  6307. referencedClasses: []
  6308. }),
  6309. smalltalk.RegularExpression);
  6310. smalltalk.addMethod(
  6311. unescape('_test_'),
  6312. smalltalk.method({
  6313. selector: unescape('test%3A'),
  6314. category: 'evaluating',
  6315. fn: function (aString){
  6316. var self=this;
  6317. return self.test(aString);
  6318. return self;},
  6319. args: ["aString"],
  6320. source: unescape('test%3A%20aString%0A%09%3Creturn%20self.test%28aString%29%3E'),
  6321. messageSends: [],
  6322. referencedClasses: []
  6323. }),
  6324. smalltalk.RegularExpression);
  6325. smalltalk.addMethod(
  6326. unescape('_fromString_flag_'),
  6327. smalltalk.method({
  6328. selector: unescape('fromString%3Aflag%3A'),
  6329. category: 'instance creation',
  6330. fn: function (aString, anotherString){
  6331. var self=this;
  6332. return new RegExp(aString, anotherString);
  6333. return self;},
  6334. args: ["aString", "anotherString"],
  6335. source: unescape('fromString%3A%20aString%20flag%3A%20anotherString%0A%09%3Creturn%20new%20RegExp%28aString%2C%20anotherString%29%3E'),
  6336. messageSends: [],
  6337. referencedClasses: []
  6338. }),
  6339. smalltalk.RegularExpression.klass);
  6340. smalltalk.addMethod(
  6341. unescape('_fromString_'),
  6342. smalltalk.method({
  6343. selector: unescape('fromString%3A'),
  6344. category: 'instance creation',
  6345. fn: function (aString){
  6346. var self=this;
  6347. return smalltalk.send(self, "_fromString_flag_", [aString, ""]);
  6348. return self;},
  6349. args: ["aString"],
  6350. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%5Eself%20fromString%3A%20aString%20flag%3A%20%27%27'),
  6351. messageSends: ["fromString:flag:"],
  6352. referencedClasses: []
  6353. }),
  6354. smalltalk.RegularExpression.klass);
  6355. smalltalk.addClass('Error', smalltalk.Object, ['messageText'], 'Kernel');
  6356. smalltalk.addMethod(
  6357. unescape('_messageText'),
  6358. smalltalk.method({
  6359. selector: unescape('messageText'),
  6360. category: 'accessing',
  6361. fn: function (){
  6362. var self=this;
  6363. return self['@messageText'];
  6364. return self;},
  6365. args: [],
  6366. source: unescape('messageText%0A%09%5EmessageText'),
  6367. messageSends: [],
  6368. referencedClasses: []
  6369. }),
  6370. smalltalk.Error);
  6371. smalltalk.addMethod(
  6372. unescape('_messageText_'),
  6373. smalltalk.method({
  6374. selector: unescape('messageText%3A'),
  6375. category: 'accessing',
  6376. fn: function (aString){
  6377. var self=this;
  6378. self['@messageText']=aString;
  6379. return self;},
  6380. args: ["aString"],
  6381. source: unescape('messageText%3A%20aString%0A%09messageText%20%3A%3D%20aString'),
  6382. messageSends: [],
  6383. referencedClasses: []
  6384. }),
  6385. smalltalk.Error);
  6386. smalltalk.addMethod(
  6387. unescape('_signal'),
  6388. smalltalk.method({
  6389. selector: unescape('signal'),
  6390. category: 'signaling',
  6391. fn: function (){
  6392. var self=this;
  6393. self.context = smalltalk.getThisContext(); self.smalltalkError = true; throw(self);
  6394. return self;},
  6395. args: [],
  6396. source: unescape('signal%0A%09%3Cself.context%20%3D%20smalltalk.getThisContext%28%29%3B%20self.smalltalkError%20%3D%20true%3B%20throw%28self%29%3E'),
  6397. messageSends: [],
  6398. referencedClasses: []
  6399. }),
  6400. smalltalk.Error);
  6401. smalltalk.addMethod(
  6402. unescape('_context'),
  6403. smalltalk.method({
  6404. selector: unescape('context'),
  6405. category: 'accessing',
  6406. fn: function (){
  6407. var self=this;
  6408. return self.context;
  6409. return self;},
  6410. args: [],
  6411. source: unescape('context%0A%09%3Creturn%20self.context%3E'),
  6412. messageSends: [],
  6413. referencedClasses: []
  6414. }),
  6415. smalltalk.Error);
  6416. smalltalk.addMethod(
  6417. unescape('_jsStack'),
  6418. smalltalk.method({
  6419. selector: unescape('jsStack'),
  6420. category: 'accessing',
  6421. fn: function (){
  6422. var self=this;
  6423. return self.stack;
  6424. return self;},
  6425. args: [],
  6426. source: unescape('jsStack%0A%09%3Creturn%20self.stack%3E'),
  6427. messageSends: [],
  6428. referencedClasses: []
  6429. }),
  6430. smalltalk.Error);
  6431. smalltalk.addMethod(
  6432. unescape('_isSmalltalkError'),
  6433. smalltalk.method({
  6434. selector: unescape('isSmalltalkError'),
  6435. category: 'testing',
  6436. fn: function (){
  6437. var self=this;
  6438. return self.smalltalkError === true;
  6439. return self;},
  6440. args: [],
  6441. source: unescape('isSmalltalkError%0A%09%3Creturn%20self.smalltalkError%20%3D%3D%3D%20true%3E'),
  6442. messageSends: [],
  6443. referencedClasses: []
  6444. }),
  6445. smalltalk.Error);
  6446. smalltalk.addMethod(
  6447. unescape('_signal_'),
  6448. smalltalk.method({
  6449. selector: unescape('signal%3A'),
  6450. category: 'instance creation',
  6451. fn: function (aString){
  6452. var self=this;
  6453. return (function($rec){smalltalk.send($rec, "_messageText_", [aString]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send(self, "_new", []));
  6454. return self;},
  6455. args: ["aString"],
  6456. source: unescape('signal%3A%20aString%0A%09%20%20%20%20%5Eself%20new%0A%09%09messageText%3A%20aString%3B%0A%09%09signal'),
  6457. messageSends: ["messageText:", "signal", "new"],
  6458. referencedClasses: []
  6459. }),
  6460. smalltalk.Error.klass);
  6461. smalltalk.addClass('MethodContext', smalltalk.Object, [], 'Kernel');
  6462. smalltalk.addMethod(
  6463. unescape('_receiver'),
  6464. smalltalk.method({
  6465. selector: unescape('receiver'),
  6466. category: 'accessing',
  6467. fn: function (){
  6468. var self=this;
  6469. return self.receiver;
  6470. return self;},
  6471. args: [],
  6472. source: unescape('receiver%0A%09%3Creturn%20self.receiver%3E'),
  6473. messageSends: [],
  6474. referencedClasses: []
  6475. }),
  6476. smalltalk.MethodContext);
  6477. smalltalk.addMethod(
  6478. unescape('_selector'),
  6479. smalltalk.method({
  6480. selector: unescape('selector'),
  6481. category: 'accessing',
  6482. fn: function (){
  6483. var self=this;
  6484. return smalltalk.convertSelector(self.selector);
  6485. return self;},
  6486. args: [],
  6487. source: unescape('selector%0A%09%3Creturn%20smalltalk.convertSelector%28self.selector%29%3E'),
  6488. messageSends: [],
  6489. referencedClasses: []
  6490. }),
  6491. smalltalk.MethodContext);
  6492. smalltalk.addMethod(
  6493. unescape('_home'),
  6494. smalltalk.method({
  6495. selector: unescape('home'),
  6496. category: 'accessing',
  6497. fn: function (){
  6498. var self=this;
  6499. return self.homeContext;
  6500. return self;},
  6501. args: [],
  6502. source: unescape('home%0A%09%3Creturn%20self.homeContext%3E'),
  6503. messageSends: [],
  6504. referencedClasses: []
  6505. }),
  6506. smalltalk.MethodContext);
  6507. smalltalk.addMethod(
  6508. unescape('_temps'),
  6509. smalltalk.method({
  6510. selector: unescape('temps'),
  6511. category: 'accessing',
  6512. fn: function (){
  6513. var self=this;
  6514. return self.temps;
  6515. return self;},
  6516. args: [],
  6517. source: unescape('temps%0A%09%3Creturn%20self.temps%3E'),
  6518. messageSends: [],
  6519. referencedClasses: []
  6520. }),
  6521. smalltalk.MethodContext);
  6522. smalltalk.addMethod(
  6523. unescape('_printString'),
  6524. smalltalk.method({
  6525. selector: unescape('printString'),
  6526. category: 'accessing',
  6527. fn: function (){
  6528. var self=this;
  6529. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.Object), "__comma", [unescape("%28")]), "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", [unescape("%29")]);
  6530. return self;},
  6531. args: [],
  6532. source: unescape('printString%0A%09%5Esuper%20printString%2C%20%27%28%27%2C%20self%20asString%2C%20%27%29%27'),
  6533. messageSends: [unescape("%2C"), "printString", "asString"],
  6534. referencedClasses: []
  6535. }),
  6536. smalltalk.MethodContext);
  6537. smalltalk.addMethod(
  6538. unescape('_asString'),
  6539. smalltalk.method({
  6540. selector: unescape('asString'),
  6541. category: 'accessing',
  6542. fn: function (){
  6543. var self=this;
  6544. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_receiver", []), "_class", []), "_printString", []), "__comma", [unescape("%20%3E%3E%20")]), "__comma", [smalltalk.send(self, "_selector", [])]);
  6545. return self;},
  6546. args: [],
  6547. source: unescape('asString%0A%09%5Eself%20receiver%20class%20printString%2C%20%27%20%3E%3E%20%27%2C%20self%20selector'),
  6548. messageSends: [unescape("%2C"), "printString", "class", "receiver", "selector"],
  6549. referencedClasses: []
  6550. }),
  6551. smalltalk.MethodContext);
  6552. smalltalk.addClass('Association', smalltalk.Object, ['key', 'value'], 'Kernel');
  6553. smalltalk.addMethod(
  6554. unescape('__eq'),
  6555. smalltalk.method({
  6556. selector: unescape('%3D'),
  6557. category: 'comparing',
  6558. fn: function (anAssociation){
  6559. var self=this;
  6560. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(anAssociation, "_class", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_key", []), "__eq", [smalltalk.send(anAssociation, "_key", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(self, "_value", []), "__eq", [smalltalk.send(anAssociation, "_value", [])]);})]);})]);
  6561. return self;},
  6562. args: ["anAssociation"],
  6563. source: unescape('%3D%20anAssociation%0A%09%5Eself%20class%20%3D%20anAssociation%20class%20and%3A%20%5B%0A%09%20%20%20%20self%20key%20%3D%20anAssociation%20key%20and%3A%20%5B%0A%09%09self%20value%20%3D%20anAssociation%20value%5D%5D'),
  6564. messageSends: ["and:", unescape("%3D"), "class", "key", "value"],
  6565. referencedClasses: []
  6566. }),
  6567. smalltalk.Association);
  6568. smalltalk.addMethod(
  6569. unescape('_key_'),
  6570. smalltalk.method({
  6571. selector: unescape('key%3A'),
  6572. category: 'accessing',
  6573. fn: function (aKey){
  6574. var self=this;
  6575. self['@key']=aKey;
  6576. return self;},
  6577. args: ["aKey"],
  6578. source: unescape('key%3A%20aKey%0A%09key%20%3A%3D%20aKey'),
  6579. messageSends: [],
  6580. referencedClasses: []
  6581. }),
  6582. smalltalk.Association);
  6583. smalltalk.addMethod(
  6584. unescape('_key'),
  6585. smalltalk.method({
  6586. selector: unescape('key'),
  6587. category: 'accessing',
  6588. fn: function (){
  6589. var self=this;
  6590. return self['@key'];
  6591. return self;},
  6592. args: [],
  6593. source: unescape('key%0A%09%5Ekey'),
  6594. messageSends: [],
  6595. referencedClasses: []
  6596. }),
  6597. smalltalk.Association);
  6598. smalltalk.addMethod(
  6599. unescape('_value_'),
  6600. smalltalk.method({
  6601. selector: unescape('value%3A'),
  6602. category: 'accessing',
  6603. fn: function (aValue){
  6604. var self=this;
  6605. self['@value']=aValue;
  6606. return self;},
  6607. args: ["aValue"],
  6608. source: unescape('value%3A%20aValue%0A%09value%20%3A%3D%20aValue'),
  6609. messageSends: [],
  6610. referencedClasses: []
  6611. }),
  6612. smalltalk.Association);
  6613. smalltalk.addMethod(
  6614. unescape('_value'),
  6615. smalltalk.method({
  6616. selector: unescape('value'),
  6617. category: 'accessing',
  6618. fn: function (){
  6619. var self=this;
  6620. return self['@value'];
  6621. return self;},
  6622. args: [],
  6623. source: unescape('value%0A%09%5Evalue'),
  6624. messageSends: [],
  6625. referencedClasses: []
  6626. }),
  6627. smalltalk.Association);
  6628. smalltalk.addMethod(
  6629. unescape('_storeOn_'),
  6630. smalltalk.method({
  6631. selector: unescape('storeOn%3A'),
  6632. category: 'comparing',
  6633. fn: function (aStream){
  6634. var self=this;
  6635. smalltalk.send(self['@key'], "_storeOn_", [aStream]);
  6636. smalltalk.send(aStream, "_nextPutAll_", [unescape("-%3E")]);
  6637. smalltalk.send(self['@value'], "_storeOn_", [aStream]);
  6638. return self;},
  6639. args: ["aStream"],
  6640. source: unescape('storeOn%3A%20aStream%0A%09%22Store%20in%20the%20format%20%28key-%3Evalue%29%22%0A%0A%09%22aStream%20nextPutAll%3A%20%27%28%27.%22%0A%09key%20storeOn%3A%20aStream.%0A%09aStream%20nextPutAll%3A%20%27-%3E%27.%0A%09value%20storeOn%3A%20aStream.%0A%09%22aStream%20nextPutAll%3A%20%27%29%27%22'),
  6641. messageSends: ["storeOn:", "nextPutAll:"],
  6642. referencedClasses: []
  6643. }),
  6644. smalltalk.Association);
  6645. smalltalk.addMethod(
  6646. unescape('_key_value_'),
  6647. smalltalk.method({
  6648. selector: unescape('key%3Avalue%3A'),
  6649. category: 'instance creation',
  6650. fn: function (aKey, aValue){
  6651. var self=this;
  6652. return (function($rec){smalltalk.send($rec, "_key_", [aKey]);smalltalk.send($rec, "_value_", [aValue]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  6653. return self;},
  6654. args: ["aKey", "aValue"],
  6655. source: unescape('key%3A%20aKey%20value%3A%20aValue%0A%09%20%20%20%20%5Eself%20new%0A%09%09key%3A%20aKey%3B%0A%09%09value%3A%20aValue%3B%0A%09%09yourself'),
  6656. messageSends: ["key:", "value:", "yourself", "new"],
  6657. referencedClasses: []
  6658. }),
  6659. smalltalk.Association.klass);
  6660. smalltalk.addClass('Dictionary', smalltalk.Collection, ['keys'], 'Kernel');
  6661. smalltalk.addMethod(
  6662. unescape('__eq'),
  6663. smalltalk.method({
  6664. selector: unescape('%3D'),
  6665. category: 'comparing',
  6666. fn: function (aDictionary){
  6667. var self=this;
  6668. try{((($receiver = smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aDictionary, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  6669. ((($receiver = smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [smalltalk.send(aDictionary, "_size", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  6670. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return smalltalk.send(smalltalk.send(self, "_associations", []), "__eq", [smalltalk.send(aDictionary, "_associations", [])])}})})();
  6671. return self;
  6672. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  6673. args: ["aDictionary"],
  6674. source: unescape('%3D%20aDictionary%0A%09self%20class%20%3D%20aDictionary%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09self%20size%20%3D%20aDictionary%20size%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%5Eself%20associations%20%3D%20aDictionary%20associations'),
  6675. messageSends: ["ifFalse:", unescape("%3D"), "class", "size", "associations"],
  6676. referencedClasses: []
  6677. }),
  6678. smalltalk.Dictionary);
  6679. smalltalk.addMethod(
  6680. unescape('_shallowCopy'),
  6681. smalltalk.method({
  6682. selector: unescape('shallowCopy'),
  6683. category: 'copying',
  6684. fn: function (){
  6685. var self=this;
  6686. var copy=nil;
  6687. copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6688. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(copy, "_at_put_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  6689. return copy;
  6690. return self;},
  6691. args: [],
  6692. source: unescape('shallowCopy%0A%09%7C%20copy%20%7C%0A%09copy%20%3A%3D%20self%20class%20new.%0A%09self%20associationsDo%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20copy%20at%3A%20each%20key%20%20put%3A%20each%20value%5D.%0A%09%5Ecopy'),
  6693. messageSends: ["new", "class", "associationsDo:", "at:put:", "key", "value"],
  6694. referencedClasses: []
  6695. }),
  6696. smalltalk.Dictionary);
  6697. smalltalk.addMethod(
  6698. unescape('_initialize'),
  6699. smalltalk.method({
  6700. selector: unescape('initialize'),
  6701. category: 'initialization',
  6702. fn: function (){
  6703. var self=this;
  6704. smalltalk.send(self, "_initialize", [], smalltalk.Collection);
  6705. self['@keys']=[];
  6706. return self;},
  6707. args: [],
  6708. source: unescape('initialize%0A%20%20%20%20%09super%20initialize.%0A%20%20%20%20%09keys%20%3A%3D%20%23%28%29'),
  6709. messageSends: ["initialize"],
  6710. referencedClasses: []
  6711. }),
  6712. smalltalk.Dictionary);
  6713. smalltalk.addMethod(
  6714. unescape('_size'),
  6715. smalltalk.method({
  6716. selector: unescape('size'),
  6717. category: 'accessing',
  6718. fn: function (){
  6719. var self=this;
  6720. return smalltalk.send(self['@keys'], "_size", []);
  6721. return self;},
  6722. args: [],
  6723. source: unescape('size%0A%09%5Ekeys%20size'),
  6724. messageSends: ["size"],
  6725. referencedClasses: []
  6726. }),
  6727. smalltalk.Dictionary);
  6728. smalltalk.addMethod(
  6729. unescape('_associations'),
  6730. smalltalk.method({
  6731. selector: unescape('associations'),
  6732. category: 'accessing',
  6733. fn: function (){
  6734. var self=this;
  6735. var associations=nil;
  6736. associations=[];
  6737. smalltalk.send(self['@keys'], "_do_", [(function(each){return smalltalk.send(associations, "_add_", [smalltalk.send((smalltalk.Association || Association), "_key_value_", [each, smalltalk.send(self, "_at_", [each])])]);})]);
  6738. return associations;
  6739. return self;},
  6740. args: [],
  6741. source: unescape('associations%0A%09%7C%20associations%20%7C%0A%09associations%20%3A%3D%20%23%28%29.%0A%09keys%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20associations%20add%3A%20%28Association%20key%3A%20each%20value%3A%20%28self%20at%3A%20each%29%29%5D.%0A%09%5Eassociations'),
  6742. messageSends: ["do:", "add:", "key:value:", "at:"],
  6743. referencedClasses: ["Association"]
  6744. }),
  6745. smalltalk.Dictionary);
  6746. smalltalk.addMethod(
  6747. unescape('_keys'),
  6748. smalltalk.method({
  6749. selector: unescape('keys'),
  6750. category: 'accessing',
  6751. fn: function (){
  6752. var self=this;
  6753. return smalltalk.send(self['@keys'], "_copy", []);
  6754. return self;},
  6755. args: [],
  6756. source: unescape('keys%0A%09%5Ekeys%20copy'),
  6757. messageSends: ["copy"],
  6758. referencedClasses: []
  6759. }),
  6760. smalltalk.Dictionary);
  6761. smalltalk.addMethod(
  6762. unescape('_values'),
  6763. smalltalk.method({
  6764. selector: unescape('values'),
  6765. category: 'accessing',
  6766. fn: function (){
  6767. var self=this;
  6768. return smalltalk.send(self['@keys'], "_collect_", [(function(each){return smalltalk.send(self, "_at_", [each]);})]);
  6769. return self;},
  6770. args: [],
  6771. source: unescape('values%0A%20%20%20%20%09%5Ekeys%20collect%3A%20%5B%3Aeach%20%7C%20self%20at%3A%20each%5D'),
  6772. messageSends: ["collect:", "at:"],
  6773. referencedClasses: []
  6774. }),
  6775. smalltalk.Dictionary);
  6776. smalltalk.addMethod(
  6777. unescape('_at_put_'),
  6778. smalltalk.method({
  6779. selector: unescape('at%3Aput%3A'),
  6780. category: 'accessing',
  6781. fn: function (aKey, aValue){
  6782. var self=this;
  6783. ((($receiver = smalltalk.send(self['@keys'], "_includes_", [aKey])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@keys'], "_add_", [aKey]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self['@keys'], "_add_", [aKey]);})]));
  6784. return smalltalk.send(self, "_basicAt_put_", [aKey, aValue]);
  6785. return self;},
  6786. args: ["aKey", "aValue"],
  6787. source: unescape('at%3A%20aKey%20put%3A%20aValue%0A%09%28keys%20includes%3A%20aKey%29%20ifFalse%3A%20%5Bkeys%20add%3A%20aKey%5D.%0A%09%5Eself%20basicAt%3A%20aKey%20put%3A%20aValue'),
  6788. messageSends: ["ifFalse:", "includes:", "add:", "basicAt:put:"],
  6789. referencedClasses: []
  6790. }),
  6791. smalltalk.Dictionary);
  6792. smalltalk.addMethod(
  6793. unescape('_at_ifAbsent_'),
  6794. smalltalk.method({
  6795. selector: unescape('at%3AifAbsent%3A'),
  6796. category: 'accessing',
  6797. fn: function (aKey, aBlock){
  6798. var self=this;
  6799. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_keys", []), "_includes_", [aKey]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_basicAt_", [aKey]);}), aBlock]);
  6800. return self;},
  6801. args: ["aKey", "aBlock"],
  6802. source: unescape('at%3A%20aKey%20ifAbsent%3A%20aBlock%0A%09%5E%28self%20keys%20includes%3A%20aKey%29%0A%09%09ifTrue%3A%20%5Bself%20basicAt%3A%20aKey%5D%0A%09%09ifFalse%3A%20aBlock'),
  6803. messageSends: ["ifTrue:ifFalse:", "includes:", "keys", "basicAt:"],
  6804. referencedClasses: []
  6805. }),
  6806. smalltalk.Dictionary);
  6807. smalltalk.addMethod(
  6808. unescape('_at_ifAbsentPut_'),
  6809. smalltalk.method({
  6810. selector: unescape('at%3AifAbsentPut%3A'),
  6811. category: 'accessing',
  6812. fn: function (aKey, aBlock){
  6813. var self=this;
  6814. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_at_put_", [aKey, smalltalk.send(aBlock, "_value", [])]);})]);
  6815. return self;},
  6816. args: ["aKey", "aBlock"],
  6817. source: unescape('at%3A%20aKey%20ifAbsentPut%3A%20aBlock%0A%20%20%20%20%09%5Eself%20at%3A%20aKey%20ifAbsent%3A%20%5B%0A%20%20%20%20%09%20%20%20%20self%20at%3A%20aKey%20put%3A%20aBlock%20value%5D'),
  6818. messageSends: ["at:ifAbsent:", "at:put:", "value"],
  6819. referencedClasses: []
  6820. }),
  6821. smalltalk.Dictionary);
  6822. smalltalk.addMethod(
  6823. unescape('_at_ifPresent_'),
  6824. smalltalk.method({
  6825. selector: unescape('at%3AifPresent%3A'),
  6826. category: 'accessing',
  6827. fn: function (aKey, aBlock){
  6828. var self=this;
  6829. return (($receiver = smalltalk.send(self, "_basicAt_", [aKey])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})() : nil;
  6830. return self;},
  6831. args: ["aKey", "aBlock"],
  6832. source: unescape('at%3A%20aKey%20ifPresent%3A%20aBlock%0A%09%5E%28self%20basicAt%3A%20aKey%29%20ifNotNil%3A%20%5BaBlock%20value%3A%20%28self%20at%3A%20aKey%29%5D'),
  6833. messageSends: ["ifNotNil:", "basicAt:", "value:", "at:"],
  6834. referencedClasses: []
  6835. }),
  6836. smalltalk.Dictionary);
  6837. smalltalk.addMethod(
  6838. unescape('_at_ifPresent_ifAbsent_'),
  6839. smalltalk.method({
  6840. selector: unescape('at%3AifPresent%3AifAbsent%3A'),
  6841. category: 'accessing',
  6842. fn: function (aKey, aBlock, anotherBlock){
  6843. var self=this;
  6844. return smalltalk.send(smalltalk.send(self, "_basicAt_", [aKey]), "_ifNil_ifNotNil_", [anotherBlock, (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})]);
  6845. return self;},
  6846. args: ["aKey", "aBlock", "anotherBlock"],
  6847. source: unescape('at%3A%20aKey%20ifPresent%3A%20aBlock%20ifAbsent%3A%20anotherBlock%0A%09%5E%28self%20basicAt%3A%20aKey%29%0A%09%20%20%20%20ifNil%3A%20anotherBlock%0A%09%20%20%20%20ifNotNil%3A%20%5BaBlock%20value%3A%20%28self%20at%3A%20aKey%29%5D'),
  6848. messageSends: ["ifNil:ifNotNil:", "basicAt:", "value:", "at:"],
  6849. referencedClasses: []
  6850. }),
  6851. smalltalk.Dictionary);
  6852. smalltalk.addMethod(
  6853. unescape('_add_'),
  6854. smalltalk.method({
  6855. selector: unescape('add%3A'),
  6856. category: 'adding/removing',
  6857. fn: function (anAssociation){
  6858. var self=this;
  6859. smalltalk.send(self, "_at_put_", [smalltalk.send(anAssociation, "_key", []), smalltalk.send(anAssociation, "_value", [])]);
  6860. return self;},
  6861. args: ["anAssociation"],
  6862. source: unescape('add%3A%20anAssociation%0A%20%20%20%20%09self%20at%3A%20anAssociation%20key%20put%3A%20anAssociation%20value'),
  6863. messageSends: ["at:put:", "key", "value"],
  6864. referencedClasses: []
  6865. }),
  6866. smalltalk.Dictionary);
  6867. smalltalk.addMethod(
  6868. unescape('_addAll_'),
  6869. smalltalk.method({
  6870. selector: unescape('addAll%3A'),
  6871. category: 'adding/removing',
  6872. fn: function (aDictionary){
  6873. var self=this;
  6874. smalltalk.send(self, "_addAll_", [smalltalk.send(aDictionary, "_associations", [])], smalltalk.Collection);
  6875. return aDictionary;
  6876. return self;},
  6877. args: ["aDictionary"],
  6878. source: unescape('addAll%3A%20aDictionary%0A%20%20%20%20%09super%20addAll%3A%20aDictionary%20associations.%0A%20%20%20%20%09%5EaDictionary'),
  6879. messageSends: ["addAll:", "associations"],
  6880. referencedClasses: []
  6881. }),
  6882. smalltalk.Dictionary);
  6883. smalltalk.addMethod(
  6884. unescape('__comma'),
  6885. smalltalk.method({
  6886. selector: unescape('%2C'),
  6887. category: 'copying',
  6888. fn: function (aCollection){
  6889. var self=this;
  6890. smalltalk.send(self, "_shouldNotImplement", []);
  6891. return self;},
  6892. args: ["aCollection"],
  6893. source: unescape('%2C%20aCollection%0A%09self%20shouldNotImplement'),
  6894. messageSends: ["shouldNotImplement"],
  6895. referencedClasses: []
  6896. }),
  6897. smalltalk.Dictionary);
  6898. smalltalk.addMethod(
  6899. unescape('_copyFrom_to_'),
  6900. smalltalk.method({
  6901. selector: unescape('copyFrom%3Ato%3A'),
  6902. category: 'copying',
  6903. fn: function (anIndex, anotherIndex){
  6904. var self=this;
  6905. smalltalk.send(self, "_shouldNotImplement", []);
  6906. return self;},
  6907. args: ["anIndex", "anotherIndex"],
  6908. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20shouldNotImplement'),
  6909. messageSends: ["shouldNotImplement"],
  6910. referencedClasses: []
  6911. }),
  6912. smalltalk.Dictionary);
  6913. smalltalk.addMethod(
  6914. unescape('_associationsDo_'),
  6915. smalltalk.method({
  6916. selector: unescape('associationsDo%3A'),
  6917. category: 'enumerating',
  6918. fn: function (aBlock){
  6919. var self=this;
  6920. smalltalk.send(smalltalk.send(self, "_associations", []), "_do_", [aBlock]);
  6921. return self;},
  6922. args: ["aBlock"],
  6923. source: unescape('associationsDo%3A%20aBlock%0A%20%20%20%20%09self%20associations%20do%3A%20aBlock'),
  6924. messageSends: ["do:", "associations"],
  6925. referencedClasses: []
  6926. }),
  6927. smalltalk.Dictionary);
  6928. smalltalk.addMethod(
  6929. unescape('_keysAndValuesDo_'),
  6930. smalltalk.method({
  6931. selector: unescape('keysAndValuesDo%3A'),
  6932. category: 'enumerating',
  6933. fn: function (aBlock){
  6934. var self=this;
  6935. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(aBlock, "_value_value_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  6936. return self;},
  6937. args: ["aBlock"],
  6938. source: unescape('keysAndValuesDo%3A%20aBlock%0A%20%20%20%20%09self%20associationsDo%3A%20%5B%3Aeach%20%7C%0A%20%20%20%20%09%20%20%20%20aBlock%20value%3A%20each%20key%20value%3A%20each%20value%5D'),
  6939. messageSends: ["associationsDo:", "value:value:", "key", "value"],
  6940. referencedClasses: []
  6941. }),
  6942. smalltalk.Dictionary);
  6943. smalltalk.addMethod(
  6944. unescape('_do_'),
  6945. smalltalk.method({
  6946. selector: unescape('do%3A'),
  6947. category: 'enumerating',
  6948. fn: function (aBlock){
  6949. var self=this;
  6950. smalltalk.send(smalltalk.send(self, "_values", []), "_do_", [aBlock]);
  6951. return self;},
  6952. args: ["aBlock"],
  6953. source: unescape('do%3A%20aBlock%0A%20%20%20%20%09self%20values%20do%3A%20aBlock'),
  6954. messageSends: ["do:", "values"],
  6955. referencedClasses: []
  6956. }),
  6957. smalltalk.Dictionary);
  6958. smalltalk.addMethod(
  6959. unescape('_select_'),
  6960. smalltalk.method({
  6961. selector: unescape('select%3A'),
  6962. category: 'enumerating',
  6963. fn: function (aBlock){
  6964. var self=this;
  6965. var newDict=nil;
  6966. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6967. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return ((($receiver = smalltalk.send(aBlock, "_value_", [value])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(newDict, "_at_put_", [key, value]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(newDict, "_at_put_", [key, value]);})]));})]);
  6968. return newDict;
  6969. return self;},
  6970. args: ["aBlock"],
  6971. source: unescape('select%3A%20aBlock%0A%20%20%20%20%09%7C%20newDict%20%7C%0A%20%20%20%20%09newDict%20%3A%3D%20self%20class%20new.%0A%20%20%20%20%09self%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%20%20%20%20%09%20%20%20%20%28aBlock%20value%3A%20value%29%20ifTrue%3A%20%5BnewDict%20at%3A%20key%20put%3A%20value%5D%5D.%0A%20%20%20%20%09%5EnewDict'),
  6972. messageSends: ["new", "class", "keysAndValuesDo:", "ifTrue:", "value:", "at:put:"],
  6973. referencedClasses: []
  6974. }),
  6975. smalltalk.Dictionary);
  6976. smalltalk.addMethod(
  6977. unescape('_collect_'),
  6978. smalltalk.method({
  6979. selector: unescape('collect%3A'),
  6980. category: 'enumerating',
  6981. fn: function (aBlock){
  6982. var self=this;
  6983. var newDict=nil;
  6984. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6985. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(newDict, "_at_put_", [key, smalltalk.send(aBlock, "_value_", [value])]);})]);
  6986. return newDict;
  6987. return self;},
  6988. args: ["aBlock"],
  6989. source: unescape('collect%3A%20aBlock%0A%20%20%20%20%09%7C%20newDict%20%7C%0A%20%20%20%20%09newDict%20%3A%3D%20self%20class%20new.%0A%20%20%20%20%09self%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%20%20%20%20%09%20%20%20%20newDict%20at%3A%20key%20put%3A%20%28aBlock%20value%3A%20value%29%5D.%0A%20%20%20%20%09%5EnewDict'),
  6990. messageSends: ["new", "class", "keysAndValuesDo:", "at:put:", "value:"],
  6991. referencedClasses: []
  6992. }),
  6993. smalltalk.Dictionary);
  6994. smalltalk.addMethod(
  6995. unescape('_detect_ifNone_'),
  6996. smalltalk.method({
  6997. selector: unescape('detect%3AifNone%3A'),
  6998. category: 'enumerating',
  6999. fn: function (aBlock, anotherBlock){
  7000. var self=this;
  7001. return smalltalk.send(smalltalk.send(self, "_values", []), "_detect_ifNone_", [aBlock, anotherBlock]);
  7002. return self;},
  7003. args: ["aBlock", "anotherBlock"],
  7004. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eself%20values%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  7005. messageSends: ["detect:ifNone:", "values"],
  7006. referencedClasses: []
  7007. }),
  7008. smalltalk.Dictionary);
  7009. smalltalk.addMethod(
  7010. unescape('_includes_'),
  7011. smalltalk.method({
  7012. selector: unescape('includes%3A'),
  7013. category: 'enumerating',
  7014. fn: function (anObject){
  7015. var self=this;
  7016. return smalltalk.send(smalltalk.send(self, "_values", []), "_includes_", [anObject]);
  7017. return self;},
  7018. args: ["anObject"],
  7019. source: unescape('includes%3A%20anObject%0A%09%5Eself%20values%20includes%3A%20anObject'),
  7020. messageSends: ["includes:", "values"],
  7021. referencedClasses: []
  7022. }),
  7023. smalltalk.Dictionary);
  7024. smalltalk.addMethod(
  7025. unescape('_remove_'),
  7026. smalltalk.method({
  7027. selector: unescape('remove%3A'),
  7028. category: 'adding/removing',
  7029. fn: function (aKey){
  7030. var self=this;
  7031. smalltalk.send(self, "_removeKey_", [aKey]);
  7032. return self;},
  7033. args: ["aKey"],
  7034. source: unescape('remove%3A%20aKey%0A%20%20%20%20self%20removeKey%3A%20aKey'),
  7035. messageSends: ["removeKey:"],
  7036. referencedClasses: []
  7037. }),
  7038. smalltalk.Dictionary);
  7039. smalltalk.addMethod(
  7040. unescape('_removeKey_'),
  7041. smalltalk.method({
  7042. selector: unescape('removeKey%3A'),
  7043. category: 'adding/removing',
  7044. fn: function (aKey){
  7045. var self=this;
  7046. smalltalk.send(self['@keys'], "_remove_", [aKey]);
  7047. return self;},
  7048. args: ["aKey"],
  7049. source: unescape('removeKey%3A%20aKey%0A%20%20%20%20keys%20remove%3A%20aKey'),
  7050. messageSends: ["remove:"],
  7051. referencedClasses: []
  7052. }),
  7053. smalltalk.Dictionary);
  7054. smalltalk.addMethod(
  7055. unescape('_at_'),
  7056. smalltalk.method({
  7057. selector: unescape('at%3A'),
  7058. category: 'accessing',
  7059. fn: function (aKey){
  7060. var self=this;
  7061. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  7062. return self;},
  7063. args: ["aKey"],
  7064. source: unescape('at%3A%20aKey%0A%09%5Eself%20at%3A%20aKey%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  7065. messageSends: ["at:ifAbsent:", "errorNotFound"],
  7066. referencedClasses: []
  7067. }),
  7068. smalltalk.Dictionary);
  7069. smalltalk.addMethod(
  7070. unescape('_asJSONObject'),
  7071. smalltalk.method({
  7072. selector: unescape('asJSONObject'),
  7073. category: 'converting',
  7074. fn: function (){
  7075. var self=this;
  7076. var object=nil;
  7077. object=smalltalk.send((smalltalk.Object || Object), "_new", []);
  7078. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(object, "_basicAt_put_", [key, smalltalk.send(value, "_asJSONObject", [])]);})]);
  7079. return object;
  7080. return self;},
  7081. args: [],
  7082. source: unescape('asJSONObject%0A%09%7C%20object%20%7C%0A%09object%20%3A%3D%20Object%20new.%0A%09self%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09object%20basicAt%3A%20key%20put%3A%20value%20asJSONObject%5D.%0A%09%5Eobject'),
  7083. messageSends: ["new", "keysAndValuesDo:", "basicAt:put:", "asJSONObject"],
  7084. referencedClasses: ["Object"]
  7085. }),
  7086. smalltalk.Dictionary);
  7087. smalltalk.addMethod(
  7088. unescape('_printString'),
  7089. smalltalk.method({
  7090. selector: unescape('printString'),
  7091. category: 'printing',
  7092. fn: function (){
  7093. var self=this;
  7094. return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(aStream){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_printString", [], smalltalk.Collection)]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%28")]);})(aStream);smalltalk.send(smalltalk.send(self, "_associations", []), "_do_separatedBy_", [(function(anAssociation){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(anAssociation, "_key", []), "_printString", [])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%20-%3E%20")]);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(anAssociation, "_value", []), "_printString", [])]);})(aStream);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [unescape("%20%2C%20")]);})]);return smalltalk.send(aStream, "_nextPutAll_", [unescape("%29")]);})]);
  7095. return self;},
  7096. args: [],
  7097. source: unescape('printString%0A%09%5E%20String%20streamContents%3A%20%5B%3AaStream%7C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09aStream%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09nextPutAll%3A%20super%20printString%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09nextPutAll%3A%20%27%28%27.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09self%20associations%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09do%3A%20%5B%3AanAssociation%7C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09aStream%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09nextPutAll%3A%20anAssociation%20key%20printString%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09nextPutAll%3A%20%27%20-%3E%20%27%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09nextPutAll%3A%20anAssociation%20value%20printString%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09separatedBy%3A%20%5BaStream%20nextPutAll%3A%20%27%20%2C%20%27%5D.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09aStream%20nextPutAll%3A%20%27%29%27.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5D'),
  7098. messageSends: ["streamContents:", "nextPutAll:", "printString", "do:separatedBy:", "associations", "key", "value"],
  7099. referencedClasses: ["String"]
  7100. }),
  7101. smalltalk.Dictionary);
  7102. smalltalk.addMethod(
  7103. unescape('_storeOn_'),
  7104. smalltalk.method({
  7105. selector: unescape('storeOn%3A'),
  7106. category: 'printing',
  7107. fn: function (aStream){
  7108. var self=this;
  7109. smalltalk.send(aStream, "_nextPutAll_", [unescape("%23%7B")]);
  7110. smalltalk.send(smalltalk.send(self, "_associations", []), "_do_separatedBy_", [(function(each){return smalltalk.send(each, "_storeOn_", [aStream]);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [". "]);})]);
  7111. smalltalk.send(aStream, "_nextPutAll_", [unescape("%7D")]);
  7112. return self;},
  7113. args: ["aStream"],
  7114. source: unescape('storeOn%3A%20aStream%0A%09aStream%20nextPutAll%3A%20%27%23%7B%27.%0A%09self%20associations%0A%09%09do%3A%20%5B%3Aeach%20%7C%20each%20storeOn%3A%20aStream%5D%0A%09%09separatedBy%3A%20%5B%20aStream%20nextPutAll%3A%20%27.%20%27%5D.%0A%09aStream%20nextPutAll%3A%20%27%7D%27'),
  7115. messageSends: ["nextPutAll:", "do:separatedBy:", "associations", "storeOn:"],
  7116. referencedClasses: []
  7117. }),
  7118. smalltalk.Dictionary);
  7119. smalltalk.addMethod(
  7120. unescape('_fromPairs_'),
  7121. smalltalk.method({
  7122. selector: unescape('fromPairs%3A'),
  7123. category: 'instance creation',
  7124. fn: function (aCollection){
  7125. var self=this;
  7126. var dict=nil;
  7127. dict=smalltalk.send(self, "_new", []);
  7128. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(dict, "_add_", [each]);})]);
  7129. return dict;
  7130. return self;},
  7131. args: ["aCollection"],
  7132. source: unescape('fromPairs%3A%20aCollection%0A%09%7C%20dict%20%7C%0A%09dict%20%3A%3D%20self%20new.%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%20dict%20add%3A%20each%5D.%0A%09%5Edict'),
  7133. messageSends: ["new", "do:", "add:"],
  7134. referencedClasses: []
  7135. }),
  7136. smalltalk.Dictionary.klass);
  7137. smalltalk.addClass('ClassBuilder', smalltalk.Object, [], 'Kernel');
  7138. smalltalk.addMethod(
  7139. unescape('_superclass_subclass_'),
  7140. smalltalk.method({
  7141. selector: unescape('superclass%3Asubclass%3A'),
  7142. category: 'class creation',
  7143. fn: function (aClass, aString){
  7144. var self=this;
  7145. return smalltalk.send(self, "_superclass_subclass_instanceVariableNames_package_", [aClass, aString, "", nil]);
  7146. return self;},
  7147. args: ["aClass", "aString"],
  7148. source: unescape('superclass%3A%20aClass%20subclass%3A%20aString%0A%09%5Eself%20superclass%3A%20aClass%20subclass%3A%20aString%20instanceVariableNames%3A%20%27%27%20package%3A%20nil'),
  7149. messageSends: ["superclass:subclass:instanceVariableNames:package:"],
  7150. referencedClasses: []
  7151. }),
  7152. smalltalk.ClassBuilder);
  7153. smalltalk.addMethod(
  7154. unescape('_class_instanceVariableNames_'),
  7155. smalltalk.method({
  7156. selector: unescape('class%3AinstanceVariableNames%3A'),
  7157. category: 'class creation',
  7158. fn: function (aClass, aString){
  7159. var self=this;
  7160. ((($receiver = smalltalk.send(aClass, "_isMetaclass", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_name", []), "__comma", [" is not a metaclass"])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_name", []), "__comma", [" is not a metaclass"])]);})]));
  7161. smalltalk.send(aClass, "_basicAt_put_", ["iVarNames", smalltalk.send(self, "_instanceVariableNamesFor_", [aString])]);
  7162. smalltalk.send(self, "_setupClass_", [aClass]);
  7163. return self;},
  7164. args: ["aClass", "aString"],
  7165. source: unescape('class%3A%20aClass%20instanceVariableNames%3A%20aString%0A%09aClass%20isMetaclass%20ifFalse%3A%20%5Bself%20error%3A%20aClass%20name%2C%20%27%20is%20not%20a%20metaclass%27%5D.%0A%09aClass%20basicAt%3A%20%27iVarNames%27%20put%3A%20%28self%20instanceVariableNamesFor%3A%20aString%29.%0A%09self%20setupClass%3A%20aClass'),
  7166. messageSends: ["ifFalse:", "isMetaclass", "error:", unescape("%2C"), "name", "basicAt:put:", "instanceVariableNamesFor:", "setupClass:"],
  7167. referencedClasses: []
  7168. }),
  7169. smalltalk.ClassBuilder);
  7170. smalltalk.addMethod(
  7171. unescape('_instanceVariableNamesFor_'),
  7172. smalltalk.method({
  7173. selector: unescape('instanceVariableNamesFor%3A'),
  7174. category: 'private',
  7175. fn: function (aString){
  7176. var self=this;
  7177. return smalltalk.send(smalltalk.send(aString, "_tokenize_", [" "]), "_reject_", [(function(each){return smalltalk.send(each, "_isEmpty", []);})]);
  7178. return self;},
  7179. args: ["aString"],
  7180. source: unescape('instanceVariableNamesFor%3A%20aString%0A%09%5E%28aString%20tokenize%3A%20%27%20%27%29%20reject%3A%20%5B%3Aeach%20%7C%20each%20isEmpty%5D'),
  7181. messageSends: ["reject:", "tokenize:", "isEmpty"],
  7182. referencedClasses: []
  7183. }),
  7184. smalltalk.ClassBuilder);
  7185. smalltalk.addMethod(
  7186. unescape('_addSubclassOf_named_instanceVariableNames_'),
  7187. smalltalk.method({
  7188. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3A'),
  7189. category: 'private',
  7190. fn: function (aClass, aString, aCollection){
  7191. var self=this;
  7192. smalltalk.addClass(aString, aClass, aCollection);
  7193. return smalltalk[aString];
  7194. return self;},
  7195. args: ["aClass", "aString", "aCollection"],
  7196. source: unescape('addSubclassOf%3A%20aClass%20named%3A%20aString%20instanceVariableNames%3A%20aCollection%0A%09%3Csmalltalk.addClass%28aString%2C%20aClass%2C%20aCollection%29%3B%0A%09%20%20%20%20return%20smalltalk%5BaString%5D%3E'),
  7197. messageSends: [],
  7198. referencedClasses: []
  7199. }),
  7200. smalltalk.ClassBuilder);
  7201. smalltalk.addMethod(
  7202. unescape('_setupClass_'),
  7203. smalltalk.method({
  7204. selector: unescape('setupClass%3A'),
  7205. category: 'private',
  7206. fn: function (aClass){
  7207. var self=this;
  7208. smalltalk.init(aClass);;
  7209. return self;},
  7210. args: ["aClass"],
  7211. source: unescape('setupClass%3A%20aClass%0A%09%3Csmalltalk.init%28aClass%29%3B%3E'),
  7212. messageSends: [],
  7213. referencedClasses: []
  7214. }),
  7215. smalltalk.ClassBuilder);
  7216. smalltalk.addMethod(
  7217. unescape('_superclass_subclass_instanceVariableNames_package_'),
  7218. smalltalk.method({
  7219. selector: unescape('superclass%3Asubclass%3AinstanceVariableNames%3Apackage%3A'),
  7220. category: 'class creation',
  7221. fn: function (aClass, aString, aString2, aString3){
  7222. var self=this;
  7223. var newClass=nil;
  7224. newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [aClass, aString, smalltalk.send(self, "_instanceVariableNamesFor_", [aString2]), (($receiver = aString3) == nil || $receiver == undefined) ? (function(){return "unclassified";})() : $receiver]);
  7225. smalltalk.send(self, "_setupClass_", [newClass]);
  7226. return newClass;
  7227. return self;},
  7228. args: ["aClass", "aString", "aString2", "aString3"],
  7229. source: unescape('superclass%3A%20aClass%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3%0A%09%7C%20newClass%20%7C%0A%09newClass%20%3A%3D%20self%20addSubclassOf%3A%20aClass%0A%09%09%09%09named%3A%20aString%20instanceVariableNames%3A%20%28self%20instanceVariableNamesFor%3A%20aString2%29%0A%09%09%09%09package%3A%20%28aString3%20ifNil%3A%20%5B%27unclassified%27%5D%29.%0A%09self%20setupClass%3A%20newClass.%0A%09%5EnewClass'),
  7230. messageSends: ["addSubclassOf:named:instanceVariableNames:package:", "instanceVariableNamesFor:", "ifNil:", "setupClass:"],
  7231. referencedClasses: []
  7232. }),
  7233. smalltalk.ClassBuilder);
  7234. smalltalk.addMethod(
  7235. unescape('_addSubclassOf_named_instanceVariableNames_package_'),
  7236. smalltalk.method({
  7237. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3Apackage%3A'),
  7238. category: 'private',
  7239. fn: function (aClass, aString, aCollection, packageName){
  7240. var self=this;
  7241. smalltalk.addClass(aString, aClass, aCollection, packageName);
  7242. return smalltalk[aString];
  7243. return self;},
  7244. args: ["aClass", "aString", "aCollection", "packageName"],
  7245. source: unescape('addSubclassOf%3A%20aClass%20named%3A%20aString%20instanceVariableNames%3A%20aCollection%20package%3A%20packageName%0A%09%3Csmalltalk.addClass%28aString%2C%20aClass%2C%20aCollection%2C%20packageName%29%3B%0A%09%20%20%20%20return%20smalltalk%5BaString%5D%3E'),
  7246. messageSends: [],
  7247. referencedClasses: []
  7248. }),
  7249. smalltalk.ClassBuilder);
  7250. smalltalk.addMethod(
  7251. unescape('_copyClass_named_'),
  7252. smalltalk.method({
  7253. selector: unescape('copyClass%3Anamed%3A'),
  7254. category: 'private',
  7255. fn: function (aClass, aString){
  7256. var self=this;
  7257. var newClass=nil;
  7258. newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [smalltalk.send(aClass, "_superclass", []), aString, smalltalk.send(aClass, "_instanceVariableNames", []), smalltalk.send(smalltalk.send(aClass, "_package", []), "_name", [])]);
  7259. smalltalk.send(self, "_setupClass_", [newClass]);
  7260. smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){smalltalk.send(newClass, "_addCompiledMethod_", [smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [smalltalk.send(each, "_source", []), newClass])]);return smalltalk.send(smalltalk.send(smalltalk.send(newClass, "_methodDictionary", []), "_at_", [smalltalk.send(each, "_selector", [])]), "_category_", [smalltalk.send(each, "_category", [])]);})]);
  7261. smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_methodDictionary", []), "_values", []), "_do_", [(function(each){smalltalk.send(smalltalk.send(newClass, "_class", []), "_addCompiledMethod_", [smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [smalltalk.send(each, "_source", []), smalltalk.send(newClass, "_class", [])])]);return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(newClass, "_class", []), "_methodDictionary", []), "_at_", [smalltalk.send(each, "_selector", [])]), "_category_", [smalltalk.send(each, "_category", [])]);})]);
  7262. smalltalk.send(self, "_setupClass_", [newClass]);
  7263. return newClass;
  7264. return self;},
  7265. args: ["aClass", "aString"],
  7266. source: unescape('copyClass%3A%20aClass%20named%3A%20aString%0A%09%7C%20newClass%20%7C%0A%0A%09newClass%20%3A%3D%20self%20%0A%09%09addSubclassOf%3A%20aClass%20superclass%0A%09%09named%3A%20aString%20%0A%09%09instanceVariableNames%3A%20aClass%20instanceVariableNames%20%0A%09%09package%3A%20aClass%20package%20name.%0A%0A%09self%20setupClass%3A%20newClass.%0A%0A%09aClass%20methodDictionary%20values%20do%3A%20%5B%3Aeach%20%7C%0A%09%09newClass%20addCompiledMethod%3A%20%28Compiler%20new%20load%3A%20each%20source%20forClass%3A%20newClass%29.%0A%09%09%28newClass%20methodDictionary%20at%3A%20each%20selector%29%20category%3A%20each%20category%5D.%0A%0A%09aClass%20class%20methodDictionary%20values%20do%3A%20%5B%3Aeach%20%7C%0A%09%09newClass%20class%20addCompiledMethod%3A%20%28Compiler%20new%20load%3A%20each%20source%20forClass%3A%20newClass%20class%29.%0A%09%09%28newClass%20class%20methodDictionary%20at%3A%20each%20selector%29%20category%3A%20each%20category%5D.%0A%0A%09self%20setupClass%3A%20newClass.%0A%09%5EnewClass'),
  7267. messageSends: ["addSubclassOf:named:instanceVariableNames:package:", "superclass", "instanceVariableNames", "name", "package", "setupClass:", "do:", "values", "methodDictionary", "addCompiledMethod:", "load:forClass:", "new", "source", "category:", "at:", "selector", "category", "class"],
  7268. referencedClasses: ["Compiler"]
  7269. }),
  7270. smalltalk.ClassBuilder);
  7271. smalltalk.addClass('ClassCategoryReader', smalltalk.Object, ['class', 'category', 'chunkParser'], 'Kernel');
  7272. smalltalk.addMethod(
  7273. unescape('_initialize'),
  7274. smalltalk.method({
  7275. selector: unescape('initialize'),
  7276. category: 'initialization',
  7277. fn: function (){
  7278. var self=this;
  7279. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  7280. self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []);
  7281. return self;},
  7282. args: [],
  7283. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  7284. messageSends: ["initialize", "new"],
  7285. referencedClasses: ["ChunkParser"]
  7286. }),
  7287. smalltalk.ClassCategoryReader);
  7288. smalltalk.addMethod(
  7289. unescape('_class_category_'),
  7290. smalltalk.method({
  7291. selector: unescape('class%3Acategory%3A'),
  7292. category: 'accessing',
  7293. fn: function (aClass, aString){
  7294. var self=this;
  7295. self['@class']=aClass;
  7296. self['@category']=aString;
  7297. return self;},
  7298. args: ["aClass", "aString"],
  7299. source: unescape('class%3A%20aClass%20category%3A%20aString%0A%09class%20%3A%3D%20aClass.%0A%09category%20%3A%3D%20aString'),
  7300. messageSends: [],
  7301. referencedClasses: []
  7302. }),
  7303. smalltalk.ClassCategoryReader);
  7304. smalltalk.addMethod(
  7305. unescape('_scanFrom_'),
  7306. smalltalk.method({
  7307. selector: unescape('scanFrom%3A'),
  7308. category: 'fileIn',
  7309. fn: function (aChunkParser){
  7310. var self=this;
  7311. var chunk=nil;
  7312. (function(){while(!(function(){chunk=smalltalk.send(aChunkParser, "_nextChunk", []);return smalltalk.send(chunk, "_isEmpty", []);})()) {(function(){return smalltalk.send(self, "_compileMethod_", [chunk]);})()}})();
  7313. return self;},
  7314. args: ["aChunkParser"],
  7315. source: unescape('scanFrom%3A%20aChunkParser%0A%09%7C%20chunk%20%7C%0A%09%5Bchunk%20%3A%3D%20aChunkParser%20nextChunk.%0A%09chunk%20isEmpty%5D%20whileFalse%3A%20%5B%0A%09%20%20%20%20self%20compileMethod%3A%20chunk%5D'),
  7316. messageSends: ["whileFalse:", "nextChunk", "isEmpty", "compileMethod:"],
  7317. referencedClasses: []
  7318. }),
  7319. smalltalk.ClassCategoryReader);
  7320. smalltalk.addMethod(
  7321. unescape('_compileMethod_'),
  7322. smalltalk.method({
  7323. selector: unescape('compileMethod%3A'),
  7324. category: 'private',
  7325. fn: function (aString){
  7326. var self=this;
  7327. var method=nil;
  7328. method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self['@class']]);
  7329. smalltalk.send(method, "_category_", [self['@category']]);
  7330. smalltalk.send(self['@class'], "_addCompiledMethod_", [method]);
  7331. return self;},
  7332. args: ["aString"],
  7333. source: unescape('compileMethod%3A%20aString%0A%09%7C%20method%20%7C%0A%09method%20%3A%3D%20Compiler%20new%20load%3A%20aString%20forClass%3A%20class.%0A%09method%20category%3A%20category.%0A%09class%20addCompiledMethod%3A%20method'),
  7334. messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
  7335. referencedClasses: ["Compiler"]
  7336. }),
  7337. smalltalk.ClassCategoryReader);
  7338. smalltalk.addClass('Stream', smalltalk.Object, ['collection', 'position', 'streamSize'], 'Kernel');
  7339. smalltalk.addMethod(
  7340. unescape('_collection'),
  7341. smalltalk.method({
  7342. selector: unescape('collection'),
  7343. category: 'accessing',
  7344. fn: function (){
  7345. var self=this;
  7346. return self['@collection'];
  7347. return self;},
  7348. args: [],
  7349. source: unescape('collection%0A%09%5Ecollection'),
  7350. messageSends: [],
  7351. referencedClasses: []
  7352. }),
  7353. smalltalk.Stream);
  7354. smalltalk.addMethod(
  7355. unescape('_setCollection_'),
  7356. smalltalk.method({
  7357. selector: unescape('setCollection%3A'),
  7358. category: 'accessing',
  7359. fn: function (aCollection){
  7360. var self=this;
  7361. self['@collection']=aCollection;
  7362. return self;},
  7363. args: ["aCollection"],
  7364. source: unescape('setCollection%3A%20aCollection%0A%09collection%20%3A%3D%20aCollection'),
  7365. messageSends: [],
  7366. referencedClasses: []
  7367. }),
  7368. smalltalk.Stream);
  7369. smalltalk.addMethod(
  7370. unescape('_position'),
  7371. smalltalk.method({
  7372. selector: unescape('position'),
  7373. category: 'accessing',
  7374. fn: function (){
  7375. var self=this;
  7376. return (($receiver = self['@position']) == nil || $receiver == undefined) ? (function(){return self['@position']=(0);})() : $receiver;
  7377. return self;},
  7378. args: [],
  7379. source: unescape('position%0A%09%5Eposition%20ifNil%3A%20%5Bposition%20%3A%3D%200%5D'),
  7380. messageSends: ["ifNil:"],
  7381. referencedClasses: []
  7382. }),
  7383. smalltalk.Stream);
  7384. smalltalk.addMethod(
  7385. unescape('_position_'),
  7386. smalltalk.method({
  7387. selector: unescape('position%3A'),
  7388. category: 'accessing',
  7389. fn: function (anInteger){
  7390. var self=this;
  7391. self['@position']=anInteger;
  7392. return self;},
  7393. args: ["anInteger"],
  7394. source: unescape('position%3A%20anInteger%0A%09position%20%3A%3D%20anInteger'),
  7395. messageSends: [],
  7396. referencedClasses: []
  7397. }),
  7398. smalltalk.Stream);
  7399. smalltalk.addMethod(
  7400. unescape('_streamSize'),
  7401. smalltalk.method({
  7402. selector: unescape('streamSize'),
  7403. category: 'accessing',
  7404. fn: function (){
  7405. var self=this;
  7406. return self['@streamSize'];
  7407. return self;},
  7408. args: [],
  7409. source: unescape('streamSize%0A%09%5EstreamSize'),
  7410. messageSends: [],
  7411. referencedClasses: []
  7412. }),
  7413. smalltalk.Stream);
  7414. smalltalk.addMethod(
  7415. unescape('_setStreamSize_'),
  7416. smalltalk.method({
  7417. selector: unescape('setStreamSize%3A'),
  7418. category: 'accessing',
  7419. fn: function (anInteger){
  7420. var self=this;
  7421. self['@streamSize']=anInteger;
  7422. return self;},
  7423. args: ["anInteger"],
  7424. source: unescape('setStreamSize%3A%20anInteger%0A%09streamSize%20%3A%3D%20anInteger'),
  7425. messageSends: [],
  7426. referencedClasses: []
  7427. }),
  7428. smalltalk.Stream);
  7429. smalltalk.addMethod(
  7430. unescape('_contents'),
  7431. smalltalk.method({
  7432. selector: unescape('contents'),
  7433. category: 'accessing',
  7434. fn: function (){
  7435. var self=this;
  7436. return smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_streamSize", [])]);
  7437. return self;},
  7438. args: [],
  7439. source: unescape('contents%0A%09%5Eself%20collection%0A%09%20%20%20%20copyFrom%3A%201%20%0A%09%20%20%20%20to%3A%20self%20streamSize'),
  7440. messageSends: ["copyFrom:to:", "collection", "streamSize"],
  7441. referencedClasses: []
  7442. }),
  7443. smalltalk.Stream);
  7444. smalltalk.addMethod(
  7445. unescape('_size'),
  7446. smalltalk.method({
  7447. selector: unescape('size'),
  7448. category: 'accessing',
  7449. fn: function (){
  7450. var self=this;
  7451. return smalltalk.send(self, "_streamSize", []);
  7452. return self;},
  7453. args: [],
  7454. source: unescape('size%0A%09%5Eself%20streamSize'),
  7455. messageSends: ["streamSize"],
  7456. referencedClasses: []
  7457. }),
  7458. smalltalk.Stream);
  7459. smalltalk.addMethod(
  7460. unescape('_reset'),
  7461. smalltalk.method({
  7462. selector: unescape('reset'),
  7463. category: 'actions',
  7464. fn: function (){
  7465. var self=this;
  7466. smalltalk.send(self, "_position_", [(0)]);
  7467. return self;},
  7468. args: [],
  7469. source: unescape('reset%0A%09self%20position%3A%200'),
  7470. messageSends: ["position:"],
  7471. referencedClasses: []
  7472. }),
  7473. smalltalk.Stream);
  7474. smalltalk.addMethod(
  7475. unescape('_close'),
  7476. smalltalk.method({
  7477. selector: unescape('close'),
  7478. category: 'actions',
  7479. fn: function (){
  7480. var self=this;
  7481. return self;},
  7482. args: [],
  7483. source: unescape('close'),
  7484. messageSends: [],
  7485. referencedClasses: []
  7486. }),
  7487. smalltalk.Stream);
  7488. smalltalk.addMethod(
  7489. unescape('_flush'),
  7490. smalltalk.method({
  7491. selector: unescape('flush'),
  7492. category: 'actions',
  7493. fn: function (){
  7494. var self=this;
  7495. return self;},
  7496. args: [],
  7497. source: unescape('flush'),
  7498. messageSends: [],
  7499. referencedClasses: []
  7500. }),
  7501. smalltalk.Stream);
  7502. smalltalk.addMethod(
  7503. unescape('_resetContents'),
  7504. smalltalk.method({
  7505. selector: unescape('resetContents'),
  7506. category: 'actions',
  7507. fn: function (){
  7508. var self=this;
  7509. smalltalk.send(self, "_reset", []);
  7510. smalltalk.send(self, "_setStreamSize_", [(0)]);
  7511. return self;},
  7512. args: [],
  7513. source: unescape('resetContents%0A%09self%20reset.%0A%09self%20setStreamSize%3A%200'),
  7514. messageSends: ["reset", "setStreamSize:"],
  7515. referencedClasses: []
  7516. }),
  7517. smalltalk.Stream);
  7518. smalltalk.addMethod(
  7519. unescape('_do_'),
  7520. smalltalk.method({
  7521. selector: unescape('do%3A'),
  7522. category: 'enumerating',
  7523. fn: function (aBlock){
  7524. var self=this;
  7525. (function(){while(!(function(){return smalltalk.send(self, "_atEnd", []);})()) {(function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_next", [])]);})()}})();
  7526. return self;},
  7527. args: ["aBlock"],
  7528. source: unescape('do%3A%20aBlock%0A%09%5Bself%20atEnd%5D%20whileFalse%3A%20%5BaBlock%20value%3A%20self%20next%5D'),
  7529. messageSends: ["whileFalse:", "atEnd", "value:", "next"],
  7530. referencedClasses: []
  7531. }),
  7532. smalltalk.Stream);
  7533. smalltalk.addMethod(
  7534. unescape('_setToEnd'),
  7535. smalltalk.method({
  7536. selector: unescape('setToEnd'),
  7537. category: 'positioning',
  7538. fn: function (){
  7539. var self=this;
  7540. smalltalk.send(self, "_position_", [smalltalk.send(self, "_size", [])]);
  7541. return self;},
  7542. args: [],
  7543. source: unescape('setToEnd%0A%09self%20position%3A%20self%20size'),
  7544. messageSends: ["position:", "size"],
  7545. referencedClasses: []
  7546. }),
  7547. smalltalk.Stream);
  7548. smalltalk.addMethod(
  7549. unescape('_skip_'),
  7550. smalltalk.method({
  7551. selector: unescape('skip%3A'),
  7552. category: 'positioning',
  7553. fn: function (anInteger){
  7554. var self=this;
  7555. smalltalk.send(self, "_position_", [smalltalk.send(((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +anInteger : smalltalk.send($receiver, "__plus", [anInteger])), "_min_max_", [smalltalk.send(self, "_size", []), (0)])]);
  7556. return self;},
  7557. args: ["anInteger"],
  7558. source: unescape('skip%3A%20anInteger%0A%09self%20position%3A%20%28%28self%20position%20+%20anInteger%29%20min%3A%20self%20size%20max%3A%200%29'),
  7559. messageSends: ["position:", "min:max:", unescape("+"), "position", "size"],
  7560. referencedClasses: []
  7561. }),
  7562. smalltalk.Stream);
  7563. smalltalk.addMethod(
  7564. unescape('_next'),
  7565. smalltalk.method({
  7566. selector: unescape('next'),
  7567. category: 'reading',
  7568. fn: function (){
  7569. var self=this;
  7570. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
  7571. return smalltalk.send(self['@collection'], "_at_", [smalltalk.send(self, "_position", [])]);
  7572. return self;},
  7573. args: [],
  7574. source: unescape('next%0A%09self%20position%3A%20self%20position%20+%201.%20%0A%09%5Ecollection%20at%3A%20self%20position'),
  7575. messageSends: ["position:", unescape("+"), "position", "at:"],
  7576. referencedClasses: []
  7577. }),
  7578. smalltalk.Stream);
  7579. smalltalk.addMethod(
  7580. unescape('_next_'),
  7581. smalltalk.method({
  7582. selector: unescape('next%3A'),
  7583. category: 'reading',
  7584. fn: function (anInteger){
  7585. var self=this;
  7586. var tempCollection=nil;
  7587. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  7588. smalltalk.send(anInteger, "_timesRepeat_", [(function(){return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(tempCollection, "_add_", [smalltalk.send(self, "_next", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(tempCollection, "_add_", [smalltalk.send(self, "_next", [])]);})]));})]);
  7589. return tempCollection;
  7590. return self;},
  7591. args: ["anInteger"],
  7592. source: unescape('next%3A%20anInteger%0A%09%7C%20tempCollection%20%7C%0A%09tempCollection%20%3A%3D%20self%20collection%20class%20new.%0A%09anInteger%20timesRepeat%3A%20%5B%0A%09%20%20%20%20self%20atEnd%20ifFalse%3A%20%5B%0A%09%09tempCollection%20add%3A%20self%20next%5D%5D.%0A%09%5EtempCollection'),
  7593. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", "add:", "next"],
  7594. referencedClasses: []
  7595. }),
  7596. smalltalk.Stream);
  7597. smalltalk.addMethod(
  7598. unescape('_nextPut_'),
  7599. smalltalk.method({
  7600. selector: unescape('nextPut%3A'),
  7601. category: 'writing',
  7602. fn: function (anObject){
  7603. var self=this;
  7604. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
  7605. smalltalk.send(smalltalk.send(self, "_collection", []), "_at_put_", [smalltalk.send(self, "_position", []), anObject]);
  7606. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  7607. return self;},
  7608. args: ["anObject"],
  7609. source: unescape('nextPut%3A%20anObject%0A%09self%20position%3A%20self%20position%20+%201.%0A%09self%20collection%20at%3A%20self%20position%20put%3A%20anObject.%0A%09self%20setStreamSize%3A%20%28self%20streamSize%20max%3A%20self%20position%29'),
  7610. messageSends: ["position:", unescape("+"), "position", "at:put:", "collection", "setStreamSize:", "max:", "streamSize"],
  7611. referencedClasses: []
  7612. }),
  7613. smalltalk.Stream);
  7614. smalltalk.addMethod(
  7615. unescape('_nextPutAll_'),
  7616. smalltalk.method({
  7617. selector: unescape('nextPutAll%3A'),
  7618. category: 'writing',
  7619. fn: function (aCollection){
  7620. var self=this;
  7621. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_nextPut_", [each]);})]);
  7622. return self;},
  7623. args: ["aCollection"],
  7624. source: unescape('nextPutAll%3A%20aCollection%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20self%20nextPut%3A%20each%5D'),
  7625. messageSends: ["do:", "nextPut:"],
  7626. referencedClasses: []
  7627. }),
  7628. smalltalk.Stream);
  7629. smalltalk.addMethod(
  7630. unescape('_peek'),
  7631. smalltalk.method({
  7632. selector: unescape('peek'),
  7633. category: 'reading',
  7634. fn: function (){
  7635. var self=this;
  7636. return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_collection", []), "_at_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(self, "_collection", []), "_at_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);})]));
  7637. return self;},
  7638. args: [],
  7639. source: unescape('peek%0A%09%5Eself%20atEnd%20ifFalse%3A%20%5B%0A%09%20%20%20%20self%20collection%20at%3A%20self%20position%20+%201%5D'),
  7640. messageSends: ["ifFalse:", "atEnd", "at:", "collection", unescape("+"), "position"],
  7641. referencedClasses: []
  7642. }),
  7643. smalltalk.Stream);
  7644. smalltalk.addMethod(
  7645. unescape('_atEnd'),
  7646. smalltalk.method({
  7647. selector: unescape('atEnd'),
  7648. category: 'testing',
  7649. fn: function (){
  7650. var self=this;
  7651. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [smalltalk.send(self, "_size", [])]);
  7652. return self;},
  7653. args: [],
  7654. source: unescape('atEnd%0A%09%5Eself%20position%20%3D%20self%20size'),
  7655. messageSends: [unescape("%3D"), "position", "size"],
  7656. referencedClasses: []
  7657. }),
  7658. smalltalk.Stream);
  7659. smalltalk.addMethod(
  7660. unescape('_atStart'),
  7661. smalltalk.method({
  7662. selector: unescape('atStart'),
  7663. category: 'testing',
  7664. fn: function (){
  7665. var self=this;
  7666. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [(0)]);
  7667. return self;},
  7668. args: [],
  7669. source: unescape('atStart%0A%09%5Eself%20position%20%3D%200'),
  7670. messageSends: [unescape("%3D"), "position"],
  7671. referencedClasses: []
  7672. }),
  7673. smalltalk.Stream);
  7674. smalltalk.addMethod(
  7675. unescape('_isEmpty'),
  7676. smalltalk.method({
  7677. selector: unescape('isEmpty'),
  7678. category: 'testing',
  7679. fn: function (){
  7680. var self=this;
  7681. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  7682. return self;},
  7683. args: [],
  7684. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  7685. messageSends: [unescape("%3D"), "size"],
  7686. referencedClasses: []
  7687. }),
  7688. smalltalk.Stream);
  7689. smalltalk.addMethod(
  7690. unescape('_on_'),
  7691. smalltalk.method({
  7692. selector: unescape('on%3A'),
  7693. category: 'instance creation',
  7694. fn: function (aCollection){
  7695. var self=this;
  7696. return (function($rec){smalltalk.send($rec, "_setCollection_", [aCollection]);smalltalk.send($rec, "_setStreamSize_", [smalltalk.send(aCollection, "_size", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  7697. return self;},
  7698. args: ["aCollection"],
  7699. source: unescape('on%3A%20aCollection%0A%09%20%20%20%20%5Eself%20new%20%0A%09%09setCollection%3A%20aCollection%3B%0A%09%09setStreamSize%3A%20aCollection%20size%3B%0A%09%09yourself'),
  7700. messageSends: ["setCollection:", "setStreamSize:", "size", "yourself", "new"],
  7701. referencedClasses: []
  7702. }),
  7703. smalltalk.Stream.klass);
  7704. smalltalk.addClass('StringStream', smalltalk.Stream, [], 'Kernel');
  7705. smalltalk.addMethod(
  7706. unescape('_next_'),
  7707. smalltalk.method({
  7708. selector: unescape('next%3A'),
  7709. category: 'reading',
  7710. fn: function (anInteger){
  7711. var self=this;
  7712. var tempCollection=nil;
  7713. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  7714. smalltalk.send(anInteger, "_timesRepeat_", [(function(){return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return tempCollection=smalltalk.send(tempCollection, "__comma", [smalltalk.send(self, "_next", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return tempCollection=smalltalk.send(tempCollection, "__comma", [smalltalk.send(self, "_next", [])]);})]));})]);
  7715. return tempCollection;
  7716. return self;},
  7717. args: ["anInteger"],
  7718. source: unescape('next%3A%20anInteger%0A%09%7C%20tempCollection%20%7C%0A%09tempCollection%20%3A%3D%20self%20collection%20class%20new.%0A%09anInteger%20timesRepeat%3A%20%5B%0A%09%20%20%20%20self%20atEnd%20ifFalse%3A%20%5B%0A%09%09tempCollection%20%3A%3D%20tempCollection%2C%20self%20next%5D%5D.%0A%09%5EtempCollection'),
  7719. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", unescape("%2C"), "next"],
  7720. referencedClasses: []
  7721. }),
  7722. smalltalk.StringStream);
  7723. smalltalk.addMethod(
  7724. unescape('_nextPut_'),
  7725. smalltalk.method({
  7726. selector: unescape('nextPut%3A'),
  7727. category: 'writing',
  7728. fn: function (aString){
  7729. var self=this;
  7730. smalltalk.send(self, "_nextPutAll_", [aString]);
  7731. return self;},
  7732. args: ["aString"],
  7733. source: unescape('nextPut%3A%20aString%0A%09self%20nextPutAll%3A%20aString'),
  7734. messageSends: ["nextPutAll:"],
  7735. referencedClasses: []
  7736. }),
  7737. smalltalk.StringStream);
  7738. smalltalk.addMethod(
  7739. unescape('_nextPutAll_'),
  7740. smalltalk.method({
  7741. selector: unescape('nextPutAll%3A'),
  7742. category: 'writing',
  7743. fn: function (aString){
  7744. var self=this;
  7745. smalltalk.send(self, "_setCollection_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_position", [])]), "__comma", [aString]), "__comma", [smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [((($receiver = ((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))).klass === smalltalk.Number) ? $receiver +smalltalk.send(aString, "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(aString, "_size", [])])), smalltalk.send(smalltalk.send(self, "_collection", []), "_size", [])])])]);
  7746. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(aString, "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(aString, "_size", [])]))]);
  7747. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  7748. return self;},
  7749. args: ["aString"],
  7750. source: unescape('nextPutAll%3A%20aString%0A%09self%20setCollection%3A%20%0A%09%20%20%20%20%28self%20collection%20copyFrom%3A%201%20to%3A%20self%20position%29%2C%0A%09%20%20%20%20aString%2C%0A%09%20%20%20%20%28self%20collection%20copyFrom%3A%20%28self%20position%20+%201%20+%20aString%20size%29%20to%3A%20self%20collection%20size%29.%0A%09self%20position%3A%20self%20position%20+%20aString%20size.%0A%09self%20setStreamSize%3A%20%28self%20streamSize%20max%3A%20self%20position%29'),
  7751. messageSends: ["setCollection:", unescape("%2C"), "copyFrom:to:", "collection", "position", unescape("+"), "size", "position:", "setStreamSize:", "max:", "streamSize"],
  7752. referencedClasses: []
  7753. }),
  7754. smalltalk.StringStream);
  7755. smalltalk.addMethod(
  7756. unescape('_cr'),
  7757. smalltalk.method({
  7758. selector: unescape('cr'),
  7759. category: 'writing',
  7760. fn: function (){
  7761. var self=this;
  7762. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  7763. return self;},
  7764. args: [],
  7765. source: unescape('cr%0A%09%5Eself%20nextPutAll%3A%20String%20cr'),
  7766. messageSends: ["nextPutAll:", "cr"],
  7767. referencedClasses: ["String"]
  7768. }),
  7769. smalltalk.StringStream);
  7770. smalltalk.addMethod(
  7771. unescape('_crlf'),
  7772. smalltalk.method({
  7773. selector: unescape('crlf'),
  7774. category: 'writing',
  7775. fn: function (){
  7776. var self=this;
  7777. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_crlf", [])]);
  7778. return self;},
  7779. args: [],
  7780. source: unescape('crlf%0A%09%5Eself%20nextPutAll%3A%20String%20crlf'),
  7781. messageSends: ["nextPutAll:", "crlf"],
  7782. referencedClasses: ["String"]
  7783. }),
  7784. smalltalk.StringStream);
  7785. smalltalk.addMethod(
  7786. unescape('_lf'),
  7787. smalltalk.method({
  7788. selector: unescape('lf'),
  7789. category: 'writing',
  7790. fn: function (){
  7791. var self=this;
  7792. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_lf", [])]);
  7793. return self;},
  7794. args: [],
  7795. source: unescape('lf%0A%09%5Eself%20nextPutAll%3A%20String%20lf'),
  7796. messageSends: ["nextPutAll:", "lf"],
  7797. referencedClasses: ["String"]
  7798. }),
  7799. smalltalk.StringStream);
  7800. smalltalk.addMethod(
  7801. unescape('_space'),
  7802. smalltalk.method({
  7803. selector: unescape('space'),
  7804. category: 'writing',
  7805. fn: function (){
  7806. var self=this;
  7807. smalltalk.send(self, "_nextPut_", [" "]);
  7808. return self;},
  7809. args: [],
  7810. source: unescape('space%0A%09self%20nextPut%3A%20%27%20%27'),
  7811. messageSends: ["nextPut:"],
  7812. referencedClasses: []
  7813. }),
  7814. smalltalk.StringStream);
  7815. smalltalk.addClass('ClassCommentReader', smalltalk.Object, ['class', 'chunkParser'], 'Kernel');
  7816. smalltalk.addMethod(
  7817. unescape('_class_'),
  7818. smalltalk.method({
  7819. selector: unescape('class%3A'),
  7820. category: 'accessing',
  7821. fn: function (aClass){
  7822. var self=this;
  7823. self['@class']=aClass;
  7824. return self;},
  7825. args: ["aClass"],
  7826. source: unescape('class%3A%20aClass%0A%09class%20%3A%3D%20aClass'),
  7827. messageSends: [],
  7828. referencedClasses: []
  7829. }),
  7830. smalltalk.ClassCommentReader);
  7831. smalltalk.addMethod(
  7832. unescape('_scanFrom_'),
  7833. smalltalk.method({
  7834. selector: unescape('scanFrom%3A'),
  7835. category: 'fileIn',
  7836. fn: function (aChunkParser){
  7837. var self=this;
  7838. var chunk=nil;
  7839. chunk=smalltalk.send(aChunkParser, "_nextChunk", []);
  7840. ((($receiver = smalltalk.send(chunk, "_isEmpty", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_setComment_", [chunk]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_setComment_", [chunk]);})]));
  7841. return self;},
  7842. args: ["aChunkParser"],
  7843. source: unescape('scanFrom%3A%20aChunkParser%0A%09%7C%20chunk%20%7C%0A%09chunk%20%3A%3D%20aChunkParser%20nextChunk.%0A%09chunk%20isEmpty%20ifFalse%3A%20%5B%0A%09%20%20%20%20self%20setComment%3A%20chunk%5D.'),
  7844. messageSends: ["nextChunk", "ifFalse:", "isEmpty", "setComment:"],
  7845. referencedClasses: []
  7846. }),
  7847. smalltalk.ClassCommentReader);
  7848. smalltalk.addMethod(
  7849. unescape('_initialize'),
  7850. smalltalk.method({
  7851. selector: unescape('initialize'),
  7852. category: 'initialization',
  7853. fn: function (){
  7854. var self=this;
  7855. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  7856. self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []);
  7857. return self;},
  7858. args: [],
  7859. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  7860. messageSends: ["initialize", "new"],
  7861. referencedClasses: ["ChunkParser"]
  7862. }),
  7863. smalltalk.ClassCommentReader);
  7864. smalltalk.addMethod(
  7865. unescape('_setComment_'),
  7866. smalltalk.method({
  7867. selector: unescape('setComment%3A'),
  7868. category: 'private',
  7869. fn: function (aString){
  7870. var self=this;
  7871. smalltalk.send(self['@class'], "_comment_", [aString]);
  7872. return self;},
  7873. args: ["aString"],
  7874. source: unescape('setComment%3A%20aString%0A%20%20%20%20class%20comment%3A%20aString'),
  7875. messageSends: ["comment:"],
  7876. referencedClasses: []
  7877. }),
  7878. smalltalk.ClassCommentReader);
  7879. smalltalk.addClass('Random', smalltalk.Object, [], 'Kernel');
  7880. smalltalk.addMethod(
  7881. unescape('_next'),
  7882. smalltalk.method({
  7883. selector: unescape('next'),
  7884. category: 'accessing',
  7885. fn: function (){
  7886. var self=this;
  7887. return Math.random();
  7888. return self;},
  7889. args: [],
  7890. source: unescape('next%0A%09%3Creturn%20Math.random%28%29%3E'),
  7891. messageSends: [],
  7892. referencedClasses: []
  7893. }),
  7894. smalltalk.Random);
  7895. smalltalk.addMethod(
  7896. unescape('_next_'),
  7897. smalltalk.method({
  7898. selector: unescape('next%3A'),
  7899. category: 'accessing',
  7900. fn: function (anInteger){
  7901. var self=this;
  7902. return smalltalk.send(smalltalk.send((1), "_to_", [anInteger]), "_collect_", [(function(each){return smalltalk.send(self, "_next", []);})]);
  7903. return self;},
  7904. args: ["anInteger"],
  7905. source: unescape('next%3A%20anInteger%0A%20%20%20%20%5E%281%20to%3A%20anInteger%29%20collect%3A%20%5B%3Aeach%20%7C%20self%20next%5D'),
  7906. messageSends: ["collect:", "to:", "next"],
  7907. referencedClasses: []
  7908. }),
  7909. smalltalk.Random);
  7910. smalltalk.addClass('Point', smalltalk.Object, ['x', 'y'], 'Kernel');
  7911. smalltalk.addMethod(
  7912. unescape('_x'),
  7913. smalltalk.method({
  7914. selector: unescape('x'),
  7915. category: 'accessing',
  7916. fn: function (){
  7917. var self=this;
  7918. return self['@x'];
  7919. return self;},
  7920. args: [],
  7921. source: unescape('x%0A%09%5Ex'),
  7922. messageSends: [],
  7923. referencedClasses: []
  7924. }),
  7925. smalltalk.Point);
  7926. smalltalk.addMethod(
  7927. unescape('_y'),
  7928. smalltalk.method({
  7929. selector: unescape('y'),
  7930. category: 'accessing',
  7931. fn: function (){
  7932. var self=this;
  7933. return self['@y'];
  7934. return self;},
  7935. args: [],
  7936. source: unescape('y%0A%09%5Ey'),
  7937. messageSends: [],
  7938. referencedClasses: []
  7939. }),
  7940. smalltalk.Point);
  7941. smalltalk.addMethod(
  7942. unescape('_y_'),
  7943. smalltalk.method({
  7944. selector: unescape('y%3A'),
  7945. category: 'accessing',
  7946. fn: function (aNumber){
  7947. var self=this;
  7948. self['@y']=aNumber;
  7949. return self;},
  7950. args: ["aNumber"],
  7951. source: unescape('y%3A%20aNumber%0A%09y%20%3A%3D%20aNumber'),
  7952. messageSends: [],
  7953. referencedClasses: []
  7954. }),
  7955. smalltalk.Point);
  7956. smalltalk.addMethod(
  7957. unescape('_x_'),
  7958. smalltalk.method({
  7959. selector: unescape('x%3A'),
  7960. category: 'accessing',
  7961. fn: function (aNumber){
  7962. var self=this;
  7963. self['@x']=aNumber;
  7964. return self;},
  7965. args: ["aNumber"],
  7966. source: unescape('x%3A%20aNumber%0A%09x%20%3A%3D%20aNumber'),
  7967. messageSends: [],
  7968. referencedClasses: []
  7969. }),
  7970. smalltalk.Point);
  7971. smalltalk.addMethod(
  7972. unescape('__star'),
  7973. smalltalk.method({
  7974. selector: unescape('*'),
  7975. category: 'arithmetic',
  7976. fn: function (aPoint){
  7977. var self=this;
  7978. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver *smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__star", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver *smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__star", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
  7979. return self;},
  7980. args: ["aPoint"],
  7981. source: unescape('*%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20*%20aPoint%20asPoint%20x%20y%3A%20self%20y%20*%20aPoint%20asPoint%20y'),
  7982. messageSends: ["x:y:", unescape("*"), "x", "asPoint", "y"],
  7983. referencedClasses: ["Point"]
  7984. }),
  7985. smalltalk.Point);
  7986. smalltalk.addMethod(
  7987. unescape('__plus'),
  7988. smalltalk.method({
  7989. selector: unescape('+'),
  7990. category: 'arithmetic',
  7991. fn: function (aPoint){
  7992. var self=this;
  7993. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
  7994. return self;},
  7995. args: ["aPoint"],
  7996. source: unescape('+%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20+%20aPoint%20asPoint%20x%20y%3A%20self%20y%20+%20aPoint%20asPoint%20y'),
  7997. messageSends: ["x:y:", unescape("+"), "x", "asPoint", "y"],
  7998. referencedClasses: ["Point"]
  7999. }),
  8000. smalltalk.Point);
  8001. smalltalk.addMethod(
  8002. unescape('__minus'),
  8003. smalltalk.method({
  8004. selector: unescape('-'),
  8005. category: 'arithmetic',
  8006. fn: function (aPoint){
  8007. var self=this;
  8008. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver -smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__minus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver -smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__minus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
  8009. return self;},
  8010. args: ["aPoint"],
  8011. source: unescape('-%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20-%20aPoint%20asPoint%20x%20y%3A%20self%20y%20-%20aPoint%20asPoint%20y'),
  8012. messageSends: ["x:y:", unescape("-"), "x", "asPoint", "y"],
  8013. referencedClasses: ["Point"]
  8014. }),
  8015. smalltalk.Point);
  8016. smalltalk.addMethod(
  8017. unescape('__slash'),
  8018. smalltalk.method({
  8019. selector: unescape('/'),
  8020. category: 'arithmetic',
  8021. fn: function (aPoint){
  8022. var self=this;
  8023. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver /smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__slash", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver /smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__slash", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
  8024. return self;},
  8025. args: ["aPoint"],
  8026. source: unescape('/%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20/%20aPoint%20asPoint%20x%20y%3A%20self%20y%20/%20aPoint%20asPoint%20y'),
  8027. messageSends: ["x:y:", unescape("/"), "x", "asPoint", "y"],
  8028. referencedClasses: ["Point"]
  8029. }),
  8030. smalltalk.Point);
  8031. smalltalk.addMethod(
  8032. unescape('_asPoint'),
  8033. smalltalk.method({
  8034. selector: unescape('asPoint'),
  8035. category: 'converting',
  8036. fn: function (){
  8037. var self=this;
  8038. return self;
  8039. return self;},
  8040. args: [],
  8041. source: unescape('asPoint%0A%09%5Eself'),
  8042. messageSends: [],
  8043. referencedClasses: []
  8044. }),
  8045. smalltalk.Point);
  8046. smalltalk.addMethod(
  8047. unescape('__eq'),
  8048. smalltalk.method({
  8049. selector: unescape('%3D'),
  8050. category: 'arithmetic',
  8051. fn: function (aPoint){
  8052. var self=this;
  8053. return smalltalk.send(smalltalk.send(smalltalk.send(aPoint, "_class", []), "__eq", [smalltalk.send(self, "_class", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(aPoint, "_x", []), "__eq", [smalltalk.send(self, "_x", [])]), "_&", [smalltalk.send(smalltalk.send(aPoint, "_y", []), "__eq", [smalltalk.send(self, "_y", [])])]);})]);
  8054. return self;},
  8055. args: ["aPoint"],
  8056. source: unescape('%3D%20aPoint%0A%09%5EaPoint%20class%20%3D%20self%20class%20and%3A%20%5B%0A%09%09%28aPoint%20x%20%3D%20self%20x%29%20%26%20%28aPoint%20y%20%3D%20self%20y%29%5D'),
  8057. messageSends: ["and:", unescape("%3D"), "class", unescape("%26"), "x", "y"],
  8058. referencedClasses: []
  8059. }),
  8060. smalltalk.Point);
  8061. smalltalk.addMethod(
  8062. unescape('_x_y_'),
  8063. smalltalk.method({
  8064. selector: unescape('x%3Ay%3A'),
  8065. category: 'instance creation',
  8066. fn: function (aNumber, anotherNumber){
  8067. var self=this;
  8068. return (function($rec){smalltalk.send($rec, "_x_", [aNumber]);smalltalk.send($rec, "_y_", [anotherNumber]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  8069. return self;},
  8070. args: ["aNumber", "anotherNumber"],
  8071. source: unescape('x%3A%20aNumber%20y%3A%20anotherNumber%0A%09%5Eself%20new%0A%09%09x%3A%20aNumber%3B%0A%09%09y%3A%20anotherNumber%3B%0A%09%09yourself'),
  8072. messageSends: ["x:", "y:", "yourself", "new"],
  8073. referencedClasses: []
  8074. }),
  8075. smalltalk.Point.klass);
  8076. smalltalk.addClass('Message', smalltalk.Object, ['selector', 'arguments'], 'Kernel');
  8077. smalltalk.addMethod(
  8078. unescape('_selector'),
  8079. smalltalk.method({
  8080. selector: unescape('selector'),
  8081. category: 'accessing',
  8082. fn: function (){
  8083. var self=this;
  8084. return self['@selector'];
  8085. return self;},
  8086. args: [],
  8087. source: unescape('selector%0A%09%5Eselector'),
  8088. messageSends: [],
  8089. referencedClasses: []
  8090. }),
  8091. smalltalk.Message);
  8092. smalltalk.addMethod(
  8093. unescape('_selector_'),
  8094. smalltalk.method({
  8095. selector: unescape('selector%3A'),
  8096. category: 'accessing',
  8097. fn: function (aString){
  8098. var self=this;
  8099. self['@selector']=aString;
  8100. return self;},
  8101. args: ["aString"],
  8102. source: unescape('selector%3A%20aString%0A%09selector%20%3A%3D%20aString'),
  8103. messageSends: [],
  8104. referencedClasses: []
  8105. }),
  8106. smalltalk.Message);
  8107. smalltalk.addMethod(
  8108. unescape('_arguments_'),
  8109. smalltalk.method({
  8110. selector: unescape('arguments%3A'),
  8111. category: 'accessing',
  8112. fn: function (anArray){
  8113. var self=this;
  8114. self['@arguments']=anArray;
  8115. return self;},
  8116. args: ["anArray"],
  8117. source: unescape('arguments%3A%20anArray%0A%09arguments%20%3A%3D%20anArray'),
  8118. messageSends: [],
  8119. referencedClasses: []
  8120. }),
  8121. smalltalk.Message);
  8122. smalltalk.addMethod(
  8123. unescape('_arguments'),
  8124. smalltalk.method({
  8125. selector: unescape('arguments'),
  8126. category: 'accessing',
  8127. fn: function (){
  8128. var self=this;
  8129. return self['@arguments'];
  8130. return self;},
  8131. args: [],
  8132. source: unescape('arguments%0A%09%5Earguments'),
  8133. messageSends: [],
  8134. referencedClasses: []
  8135. }),
  8136. smalltalk.Message);
  8137. smalltalk.addMethod(
  8138. unescape('_printString'),
  8139. smalltalk.method({
  8140. selector: unescape('printString'),
  8141. category: 'printing',
  8142. fn: function (){
  8143. var self=this;
  8144. return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(aStream){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_printString", [], smalltalk.Object)]);smalltalk.send($rec, "_nextPutAll_", [unescape("%28")]);smalltalk.send($rec, "_nextPutAll_", [self['@selector']]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%29")]);})(aStream);})]);
  8145. return self;},
  8146. args: [],
  8147. source: unescape('printString%0A%09%5E%20String%20streamContents%3A%20%5B%3AaStream%7C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09%09aStream%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09%09%09nextPutAll%3A%20super%20printString%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09%09%09nextPutAll%3A%20%27%28%27%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09%09%09nextPutAll%3A%20selector%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09%09%09nextPutAll%3A%20%27%29%27%20%09%09%09%09%5D'),
  8148. messageSends: ["streamContents:", "nextPutAll:", "printString"],
  8149. referencedClasses: ["String"]
  8150. }),
  8151. smalltalk.Message);
  8152. smalltalk.addMethod(
  8153. unescape('_selector_arguments_'),
  8154. smalltalk.method({
  8155. selector: unescape('selector%3Aarguments%3A'),
  8156. category: 'instance creation',
  8157. fn: function (aString, anArray){
  8158. var self=this;
  8159. return (function($rec){smalltalk.send($rec, "_selector_", [aString]);smalltalk.send($rec, "_arguments_", [anArray]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  8160. return self;},
  8161. args: ["aString", "anArray"],
  8162. source: unescape('selector%3A%20aString%20arguments%3A%20anArray%0A%09%5Eself%20new%0A%09%09selector%3A%20aString%3B%0A%09%09arguments%3A%20anArray%3B%0A%09%09yourself'),
  8163. messageSends: ["selector:", "arguments:", "yourself", "new"],
  8164. referencedClasses: []
  8165. }),
  8166. smalltalk.Message.klass);
  8167. smalltalk.addClass('MessageNotUnderstood', smalltalk.Error, ['message', 'receiver'], 'Kernel');
  8168. smalltalk.addMethod(
  8169. unescape('_message'),
  8170. smalltalk.method({
  8171. selector: unescape('message'),
  8172. category: 'accessing',
  8173. fn: function (){
  8174. var self=this;
  8175. return self['@message'];
  8176. return self;},
  8177. args: [],
  8178. source: unescape('message%0A%09%5Emessage'),
  8179. messageSends: [],
  8180. referencedClasses: []
  8181. }),
  8182. smalltalk.MessageNotUnderstood);
  8183. smalltalk.addMethod(
  8184. unescape('_message_'),
  8185. smalltalk.method({
  8186. selector: unescape('message%3A'),
  8187. category: 'accessing',
  8188. fn: function (aMessage){
  8189. var self=this;
  8190. self['@message']=aMessage;
  8191. return self;},
  8192. args: ["aMessage"],
  8193. source: unescape('message%3A%20aMessage%0A%09message%20%3A%3D%20aMessage'),
  8194. messageSends: [],
  8195. referencedClasses: []
  8196. }),
  8197. smalltalk.MessageNotUnderstood);
  8198. smalltalk.addMethod(
  8199. unescape('_receiver'),
  8200. smalltalk.method({
  8201. selector: unescape('receiver'),
  8202. category: 'accessing',
  8203. fn: function (){
  8204. var self=this;
  8205. return self['@receiver'];
  8206. return self;},
  8207. args: [],
  8208. source: unescape('receiver%0A%09%5Ereceiver'),
  8209. messageSends: [],
  8210. referencedClasses: []
  8211. }),
  8212. smalltalk.MessageNotUnderstood);
  8213. smalltalk.addMethod(
  8214. unescape('_receiver_'),
  8215. smalltalk.method({
  8216. selector: unescape('receiver%3A'),
  8217. category: 'accessing',
  8218. fn: function (anObject){
  8219. var self=this;
  8220. self['@receiver']=anObject;
  8221. return self;},
  8222. args: ["anObject"],
  8223. source: unescape('receiver%3A%20anObject%0A%09receiver%20%3A%3D%20anObject'),
  8224. messageSends: [],
  8225. referencedClasses: []
  8226. }),
  8227. smalltalk.MessageNotUnderstood);
  8228. smalltalk.addMethod(
  8229. unescape('_messageText'),
  8230. smalltalk.method({
  8231. selector: unescape('messageText'),
  8232. category: 'accessing',
  8233. fn: function (){
  8234. var self=this;
  8235. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_receiver", []), "_asString", []), "__comma", [unescape("%20does%20not%20understand%20%23")]), "__comma", [smalltalk.send(smalltalk.send(self, "_message", []), "_selector", [])]);
  8236. return self;},
  8237. args: [],
  8238. source: unescape('messageText%0A%09%5Eself%20receiver%20asString%2C%20%27%20does%20not%20understand%20%23%27%2C%20self%20message%20selector'),
  8239. messageSends: [unescape("%2C"), "asString", "receiver", "selector", "message"],
  8240. referencedClasses: []
  8241. }),
  8242. smalltalk.MessageNotUnderstood);
  8243. smalltalk.addClass('ErrorHandler', smalltalk.Object, [], 'Kernel');
  8244. smalltalk.addMethod(
  8245. unescape('_handleError_'),
  8246. smalltalk.method({
  8247. selector: unescape('handleError%3A'),
  8248. category: 'error handling',
  8249. fn: function (anError){
  8250. var self=this;
  8251. (($receiver = smalltalk.send(anError, "_context", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logErrorContext_", [smalltalk.send(anError, "_context", [])]);})() : nil;
  8252. smalltalk.send(self, "_logError_", [anError]);
  8253. return self;},
  8254. args: ["anError"],
  8255. source: unescape('handleError%3A%20anError%0A%09anError%20context%20ifNotNil%3A%20%5Bself%20logErrorContext%3A%20anError%20context%5D.%0A%09self%20logError%3A%20anError'),
  8256. messageSends: ["ifNotNil:", "context", "logErrorContext:", "logError:"],
  8257. referencedClasses: []
  8258. }),
  8259. smalltalk.ErrorHandler);
  8260. smalltalk.addMethod(
  8261. unescape('_logContext_'),
  8262. smalltalk.method({
  8263. selector: unescape('logContext%3A'),
  8264. category: 'private',
  8265. fn: function (aContext){
  8266. var self=this;
  8267. (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logContext_", [smalltalk.send(aContext, "_home", [])]);})() : nil;
  8268. smalltalk.send(self, "_log_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aContext, "_receiver", []), "_asString", []), "__comma", [unescape("%3E%3E")]), "__comma", [smalltalk.send(aContext, "_selector", [])])]);
  8269. return self;},
  8270. args: ["aContext"],
  8271. source: unescape('logContext%3A%20aContext%0A%09aContext%20home%20ifNotNil%3A%20%5B%0A%09%09self%20logContext%3A%20aContext%20home%5D.%0A%09self%20log%3A%20aContext%20receiver%20asString%2C%20%27%3E%3E%27%2C%20aContext%20selector'),
  8272. messageSends: ["ifNotNil:", "home", "logContext:", "log:", unescape("%2C"), "asString", "receiver", "selector"],
  8273. referencedClasses: []
  8274. }),
  8275. smalltalk.ErrorHandler);
  8276. smalltalk.addMethod(
  8277. unescape('_logErrorContext_'),
  8278. smalltalk.method({
  8279. selector: unescape('logErrorContext%3A'),
  8280. category: 'private',
  8281. fn: function (aContext){
  8282. var self=this;
  8283. (($receiver = aContext) != nil && $receiver != undefined) ? (function(){return (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logContext_", [smalltalk.send(aContext, "_home", [])]);})() : nil;})() : nil;
  8284. return self;},
  8285. args: ["aContext"],
  8286. source: unescape('logErrorContext%3A%20aContext%0A%09aContext%20ifNotNil%3A%20%5B%0A%09%09aContext%20home%20ifNotNil%3A%20%5B%0A%09%09%09self%20logContext%3A%20aContext%20home%5D%5D'),
  8287. messageSends: ["ifNotNil:", "home", "logContext:"],
  8288. referencedClasses: []
  8289. }),
  8290. smalltalk.ErrorHandler);
  8291. smalltalk.addMethod(
  8292. unescape('_logError_'),
  8293. smalltalk.method({
  8294. selector: unescape('logError%3A'),
  8295. category: 'private',
  8296. fn: function (anError){
  8297. var self=this;
  8298. smalltalk.send(self, "_log_", [smalltalk.send(anError, "_messageText", [])]);
  8299. return self;},
  8300. args: ["anError"],
  8301. source: unescape('logError%3A%20anError%0A%09self%20log%3A%20anError%20messageText'),
  8302. messageSends: ["log:", "messageText"],
  8303. referencedClasses: []
  8304. }),
  8305. smalltalk.ErrorHandler);
  8306. smalltalk.addMethod(
  8307. unescape('_log_'),
  8308. smalltalk.method({
  8309. selector: unescape('log%3A'),
  8310. category: 'private',
  8311. fn: function (aString){
  8312. var self=this;
  8313. smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [aString]);
  8314. return self;},
  8315. args: ["aString"],
  8316. source: unescape('log%3A%20aString%0A%09console%20log%3A%20aString'),
  8317. messageSends: ["log:"],
  8318. referencedClasses: []
  8319. }),
  8320. smalltalk.ErrorHandler);
  8321. smalltalk.ErrorHandler.klass.iVarNames = ['current'];
  8322. smalltalk.addMethod(
  8323. unescape('_current'),
  8324. smalltalk.method({
  8325. selector: unescape('current'),
  8326. category: 'accessing',
  8327. fn: function (){
  8328. var self=this;
  8329. return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", []);})() : $receiver;
  8330. return self;},
  8331. args: [],
  8332. source: unescape('current%0A%09%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20self%20new%5D'),
  8333. messageSends: ["ifNil:", "new"],
  8334. referencedClasses: []
  8335. }),
  8336. smalltalk.ErrorHandler.klass);
  8337. smalltalk.addMethod(
  8338. unescape('_initialize'),
  8339. smalltalk.method({
  8340. selector: unescape('initialize'),
  8341. category: 'initialization',
  8342. fn: function (){
  8343. var self=this;
  8344. smalltalk.send(self, "_register", []);
  8345. return self;},
  8346. args: [],
  8347. source: unescape('initialize%0A%09self%20register'),
  8348. messageSends: ["register"],
  8349. referencedClasses: []
  8350. }),
  8351. smalltalk.ErrorHandler.klass);
  8352. smalltalk.addMethod(
  8353. unescape('_register'),
  8354. smalltalk.method({
  8355. selector: unescape('register'),
  8356. category: 'initialization',
  8357. fn: function (){
  8358. var self=this;
  8359. smalltalk.send((smalltalk.ErrorHandler || ErrorHandler), "_setCurrent_", [smalltalk.send(self, "_new", [])]);
  8360. return self;},
  8361. args: [],
  8362. source: unescape('register%0A%09ErrorHandler%20setCurrent%3A%20self%20new'),
  8363. messageSends: ["setCurrent:", "new"],
  8364. referencedClasses: ["ErrorHandler"]
  8365. }),
  8366. smalltalk.ErrorHandler.klass);
  8367. smalltalk.addMethod(
  8368. unescape('_setCurrent_'),
  8369. smalltalk.method({
  8370. selector: unescape('setCurrent%3A'),
  8371. category: 'accessing',
  8372. fn: function (anHandler){
  8373. var self=this;
  8374. self['@current']=anHandler;
  8375. return self;},
  8376. args: ["anHandler"],
  8377. source: unescape('setCurrent%3A%20anHandler%0A%09current%20%3A%3D%20anHandler'),
  8378. messageSends: [],
  8379. referencedClasses: []
  8380. }),
  8381. smalltalk.ErrorHandler.klass);
  8382. smalltalk.addClass('JSObjectProxy', smalltalk.Object, ['jsObject'], 'Kernel');
  8383. smalltalk.addMethod(
  8384. unescape('_jsObject_'),
  8385. smalltalk.method({
  8386. selector: unescape('jsObject%3A'),
  8387. category: 'accessing',
  8388. fn: function (aJSObject){
  8389. var self=this;
  8390. self['@jsObject']=aJSObject;
  8391. return self;},
  8392. args: ["aJSObject"],
  8393. source: unescape('jsObject%3A%20aJSObject%0A%09jsObject%20%3A%3D%20aJSObject'),
  8394. messageSends: [],
  8395. referencedClasses: []
  8396. }),
  8397. smalltalk.JSObjectProxy);
  8398. smalltalk.addMethod(
  8399. unescape('_jsObject'),
  8400. smalltalk.method({
  8401. selector: unescape('jsObject'),
  8402. category: 'accessing',
  8403. fn: function (){
  8404. var self=this;
  8405. return self['@jsObject'];
  8406. return self;},
  8407. args: [],
  8408. source: unescape('jsObject%0A%09%5EjsObject'),
  8409. messageSends: [],
  8410. referencedClasses: []
  8411. }),
  8412. smalltalk.JSObjectProxy);
  8413. smalltalk.addMethod(
  8414. unescape('_printString'),
  8415. smalltalk.method({
  8416. selector: unescape('printString'),
  8417. category: 'proxy',
  8418. fn: function (){
  8419. var self=this;
  8420. return smalltalk.send(smalltalk.send(self, "_jsObject", []), "_toString", []);
  8421. return self;},
  8422. args: [],
  8423. source: unescape('printString%0A%09%5Eself%20jsObject%20toString'),
  8424. messageSends: ["toString", "jsObject"],
  8425. referencedClasses: []
  8426. }),
  8427. smalltalk.JSObjectProxy);
  8428. smalltalk.addMethod(
  8429. unescape('_inspectOn_'),
  8430. smalltalk.method({
  8431. selector: unescape('inspectOn%3A'),
  8432. category: 'proxy',
  8433. fn: function (anInspector){
  8434. var self=this;
  8435. var variables=nil;
  8436. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  8437. smalltalk.send(variables, "_at_put_", [unescape("%23self"), smalltalk.send(self, "_jsObject", [])]);
  8438. smalltalk.send(anInspector, "_setLabel_", [smalltalk.send(self, "_printString", [])]);
  8439. for(var i in self['@jsObject']) {
  8440. variables._at_put_(i, self['@jsObject'][i]);
  8441. };
  8442. smalltalk.send(anInspector, "_setVariables_", [variables]);
  8443. return self;},
  8444. args: ["anInspector"],
  8445. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self%20jsObject.%0A%09anInspector%20setLabel%3A%20self%20printString.%0A%09%3Cfor%28var%20i%20in%20self%5B%27@jsObject%27%5D%29%20%7B%0A%09%09variables._at_put_%28i%2C%20self%5B%27@jsObject%27%5D%5Bi%5D%29%3B%0A%09%7D%3E.%0A%09anInspector%20setVariables%3A%20variables'),
  8446. messageSends: ["new", "at:put:", "jsObject", "setLabel:", "printString", "setVariables:"],
  8447. referencedClasses: ["Dictionary"]
  8448. }),
  8449. smalltalk.JSObjectProxy);
  8450. smalltalk.addMethod(
  8451. unescape('_doesNotUnderstand_'),
  8452. smalltalk.method({
  8453. selector: unescape('doesNotUnderstand%3A'),
  8454. category: 'proxy',
  8455. fn: function (aMessage){
  8456. var self=this;
  8457. var obj=nil;
  8458. var selector=nil;
  8459. var jsSelector=nil;
  8460. var arguments=nil;
  8461. obj=smalltalk.send(self, "_jsObject", []);
  8462. selector=smalltalk.send(aMessage, "_selector", []);
  8463. jsSelector=smalltalk.send(selector, "_asJavaScriptSelector", []);
  8464. arguments=smalltalk.send(aMessage, "_arguments", []);
  8465. if(obj[jsSelector] != undefined) {return smalltalk.send(obj, jsSelector, arguments)};
  8466. smalltalk.send(self, "_doesNotUnderstand_", [aMessage], smalltalk.Object);
  8467. return self;},
  8468. args: ["aMessage"],
  8469. source: unescape('doesNotUnderstand%3A%20aMessage%0A%09%7C%20obj%20selector%20jsSelector%20arguments%20%7C%0A%09obj%20%3A%3D%20self%20jsObject.%0A%09selector%20%3A%3D%20aMessage%20selector.%0A%09jsSelector%20%3A%3D%20selector%20asJavaScriptSelector.%0A%09arguments%20%3A%3D%20aMessage%20arguments.%0A%09%3Cif%28obj%5BjsSelector%5D%20%21%3D%20undefined%29%20%7Breturn%20smalltalk.send%28obj%2C%20jsSelector%2C%20arguments%29%7D%3E.%0A%09super%20doesNotUnderstand%3A%20aMessage'),
  8470. messageSends: ["jsObject", "selector", "asJavaScriptSelector", "arguments", "doesNotUnderstand:"],
  8471. referencedClasses: []
  8472. }),
  8473. smalltalk.JSObjectProxy);
  8474. smalltalk.addMethod(
  8475. unescape('_at_'),
  8476. smalltalk.method({
  8477. selector: unescape('at%3A'),
  8478. category: 'accessing',
  8479. fn: function (aString){
  8480. var self=this;
  8481. return self['@jsObject'][aString];
  8482. return self;},
  8483. args: ["aString"],
  8484. source: unescape('at%3A%20aString%0A%09%3Creturn%20self%5B%27@jsObject%27%5D%5BaString%5D%3E'),
  8485. messageSends: [],
  8486. referencedClasses: []
  8487. }),
  8488. smalltalk.JSObjectProxy);
  8489. smalltalk.addMethod(
  8490. unescape('_at_put_'),
  8491. smalltalk.method({
  8492. selector: unescape('at%3Aput%3A'),
  8493. category: 'accessing',
  8494. fn: function (aString, anObject){
  8495. var self=this;
  8496. self['@jsObject'][aString] = anObject;
  8497. return self;},
  8498. args: ["aString", "anObject"],
  8499. source: unescape('at%3A%20aString%20put%3A%20anObject%0A%09%3Cself%5B%27@jsObject%27%5D%5BaString%5D%20%3D%20anObject%3E'),
  8500. messageSends: [],
  8501. referencedClasses: []
  8502. }),
  8503. smalltalk.JSObjectProxy);
  8504. smalltalk.addMethod(
  8505. unescape('_on_'),
  8506. smalltalk.method({
  8507. selector: unescape('on%3A'),
  8508. category: 'instance creation',
  8509. fn: function (aJSObject){
  8510. var self=this;
  8511. return (function($rec){smalltalk.send($rec, "_jsObject_", [aJSObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  8512. return self;},
  8513. args: ["aJSObject"],
  8514. source: unescape('on%3A%20aJSObject%0A%09%5Eself%20new%0A%09%09jsObject%3A%20aJSObject%3B%0A%09%09yourself'),
  8515. messageSends: ["jsObject:", "yourself", "new"],
  8516. referencedClasses: []
  8517. }),
  8518. smalltalk.JSObjectProxy.klass);
  8519. smalltalk.addClass('Set', smalltalk.Collection, ['elements'], 'Kernel');
  8520. smalltalk.addMethod(
  8521. unescape('_add_'),
  8522. smalltalk.method({
  8523. selector: unescape('add%3A'),
  8524. category: 'adding/removing',
  8525. fn: function (anObject){
  8526. var self=this;
  8527. var found;
  8528. for(var i in self['@elements']) {
  8529. if(anObject == self['@elements'][i]) {
  8530. found = true;
  8531. break;
  8532. }
  8533. }
  8534. if(!found) {self['@elements'].push(anObject)}
  8535. ;
  8536. return self;},
  8537. args: ["anObject"],
  8538. source: unescape('add%3A%20anObject%0A%09%3C%0A%09%09var%20found%3B%0A%09%09for%28var%20i%20in%20self%5B%27@elements%27%5D%29%20%7B%0A%09%09%09if%28anObject%20%3D%3D%20self%5B%27@elements%27%5D%5Bi%5D%29%20%7B%0A%09%09%09%09found%20%3D%20true%3B%0A%09%09%09%09break%3B%0A%09%09%09%7D%0A%09%09%7D%0A%09%09if%28%21found%29%20%7Bself%5B%27@elements%27%5D.push%28anObject%29%7D%0A%09%3E'),
  8539. messageSends: [],
  8540. referencedClasses: []
  8541. }),
  8542. smalltalk.Set);
  8543. smalltalk.addMethod(
  8544. unescape('_remove_'),
  8545. smalltalk.method({
  8546. selector: unescape('remove%3A'),
  8547. category: 'adding/removing',
  8548. fn: function (anObject){
  8549. var self=this;
  8550. smalltalk.send(self['@elements'], "_remove_", [anObject]);
  8551. return self;},
  8552. args: ["anObject"],
  8553. source: unescape('remove%3A%20anObject%0A%09elements%20remove%3A%20anObject'),
  8554. messageSends: ["remove:"],
  8555. referencedClasses: []
  8556. }),
  8557. smalltalk.Set);
  8558. smalltalk.addMethod(
  8559. unescape('_initialize'),
  8560. smalltalk.method({
  8561. selector: unescape('initialize'),
  8562. category: 'initialization',
  8563. fn: function (){
  8564. var self=this;
  8565. smalltalk.send(self, "_initialize", [], smalltalk.Collection);
  8566. self['@elements']=[];
  8567. return self;},
  8568. args: [],
  8569. source: unescape('initialize%0A%09super%20initialize.%0A%09elements%20%3A%3D%20%23%28%29'),
  8570. messageSends: ["initialize"],
  8571. referencedClasses: []
  8572. }),
  8573. smalltalk.Set);
  8574. smalltalk.addMethod(
  8575. unescape('_size'),
  8576. smalltalk.method({
  8577. selector: unescape('size'),
  8578. category: 'accessing',
  8579. fn: function (){
  8580. var self=this;
  8581. return smalltalk.send(self['@elements'], "_size", []);
  8582. return self;},
  8583. args: [],
  8584. source: unescape('size%0A%09%5Eelements%20size'),
  8585. messageSends: ["size"],
  8586. referencedClasses: []
  8587. }),
  8588. smalltalk.Set);
  8589. smalltalk.addMethod(
  8590. unescape('_asArray'),
  8591. smalltalk.method({
  8592. selector: unescape('asArray'),
  8593. category: 'converting',
  8594. fn: function (){
  8595. var self=this;
  8596. return smalltalk.send(self['@elements'], "_copy", []);
  8597. return self;},
  8598. args: [],
  8599. source: unescape('asArray%0A%09%5Eelements%20copy'),
  8600. messageSends: ["copy"],
  8601. referencedClasses: []
  8602. }),
  8603. smalltalk.Set);
  8604. smalltalk.addMethod(
  8605. unescape('_detect_ifNone_'),
  8606. smalltalk.method({
  8607. selector: unescape('detect%3AifNone%3A'),
  8608. category: 'enumerating',
  8609. fn: function (aBlock, anotherBlock){
  8610. var self=this;
  8611. return smalltalk.send(self['@elements'], "_detect_ifNone_", [aBlock, anotherBlock]);
  8612. return self;},
  8613. args: ["aBlock", "anotherBlock"],
  8614. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eelements%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  8615. messageSends: ["detect:ifNone:"],
  8616. referencedClasses: []
  8617. }),
  8618. smalltalk.Set);
  8619. smalltalk.addMethod(
  8620. unescape('_do_'),
  8621. smalltalk.method({
  8622. selector: unescape('do%3A'),
  8623. category: 'enumerating',
  8624. fn: function (aBlock){
  8625. var self=this;
  8626. smalltalk.send(self['@elements'], "_do_", [aBlock]);
  8627. return self;},
  8628. args: ["aBlock"],
  8629. source: unescape('do%3A%20aBlock%0A%09elements%20do%3A%20aBlock'),
  8630. messageSends: ["do:"],
  8631. referencedClasses: []
  8632. }),
  8633. smalltalk.Set);
  8634. smalltalk.addMethod(
  8635. unescape('_includes_'),
  8636. smalltalk.method({
  8637. selector: unescape('includes%3A'),
  8638. category: 'testing',
  8639. fn: function (anObject){
  8640. var self=this;
  8641. return smalltalk.send(self['@elements'], "_includes_", [anObject]);
  8642. return self;},
  8643. args: ["anObject"],
  8644. source: unescape('includes%3A%20anObject%0A%09%5Eelements%20includes%3A%20anObject'),
  8645. messageSends: ["includes:"],
  8646. referencedClasses: []
  8647. }),
  8648. smalltalk.Set);
  8649. smalltalk.addMethod(
  8650. unescape('__eq'),
  8651. smalltalk.method({
  8652. selector: unescape('%3D'),
  8653. category: 'comparing',
  8654. fn: function (aCollection){
  8655. var self=this;
  8656. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aCollection, "_class", [])]), "_and_", [(function(){return smalltalk.send(self['@elements'], "__eq", [smalltalk.send(aCollection, "_asArray", [])]);})]);
  8657. return self;},
  8658. args: ["aCollection"],
  8659. source: unescape('%3D%20aCollection%0A%09%5Eself%20class%20%3D%20aCollection%20class%20and%3A%20%5B%0A%20%20%20%20%20%20%20%20%09elements%20%3D%20aCollection%20asArray%5D'),
  8660. messageSends: ["and:", unescape("%3D"), "class", "asArray"],
  8661. referencedClasses: []
  8662. }),
  8663. smalltalk.Set);
  8664. smalltalk.addClass('Transcript', smalltalk.Object, ['textarea'], 'Kernel');
  8665. smalltalk.Transcript.klass.iVarNames = ['current'];
  8666. smalltalk.addMethod(
  8667. unescape('_open'),
  8668. smalltalk.method({
  8669. selector: unescape('open'),
  8670. category: 'instance creation',
  8671. fn: function (){
  8672. var self=this;
  8673. smalltalk.send(smalltalk.send(self, "_current", []), "_open", []);
  8674. return self;},
  8675. args: [],
  8676. source: unescape('open%0A%20%20%20%20self%20current%20open'),
  8677. messageSends: ["open", "current"],
  8678. referencedClasses: []
  8679. }),
  8680. smalltalk.Transcript.klass);
  8681. smalltalk.addMethod(
  8682. unescape('_new'),
  8683. smalltalk.method({
  8684. selector: unescape('new'),
  8685. category: 'instance creation',
  8686. fn: function (){
  8687. var self=this;
  8688. smalltalk.send(self, "_shouldNotImplement", []);
  8689. return self;},
  8690. args: [],
  8691. source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'),
  8692. messageSends: ["shouldNotImplement"],
  8693. referencedClasses: []
  8694. }),
  8695. smalltalk.Transcript.klass);
  8696. smalltalk.addMethod(
  8697. unescape('_current'),
  8698. smalltalk.method({
  8699. selector: unescape('current'),
  8700. category: 'instance creation',
  8701. fn: function (){
  8702. var self=this;
  8703. return self['@current'];
  8704. return self;},
  8705. args: [],
  8706. source: unescape('current%0A%20%20%20%20%5Ecurrent'),
  8707. messageSends: [],
  8708. referencedClasses: []
  8709. }),
  8710. smalltalk.Transcript.klass);
  8711. smalltalk.addMethod(
  8712. unescape('_show_'),
  8713. smalltalk.method({
  8714. selector: unescape('show%3A'),
  8715. category: 'printing',
  8716. fn: function (anObject){
  8717. var self=this;
  8718. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [anObject]);
  8719. return self;},
  8720. args: ["anObject"],
  8721. source: unescape('show%3A%20anObject%0A%20%20%20%20self%20current%20show%3A%20anObject'),
  8722. messageSends: ["show:", "current"],
  8723. referencedClasses: []
  8724. }),
  8725. smalltalk.Transcript.klass);
  8726. smalltalk.addMethod(
  8727. unescape('_cr'),
  8728. smalltalk.method({
  8729. selector: unescape('cr'),
  8730. category: 'printing',
  8731. fn: function (){
  8732. var self=this;
  8733. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  8734. return self;},
  8735. args: [],
  8736. source: unescape('cr%0A%20%20%20%20self%20current%20show%3A%20String%20cr'),
  8737. messageSends: ["show:", "current", "cr"],
  8738. referencedClasses: ["String"]
  8739. }),
  8740. smalltalk.Transcript.klass);
  8741. smalltalk.addMethod(
  8742. unescape('_clear'),
  8743. smalltalk.method({
  8744. selector: unescape('clear'),
  8745. category: 'printing',
  8746. fn: function (){
  8747. var self=this;
  8748. smalltalk.send(smalltalk.send(self, "_current", []), "_clear", []);
  8749. return self;},
  8750. args: [],
  8751. source: unescape('clear%0A%20%20%20%20self%20current%20clear'),
  8752. messageSends: ["clear", "current"],
  8753. referencedClasses: []
  8754. }),
  8755. smalltalk.Transcript.klass);
  8756. smalltalk.addMethod(
  8757. unescape('_register_'),
  8758. smalltalk.method({
  8759. selector: unescape('register%3A'),
  8760. category: 'instance creation',
  8761. fn: function (aTranscript){
  8762. var self=this;
  8763. self['@current']=aTranscript;
  8764. return self;},
  8765. args: ["aTranscript"],
  8766. source: unescape('register%3A%20aTranscript%0A%09current%20%3A%3D%20aTranscript'),
  8767. messageSends: [],
  8768. referencedClasses: []
  8769. }),
  8770. smalltalk.Transcript.klass);
  8771. smalltalk.addClass('ConsoleTranscript', smalltalk.Object, ['textarea'], 'Kernel');
  8772. smalltalk.addMethod(
  8773. unescape('_clear'),
  8774. smalltalk.method({
  8775. selector: unescape('clear'),
  8776. category: 'printing',
  8777. fn: function (){
  8778. var self=this;
  8779. return self;},
  8780. args: [],
  8781. source: unescape('clear%0A%09%22no%20op%22'),
  8782. messageSends: [],
  8783. referencedClasses: []
  8784. }),
  8785. smalltalk.ConsoleTranscript);
  8786. smalltalk.addMethod(
  8787. unescape('_cr'),
  8788. smalltalk.method({
  8789. selector: unescape('cr'),
  8790. category: 'printing',
  8791. fn: function (){
  8792. var self=this;
  8793. return self;},
  8794. args: [],
  8795. source: unescape('cr%0A%09%22no%20op%22'),
  8796. messageSends: [],
  8797. referencedClasses: []
  8798. }),
  8799. smalltalk.ConsoleTranscript);
  8800. smalltalk.addMethod(
  8801. unescape('_show_'),
  8802. smalltalk.method({
  8803. selector: unescape('show%3A'),
  8804. category: 'printing',
  8805. fn: function (anObject){
  8806. var self=this;
  8807. var string=nil;
  8808. string=smalltalk.send(anObject, "_asString", []);
  8809. console.log(String(string));
  8810. return self;},
  8811. args: ["anObject"],
  8812. source: unescape('show%3A%20anObject%0A%09%7C%20string%20%7C%0A%09string%20%3A%3D%20anObject%20asString.%0A%09%3Cconsole.log%28String%28string%29%29%3E'),
  8813. messageSends: ["asString"],
  8814. referencedClasses: []
  8815. }),
  8816. smalltalk.ConsoleTranscript);
  8817. smalltalk.addMethod(
  8818. unescape('_open'),
  8819. smalltalk.method({
  8820. selector: unescape('open'),
  8821. category: 'actions',
  8822. fn: function (){
  8823. var self=this;
  8824. return self;},
  8825. args: [],
  8826. source: unescape('open'),
  8827. messageSends: [],
  8828. referencedClasses: []
  8829. }),
  8830. smalltalk.ConsoleTranscript);
  8831. smalltalk.addMethod(
  8832. unescape('_initialize'),
  8833. smalltalk.method({
  8834. selector: unescape('initialize'),
  8835. category: 'initialization',
  8836. fn: function (){
  8837. var self=this;
  8838. smalltalk.send((smalltalk.Transcript || Transcript), "_register_", [smalltalk.send(self, "_new", [])]);
  8839. return self;},
  8840. args: [],
  8841. source: unescape('initialize%0A%09Transcript%20register%3A%20self%20new'),
  8842. messageSends: ["register:", "new"],
  8843. referencedClasses: ["Transcript"]
  8844. }),
  8845. smalltalk.ConsoleTranscript.klass);
  8846. smalltalk.addClass('Dictionary2', smalltalk.Dictionary, ['keys'], 'Kernel');
  8847. smalltalk.addMethod(
  8848. unescape('__eq'),
  8849. smalltalk.method({
  8850. selector: unescape('%3D'),
  8851. category: 'comparing',
  8852. fn: function (aDictionary){
  8853. var self=this;
  8854. try{((($receiver = smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aDictionary, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  8855. ((($receiver = smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [smalltalk.send(aDictionary, "_size", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  8856. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return smalltalk.send(smalltalk.send(self, "_associations", []), "__eq", [smalltalk.send(aDictionary, "_associations", [])])}})})();
  8857. return self;
  8858. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  8859. args: ["aDictionary"],
  8860. source: unescape('%3D%20aDictionary%0A%09self%20class%20%3D%20aDictionary%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09self%20size%20%3D%20aDictionary%20size%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%5Eself%20associations%20%3D%20aDictionary%20associations'),
  8861. messageSends: ["ifFalse:", unescape("%3D"), "class", "size", "associations"],
  8862. referencedClasses: []
  8863. }),
  8864. smalltalk.Dictionary2);
  8865. smalltalk.addMethod(
  8866. unescape('_shallowCopy'),
  8867. smalltalk.method({
  8868. selector: unescape('shallowCopy'),
  8869. category: 'copying',
  8870. fn: function (){
  8871. var self=this;
  8872. var copy=nil;
  8873. copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  8874. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(copy, "_at_put_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  8875. return copy;
  8876. return self;},
  8877. args: [],
  8878. source: unescape('shallowCopy%0A%09%7C%20copy%20%7C%0A%09copy%20%3A%3D%20self%20class%20new.%0A%09self%20associationsDo%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20copy%20at%3A%20each%20key%20%20put%3A%20each%20value%5D.%0A%09%5Ecopy'),
  8879. messageSends: ["new", "class", "associationsDo:", "at:put:", "key", "value"],
  8880. referencedClasses: []
  8881. }),
  8882. smalltalk.Dictionary2);
  8883. smalltalk.addMethod(
  8884. unescape('_initialize'),
  8885. smalltalk.method({
  8886. selector: unescape('initialize'),
  8887. category: 'initialization',
  8888. fn: function (){
  8889. var self=this;
  8890. smalltalk.send(self, "_initialize", [], smalltalk.Dictionary);
  8891. self['@keys']=[];
  8892. return self;},
  8893. args: [],
  8894. source: unescape('initialize%0A%20%20%20%20%09super%20initialize.%0A%20%20%20%20%09keys%20%3A%3D%20%23%28%29'),
  8895. messageSends: ["initialize"],
  8896. referencedClasses: []
  8897. }),
  8898. smalltalk.Dictionary2);
  8899. smalltalk.addMethod(
  8900. unescape('_size'),
  8901. smalltalk.method({
  8902. selector: unescape('size'),
  8903. category: 'accessing',
  8904. fn: function (){
  8905. var self=this;
  8906. return smalltalk.send(self['@keys'], "_size", []);
  8907. return self;},
  8908. args: [],
  8909. source: unescape('size%0A%09%5Ekeys%20size'),
  8910. messageSends: ["size"],
  8911. referencedClasses: []
  8912. }),
  8913. smalltalk.Dictionary2);
  8914. smalltalk.addMethod(
  8915. unescape('_associations'),
  8916. smalltalk.method({
  8917. selector: unescape('associations'),
  8918. category: 'accessing',
  8919. fn: function (){
  8920. var self=this;
  8921. var associations=nil;
  8922. associations=[];
  8923. smalltalk.send(self['@keys'], "_do_", [(function(each){return smalltalk.send(associations, "_add_", [smalltalk.send((smalltalk.Association || Association), "_key_value_", [each, smalltalk.send(self, "_at_", [each])])]);})]);
  8924. return associations;
  8925. return self;},
  8926. args: [],
  8927. source: unescape('associations%0A%09%7C%20associations%20%7C%0A%09associations%20%3A%3D%20%23%28%29.%0A%09keys%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20associations%20add%3A%20%28Association%20key%3A%20each%20value%3A%20%28self%20at%3A%20each%29%29%5D.%0A%09%5Eassociations'),
  8928. messageSends: ["do:", "add:", "key:value:", "at:"],
  8929. referencedClasses: ["Association"]
  8930. }),
  8931. smalltalk.Dictionary2);
  8932. smalltalk.addMethod(
  8933. unescape('_keys'),
  8934. smalltalk.method({
  8935. selector: unescape('keys'),
  8936. category: 'accessing',
  8937. fn: function (){
  8938. var self=this;
  8939. return smalltalk.send(self['@keys'], "_copy", []);
  8940. return self;},
  8941. args: [],
  8942. source: unescape('keys%0A%09%5Ekeys%20copy'),
  8943. messageSends: ["copy"],
  8944. referencedClasses: []
  8945. }),
  8946. smalltalk.Dictionary2);
  8947. smalltalk.addMethod(
  8948. unescape('_values'),
  8949. smalltalk.method({
  8950. selector: unescape('values'),
  8951. category: 'accessing',
  8952. fn: function (){
  8953. var self=this;
  8954. return smalltalk.send(self['@keys'], "_collect_", [(function(each){return smalltalk.send(self, "_at_", [each]);})]);
  8955. return self;},
  8956. args: [],
  8957. source: unescape('values%0A%20%20%20%20%09%5Ekeys%20collect%3A%20%5B%3Aeach%20%7C%20self%20at%3A%20each%5D'),
  8958. messageSends: ["collect:", "at:"],
  8959. referencedClasses: []
  8960. }),
  8961. smalltalk.Dictionary2);
  8962. smalltalk.addMethod(
  8963. unescape('_at_put_'),
  8964. smalltalk.method({
  8965. selector: unescape('at%3Aput%3A'),
  8966. category: 'accessing',
  8967. fn: function (aKey, aValue){
  8968. var self=this;
  8969. ((($receiver = smalltalk.send(self['@keys'], "_includes_", [aKey])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@keys'], "_add_", [aKey]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self['@keys'], "_add_", [aKey]);})]));
  8970. return smalltalk.send(self, "_basicAt_put_", [aKey, aValue]);
  8971. return self;},
  8972. args: ["aKey", "aValue"],
  8973. source: unescape('at%3A%20aKey%20put%3A%20aValue%0A%09%28keys%20includes%3A%20aKey%29%20ifFalse%3A%20%5Bkeys%20add%3A%20aKey%5D.%0A%09%5Eself%20basicAt%3A%20aKey%20put%3A%20aValue'),
  8974. messageSends: ["ifFalse:", "includes:", "add:", "basicAt:put:"],
  8975. referencedClasses: []
  8976. }),
  8977. smalltalk.Dictionary2);
  8978. smalltalk.addMethod(
  8979. unescape('_at_ifAbsent_'),
  8980. smalltalk.method({
  8981. selector: unescape('at%3AifAbsent%3A'),
  8982. category: 'accessing',
  8983. fn: function (aKey, aBlock){
  8984. var self=this;
  8985. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_keys", []), "_includes_", [aKey]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_basicAt_", [aKey]);}), aBlock]);
  8986. return self;},
  8987. args: ["aKey", "aBlock"],
  8988. source: unescape('at%3A%20aKey%20ifAbsent%3A%20aBlock%0A%09%5E%28self%20keys%20includes%3A%20aKey%29%0A%09%09ifTrue%3A%20%5Bself%20basicAt%3A%20aKey%5D%0A%09%09ifFalse%3A%20aBlock'),
  8989. messageSends: ["ifTrue:ifFalse:", "includes:", "keys", "basicAt:"],
  8990. referencedClasses: []
  8991. }),
  8992. smalltalk.Dictionary2);
  8993. smalltalk.addMethod(
  8994. unescape('_at_ifAbsentPut_'),
  8995. smalltalk.method({
  8996. selector: unescape('at%3AifAbsentPut%3A'),
  8997. category: 'accessing',
  8998. fn: function (aKey, aBlock){
  8999. var self=this;
  9000. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_at_put_", [aKey, smalltalk.send(aBlock, "_value", [])]);})]);
  9001. return self;},
  9002. args: ["aKey", "aBlock"],
  9003. source: unescape('at%3A%20aKey%20ifAbsentPut%3A%20aBlock%0A%20%20%20%20%09%5Eself%20at%3A%20aKey%20ifAbsent%3A%20%5B%0A%20%20%20%20%09%20%20%20%20self%20at%3A%20aKey%20put%3A%20aBlock%20value%5D'),
  9004. messageSends: ["at:ifAbsent:", "at:put:", "value"],
  9005. referencedClasses: []
  9006. }),
  9007. smalltalk.Dictionary2);
  9008. smalltalk.addMethod(
  9009. unescape('_at_ifPresent_'),
  9010. smalltalk.method({
  9011. selector: unescape('at%3AifPresent%3A'),
  9012. category: 'accessing',
  9013. fn: function (aKey, aBlock){
  9014. var self=this;
  9015. return (($receiver = smalltalk.send(self, "_basicAt_", [aKey])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})() : nil;
  9016. return self;},
  9017. args: ["aKey", "aBlock"],
  9018. source: unescape('at%3A%20aKey%20ifPresent%3A%20aBlock%0A%09%5E%28self%20basicAt%3A%20aKey%29%20ifNotNil%3A%20%5BaBlock%20value%3A%20%28self%20at%3A%20aKey%29%5D'),
  9019. messageSends: ["ifNotNil:", "basicAt:", "value:", "at:"],
  9020. referencedClasses: []
  9021. }),
  9022. smalltalk.Dictionary2);
  9023. smalltalk.addMethod(
  9024. unescape('_at_ifPresent_ifAbsent_'),
  9025. smalltalk.method({
  9026. selector: unescape('at%3AifPresent%3AifAbsent%3A'),
  9027. category: 'accessing',
  9028. fn: function (aKey, aBlock, anotherBlock){
  9029. var self=this;
  9030. return smalltalk.send(smalltalk.send(self, "_basicAt_", [aKey]), "_ifNil_ifNotNil_", [anotherBlock, (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})]);
  9031. return self;},
  9032. args: ["aKey", "aBlock", "anotherBlock"],
  9033. source: unescape('at%3A%20aKey%20ifPresent%3A%20aBlock%20ifAbsent%3A%20anotherBlock%0A%09%5E%28self%20basicAt%3A%20aKey%29%0A%09%20%20%20%20ifNil%3A%20anotherBlock%0A%09%20%20%20%20ifNotNil%3A%20%5BaBlock%20value%3A%20%28self%20at%3A%20aKey%29%5D'),
  9034. messageSends: ["ifNil:ifNotNil:", "basicAt:", "value:", "at:"],
  9035. referencedClasses: []
  9036. }),
  9037. smalltalk.Dictionary2);
  9038. smalltalk.addMethod(
  9039. unescape('_add_'),
  9040. smalltalk.method({
  9041. selector: unescape('add%3A'),
  9042. category: 'adding/removing',
  9043. fn: function (anAssociation){
  9044. var self=this;
  9045. smalltalk.send(self, "_at_put_", [smalltalk.send(anAssociation, "_key", []), smalltalk.send(anAssociation, "_value", [])]);
  9046. return self;},
  9047. args: ["anAssociation"],
  9048. source: unescape('add%3A%20anAssociation%0A%20%20%20%20%09self%20at%3A%20anAssociation%20key%20put%3A%20anAssociation%20value'),
  9049. messageSends: ["at:put:", "key", "value"],
  9050. referencedClasses: []
  9051. }),
  9052. smalltalk.Dictionary2);
  9053. smalltalk.addMethod(
  9054. unescape('_addAll_'),
  9055. smalltalk.method({
  9056. selector: unescape('addAll%3A'),
  9057. category: 'adding/removing',
  9058. fn: function (aDictionary){
  9059. var self=this;
  9060. smalltalk.send(self, "_addAll_", [smalltalk.send(aDictionary, "_associations", [])], smalltalk.Dictionary);
  9061. return aDictionary;
  9062. return self;},
  9063. args: ["aDictionary"],
  9064. source: unescape('addAll%3A%20aDictionary%0A%20%20%20%20%09super%20addAll%3A%20aDictionary%20associations.%0A%20%20%20%20%09%5EaDictionary'),
  9065. messageSends: ["addAll:", "associations"],
  9066. referencedClasses: []
  9067. }),
  9068. smalltalk.Dictionary2);
  9069. smalltalk.addMethod(
  9070. unescape('__comma'),
  9071. smalltalk.method({
  9072. selector: unescape('%2C'),
  9073. category: 'copying',
  9074. fn: function (aCollection){
  9075. var self=this;
  9076. smalltalk.send(self, "_shouldNotImplement", []);
  9077. return self;},
  9078. args: ["aCollection"],
  9079. source: unescape('%2C%20aCollection%0A%09self%20shouldNotImplement'),
  9080. messageSends: ["shouldNotImplement"],
  9081. referencedClasses: []
  9082. }),
  9083. smalltalk.Dictionary2);
  9084. smalltalk.addMethod(
  9085. unescape('_copyFrom_to_'),
  9086. smalltalk.method({
  9087. selector: unescape('copyFrom%3Ato%3A'),
  9088. category: 'copying',
  9089. fn: function (anIndex, anotherIndex){
  9090. var self=this;
  9091. smalltalk.send(self, "_shouldNotImplement", []);
  9092. return self;},
  9093. args: ["anIndex", "anotherIndex"],
  9094. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20shouldNotImplement'),
  9095. messageSends: ["shouldNotImplement"],
  9096. referencedClasses: []
  9097. }),
  9098. smalltalk.Dictionary2);
  9099. smalltalk.addMethod(
  9100. unescape('_associationsDo_'),
  9101. smalltalk.method({
  9102. selector: unescape('associationsDo%3A'),
  9103. category: 'enumerating',
  9104. fn: function (aBlock){
  9105. var self=this;
  9106. smalltalk.send(smalltalk.send(self, "_associations", []), "_do_", [aBlock]);
  9107. return self;},
  9108. args: ["aBlock"],
  9109. source: unescape('associationsDo%3A%20aBlock%0A%20%20%20%20%09self%20associations%20do%3A%20aBlock'),
  9110. messageSends: ["do:", "associations"],
  9111. referencedClasses: []
  9112. }),
  9113. smalltalk.Dictionary2);
  9114. smalltalk.addMethod(
  9115. unescape('_keysAndValuesDo_'),
  9116. smalltalk.method({
  9117. selector: unescape('keysAndValuesDo%3A'),
  9118. category: 'enumerating',
  9119. fn: function (aBlock){
  9120. var self=this;
  9121. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(aBlock, "_value_value_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  9122. return self;},
  9123. args: ["aBlock"],
  9124. source: unescape('keysAndValuesDo%3A%20aBlock%0A%20%20%20%20%09self%20associationsDo%3A%20%5B%3Aeach%20%7C%0A%20%20%20%20%09%20%20%20%20aBlock%20value%3A%20each%20key%20value%3A%20each%20value%5D'),
  9125. messageSends: ["associationsDo:", "value:value:", "key", "value"],
  9126. referencedClasses: []
  9127. }),
  9128. smalltalk.Dictionary2);
  9129. smalltalk.addMethod(
  9130. unescape('_do_'),
  9131. smalltalk.method({
  9132. selector: unescape('do%3A'),
  9133. category: 'enumerating',
  9134. fn: function (aBlock){
  9135. var self=this;
  9136. smalltalk.send(smalltalk.send(self, "_values", []), "_do_", [aBlock]);
  9137. return self;},
  9138. args: ["aBlock"],
  9139. source: unescape('do%3A%20aBlock%0A%20%20%20%20%09self%20values%20do%3A%20aBlock'),
  9140. messageSends: ["do:", "values"],
  9141. referencedClasses: []
  9142. }),
  9143. smalltalk.Dictionary2);
  9144. smalltalk.addMethod(
  9145. unescape('_select_'),
  9146. smalltalk.method({
  9147. selector: unescape('select%3A'),
  9148. category: 'enumerating',
  9149. fn: function (aBlock){
  9150. var self=this;
  9151. var newDict=nil;
  9152. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  9153. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return ((($receiver = smalltalk.send(aBlock, "_value_", [value])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(newDict, "_at_put_", [key, value]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(newDict, "_at_put_", [key, value]);})]));})]);
  9154. return newDict;
  9155. return self;},
  9156. args: ["aBlock"],
  9157. source: unescape('select%3A%20aBlock%0A%20%20%20%20%09%7C%20newDict%20%7C%0A%20%20%20%20%09newDict%20%3A%3D%20self%20class%20new.%0A%20%20%20%20%09self%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%20%20%20%20%09%20%20%20%20%28aBlock%20value%3A%20value%29%20ifTrue%3A%20%5BnewDict%20at%3A%20key%20put%3A%20value%5D%5D.%0A%20%20%20%20%09%5EnewDict'),
  9158. messageSends: ["new", "class", "keysAndValuesDo:", "ifTrue:", "value:", "at:put:"],
  9159. referencedClasses: []
  9160. }),
  9161. smalltalk.Dictionary2);
  9162. smalltalk.addMethod(
  9163. unescape('_collect_'),
  9164. smalltalk.method({
  9165. selector: unescape('collect%3A'),
  9166. category: 'enumerating',
  9167. fn: function (aBlock){
  9168. var self=this;
  9169. var newDict=nil;
  9170. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  9171. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(newDict, "_at_put_", [key, smalltalk.send(aBlock, "_value_", [value])]);})]);
  9172. return newDict;
  9173. return self;},
  9174. args: ["aBlock"],
  9175. source: unescape('collect%3A%20aBlock%0A%20%20%20%20%09%7C%20newDict%20%7C%0A%20%20%20%20%09newDict%20%3A%3D%20self%20class%20new.%0A%20%20%20%20%09self%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%20%20%20%20%09%20%20%20%20newDict%20at%3A%20key%20put%3A%20%28aBlock%20value%3A%20value%29%5D.%0A%20%20%20%20%09%5EnewDict'),
  9176. messageSends: ["new", "class", "keysAndValuesDo:", "at:put:", "value:"],
  9177. referencedClasses: []
  9178. }),
  9179. smalltalk.Dictionary2);
  9180. smalltalk.addMethod(
  9181. unescape('_detect_ifNone_'),
  9182. smalltalk.method({
  9183. selector: unescape('detect%3AifNone%3A'),
  9184. category: 'enumerating',
  9185. fn: function (aBlock, anotherBlock){
  9186. var self=this;
  9187. return smalltalk.send(smalltalk.send(self, "_values", []), "_detect_ifNone_", [aBlock, anotherBlock]);
  9188. return self;},
  9189. args: ["aBlock", "anotherBlock"],
  9190. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eself%20values%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  9191. messageSends: ["detect:ifNone:", "values"],
  9192. referencedClasses: []
  9193. }),
  9194. smalltalk.Dictionary2);
  9195. smalltalk.addMethod(
  9196. unescape('_includes_'),
  9197. smalltalk.method({
  9198. selector: unescape('includes%3A'),
  9199. category: 'enumerating',
  9200. fn: function (anObject){
  9201. var self=this;
  9202. return smalltalk.send(smalltalk.send(self, "_values", []), "_includes_", [anObject]);
  9203. return self;},
  9204. args: ["anObject"],
  9205. source: unescape('includes%3A%20anObject%0A%09%5Eself%20values%20includes%3A%20anObject'),
  9206. messageSends: ["includes:", "values"],
  9207. referencedClasses: []
  9208. }),
  9209. smalltalk.Dictionary2);
  9210. smalltalk.addMethod(
  9211. unescape('_remove_'),
  9212. smalltalk.method({
  9213. selector: unescape('remove%3A'),
  9214. category: 'adding/removing',
  9215. fn: function (aKey){
  9216. var self=this;
  9217. smalltalk.send(self, "_removeKey_", [aKey]);
  9218. return self;},
  9219. args: ["aKey"],
  9220. source: unescape('remove%3A%20aKey%0A%20%20%20%20self%20removeKey%3A%20aKey'),
  9221. messageSends: ["removeKey:"],
  9222. referencedClasses: []
  9223. }),
  9224. smalltalk.Dictionary2);
  9225. smalltalk.addMethod(
  9226. unescape('_removeKey_'),
  9227. smalltalk.method({
  9228. selector: unescape('removeKey%3A'),
  9229. category: 'adding/removing',
  9230. fn: function (aKey){
  9231. var self=this;
  9232. smalltalk.send(self['@keys'], "_remove_", [aKey]);
  9233. return self;},
  9234. args: ["aKey"],
  9235. source: unescape('removeKey%3A%20aKey%0A%20%20%20%20keys%20remove%3A%20aKey'),
  9236. messageSends: ["remove:"],
  9237. referencedClasses: []
  9238. }),
  9239. smalltalk.Dictionary2);
  9240. smalltalk.addMethod(
  9241. unescape('_at_'),
  9242. smalltalk.method({
  9243. selector: unescape('at%3A'),
  9244. category: 'accessing',
  9245. fn: function (aKey){
  9246. var self=this;
  9247. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  9248. return self;},
  9249. args: ["aKey"],
  9250. source: unescape('at%3A%20aKey%0A%09%5Eself%20at%3A%20aKey%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  9251. messageSends: ["at:ifAbsent:", "errorNotFound"],
  9252. referencedClasses: []
  9253. }),
  9254. smalltalk.Dictionary2);
  9255. smalltalk.addMethod(
  9256. unescape('_asJSONObject'),
  9257. smalltalk.method({
  9258. selector: unescape('asJSONObject'),
  9259. category: 'converting',
  9260. fn: function (){
  9261. var self=this;
  9262. var object=nil;
  9263. object=smalltalk.send((smalltalk.Object || Object), "_new", []);
  9264. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(object, "_basicAt_put_", [key, smalltalk.send(value, "_asJSONObject", [])]);})]);
  9265. return object;
  9266. return self;},
  9267. args: [],
  9268. source: unescape('asJSONObject%0A%09%7C%20object%20%7C%0A%09object%20%3A%3D%20Object%20new.%0A%09self%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09object%20basicAt%3A%20key%20put%3A%20value%20asJSONObject%5D.%0A%09%5Eobject'),
  9269. messageSends: ["new", "keysAndValuesDo:", "basicAt:put:", "asJSONObject"],
  9270. referencedClasses: ["Object"]
  9271. }),
  9272. smalltalk.Dictionary2);
  9273. smalltalk.addMethod(
  9274. unescape('_printString'),
  9275. smalltalk.method({
  9276. selector: unescape('printString'),
  9277. category: 'printing',
  9278. fn: function (){
  9279. var self=this;
  9280. return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(aStream){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_printString", [], smalltalk.Dictionary)]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%28")]);})(aStream);smalltalk.send(smalltalk.send(self, "_associations", []), "_do_separatedBy_", [(function(anAssociation){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(anAssociation, "_key", []), "_printString", [])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%20-%3E%20")]);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(anAssociation, "_value", []), "_printString", [])]);})(aStream);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [unescape("%20%2C%20")]);})]);return smalltalk.send(aStream, "_nextPutAll_", [unescape("%29")]);})]);
  9281. return self;},
  9282. args: [],
  9283. source: unescape('printString%0A%09%5E%20String%20streamContents%3A%20%5B%3AaStream%7C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09aStream%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09nextPutAll%3A%20super%20printString%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09nextPutAll%3A%20%27%28%27.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09self%20associations%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09do%3A%20%5B%3AanAssociation%7C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09aStream%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09nextPutAll%3A%20anAssociation%20key%20printString%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09nextPutAll%3A%20%27%20-%3E%20%27%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09nextPutAll%3A%20anAssociation%20value%20printString%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09separatedBy%3A%20%5BaStream%20nextPutAll%3A%20%27%20%2C%20%27%5D.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09aStream%20nextPutAll%3A%20%27%29%27.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5D'),
  9284. messageSends: ["streamContents:", "nextPutAll:", "printString", "do:separatedBy:", "associations", "key", "value"],
  9285. referencedClasses: ["String"]
  9286. }),
  9287. smalltalk.Dictionary2);
  9288. smalltalk.addMethod(
  9289. unescape('_storeOn_'),
  9290. smalltalk.method({
  9291. selector: unescape('storeOn%3A'),
  9292. category: 'printing',
  9293. fn: function (aStream){
  9294. var self=this;
  9295. smalltalk.send(aStream, "_nextPutAll_", [unescape("%23%7B")]);
  9296. smalltalk.send(smalltalk.send(self, "_associations", []), "_do_separatedBy_", [(function(each){return smalltalk.send(each, "_storeOn_", [aStream]);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [". "]);})]);
  9297. smalltalk.send(aStream, "_nextPutAll_", [unescape("%7D")]);
  9298. return self;},
  9299. args: ["aStream"],
  9300. source: unescape('storeOn%3A%20aStream%0A%09aStream%20nextPutAll%3A%20%27%23%7B%27.%0A%09self%20associations%0A%09%09do%3A%20%5B%3Aeach%20%7C%20each%20storeOn%3A%20aStream%5D%0A%09%09separatedBy%3A%20%5B%20aStream%20nextPutAll%3A%20%27.%20%27%5D.%0A%09aStream%20nextPutAll%3A%20%27%7D%27'),
  9301. messageSends: ["nextPutAll:", "do:separatedBy:", "associations", "storeOn:"],
  9302. referencedClasses: []
  9303. }),
  9304. smalltalk.Dictionary2);