1
0

Kernel.js 300 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952
  1. smalltalk.addClass('Object', smalltalk.nil, [], 'Kernel');
  2. smalltalk.addMethod(
  3. unescape('__eq'),
  4. smalltalk.method({
  5. selector: unescape('%3D'),
  6. category: 'comparing',
  7. fn: function (anObject){
  8. var self=this;
  9. return smalltalk.send(self, "__eq_eq", [anObject]);
  10. return self;},
  11. args: ["anObject"],
  12. source: unescape('%3D%20anObject%0A%09%5Eself%20%3D%3D%20anObject'),
  13. messageSends: [unescape("%3D%3D")],
  14. referencedClasses: []
  15. }),
  16. smalltalk.Object);
  17. smalltalk.addMethod(
  18. unescape('_%7E_eq'),
  19. smalltalk.method({
  20. selector: unescape('%7E%3D'),
  21. category: 'comparing',
  22. fn: function (anObject){
  23. var self=this;
  24. return smalltalk.send(smalltalk.send(self, "__eq", [anObject]), "__eq", [false]);
  25. return self;},
  26. args: ["anObject"],
  27. source: unescape('%7E%3D%20anObject%0A%09%5E%28self%20%3D%20anObject%29%20%3D%20false'),
  28. messageSends: [unescape("%3D")],
  29. referencedClasses: []
  30. }),
  31. smalltalk.Object);
  32. smalltalk.addMethod(
  33. unescape('_initialize'),
  34. smalltalk.method({
  35. selector: unescape('initialize'),
  36. category: 'initialization',
  37. fn: function (){
  38. var self=this;
  39. return self;},
  40. args: [],
  41. source: unescape('initialize'),
  42. messageSends: [],
  43. referencedClasses: []
  44. }),
  45. smalltalk.Object);
  46. smalltalk.addMethod(
  47. unescape('_yourself'),
  48. smalltalk.method({
  49. selector: unescape('yourself'),
  50. category: 'accessing',
  51. fn: function (){
  52. var self=this;
  53. return self;
  54. return self;},
  55. args: [],
  56. source: unescape('yourself%0A%09%5Eself'),
  57. messageSends: [],
  58. referencedClasses: []
  59. }),
  60. smalltalk.Object);
  61. smalltalk.addMethod(
  62. unescape('_class'),
  63. smalltalk.method({
  64. selector: unescape('class'),
  65. category: 'accessing',
  66. fn: function (){
  67. var self=this;
  68. return self.klass;
  69. return self;},
  70. args: [],
  71. source: unescape('class%0A%09%3Creturn%20self.klass%3E'),
  72. messageSends: [],
  73. referencedClasses: []
  74. }),
  75. smalltalk.Object);
  76. smalltalk.addMethod(
  77. unescape('_size'),
  78. smalltalk.method({
  79. selector: unescape('size'),
  80. category: 'accessing',
  81. fn: function (){
  82. var self=this;
  83. smalltalk.send(self, "_error_", ["Object not indexable"]);
  84. return self;},
  85. args: [],
  86. source: unescape('size%0A%09self%20error%3A%20%27Object%20not%20indexable%27'),
  87. messageSends: ["error:"],
  88. referencedClasses: []
  89. }),
  90. smalltalk.Object);
  91. smalltalk.addMethod(
  92. unescape('_copy'),
  93. smalltalk.method({
  94. selector: unescape('copy'),
  95. category: 'copying',
  96. fn: function (){
  97. var self=this;
  98. return smalltalk.send(smalltalk.send(self, "_shallowCopy", []), "_postCopy", []);
  99. return self;},
  100. args: [],
  101. source: unescape('copy%0A%09%5Eself%20shallowCopy%20postCopy'),
  102. messageSends: ["postCopy", "shallowCopy"],
  103. referencedClasses: []
  104. }),
  105. smalltalk.Object);
  106. smalltalk.addMethod(
  107. unescape('_shallowCopy'),
  108. smalltalk.method({
  109. selector: unescape('shallowCopy'),
  110. category: 'copying',
  111. fn: function (){
  112. var self=this;
  113. var copy = self.klass._new();
  114. for(var i in self) {
  115. if(/^@.+/.test(i)) {
  116. copy[i] = self[i];
  117. }
  118. }
  119. return copy;
  120. ;
  121. return self;},
  122. args: [],
  123. 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'),
  124. messageSends: [],
  125. referencedClasses: []
  126. }),
  127. smalltalk.Object);
  128. smalltalk.addMethod(
  129. unescape('_deepCopy'),
  130. smalltalk.method({
  131. selector: unescape('deepCopy'),
  132. category: 'copying',
  133. fn: function (){
  134. var self=this;
  135. var copy = self.klass._new();
  136. for(var i in self) {
  137. if(/^@.+/.test(i)) {
  138. copy[i] = self[i]._deepCopy();
  139. }
  140. }
  141. return copy;
  142. ;
  143. return self;},
  144. args: [],
  145. 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'),
  146. messageSends: [],
  147. referencedClasses: []
  148. }),
  149. smalltalk.Object);
  150. smalltalk.addMethod(
  151. unescape('_postCopy'),
  152. smalltalk.method({
  153. selector: unescape('postCopy'),
  154. category: 'copying',
  155. fn: function (){
  156. var self=this;
  157. return self;},
  158. args: [],
  159. source: unescape('postCopy'),
  160. messageSends: [],
  161. referencedClasses: []
  162. }),
  163. smalltalk.Object);
  164. smalltalk.addMethod(
  165. unescape('__minus_gt'),
  166. smalltalk.method({
  167. selector: unescape('-%3E'),
  168. category: 'converting',
  169. fn: function (anObject){
  170. var self=this;
  171. return smalltalk.send((smalltalk.Association || Association), "_key_value_", [self, anObject]);
  172. return self;},
  173. args: ["anObject"],
  174. source: unescape('-%3E%20anObject%0A%09%5EAssociation%20key%3A%20self%20value%3A%20anObject'),
  175. messageSends: ["key:value:"],
  176. referencedClasses: [smalltalk.nil]
  177. }),
  178. smalltalk.Object);
  179. smalltalk.addMethod(
  180. unescape('_asString'),
  181. smalltalk.method({
  182. selector: unescape('asString'),
  183. category: 'converting',
  184. fn: function (){
  185. var self=this;
  186. return smalltalk.send(self, "_printString", []);
  187. return self;},
  188. args: [],
  189. source: unescape('asString%0A%09%5Eself%20printString'),
  190. messageSends: ["printString"],
  191. referencedClasses: []
  192. }),
  193. smalltalk.Object);
  194. smalltalk.addMethod(
  195. unescape('_asJavascript'),
  196. smalltalk.method({
  197. selector: unescape('asJavascript'),
  198. category: 'converting',
  199. fn: function (){
  200. var self=this;
  201. return smalltalk.send(self, "_asString", []);
  202. return self;},
  203. args: [],
  204. source: unescape('asJavascript%0A%09%5Eself%20asString'),
  205. messageSends: ["asString"],
  206. referencedClasses: []
  207. }),
  208. smalltalk.Object);
  209. smalltalk.addMethod(
  210. unescape('_perform_'),
  211. smalltalk.method({
  212. selector: unescape('perform%3A'),
  213. category: 'message handling',
  214. fn: function (aSymbol){
  215. var self=this;
  216. return smalltalk.send(self, "_perform_withArguments_", [aSymbol, []]);
  217. return self;},
  218. args: ["aSymbol"],
  219. source: unescape('perform%3A%20aSymbol%0A%09%5Eself%20perform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
  220. messageSends: ["perform:withArguments:"],
  221. referencedClasses: []
  222. }),
  223. smalltalk.Object);
  224. smalltalk.addMethod(
  225. unescape('_perform_withArguments_'),
  226. smalltalk.method({
  227. selector: unescape('perform%3AwithArguments%3A'),
  228. category: 'message handling',
  229. fn: function (aSymbol, aCollection){
  230. var self=this;
  231. return smalltalk.send(self, "_basicPerform_withArguments_", [smalltalk.send(aSymbol, "_asSelector", []), aCollection]);
  232. return self;},
  233. args: ["aSymbol", "aCollection"],
  234. source: unescape('perform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%5Eself%20basicPerform%3A%20aSymbol%20asSelector%20withArguments%3A%20aCollection'),
  235. messageSends: ["basicPerform:withArguments:", "asSelector"],
  236. referencedClasses: []
  237. }),
  238. smalltalk.Object);
  239. smalltalk.addMethod(
  240. unescape('_instVarAt_'),
  241. smalltalk.method({
  242. selector: unescape('instVarAt%3A'),
  243. category: 'accessing',
  244. fn: function (aString){
  245. var self=this;
  246. return self['@'+aString];
  247. return self;},
  248. args: ["aString"],
  249. source: unescape('instVarAt%3A%20aString%0A%09%3Creturn%20self%5B%27@%27+aString%5D%3E'),
  250. messageSends: [],
  251. referencedClasses: []
  252. }),
  253. smalltalk.Object);
  254. smalltalk.addMethod(
  255. unescape('_instVarAt_put_'),
  256. smalltalk.method({
  257. selector: unescape('instVarAt%3Aput%3A'),
  258. category: 'accessing',
  259. fn: function (aString, anObject){
  260. var self=this;
  261. self['@' + aString] = anObject;
  262. return self;},
  263. args: ["aString", "anObject"],
  264. source: unescape('instVarAt%3A%20aString%20put%3A%20anObject%0A%09%3Cself%5B%27@%27%20+%20aString%5D%20%3D%20anObject%3E'),
  265. messageSends: [],
  266. referencedClasses: []
  267. }),
  268. smalltalk.Object);
  269. smalltalk.addMethod(
  270. unescape('_basicAt_'),
  271. smalltalk.method({
  272. selector: unescape('basicAt%3A'),
  273. category: 'accessing',
  274. fn: function (aString){
  275. var self=this;
  276. return self[aString];
  277. return self;},
  278. args: ["aString"],
  279. source: unescape('basicAt%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
  280. messageSends: [],
  281. referencedClasses: []
  282. }),
  283. smalltalk.Object);
  284. smalltalk.addMethod(
  285. unescape('_basicAt_put_'),
  286. smalltalk.method({
  287. selector: unescape('basicAt%3Aput%3A'),
  288. category: 'accessing',
  289. fn: function (aString, anObject){
  290. var self=this;
  291. return self[aString] = anObject;
  292. return self;},
  293. args: ["aString", "anObject"],
  294. source: unescape('basicAt%3A%20aString%20put%3A%20anObject%0A%09%3Creturn%20self%5BaString%5D%20%3D%20anObject%3E'),
  295. messageSends: [],
  296. referencedClasses: []
  297. }),
  298. smalltalk.Object);
  299. smalltalk.addMethod(
  300. unescape('_error_'),
  301. smalltalk.method({
  302. selector: unescape('error%3A'),
  303. category: 'error handling',
  304. fn: function (aString){
  305. var self=this;
  306. smalltalk.send((smalltalk.Error || Error), "_signal_", [aString]);
  307. return self;},
  308. args: ["aString"],
  309. source: unescape('error%3A%20aString%0A%09Error%20signal%3A%20aString'),
  310. messageSends: ["signal:"],
  311. referencedClasses: [smalltalk.Error]
  312. }),
  313. smalltalk.Object);
  314. smalltalk.addMethod(
  315. unescape('_subclassResponsibility'),
  316. smalltalk.method({
  317. selector: unescape('subclassResponsibility'),
  318. category: 'error handling',
  319. fn: function (){
  320. var self=this;
  321. smalltalk.send(self, "_error_", ["This method is a responsibility of a subclass"]);
  322. return self;},
  323. args: [],
  324. source: unescape('subclassResponsibility%0A%09self%20error%3A%20%27This%20method%20is%20a%20responsibility%20of%20a%20subclass%27'),
  325. messageSends: ["error:"],
  326. referencedClasses: []
  327. }),
  328. smalltalk.Object);
  329. smalltalk.addMethod(
  330. unescape('_shouldNotImplement'),
  331. smalltalk.method({
  332. selector: unescape('shouldNotImplement'),
  333. category: 'error handling',
  334. fn: function (){
  335. var self=this;
  336. smalltalk.send(self, "_error_", [smalltalk.send("This method should not be implemented in ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])])]);
  337. return self;},
  338. args: [],
  339. source: unescape('shouldNotImplement%0A%09self%20error%3A%20%27This%20method%20should%20not%20be%20implemented%20in%20%27%2C%20self%20class%20name'),
  340. messageSends: ["error:", unescape("%2C"), "name", "class"],
  341. referencedClasses: []
  342. }),
  343. smalltalk.Object);
  344. smalltalk.addMethod(
  345. unescape('_try_catch_'),
  346. smalltalk.method({
  347. selector: unescape('try%3Acatch%3A'),
  348. category: 'error handling',
  349. fn: function (aBlock, anotherBlock){
  350. var self=this;
  351. try{aBlock()} catch(e) {anotherBlock(e)};
  352. return self;},
  353. args: ["aBlock", "anotherBlock"],
  354. source: unescape('try%3A%20aBlock%20catch%3A%20anotherBlock%0A%09%3Ctry%7BaBlock%28%29%7D%20catch%28e%29%20%7BanotherBlock%28e%29%7D%3E'),
  355. messageSends: [],
  356. referencedClasses: []
  357. }),
  358. smalltalk.Object);
  359. smalltalk.addMethod(
  360. unescape('_printString'),
  361. smalltalk.method({
  362. selector: unescape('printString'),
  363. category: 'printing',
  364. fn: function (){
  365. var self=this;
  366. return smalltalk.send("a ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])]);
  367. return self;},
  368. args: [],
  369. source: unescape('printString%0A%09%5E%27a%20%27%2C%20self%20class%20name'),
  370. messageSends: [unescape("%2C"), "name", "class"],
  371. referencedClasses: []
  372. }),
  373. smalltalk.Object);
  374. smalltalk.addMethod(
  375. unescape('_printNl'),
  376. smalltalk.method({
  377. selector: unescape('printNl'),
  378. category: 'printing',
  379. fn: function (){
  380. var self=this;
  381. console.log(self);
  382. return self;},
  383. args: [],
  384. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  385. messageSends: [],
  386. referencedClasses: []
  387. }),
  388. smalltalk.Object);
  389. smalltalk.addMethod(
  390. unescape('_isKindOf_'),
  391. smalltalk.method({
  392. selector: unescape('isKindOf%3A'),
  393. category: 'testing',
  394. fn: function (aClass){
  395. var self=this;
  396. 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]);})]));
  397. return self;},
  398. args: ["aClass"],
  399. 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'),
  400. messageSends: ["ifTrue:ifFalse:", "isMemberOf:", "inheritsFrom:", "class"],
  401. referencedClasses: []
  402. }),
  403. smalltalk.Object);
  404. smalltalk.addMethod(
  405. unescape('_isMemberOf_'),
  406. smalltalk.method({
  407. selector: unescape('isMemberOf%3A'),
  408. category: 'testing',
  409. fn: function (aClass){
  410. var self=this;
  411. return smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [aClass]);
  412. return self;},
  413. args: ["aClass"],
  414. source: unescape('isMemberOf%3A%20aClass%0A%09%5Eself%20class%20%3D%20aClass'),
  415. messageSends: [unescape("%3D"), "class"],
  416. referencedClasses: []
  417. }),
  418. smalltalk.Object);
  419. smalltalk.addMethod(
  420. unescape('_ifNil_'),
  421. smalltalk.method({
  422. selector: unescape('ifNil%3A'),
  423. category: 'testing',
  424. fn: function (aBlock){
  425. var self=this;
  426. return self;
  427. return self;},
  428. args: ["aBlock"],
  429. source: unescape('ifNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself'),
  430. messageSends: [],
  431. referencedClasses: []
  432. }),
  433. smalltalk.Object);
  434. smalltalk.addMethod(
  435. unescape('_ifNil_ifNotNil_'),
  436. smalltalk.method({
  437. selector: unescape('ifNil%3AifNotNil%3A'),
  438. category: 'testing',
  439. fn: function (aBlock, anotherBlock){
  440. var self=this;
  441. return smalltalk.send(anotherBlock, "_value", []);
  442. return self;},
  443. args: ["aBlock", "anotherBlock"],
  444. source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EanotherBlock%20value'),
  445. messageSends: ["value"],
  446. referencedClasses: []
  447. }),
  448. smalltalk.Object);
  449. smalltalk.addMethod(
  450. unescape('_ifNotNil_'),
  451. smalltalk.method({
  452. selector: unescape('ifNotNil%3A'),
  453. category: 'testing',
  454. fn: function (aBlock){
  455. var self=this;
  456. return smalltalk.send(aBlock, "_value", []);
  457. return self;},
  458. args: ["aBlock"],
  459. source: unescape('ifNotNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  460. messageSends: ["value"],
  461. referencedClasses: []
  462. }),
  463. smalltalk.Object);
  464. smalltalk.addMethod(
  465. unescape('_ifNotNil_ifNil_'),
  466. smalltalk.method({
  467. selector: unescape('ifNotNil%3AifNil%3A'),
  468. category: 'testing',
  469. fn: function (aBlock, anotherBlock){
  470. var self=this;
  471. return smalltalk.send(aBlock, "_value", []);
  472. return self;},
  473. args: ["aBlock", "anotherBlock"],
  474. source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  475. messageSends: ["value"],
  476. referencedClasses: []
  477. }),
  478. smalltalk.Object);
  479. smalltalk.addMethod(
  480. unescape('_isNil'),
  481. smalltalk.method({
  482. selector: unescape('isNil'),
  483. category: 'testing',
  484. fn: function (){
  485. var self=this;
  486. return false;
  487. return self;},
  488. args: [],
  489. source: unescape('isNil%0A%09%5Efalse'),
  490. messageSends: [],
  491. referencedClasses: []
  492. }),
  493. smalltalk.Object);
  494. smalltalk.addMethod(
  495. unescape('_notNil'),
  496. smalltalk.method({
  497. selector: unescape('notNil'),
  498. category: 'testing',
  499. fn: function (){
  500. var self=this;
  501. return smalltalk.send(smalltalk.send(self, "_isNil", []), "_not", []);
  502. return self;},
  503. args: [],
  504. source: unescape('notNil%0A%09%5Eself%20isNil%20not'),
  505. messageSends: ["not", "isNil"],
  506. referencedClasses: []
  507. }),
  508. smalltalk.Object);
  509. smalltalk.addMethod(
  510. unescape('_isClass'),
  511. smalltalk.method({
  512. selector: unescape('isClass'),
  513. category: 'testing',
  514. fn: function (){
  515. var self=this;
  516. return false;
  517. return self;},
  518. args: [],
  519. source: unescape('isClass%0A%09%5Efalse'),
  520. messageSends: [],
  521. referencedClasses: []
  522. }),
  523. smalltalk.Object);
  524. smalltalk.addMethod(
  525. unescape('_isMetaclass'),
  526. smalltalk.method({
  527. selector: unescape('isMetaclass'),
  528. category: 'testing',
  529. fn: function (){
  530. var self=this;
  531. return false;
  532. return self;},
  533. args: [],
  534. source: unescape('isMetaclass%0A%09%5Efalse'),
  535. messageSends: [],
  536. referencedClasses: []
  537. }),
  538. smalltalk.Object);
  539. smalltalk.addMethod(
  540. unescape('_isNumber'),
  541. smalltalk.method({
  542. selector: unescape('isNumber'),
  543. category: 'testing',
  544. fn: function (){
  545. var self=this;
  546. return false;
  547. return self;},
  548. args: [],
  549. source: unescape('isNumber%0A%09%5Efalse'),
  550. messageSends: [],
  551. referencedClasses: []
  552. }),
  553. smalltalk.Object);
  554. smalltalk.addMethod(
  555. unescape('_isString'),
  556. smalltalk.method({
  557. selector: unescape('isString'),
  558. category: 'testing',
  559. fn: function (){
  560. var self=this;
  561. return false;
  562. return self;},
  563. args: [],
  564. source: unescape('isString%0A%09%5Efalse'),
  565. messageSends: [],
  566. referencedClasses: []
  567. }),
  568. smalltalk.Object);
  569. smalltalk.addMethod(
  570. unescape('_isParseFailure'),
  571. smalltalk.method({
  572. selector: unescape('isParseFailure'),
  573. category: 'testing',
  574. fn: function (){
  575. var self=this;
  576. return false;
  577. return self;},
  578. args: [],
  579. source: unescape('isParseFailure%0A%09%5Efalse'),
  580. messageSends: [],
  581. referencedClasses: []
  582. }),
  583. smalltalk.Object);
  584. smalltalk.addMethod(
  585. unescape('_basicPerform_'),
  586. smalltalk.method({
  587. selector: unescape('basicPerform%3A'),
  588. category: 'message handling',
  589. fn: function (aSymbol){
  590. var self=this;
  591. return smalltalk.send(self, "_basicPerform_withArguments_", [aSymbol, []]);
  592. return self;},
  593. args: ["aSymbol"],
  594. source: unescape('basicPerform%3A%20aSymbol%20%0A%09%5Eself%20basicPerform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
  595. messageSends: ["basicPerform:withArguments:"],
  596. referencedClasses: []
  597. }),
  598. smalltalk.Object);
  599. smalltalk.addMethod(
  600. unescape('_basicPerform_withArguments_'),
  601. smalltalk.method({
  602. selector: unescape('basicPerform%3AwithArguments%3A'),
  603. category: 'message handling',
  604. fn: function (aSymbol, aCollection){
  605. var self=this;
  606. return self[aSymbol].apply(self, aCollection);;
  607. return self;},
  608. args: ["aSymbol", "aCollection"],
  609. source: unescape('basicPerform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%3Creturn%20self%5BaSymbol%5D.apply%28self%2C%20aCollection%29%3B%3E'),
  610. messageSends: [],
  611. referencedClasses: []
  612. }),
  613. smalltalk.Object);
  614. smalltalk.addMethod(
  615. unescape('_basicDelete_'),
  616. smalltalk.method({
  617. selector: unescape('basicDelete%3A'),
  618. category: 'accessing',
  619. fn: function (aString){
  620. var self=this;
  621. delete self[aString];
  622. return self;},
  623. args: ["aString"],
  624. source: unescape('basicDelete%3A%20aString%0A%20%20%20%20%3Cdelete%20self%5BaString%5D%3E'),
  625. messageSends: [],
  626. referencedClasses: []
  627. }),
  628. smalltalk.Object);
  629. smalltalk.addMethod(
  630. unescape('_doesNotUnderstand_'),
  631. smalltalk.method({
  632. selector: unescape('doesNotUnderstand%3A'),
  633. category: 'error handling',
  634. fn: function (aMessage){
  635. var self=this;
  636. (function($rec){smalltalk.send($rec, "_receiver_", [self]);smalltalk.send($rec, "_message_", [aMessage]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send((smalltalk.MessageNotUnderstood || MessageNotUnderstood), "_new", []));
  637. return self;},
  638. args: ["aMessage"],
  639. source: unescape('doesNotUnderstand%3A%20aMessage%0A%09MessageNotUnderstood%20new%0A%09%09receiver%3A%20self%3B%0A%09%09message%3A%20aMessage%3B%0A%09%09signal'),
  640. messageSends: ["receiver:", "message:", "signal", "new"],
  641. referencedClasses: [smalltalk.nil]
  642. }),
  643. smalltalk.Object);
  644. smalltalk.addMethod(
  645. unescape('_asJSON'),
  646. smalltalk.method({
  647. selector: unescape('asJSON'),
  648. category: 'converting',
  649. fn: function (){
  650. var self=this;
  651. return JSON.stringify(self._asJSONObject());
  652. return self;},
  653. args: [],
  654. source: unescape('asJSON%0A%09%3Creturn%20JSON.stringify%28self._asJSONObject%28%29%29%3E'),
  655. messageSends: [],
  656. referencedClasses: []
  657. }),
  658. smalltalk.Object);
  659. smalltalk.addMethod(
  660. unescape('_asJSONObject'),
  661. smalltalk.method({
  662. selector: unescape('asJSONObject'),
  663. category: 'converting',
  664. fn: function (){
  665. var self=this;
  666. var object=nil;
  667. object=smalltalk.send((smalltalk.Object || Object), "_new", []);
  668. 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", [])]);})]);
  669. return object;
  670. return self;},
  671. args: [],
  672. 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'),
  673. messageSends: ["new", "do:", "instanceVariableNames", "class", "basicAt:put:", "asJSONObject", "instVarAt:"],
  674. referencedClasses: [smalltalk.Object]
  675. }),
  676. smalltalk.Object);
  677. smalltalk.addMethod(
  678. unescape('_halt'),
  679. smalltalk.method({
  680. selector: unescape('halt'),
  681. category: 'error handling',
  682. fn: function (){
  683. var self=this;
  684. smalltalk.send(self, "_error_", ["Halt encountered"]);
  685. return self;},
  686. args: [],
  687. source: unescape('halt%0A%09self%20error%3A%20%27Halt%20encountered%27'),
  688. messageSends: ["error:"],
  689. referencedClasses: []
  690. }),
  691. smalltalk.Object);
  692. smalltalk.addMethod(
  693. unescape('_log_block_'),
  694. smalltalk.method({
  695. selector: unescape('log%3Ablock%3A'),
  696. category: 'printing',
  697. fn: function (aString, aBlock){
  698. var self=this;
  699. var result=nil;
  700. 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", [])])]);
  701. return result;
  702. return self;},
  703. args: ["aString", "aBlock"],
  704. 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'),
  705. messageSends: ["log:", unescape("%2C"), "printString", "millisecondsToRun:", "value"],
  706. referencedClasses: [smalltalk.Date]
  707. }),
  708. smalltalk.Object);
  709. smalltalk.addMethod(
  710. unescape('__eq_eq'),
  711. smalltalk.method({
  712. selector: unescape('%3D%3D'),
  713. category: 'comparing',
  714. fn: function (anObject){
  715. var self=this;
  716. return self === anObject;
  717. return self;},
  718. args: ["anObject"],
  719. source: unescape('%3D%3D%20anObject%0A%09%3Creturn%20self%20%3D%3D%3D%20anObject%3E'),
  720. messageSends: [],
  721. referencedClasses: []
  722. }),
  723. smalltalk.Object);
  724. smalltalk.addMethod(
  725. unescape('_%7E%7E'),
  726. smalltalk.method({
  727. selector: unescape('%7E%7E'),
  728. category: 'comparing',
  729. fn: function (anObject){
  730. var self=this;
  731. return smalltalk.send(smalltalk.send(self, "__eq_eq", [anObject]), "__eq", [false]);
  732. return self;},
  733. args: ["anObject"],
  734. source: unescape('%7E%7E%20anObject%0A%09%5E%28self%20%3D%3D%20anObject%29%20%3D%20false'),
  735. messageSends: [unescape("%3D"), unescape("%3D%3D")],
  736. referencedClasses: []
  737. }),
  738. smalltalk.Object);
  739. smalltalk.addMethod(
  740. unescape('_deprecatedAPI'),
  741. smalltalk.method({
  742. selector: unescape('deprecatedAPI'),
  743. category: 'error handling',
  744. fn: function (){
  745. var self=this;
  746. smalltalk.send((typeof console == 'undefined' ? nil : console), "_warn_", [smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.getThisContext()), "_home", []), "_asString", []), "__comma", [unescape("%20is%20deprecated%21")])]);
  747. return self;},
  748. args: [],
  749. 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'),
  750. messageSends: ["warn:", unescape("%2C"), "asString", "home"],
  751. referencedClasses: []
  752. }),
  753. smalltalk.Object);
  754. smalltalk.addMethod(
  755. unescape('_initialize'),
  756. smalltalk.method({
  757. selector: unescape('initialize'),
  758. category: 'initialization',
  759. fn: function (){
  760. var self=this;
  761. return self;},
  762. args: [],
  763. source: unescape('initialize%0A%09%22no%20op%22'),
  764. messageSends: [],
  765. referencedClasses: []
  766. }),
  767. smalltalk.Object.klass);
  768. smalltalk.addClass('Smalltalk', smalltalk.Object, [], 'Kernel');
  769. smalltalk.addMethod(
  770. unescape('_classes'),
  771. smalltalk.method({
  772. selector: unescape('classes'),
  773. category: 'accessing',
  774. fn: function (){
  775. var self=this;
  776. return self.classes();
  777. return self;},
  778. args: [],
  779. source: unescape('classes%0A%09%3Creturn%20self.classes%28%29%3E'),
  780. messageSends: [],
  781. referencedClasses: []
  782. }),
  783. smalltalk.Smalltalk);
  784. smalltalk.addMethod(
  785. unescape('_readJSON_'),
  786. smalltalk.method({
  787. selector: unescape('readJSON%3A'),
  788. category: 'accessing',
  789. fn: function (anObject){
  790. var self=this;
  791. return self.readJSObject(anObject);
  792. return self;},
  793. args: ["anObject"],
  794. source: unescape('readJSON%3A%20anObject%0A%09%3Creturn%20self.readJSObject%28anObject%29%3E'),
  795. messageSends: [],
  796. referencedClasses: []
  797. }),
  798. smalltalk.Smalltalk);
  799. smalltalk.addMethod(
  800. unescape('_at_'),
  801. smalltalk.method({
  802. selector: unescape('at%3A'),
  803. category: 'accessing',
  804. fn: function (aString){
  805. var self=this;
  806. return self[aString];
  807. return self;},
  808. args: ["aString"],
  809. source: unescape('at%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
  810. messageSends: [],
  811. referencedClasses: []
  812. }),
  813. smalltalk.Smalltalk);
  814. smalltalk.addMethod(
  815. unescape('_removeClass_'),
  816. smalltalk.method({
  817. selector: unescape('removeClass%3A'),
  818. category: 'classes',
  819. fn: function (aClass){
  820. var self=this;
  821. ((($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")])]);})]));
  822. smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(aClass, "_removeCompiledMethod_", [each]);})]);
  823. smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(aClass, "_class", []), "_removeCompiledMethod_", [each]);})]);
  824. smalltalk.send(self, "_basicDelete_", [smalltalk.send(aClass, "_name", [])]);
  825. return self;},
  826. args: ["aClass"],
  827. 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'),
  828. messageSends: ["ifTrue:", "isMetaclass", "error:", unescape("%2C"), "asString", "do:", "values", "methodDictionary", "removeCompiledMethod:", "class", "basicDelete:", "name"],
  829. referencedClasses: []
  830. }),
  831. smalltalk.Smalltalk);
  832. smalltalk.addMethod(
  833. unescape('_basicParse_'),
  834. smalltalk.method({
  835. selector: unescape('basicParse%3A'),
  836. category: 'accessing',
  837. fn: function (aString){
  838. var self=this;
  839. return smalltalk.parser.parse(aString);
  840. return self;},
  841. args: ["aString"],
  842. source: unescape('basicParse%3A%20aString%0A%09%3Creturn%20smalltalk.parser.parse%28aString%29%3E'),
  843. messageSends: [],
  844. referencedClasses: []
  845. }),
  846. smalltalk.Smalltalk);
  847. smalltalk.addMethod(
  848. unescape('_parse_'),
  849. smalltalk.method({
  850. selector: unescape('parse%3A'),
  851. category: 'accessing',
  852. fn: function (aString){
  853. var self=this;
  854. var result=nil;
  855. 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", []);})]);
  856. return result;
  857. return self;},
  858. args: ["aString"],
  859. 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'),
  860. messageSends: ["try:catch:", "basicParse:", "signal", "parseError:parsing:"],
  861. referencedClasses: []
  862. }),
  863. smalltalk.Smalltalk);
  864. smalltalk.addMethod(
  865. unescape('_parseError_parsing_'),
  866. smalltalk.method({
  867. selector: unescape('parseError%3Aparsing%3A'),
  868. category: 'accessing',
  869. fn: function (anException, aString){
  870. var self=this;
  871. var row=nil;
  872. var col=nil;
  873. var message=nil;
  874. var lines=nil;
  875. var badLine=nil;
  876. var code=nil;
  877. row = anException.line;
  878. col = anException.column;
  879. message = anException.message;;
  880. lines=smalltalk.send(aString, "_lines", []);
  881. badLine=smalltalk.send(lines, "_at_", [row]);
  882. 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", [])])]);
  883. smalltalk.send(lines, "_at_put_", [row, badLine]);
  884. 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", [])])]);})]);})]);
  885. 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])]);
  886. return self;},
  887. args: ["anException", "aString"],
  888. 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'),
  889. messageSends: ["lines", "at:", unescape("%2C"), "copyFrom:to:", unescape("-"), "size", "at:put:", "streamContents:", "withIndexDo:", "nextPutAll:", "asString", "lf", "messageText:", "new"],
  890. referencedClasses: [smalltalk.String,smalltalk.Error]
  891. }),
  892. smalltalk.Smalltalk);
  893. smalltalk.addMethod(
  894. unescape('_packages'),
  895. smalltalk.method({
  896. selector: unescape('packages'),
  897. category: 'packages',
  898. fn: function (){
  899. var self=this;
  900. return self.packages.all();
  901. return self;},
  902. args: [],
  903. source: unescape('packages%0A%09%22Return%20all%20Package%20instances%20in%20the%20system.%22%0A%0A%09%3Creturn%20self.packages.all%28%29%3E'),
  904. messageSends: [],
  905. referencedClasses: []
  906. }),
  907. smalltalk.Smalltalk);
  908. smalltalk.addMethod(
  909. unescape('_packageAt_'),
  910. smalltalk.method({
  911. selector: unescape('packageAt%3A'),
  912. category: 'packages',
  913. fn: function (packageName){
  914. var self=this;
  915. return self.packages[packageName];
  916. return self;},
  917. args: ["packageName"],
  918. source: unescape('packageAt%3A%20packageName%0A%20%20%20%20%20%20%20%3Creturn%20self.packages%5BpackageName%5D%3E'),
  919. messageSends: [],
  920. referencedClasses: []
  921. }),
  922. smalltalk.Smalltalk);
  923. smalltalk.addMethod(
  924. unescape('_packageAt_ifAbsent_'),
  925. smalltalk.method({
  926. selector: unescape('packageAt%3AifAbsent%3A'),
  927. category: 'packages',
  928. fn: function (packageName, aBlock){
  929. var self=this;
  930. return smalltalk.send(smalltalk.send(self, "_packageAt_", [packageName]), "_ifNil_", [aBlock]);
  931. return self;},
  932. args: ["packageName", "aBlock"],
  933. 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'),
  934. messageSends: ["ifNil:", "packageAt:"],
  935. referencedClasses: []
  936. }),
  937. smalltalk.Smalltalk);
  938. smalltalk.addMethod(
  939. unescape('_createPackage_'),
  940. smalltalk.method({
  941. selector: unescape('createPackage%3A'),
  942. category: 'private',
  943. fn: function (packageName){
  944. var self=this;
  945. return smalltalk.addPackage(packageName);
  946. return self;},
  947. args: ["packageName"],
  948. 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%20%3Creturn%20smalltalk.addPackage%28packageName%29%3E'),
  949. messageSends: [],
  950. referencedClasses: []
  951. }),
  952. smalltalk.Smalltalk);
  953. smalltalk.addMethod(
  954. unescape('_deletePackage_'),
  955. smalltalk.method({
  956. selector: unescape('deletePackage%3A'),
  957. category: 'private',
  958. fn: function (packageName){
  959. var self=this;
  960. delete smalltalk.packages[packageName];
  961. return self;},
  962. args: ["packageName"],
  963. 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'),
  964. messageSends: [],
  965. referencedClasses: []
  966. }),
  967. smalltalk.Smalltalk);
  968. smalltalk.addMethod(
  969. unescape('_removePackage_'),
  970. smalltalk.method({
  971. selector: unescape('removePackage%3A'),
  972. category: 'packages',
  973. fn: function (packageName){
  974. var self=this;
  975. var pkg=nil;
  976. pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]);
  977. smalltalk.send(smalltalk.send(pkg, "_classes", []), "_do_", [(function(each){return smalltalk.send(self, "_removeClass_", [each]);})]);
  978. smalltalk.send(self, "_deletePackage_", [packageName]);
  979. return self;},
  980. args: ["packageName"],
  981. 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'),
  982. messageSends: ["packageAt:ifAbsent:", "error:", unescape("%2C"), "do:", "classes", "removeClass:", "deletePackage:"],
  983. referencedClasses: []
  984. }),
  985. smalltalk.Smalltalk);
  986. smalltalk.addMethod(
  987. unescape('_renamePackage_to_'),
  988. smalltalk.method({
  989. selector: unescape('renamePackage%3Ato%3A'),
  990. category: 'packages',
  991. fn: function (packageName, newName){
  992. var self=this;
  993. var pkg=nil;
  994. pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]);
  995. (($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;
  996. smalltalk.packages[newName] = smalltalk.packages[packageName];
  997. smalltalk.send(pkg, "_name_", [newName]);
  998. smalltalk.send(self, "_deletePackage_", [packageName]);
  999. return self;},
  1000. args: ["packageName", "newName"],
  1001. 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.'),
  1002. messageSends: ["packageAt:ifAbsent:", "error:", unescape("%2C"), "ifNotNil:", "packageAt:", "name:", "deletePackage:"],
  1003. referencedClasses: []
  1004. }),
  1005. smalltalk.Smalltalk);
  1006. smalltalk.addMethod(
  1007. unescape('_reservedWords'),
  1008. smalltalk.method({
  1009. selector: unescape('reservedWords'),
  1010. category: 'accessing',
  1011. fn: function (){
  1012. var self=this;
  1013. return self.reservedWords;
  1014. return self;},
  1015. args: [],
  1016. source: unescape('reservedWords%0A%09%22JavaScript%20reserved%20words%22%0A%09%3Creturn%20self.reservedWords%3E'),
  1017. messageSends: [],
  1018. referencedClasses: []
  1019. }),
  1020. smalltalk.Smalltalk);
  1021. smalltalk.Smalltalk.klass.iVarNames = ['current'];
  1022. smalltalk.addMethod(
  1023. unescape('_current'),
  1024. smalltalk.method({
  1025. selector: unescape('current'),
  1026. category: 'accessing',
  1027. fn: function (){
  1028. var self=this;
  1029. return smalltalk;
  1030. return self;},
  1031. args: [],
  1032. source: unescape('current%0A%09%3Creturn%20smalltalk%3E'),
  1033. messageSends: [],
  1034. referencedClasses: []
  1035. }),
  1036. smalltalk.Smalltalk.klass);
  1037. smalltalk.addClass('Package', smalltalk.Object, [], 'Kernel');
  1038. 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.')
  1039. smalltalk.addMethod(
  1040. unescape('_name'),
  1041. smalltalk.method({
  1042. selector: unescape('name'),
  1043. category: 'accessing',
  1044. fn: function (){
  1045. var self=this;
  1046. return self.pkgName || nil;
  1047. return self;},
  1048. args: [],
  1049. source: unescape('name%0A%09%3Creturn%20self.pkgName%20%7C%7C%20nil%3E'),
  1050. messageSends: [],
  1051. referencedClasses: []
  1052. }),
  1053. smalltalk.Package);
  1054. smalltalk.addMethod(
  1055. unescape('_requires'),
  1056. smalltalk.method({
  1057. selector: unescape('requires'),
  1058. category: 'accessing',
  1059. fn: function (){
  1060. var self=this;
  1061. return self.requires || nil;
  1062. return self;},
  1063. args: [],
  1064. source: unescape('requires%0A%09%3Creturn%20self.requires%20%7C%7C%20nil%3E'),
  1065. messageSends: [],
  1066. referencedClasses: []
  1067. }),
  1068. smalltalk.Package);
  1069. smalltalk.addMethod(
  1070. unescape('_name_'),
  1071. smalltalk.method({
  1072. selector: unescape('name%3A'),
  1073. category: 'accessing',
  1074. fn: function (aString){
  1075. var self=this;
  1076. return self.pkgName = aString;
  1077. return self;},
  1078. args: ["aString"],
  1079. source: unescape('name%3A%20aString%0A%09%3Creturn%20self.pkgName%20%3D%20aString%3E'),
  1080. messageSends: [],
  1081. referencedClasses: []
  1082. }),
  1083. smalltalk.Package);
  1084. smalltalk.addMethod(
  1085. unescape('_classes'),
  1086. smalltalk.method({
  1087. selector: unescape('classes'),
  1088. category: 'classes',
  1089. fn: function (){
  1090. var self=this;
  1091. 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]);})]);
  1092. return self;},
  1093. args: [],
  1094. 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'),
  1095. messageSends: ["select:", "classes", "current", unescape("%3D%3D"), "package"],
  1096. referencedClasses: [smalltalk.Smalltalk]
  1097. }),
  1098. smalltalk.Package);
  1099. smalltalk.addMethod(
  1100. unescape('_printString'),
  1101. smalltalk.method({
  1102. selector: unescape('printString'),
  1103. category: 'printing',
  1104. fn: function (){
  1105. var self=this;
  1106. return smalltalk.send(self, "_name", []);
  1107. return self;},
  1108. args: [],
  1109. source: unescape('printString%0A%09%5Eself%20name'),
  1110. messageSends: ["name"],
  1111. referencedClasses: []
  1112. }),
  1113. smalltalk.Package);
  1114. smalltalk.addMethod(
  1115. unescape('_named_'),
  1116. smalltalk.method({
  1117. selector: unescape('named%3A'),
  1118. category: 'not yet classified',
  1119. fn: function (aPackageName){
  1120. var self=this;
  1121. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_", [aPackageName]);
  1122. return self;},
  1123. args: ["aPackageName"],
  1124. source: unescape('named%3A%20aPackageName%0A%0A%09%5ESmalltalk%20current%20packageAt%3A%20aPackageName'),
  1125. messageSends: ["packageAt:", "current"],
  1126. referencedClasses: [smalltalk.Smalltalk]
  1127. }),
  1128. smalltalk.Package.klass);
  1129. smalltalk.addMethod(
  1130. unescape('_named_ifAbsent_'),
  1131. smalltalk.method({
  1132. selector: unescape('named%3AifAbsent%3A'),
  1133. category: 'not yet classified',
  1134. fn: function (aPackageName, aBlock){
  1135. var self=this;
  1136. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_ifAbsent_", [aPackageName, aBlock]);
  1137. return self;},
  1138. args: ["aPackageName", "aBlock"],
  1139. source: unescape('named%3A%20aPackageName%20ifAbsent%3A%20aBlock%0A%0A%09%5ESmalltalk%20current%20packageAt%3A%20aPackageName%20ifAbsent%3A%20aBlock'),
  1140. messageSends: ["packageAt:ifAbsent:", "current"],
  1141. referencedClasses: [smalltalk.Smalltalk]
  1142. }),
  1143. smalltalk.Package.klass);
  1144. smalltalk.addClass('Behavior', smalltalk.Object, [], 'Kernel');
  1145. smalltalk.addMethod(
  1146. unescape('_new'),
  1147. smalltalk.method({
  1148. selector: unescape('new'),
  1149. category: 'instance creation',
  1150. fn: function (){
  1151. var self=this;
  1152. return smalltalk.send(smalltalk.send(self, "_basicNew", []), "_initialize", []);
  1153. return self;},
  1154. args: [],
  1155. source: unescape('new%0A%09%5Eself%20basicNew%20initialize'),
  1156. messageSends: ["initialize", "basicNew"],
  1157. referencedClasses: []
  1158. }),
  1159. smalltalk.Behavior);
  1160. smalltalk.addMethod(
  1161. unescape('_basicNew'),
  1162. smalltalk.method({
  1163. selector: unescape('basicNew'),
  1164. category: 'instance creation',
  1165. fn: function (){
  1166. var self=this;
  1167. return new self.fn();
  1168. return self;},
  1169. args: [],
  1170. source: unescape('basicNew%0A%09%3Creturn%20new%20self.fn%28%29%3E'),
  1171. messageSends: [],
  1172. referencedClasses: []
  1173. }),
  1174. smalltalk.Behavior);
  1175. smalltalk.addMethod(
  1176. unescape('_name'),
  1177. smalltalk.method({
  1178. selector: unescape('name'),
  1179. category: 'accessing',
  1180. fn: function (){
  1181. var self=this;
  1182. return self.className || nil;
  1183. return self;},
  1184. args: [],
  1185. source: unescape('name%0A%09%3Creturn%20self.className%20%7C%7C%20nil%3E'),
  1186. messageSends: [],
  1187. referencedClasses: []
  1188. }),
  1189. smalltalk.Behavior);
  1190. smalltalk.addMethod(
  1191. unescape('_superclass'),
  1192. smalltalk.method({
  1193. selector: unescape('superclass'),
  1194. category: 'accessing',
  1195. fn: function (){
  1196. var self=this;
  1197. return self.superclass || nil;
  1198. return self;},
  1199. args: [],
  1200. source: unescape('superclass%0A%09%3Creturn%20self.superclass%20%7C%7C%20nil%3E'),
  1201. messageSends: [],
  1202. referencedClasses: []
  1203. }),
  1204. smalltalk.Behavior);
  1205. smalltalk.addMethod(
  1206. unescape('_subclasses'),
  1207. smalltalk.method({
  1208. selector: unescape('subclasses'),
  1209. category: 'accessing',
  1210. fn: function (){
  1211. var self=this;
  1212. return smalltalk.subclasses(self);
  1213. return self;},
  1214. args: [],
  1215. source: unescape('subclasses%0A%09%3Creturn%20smalltalk.subclasses%28self%29%3E'),
  1216. messageSends: [],
  1217. referencedClasses: []
  1218. }),
  1219. smalltalk.Behavior);
  1220. smalltalk.addMethod(
  1221. unescape('_allSubclasses'),
  1222. smalltalk.method({
  1223. selector: unescape('allSubclasses'),
  1224. category: 'accessing',
  1225. fn: function (){
  1226. var self=this;
  1227. var result=nil;
  1228. result=smalltalk.send(self, "_subclasses", []);
  1229. smalltalk.send(smalltalk.send(self, "_subclasses", []), "_do_", [(function(each){return smalltalk.send(result, "_addAll_", [smalltalk.send(each, "_allSubclasses", [])]);})]);
  1230. return result;
  1231. return self;},
  1232. args: [],
  1233. 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'),
  1234. messageSends: ["subclasses", "do:", "addAll:", "allSubclasses"],
  1235. referencedClasses: []
  1236. }),
  1237. smalltalk.Behavior);
  1238. smalltalk.addMethod(
  1239. unescape('_withAllSubclasses'),
  1240. smalltalk.method({
  1241. selector: unescape('withAllSubclasses'),
  1242. category: 'accessing',
  1243. fn: function (){
  1244. var self=this;
  1245. return (function($rec){smalltalk.send($rec, "_addAll_", [smalltalk.send(self, "_allSubclasses", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.Array || Array), "_with_", [self]));
  1246. return self;},
  1247. args: [],
  1248. source: unescape('withAllSubclasses%0A%09%5E%28Array%20with%3A%20self%29%20addAll%3A%20self%20allSubclasses%3B%20yourself'),
  1249. messageSends: ["addAll:", "allSubclasses", "yourself", "with:"],
  1250. referencedClasses: [smalltalk.Array]
  1251. }),
  1252. smalltalk.Behavior);
  1253. smalltalk.addMethod(
  1254. unescape('_prototype'),
  1255. smalltalk.method({
  1256. selector: unescape('prototype'),
  1257. category: 'accessing',
  1258. fn: function (){
  1259. var self=this;
  1260. return self.fn.prototype;
  1261. return self;},
  1262. args: [],
  1263. source: unescape('prototype%0A%09%3Creturn%20self.fn.prototype%3E'),
  1264. messageSends: [],
  1265. referencedClasses: []
  1266. }),
  1267. smalltalk.Behavior);
  1268. smalltalk.addMethod(
  1269. unescape('_methodDictionary'),
  1270. smalltalk.method({
  1271. selector: unescape('methodDictionary'),
  1272. category: 'accessing',
  1273. fn: function (){
  1274. var self=this;
  1275. var dict = smalltalk.Dictionary._new();
  1276. var methods = self.fn.prototype.methods;
  1277. for(var i in methods) {
  1278. if(methods[i].selector) {
  1279. dict._at_put_(methods[i].selector, methods[i]);
  1280. }
  1281. };
  1282. return dict;
  1283. return self;},
  1284. args: [],
  1285. 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'),
  1286. messageSends: [],
  1287. referencedClasses: []
  1288. }),
  1289. smalltalk.Behavior);
  1290. smalltalk.addMethod(
  1291. unescape('_methodsFor_'),
  1292. smalltalk.method({
  1293. selector: unescape('methodsFor%3A'),
  1294. category: 'accessing',
  1295. fn: function (aString){
  1296. var self=this;
  1297. return (function($rec){smalltalk.send($rec, "_class_category_", [self, aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.ClassCategoryReader || ClassCategoryReader), "_new", []));
  1298. return self;},
  1299. args: ["aString"],
  1300. 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'),
  1301. messageSends: ["class:category:", "yourself", "new"],
  1302. referencedClasses: [smalltalk.nil]
  1303. }),
  1304. smalltalk.Behavior);
  1305. smalltalk.addMethod(
  1306. unescape('_addCompiledMethod_'),
  1307. smalltalk.method({
  1308. selector: unescape('addCompiledMethod%3A'),
  1309. category: 'accessing',
  1310. fn: function (aMethod){
  1311. var self=this;
  1312. smalltalk.addMethod(aMethod.selector._asSelector(), aMethod, self);
  1313. return self;},
  1314. args: ["aMethod"],
  1315. source: unescape('addCompiledMethod%3A%20aMethod%0A%09%3Csmalltalk.addMethod%28aMethod.selector._asSelector%28%29%2C%20aMethod%2C%20self%29%3E'),
  1316. messageSends: [],
  1317. referencedClasses: []
  1318. }),
  1319. smalltalk.Behavior);
  1320. smalltalk.addMethod(
  1321. unescape('_instanceVariableNames'),
  1322. smalltalk.method({
  1323. selector: unescape('instanceVariableNames'),
  1324. category: 'accessing',
  1325. fn: function (){
  1326. var self=this;
  1327. return self.iVarNames;
  1328. return self;},
  1329. args: [],
  1330. source: unescape('instanceVariableNames%0A%09%3Creturn%20self.iVarNames%3E'),
  1331. messageSends: [],
  1332. referencedClasses: []
  1333. }),
  1334. smalltalk.Behavior);
  1335. smalltalk.addMethod(
  1336. unescape('_comment'),
  1337. smalltalk.method({
  1338. selector: unescape('comment'),
  1339. category: 'accessing',
  1340. fn: function (){
  1341. var self=this;
  1342. return (($receiver = smalltalk.send(self, "_basicAt_", ["comment"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  1343. return self;},
  1344. args: [],
  1345. source: unescape('comment%0A%20%20%20%20%5E%28self%20basicAt%3A%20%27comment%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1346. messageSends: ["ifNil:", "basicAt:"],
  1347. referencedClasses: []
  1348. }),
  1349. smalltalk.Behavior);
  1350. smalltalk.addMethod(
  1351. unescape('_comment_'),
  1352. smalltalk.method({
  1353. selector: unescape('comment%3A'),
  1354. category: 'accessing',
  1355. fn: function (aString){
  1356. var self=this;
  1357. smalltalk.send(self, "_basicAt_put_", ["comment", aString]);
  1358. return self;},
  1359. args: ["aString"],
  1360. source: unescape('comment%3A%20aString%0A%20%20%20%20self%20basicAt%3A%20%27comment%27%20put%3A%20aString'),
  1361. messageSends: ["basicAt:put:"],
  1362. referencedClasses: []
  1363. }),
  1364. smalltalk.Behavior);
  1365. smalltalk.addMethod(
  1366. unescape('_commentStamp'),
  1367. smalltalk.method({
  1368. selector: unescape('commentStamp'),
  1369. category: 'accessing',
  1370. fn: function (){
  1371. var self=this;
  1372. return (function($rec){smalltalk.send($rec, "_class_", [self]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.ClassCommentReader || ClassCommentReader), "_new", []));
  1373. return self;},
  1374. args: [],
  1375. source: unescape('commentStamp%0A%20%20%20%20%5EClassCommentReader%20new%0A%09class%3A%20self%3B%0A%09yourself'),
  1376. messageSends: ["class:", "yourself", "new"],
  1377. referencedClasses: [smalltalk.nil]
  1378. }),
  1379. smalltalk.Behavior);
  1380. smalltalk.addMethod(
  1381. unescape('_removeCompiledMethod_'),
  1382. smalltalk.method({
  1383. selector: unescape('removeCompiledMethod%3A'),
  1384. category: 'accessing',
  1385. fn: function (aMethod){
  1386. var self=this;
  1387. delete self.fn.prototype[aMethod.selector._asSelector()];
  1388. delete self.fn.prototype.methods[aMethod.selector];
  1389. smalltalk.init(self);;
  1390. return self;},
  1391. args: ["aMethod"],
  1392. 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'),
  1393. messageSends: [],
  1394. referencedClasses: []
  1395. }),
  1396. smalltalk.Behavior);
  1397. smalltalk.addMethod(
  1398. unescape('_inheritsFrom_'),
  1399. smalltalk.method({
  1400. selector: unescape('inheritsFrom%3A'),
  1401. category: 'instance creation',
  1402. fn: function (aClass){
  1403. var self=this;
  1404. return smalltalk.send(smalltalk.send(aClass, "_allSubclasses", []), "_includes_", [self]);
  1405. return self;},
  1406. args: ["aClass"],
  1407. source: unescape('inheritsFrom%3A%20aClass%0A%09%5EaClass%20allSubclasses%20includes%3A%20self'),
  1408. messageSends: ["includes:", "allSubclasses"],
  1409. referencedClasses: []
  1410. }),
  1411. smalltalk.Behavior);
  1412. smalltalk.addMethod(
  1413. unescape('_protocols'),
  1414. smalltalk.method({
  1415. selector: unescape('protocols'),
  1416. category: 'accessing',
  1417. fn: function (){
  1418. var self=this;
  1419. var protocols=nil;
  1420. protocols=smalltalk.send((smalltalk.Array || Array), "_new", []);
  1421. 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", [])]);})]));})]);
  1422. return smalltalk.send(protocols, "_sort", []);
  1423. return self;},
  1424. args: [],
  1425. 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'),
  1426. messageSends: ["new", "do:", "methodDictionary", "ifFalse:", "includes:", "category", "add:", "sort"],
  1427. referencedClasses: [smalltalk.Array]
  1428. }),
  1429. smalltalk.Behavior);
  1430. smalltalk.addMethod(
  1431. unescape('_protocolsDo_'),
  1432. smalltalk.method({
  1433. selector: unescape('protocolsDo%3A'),
  1434. category: 'accessing',
  1435. fn: function (aBlock){
  1436. var self=this;
  1437. var methodsByCategory=nil;
  1438. methodsByCategory=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  1439. 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]);})]);
  1440. smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(category){return smalltalk.send(aBlock, "_value_value_", [category, smalltalk.send(methodsByCategory, "_at_", [category])]);})]);
  1441. return self;},
  1442. args: ["aBlock"],
  1443. 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'),
  1444. messageSends: ["new", "do:", "values", "methodDictionary", "add:", "at:ifAbsentPut:", "category", "protocols", "value:value:", "at:"],
  1445. referencedClasses: [smalltalk.nil,smalltalk.Array]
  1446. }),
  1447. smalltalk.Behavior);
  1448. smalltalk.addMethod(
  1449. unescape('_allInstanceVariableNames'),
  1450. smalltalk.method({
  1451. selector: unescape('allInstanceVariableNames'),
  1452. category: 'accessing',
  1453. fn: function (){
  1454. var self=this;
  1455. var result=nil;
  1456. result=smalltalk.send(smalltalk.send(self, "_instanceVariableNames", []), "_copy", []);
  1457. (($receiver = smalltalk.send(self, "_superclass", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(result, "_addAll_", [smalltalk.send(smalltalk.send(self, "_superclass", []), "_allInstanceVariableNames", [])]);})() : nil;
  1458. return result;
  1459. return self;},
  1460. args: [],
  1461. 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'),
  1462. messageSends: ["copy", "instanceVariableNames", "ifNotNil:", "superclass", "addAll:", "allInstanceVariableNames"],
  1463. referencedClasses: []
  1464. }),
  1465. smalltalk.Behavior);
  1466. smalltalk.addMethod(
  1467. unescape('_methodAt_'),
  1468. smalltalk.method({
  1469. selector: unescape('methodAt%3A'),
  1470. category: 'accessing',
  1471. fn: function (aString){
  1472. var self=this;
  1473. return smalltalk.methods(self)[aString];
  1474. return self;},
  1475. args: ["aString"],
  1476. source: unescape('methodAt%3A%20aString%0A%09%3Creturn%20smalltalk.methods%28self%29%5BaString%5D%3E'),
  1477. messageSends: [],
  1478. referencedClasses: []
  1479. }),
  1480. smalltalk.Behavior);
  1481. smalltalk.addMethod(
  1482. unescape('_methodsFor_stamp_'),
  1483. smalltalk.method({
  1484. selector: unescape('methodsFor%3Astamp%3A'),
  1485. category: 'accessing',
  1486. fn: function (aString, aStamp){
  1487. var self=this;
  1488. return smalltalk.send(self, "_methodsFor_", [aString]);
  1489. return self;},
  1490. args: ["aString", "aStamp"],
  1491. 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'),
  1492. messageSends: ["methodsFor:"],
  1493. referencedClasses: []
  1494. }),
  1495. smalltalk.Behavior);
  1496. smalltalk.addMethod(
  1497. unescape('_commentStamp_prior_'),
  1498. smalltalk.method({
  1499. selector: unescape('commentStamp%3Aprior%3A'),
  1500. category: 'accessing',
  1501. fn: function (aStamp, prior){
  1502. var self=this;
  1503. return smalltalk.send(self, "_commentStamp", []);
  1504. return self;},
  1505. args: ["aStamp", "prior"],
  1506. source: unescape('commentStamp%3A%20aStamp%20prior%3A%20prior%0A%20%20%20%20%20%20%20%20%5Eself%20commentStamp'),
  1507. messageSends: ["commentStamp"],
  1508. referencedClasses: []
  1509. }),
  1510. smalltalk.Behavior);
  1511. smalltalk.addMethod(
  1512. unescape('_compile_'),
  1513. smalltalk.method({
  1514. selector: unescape('compile%3A'),
  1515. category: 'compiling',
  1516. fn: function (aString){
  1517. var self=this;
  1518. smalltalk.send(self, "_compile_category_", [aString, ""]);
  1519. return self;},
  1520. args: ["aString"],
  1521. source: unescape('compile%3A%20aString%0A%09self%20compile%3A%20aString%20category%3A%20%27%27'),
  1522. messageSends: ["compile:category:"],
  1523. referencedClasses: []
  1524. }),
  1525. smalltalk.Behavior);
  1526. smalltalk.addMethod(
  1527. unescape('_compile_category_'),
  1528. smalltalk.method({
  1529. selector: unescape('compile%3Acategory%3A'),
  1530. category: 'compiling',
  1531. fn: function (aString, anotherString){
  1532. var self=this;
  1533. var method=nil;
  1534. method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self]);
  1535. smalltalk.send(method, "_category_", [anotherString]);
  1536. smalltalk.send(self, "_addCompiledMethod_", [method]);
  1537. return self;},
  1538. args: ["aString", "anotherString"],
  1539. 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'),
  1540. messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
  1541. referencedClasses: [smalltalk.nil]
  1542. }),
  1543. smalltalk.Behavior);
  1544. smalltalk.addClass('Class', smalltalk.Behavior, [], 'Kernel');
  1545. smalltalk.addMethod(
  1546. unescape('_category'),
  1547. smalltalk.method({
  1548. selector: unescape('category'),
  1549. category: 'accessing',
  1550. fn: function (){
  1551. var self=this;
  1552. return (($receiver = smalltalk.send(self, "_package", [])) == nil || $receiver == undefined) ? (function(){return "Unclassified";})() : (function(){return smalltalk.send(smalltalk.send(self, "_package", []), "_name", []);})();
  1553. return self;},
  1554. args: [],
  1555. source: unescape('category%0A%09%5Eself%20package%20ifNil%3A%20%5B%27Unclassified%27%5D%20ifNotNil%3A%20%5Bself%20package%20name%5D'),
  1556. messageSends: ["ifNil:ifNotNil:", "package", "name"],
  1557. referencedClasses: []
  1558. }),
  1559. smalltalk.Class);
  1560. smalltalk.addMethod(
  1561. unescape('_subclass_instanceVariableNames_'),
  1562. smalltalk.method({
  1563. selector: unescape('subclass%3AinstanceVariableNames%3A'),
  1564. category: 'class creation',
  1565. fn: function (aString, anotherString){
  1566. var self=this;
  1567. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
  1568. return self;},
  1569. args: ["aString", "anotherString"],
  1570. 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'),
  1571. messageSends: ["subclass:instanceVariableNames:package:"],
  1572. referencedClasses: []
  1573. }),
  1574. smalltalk.Class);
  1575. smalltalk.addMethod(
  1576. unescape('_subclass_instanceVariableNames_category_'),
  1577. smalltalk.method({
  1578. selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
  1579. category: 'class creation',
  1580. fn: function (aString, aString2, aString3){
  1581. var self=this;
  1582. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  1583. return self;},
  1584. args: ["aString", "aString2", "aString3"],
  1585. 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'),
  1586. messageSends: ["subclass:instanceVariableNames:package:"],
  1587. referencedClasses: []
  1588. }),
  1589. smalltalk.Class);
  1590. smalltalk.addMethod(
  1591. unescape('_isClass'),
  1592. smalltalk.method({
  1593. selector: unescape('isClass'),
  1594. category: 'testing',
  1595. fn: function (){
  1596. var self=this;
  1597. return true;
  1598. return self;},
  1599. args: [],
  1600. source: unescape('isClass%0A%09%5Etrue'),
  1601. messageSends: [],
  1602. referencedClasses: []
  1603. }),
  1604. smalltalk.Class);
  1605. smalltalk.addMethod(
  1606. unescape('_printString'),
  1607. smalltalk.method({
  1608. selector: unescape('printString'),
  1609. category: 'printing',
  1610. fn: function (){
  1611. var self=this;
  1612. return smalltalk.send(self, "_name", []);
  1613. return self;},
  1614. args: [],
  1615. source: unescape('printString%0A%09%5Eself%20name'),
  1616. messageSends: ["name"],
  1617. referencedClasses: []
  1618. }),
  1619. smalltalk.Class);
  1620. smalltalk.addMethod(
  1621. unescape('_rename_'),
  1622. smalltalk.method({
  1623. selector: unescape('rename%3A'),
  1624. category: 'accessing',
  1625. fn: function (aString){
  1626. var self=this;
  1627. smalltalk[aString] = self;
  1628. delete smalltalk[self.className];
  1629. self.className = aString;
  1630. ;
  1631. return self;},
  1632. args: ["aString"],
  1633. 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'),
  1634. messageSends: [],
  1635. referencedClasses: []
  1636. }),
  1637. smalltalk.Class);
  1638. smalltalk.addMethod(
  1639. unescape('_subclass_instanceVariableNames_classVariableNames_poolDictionaries_category_'),
  1640. smalltalk.method({
  1641. selector: unescape('subclass%3AinstanceVariableNames%3AclassVariableNames%3ApoolDictionaries%3Acategory%3A'),
  1642. category: 'class creation',
  1643. fn: function (aString, aString2, classVars, pools, aString3){
  1644. var self=this;
  1645. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  1646. return self;},
  1647. args: ["aString", "aString2", "classVars", "pools", "aString3"],
  1648. 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'),
  1649. messageSends: ["subclass:instanceVariableNames:package:"],
  1650. referencedClasses: []
  1651. }),
  1652. smalltalk.Class);
  1653. smalltalk.addMethod(
  1654. unescape('_package'),
  1655. smalltalk.method({
  1656. selector: unescape('package'),
  1657. category: 'accessing',
  1658. fn: function (){
  1659. var self=this;
  1660. return self.pkg;
  1661. return self;},
  1662. args: [],
  1663. source: unescape('package%0A%09%3Creturn%20self.pkg%3E'),
  1664. messageSends: [],
  1665. referencedClasses: []
  1666. }),
  1667. smalltalk.Class);
  1668. smalltalk.addMethod(
  1669. unescape('_package_'),
  1670. smalltalk.method({
  1671. selector: unescape('package%3A'),
  1672. category: 'accessing',
  1673. fn: function (aPackage){
  1674. var self=this;
  1675. self.pkg = aPackage;
  1676. return self;},
  1677. args: ["aPackage"],
  1678. source: unescape('package%3A%20aPackage%0A%09%3Cself.pkg%20%3D%20aPackage%3E'),
  1679. messageSends: [],
  1680. referencedClasses: []
  1681. }),
  1682. smalltalk.Class);
  1683. smalltalk.addMethod(
  1684. unescape('_subclass_instanceVariableNames_package_'),
  1685. smalltalk.method({
  1686. selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
  1687. category: 'class creation',
  1688. fn: function (aString, aString2, aString3){
  1689. var self=this;
  1690. return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
  1691. return self;},
  1692. args: ["aString", "aString2", "aString3"],
  1693. 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'),
  1694. messageSends: ["superclass:subclass:instanceVariableNames:package:", "new"],
  1695. referencedClasses: [smalltalk.nil]
  1696. }),
  1697. smalltalk.Class);
  1698. smalltalk.addClass('Metaclass', smalltalk.Behavior, [], 'Kernel');
  1699. smalltalk.addMethod(
  1700. unescape('_instanceClass'),
  1701. smalltalk.method({
  1702. selector: unescape('instanceClass'),
  1703. category: 'accessing',
  1704. fn: function (){
  1705. var self=this;
  1706. return self.instanceClass;
  1707. return self;},
  1708. args: [],
  1709. source: unescape('instanceClass%0A%09%3Creturn%20self.instanceClass%3E'),
  1710. messageSends: [],
  1711. referencedClasses: []
  1712. }),
  1713. smalltalk.Metaclass);
  1714. smalltalk.addMethod(
  1715. unescape('_instanceVariableNames_'),
  1716. smalltalk.method({
  1717. selector: unescape('instanceVariableNames%3A'),
  1718. category: 'accessing',
  1719. fn: function (aCollection){
  1720. var self=this;
  1721. smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_class_instanceVariableNames_", [self, aCollection]);
  1722. return self;},
  1723. args: ["aCollection"],
  1724. source: unescape('instanceVariableNames%3A%20aCollection%0A%09ClassBuilder%20new%0A%09%20%20%20%20class%3A%20self%20instanceVariableNames%3A%20aCollection'),
  1725. messageSends: ["class:instanceVariableNames:", "new"],
  1726. referencedClasses: [smalltalk.nil]
  1727. }),
  1728. smalltalk.Metaclass);
  1729. smalltalk.addMethod(
  1730. unescape('_isMetaclass'),
  1731. smalltalk.method({
  1732. selector: unescape('isMetaclass'),
  1733. category: 'testing',
  1734. fn: function (){
  1735. var self=this;
  1736. return true;
  1737. return self;},
  1738. args: [],
  1739. source: unescape('isMetaclass%0A%09%5Etrue'),
  1740. messageSends: [],
  1741. referencedClasses: []
  1742. }),
  1743. smalltalk.Metaclass);
  1744. smalltalk.addMethod(
  1745. unescape('_printString'),
  1746. smalltalk.method({
  1747. selector: unescape('printString'),
  1748. category: 'printing',
  1749. fn: function (){
  1750. var self=this;
  1751. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_instanceClass", []), "_name", []), "__comma", [" class"]);
  1752. return self;},
  1753. args: [],
  1754. source: unescape('printString%0A%09%5Eself%20instanceClass%20name%2C%20%27%20class%27'),
  1755. messageSends: [unescape("%2C"), "name", "instanceClass"],
  1756. referencedClasses: []
  1757. }),
  1758. smalltalk.Metaclass);
  1759. smalltalk.addClass('CompiledMethod', smalltalk.Object, [], 'Kernel');
  1760. smalltalk.addMethod(
  1761. unescape('_source'),
  1762. smalltalk.method({
  1763. selector: unescape('source'),
  1764. category: 'accessing',
  1765. fn: function (){
  1766. var self=this;
  1767. return (($receiver = smalltalk.send(self, "_basicAt_", ["source"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  1768. return self;},
  1769. args: [],
  1770. source: unescape('source%0A%09%5E%28self%20basicAt%3A%20%27source%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1771. messageSends: ["ifNil:", "basicAt:"],
  1772. referencedClasses: []
  1773. }),
  1774. smalltalk.CompiledMethod);
  1775. smalltalk.addMethod(
  1776. unescape('_source_'),
  1777. smalltalk.method({
  1778. selector: unescape('source%3A'),
  1779. category: 'accessing',
  1780. fn: function (aString){
  1781. var self=this;
  1782. smalltalk.send(self, "_basicAt_put_", ["source", aString]);
  1783. return self;},
  1784. args: ["aString"],
  1785. source: unescape('source%3A%20aString%0A%09self%20basicAt%3A%20%27source%27%20put%3A%20aString'),
  1786. messageSends: ["basicAt:put:"],
  1787. referencedClasses: []
  1788. }),
  1789. smalltalk.CompiledMethod);
  1790. smalltalk.addMethod(
  1791. unescape('_category'),
  1792. smalltalk.method({
  1793. selector: unescape('category'),
  1794. category: 'accessing',
  1795. fn: function (){
  1796. var self=this;
  1797. return (($receiver = smalltalk.send(self, "_basicAt_", ["category"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  1798. return self;},
  1799. args: [],
  1800. source: unescape('category%0A%09%5E%28self%20basicAt%3A%20%27category%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1801. messageSends: ["ifNil:", "basicAt:"],
  1802. referencedClasses: []
  1803. }),
  1804. smalltalk.CompiledMethod);
  1805. smalltalk.addMethod(
  1806. unescape('_category_'),
  1807. smalltalk.method({
  1808. selector: unescape('category%3A'),
  1809. category: 'accessing',
  1810. fn: function (aString){
  1811. var self=this;
  1812. smalltalk.send(self, "_basicAt_put_", ["category", aString]);
  1813. return self;},
  1814. args: ["aString"],
  1815. source: unescape('category%3A%20aString%0A%09self%20basicAt%3A%20%27category%27%20put%3A%20aString'),
  1816. messageSends: ["basicAt:put:"],
  1817. referencedClasses: []
  1818. }),
  1819. smalltalk.CompiledMethod);
  1820. smalltalk.addMethod(
  1821. unescape('_selector'),
  1822. smalltalk.method({
  1823. selector: unescape('selector'),
  1824. category: 'accessing',
  1825. fn: function (){
  1826. var self=this;
  1827. return smalltalk.send(self, "_basicAt_", ["selector"]);
  1828. return self;},
  1829. args: [],
  1830. source: unescape('selector%0A%09%5Eself%20basicAt%3A%20%27selector%27'),
  1831. messageSends: ["basicAt:"],
  1832. referencedClasses: []
  1833. }),
  1834. smalltalk.CompiledMethod);
  1835. smalltalk.addMethod(
  1836. unescape('_selector_'),
  1837. smalltalk.method({
  1838. selector: unescape('selector%3A'),
  1839. category: 'accessing',
  1840. fn: function (aString){
  1841. var self=this;
  1842. smalltalk.send(self, "_basicAt_put_", ["selector", aString]);
  1843. return self;},
  1844. args: ["aString"],
  1845. source: unescape('selector%3A%20aString%0A%09self%20basicAt%3A%20%27selector%27%20put%3A%20aString'),
  1846. messageSends: ["basicAt:put:"],
  1847. referencedClasses: []
  1848. }),
  1849. smalltalk.CompiledMethod);
  1850. smalltalk.addMethod(
  1851. unescape('_fn'),
  1852. smalltalk.method({
  1853. selector: unescape('fn'),
  1854. category: 'accessing',
  1855. fn: function (){
  1856. var self=this;
  1857. return smalltalk.send(self, "_basicAt_", ["fn"]);
  1858. return self;},
  1859. args: [],
  1860. source: unescape('fn%0A%09%5Eself%20basicAt%3A%20%27fn%27'),
  1861. messageSends: ["basicAt:"],
  1862. referencedClasses: []
  1863. }),
  1864. smalltalk.CompiledMethod);
  1865. smalltalk.addMethod(
  1866. unescape('_fn_'),
  1867. smalltalk.method({
  1868. selector: unescape('fn%3A'),
  1869. category: 'accessing',
  1870. fn: function (aBlock){
  1871. var self=this;
  1872. smalltalk.send(self, "_basicAt_put_", ["fn", aBlock]);
  1873. return self;},
  1874. args: ["aBlock"],
  1875. source: unescape('fn%3A%20aBlock%0A%09self%20basicAt%3A%20%27fn%27%20put%3A%20aBlock'),
  1876. messageSends: ["basicAt:put:"],
  1877. referencedClasses: []
  1878. }),
  1879. smalltalk.CompiledMethod);
  1880. smalltalk.addMethod(
  1881. unescape('_messageSends'),
  1882. smalltalk.method({
  1883. selector: unescape('messageSends'),
  1884. category: 'accessing',
  1885. fn: function (){
  1886. var self=this;
  1887. return smalltalk.send(self, "_basicAt_", ["messageSends"]);
  1888. return self;},
  1889. args: [],
  1890. source: unescape('messageSends%0A%09%5Eself%20basicAt%3A%20%27messageSends%27'),
  1891. messageSends: ["basicAt:"],
  1892. referencedClasses: []
  1893. }),
  1894. smalltalk.CompiledMethod);
  1895. smalltalk.addMethod(
  1896. unescape('_methodClass'),
  1897. smalltalk.method({
  1898. selector: unescape('methodClass'),
  1899. category: 'accessing',
  1900. fn: function (){
  1901. var self=this;
  1902. return smalltalk.send(self, "_basicAt_", ["methodClass"]);
  1903. return self;},
  1904. args: [],
  1905. source: unescape('methodClass%0A%09%5Eself%20basicAt%3A%20%27methodClass%27'),
  1906. messageSends: ["basicAt:"],
  1907. referencedClasses: []
  1908. }),
  1909. smalltalk.CompiledMethod);
  1910. smalltalk.addMethod(
  1911. unescape('_referencedClasses'),
  1912. smalltalk.method({
  1913. selector: unescape('referencedClasses'),
  1914. category: 'accessing',
  1915. fn: function (){
  1916. var self=this;
  1917. return smalltalk.send(self, "_basicAt_", ["referencedClasses"]);
  1918. return self;},
  1919. args: [],
  1920. source: unescape('referencedClasses%0A%09%5Eself%20basicAt%3A%20%27referencedClasses%27'),
  1921. messageSends: ["basicAt:"],
  1922. referencedClasses: []
  1923. }),
  1924. smalltalk.CompiledMethod);
  1925. smalltalk.addMethod(
  1926. unescape('_arguments'),
  1927. smalltalk.method({
  1928. selector: unescape('arguments'),
  1929. category: 'accessing',
  1930. fn: function (){
  1931. var self=this;
  1932. return self.args || [];
  1933. return self;},
  1934. args: [],
  1935. source: unescape('arguments%0A%09%3Creturn%20self.args%20%7C%7C%20%5B%5D%3E'),
  1936. messageSends: [],
  1937. referencedClasses: []
  1938. }),
  1939. smalltalk.CompiledMethod);
  1940. smalltalk.addClass('Number', smalltalk.Object, [], 'Kernel');
  1941. smalltalk.addMethod(
  1942. unescape('__eq'),
  1943. smalltalk.method({
  1944. selector: unescape('%3D'),
  1945. category: 'comparing',
  1946. fn: function (aNumber){
  1947. var self=this;
  1948. 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}})})();})]));
  1949. return Number(self) == aNumber;
  1950. return self;
  1951. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  1952. args: ["aNumber"],
  1953. 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'),
  1954. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  1955. referencedClasses: []
  1956. }),
  1957. smalltalk.Number);
  1958. smalltalk.addMethod(
  1959. unescape('__gt'),
  1960. smalltalk.method({
  1961. selector: unescape('%3E'),
  1962. category: 'comparing',
  1963. fn: function (aNumber){
  1964. var self=this;
  1965. return self > aNumber;
  1966. return self;},
  1967. args: ["aNumber"],
  1968. source: unescape('%3E%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3E%3E%20aNumber%3E'),
  1969. messageSends: [],
  1970. referencedClasses: []
  1971. }),
  1972. smalltalk.Number);
  1973. smalltalk.addMethod(
  1974. unescape('__lt'),
  1975. smalltalk.method({
  1976. selector: unescape('%3C'),
  1977. category: 'comparing',
  1978. fn: function (aNumber){
  1979. var self=this;
  1980. return self < aNumber;
  1981. return self;},
  1982. args: ["aNumber"],
  1983. source: unescape('%3C%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3C%20aNumber%3E'),
  1984. messageSends: [],
  1985. referencedClasses: []
  1986. }),
  1987. smalltalk.Number);
  1988. smalltalk.addMethod(
  1989. unescape('__gt_eq'),
  1990. smalltalk.method({
  1991. selector: unescape('%3E%3D'),
  1992. category: 'comparing',
  1993. fn: function (aNumber){
  1994. var self=this;
  1995. return self >= aNumber;
  1996. return self;},
  1997. args: ["aNumber"],
  1998. source: unescape('%3E%3D%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3E%3E%3D%20aNumber%3E'),
  1999. messageSends: [],
  2000. referencedClasses: []
  2001. }),
  2002. smalltalk.Number);
  2003. smalltalk.addMethod(
  2004. unescape('__lt_eq'),
  2005. smalltalk.method({
  2006. selector: unescape('%3C%3D'),
  2007. category: 'comparing',
  2008. fn: function (aNumber){
  2009. var self=this;
  2010. return self <= aNumber;
  2011. return self;},
  2012. args: ["aNumber"],
  2013. source: unescape('%3C%3D%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3C%3D%20aNumber%3E'),
  2014. messageSends: [],
  2015. referencedClasses: []
  2016. }),
  2017. smalltalk.Number);
  2018. smalltalk.addMethod(
  2019. unescape('__plus'),
  2020. smalltalk.method({
  2021. selector: unescape('+'),
  2022. category: 'arithmetic',
  2023. fn: function (aNumber){
  2024. var self=this;
  2025. return self + aNumber;
  2026. return self;},
  2027. args: ["aNumber"],
  2028. source: unescape('+%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20+%20aNumber%3E'),
  2029. messageSends: [],
  2030. referencedClasses: []
  2031. }),
  2032. smalltalk.Number);
  2033. smalltalk.addMethod(
  2034. unescape('__minus'),
  2035. smalltalk.method({
  2036. selector: unescape('-'),
  2037. category: 'arithmetic',
  2038. fn: function (aNumber){
  2039. var self=this;
  2040. return self - aNumber;
  2041. return self;},
  2042. args: ["aNumber"],
  2043. source: unescape('-%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20-%20aNumber%3E'),
  2044. messageSends: [],
  2045. referencedClasses: []
  2046. }),
  2047. smalltalk.Number);
  2048. smalltalk.addMethod(
  2049. unescape('__star'),
  2050. smalltalk.method({
  2051. selector: unescape('*'),
  2052. category: 'arithmetic',
  2053. fn: function (aNumber){
  2054. var self=this;
  2055. return self * aNumber;
  2056. return self;},
  2057. args: ["aNumber"],
  2058. source: unescape('*%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20*%20aNumber%3E'),
  2059. messageSends: [],
  2060. referencedClasses: []
  2061. }),
  2062. smalltalk.Number);
  2063. smalltalk.addMethod(
  2064. unescape('__slash'),
  2065. smalltalk.method({
  2066. selector: unescape('/'),
  2067. category: 'arithmetic',
  2068. fn: function (aNumber){
  2069. var self=this;
  2070. return self / aNumber;
  2071. return self;},
  2072. args: ["aNumber"],
  2073. source: unescape('/%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20/%20aNumber%3E'),
  2074. messageSends: [],
  2075. referencedClasses: []
  2076. }),
  2077. smalltalk.Number);
  2078. smalltalk.addMethod(
  2079. unescape('_max_'),
  2080. smalltalk.method({
  2081. selector: unescape('max%3A'),
  2082. category: 'arithmetic',
  2083. fn: function (aNumber){
  2084. var self=this;
  2085. return Math.max(self, aNumber);;
  2086. return self;},
  2087. args: ["aNumber"],
  2088. source: unescape('max%3A%20aNumber%0A%09%3Creturn%20Math.max%28self%2C%20aNumber%29%3B%3E'),
  2089. messageSends: [],
  2090. referencedClasses: []
  2091. }),
  2092. smalltalk.Number);
  2093. smalltalk.addMethod(
  2094. unescape('_min_'),
  2095. smalltalk.method({
  2096. selector: unescape('min%3A'),
  2097. category: 'arithmetic',
  2098. fn: function (aNumber){
  2099. var self=this;
  2100. return Math.min(self, aNumber);;
  2101. return self;},
  2102. args: ["aNumber"],
  2103. source: unescape('min%3A%20aNumber%0A%09%3Creturn%20Math.min%28self%2C%20aNumber%29%3B%3E'),
  2104. messageSends: [],
  2105. referencedClasses: []
  2106. }),
  2107. smalltalk.Number);
  2108. smalltalk.addMethod(
  2109. unescape('_rounded'),
  2110. smalltalk.method({
  2111. selector: unescape('rounded'),
  2112. category: 'converting',
  2113. fn: function (){
  2114. var self=this;
  2115. return Math.round(self);;
  2116. return self;},
  2117. args: [],
  2118. source: unescape('rounded%0A%09%3Creturn%20Math.round%28self%29%3B%3E'),
  2119. messageSends: [],
  2120. referencedClasses: []
  2121. }),
  2122. smalltalk.Number);
  2123. smalltalk.addMethod(
  2124. unescape('_truncated'),
  2125. smalltalk.method({
  2126. selector: unescape('truncated'),
  2127. category: 'converting',
  2128. fn: function (){
  2129. var self=this;
  2130. var result=nil;
  2131. ((($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));;})]));
  2132. return result;
  2133. return self;},
  2134. args: [],
  2135. 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'),
  2136. messageSends: ["ifTrue:ifFalse:", unescape("%3E%3D")],
  2137. referencedClasses: []
  2138. }),
  2139. smalltalk.Number);
  2140. smalltalk.addMethod(
  2141. unescape('_to_'),
  2142. smalltalk.method({
  2143. selector: unescape('to%3A'),
  2144. category: 'converting',
  2145. fn: function (aNumber){
  2146. var self=this;
  2147. var array=nil;
  2148. var first=nil;
  2149. var last=nil;
  2150. var count=nil;
  2151. first=smalltalk.send(self, "_truncated", []);
  2152. last=((($receiver = smalltalk.send(aNumber, "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));
  2153. count=(1);
  2154. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2155. 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)]));})]);
  2156. return array;
  2157. return self;},
  2158. args: ["aNumber"],
  2159. 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'),
  2160. messageSends: ["truncated", unescape("+"), "new", "timesRepeat:", unescape("-"), "at:put:"],
  2161. referencedClasses: [smalltalk.Array]
  2162. }),
  2163. smalltalk.Number);
  2164. smalltalk.addMethod(
  2165. unescape('_timesRepeat_'),
  2166. smalltalk.method({
  2167. selector: unescape('timesRepeat%3A'),
  2168. category: 'enumerating',
  2169. fn: function (aBlock){
  2170. var self=this;
  2171. var integer=nil;
  2172. var count=nil;
  2173. integer=smalltalk.send(self, "_truncated", []);
  2174. count=(1);
  2175. (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)]));})()}})();
  2176. return self;},
  2177. args: ["aBlock"],
  2178. 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'),
  2179. messageSends: ["truncated", "whileFalse:", unescape("%3E"), "value", unescape("+")],
  2180. referencedClasses: []
  2181. }),
  2182. smalltalk.Number);
  2183. smalltalk.addMethod(
  2184. unescape('_to_do_'),
  2185. smalltalk.method({
  2186. selector: unescape('to%3Ado%3A'),
  2187. category: 'enumerating',
  2188. fn: function (stop, aBlock){
  2189. var self=this;
  2190. var nextValue=nil;
  2191. nextValue=self;
  2192. (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)]));})()}})();
  2193. return self;},
  2194. args: ["stop", "aBlock"],
  2195. 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'),
  2196. messageSends: ["whileTrue:", unescape("%3C%3D"), "value:", unescape("+")],
  2197. referencedClasses: []
  2198. }),
  2199. smalltalk.Number);
  2200. smalltalk.addMethod(
  2201. unescape('_asString'),
  2202. smalltalk.method({
  2203. selector: unescape('asString'),
  2204. category: 'converting',
  2205. fn: function (){
  2206. var self=this;
  2207. return smalltalk.send(self, "_printString", []);
  2208. return self;},
  2209. args: [],
  2210. source: unescape('asString%0A%09%5Eself%20printString'),
  2211. messageSends: ["printString"],
  2212. referencedClasses: []
  2213. }),
  2214. smalltalk.Number);
  2215. smalltalk.addMethod(
  2216. unescape('_asJavascript'),
  2217. smalltalk.method({
  2218. selector: unescape('asJavascript'),
  2219. category: 'converting',
  2220. fn: function (){
  2221. var self=this;
  2222. return smalltalk.send(smalltalk.send(unescape("%28"), "__comma", [smalltalk.send(self, "_printString", [])]), "__comma", [unescape("%29")]);
  2223. return self;},
  2224. args: [],
  2225. source: unescape('asJavascript%0A%09%5E%27%28%27%2C%20self%20printString%2C%20%27%29%27'),
  2226. messageSends: [unescape("%2C"), "printString"],
  2227. referencedClasses: []
  2228. }),
  2229. smalltalk.Number);
  2230. smalltalk.addMethod(
  2231. unescape('_printString'),
  2232. smalltalk.method({
  2233. selector: unescape('printString'),
  2234. category: 'printing',
  2235. fn: function (){
  2236. var self=this;
  2237. return String(self);
  2238. return self;},
  2239. args: [],
  2240. source: unescape('printString%0A%09%3Creturn%20String%28self%29%3E'),
  2241. messageSends: [],
  2242. referencedClasses: []
  2243. }),
  2244. smalltalk.Number);
  2245. smalltalk.addMethod(
  2246. unescape('_isNumber'),
  2247. smalltalk.method({
  2248. selector: unescape('isNumber'),
  2249. category: 'testing',
  2250. fn: function (){
  2251. var self=this;
  2252. return true;
  2253. return self;},
  2254. args: [],
  2255. source: unescape('isNumber%0A%09%5Etrue'),
  2256. messageSends: [],
  2257. referencedClasses: []
  2258. }),
  2259. smalltalk.Number);
  2260. smalltalk.addMethod(
  2261. unescape('_atRandom'),
  2262. smalltalk.method({
  2263. selector: unescape('atRandom'),
  2264. category: 'converting',
  2265. fn: function (){
  2266. var self=this;
  2267. 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)]));
  2268. return self;},
  2269. args: [],
  2270. source: unescape('atRandom%0A%20%20%20%20%5E%28Random%20new%20next%20*%20self%29%20truncated%20+%201'),
  2271. messageSends: [unescape("+"), "truncated", unescape("*"), "next", "new"],
  2272. referencedClasses: [smalltalk.nil]
  2273. }),
  2274. smalltalk.Number);
  2275. smalltalk.addMethod(
  2276. unescape('__at'),
  2277. smalltalk.method({
  2278. selector: unescape('@'),
  2279. category: 'converting',
  2280. fn: function (aNumber){
  2281. var self=this;
  2282. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, aNumber]);
  2283. return self;},
  2284. args: ["aNumber"],
  2285. source: unescape('@%20aNumber%0A%09%5EPoint%20x%3A%20self%20y%3A%20aNumber'),
  2286. messageSends: ["x:y:"],
  2287. referencedClasses: [smalltalk.nil]
  2288. }),
  2289. smalltalk.Number);
  2290. smalltalk.addMethod(
  2291. unescape('_asPoint'),
  2292. smalltalk.method({
  2293. selector: unescape('asPoint'),
  2294. category: 'converting',
  2295. fn: function (){
  2296. var self=this;
  2297. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, self]);
  2298. return self;},
  2299. args: [],
  2300. source: unescape('asPoint%0A%09%5EPoint%20x%3A%20self%20y%3A%20self'),
  2301. messageSends: ["x:y:"],
  2302. referencedClasses: [smalltalk.nil]
  2303. }),
  2304. smalltalk.Number);
  2305. smalltalk.addMethod(
  2306. unescape('_clearInterval'),
  2307. smalltalk.method({
  2308. selector: unescape('clearInterval'),
  2309. category: 'timeouts/intervals',
  2310. fn: function (){
  2311. var self=this;
  2312. clearInterval(Number(self));
  2313. return self;},
  2314. args: [],
  2315. source: unescape('clearInterval%0A%09%3CclearInterval%28Number%28self%29%29%3E'),
  2316. messageSends: [],
  2317. referencedClasses: []
  2318. }),
  2319. smalltalk.Number);
  2320. smalltalk.addMethod(
  2321. unescape('_asJSONObject'),
  2322. smalltalk.method({
  2323. selector: unescape('asJSONObject'),
  2324. category: 'converting',
  2325. fn: function (){
  2326. var self=this;
  2327. return self;
  2328. return self;},
  2329. args: [],
  2330. source: unescape('asJSONObject%0A%09%5Eself'),
  2331. messageSends: [],
  2332. referencedClasses: []
  2333. }),
  2334. smalltalk.Number);
  2335. smalltalk.addMethod(
  2336. unescape('_clearTimeout'),
  2337. smalltalk.method({
  2338. selector: unescape('clearTimeout'),
  2339. category: 'timeouts/intervals',
  2340. fn: function (){
  2341. var self=this;
  2342. clearTimeout(Number(self));
  2343. return self;},
  2344. args: [],
  2345. source: unescape('clearTimeout%0A%09%3CclearTimeout%28Number%28self%29%29%3E'),
  2346. messageSends: [],
  2347. referencedClasses: []
  2348. }),
  2349. smalltalk.Number);
  2350. smalltalk.addMethod(
  2351. unescape('_even'),
  2352. smalltalk.method({
  2353. selector: unescape('even'),
  2354. category: 'testing',
  2355. fn: function (){
  2356. var self=this;
  2357. return smalltalk.send((0), "__eq", [smalltalk.send(self, "_\\\\", [(2)])]);
  2358. return self;},
  2359. args: [],
  2360. source: unescape('even%0A%09%5E%200%20%3D%20%28self%20%5C%5C%202%29'),
  2361. messageSends: [unescape("%3D"), unescape("%5C%5C%5C%5C")],
  2362. referencedClasses: []
  2363. }),
  2364. smalltalk.Number);
  2365. smalltalk.addMethod(
  2366. unescape('_odd'),
  2367. smalltalk.method({
  2368. selector: unescape('odd'),
  2369. category: 'testing',
  2370. fn: function (){
  2371. var self=this;
  2372. return smalltalk.send(smalltalk.send(self, "_even", []), "_not", []);
  2373. return self;},
  2374. args: [],
  2375. source: unescape('odd%0A%09%5E%20self%20even%20not'),
  2376. messageSends: ["not", "even"],
  2377. referencedClasses: []
  2378. }),
  2379. smalltalk.Number);
  2380. smalltalk.addMethod(
  2381. unescape('_negated'),
  2382. smalltalk.method({
  2383. selector: unescape('negated'),
  2384. category: 'arithmetic',
  2385. fn: function (){
  2386. var self=this;
  2387. return (0) - self;
  2388. return self;},
  2389. args: [],
  2390. source: unescape('negated%0A%09%5E0%20-%20self'),
  2391. messageSends: [unescape("-")],
  2392. referencedClasses: []
  2393. }),
  2394. smalltalk.Number);
  2395. smalltalk.addMethod(
  2396. unescape('__eq_eq'),
  2397. smalltalk.method({
  2398. selector: unescape('%3D%3D'),
  2399. category: 'comparing',
  2400. fn: function (aNumber){
  2401. var self=this;
  2402. 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}})})();})]));
  2403. return Number(self) === Number(aNumber);
  2404. return self;
  2405. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  2406. args: ["aNumber"],
  2407. 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'),
  2408. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  2409. referencedClasses: []
  2410. }),
  2411. smalltalk.Number);
  2412. smalltalk.addMethod(
  2413. unescape('_printShowingDecimalPlaces_'),
  2414. smalltalk.method({
  2415. selector: unescape('printShowingDecimalPlaces%3A'),
  2416. category: 'printing',
  2417. fn: function (placesDesired){
  2418. var self=this;
  2419. return self.toFixed(placesDesired);
  2420. return self;},
  2421. args: ["placesDesired"],
  2422. source: unescape('printShowingDecimalPlaces%3A%20placesDesired%0A%09%3Creturn%20self.toFixed%28placesDesired%29%3E'),
  2423. messageSends: [],
  2424. referencedClasses: []
  2425. }),
  2426. smalltalk.Number);
  2427. smalltalk.addMethod(
  2428. unescape('_%5C%5C'),
  2429. smalltalk.method({
  2430. selector: unescape('%5C%5C'),
  2431. category: 'arithmetic',
  2432. fn: function (aNumber){
  2433. var self=this;
  2434. return self % aNumber;
  2435. return self;},
  2436. args: ["aNumber"],
  2437. source: unescape('%5C%5C%20aNumber%0A%09%3Creturn%20self%20%25%20aNumber%3E'),
  2438. messageSends: [],
  2439. referencedClasses: []
  2440. }),
  2441. smalltalk.Number);
  2442. smalltalk.addMethod(
  2443. unescape('_to_by_'),
  2444. smalltalk.method({
  2445. selector: unescape('to%3Aby%3A'),
  2446. category: 'converting',
  2447. fn: function (stop, step){
  2448. var self=this;
  2449. var array=nil;
  2450. var value=nil;
  2451. var pos=nil;
  2452. value=self;
  2453. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2454. pos=(1);
  2455. ((($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")]);})]));
  2456. ((($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]));})()}})();})]));
  2457. return array;
  2458. return self;},
  2459. args: ["stop", "step"],
  2460. 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'),
  2461. messageSends: ["new", "ifTrue:", unescape("%3D"), "error:", "ifTrue:ifFalse:", unescape("%3C"), "whileTrue:", unescape("%3E%3D"), "at:put:", unescape("+"), unescape("%3C%3D")],
  2462. referencedClasses: [smalltalk.Array]
  2463. }),
  2464. smalltalk.Number);
  2465. smalltalk.addMethod(
  2466. unescape('_to_by_do_'),
  2467. smalltalk.method({
  2468. selector: unescape('to%3Aby%3Ado%3A'),
  2469. category: 'converting',
  2470. fn: function (stop, step, aBlock){
  2471. var self=this;
  2472. var value=nil;
  2473. value=self;
  2474. ((($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")]);})]));
  2475. ((($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]));})()}})();})]));
  2476. return self;},
  2477. args: ["stop", "step", "aBlock"],
  2478. 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'),
  2479. messageSends: ["ifTrue:", unescape("%3D"), "error:", "ifTrue:ifFalse:", unescape("%3C"), "whileTrue:", unescape("%3E%3D"), "value:", unescape("+"), unescape("%3C%3D")],
  2480. referencedClasses: []
  2481. }),
  2482. smalltalk.Number);
  2483. smalltalk.addMethod(
  2484. unescape('_pi'),
  2485. smalltalk.method({
  2486. selector: unescape('pi'),
  2487. category: 'instance creation',
  2488. fn: function (){
  2489. var self=this;
  2490. return Math.PI;
  2491. return self;},
  2492. args: [],
  2493. source: unescape('pi%0A%09%3Creturn%20Math.PI%3E'),
  2494. messageSends: [],
  2495. referencedClasses: []
  2496. }),
  2497. smalltalk.Number.klass);
  2498. smalltalk.addClass('BlockClosure', smalltalk.Object, [], 'Kernel');
  2499. smalltalk.addMethod(
  2500. unescape('_compiledSource'),
  2501. smalltalk.method({
  2502. selector: unescape('compiledSource'),
  2503. category: 'accessing',
  2504. fn: function (){
  2505. var self=this;
  2506. return self.toString();
  2507. return self;},
  2508. args: [],
  2509. source: unescape('compiledSource%0A%09%3Creturn%20self.toString%28%29%3E'),
  2510. messageSends: [],
  2511. referencedClasses: []
  2512. }),
  2513. smalltalk.BlockClosure);
  2514. smalltalk.addMethod(
  2515. unescape('_whileTrue_'),
  2516. smalltalk.method({
  2517. selector: unescape('whileTrue%3A'),
  2518. category: 'controlling',
  2519. fn: function (aBlock){
  2520. var self=this;
  2521. while(self()) {aBlock()};
  2522. return self;},
  2523. args: ["aBlock"],
  2524. 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'),
  2525. messageSends: [],
  2526. referencedClasses: []
  2527. }),
  2528. smalltalk.BlockClosure);
  2529. smalltalk.addMethod(
  2530. unescape('_whileFalse_'),
  2531. smalltalk.method({
  2532. selector: unescape('whileFalse%3A'),
  2533. category: 'controlling',
  2534. fn: function (aBlock){
  2535. var self=this;
  2536. while(!self()) {aBlock()};
  2537. return self;},
  2538. args: ["aBlock"],
  2539. 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'),
  2540. messageSends: [],
  2541. referencedClasses: []
  2542. }),
  2543. smalltalk.BlockClosure);
  2544. smalltalk.addMethod(
  2545. unescape('_value'),
  2546. smalltalk.method({
  2547. selector: unescape('value'),
  2548. category: 'evaluating',
  2549. fn: function (){
  2550. var self=this;
  2551. return self();;
  2552. return self;},
  2553. args: [],
  2554. source: unescape('value%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28%29%3B%3E'),
  2555. messageSends: [],
  2556. referencedClasses: []
  2557. }),
  2558. smalltalk.BlockClosure);
  2559. smalltalk.addMethod(
  2560. unescape('_value_'),
  2561. smalltalk.method({
  2562. selector: unescape('value%3A'),
  2563. category: 'evaluating',
  2564. fn: function (anArg){
  2565. var self=this;
  2566. return self(anArg);;
  2567. return self;},
  2568. args: ["anArg"],
  2569. source: unescape('value%3A%20anArg%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28anArg%29%3B%3E'),
  2570. messageSends: [],
  2571. referencedClasses: []
  2572. }),
  2573. smalltalk.BlockClosure);
  2574. smalltalk.addMethod(
  2575. unescape('_value_value_'),
  2576. smalltalk.method({
  2577. selector: unescape('value%3Avalue%3A'),
  2578. category: 'evaluating',
  2579. fn: function (firstArg, secondArg){
  2580. var self=this;
  2581. return self(firstArg, secondArg);;
  2582. return self;},
  2583. args: ["firstArg", "secondArg"],
  2584. 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'),
  2585. messageSends: [],
  2586. referencedClasses: []
  2587. }),
  2588. smalltalk.BlockClosure);
  2589. smalltalk.addMethod(
  2590. unescape('_value_value_value_'),
  2591. smalltalk.method({
  2592. selector: unescape('value%3Avalue%3Avalue%3A'),
  2593. category: 'evaluating',
  2594. fn: function (firstArg, secondArg, thirdArg){
  2595. var self=this;
  2596. return self(firstArg, secondArg, thirdArg);;
  2597. return self;},
  2598. args: ["firstArg", "secondArg", "thirdArg"],
  2599. 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'),
  2600. messageSends: [],
  2601. referencedClasses: []
  2602. }),
  2603. smalltalk.BlockClosure);
  2604. smalltalk.addMethod(
  2605. unescape('_valueWithPossibleArguments_'),
  2606. smalltalk.method({
  2607. selector: unescape('valueWithPossibleArguments%3A'),
  2608. category: 'evaluating',
  2609. fn: function (aCollection){
  2610. var self=this;
  2611. return self.apply(null, aCollection);;
  2612. return self;},
  2613. args: ["aCollection"],
  2614. source: unescape('valueWithPossibleArguments%3A%20aCollection%0A%09%3Creturn%20self.apply%28null%2C%20aCollection%29%3B%3E'),
  2615. messageSends: [],
  2616. referencedClasses: []
  2617. }),
  2618. smalltalk.BlockClosure);
  2619. smalltalk.addMethod(
  2620. unescape('_on_do_'),
  2621. smalltalk.method({
  2622. selector: unescape('on%3Ado%3A'),
  2623. category: 'error handling',
  2624. fn: function (anErrorClass, aBlock){
  2625. var self=this;
  2626. 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", []);})]));})]);
  2627. return self;},
  2628. args: ["anErrorClass", "aBlock"],
  2629. 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'),
  2630. messageSends: ["try:catch:", "ifTrue:ifFalse:", "isKindOf:", "value:", "signal"],
  2631. referencedClasses: []
  2632. }),
  2633. smalltalk.BlockClosure);
  2634. smalltalk.addMethod(
  2635. unescape('_valueWithTimeout_'),
  2636. smalltalk.method({
  2637. selector: unescape('valueWithTimeout%3A'),
  2638. category: 'timeout/interval',
  2639. fn: function (aNumber){
  2640. var self=this;
  2641. return setTimeout(self, aNumber);
  2642. return self;},
  2643. args: ["aNumber"],
  2644. source: unescape('valueWithTimeout%3A%20aNumber%0A%09%3Creturn%20setTimeout%28self%2C%20aNumber%29%3E'),
  2645. messageSends: [],
  2646. referencedClasses: []
  2647. }),
  2648. smalltalk.BlockClosure);
  2649. smalltalk.addMethod(
  2650. unescape('_valueWithInterval_'),
  2651. smalltalk.method({
  2652. selector: unescape('valueWithInterval%3A'),
  2653. category: 'timeout/interval',
  2654. fn: function (aNumber){
  2655. var self=this;
  2656. return setInterval(self, aNumber);
  2657. return self;},
  2658. args: ["aNumber"],
  2659. source: unescape('valueWithInterval%3A%20aNumber%0A%09%3Creturn%20setInterval%28self%2C%20aNumber%29%3E'),
  2660. messageSends: [],
  2661. referencedClasses: []
  2662. }),
  2663. smalltalk.BlockClosure);
  2664. smalltalk.addMethod(
  2665. unescape('_whileFalse'),
  2666. smalltalk.method({
  2667. selector: unescape('whileFalse'),
  2668. category: 'controlling',
  2669. fn: function (){
  2670. var self=this;
  2671. smalltalk.send(self, "_whileFalse_", [(function(){return nil;})]);
  2672. return self;},
  2673. args: [],
  2674. source: unescape('whileFalse%0A%09%22inlined%20in%20the%20Compiler%22%0A%09self%20whileFalse%3A%20%5B%5D'),
  2675. messageSends: ["whileFalse:"],
  2676. referencedClasses: []
  2677. }),
  2678. smalltalk.BlockClosure);
  2679. smalltalk.addMethod(
  2680. unescape('_whileTrue'),
  2681. smalltalk.method({
  2682. selector: unescape('whileTrue'),
  2683. category: 'controlling',
  2684. fn: function (){
  2685. var self=this;
  2686. smalltalk.send(self, "_whileTrue_", [(function(){return nil;})]);
  2687. return self;},
  2688. args: [],
  2689. source: unescape('whileTrue%0A%09%22inlined%20in%20the%20Compiler%22%0A%09self%20whileTrue%3A%20%5B%5D'),
  2690. messageSends: ["whileTrue:"],
  2691. referencedClasses: []
  2692. }),
  2693. smalltalk.BlockClosure);
  2694. smalltalk.addMethod(
  2695. unescape('_new'),
  2696. smalltalk.method({
  2697. selector: unescape('new'),
  2698. category: 'evaluating',
  2699. fn: function (){
  2700. var self=this;
  2701. return new self();
  2702. return self;},
  2703. args: [],
  2704. 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'),
  2705. messageSends: [],
  2706. referencedClasses: []
  2707. }),
  2708. smalltalk.BlockClosure);
  2709. smalltalk.addMethod(
  2710. unescape('_applyTo_arguments_'),
  2711. smalltalk.method({
  2712. selector: unescape('applyTo%3Aarguments%3A'),
  2713. category: 'evaluating',
  2714. fn: function (anObject, aCollection){
  2715. var self=this;
  2716. return self.apply(anObject, aCollection);
  2717. return self;},
  2718. args: ["anObject", "aCollection"],
  2719. source: unescape('applyTo%3A%20anObject%20arguments%3A%20aCollection%0A%09%3Creturn%20self.apply%28anObject%2C%20aCollection%29%3E'),
  2720. messageSends: [],
  2721. referencedClasses: []
  2722. }),
  2723. smalltalk.BlockClosure);
  2724. smalltalk.addMethod(
  2725. unescape('_timeToRun'),
  2726. smalltalk.method({
  2727. selector: unescape('timeToRun'),
  2728. category: 'evaluating',
  2729. fn: function (){
  2730. var self=this;
  2731. return smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [self]);
  2732. return self;},
  2733. args: [],
  2734. source: unescape('timeToRun%0A%09%22Answer%20the%20number%20of%20milliseconds%20taken%20to%20execute%20this%20block.%22%0A%0A%09%5E%20Date%20millisecondsToRun%3A%20self'),
  2735. messageSends: ["millisecondsToRun:"],
  2736. referencedClasses: [smalltalk.Date]
  2737. }),
  2738. smalltalk.BlockClosure);
  2739. smalltalk.addClass('Boolean', smalltalk.Object, [], 'Kernel');
  2740. smalltalk.addMethod(
  2741. unescape('__eq'),
  2742. smalltalk.method({
  2743. selector: unescape('%3D'),
  2744. category: 'comparing',
  2745. fn: function (aBoolean){
  2746. var self=this;
  2747. 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}})})();})]));
  2748. return Boolean(self == true) == aBoolean;
  2749. return self;
  2750. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  2751. args: ["aBoolean"],
  2752. 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'),
  2753. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  2754. referencedClasses: []
  2755. }),
  2756. smalltalk.Boolean);
  2757. smalltalk.addMethod(
  2758. unescape('_shallowCopy'),
  2759. smalltalk.method({
  2760. selector: unescape('shallowCopy'),
  2761. category: 'copying',
  2762. fn: function (){
  2763. var self=this;
  2764. return self;
  2765. return self;},
  2766. args: [],
  2767. source: unescape('shallowCopy%0A%09%5Eself'),
  2768. messageSends: [],
  2769. referencedClasses: []
  2770. }),
  2771. smalltalk.Boolean);
  2772. smalltalk.addMethod(
  2773. unescape('_deepCopy'),
  2774. smalltalk.method({
  2775. selector: unescape('deepCopy'),
  2776. category: 'copying',
  2777. fn: function (){
  2778. var self=this;
  2779. return self;
  2780. return self;},
  2781. args: [],
  2782. source: unescape('deepCopy%0A%09%5Eself'),
  2783. messageSends: [],
  2784. referencedClasses: []
  2785. }),
  2786. smalltalk.Boolean);
  2787. smalltalk.addMethod(
  2788. unescape('_ifTrue_'),
  2789. smalltalk.method({
  2790. selector: unescape('ifTrue%3A'),
  2791. category: 'controlling',
  2792. fn: function (aBlock){
  2793. var self=this;
  2794. return smalltalk.send(self, "_ifTrue_ifFalse_", [aBlock, (function(){return nil;})]);
  2795. return self;},
  2796. args: ["aBlock"],
  2797. source: unescape('ifTrue%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20aBlock%20ifFalse%3A%20%5B%5D'),
  2798. messageSends: ["ifTrue:ifFalse:"],
  2799. referencedClasses: []
  2800. }),
  2801. smalltalk.Boolean);
  2802. smalltalk.addMethod(
  2803. unescape('_ifFalse_'),
  2804. smalltalk.method({
  2805. selector: unescape('ifFalse%3A'),
  2806. category: 'controlling',
  2807. fn: function (aBlock){
  2808. var self=this;
  2809. return smalltalk.send(self, "_ifTrue_ifFalse_", [(function(){return nil;}), aBlock]);
  2810. return self;},
  2811. args: ["aBlock"],
  2812. source: unescape('ifFalse%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20%5B%5D%20ifFalse%3A%20aBlock'),
  2813. messageSends: ["ifTrue:ifFalse:"],
  2814. referencedClasses: []
  2815. }),
  2816. smalltalk.Boolean);
  2817. smalltalk.addMethod(
  2818. unescape('_ifFalse_ifTrue_'),
  2819. smalltalk.method({
  2820. selector: unescape('ifFalse%3AifTrue%3A'),
  2821. category: 'controlling',
  2822. fn: function (aBlock, anotherBlock){
  2823. var self=this;
  2824. return smalltalk.send(self, "_ifTrue_ifFalse_", [anotherBlock, aBlock]);
  2825. return self;},
  2826. args: ["aBlock", "anotherBlock"],
  2827. source: unescape('ifFalse%3A%20aBlock%20ifTrue%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20anotherBlock%20ifFalse%3A%20aBlock'),
  2828. messageSends: ["ifTrue:ifFalse:"],
  2829. referencedClasses: []
  2830. }),
  2831. smalltalk.Boolean);
  2832. smalltalk.addMethod(
  2833. unescape('_ifTrue_ifFalse_'),
  2834. smalltalk.method({
  2835. selector: unescape('ifTrue%3AifFalse%3A'),
  2836. category: 'controlling',
  2837. fn: function (aBlock, anotherBlock){
  2838. var self=this;
  2839. if(self == true) {
  2840. return aBlock();
  2841. } else {
  2842. return anotherBlock();
  2843. }
  2844. ;
  2845. return self;},
  2846. args: ["aBlock", "anotherBlock"],
  2847. 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'),
  2848. messageSends: [],
  2849. referencedClasses: []
  2850. }),
  2851. smalltalk.Boolean);
  2852. smalltalk.addMethod(
  2853. unescape('_and_'),
  2854. smalltalk.method({
  2855. selector: unescape('and%3A'),
  2856. category: 'controlling',
  2857. fn: function (aBlock){
  2858. var self=this;
  2859. return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [aBlock, (function(){return false;})]);
  2860. return self;},
  2861. args: ["aBlock"],
  2862. 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'),
  2863. messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
  2864. referencedClasses: []
  2865. }),
  2866. smalltalk.Boolean);
  2867. smalltalk.addMethod(
  2868. unescape('_or_'),
  2869. smalltalk.method({
  2870. selector: unescape('or%3A'),
  2871. category: 'controlling',
  2872. fn: function (aBlock){
  2873. var self=this;
  2874. return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [(function(){return true;}), aBlock]);
  2875. return self;},
  2876. args: ["aBlock"],
  2877. 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'),
  2878. messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
  2879. referencedClasses: []
  2880. }),
  2881. smalltalk.Boolean);
  2882. smalltalk.addMethod(
  2883. unescape('_not'),
  2884. smalltalk.method({
  2885. selector: unescape('not'),
  2886. category: 'controlling',
  2887. fn: function (){
  2888. var self=this;
  2889. return smalltalk.send(self, "__eq", [false]);
  2890. return self;},
  2891. args: [],
  2892. source: unescape('not%0A%09%5Eself%20%3D%20false'),
  2893. messageSends: [unescape("%3D")],
  2894. referencedClasses: []
  2895. }),
  2896. smalltalk.Boolean);
  2897. smalltalk.addMethod(
  2898. unescape('_printString'),
  2899. smalltalk.method({
  2900. selector: unescape('printString'),
  2901. category: 'printing',
  2902. fn: function (){
  2903. var self=this;
  2904. return self.toString();
  2905. return self;},
  2906. args: [],
  2907. source: unescape('printString%0A%09%3Creturn%20self.toString%28%29%3E'),
  2908. messageSends: [],
  2909. referencedClasses: []
  2910. }),
  2911. smalltalk.Boolean);
  2912. smalltalk.addMethod(
  2913. unescape('_asJSONObject'),
  2914. smalltalk.method({
  2915. selector: unescape('asJSONObject'),
  2916. category: 'converting',
  2917. fn: function (){
  2918. var self=this;
  2919. return self;
  2920. return self;},
  2921. args: [],
  2922. source: unescape('asJSONObject%0A%09%5Eself'),
  2923. messageSends: [],
  2924. referencedClasses: []
  2925. }),
  2926. smalltalk.Boolean);
  2927. smalltalk.addMethod(
  2928. unescape('_%26'),
  2929. smalltalk.method({
  2930. selector: unescape('%26'),
  2931. category: 'controlling',
  2932. fn: function (aBoolean){
  2933. var self=this;
  2934. if(self == true) {
  2935. return aBoolean;
  2936. } else {
  2937. return false;
  2938. }
  2939. ;
  2940. return self;},
  2941. args: ["aBoolean"],
  2942. 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'),
  2943. messageSends: [],
  2944. referencedClasses: []
  2945. }),
  2946. smalltalk.Boolean);
  2947. smalltalk.addMethod(
  2948. unescape('_%7C'),
  2949. smalltalk.method({
  2950. selector: unescape('%7C'),
  2951. category: 'controlling',
  2952. fn: function (aBoolean){
  2953. var self=this;
  2954. if(self == true) {
  2955. return true;
  2956. } else {
  2957. return aBoolean;
  2958. }
  2959. ;
  2960. return self;},
  2961. args: ["aBoolean"],
  2962. 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'),
  2963. messageSends: [],
  2964. referencedClasses: []
  2965. }),
  2966. smalltalk.Boolean);
  2967. smalltalk.addMethod(
  2968. unescape('__eq_eq'),
  2969. smalltalk.method({
  2970. selector: unescape('%3D%3D'),
  2971. category: 'comparing',
  2972. fn: function (aBoolean){
  2973. var self=this;
  2974. 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}})})();})]));
  2975. return Boolean(self == true) === Boolean(aBoolean == true);
  2976. return self;
  2977. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  2978. args: ["aBoolean"],
  2979. 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'),
  2980. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  2981. referencedClasses: []
  2982. }),
  2983. smalltalk.Boolean);
  2984. smalltalk.addClass('Date', smalltalk.Object, [], 'Kernel');
  2985. smalltalk.Date.comment=unescape('The%20Date%20class%20is%20used%20to%20work%20with%20dates%20and%20times.')
  2986. smalltalk.addMethod(
  2987. unescape('_year'),
  2988. smalltalk.method({
  2989. selector: unescape('year'),
  2990. category: 'accessing',
  2991. fn: function (){
  2992. var self=this;
  2993. return self.getFullYear();
  2994. return self;},
  2995. args: [],
  2996. source: unescape('year%0A%09%3Creturn%20self.getFullYear%28%29%3E'),
  2997. messageSends: [],
  2998. referencedClasses: []
  2999. }),
  3000. smalltalk.Date);
  3001. smalltalk.addMethod(
  3002. unescape('_month'),
  3003. smalltalk.method({
  3004. selector: unescape('month'),
  3005. category: 'accessing',
  3006. fn: function (){
  3007. var self=this;
  3008. return self.getMonth() + 1;
  3009. return self;},
  3010. args: [],
  3011. source: unescape('month%0A%09%3Creturn%20self.getMonth%28%29%20+%201%3E'),
  3012. messageSends: [],
  3013. referencedClasses: []
  3014. }),
  3015. smalltalk.Date);
  3016. smalltalk.addMethod(
  3017. unescape('_month_'),
  3018. smalltalk.method({
  3019. selector: unescape('month%3A'),
  3020. category: 'accessing',
  3021. fn: function (aNumber){
  3022. var self=this;
  3023. self.setMonth(aNumber - 1);
  3024. return self;},
  3025. args: ["aNumber"],
  3026. source: unescape('month%3A%20aNumber%0A%09%3Cself.setMonth%28aNumber%20-%201%29%3E'),
  3027. messageSends: [],
  3028. referencedClasses: []
  3029. }),
  3030. smalltalk.Date);
  3031. smalltalk.addMethod(
  3032. unescape('_day'),
  3033. smalltalk.method({
  3034. selector: unescape('day'),
  3035. category: 'accessing',
  3036. fn: function (){
  3037. var self=this;
  3038. return smalltalk.send(self, "_dayOfWeek", []);
  3039. return self;},
  3040. args: [],
  3041. source: unescape('day%0A%09%5Eself%20dayOfWeek'),
  3042. messageSends: ["dayOfWeek"],
  3043. referencedClasses: []
  3044. }),
  3045. smalltalk.Date);
  3046. smalltalk.addMethod(
  3047. unescape('_dayOfWeek'),
  3048. smalltalk.method({
  3049. selector: unescape('dayOfWeek'),
  3050. category: 'accessing',
  3051. fn: function (){
  3052. var self=this;
  3053. return self.getDay() + 1;
  3054. return self;},
  3055. args: [],
  3056. source: unescape('dayOfWeek%0A%09%3Creturn%20self.getDay%28%29%20+%201%3E'),
  3057. messageSends: [],
  3058. referencedClasses: []
  3059. }),
  3060. smalltalk.Date);
  3061. smalltalk.addMethod(
  3062. unescape('_dayOfWeek_'),
  3063. smalltalk.method({
  3064. selector: unescape('dayOfWeek%3A'),
  3065. category: 'accessing',
  3066. fn: function (aNumber){
  3067. var self=this;
  3068. return self.setDay(aNumber - 1);
  3069. return self;},
  3070. args: ["aNumber"],
  3071. source: unescape('dayOfWeek%3A%20aNumber%0A%09%3Creturn%20self.setDay%28aNumber%20-%201%29%3E'),
  3072. messageSends: [],
  3073. referencedClasses: []
  3074. }),
  3075. smalltalk.Date);
  3076. smalltalk.addMethod(
  3077. unescape('_day_'),
  3078. smalltalk.method({
  3079. selector: unescape('day%3A'),
  3080. category: 'accessing',
  3081. fn: function (aNumber){
  3082. var self=this;
  3083. smalltalk.send(self, "_day_", [aNumber]);
  3084. return self;},
  3085. args: ["aNumber"],
  3086. source: unescape('day%3A%20aNumber%0A%09self%20day%3A%20aNumber'),
  3087. messageSends: ["day:"],
  3088. referencedClasses: []
  3089. }),
  3090. smalltalk.Date);
  3091. smalltalk.addMethod(
  3092. unescape('_year_'),
  3093. smalltalk.method({
  3094. selector: unescape('year%3A'),
  3095. category: 'accessing',
  3096. fn: function (aNumber){
  3097. var self=this;
  3098. self.setFullYear(aNumber);
  3099. return self;},
  3100. args: ["aNumber"],
  3101. source: unescape('year%3A%20aNumber%0A%09%3Cself.setFullYear%28aNumber%29%3E'),
  3102. messageSends: [],
  3103. referencedClasses: []
  3104. }),
  3105. smalltalk.Date);
  3106. smalltalk.addMethod(
  3107. unescape('_dayOfMonth'),
  3108. smalltalk.method({
  3109. selector: unescape('dayOfMonth'),
  3110. category: 'accessing',
  3111. fn: function (){
  3112. var self=this;
  3113. return self.getDate();
  3114. return self;},
  3115. args: [],
  3116. source: unescape('dayOfMonth%0A%09%3Creturn%20self.getDate%28%29%3E'),
  3117. messageSends: [],
  3118. referencedClasses: []
  3119. }),
  3120. smalltalk.Date);
  3121. smalltalk.addMethod(
  3122. unescape('_dayOfMonth_'),
  3123. smalltalk.method({
  3124. selector: unescape('dayOfMonth%3A'),
  3125. category: 'accessing',
  3126. fn: function (aNumber){
  3127. var self=this;
  3128. self.setDate(aNumber);
  3129. return self;},
  3130. args: ["aNumber"],
  3131. source: unescape('dayOfMonth%3A%20aNumber%0A%09%3Cself.setDate%28aNumber%29%3E'),
  3132. messageSends: [],
  3133. referencedClasses: []
  3134. }),
  3135. smalltalk.Date);
  3136. smalltalk.addMethod(
  3137. unescape('_asString'),
  3138. smalltalk.method({
  3139. selector: unescape('asString'),
  3140. category: 'converting',
  3141. fn: function (){
  3142. var self=this;
  3143. return self.toString();
  3144. return self;},
  3145. args: [],
  3146. source: unescape('asString%0A%09%3Creturn%20self.toString%28%29%3E'),
  3147. messageSends: [],
  3148. referencedClasses: []
  3149. }),
  3150. smalltalk.Date);
  3151. smalltalk.addMethod(
  3152. unescape('_printString'),
  3153. smalltalk.method({
  3154. selector: unescape('printString'),
  3155. category: 'printing',
  3156. fn: function (){
  3157. var self=this;
  3158. return smalltalk.send(self, "_asString", []);
  3159. return self;},
  3160. args: [],
  3161. source: unescape('printString%0A%09%5Eself%20asString'),
  3162. messageSends: ["asString"],
  3163. referencedClasses: []
  3164. }),
  3165. smalltalk.Date);
  3166. smalltalk.addMethod(
  3167. unescape('_asMilliseconds'),
  3168. smalltalk.method({
  3169. selector: unescape('asMilliseconds'),
  3170. category: 'converting',
  3171. fn: function (){
  3172. var self=this;
  3173. return smalltalk.send(self, "_time", []);
  3174. return self;},
  3175. args: [],
  3176. source: unescape('asMilliseconds%0A%09%5Eself%20time'),
  3177. messageSends: ["time"],
  3178. referencedClasses: []
  3179. }),
  3180. smalltalk.Date);
  3181. smalltalk.addMethod(
  3182. unescape('_time'),
  3183. smalltalk.method({
  3184. selector: unescape('time'),
  3185. category: 'accessing',
  3186. fn: function (){
  3187. var self=this;
  3188. return self.getTime();
  3189. return self;},
  3190. args: [],
  3191. source: unescape('time%0A%09%3Creturn%20self.getTime%28%29%3E'),
  3192. messageSends: [],
  3193. referencedClasses: []
  3194. }),
  3195. smalltalk.Date);
  3196. smalltalk.addMethod(
  3197. unescape('_time_'),
  3198. smalltalk.method({
  3199. selector: unescape('time%3A'),
  3200. category: 'accessing',
  3201. fn: function (aNumber){
  3202. var self=this;
  3203. self.setTime(aNumber);
  3204. return self;},
  3205. args: ["aNumber"],
  3206. source: unescape('time%3A%20aNumber%0A%09%3Cself.setTime%28aNumber%29%3E'),
  3207. messageSends: [],
  3208. referencedClasses: []
  3209. }),
  3210. smalltalk.Date);
  3211. smalltalk.addMethod(
  3212. unescape('_asDateString'),
  3213. smalltalk.method({
  3214. selector: unescape('asDateString'),
  3215. category: 'converting',
  3216. fn: function (){
  3217. var self=this;
  3218. return self.toDateString();
  3219. return self;},
  3220. args: [],
  3221. source: unescape('asDateString%0A%09%3Creturn%20self.toDateString%28%29%3E'),
  3222. messageSends: [],
  3223. referencedClasses: []
  3224. }),
  3225. smalltalk.Date);
  3226. smalltalk.addMethod(
  3227. unescape('_asTimeString'),
  3228. smalltalk.method({
  3229. selector: unescape('asTimeString'),
  3230. category: 'converting',
  3231. fn: function (){
  3232. var self=this;
  3233. return self.toTimeString();
  3234. return self;},
  3235. args: [],
  3236. source: unescape('asTimeString%0A%09%3Creturn%20self.toTimeString%28%29%3E'),
  3237. messageSends: [],
  3238. referencedClasses: []
  3239. }),
  3240. smalltalk.Date);
  3241. smalltalk.addMethod(
  3242. unescape('_asLocaleString'),
  3243. smalltalk.method({
  3244. selector: unescape('asLocaleString'),
  3245. category: 'converting',
  3246. fn: function (){
  3247. var self=this;
  3248. return self.toLocaleString();
  3249. return self;},
  3250. args: [],
  3251. source: unescape('asLocaleString%0A%09%3Creturn%20self.toLocaleString%28%29%3E'),
  3252. messageSends: [],
  3253. referencedClasses: []
  3254. }),
  3255. smalltalk.Date);
  3256. smalltalk.addMethod(
  3257. unescape('_asNumber'),
  3258. smalltalk.method({
  3259. selector: unescape('asNumber'),
  3260. category: 'converting',
  3261. fn: function (){
  3262. var self=this;
  3263. return smalltalk.send(self, "_asMilliseconds", []);
  3264. return self;},
  3265. args: [],
  3266. source: unescape('asNumber%0A%09%5Eself%20asMilliseconds'),
  3267. messageSends: ["asMilliseconds"],
  3268. referencedClasses: []
  3269. }),
  3270. smalltalk.Date);
  3271. smalltalk.addMethod(
  3272. unescape('_hours_'),
  3273. smalltalk.method({
  3274. selector: unescape('hours%3A'),
  3275. category: 'accessing',
  3276. fn: function (aNumber){
  3277. var self=this;
  3278. self.setHours(aNumber);
  3279. return self;},
  3280. args: ["aNumber"],
  3281. source: unescape('hours%3A%20aNumber%0A%09%3Cself.setHours%28aNumber%29%3E'),
  3282. messageSends: [],
  3283. referencedClasses: []
  3284. }),
  3285. smalltalk.Date);
  3286. smalltalk.addMethod(
  3287. unescape('_minutes_'),
  3288. smalltalk.method({
  3289. selector: unescape('minutes%3A'),
  3290. category: 'accessing',
  3291. fn: function (aNumber){
  3292. var self=this;
  3293. self.setMinutes(aNumber);
  3294. return self;},
  3295. args: ["aNumber"],
  3296. source: unescape('minutes%3A%20aNumber%0A%09%3Cself.setMinutes%28aNumber%29%3E'),
  3297. messageSends: [],
  3298. referencedClasses: []
  3299. }),
  3300. smalltalk.Date);
  3301. smalltalk.addMethod(
  3302. unescape('_seconds_'),
  3303. smalltalk.method({
  3304. selector: unescape('seconds%3A'),
  3305. category: 'accessing',
  3306. fn: function (aNumber){
  3307. var self=this;
  3308. self.setSeconds(aNumber);
  3309. return self;},
  3310. args: ["aNumber"],
  3311. source: unescape('seconds%3A%20aNumber%0A%09%3Cself.setSeconds%28aNumber%29%3E'),
  3312. messageSends: [],
  3313. referencedClasses: []
  3314. }),
  3315. smalltalk.Date);
  3316. smalltalk.addMethod(
  3317. unescape('_milliseconds_'),
  3318. smalltalk.method({
  3319. selector: unescape('milliseconds%3A'),
  3320. category: 'accessing',
  3321. fn: function (aNumber){
  3322. var self=this;
  3323. self.setMilliseconds(aNumber);
  3324. return self;},
  3325. args: ["aNumber"],
  3326. source: unescape('milliseconds%3A%20aNumber%0A%09%3Cself.setMilliseconds%28aNumber%29%3E'),
  3327. messageSends: [],
  3328. referencedClasses: []
  3329. }),
  3330. smalltalk.Date);
  3331. smalltalk.addMethod(
  3332. unescape('_hours'),
  3333. smalltalk.method({
  3334. selector: unescape('hours'),
  3335. category: 'accessing',
  3336. fn: function (){
  3337. var self=this;
  3338. return self.getHours();
  3339. return self;},
  3340. args: [],
  3341. source: unescape('hours%0A%09%3Creturn%20self.getHours%28%29%3E'),
  3342. messageSends: [],
  3343. referencedClasses: []
  3344. }),
  3345. smalltalk.Date);
  3346. smalltalk.addMethod(
  3347. unescape('_minutes'),
  3348. smalltalk.method({
  3349. selector: unescape('minutes'),
  3350. category: 'accessing',
  3351. fn: function (){
  3352. var self=this;
  3353. return self.getMinutes();
  3354. return self;},
  3355. args: [],
  3356. source: unescape('minutes%0A%09%3Creturn%20self.getMinutes%28%29%3E'),
  3357. messageSends: [],
  3358. referencedClasses: []
  3359. }),
  3360. smalltalk.Date);
  3361. smalltalk.addMethod(
  3362. unescape('_seconds'),
  3363. smalltalk.method({
  3364. selector: unescape('seconds'),
  3365. category: 'accessing',
  3366. fn: function (){
  3367. var self=this;
  3368. return self.getSeconds();
  3369. return self;},
  3370. args: [],
  3371. source: unescape('seconds%0A%09%3Creturn%20self.getSeconds%28%29%3E'),
  3372. messageSends: [],
  3373. referencedClasses: []
  3374. }),
  3375. smalltalk.Date);
  3376. smalltalk.addMethod(
  3377. unescape('_milliseconds'),
  3378. smalltalk.method({
  3379. selector: unescape('milliseconds'),
  3380. category: 'accessing',
  3381. fn: function (){
  3382. var self=this;
  3383. return self.getMilliseconds();
  3384. return self;},
  3385. args: [],
  3386. source: unescape('milliseconds%0A%09%3Creturn%20self.getMilliseconds%28%29%3E'),
  3387. messageSends: [],
  3388. referencedClasses: []
  3389. }),
  3390. smalltalk.Date);
  3391. smalltalk.addMethod(
  3392. unescape('__lt'),
  3393. smalltalk.method({
  3394. selector: unescape('%3C'),
  3395. category: 'comparing',
  3396. fn: function (aDate){
  3397. var self=this;
  3398. return self < aDate;
  3399. return self;},
  3400. args: ["aDate"],
  3401. source: unescape('%3C%20aDate%0A%09%3Creturn%20self%20%3C%20aDate%3E'),
  3402. messageSends: [],
  3403. referencedClasses: []
  3404. }),
  3405. smalltalk.Date);
  3406. smalltalk.addMethod(
  3407. unescape('__gt'),
  3408. smalltalk.method({
  3409. selector: unescape('%3E'),
  3410. category: 'comparing',
  3411. fn: function (aDate){
  3412. var self=this;
  3413. return self > aDate;
  3414. return self;},
  3415. args: ["aDate"],
  3416. source: unescape('%3E%20aDate%0A%09%3Creturn%20self%20%3E%3E%20aDate%3E'),
  3417. messageSends: [],
  3418. referencedClasses: []
  3419. }),
  3420. smalltalk.Date);
  3421. smalltalk.addMethod(
  3422. unescape('__lt_eq'),
  3423. smalltalk.method({
  3424. selector: unescape('%3C%3D'),
  3425. category: 'comparing',
  3426. fn: function (aDate){
  3427. var self=this;
  3428. return self <= aDate;
  3429. return self;},
  3430. args: ["aDate"],
  3431. source: unescape('%3C%3D%20aDate%0A%09%3Creturn%20self%20%3C%3D%20aDate%3E'),
  3432. messageSends: [],
  3433. referencedClasses: []
  3434. }),
  3435. smalltalk.Date);
  3436. smalltalk.addMethod(
  3437. unescape('__gt_eq'),
  3438. smalltalk.method({
  3439. selector: unescape('%3E%3D'),
  3440. category: 'comparing',
  3441. fn: function (aDate){
  3442. var self=this;
  3443. return self >= aDate;
  3444. return self;},
  3445. args: ["aDate"],
  3446. source: unescape('%3E%3D%20aDate%0A%09%3Creturn%20self%20%3E%3E%3D%20aDate%3E'),
  3447. messageSends: [],
  3448. referencedClasses: []
  3449. }),
  3450. smalltalk.Date);
  3451. smalltalk.addMethod(
  3452. unescape('__minus'),
  3453. smalltalk.method({
  3454. selector: unescape('-'),
  3455. category: 'arithmetic',
  3456. fn: function (aDate){
  3457. var self=this;
  3458. return self - aDate;
  3459. return self;},
  3460. args: ["aDate"],
  3461. source: unescape('-%20aDate%0A%09%3Creturn%20self%20-%20aDate%3E'),
  3462. messageSends: [],
  3463. referencedClasses: []
  3464. }),
  3465. smalltalk.Date);
  3466. smalltalk.addMethod(
  3467. unescape('__plus'),
  3468. smalltalk.method({
  3469. selector: unescape('+'),
  3470. category: 'arithmetic',
  3471. fn: function (aDate){
  3472. var self=this;
  3473. return self + aDate;
  3474. return self;},
  3475. args: ["aDate"],
  3476. source: unescape('+%20aDate%0A%09%3Creturn%20self%20+%20aDate%3E'),
  3477. messageSends: [],
  3478. referencedClasses: []
  3479. }),
  3480. smalltalk.Date);
  3481. smalltalk.addMethod(
  3482. unescape('_asJSONObject'),
  3483. smalltalk.method({
  3484. selector: unescape('asJSONObject'),
  3485. category: 'converting',
  3486. fn: function (){
  3487. var self=this;
  3488. return self;
  3489. return self;},
  3490. args: [],
  3491. source: unescape('asJSONObject%0A%09%5Eself'),
  3492. messageSends: [],
  3493. referencedClasses: []
  3494. }),
  3495. smalltalk.Date);
  3496. smalltalk.addMethod(
  3497. unescape('_new_'),
  3498. smalltalk.method({
  3499. selector: unescape('new%3A'),
  3500. category: 'instance creation',
  3501. fn: function (anObject){
  3502. var self=this;
  3503. return new Date(anObject);
  3504. return self;},
  3505. args: ["anObject"],
  3506. source: unescape('new%3A%20anObject%0A%09%3Creturn%20new%20Date%28anObject%29%3E'),
  3507. messageSends: [],
  3508. referencedClasses: []
  3509. }),
  3510. smalltalk.Date.klass);
  3511. smalltalk.addMethod(
  3512. unescape('_fromString_'),
  3513. smalltalk.method({
  3514. selector: unescape('fromString%3A'),
  3515. category: 'instance creation',
  3516. fn: function (aString){
  3517. var self=this;
  3518. return smalltalk.send(self, "_new_", [aString]);
  3519. return self;},
  3520. args: ["aString"],
  3521. 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'),
  3522. messageSends: ["new:"],
  3523. referencedClasses: []
  3524. }),
  3525. smalltalk.Date.klass);
  3526. smalltalk.addMethod(
  3527. unescape('_fromSeconds_'),
  3528. smalltalk.method({
  3529. selector: unescape('fromSeconds%3A'),
  3530. category: 'instance creation',
  3531. fn: function (aNumber){
  3532. var self=this;
  3533. return smalltalk.send(self, "_fromMilliseconds_", [((($receiver = aNumber).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))]);
  3534. return self;},
  3535. args: ["aNumber"],
  3536. source: unescape('fromSeconds%3A%20aNumber%0A%09%5Eself%20fromMilliseconds%3A%20aNumber%20*%201000'),
  3537. messageSends: ["fromMilliseconds:", unescape("*")],
  3538. referencedClasses: []
  3539. }),
  3540. smalltalk.Date.klass);
  3541. smalltalk.addMethod(
  3542. unescape('_fromMilliseconds_'),
  3543. smalltalk.method({
  3544. selector: unescape('fromMilliseconds%3A'),
  3545. category: 'instance creation',
  3546. fn: function (aNumber){
  3547. var self=this;
  3548. return smalltalk.send(self, "_new_", [aNumber]);
  3549. return self;},
  3550. args: ["aNumber"],
  3551. source: unescape('fromMilliseconds%3A%20aNumber%0A%09%5Eself%20new%3A%20aNumber'),
  3552. messageSends: ["new:"],
  3553. referencedClasses: []
  3554. }),
  3555. smalltalk.Date.klass);
  3556. smalltalk.addMethod(
  3557. unescape('_today'),
  3558. smalltalk.method({
  3559. selector: unescape('today'),
  3560. category: 'instance creation',
  3561. fn: function (){
  3562. var self=this;
  3563. return smalltalk.send(self, "_new", []);
  3564. return self;},
  3565. args: [],
  3566. source: unescape('today%0A%09%5Eself%20new'),
  3567. messageSends: ["new"],
  3568. referencedClasses: []
  3569. }),
  3570. smalltalk.Date.klass);
  3571. smalltalk.addMethod(
  3572. unescape('_now'),
  3573. smalltalk.method({
  3574. selector: unescape('now'),
  3575. category: 'instance creation',
  3576. fn: function (){
  3577. var self=this;
  3578. return smalltalk.send(self, "_today", []);
  3579. return self;},
  3580. args: [],
  3581. source: unescape('now%0A%09%5Eself%20today'),
  3582. messageSends: ["today"],
  3583. referencedClasses: []
  3584. }),
  3585. smalltalk.Date.klass);
  3586. smalltalk.addMethod(
  3587. unescape('_millisecondsToRun_'),
  3588. smalltalk.method({
  3589. selector: unescape('millisecondsToRun%3A'),
  3590. category: 'instance creation',
  3591. fn: function (aBlock){
  3592. var self=this;
  3593. var t=nil;
  3594. t=smalltalk.send((smalltalk.Date || Date), "_now", []);
  3595. smalltalk.send(aBlock, "_value", []);
  3596. return ((($receiver = smalltalk.send((smalltalk.Date || Date), "_now", [])).klass === smalltalk.Number) ? $receiver -t : smalltalk.send($receiver, "__minus", [t]));
  3597. return self;},
  3598. args: ["aBlock"],
  3599. 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'),
  3600. messageSends: ["now", "value", unescape("-")],
  3601. referencedClasses: [smalltalk.Date]
  3602. }),
  3603. smalltalk.Date.klass);
  3604. smalltalk.addClass('UndefinedObject', smalltalk.Object, [], 'Kernel');
  3605. smalltalk.addMethod(
  3606. unescape('_subclass_instanceVariableNames_'),
  3607. smalltalk.method({
  3608. selector: unescape('subclass%3AinstanceVariableNames%3A'),
  3609. category: 'class creation',
  3610. fn: function (aString, anotherString){
  3611. var self=this;
  3612. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
  3613. return self;},
  3614. args: ["aString", "anotherString"],
  3615. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%20package%3A%20nil'),
  3616. messageSends: ["subclass:instanceVariableNames:package:"],
  3617. referencedClasses: []
  3618. }),
  3619. smalltalk.UndefinedObject);
  3620. smalltalk.addMethod(
  3621. unescape('_subclass_instanceVariableNames_category_'),
  3622. smalltalk.method({
  3623. selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
  3624. category: 'class creation',
  3625. fn: function (aString, aString2, aString3){
  3626. var self=this;
  3627. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  3628. return self;},
  3629. args: ["aString", "aString2", "aString3"],
  3630. 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'),
  3631. messageSends: ["subclass:instanceVariableNames:package:"],
  3632. referencedClasses: []
  3633. }),
  3634. smalltalk.UndefinedObject);
  3635. smalltalk.addMethod(
  3636. unescape('_shallowCopy'),
  3637. smalltalk.method({
  3638. selector: unescape('shallowCopy'),
  3639. category: 'copying',
  3640. fn: function (){
  3641. var self=this;
  3642. return self;
  3643. return self;},
  3644. args: [],
  3645. source: unescape('shallowCopy%0A%09%5Eself'),
  3646. messageSends: [],
  3647. referencedClasses: []
  3648. }),
  3649. smalltalk.UndefinedObject);
  3650. smalltalk.addMethod(
  3651. unescape('_deepCopy'),
  3652. smalltalk.method({
  3653. selector: unescape('deepCopy'),
  3654. category: 'copying',
  3655. fn: function (){
  3656. var self=this;
  3657. return self;
  3658. return self;},
  3659. args: [],
  3660. source: unescape('deepCopy%0A%09%5Eself'),
  3661. messageSends: [],
  3662. referencedClasses: []
  3663. }),
  3664. smalltalk.UndefinedObject);
  3665. smalltalk.addMethod(
  3666. unescape('_ifNil_'),
  3667. smalltalk.method({
  3668. selector: unescape('ifNil%3A'),
  3669. category: 'testing',
  3670. fn: function (aBlock){
  3671. var self=this;
  3672. return smalltalk.send(self, "_ifNil_ifNotNil_", [aBlock, (function(){return nil;})]);
  3673. return self;},
  3674. args: ["aBlock"],
  3675. source: unescape('ifNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifNil%3A%20aBlock%20ifNotNil%3A%20%5B%5D'),
  3676. messageSends: ["ifNil:ifNotNil:"],
  3677. referencedClasses: []
  3678. }),
  3679. smalltalk.UndefinedObject);
  3680. smalltalk.addMethod(
  3681. unescape('_ifNotNil_'),
  3682. smalltalk.method({
  3683. selector: unescape('ifNotNil%3A'),
  3684. category: 'testing',
  3685. fn: function (aBlock){
  3686. var self=this;
  3687. return self;
  3688. return self;},
  3689. args: ["aBlock"],
  3690. source: unescape('ifNotNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself'),
  3691. messageSends: [],
  3692. referencedClasses: []
  3693. }),
  3694. smalltalk.UndefinedObject);
  3695. smalltalk.addMethod(
  3696. unescape('_ifNil_ifNotNil_'),
  3697. smalltalk.method({
  3698. selector: unescape('ifNil%3AifNotNil%3A'),
  3699. category: 'testing',
  3700. fn: function (aBlock, anotherBlock){
  3701. var self=this;
  3702. return smalltalk.send(aBlock, "_value", []);
  3703. return self;},
  3704. args: ["aBlock", "anotherBlock"],
  3705. source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  3706. messageSends: ["value"],
  3707. referencedClasses: []
  3708. }),
  3709. smalltalk.UndefinedObject);
  3710. smalltalk.addMethod(
  3711. unescape('_ifNotNil_ifNil_'),
  3712. smalltalk.method({
  3713. selector: unescape('ifNotNil%3AifNil%3A'),
  3714. category: 'testing',
  3715. fn: function (aBlock, anotherBlock){
  3716. var self=this;
  3717. return smalltalk.send(anotherBlock, "_value", []);
  3718. return self;},
  3719. args: ["aBlock", "anotherBlock"],
  3720. source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EanotherBlock%20value'),
  3721. messageSends: ["value"],
  3722. referencedClasses: []
  3723. }),
  3724. smalltalk.UndefinedObject);
  3725. smalltalk.addMethod(
  3726. unescape('_isNil'),
  3727. smalltalk.method({
  3728. selector: unescape('isNil'),
  3729. category: 'testing',
  3730. fn: function (){
  3731. var self=this;
  3732. return true;
  3733. return self;},
  3734. args: [],
  3735. source: unescape('isNil%0A%09%5Etrue'),
  3736. messageSends: [],
  3737. referencedClasses: []
  3738. }),
  3739. smalltalk.UndefinedObject);
  3740. smalltalk.addMethod(
  3741. unescape('_notNil'),
  3742. smalltalk.method({
  3743. selector: unescape('notNil'),
  3744. category: 'testing',
  3745. fn: function (){
  3746. var self=this;
  3747. return false;
  3748. return self;},
  3749. args: [],
  3750. source: unescape('notNil%0A%09%5Efalse'),
  3751. messageSends: [],
  3752. referencedClasses: []
  3753. }),
  3754. smalltalk.UndefinedObject);
  3755. smalltalk.addMethod(
  3756. unescape('_printString'),
  3757. smalltalk.method({
  3758. selector: unescape('printString'),
  3759. category: 'printing',
  3760. fn: function (){
  3761. var self=this;
  3762. return "nil";
  3763. return self;},
  3764. args: [],
  3765. source: unescape('printString%0A%20%20%20%20%5E%27nil%27'),
  3766. messageSends: [],
  3767. referencedClasses: []
  3768. }),
  3769. smalltalk.UndefinedObject);
  3770. smalltalk.addMethod(
  3771. unescape('_subclass_instanceVariableNames_package_'),
  3772. smalltalk.method({
  3773. selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
  3774. category: 'class creation',
  3775. fn: function (aString, aString2, aString3){
  3776. var self=this;
  3777. return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
  3778. return self;},
  3779. args: ["aString", "aString2", "aString3"],
  3780. 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'),
  3781. messageSends: ["superclass:subclass:instanceVariableNames:package:", "new"],
  3782. referencedClasses: [smalltalk.nil]
  3783. }),
  3784. smalltalk.UndefinedObject);
  3785. smalltalk.addMethod(
  3786. unescape('_new'),
  3787. smalltalk.method({
  3788. selector: unescape('new'),
  3789. category: 'instance creation',
  3790. fn: function (){
  3791. var self=this;
  3792. smalltalk.send(self, "_error_", ["You cannot create new instances of UndefinedObject. Use nil"]);
  3793. return self;},
  3794. args: [],
  3795. source: unescape('new%0A%09%20%20%20%20self%20error%3A%20%27You%20cannot%20create%20new%20instances%20of%20UndefinedObject.%20Use%20nil%27'),
  3796. messageSends: ["error:"],
  3797. referencedClasses: []
  3798. }),
  3799. smalltalk.UndefinedObject.klass);
  3800. smalltalk.addClass('Collection', smalltalk.Object, [], 'Kernel');
  3801. smalltalk.addMethod(
  3802. unescape('_size'),
  3803. smalltalk.method({
  3804. selector: unescape('size'),
  3805. category: 'accessing',
  3806. fn: function (){
  3807. var self=this;
  3808. smalltalk.send(self, "_subclassResponsibility", []);
  3809. return self;},
  3810. args: [],
  3811. source: unescape('size%0A%09self%20subclassResponsibility'),
  3812. messageSends: ["subclassResponsibility"],
  3813. referencedClasses: []
  3814. }),
  3815. smalltalk.Collection);
  3816. smalltalk.addMethod(
  3817. unescape('_readStream'),
  3818. smalltalk.method({
  3819. selector: unescape('readStream'),
  3820. category: 'accessing',
  3821. fn: function (){
  3822. var self=this;
  3823. return smalltalk.send(self, "_stream", []);
  3824. return self;},
  3825. args: [],
  3826. source: unescape('readStream%0A%09%5Eself%20stream'),
  3827. messageSends: ["stream"],
  3828. referencedClasses: []
  3829. }),
  3830. smalltalk.Collection);
  3831. smalltalk.addMethod(
  3832. unescape('_writeStream'),
  3833. smalltalk.method({
  3834. selector: unescape('writeStream'),
  3835. category: 'accessing',
  3836. fn: function (){
  3837. var self=this;
  3838. return smalltalk.send(self, "_stream", []);
  3839. return self;},
  3840. args: [],
  3841. source: unescape('writeStream%0A%09%5Eself%20stream'),
  3842. messageSends: ["stream"],
  3843. referencedClasses: []
  3844. }),
  3845. smalltalk.Collection);
  3846. smalltalk.addMethod(
  3847. unescape('_stream'),
  3848. smalltalk.method({
  3849. selector: unescape('stream'),
  3850. category: 'accessing',
  3851. fn: function (){
  3852. var self=this;
  3853. return smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [self]);
  3854. return self;},
  3855. args: [],
  3856. source: unescape('stream%0A%09%5Eself%20streamClass%20on%3A%20self'),
  3857. messageSends: ["on:", "streamClass"],
  3858. referencedClasses: []
  3859. }),
  3860. smalltalk.Collection);
  3861. smalltalk.addMethod(
  3862. unescape('_streamClass'),
  3863. smalltalk.method({
  3864. selector: unescape('streamClass'),
  3865. category: 'accessing',
  3866. fn: function (){
  3867. var self=this;
  3868. return smalltalk.send(smalltalk.send(self, "_class", []), "_streamClass", []);
  3869. return self;},
  3870. args: [],
  3871. source: unescape('streamClass%0A%09%5Eself%20class%20streamClass'),
  3872. messageSends: ["streamClass", "class"],
  3873. referencedClasses: []
  3874. }),
  3875. smalltalk.Collection);
  3876. smalltalk.addMethod(
  3877. unescape('_add_'),
  3878. smalltalk.method({
  3879. selector: unescape('add%3A'),
  3880. category: 'adding/removing',
  3881. fn: function (anObject){
  3882. var self=this;
  3883. smalltalk.send(self, "_subclassResponsibility", []);
  3884. return self;},
  3885. args: ["anObject"],
  3886. source: unescape('add%3A%20anObject%0A%09self%20subclassResponsibility'),
  3887. messageSends: ["subclassResponsibility"],
  3888. referencedClasses: []
  3889. }),
  3890. smalltalk.Collection);
  3891. smalltalk.addMethod(
  3892. unescape('_addAll_'),
  3893. smalltalk.method({
  3894. selector: unescape('addAll%3A'),
  3895. category: 'adding/removing',
  3896. fn: function (aCollection){
  3897. var self=this;
  3898. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_add_", [each]);})]);
  3899. return aCollection;
  3900. return self;},
  3901. args: ["aCollection"],
  3902. 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'),
  3903. messageSends: ["do:", "add:"],
  3904. referencedClasses: []
  3905. }),
  3906. smalltalk.Collection);
  3907. smalltalk.addMethod(
  3908. unescape('__comma'),
  3909. smalltalk.method({
  3910. selector: unescape('%2C'),
  3911. category: 'copying',
  3912. fn: function (aCollection){
  3913. var self=this;
  3914. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  3915. return self;},
  3916. args: ["aCollection"],
  3917. 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'),
  3918. messageSends: ["addAll:", "yourself", "copy"],
  3919. referencedClasses: []
  3920. }),
  3921. smalltalk.Collection);
  3922. smalltalk.addMethod(
  3923. unescape('_copyWith_'),
  3924. smalltalk.method({
  3925. selector: unescape('copyWith%3A'),
  3926. category: 'copying',
  3927. fn: function (anObject){
  3928. var self=this;
  3929. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  3930. return self;},
  3931. args: ["anObject"],
  3932. source: unescape('copyWith%3A%20anObject%0A%09%5Eself%20copy%20add%3A%20anObject%3B%20yourself'),
  3933. messageSends: ["add:", "yourself", "copy"],
  3934. referencedClasses: []
  3935. }),
  3936. smalltalk.Collection);
  3937. smalltalk.addMethod(
  3938. unescape('_copyWithAll_'),
  3939. smalltalk.method({
  3940. selector: unescape('copyWithAll%3A'),
  3941. category: 'copying',
  3942. fn: function (aCollection){
  3943. var self=this;
  3944. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  3945. return self;},
  3946. args: ["aCollection"],
  3947. source: unescape('copyWithAll%3A%20aCollection%0A%09%5Eself%20copy%20addAll%3A%20aCollection%3B%20yourself'),
  3948. messageSends: ["addAll:", "yourself", "copy"],
  3949. referencedClasses: []
  3950. }),
  3951. smalltalk.Collection);
  3952. smalltalk.addMethod(
  3953. unescape('_asArray'),
  3954. smalltalk.method({
  3955. selector: unescape('asArray'),
  3956. category: 'converting',
  3957. fn: function (){
  3958. var self=this;
  3959. var array=nil;
  3960. var index=nil;
  3961. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  3962. index=(0);
  3963. 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]);})]);
  3964. return array;
  3965. return self;},
  3966. args: [],
  3967. 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'),
  3968. messageSends: ["new", "do:", unescape("+"), "at:put:"],
  3969. referencedClasses: [smalltalk.Array]
  3970. }),
  3971. smalltalk.Collection);
  3972. smalltalk.addMethod(
  3973. unescape('_do_'),
  3974. smalltalk.method({
  3975. selector: unescape('do%3A'),
  3976. category: 'enumerating',
  3977. fn: function (aBlock){
  3978. var self=this;
  3979. for(var i=0;i<self.length;i++){aBlock(self[i]);};
  3980. return self;},
  3981. args: ["aBlock"],
  3982. source: unescape('do%3A%20aBlock%0A%09%3Cfor%28var%20i%3D0%3Bi%3Cself.length%3Bi++%29%7BaBlock%28self%5Bi%5D%29%3B%7D%3E'),
  3983. messageSends: [],
  3984. referencedClasses: []
  3985. }),
  3986. smalltalk.Collection);
  3987. smalltalk.addMethod(
  3988. unescape('_collect_'),
  3989. smalltalk.method({
  3990. selector: unescape('collect%3A'),
  3991. category: 'enumerating',
  3992. fn: function (aBlock){
  3993. var self=this;
  3994. var newCollection=nil;
  3995. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  3996. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(aBlock, "_value_", [each])]);})]);
  3997. return newCollection;
  3998. return self;},
  3999. args: ["aBlock"],
  4000. 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'),
  4001. messageSends: ["new", "class", "do:", "add:", "value:"],
  4002. referencedClasses: []
  4003. }),
  4004. smalltalk.Collection);
  4005. smalltalk.addMethod(
  4006. unescape('_detect_'),
  4007. smalltalk.method({
  4008. selector: unescape('detect%3A'),
  4009. category: 'enumerating',
  4010. fn: function (aBlock){
  4011. var self=this;
  4012. return smalltalk.send(self, "_detect_ifNone_", [aBlock, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4013. return self;},
  4014. args: ["aBlock"],
  4015. source: unescape('detect%3A%20aBlock%0A%09%5Eself%20detect%3A%20aBlock%20ifNone%3A%20%5Bself%20errorNotFound%5D'),
  4016. messageSends: ["detect:ifNone:", "errorNotFound"],
  4017. referencedClasses: []
  4018. }),
  4019. smalltalk.Collection);
  4020. smalltalk.addMethod(
  4021. unescape('_detect_ifNone_'),
  4022. smalltalk.method({
  4023. selector: unescape('detect%3AifNone%3A'),
  4024. category: 'enumerating',
  4025. fn: function (aBlock, anotherBlock){
  4026. var self=this;
  4027. for(var i = 0; i < self.length; i++)
  4028. if(aBlock(self[i]))
  4029. return self[i];
  4030. return anotherBlock();
  4031. ;
  4032. return self;},
  4033. args: ["aBlock", "anotherBlock"],
  4034. 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'),
  4035. messageSends: [],
  4036. referencedClasses: []
  4037. }),
  4038. smalltalk.Collection);
  4039. smalltalk.addMethod(
  4040. unescape('_do_separatedBy_'),
  4041. smalltalk.method({
  4042. selector: unescape('do%3AseparatedBy%3A'),
  4043. category: 'enumerating',
  4044. fn: function (aBlock, anotherBlock){
  4045. var self=this;
  4046. var first=nil;
  4047. first=true;
  4048. 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]);})]);
  4049. return self;},
  4050. args: ["aBlock", "anotherBlock"],
  4051. 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'),
  4052. messageSends: ["do:", "ifTrue:ifFalse:", "value", "value:"],
  4053. referencedClasses: []
  4054. }),
  4055. smalltalk.Collection);
  4056. smalltalk.addMethod(
  4057. unescape('_inject_into_'),
  4058. smalltalk.method({
  4059. selector: unescape('inject%3Ainto%3A'),
  4060. category: 'enumerating',
  4061. fn: function (anObject, aBlock){
  4062. var self=this;
  4063. var result=nil;
  4064. result=anObject;
  4065. smalltalk.send(self, "_do_", [(function(each){return result=smalltalk.send(aBlock, "_value_value_", [result, each]);})]);
  4066. return result;
  4067. return self;},
  4068. args: ["anObject", "aBlock"],
  4069. 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'),
  4070. messageSends: ["do:", "value:value:"],
  4071. referencedClasses: []
  4072. }),
  4073. smalltalk.Collection);
  4074. smalltalk.addMethod(
  4075. unescape('_reject_'),
  4076. smalltalk.method({
  4077. selector: unescape('reject%3A'),
  4078. category: 'enumerating',
  4079. fn: function (aBlock){
  4080. var self=this;
  4081. return smalltalk.send(self, "_select_", [(function(each){return smalltalk.send(smalltalk.send(aBlock, "_value_", [each]), "__eq", [false]);})]);
  4082. return self;},
  4083. args: ["aBlock"],
  4084. 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'),
  4085. messageSends: ["select:", unescape("%3D"), "value:"],
  4086. referencedClasses: []
  4087. }),
  4088. smalltalk.Collection);
  4089. smalltalk.addMethod(
  4090. unescape('_select_'),
  4091. smalltalk.method({
  4092. selector: unescape('select%3A'),
  4093. category: 'enumerating',
  4094. fn: function (aBlock){
  4095. var self=this;
  4096. var stream=nil;
  4097. stream=smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_new", []), "_writeStream", []);
  4098. 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]);})]));})]);
  4099. return smalltalk.send(stream, "_contents", []);
  4100. return self;},
  4101. args: ["aBlock"],
  4102. 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'),
  4103. messageSends: ["writeStream", "new", "class", "do:", "ifTrue:", "value:", "nextPut:", "contents"],
  4104. referencedClasses: []
  4105. }),
  4106. smalltalk.Collection);
  4107. smalltalk.addMethod(
  4108. unescape('_errorNotFound'),
  4109. smalltalk.method({
  4110. selector: unescape('errorNotFound'),
  4111. category: 'error handling',
  4112. fn: function (){
  4113. var self=this;
  4114. smalltalk.send(self, "_error_", ["Object is not in the collection"]);
  4115. return self;},
  4116. args: [],
  4117. source: unescape('errorNotFound%0A%09self%20error%3A%20%27Object%20is%20not%20in%20the%20collection%27'),
  4118. messageSends: ["error:"],
  4119. referencedClasses: []
  4120. }),
  4121. smalltalk.Collection);
  4122. smalltalk.addMethod(
  4123. unescape('_includes_'),
  4124. smalltalk.method({
  4125. selector: unescape('includes%3A'),
  4126. category: 'testing',
  4127. fn: function (anObject){
  4128. var self=this;
  4129. var i = self.length;
  4130. while (i--) {
  4131. if (smalltalk.send(self[i], "__eq", [anObject])) {return true;}
  4132. }
  4133. return false
  4134. ;
  4135. return self;},
  4136. args: ["anObject"],
  4137. 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'),
  4138. messageSends: [],
  4139. referencedClasses: []
  4140. }),
  4141. smalltalk.Collection);
  4142. smalltalk.addMethod(
  4143. unescape('_notEmpty'),
  4144. smalltalk.method({
  4145. selector: unescape('notEmpty'),
  4146. category: 'testing',
  4147. fn: function (){
  4148. var self=this;
  4149. return smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_not", []);
  4150. return self;},
  4151. args: [],
  4152. source: unescape('notEmpty%0A%09%5Eself%20isEmpty%20not'),
  4153. messageSends: ["not", "isEmpty"],
  4154. referencedClasses: []
  4155. }),
  4156. smalltalk.Collection);
  4157. smalltalk.addMethod(
  4158. unescape('_isEmpty'),
  4159. smalltalk.method({
  4160. selector: unescape('isEmpty'),
  4161. category: 'testing',
  4162. fn: function (){
  4163. var self=this;
  4164. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  4165. return self;},
  4166. args: [],
  4167. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  4168. messageSends: [unescape("%3D"), "size"],
  4169. referencedClasses: []
  4170. }),
  4171. smalltalk.Collection);
  4172. smalltalk.addMethod(
  4173. unescape('_remove_'),
  4174. smalltalk.method({
  4175. selector: unescape('remove%3A'),
  4176. category: 'adding/removing',
  4177. fn: function (anObject){
  4178. var self=this;
  4179. smalltalk.send(self, "_subclassResponsibility", []);
  4180. return self;},
  4181. args: ["anObject"],
  4182. source: unescape('remove%3A%20anObject%0A%20%20%20%20self%20subclassResponsibility'),
  4183. messageSends: ["subclassResponsibility"],
  4184. referencedClasses: []
  4185. }),
  4186. smalltalk.Collection);
  4187. smalltalk.addMethod(
  4188. unescape('_asSet'),
  4189. smalltalk.method({
  4190. selector: unescape('asSet'),
  4191. category: 'converting',
  4192. fn: function (){
  4193. var self=this;
  4194. return smalltalk.send((smalltalk.Set || Set), "_withAll_", [self]);
  4195. return self;},
  4196. args: [],
  4197. source: unescape('asSet%0A%09%5ESet%20withAll%3A%20self'),
  4198. messageSends: ["withAll:"],
  4199. referencedClasses: [smalltalk.nil]
  4200. }),
  4201. smalltalk.Collection);
  4202. smalltalk.addMethod(
  4203. unescape('_ifNotEmpty_'),
  4204. smalltalk.method({
  4205. selector: unescape('ifNotEmpty%3A'),
  4206. category: 'testing',
  4207. fn: function (aBlock){
  4208. var self=this;
  4209. smalltalk.send(smalltalk.send(self, "_notEmpty", []), "_ifTrue_", [aBlock]);
  4210. return self;},
  4211. args: ["aBlock"],
  4212. source: unescape('ifNotEmpty%3A%20aBlock%0A%09self%20notEmpty%20ifTrue%3A%20aBlock.'),
  4213. messageSends: ["ifTrue:", "notEmpty"],
  4214. referencedClasses: []
  4215. }),
  4216. smalltalk.Collection);
  4217. smalltalk.addMethod(
  4218. unescape('_ifEmpty_'),
  4219. smalltalk.method({
  4220. selector: unescape('ifEmpty%3A'),
  4221. category: 'testing',
  4222. fn: function (aBlock){
  4223. var self=this;
  4224. smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_ifTrue_", [aBlock]);
  4225. return self;},
  4226. args: ["aBlock"],
  4227. source: unescape('ifEmpty%3A%20aBlock%0A%09self%20isEmpty%20ifTrue%3A%20aBlock.'),
  4228. messageSends: ["ifTrue:", "isEmpty"],
  4229. referencedClasses: []
  4230. }),
  4231. smalltalk.Collection);
  4232. smalltalk.addMethod(
  4233. unescape('_copyWithoutAll_'),
  4234. smalltalk.method({
  4235. selector: unescape('copyWithoutAll%3A'),
  4236. category: 'copying',
  4237. fn: function (aCollection){
  4238. var self=this;
  4239. return smalltalk.send(self, "_reject_", [(function(each){return smalltalk.send(aCollection, "_includes_", [each]);})]);
  4240. return self;},
  4241. args: ["aCollection"],
  4242. 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'),
  4243. messageSends: ["reject:", "includes:"],
  4244. referencedClasses: []
  4245. }),
  4246. smalltalk.Collection);
  4247. smalltalk.addMethod(
  4248. unescape('_streamClass'),
  4249. smalltalk.method({
  4250. selector: unescape('streamClass'),
  4251. category: 'accessing',
  4252. fn: function (){
  4253. var self=this;
  4254. return (smalltalk.Stream || Stream);
  4255. return self;},
  4256. args: [],
  4257. source: unescape('streamClass%0A%09%20%20%20%20%5EStream'),
  4258. messageSends: [],
  4259. referencedClasses: [smalltalk.nil]
  4260. }),
  4261. smalltalk.Collection.klass);
  4262. smalltalk.addMethod(
  4263. unescape('_with_'),
  4264. smalltalk.method({
  4265. selector: unescape('with%3A'),
  4266. category: 'instance creation',
  4267. fn: function (anObject){
  4268. var self=this;
  4269. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4270. return self;},
  4271. args: ["anObject"],
  4272. source: unescape('with%3A%20anObject%0A%09%20%20%20%20%5Eself%20new%0A%09%09add%3A%20anObject%3B%0A%09%09yourself'),
  4273. messageSends: ["add:", "yourself", "new"],
  4274. referencedClasses: []
  4275. }),
  4276. smalltalk.Collection.klass);
  4277. smalltalk.addMethod(
  4278. unescape('_with_with_'),
  4279. smalltalk.method({
  4280. selector: unescape('with%3Awith%3A'),
  4281. category: 'instance creation',
  4282. fn: function (anObject, anotherObject){
  4283. var self=this;
  4284. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);smalltalk.send($rec, "_add_", [anotherObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4285. return self;},
  4286. args: ["anObject", "anotherObject"],
  4287. 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'),
  4288. messageSends: ["add:", "yourself", "new"],
  4289. referencedClasses: []
  4290. }),
  4291. smalltalk.Collection.klass);
  4292. smalltalk.addMethod(
  4293. unescape('_with_with_with_'),
  4294. smalltalk.method({
  4295. selector: unescape('with%3Awith%3Awith%3A'),
  4296. category: 'instance creation',
  4297. fn: function (firstObject, secondObject, thirdObject){
  4298. var self=this;
  4299. 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", []));
  4300. return self;},
  4301. args: ["firstObject", "secondObject", "thirdObject"],
  4302. 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'),
  4303. messageSends: ["add:", "yourself", "new"],
  4304. referencedClasses: []
  4305. }),
  4306. smalltalk.Collection.klass);
  4307. smalltalk.addMethod(
  4308. unescape('_withAll_'),
  4309. smalltalk.method({
  4310. selector: unescape('withAll%3A'),
  4311. category: 'instance creation',
  4312. fn: function (aCollection){
  4313. var self=this;
  4314. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4315. return self;},
  4316. args: ["aCollection"],
  4317. source: unescape('withAll%3A%20aCollection%0A%09%20%20%20%20%5Eself%20new%0A%09%09addAll%3A%20aCollection%3B%0A%09%09yourself'),
  4318. messageSends: ["addAll:", "yourself", "new"],
  4319. referencedClasses: []
  4320. }),
  4321. smalltalk.Collection.klass);
  4322. smalltalk.addClass('SequenceableCollection', smalltalk.Collection, [], 'Kernel');
  4323. smalltalk.addMethod(
  4324. unescape('_at_'),
  4325. smalltalk.method({
  4326. selector: unescape('at%3A'),
  4327. category: 'accessing',
  4328. fn: function (anIndex){
  4329. var self=this;
  4330. return smalltalk.send(self, "_at_ifAbsent_", [anIndex, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4331. return self;},
  4332. args: ["anIndex"],
  4333. source: unescape('at%3A%20anIndex%0A%09%5Eself%20at%3A%20anIndex%20ifAbsent%3A%20%5B%0A%09%20%20%20%20self%20errorNotFound%5D'),
  4334. messageSends: ["at:ifAbsent:", "errorNotFound"],
  4335. referencedClasses: []
  4336. }),
  4337. smalltalk.SequenceableCollection);
  4338. smalltalk.addMethod(
  4339. unescape('_at_ifAbsent_'),
  4340. smalltalk.method({
  4341. selector: unescape('at%3AifAbsent%3A'),
  4342. category: 'accessing',
  4343. fn: function (anIndex, aBlock){
  4344. var self=this;
  4345. smalltalk.send(self, "_subclassResponsibility", []);
  4346. return self;},
  4347. args: ["anIndex", "aBlock"],
  4348. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%09self%20subclassResponsibility'),
  4349. messageSends: ["subclassResponsibility"],
  4350. referencedClasses: []
  4351. }),
  4352. smalltalk.SequenceableCollection);
  4353. smalltalk.addMethod(
  4354. unescape('_at_put_'),
  4355. smalltalk.method({
  4356. selector: unescape('at%3Aput%3A'),
  4357. category: 'accessing',
  4358. fn: function (anIndex, anObject){
  4359. var self=this;
  4360. smalltalk.send(self, "_subclassResponsibility", []);
  4361. return self;},
  4362. args: ["anIndex", "anObject"],
  4363. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09self%20subclassResponsibility'),
  4364. messageSends: ["subclassResponsibility"],
  4365. referencedClasses: []
  4366. }),
  4367. smalltalk.SequenceableCollection);
  4368. smalltalk.addMethod(
  4369. unescape('_copyFrom_to_'),
  4370. smalltalk.method({
  4371. selector: unescape('copyFrom%3Ato%3A'),
  4372. category: 'copying',
  4373. fn: function (anIndex, anotherIndex){
  4374. var self=this;
  4375. smalltalk.send(self, "_subclassResponsibility", []);
  4376. return self;},
  4377. args: ["anIndex", "anotherIndex"],
  4378. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20subclassResponsibility'),
  4379. messageSends: ["subclassResponsibility"],
  4380. referencedClasses: []
  4381. }),
  4382. smalltalk.SequenceableCollection);
  4383. smalltalk.addMethod(
  4384. unescape('_first'),
  4385. smalltalk.method({
  4386. selector: unescape('first'),
  4387. category: 'accessing',
  4388. fn: function (){
  4389. var self=this;
  4390. return smalltalk.send(self, "_at_", [(1)]);
  4391. return self;},
  4392. args: [],
  4393. source: unescape('first%0A%09%5Eself%20at%3A%201'),
  4394. messageSends: ["at:"],
  4395. referencedClasses: []
  4396. }),
  4397. smalltalk.SequenceableCollection);
  4398. smalltalk.addMethod(
  4399. unescape('_fourth'),
  4400. smalltalk.method({
  4401. selector: unescape('fourth'),
  4402. category: 'accessing',
  4403. fn: function (){
  4404. var self=this;
  4405. return smalltalk.send(self, "_at_", [(4)]);
  4406. return self;},
  4407. args: [],
  4408. source: unescape('fourth%0A%09%5Eself%20at%3A%204'),
  4409. messageSends: ["at:"],
  4410. referencedClasses: []
  4411. }),
  4412. smalltalk.SequenceableCollection);
  4413. smalltalk.addMethod(
  4414. unescape('_last'),
  4415. smalltalk.method({
  4416. selector: unescape('last'),
  4417. category: 'accessing',
  4418. fn: function (){
  4419. var self=this;
  4420. return smalltalk.send(self, "_at_", [smalltalk.send(self, "_size", [])]);
  4421. return self;},
  4422. args: [],
  4423. source: unescape('last%0A%09%5Eself%20at%3A%20self%20size'),
  4424. messageSends: ["at:", "size"],
  4425. referencedClasses: []
  4426. }),
  4427. smalltalk.SequenceableCollection);
  4428. smalltalk.addMethod(
  4429. unescape('_second'),
  4430. smalltalk.method({
  4431. selector: unescape('second'),
  4432. category: 'accessing',
  4433. fn: function (){
  4434. var self=this;
  4435. return smalltalk.send(self, "_at_", [(2)]);
  4436. return self;},
  4437. args: [],
  4438. source: unescape('second%0A%09%5Eself%20at%3A%202'),
  4439. messageSends: ["at:"],
  4440. referencedClasses: []
  4441. }),
  4442. smalltalk.SequenceableCollection);
  4443. smalltalk.addMethod(
  4444. unescape('_third'),
  4445. smalltalk.method({
  4446. selector: unescape('third'),
  4447. category: 'accessing',
  4448. fn: function (){
  4449. var self=this;
  4450. return smalltalk.send(self, "_at_", [(3)]);
  4451. return self;},
  4452. args: [],
  4453. source: unescape('third%0A%09%5Eself%20at%3A%203'),
  4454. messageSends: ["at:"],
  4455. referencedClasses: []
  4456. }),
  4457. smalltalk.SequenceableCollection);
  4458. smalltalk.addMethod(
  4459. unescape('_removeLast'),
  4460. smalltalk.method({
  4461. selector: unescape('removeLast'),
  4462. category: 'adding',
  4463. fn: function (){
  4464. var self=this;
  4465. smalltalk.send(self, "_remove_", [smalltalk.send(self, "_last", [])]);
  4466. return self;},
  4467. args: [],
  4468. source: unescape('removeLast%0A%09self%20remove%3A%20self%20last'),
  4469. messageSends: ["remove:", "last"],
  4470. referencedClasses: []
  4471. }),
  4472. smalltalk.SequenceableCollection);
  4473. smalltalk.addMethod(
  4474. unescape('_addLast_'),
  4475. smalltalk.method({
  4476. selector: unescape('addLast%3A'),
  4477. category: 'adding',
  4478. fn: function (anObject){
  4479. var self=this;
  4480. smalltalk.send(self, "_add_", [anObject]);
  4481. return self;},
  4482. args: ["anObject"],
  4483. source: unescape('addLast%3A%20anObject%0A%09self%20add%3A%20anObject'),
  4484. messageSends: ["add:"],
  4485. referencedClasses: []
  4486. }),
  4487. smalltalk.SequenceableCollection);
  4488. smalltalk.addMethod(
  4489. unescape('_withIndexDo_'),
  4490. smalltalk.method({
  4491. selector: unescape('withIndexDo%3A'),
  4492. category: 'enumerating',
  4493. fn: function (aBlock){
  4494. var self=this;
  4495. for(var i=0;i<self.length;i++){aBlock(self[i], i+1);};
  4496. return self;},
  4497. args: ["aBlock"],
  4498. 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'),
  4499. messageSends: [],
  4500. referencedClasses: []
  4501. }),
  4502. smalltalk.SequenceableCollection);
  4503. smalltalk.addMethod(
  4504. unescape('_allButFirst'),
  4505. smalltalk.method({
  4506. selector: unescape('allButFirst'),
  4507. category: 'accessing',
  4508. fn: function (){
  4509. var self=this;
  4510. return smalltalk.send(self, "_copyFrom_to_", [(2), smalltalk.send(self, "_size", [])]);
  4511. return self;},
  4512. args: [],
  4513. source: unescape('allButFirst%0A%09%5Eself%20copyFrom%3A%202%20to%3A%20self%20size'),
  4514. messageSends: ["copyFrom:to:", "size"],
  4515. referencedClasses: []
  4516. }),
  4517. smalltalk.SequenceableCollection);
  4518. smalltalk.addMethod(
  4519. unescape('_allButLast'),
  4520. smalltalk.method({
  4521. selector: unescape('allButLast'),
  4522. category: 'accessing',
  4523. fn: function (){
  4524. var self=this;
  4525. return smalltalk.send(self, "_copyFrom_to_", [(1), ((($receiver = smalltalk.send(self, "_size", [])).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]);
  4526. return self;},
  4527. args: [],
  4528. source: unescape('allButLast%0A%09%5Eself%20copyFrom%3A%201%20to%3A%20self%20size%20-%201'),
  4529. messageSends: ["copyFrom:to:", unescape("-"), "size"],
  4530. referencedClasses: []
  4531. }),
  4532. smalltalk.SequenceableCollection);
  4533. smalltalk.addMethod(
  4534. unescape('_indexOf_'),
  4535. smalltalk.method({
  4536. selector: unescape('indexOf%3A'),
  4537. category: 'accessing',
  4538. fn: function (anObject){
  4539. var self=this;
  4540. return smalltalk.send(self, "_indexOf_ifAbsent_", [anObject, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4541. return self;},
  4542. args: ["anObject"],
  4543. source: unescape('indexOf%3A%20anObject%0A%09%5Eself%20indexOf%3A%20anObject%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  4544. messageSends: ["indexOf:ifAbsent:", "errorNotFound"],
  4545. referencedClasses: []
  4546. }),
  4547. smalltalk.SequenceableCollection);
  4548. smalltalk.addMethod(
  4549. unescape('_indexOf_ifAbsent_'),
  4550. smalltalk.method({
  4551. selector: unescape('indexOf%3AifAbsent%3A'),
  4552. category: 'accessing',
  4553. fn: function (anObject, aBlock){
  4554. var self=this;
  4555. for(var i=0;i<self.length;i++){
  4556. if(self[i].__eq(anObject)) {return i+1}
  4557. }
  4558. return aBlock();
  4559. ;
  4560. return self;},
  4561. args: ["anObject", "aBlock"],
  4562. 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'),
  4563. messageSends: [],
  4564. referencedClasses: []
  4565. }),
  4566. smalltalk.SequenceableCollection);
  4567. smalltalk.addMethod(
  4568. unescape('_indexOf_startingAt_ifAbsent_'),
  4569. smalltalk.method({
  4570. selector: unescape('indexOf%3AstartingAt%3AifAbsent%3A'),
  4571. category: 'accessing',
  4572. fn: function (anObject, start, aBlock){
  4573. var self=this;
  4574. for(var i=start-1;i<self.length;i++){
  4575. if(self[i].__eq(anObject)) {return i+1}
  4576. }
  4577. return aBlock();
  4578. ;
  4579. return self;},
  4580. args: ["anObject", "start", "aBlock"],
  4581. 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'),
  4582. messageSends: [],
  4583. referencedClasses: []
  4584. }),
  4585. smalltalk.SequenceableCollection);
  4586. smalltalk.addMethod(
  4587. unescape('_indexOf_startingAt_'),
  4588. smalltalk.method({
  4589. selector: unescape('indexOf%3AstartingAt%3A'),
  4590. category: 'accessing',
  4591. fn: function (anObject, start){
  4592. var self=this;
  4593. return smalltalk.send(self, "_indexOf_startingAt_ifAbsent_", [anObject, start, (function(){return (0);})]);
  4594. return self;},
  4595. args: ["anObject", "start"],
  4596. 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'),
  4597. messageSends: ["indexOf:startingAt:ifAbsent:"],
  4598. referencedClasses: []
  4599. }),
  4600. smalltalk.SequenceableCollection);
  4601. smalltalk.addMethod(
  4602. unescape('_reversed'),
  4603. smalltalk.method({
  4604. selector: unescape('reversed'),
  4605. category: 'converting',
  4606. fn: function (){
  4607. var self=this;
  4608. smalltalk.send(self, "_subclassResponsibility", []);
  4609. return self;},
  4610. args: [],
  4611. source: unescape('reversed%0A%09self%20subclassResponsibility'),
  4612. messageSends: ["subclassResponsibility"],
  4613. referencedClasses: []
  4614. }),
  4615. smalltalk.SequenceableCollection);
  4616. smalltalk.addMethod(
  4617. unescape('_atRandom'),
  4618. smalltalk.method({
  4619. selector: unescape('atRandom'),
  4620. category: 'accessing',
  4621. fn: function (){
  4622. var self=this;
  4623. return smalltalk.send(self, "_at_", [smalltalk.send(smalltalk.send(self, "_size", []), "_atRandom", [])]);
  4624. return self;},
  4625. args: [],
  4626. source: unescape('atRandom%0A%09%5E%20self%20at%3A%20self%20size%20atRandom'),
  4627. messageSends: ["at:", "atRandom", "size"],
  4628. referencedClasses: []
  4629. }),
  4630. smalltalk.SequenceableCollection);
  4631. smalltalk.addClass('String', smalltalk.SequenceableCollection, [], 'Kernel');
  4632. smalltalk.addMethod(
  4633. unescape('__eq'),
  4634. smalltalk.method({
  4635. selector: unescape('%3D'),
  4636. category: 'comparing',
  4637. fn: function (aString){
  4638. var self=this;
  4639. 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}})})();})]));
  4640. return String(self) == aString;
  4641. return self;
  4642. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  4643. args: ["aString"],
  4644. 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'),
  4645. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  4646. referencedClasses: []
  4647. }),
  4648. smalltalk.String);
  4649. smalltalk.addMethod(
  4650. unescape('_size'),
  4651. smalltalk.method({
  4652. selector: unescape('size'),
  4653. category: 'accessing',
  4654. fn: function (){
  4655. var self=this;
  4656. return self.length;
  4657. return self;},
  4658. args: [],
  4659. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  4660. messageSends: [],
  4661. referencedClasses: []
  4662. }),
  4663. smalltalk.String);
  4664. smalltalk.addMethod(
  4665. unescape('_at_'),
  4666. smalltalk.method({
  4667. selector: unescape('at%3A'),
  4668. category: 'accessing',
  4669. fn: function (anIndex){
  4670. var self=this;
  4671. return self[anIndex - 1];
  4672. return self;},
  4673. args: ["anIndex"],
  4674. source: unescape('at%3A%20anIndex%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%3E'),
  4675. messageSends: [],
  4676. referencedClasses: []
  4677. }),
  4678. smalltalk.String);
  4679. smalltalk.addMethod(
  4680. unescape('_at_put_'),
  4681. smalltalk.method({
  4682. selector: unescape('at%3Aput%3A'),
  4683. category: 'accessing',
  4684. fn: function (anIndex, anObject){
  4685. var self=this;
  4686. smalltalk.send(self, "_errorReadOnly", []);
  4687. return self;},
  4688. args: ["anIndex", "anObject"],
  4689. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  4690. messageSends: ["errorReadOnly"],
  4691. referencedClasses: []
  4692. }),
  4693. smalltalk.String);
  4694. smalltalk.addMethod(
  4695. unescape('_at_ifAbsent_'),
  4696. smalltalk.method({
  4697. selector: unescape('at%3AifAbsent%3A'),
  4698. category: 'accessing',
  4699. fn: function (anIndex, aBlock){
  4700. var self=this;
  4701. (($receiver = smalltalk.send(self, "_at_", [anIndex])) == nil || $receiver == undefined) ? (function(){return aBlock;})() : $receiver;
  4702. return self;},
  4703. args: ["anIndex", "aBlock"],
  4704. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%20%20%20%20%09%28self%20at%3A%20anIndex%29%20ifNil%3A%20%5BaBlock%5D'),
  4705. messageSends: ["ifNil:", "at:"],
  4706. referencedClasses: []
  4707. }),
  4708. smalltalk.String);
  4709. smalltalk.addMethod(
  4710. unescape('_escaped'),
  4711. smalltalk.method({
  4712. selector: unescape('escaped'),
  4713. category: 'accessing',
  4714. fn: function (){
  4715. var self=this;
  4716. return escape(self);
  4717. return self;},
  4718. args: [],
  4719. source: unescape('escaped%0A%09%3Creturn%20escape%28self%29%3E'),
  4720. messageSends: [],
  4721. referencedClasses: []
  4722. }),
  4723. smalltalk.String);
  4724. smalltalk.addMethod(
  4725. unescape('_unescaped'),
  4726. smalltalk.method({
  4727. selector: unescape('unescaped'),
  4728. category: 'accessing',
  4729. fn: function (){
  4730. var self=this;
  4731. return unescape(self);
  4732. return self;},
  4733. args: [],
  4734. source: unescape('unescaped%0A%09%3Creturn%20unescape%28self%29%3E'),
  4735. messageSends: [],
  4736. referencedClasses: []
  4737. }),
  4738. smalltalk.String);
  4739. smalltalk.addMethod(
  4740. unescape('_add_'),
  4741. smalltalk.method({
  4742. selector: unescape('add%3A'),
  4743. category: 'adding',
  4744. fn: function (anObject){
  4745. var self=this;
  4746. smalltalk.send(self, "_errorReadOnly", []);
  4747. return self;},
  4748. args: ["anObject"],
  4749. source: unescape('add%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  4750. messageSends: ["errorReadOnly"],
  4751. referencedClasses: []
  4752. }),
  4753. smalltalk.String);
  4754. smalltalk.addMethod(
  4755. unescape('__comma'),
  4756. smalltalk.method({
  4757. selector: unescape('%2C'),
  4758. category: 'copying',
  4759. fn: function (aString){
  4760. var self=this;
  4761. return self + aString;
  4762. return self;},
  4763. args: ["aString"],
  4764. source: unescape('%2C%20aString%0A%09%3Creturn%20self%20+%20aString%3E'),
  4765. messageSends: [],
  4766. referencedClasses: []
  4767. }),
  4768. smalltalk.String);
  4769. smalltalk.addMethod(
  4770. unescape('_copyFrom_to_'),
  4771. smalltalk.method({
  4772. selector: unescape('copyFrom%3Ato%3A'),
  4773. category: 'copying',
  4774. fn: function (anIndex, anotherIndex){
  4775. var self=this;
  4776. return self.substring(anIndex - 1, anotherIndex);
  4777. return self;},
  4778. args: ["anIndex", "anotherIndex"],
  4779. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09%3Creturn%20self.substring%28anIndex%20-%201%2C%20anotherIndex%29%3E'),
  4780. messageSends: [],
  4781. referencedClasses: []
  4782. }),
  4783. smalltalk.String);
  4784. smalltalk.addMethod(
  4785. unescape('_shallowCopy'),
  4786. smalltalk.method({
  4787. selector: unescape('shallowCopy'),
  4788. category: 'copying',
  4789. fn: function (){
  4790. var self=this;
  4791. return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [self]);
  4792. return self;},
  4793. args: [],
  4794. source: unescape('shallowCopy%0A%20%20%20%20%09%5Eself%20class%20fromString%3A%20self'),
  4795. messageSends: ["fromString:", "class"],
  4796. referencedClasses: []
  4797. }),
  4798. smalltalk.String);
  4799. smalltalk.addMethod(
  4800. unescape('_deepCopy'),
  4801. smalltalk.method({
  4802. selector: unescape('deepCopy'),
  4803. category: 'copying',
  4804. fn: function (){
  4805. var self=this;
  4806. return smalltalk.send(self, "_shallowCopy", []);
  4807. return self;},
  4808. args: [],
  4809. source: unescape('deepCopy%0A%20%20%20%20%09%5Eself%20shallowCopy'),
  4810. messageSends: ["shallowCopy"],
  4811. referencedClasses: []
  4812. }),
  4813. smalltalk.String);
  4814. smalltalk.addMethod(
  4815. unescape('_asSelector'),
  4816. smalltalk.method({
  4817. selector: unescape('asSelector'),
  4818. category: 'converting',
  4819. fn: function (){
  4820. var self=this;
  4821. var selector=nil;
  4822. selector=smalltalk.send("_", "__comma", [self]);
  4823. selector=smalltalk.send(selector, "_replace_with_", [":", "_"]);
  4824. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B+%5D"), "_plus"]);
  4825. selector=smalltalk.send(selector, "_replace_with_", [unescape("-"), "_minus"]);
  4826. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B*%5D"), "_star"]);
  4827. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B/%5D"), "_slash"]);
  4828. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3E"), "_gt"]);
  4829. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3C"), "_lt"]);
  4830. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3D"), "_eq"]);
  4831. selector=smalltalk.send(selector, "_replace_with_", [unescape("%2C"), "_comma"]);
  4832. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B@%5D"), "_at"]);
  4833. return selector;
  4834. return self;},
  4835. args: [],
  4836. 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'),
  4837. messageSends: [unescape("%2C"), "replace:with:"],
  4838. referencedClasses: []
  4839. }),
  4840. smalltalk.String);
  4841. smalltalk.addMethod(
  4842. unescape('_asJavascript'),
  4843. smalltalk.method({
  4844. selector: unescape('asJavascript'),
  4845. category: 'converting',
  4846. fn: function (){
  4847. var self=this;
  4848. if(self.search(/^[a-zA-Z0-9_:.$ ]*$/) == -1)
  4849. return "unescape(\"" + escape(self) + "\")";
  4850. else
  4851. return "\"" + self + "\"";
  4852. ;
  4853. return self;},
  4854. args: [],
  4855. 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'),
  4856. messageSends: [],
  4857. referencedClasses: []
  4858. }),
  4859. smalltalk.String);
  4860. smalltalk.addMethod(
  4861. unescape('_replace_with_'),
  4862. smalltalk.method({
  4863. selector: unescape('replace%3Awith%3A'),
  4864. category: 'regular expressions',
  4865. fn: function (aString, anotherString){
  4866. var self=this;
  4867. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [aString, "g"]), anotherString]);
  4868. return self;},
  4869. args: ["aString", "anotherString"],
  4870. 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'),
  4871. messageSends: ["replaceRegexp:with:", "fromString:flag:"],
  4872. referencedClasses: [smalltalk.RegularExpression]
  4873. }),
  4874. smalltalk.String);
  4875. smalltalk.addMethod(
  4876. unescape('_replaceRegexp_with_'),
  4877. smalltalk.method({
  4878. selector: unescape('replaceRegexp%3Awith%3A'),
  4879. category: 'regular expressions',
  4880. fn: function (aRegexp, aString){
  4881. var self=this;
  4882. return self.replace(aRegexp, aString);
  4883. return self;},
  4884. args: ["aRegexp", "aString"],
  4885. source: unescape('replaceRegexp%3A%20aRegexp%20with%3A%20aString%0A%09%3Creturn%20self.replace%28aRegexp%2C%20aString%29%3E'),
  4886. messageSends: [],
  4887. referencedClasses: []
  4888. }),
  4889. smalltalk.String);
  4890. smalltalk.addMethod(
  4891. unescape('_tokenize_'),
  4892. smalltalk.method({
  4893. selector: unescape('tokenize%3A'),
  4894. category: 'converting',
  4895. fn: function (aString){
  4896. var self=this;
  4897. return self.split(aString);
  4898. return self;},
  4899. args: ["aString"],
  4900. source: unescape('tokenize%3A%20aString%0A%09%3Creturn%20self.split%28aString%29%3E'),
  4901. messageSends: [],
  4902. referencedClasses: []
  4903. }),
  4904. smalltalk.String);
  4905. smalltalk.addMethod(
  4906. unescape('_match_'),
  4907. smalltalk.method({
  4908. selector: unescape('match%3A'),
  4909. category: 'regular expressions',
  4910. fn: function (aRegexp){
  4911. var self=this;
  4912. return self.search(aRegexp) != -1;
  4913. return self;},
  4914. args: ["aRegexp"],
  4915. source: unescape('match%3A%20aRegexp%0A%09%3Creturn%20self.search%28aRegexp%29%20%21%3D%20-1%3E'),
  4916. messageSends: [],
  4917. referencedClasses: []
  4918. }),
  4919. smalltalk.String);
  4920. smalltalk.addMethod(
  4921. unescape('_asString'),
  4922. smalltalk.method({
  4923. selector: unescape('asString'),
  4924. category: 'converting',
  4925. fn: function (){
  4926. var self=this;
  4927. return self;
  4928. return self;},
  4929. args: [],
  4930. source: unescape('asString%0A%20%20%20%20%09%5Eself'),
  4931. messageSends: [],
  4932. referencedClasses: []
  4933. }),
  4934. smalltalk.String);
  4935. smalltalk.addMethod(
  4936. unescape('_asNumber'),
  4937. smalltalk.method({
  4938. selector: unescape('asNumber'),
  4939. category: 'converting',
  4940. fn: function (){
  4941. var self=this;
  4942. return Number(self);
  4943. return self;},
  4944. args: [],
  4945. source: unescape('asNumber%0A%09%3Creturn%20Number%28self%29%3E'),
  4946. messageSends: [],
  4947. referencedClasses: []
  4948. }),
  4949. smalltalk.String);
  4950. smalltalk.addMethod(
  4951. unescape('_errorReadOnly'),
  4952. smalltalk.method({
  4953. selector: unescape('errorReadOnly'),
  4954. category: 'error handling',
  4955. fn: function (){
  4956. var self=this;
  4957. smalltalk.send(self, "_error_", [unescape("Object%20is%20read-only")]);
  4958. return self;},
  4959. args: [],
  4960. source: unescape('errorReadOnly%0A%20%20%20%20%09self%20error%3A%20%27Object%20is%20read-only%27'),
  4961. messageSends: ["error:"],
  4962. referencedClasses: []
  4963. }),
  4964. smalltalk.String);
  4965. smalltalk.addMethod(
  4966. unescape('_printString'),
  4967. smalltalk.method({
  4968. selector: unescape('printString'),
  4969. category: 'printing',
  4970. fn: function (){
  4971. var self=this;
  4972. return smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [self]), "__comma", [unescape("%27")]);
  4973. return self;},
  4974. args: [],
  4975. source: unescape('printString%0A%20%20%20%20%09%5E%27%27%27%27%2C%20self%2C%20%27%27%27%27'),
  4976. messageSends: [unescape("%2C")],
  4977. referencedClasses: []
  4978. }),
  4979. smalltalk.String);
  4980. smalltalk.addMethod(
  4981. unescape('_printNl'),
  4982. smalltalk.method({
  4983. selector: unescape('printNl'),
  4984. category: 'printing',
  4985. fn: function (){
  4986. var self=this;
  4987. console.log(self);
  4988. return self;},
  4989. args: [],
  4990. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  4991. messageSends: [],
  4992. referencedClasses: []
  4993. }),
  4994. smalltalk.String);
  4995. smalltalk.addMethod(
  4996. unescape('_isString'),
  4997. smalltalk.method({
  4998. selector: unescape('isString'),
  4999. category: 'testing',
  5000. fn: function (){
  5001. var self=this;
  5002. return true;
  5003. return self;},
  5004. args: [],
  5005. source: unescape('isString%0A%20%20%20%20%09%5Etrue'),
  5006. messageSends: [],
  5007. referencedClasses: []
  5008. }),
  5009. smalltalk.String);
  5010. smalltalk.addMethod(
  5011. unescape('__gt'),
  5012. smalltalk.method({
  5013. selector: unescape('%3E'),
  5014. category: 'comparing',
  5015. fn: function (aString){
  5016. var self=this;
  5017. return String(self) > aString;
  5018. return self;},
  5019. args: ["aString"],
  5020. source: unescape('%3E%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%20aString%3E'),
  5021. messageSends: [],
  5022. referencedClasses: []
  5023. }),
  5024. smalltalk.String);
  5025. smalltalk.addMethod(
  5026. unescape('__lt'),
  5027. smalltalk.method({
  5028. selector: unescape('%3C'),
  5029. category: 'comparing',
  5030. fn: function (aString){
  5031. var self=this;
  5032. return String(self) < aString;
  5033. return self;},
  5034. args: ["aString"],
  5035. source: unescape('%3C%20aString%0A%09%3Creturn%20String%28self%29%20%3C%20aString%3E'),
  5036. messageSends: [],
  5037. referencedClasses: []
  5038. }),
  5039. smalltalk.String);
  5040. smalltalk.addMethod(
  5041. unescape('__gt_eq'),
  5042. smalltalk.method({
  5043. selector: unescape('%3E%3D'),
  5044. category: 'comparing',
  5045. fn: function (aString){
  5046. var self=this;
  5047. return String(self) >= aString;
  5048. return self;},
  5049. args: ["aString"],
  5050. source: unescape('%3E%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%3D%20aString%3E'),
  5051. messageSends: [],
  5052. referencedClasses: []
  5053. }),
  5054. smalltalk.String);
  5055. smalltalk.addMethod(
  5056. unescape('__lt_eq'),
  5057. smalltalk.method({
  5058. selector: unescape('%3C%3D'),
  5059. category: 'comparing',
  5060. fn: function (aString){
  5061. var self=this;
  5062. return String(self) <= aString;
  5063. return self;},
  5064. args: ["aString"],
  5065. source: unescape('%3C%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3C%3D%20aString%3E'),
  5066. messageSends: [],
  5067. referencedClasses: []
  5068. }),
  5069. smalltalk.String);
  5070. smalltalk.addMethod(
  5071. unescape('_remove_'),
  5072. smalltalk.method({
  5073. selector: unescape('remove%3A'),
  5074. category: 'adding',
  5075. fn: function (anObject){
  5076. var self=this;
  5077. smalltalk.send(self, "_errorReadOnly", []);
  5078. return self;},
  5079. args: ["anObject"],
  5080. source: unescape('remove%3A%20anObject%0A%09self%20errorReadOnly'),
  5081. messageSends: ["errorReadOnly"],
  5082. referencedClasses: []
  5083. }),
  5084. smalltalk.String);
  5085. smalltalk.addMethod(
  5086. unescape('_asJSONObject'),
  5087. smalltalk.method({
  5088. selector: unescape('asJSONObject'),
  5089. category: 'converting',
  5090. fn: function (){
  5091. var self=this;
  5092. return self;
  5093. return self;},
  5094. args: [],
  5095. source: unescape('asJSONObject%0A%09%5Eself'),
  5096. messageSends: [],
  5097. referencedClasses: []
  5098. }),
  5099. smalltalk.String);
  5100. smalltalk.addMethod(
  5101. unescape('_trimLeft_'),
  5102. smalltalk.method({
  5103. selector: unescape('trimLeft%3A'),
  5104. category: 'regular expressions',
  5105. fn: function (separators){
  5106. var self=this;
  5107. 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"]), ""]);
  5108. return self;},
  5109. args: ["separators"],
  5110. 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'),
  5111. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  5112. referencedClasses: [smalltalk.RegularExpression]
  5113. }),
  5114. smalltalk.String);
  5115. smalltalk.addMethod(
  5116. unescape('_trimRight_'),
  5117. smalltalk.method({
  5118. selector: unescape('trimRight%3A'),
  5119. category: 'regular expressions',
  5120. fn: function (separators){
  5121. var self=this;
  5122. 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"]), ""]);
  5123. return self;},
  5124. args: ["separators"],
  5125. 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'),
  5126. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  5127. referencedClasses: [smalltalk.RegularExpression]
  5128. }),
  5129. smalltalk.String);
  5130. smalltalk.addMethod(
  5131. unescape('_trimLeft'),
  5132. smalltalk.method({
  5133. selector: unescape('trimLeft'),
  5134. category: 'regular expressions',
  5135. fn: function (){
  5136. var self=this;
  5137. return smalltalk.send(self, "_trimLeft_", [unescape("%5Cs")]);
  5138. return self;},
  5139. args: [],
  5140. source: unescape('trimLeft%0A%09%5Eself%20trimLeft%3A%20%27%5Cs%27'),
  5141. messageSends: ["trimLeft:"],
  5142. referencedClasses: []
  5143. }),
  5144. smalltalk.String);
  5145. smalltalk.addMethod(
  5146. unescape('_trimRight'),
  5147. smalltalk.method({
  5148. selector: unescape('trimRight'),
  5149. category: 'regular expressions',
  5150. fn: function (){
  5151. var self=this;
  5152. return smalltalk.send(self, "_trimRight_", [unescape("%5Cs")]);
  5153. return self;},
  5154. args: [],
  5155. source: unescape('trimRight%0A%09%5Eself%20trimRight%3A%20%27%5Cs%27'),
  5156. messageSends: ["trimRight:"],
  5157. referencedClasses: []
  5158. }),
  5159. smalltalk.String);
  5160. smalltalk.addMethod(
  5161. unescape('_trimBoth'),
  5162. smalltalk.method({
  5163. selector: unescape('trimBoth'),
  5164. category: 'regular expressions',
  5165. fn: function (){
  5166. var self=this;
  5167. return smalltalk.send(self, "_trimBoth_", [unescape("%5Cs")]);
  5168. return self;},
  5169. args: [],
  5170. source: unescape('trimBoth%0A%09%5Eself%20trimBoth%3A%20%27%5Cs%27'),
  5171. messageSends: ["trimBoth:"],
  5172. referencedClasses: []
  5173. }),
  5174. smalltalk.String);
  5175. smalltalk.addMethod(
  5176. unescape('_trimBoth_'),
  5177. smalltalk.method({
  5178. selector: unescape('trimBoth%3A'),
  5179. category: 'regular expressions',
  5180. fn: function (separators){
  5181. var self=this;
  5182. return smalltalk.send(smalltalk.send(self, "_trimLeft_", [separators]), "_trimRight_", [separators]);
  5183. return self;},
  5184. args: ["separators"],
  5185. source: unescape('trimBoth%3A%20separators%0A%0A%20%20%20%20%09%5E%28self%20trimLeft%3A%20separators%29%20trimRight%3A%20separators'),
  5186. messageSends: ["trimRight:", "trimLeft:"],
  5187. referencedClasses: []
  5188. }),
  5189. smalltalk.String);
  5190. smalltalk.addMethod(
  5191. unescape('_asLowercase'),
  5192. smalltalk.method({
  5193. selector: unescape('asLowercase'),
  5194. category: 'converting',
  5195. fn: function (){
  5196. var self=this;
  5197. return self.toLowerCase();
  5198. return self;},
  5199. args: [],
  5200. source: unescape('asLowercase%0A%09%3Creturn%20self.toLowerCase%28%29%3E'),
  5201. messageSends: [],
  5202. referencedClasses: []
  5203. }),
  5204. smalltalk.String);
  5205. smalltalk.addMethod(
  5206. unescape('_asUppercase'),
  5207. smalltalk.method({
  5208. selector: unescape('asUppercase'),
  5209. category: 'converting',
  5210. fn: function (){
  5211. var self=this;
  5212. return self.toUpperCase();
  5213. return self;},
  5214. args: [],
  5215. source: unescape('asUppercase%0A%09%3Creturn%20self.toUpperCase%28%29%3E'),
  5216. messageSends: [],
  5217. referencedClasses: []
  5218. }),
  5219. smalltalk.String);
  5220. smalltalk.addMethod(
  5221. unescape('_join_'),
  5222. smalltalk.method({
  5223. selector: unescape('join%3A'),
  5224. category: 'split join',
  5225. fn: function (aCollection){
  5226. var self=this;
  5227. 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]);})]);})]);
  5228. return self;},
  5229. args: ["aCollection"],
  5230. 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'),
  5231. messageSends: ["streamContents:", "do:separatedBy:", "nextPutAll:", "asString"],
  5232. referencedClasses: [smalltalk.String]
  5233. }),
  5234. smalltalk.String);
  5235. smalltalk.addMethod(
  5236. unescape('_includesSubString_'),
  5237. smalltalk.method({
  5238. selector: unescape('includesSubString%3A'),
  5239. category: 'testing',
  5240. fn: function (subString){
  5241. var self=this;
  5242. return self.indexOf(subString) != -1 ;
  5243. return self;},
  5244. args: ["subString"],
  5245. source: unescape('includesSubString%3A%20subString%0A%09%3C%20return%20self.indexOf%28subString%29%20%21%3D%20-1%20%3E'),
  5246. messageSends: [],
  5247. referencedClasses: []
  5248. }),
  5249. smalltalk.String);
  5250. smalltalk.addMethod(
  5251. unescape('_asciiValue'),
  5252. smalltalk.method({
  5253. selector: unescape('asciiValue'),
  5254. category: 'accessing',
  5255. fn: function (){
  5256. var self=this;
  5257. return self.charCodeAt(0);;
  5258. return self;},
  5259. args: [],
  5260. source: unescape('asciiValue%0A%09%3Creturn%20self.charCodeAt%280%29%3B%3E'),
  5261. messageSends: [],
  5262. referencedClasses: []
  5263. }),
  5264. smalltalk.String);
  5265. smalltalk.addMethod(
  5266. unescape('_lineIndicesDo_'),
  5267. smalltalk.method({
  5268. selector: unescape('lineIndicesDo%3A'),
  5269. category: 'split join',
  5270. fn: function (aBlock){
  5271. var self=this;
  5272. try{var cr=nil;
  5273. var lf=nil;
  5274. var start=nil;
  5275. var sz=nil;
  5276. var nextLF=nil;
  5277. var nextCR=nil;
  5278. start=(1);
  5279. sz=smalltalk.send(self, "_size", []);
  5280. cr=smalltalk.send((smalltalk.String || String), "_cr", []);
  5281. nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, (1)]);
  5282. lf=smalltalk.send((smalltalk.String || String), "_lf", []);
  5283. nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, (1)]);
  5284. (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]);})]));})]));})()}})();
  5285. return self;
  5286. } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineIndicesDo_'){return e.fn()} throw(e)}},
  5287. args: ["aBlock"],
  5288. 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'),
  5289. messageSends: ["size", "cr", "indexOf:startingAt:", "lf", "whileTrue:", unescape("%3C%3D"), "ifTrue:", "and:", unescape("%3D"), "value:value:value:", "ifTrue:ifFalse:", "or:", unescape("%3C"), unescape("-"), unescape("+")],
  5290. referencedClasses: [smalltalk.String]
  5291. }),
  5292. smalltalk.String);
  5293. smalltalk.addMethod(
  5294. unescape('_linesDo_'),
  5295. smalltalk.method({
  5296. selector: unescape('linesDo%3A'),
  5297. category: 'split join',
  5298. fn: function (aBlock){
  5299. var self=this;
  5300. smalltalk.send(self, "_lineIndicesDo_", [(function(start, endWithoutDelimiters, end){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])]);})]);
  5301. return self;},
  5302. args: ["aBlock"],
  5303. 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'),
  5304. messageSends: ["lineIndicesDo:", "value:", "copyFrom:to:"],
  5305. referencedClasses: []
  5306. }),
  5307. smalltalk.String);
  5308. smalltalk.addMethod(
  5309. unescape('_lines'),
  5310. smalltalk.method({
  5311. selector: unescape('lines'),
  5312. category: 'split join',
  5313. fn: function (){
  5314. var self=this;
  5315. var lines=nil;
  5316. lines=smalltalk.send((smalltalk.Array || Array), "_new", []);
  5317. smalltalk.send(self, "_linesDo_", [(function(aLine){return smalltalk.send(lines, "_add_", [aLine]);})]);
  5318. return lines;
  5319. return self;},
  5320. args: [],
  5321. 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'),
  5322. messageSends: ["new", "linesDo:", "add:"],
  5323. referencedClasses: [smalltalk.Array]
  5324. }),
  5325. smalltalk.String);
  5326. smalltalk.addMethod(
  5327. unescape('_lineNumber_'),
  5328. smalltalk.method({
  5329. selector: unescape('lineNumber%3A'),
  5330. category: 'split join',
  5331. fn: function (anIndex){
  5332. var self=this;
  5333. try{var lineCount=nil;
  5334. lineCount=(0);
  5335. 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])}})})();})]));})]);
  5336. (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return nil}})})();
  5337. return self;
  5338. } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineNumber_'){return e.fn()} throw(e)}},
  5339. args: ["anIndex"],
  5340. 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'),
  5341. messageSends: ["lineIndicesDo:", "ifTrue:", unescape("%3D"), unescape("+"), "copyFrom:to:"],
  5342. referencedClasses: []
  5343. }),
  5344. smalltalk.String);
  5345. smalltalk.addMethod(
  5346. unescape('_reversed'),
  5347. smalltalk.method({
  5348. selector: unescape('reversed'),
  5349. category: 'converting',
  5350. fn: function (){
  5351. var self=this;
  5352. return self.split("").reverse().join("");
  5353. return self;},
  5354. args: [],
  5355. source: unescape('reversed%0A%09%3Creturn%20self.split%28%22%22%29.reverse%28%29.join%28%22%22%29%3E'),
  5356. messageSends: [],
  5357. referencedClasses: []
  5358. }),
  5359. smalltalk.String);
  5360. smalltalk.addMethod(
  5361. unescape('__eq_eq'),
  5362. smalltalk.method({
  5363. selector: unescape('%3D%3D'),
  5364. category: 'comparing',
  5365. fn: function (aString){
  5366. var self=this;
  5367. 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}})})();})]));
  5368. return String(self) === String(aString);
  5369. return self;
  5370. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  5371. args: ["aString"],
  5372. 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'),
  5373. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  5374. referencedClasses: []
  5375. }),
  5376. smalltalk.String);
  5377. smalltalk.addMethod(
  5378. unescape('_asJavaScriptSelector'),
  5379. smalltalk.method({
  5380. selector: unescape('asJavaScriptSelector'),
  5381. category: 'converting',
  5382. fn: function (){
  5383. var self=this;
  5384. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_asSelector", []), "_replace_with_", [unescape("%5E_"), ""]), "_replace_with_", [unescape("_.*"), ""]);
  5385. return self;},
  5386. args: [],
  5387. 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.'),
  5388. messageSends: ["replace:with:", "asSelector"],
  5389. referencedClasses: []
  5390. }),
  5391. smalltalk.String);
  5392. smalltalk.addMethod(
  5393. unescape('_streamClass'),
  5394. smalltalk.method({
  5395. selector: unescape('streamClass'),
  5396. category: 'accessing',
  5397. fn: function (){
  5398. var self=this;
  5399. return (smalltalk.StringStream || StringStream);
  5400. return self;},
  5401. args: [],
  5402. source: unescape('streamClass%0A%09%20%20%20%20%5EStringStream'),
  5403. messageSends: [],
  5404. referencedClasses: [smalltalk.nil]
  5405. }),
  5406. smalltalk.String.klass);
  5407. smalltalk.addMethod(
  5408. unescape('_fromString_'),
  5409. smalltalk.method({
  5410. selector: unescape('fromString%3A'),
  5411. category: 'instance creation',
  5412. fn: function (aString){
  5413. var self=this;
  5414. return new self.fn(aString);
  5415. return self;},
  5416. args: ["aString"],
  5417. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%3Creturn%20new%20self.fn%28aString%29%3E'),
  5418. messageSends: [],
  5419. referencedClasses: []
  5420. }),
  5421. smalltalk.String.klass);
  5422. smalltalk.addMethod(
  5423. unescape('_cr'),
  5424. smalltalk.method({
  5425. selector: unescape('cr'),
  5426. category: 'accessing',
  5427. fn: function (){
  5428. var self=this;
  5429. return '\r';
  5430. return self;},
  5431. args: [],
  5432. source: unescape('cr%0A%09%3Creturn%20%27%5Cr%27%3E'),
  5433. messageSends: [],
  5434. referencedClasses: []
  5435. }),
  5436. smalltalk.String.klass);
  5437. smalltalk.addMethod(
  5438. unescape('_lf'),
  5439. smalltalk.method({
  5440. selector: unescape('lf'),
  5441. category: 'accessing',
  5442. fn: function (){
  5443. var self=this;
  5444. return '\n';
  5445. return self;},
  5446. args: [],
  5447. source: unescape('lf%0A%09%3Creturn%20%27%5Cn%27%3E'),
  5448. messageSends: [],
  5449. referencedClasses: []
  5450. }),
  5451. smalltalk.String.klass);
  5452. smalltalk.addMethod(
  5453. unescape('_space'),
  5454. smalltalk.method({
  5455. selector: unescape('space'),
  5456. category: 'accessing',
  5457. fn: function (){
  5458. var self=this;
  5459. return ' ';
  5460. return self;},
  5461. args: [],
  5462. source: unescape('space%0A%09%3Creturn%20%27%20%27%3E'),
  5463. messageSends: [],
  5464. referencedClasses: []
  5465. }),
  5466. smalltalk.String.klass);
  5467. smalltalk.addMethod(
  5468. unescape('_tab'),
  5469. smalltalk.method({
  5470. selector: unescape('tab'),
  5471. category: 'accessing',
  5472. fn: function (){
  5473. var self=this;
  5474. return '\t';
  5475. return self;},
  5476. args: [],
  5477. source: unescape('tab%0A%09%3Creturn%20%27%5Ct%27%3E'),
  5478. messageSends: [],
  5479. referencedClasses: []
  5480. }),
  5481. smalltalk.String.klass);
  5482. smalltalk.addMethod(
  5483. unescape('_crlf'),
  5484. smalltalk.method({
  5485. selector: unescape('crlf'),
  5486. category: 'accessing',
  5487. fn: function (){
  5488. var self=this;
  5489. return '\r\n';
  5490. return self;},
  5491. args: [],
  5492. source: unescape('crlf%0A%09%3Creturn%20%27%5Cr%5Cn%27%3E'),
  5493. messageSends: [],
  5494. referencedClasses: []
  5495. }),
  5496. smalltalk.String.klass);
  5497. smalltalk.addMethod(
  5498. unescape('_streamContents_'),
  5499. smalltalk.method({
  5500. selector: unescape('streamContents%3A'),
  5501. category: 'instance creation',
  5502. fn: function (blockWithArg){
  5503. var self=this;
  5504. var stream=nil;
  5505. stream=smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [smalltalk.send((smalltalk.String || String), "_new", [])]);
  5506. smalltalk.send(blockWithArg, "_value_", [stream]);
  5507. return smalltalk.send(stream, "_contents", []);
  5508. return self;},
  5509. args: ["blockWithArg"],
  5510. 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'),
  5511. messageSends: ["on:", "streamClass", "new", "value:", "contents"],
  5512. referencedClasses: [smalltalk.String]
  5513. }),
  5514. smalltalk.String.klass);
  5515. smalltalk.addMethod(
  5516. unescape('_value_'),
  5517. smalltalk.method({
  5518. selector: unescape('value%3A'),
  5519. category: 'instance creation',
  5520. fn: function (aUTFCharCode){
  5521. var self=this;
  5522. return String.fromCharCode(aUTFCharCode);;
  5523. return self;},
  5524. args: ["aUTFCharCode"],
  5525. source: unescape('value%3A%20aUTFCharCode%0A%0A%09%3Creturn%20String.fromCharCode%28aUTFCharCode%29%3B%3E'),
  5526. messageSends: [],
  5527. referencedClasses: []
  5528. }),
  5529. smalltalk.String.klass);
  5530. smalltalk.addClass('Array', smalltalk.SequenceableCollection, [], 'Kernel');
  5531. smalltalk.addMethod(
  5532. unescape('_size'),
  5533. smalltalk.method({
  5534. selector: unescape('size'),
  5535. category: 'accessing',
  5536. fn: function (){
  5537. var self=this;
  5538. return self.length;
  5539. return self;},
  5540. args: [],
  5541. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  5542. messageSends: [],
  5543. referencedClasses: []
  5544. }),
  5545. smalltalk.Array);
  5546. smalltalk.addMethod(
  5547. unescape('_at_put_'),
  5548. smalltalk.method({
  5549. selector: unescape('at%3Aput%3A'),
  5550. category: 'accessing',
  5551. fn: function (anIndex, anObject){
  5552. var self=this;
  5553. return self[anIndex - 1] = anObject;
  5554. return self;},
  5555. args: ["anIndex", "anObject"],
  5556. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%20%3D%20anObject%3E'),
  5557. messageSends: [],
  5558. referencedClasses: []
  5559. }),
  5560. smalltalk.Array);
  5561. smalltalk.addMethod(
  5562. unescape('_at_ifAbsent_'),
  5563. smalltalk.method({
  5564. selector: unescape('at%3AifAbsent%3A'),
  5565. category: 'accessing',
  5566. fn: function (anIndex, aBlock){
  5567. var self=this;
  5568. var value = self[anIndex - 1];
  5569. if(value === undefined) {
  5570. return aBlock();
  5571. } else {
  5572. return value;
  5573. }
  5574. ;
  5575. return self;},
  5576. args: ["anIndex", "aBlock"],
  5577. 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'),
  5578. messageSends: [],
  5579. referencedClasses: []
  5580. }),
  5581. smalltalk.Array);
  5582. smalltalk.addMethod(
  5583. unescape('_add_'),
  5584. smalltalk.method({
  5585. selector: unescape('add%3A'),
  5586. category: 'adding/removing',
  5587. fn: function (anObject){
  5588. var self=this;
  5589. self.push(anObject); return anObject;;
  5590. return self;},
  5591. args: ["anObject"],
  5592. source: unescape('add%3A%20anObject%0A%09%3Cself.push%28anObject%29%3B%20return%20anObject%3B%3E'),
  5593. messageSends: [],
  5594. referencedClasses: []
  5595. }),
  5596. smalltalk.Array);
  5597. smalltalk.addMethod(
  5598. unescape('_shallowCopy'),
  5599. smalltalk.method({
  5600. selector: unescape('shallowCopy'),
  5601. category: 'copying',
  5602. fn: function (){
  5603. var self=this;
  5604. var newCollection=nil;
  5605. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5606. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [each]);})]);
  5607. return newCollection;
  5608. return self;},
  5609. args: [],
  5610. 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'),
  5611. messageSends: ["new", "class", "do:", "add:"],
  5612. referencedClasses: []
  5613. }),
  5614. smalltalk.Array);
  5615. smalltalk.addMethod(
  5616. unescape('_deepCopy'),
  5617. smalltalk.method({
  5618. selector: unescape('deepCopy'),
  5619. category: 'copying',
  5620. fn: function (){
  5621. var self=this;
  5622. var newCollection=nil;
  5623. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5624. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(each, "_deepCopy", [])]);})]);
  5625. return newCollection;
  5626. return self;},
  5627. args: [],
  5628. 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'),
  5629. messageSends: ["new", "class", "do:", "add:", "deepCopy"],
  5630. referencedClasses: []
  5631. }),
  5632. smalltalk.Array);
  5633. smalltalk.addMethod(
  5634. unescape('_copyFrom_to_'),
  5635. smalltalk.method({
  5636. selector: unescape('copyFrom%3Ato%3A'),
  5637. category: 'copying',
  5638. fn: function (anIndex, anotherIndex){
  5639. var self=this;
  5640. var array=nil;
  5641. array=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5642. smalltalk.send(anIndex, "_to_do_", [anotherIndex, (function(each){return smalltalk.send(array, "_add_", [smalltalk.send(self, "_at_", [each])]);})]);
  5643. return array;
  5644. return self;},
  5645. args: ["anIndex", "anotherIndex"],
  5646. 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'),
  5647. messageSends: ["new", "class", "to:do:", "add:", "at:"],
  5648. referencedClasses: []
  5649. }),
  5650. smalltalk.Array);
  5651. smalltalk.addMethod(
  5652. unescape('_join_'),
  5653. smalltalk.method({
  5654. selector: unescape('join%3A'),
  5655. category: 'enumerating',
  5656. fn: function (aString){
  5657. var self=this;
  5658. return self.join(aString);
  5659. return self;},
  5660. args: ["aString"],
  5661. source: unescape('join%3A%20aString%0A%09%3Creturn%20self.join%28aString%29%3E'),
  5662. messageSends: [],
  5663. referencedClasses: []
  5664. }),
  5665. smalltalk.Array);
  5666. smalltalk.addMethod(
  5667. unescape('_asJavascript'),
  5668. smalltalk.method({
  5669. selector: unescape('asJavascript'),
  5670. category: 'converting',
  5671. fn: function (){
  5672. var self=this;
  5673. 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")]);
  5674. return self;},
  5675. args: [],
  5676. 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'),
  5677. messageSends: [unescape("%2C"), "join:", "collect:", "asJavascript"],
  5678. referencedClasses: []
  5679. }),
  5680. smalltalk.Array);
  5681. smalltalk.addMethod(
  5682. unescape('_sort'),
  5683. smalltalk.method({
  5684. selector: unescape('sort'),
  5685. category: 'enumerating',
  5686. fn: function (){
  5687. var self=this;
  5688. return smalltalk.send(self, "_basicPerform_", ["sort"]);
  5689. return self;},
  5690. args: [],
  5691. source: unescape('sort%0A%20%20%20%20%5Eself%20basicPerform%3A%20%27sort%27'),
  5692. messageSends: ["basicPerform:"],
  5693. referencedClasses: []
  5694. }),
  5695. smalltalk.Array);
  5696. smalltalk.addMethod(
  5697. unescape('_sort_'),
  5698. smalltalk.method({
  5699. selector: unescape('sort%3A'),
  5700. category: 'enumerating',
  5701. fn: function (aBlock){
  5702. var self=this;
  5703. return self.sort(function(a, b) {
  5704. if(aBlock(a,b)) {return -1} else {return 1}
  5705. })
  5706. ;
  5707. return self;},
  5708. args: ["aBlock"],
  5709. 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'),
  5710. messageSends: [],
  5711. referencedClasses: []
  5712. }),
  5713. smalltalk.Array);
  5714. smalltalk.addMethod(
  5715. unescape('_remove_'),
  5716. smalltalk.method({
  5717. selector: unescape('remove%3A'),
  5718. category: 'adding/removing',
  5719. fn: function (anObject){
  5720. var self=this;
  5721. for(var i=0;i<self.length;i++) {
  5722. if(self[i] == anObject) {
  5723. self.splice(i,1);
  5724. break;
  5725. }
  5726. }
  5727. ;
  5728. return self;},
  5729. args: ["anObject"],
  5730. 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'),
  5731. messageSends: [],
  5732. referencedClasses: []
  5733. }),
  5734. smalltalk.Array);
  5735. smalltalk.addMethod(
  5736. unescape('_sorted'),
  5737. smalltalk.method({
  5738. selector: unescape('sorted'),
  5739. category: 'enumerating',
  5740. fn: function (){
  5741. var self=this;
  5742. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort", []);
  5743. return self;},
  5744. args: [],
  5745. source: unescape('sorted%0A%09%5Eself%20copy%20sort'),
  5746. messageSends: ["sort", "copy"],
  5747. referencedClasses: []
  5748. }),
  5749. smalltalk.Array);
  5750. smalltalk.addMethod(
  5751. unescape('_sorted_'),
  5752. smalltalk.method({
  5753. selector: unescape('sorted%3A'),
  5754. category: 'enumerating',
  5755. fn: function (aBlock){
  5756. var self=this;
  5757. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort_", [aBlock]);
  5758. return self;},
  5759. args: ["aBlock"],
  5760. source: unescape('sorted%3A%20aBlock%0A%09%5Eself%20copy%20sort%3A%20aBlock'),
  5761. messageSends: ["sort:", "copy"],
  5762. referencedClasses: []
  5763. }),
  5764. smalltalk.Array);
  5765. smalltalk.addMethod(
  5766. unescape('_asJSONObject'),
  5767. smalltalk.method({
  5768. selector: unescape('asJSONObject'),
  5769. category: 'converting',
  5770. fn: function (){
  5771. var self=this;
  5772. return smalltalk.send(self, "_collect_", [(function(each){return smalltalk.send(each, "_asJSONObject", []);})]);
  5773. return self;},
  5774. args: [],
  5775. source: unescape('asJSONObject%0A%09%5Eself%20collect%3A%20%5B%3Aeach%20%7C%20each%20asJSONObject%5D'),
  5776. messageSends: ["collect:", "asJSONObject"],
  5777. referencedClasses: []
  5778. }),
  5779. smalltalk.Array);
  5780. smalltalk.addMethod(
  5781. unescape('_removeFrom_to_'),
  5782. smalltalk.method({
  5783. selector: unescape('removeFrom%3Ato%3A'),
  5784. category: 'adding/removing',
  5785. fn: function (aNumber, anotherNumber){
  5786. var self=this;
  5787. self.splice(aNumber - 1,anotherNumber - 1);
  5788. return self;},
  5789. args: ["aNumber", "anotherNumber"],
  5790. source: unescape('removeFrom%3A%20aNumber%20to%3A%20anotherNumber%0A%09%3Cself.splice%28aNumber%20-%201%2CanotherNumber%20-%201%29%3E'),
  5791. messageSends: [],
  5792. referencedClasses: []
  5793. }),
  5794. smalltalk.Array);
  5795. smalltalk.addMethod(
  5796. unescape('_printString'),
  5797. smalltalk.method({
  5798. selector: unescape('printString'),
  5799. category: 'enumerating',
  5800. fn: function (){
  5801. var self=this;
  5802. var str=nil;
  5803. str=smalltalk.send("", "_writeStream", []);
  5804. smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.SequenceableCollection), "__comma", [unescape("%20%28")])]);
  5805. smalltalk.send(self, "_do_separatedBy_", [(function(each){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(each, "_printString", [])]);}), (function(){return smalltalk.send(str, "_nextPutAll_", [" "]);})]);
  5806. smalltalk.send(str, "_nextPutAll_", [unescape("%29")]);
  5807. return smalltalk.send(str, "_contents", []);
  5808. return self;},
  5809. args: [],
  5810. 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'),
  5811. messageSends: ["writeStream", "nextPutAll:", unescape("%2C"), "printString", "do:separatedBy:", "contents"],
  5812. referencedClasses: []
  5813. }),
  5814. smalltalk.Array);
  5815. smalltalk.addMethod(
  5816. unescape('_reversed'),
  5817. smalltalk.method({
  5818. selector: unescape('reversed'),
  5819. category: 'converting',
  5820. fn: function (){
  5821. var self=this;
  5822. return self._copy().reverse();
  5823. return self;},
  5824. args: [],
  5825. source: unescape('reversed%0A%09%3Creturn%20self._copy%28%29.reverse%28%29%3E'),
  5826. messageSends: [],
  5827. referencedClasses: []
  5828. }),
  5829. smalltalk.Array);
  5830. smalltalk.addMethod(
  5831. unescape('__eq'),
  5832. smalltalk.method({
  5833. selector: unescape('%3D'),
  5834. category: 'comparing',
  5835. fn: function (aCollection){
  5836. var self=this;
  5837. 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}})})();})]));
  5838. 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}})})();})]));})]);
  5839. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return true}})})();
  5840. return self;
  5841. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  5842. args: ["aCollection"],
  5843. 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'),
  5844. messageSends: ["ifFalse:", "and:", unescape("%3D"), "class", "size", "withIndexDo:", "at:"],
  5845. referencedClasses: []
  5846. }),
  5847. smalltalk.Array);
  5848. smalltalk.addClass('RegularExpression', smalltalk.Object, [], 'Kernel');
  5849. smalltalk.addMethod(
  5850. unescape('_compile_'),
  5851. smalltalk.method({
  5852. selector: unescape('compile%3A'),
  5853. category: 'evaluating',
  5854. fn: function (aString){
  5855. var self=this;
  5856. return self.compile(aString);
  5857. return self;},
  5858. args: ["aString"],
  5859. source: unescape('compile%3A%20aString%0A%09%3Creturn%20self.compile%28aString%29%3E'),
  5860. messageSends: [],
  5861. referencedClasses: []
  5862. }),
  5863. smalltalk.RegularExpression);
  5864. smalltalk.addMethod(
  5865. unescape('_exec_'),
  5866. smalltalk.method({
  5867. selector: unescape('exec%3A'),
  5868. category: 'evaluating',
  5869. fn: function (aString){
  5870. var self=this;
  5871. return self.exec(aString) || nil;
  5872. return self;},
  5873. args: ["aString"],
  5874. source: unescape('exec%3A%20aString%0A%09%3Creturn%20self.exec%28aString%29%20%7C%7C%20nil%3E'),
  5875. messageSends: [],
  5876. referencedClasses: []
  5877. }),
  5878. smalltalk.RegularExpression);
  5879. smalltalk.addMethod(
  5880. unescape('_test_'),
  5881. smalltalk.method({
  5882. selector: unescape('test%3A'),
  5883. category: 'evaluating',
  5884. fn: function (aString){
  5885. var self=this;
  5886. return self.test(aString);
  5887. return self;},
  5888. args: ["aString"],
  5889. source: unescape('test%3A%20aString%0A%09%3Creturn%20self.test%28aString%29%3E'),
  5890. messageSends: [],
  5891. referencedClasses: []
  5892. }),
  5893. smalltalk.RegularExpression);
  5894. smalltalk.addMethod(
  5895. unescape('_fromString_flag_'),
  5896. smalltalk.method({
  5897. selector: unescape('fromString%3Aflag%3A'),
  5898. category: 'instance creation',
  5899. fn: function (aString, anotherString){
  5900. var self=this;
  5901. return new RegExp(aString, anotherString);
  5902. return self;},
  5903. args: ["aString", "anotherString"],
  5904. source: unescape('fromString%3A%20aString%20flag%3A%20anotherString%0A%09%3Creturn%20new%20RegExp%28aString%2C%20anotherString%29%3E'),
  5905. messageSends: [],
  5906. referencedClasses: []
  5907. }),
  5908. smalltalk.RegularExpression.klass);
  5909. smalltalk.addMethod(
  5910. unescape('_fromString_'),
  5911. smalltalk.method({
  5912. selector: unescape('fromString%3A'),
  5913. category: 'instance creation',
  5914. fn: function (aString){
  5915. var self=this;
  5916. return smalltalk.send(self, "_fromString_flag_", [aString, ""]);
  5917. return self;},
  5918. args: ["aString"],
  5919. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%5Eself%20fromString%3A%20aString%20flag%3A%20%27%27'),
  5920. messageSends: ["fromString:flag:"],
  5921. referencedClasses: []
  5922. }),
  5923. smalltalk.RegularExpression.klass);
  5924. smalltalk.addClass('Error', smalltalk.Object, ['messageText'], 'Kernel');
  5925. smalltalk.addMethod(
  5926. unescape('_messageText'),
  5927. smalltalk.method({
  5928. selector: unescape('messageText'),
  5929. category: 'accessing',
  5930. fn: function (){
  5931. var self=this;
  5932. return self['@messageText'];
  5933. return self;},
  5934. args: [],
  5935. source: unescape('messageText%0A%09%5EmessageText'),
  5936. messageSends: [],
  5937. referencedClasses: []
  5938. }),
  5939. smalltalk.Error);
  5940. smalltalk.addMethod(
  5941. unescape('_messageText_'),
  5942. smalltalk.method({
  5943. selector: unescape('messageText%3A'),
  5944. category: 'accessing',
  5945. fn: function (aString){
  5946. var self=this;
  5947. self['@messageText']=aString;
  5948. return self;},
  5949. args: ["aString"],
  5950. source: unescape('messageText%3A%20aString%0A%09messageText%20%3A%3D%20aString'),
  5951. messageSends: [],
  5952. referencedClasses: []
  5953. }),
  5954. smalltalk.Error);
  5955. smalltalk.addMethod(
  5956. unescape('_signal'),
  5957. smalltalk.method({
  5958. selector: unescape('signal'),
  5959. category: 'signaling',
  5960. fn: function (){
  5961. var self=this;
  5962. self.context = smalltalk.getThisContext(); self.smalltalkError = true; throw(self);
  5963. return self;},
  5964. args: [],
  5965. source: unescape('signal%0A%09%3Cself.context%20%3D%20smalltalk.getThisContext%28%29%3B%20self.smalltalkError%20%3D%20true%3B%20throw%28self%29%3E'),
  5966. messageSends: [],
  5967. referencedClasses: []
  5968. }),
  5969. smalltalk.Error);
  5970. smalltalk.addMethod(
  5971. unescape('_context'),
  5972. smalltalk.method({
  5973. selector: unescape('context'),
  5974. category: 'accessing',
  5975. fn: function (){
  5976. var self=this;
  5977. return self.context;
  5978. return self;},
  5979. args: [],
  5980. source: unescape('context%0A%09%3Creturn%20self.context%3E'),
  5981. messageSends: [],
  5982. referencedClasses: []
  5983. }),
  5984. smalltalk.Error);
  5985. smalltalk.addMethod(
  5986. unescape('_signal_'),
  5987. smalltalk.method({
  5988. selector: unescape('signal%3A'),
  5989. category: 'instance creation',
  5990. fn: function (aString){
  5991. var self=this;
  5992. return (function($rec){smalltalk.send($rec, "_messageText_", [aString]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send(self, "_new", []));
  5993. return self;},
  5994. args: ["aString"],
  5995. source: unescape('signal%3A%20aString%0A%09%20%20%20%20%5Eself%20new%0A%09%09messageText%3A%20aString%3B%0A%09%09signal'),
  5996. messageSends: ["messageText:", "signal", "new"],
  5997. referencedClasses: []
  5998. }),
  5999. smalltalk.Error.klass);
  6000. smalltalk.addClass('MethodContext', smalltalk.Object, [], 'Kernel');
  6001. smalltalk.addMethod(
  6002. unescape('_receiver'),
  6003. smalltalk.method({
  6004. selector: unescape('receiver'),
  6005. category: 'accessing',
  6006. fn: function (){
  6007. var self=this;
  6008. return self.receiver;
  6009. return self;},
  6010. args: [],
  6011. source: unescape('receiver%0A%09%3Creturn%20self.receiver%3E'),
  6012. messageSends: [],
  6013. referencedClasses: []
  6014. }),
  6015. smalltalk.MethodContext);
  6016. smalltalk.addMethod(
  6017. unescape('_selector'),
  6018. smalltalk.method({
  6019. selector: unescape('selector'),
  6020. category: 'accessing',
  6021. fn: function (){
  6022. var self=this;
  6023. return smalltalk.convertSelector(self.selector);
  6024. return self;},
  6025. args: [],
  6026. source: unescape('selector%0A%09%3Creturn%20smalltalk.convertSelector%28self.selector%29%3E'),
  6027. messageSends: [],
  6028. referencedClasses: []
  6029. }),
  6030. smalltalk.MethodContext);
  6031. smalltalk.addMethod(
  6032. unescape('_home'),
  6033. smalltalk.method({
  6034. selector: unescape('home'),
  6035. category: 'accessing',
  6036. fn: function (){
  6037. var self=this;
  6038. return self.homeContext;
  6039. return self;},
  6040. args: [],
  6041. source: unescape('home%0A%09%3Creturn%20self.homeContext%3E'),
  6042. messageSends: [],
  6043. referencedClasses: []
  6044. }),
  6045. smalltalk.MethodContext);
  6046. smalltalk.addMethod(
  6047. unescape('_temps'),
  6048. smalltalk.method({
  6049. selector: unescape('temps'),
  6050. category: 'accessing',
  6051. fn: function (){
  6052. var self=this;
  6053. return self.temps;
  6054. return self;},
  6055. args: [],
  6056. source: unescape('temps%0A%09%3Creturn%20self.temps%3E'),
  6057. messageSends: [],
  6058. referencedClasses: []
  6059. }),
  6060. smalltalk.MethodContext);
  6061. smalltalk.addMethod(
  6062. unescape('_printString'),
  6063. smalltalk.method({
  6064. selector: unescape('printString'),
  6065. category: 'accessing',
  6066. fn: function (){
  6067. var self=this;
  6068. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.Object), "__comma", [unescape("%28")]), "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", [unescape("%29")]);
  6069. return self;},
  6070. args: [],
  6071. source: unescape('printString%0A%09%5Esuper%20printString%2C%20%27%28%27%2C%20self%20asString%2C%20%27%29%27'),
  6072. messageSends: [unescape("%2C"), "printString", "asString"],
  6073. referencedClasses: []
  6074. }),
  6075. smalltalk.MethodContext);
  6076. smalltalk.addMethod(
  6077. unescape('_asString'),
  6078. smalltalk.method({
  6079. selector: unescape('asString'),
  6080. category: 'accessing',
  6081. fn: function (){
  6082. var self=this;
  6083. 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", [])]);
  6084. return self;},
  6085. args: [],
  6086. source: unescape('asString%0A%09%5Eself%20receiver%20class%20printString%2C%20%27%20%3E%3E%20%27%2C%20self%20selector'),
  6087. messageSends: [unescape("%2C"), "printString", "class", "receiver", "selector"],
  6088. referencedClasses: []
  6089. }),
  6090. smalltalk.MethodContext);
  6091. smalltalk.addClass('Association', smalltalk.Object, ['key', 'value'], 'Kernel');
  6092. smalltalk.addMethod(
  6093. unescape('__eq'),
  6094. smalltalk.method({
  6095. selector: unescape('%3D'),
  6096. category: 'comparing',
  6097. fn: function (anAssociation){
  6098. var self=this;
  6099. 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", [])]);})]);})]);
  6100. return self;},
  6101. args: ["anAssociation"],
  6102. 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'),
  6103. messageSends: ["and:", unescape("%3D"), "class", "key", "value"],
  6104. referencedClasses: []
  6105. }),
  6106. smalltalk.Association);
  6107. smalltalk.addMethod(
  6108. unescape('_key_'),
  6109. smalltalk.method({
  6110. selector: unescape('key%3A'),
  6111. category: 'accessing',
  6112. fn: function (aKey){
  6113. var self=this;
  6114. self['@key']=aKey;
  6115. return self;},
  6116. args: ["aKey"],
  6117. source: unescape('key%3A%20aKey%0A%09key%20%3A%3D%20aKey'),
  6118. messageSends: [],
  6119. referencedClasses: []
  6120. }),
  6121. smalltalk.Association);
  6122. smalltalk.addMethod(
  6123. unescape('_key'),
  6124. smalltalk.method({
  6125. selector: unescape('key'),
  6126. category: 'accessing',
  6127. fn: function (){
  6128. var self=this;
  6129. return self['@key'];
  6130. return self;},
  6131. args: [],
  6132. source: unescape('key%0A%09%5Ekey'),
  6133. messageSends: [],
  6134. referencedClasses: []
  6135. }),
  6136. smalltalk.Association);
  6137. smalltalk.addMethod(
  6138. unescape('_value_'),
  6139. smalltalk.method({
  6140. selector: unescape('value%3A'),
  6141. category: 'accessing',
  6142. fn: function (aValue){
  6143. var self=this;
  6144. self['@value']=aValue;
  6145. return self;},
  6146. args: ["aValue"],
  6147. source: unescape('value%3A%20aValue%0A%09value%20%3A%3D%20aValue'),
  6148. messageSends: [],
  6149. referencedClasses: []
  6150. }),
  6151. smalltalk.Association);
  6152. smalltalk.addMethod(
  6153. unescape('_value'),
  6154. smalltalk.method({
  6155. selector: unescape('value'),
  6156. category: 'accessing',
  6157. fn: function (){
  6158. var self=this;
  6159. return self['@value'];
  6160. return self;},
  6161. args: [],
  6162. source: unescape('value%0A%09%5Evalue'),
  6163. messageSends: [],
  6164. referencedClasses: []
  6165. }),
  6166. smalltalk.Association);
  6167. smalltalk.addMethod(
  6168. unescape('_key_value_'),
  6169. smalltalk.method({
  6170. selector: unescape('key%3Avalue%3A'),
  6171. category: 'instance creation',
  6172. fn: function (aKey, aValue){
  6173. var self=this;
  6174. return (function($rec){smalltalk.send($rec, "_key_", [aKey]);smalltalk.send($rec, "_value_", [aValue]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  6175. return self;},
  6176. args: ["aKey", "aValue"],
  6177. 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'),
  6178. messageSends: ["key:", "value:", "yourself", "new"],
  6179. referencedClasses: []
  6180. }),
  6181. smalltalk.Association.klass);
  6182. smalltalk.addClass('Dictionary', smalltalk.Collection, ['keys'], 'Kernel');
  6183. smalltalk.addMethod(
  6184. unescape('__eq'),
  6185. smalltalk.method({
  6186. selector: unescape('%3D'),
  6187. category: 'comparing',
  6188. fn: function (aDictionary){
  6189. var self=this;
  6190. 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}})})();})]));
  6191. ((($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}})})();})]));
  6192. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return smalltalk.send(smalltalk.send(self, "_associations", []), "__eq", [smalltalk.send(aDictionary, "_associations", [])])}})})();
  6193. return self;
  6194. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  6195. args: ["aDictionary"],
  6196. 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'),
  6197. messageSends: ["ifFalse:", unescape("%3D"), "class", "size", "associations"],
  6198. referencedClasses: []
  6199. }),
  6200. smalltalk.Dictionary);
  6201. smalltalk.addMethod(
  6202. unescape('_shallowCopy'),
  6203. smalltalk.method({
  6204. selector: unescape('shallowCopy'),
  6205. category: 'copying',
  6206. fn: function (){
  6207. var self=this;
  6208. var copy=nil;
  6209. copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6210. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(copy, "_at_put_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  6211. return copy;
  6212. return self;},
  6213. args: [],
  6214. 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'),
  6215. messageSends: ["new", "class", "associationsDo:", "at:put:", "key", "value"],
  6216. referencedClasses: []
  6217. }),
  6218. smalltalk.Dictionary);
  6219. smalltalk.addMethod(
  6220. unescape('_initialize'),
  6221. smalltalk.method({
  6222. selector: unescape('initialize'),
  6223. category: 'initialization',
  6224. fn: function (){
  6225. var self=this;
  6226. smalltalk.send(self, "_initialize", [], smalltalk.Collection);
  6227. self['@keys']=[];
  6228. return self;},
  6229. args: [],
  6230. source: unescape('initialize%0A%20%20%20%20%09super%20initialize.%0A%20%20%20%20%09keys%20%3A%3D%20%23%28%29'),
  6231. messageSends: ["initialize"],
  6232. referencedClasses: []
  6233. }),
  6234. smalltalk.Dictionary);
  6235. smalltalk.addMethod(
  6236. unescape('_size'),
  6237. smalltalk.method({
  6238. selector: unescape('size'),
  6239. category: 'accessing',
  6240. fn: function (){
  6241. var self=this;
  6242. return smalltalk.send(self['@keys'], "_size", []);
  6243. return self;},
  6244. args: [],
  6245. source: unescape('size%0A%09%5Ekeys%20size'),
  6246. messageSends: ["size"],
  6247. referencedClasses: []
  6248. }),
  6249. smalltalk.Dictionary);
  6250. smalltalk.addMethod(
  6251. unescape('_associations'),
  6252. smalltalk.method({
  6253. selector: unescape('associations'),
  6254. category: 'accessing',
  6255. fn: function (){
  6256. var self=this;
  6257. var associations=nil;
  6258. associations=[];
  6259. 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])])]);})]);
  6260. return associations;
  6261. return self;},
  6262. args: [],
  6263. 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'),
  6264. messageSends: ["do:", "add:", "key:value:", "at:"],
  6265. referencedClasses: [smalltalk.Association]
  6266. }),
  6267. smalltalk.Dictionary);
  6268. smalltalk.addMethod(
  6269. unescape('_keys'),
  6270. smalltalk.method({
  6271. selector: unescape('keys'),
  6272. category: 'accessing',
  6273. fn: function (){
  6274. var self=this;
  6275. return smalltalk.send(self['@keys'], "_copy", []);
  6276. return self;},
  6277. args: [],
  6278. source: unescape('keys%0A%09%5Ekeys%20copy'),
  6279. messageSends: ["copy"],
  6280. referencedClasses: []
  6281. }),
  6282. smalltalk.Dictionary);
  6283. smalltalk.addMethod(
  6284. unescape('_values'),
  6285. smalltalk.method({
  6286. selector: unescape('values'),
  6287. category: 'accessing',
  6288. fn: function (){
  6289. var self=this;
  6290. return smalltalk.send(self['@keys'], "_collect_", [(function(each){return smalltalk.send(self, "_at_", [each]);})]);
  6291. return self;},
  6292. args: [],
  6293. source: unescape('values%0A%20%20%20%20%09%5Ekeys%20collect%3A%20%5B%3Aeach%20%7C%20self%20at%3A%20each%5D'),
  6294. messageSends: ["collect:", "at:"],
  6295. referencedClasses: []
  6296. }),
  6297. smalltalk.Dictionary);
  6298. smalltalk.addMethod(
  6299. unescape('_at_put_'),
  6300. smalltalk.method({
  6301. selector: unescape('at%3Aput%3A'),
  6302. category: 'accessing',
  6303. fn: function (aKey, aValue){
  6304. var self=this;
  6305. ((($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]);})]));
  6306. return smalltalk.send(self, "_basicAt_put_", [aKey, aValue]);
  6307. return self;},
  6308. args: ["aKey", "aValue"],
  6309. 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'),
  6310. messageSends: ["ifFalse:", "includes:", "add:", "basicAt:put:"],
  6311. referencedClasses: []
  6312. }),
  6313. smalltalk.Dictionary);
  6314. smalltalk.addMethod(
  6315. unescape('_at_ifAbsent_'),
  6316. smalltalk.method({
  6317. selector: unescape('at%3AifAbsent%3A'),
  6318. category: 'accessing',
  6319. fn: function (aKey, aBlock){
  6320. var self=this;
  6321. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_keys", []), "_includes_", [aKey]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_basicAt_", [aKey]);}), aBlock]);
  6322. return self;},
  6323. args: ["aKey", "aBlock"],
  6324. 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'),
  6325. messageSends: ["ifTrue:ifFalse:", "includes:", "keys", "basicAt:"],
  6326. referencedClasses: []
  6327. }),
  6328. smalltalk.Dictionary);
  6329. smalltalk.addMethod(
  6330. unescape('_at_ifAbsentPut_'),
  6331. smalltalk.method({
  6332. selector: unescape('at%3AifAbsentPut%3A'),
  6333. category: 'accessing',
  6334. fn: function (aKey, aBlock){
  6335. var self=this;
  6336. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_at_put_", [aKey, smalltalk.send(aBlock, "_value", [])]);})]);
  6337. return self;},
  6338. args: ["aKey", "aBlock"],
  6339. 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'),
  6340. messageSends: ["at:ifAbsent:", "at:put:", "value"],
  6341. referencedClasses: []
  6342. }),
  6343. smalltalk.Dictionary);
  6344. smalltalk.addMethod(
  6345. unescape('_at_ifPresent_'),
  6346. smalltalk.method({
  6347. selector: unescape('at%3AifPresent%3A'),
  6348. category: 'accessing',
  6349. fn: function (aKey, aBlock){
  6350. var self=this;
  6351. return (($receiver = smalltalk.send(self, "_basicAt_", [aKey])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})() : nil;
  6352. return self;},
  6353. args: ["aKey", "aBlock"],
  6354. 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'),
  6355. messageSends: ["ifNotNil:", "basicAt:", "value:", "at:"],
  6356. referencedClasses: []
  6357. }),
  6358. smalltalk.Dictionary);
  6359. smalltalk.addMethod(
  6360. unescape('_at_ifPresent_ifAbsent_'),
  6361. smalltalk.method({
  6362. selector: unescape('at%3AifPresent%3AifAbsent%3A'),
  6363. category: 'accessing',
  6364. fn: function (aKey, aBlock, anotherBlock){
  6365. var self=this;
  6366. return smalltalk.send(smalltalk.send(self, "_basicAt_", [aKey]), "_ifNil_ifNotNil_", [anotherBlock, (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})]);
  6367. return self;},
  6368. args: ["aKey", "aBlock", "anotherBlock"],
  6369. 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'),
  6370. messageSends: ["ifNil:ifNotNil:", "basicAt:", "value:", "at:"],
  6371. referencedClasses: []
  6372. }),
  6373. smalltalk.Dictionary);
  6374. smalltalk.addMethod(
  6375. unescape('_add_'),
  6376. smalltalk.method({
  6377. selector: unescape('add%3A'),
  6378. category: 'adding/removing',
  6379. fn: function (anAssociation){
  6380. var self=this;
  6381. smalltalk.send(self, "_at_put_", [smalltalk.send(anAssociation, "_key", []), smalltalk.send(anAssociation, "_value", [])]);
  6382. return self;},
  6383. args: ["anAssociation"],
  6384. source: unescape('add%3A%20anAssociation%0A%20%20%20%20%09self%20at%3A%20anAssociation%20key%20put%3A%20anAssociation%20value'),
  6385. messageSends: ["at:put:", "key", "value"],
  6386. referencedClasses: []
  6387. }),
  6388. smalltalk.Dictionary);
  6389. smalltalk.addMethod(
  6390. unescape('_addAll_'),
  6391. smalltalk.method({
  6392. selector: unescape('addAll%3A'),
  6393. category: 'adding/removing',
  6394. fn: function (aDictionary){
  6395. var self=this;
  6396. smalltalk.send(self, "_addAll_", [smalltalk.send(aDictionary, "_associations", [])], smalltalk.Collection);
  6397. return aDictionary;
  6398. return self;},
  6399. args: ["aDictionary"],
  6400. source: unescape('addAll%3A%20aDictionary%0A%20%20%20%20%09super%20addAll%3A%20aDictionary%20associations.%0A%20%20%20%20%09%5EaDictionary'),
  6401. messageSends: ["addAll:", "associations"],
  6402. referencedClasses: []
  6403. }),
  6404. smalltalk.Dictionary);
  6405. smalltalk.addMethod(
  6406. unescape('__comma'),
  6407. smalltalk.method({
  6408. selector: unescape('%2C'),
  6409. category: 'copying',
  6410. fn: function (aCollection){
  6411. var self=this;
  6412. smalltalk.send(self, "_shouldNotImplement", []);
  6413. return self;},
  6414. args: ["aCollection"],
  6415. source: unescape('%2C%20aCollection%0A%09self%20shouldNotImplement'),
  6416. messageSends: ["shouldNotImplement"],
  6417. referencedClasses: []
  6418. }),
  6419. smalltalk.Dictionary);
  6420. smalltalk.addMethod(
  6421. unescape('_copyFrom_to_'),
  6422. smalltalk.method({
  6423. selector: unescape('copyFrom%3Ato%3A'),
  6424. category: 'copying',
  6425. fn: function (anIndex, anotherIndex){
  6426. var self=this;
  6427. smalltalk.send(self, "_shouldNotImplement", []);
  6428. return self;},
  6429. args: ["anIndex", "anotherIndex"],
  6430. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20shouldNotImplement'),
  6431. messageSends: ["shouldNotImplement"],
  6432. referencedClasses: []
  6433. }),
  6434. smalltalk.Dictionary);
  6435. smalltalk.addMethod(
  6436. unescape('_associationsDo_'),
  6437. smalltalk.method({
  6438. selector: unescape('associationsDo%3A'),
  6439. category: 'enumerating',
  6440. fn: function (aBlock){
  6441. var self=this;
  6442. smalltalk.send(smalltalk.send(self, "_associations", []), "_do_", [aBlock]);
  6443. return self;},
  6444. args: ["aBlock"],
  6445. source: unescape('associationsDo%3A%20aBlock%0A%20%20%20%20%09self%20associations%20do%3A%20aBlock'),
  6446. messageSends: ["do:", "associations"],
  6447. referencedClasses: []
  6448. }),
  6449. smalltalk.Dictionary);
  6450. smalltalk.addMethod(
  6451. unescape('_keysAndValuesDo_'),
  6452. smalltalk.method({
  6453. selector: unescape('keysAndValuesDo%3A'),
  6454. category: 'enumerating',
  6455. fn: function (aBlock){
  6456. var self=this;
  6457. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(aBlock, "_value_value_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  6458. return self;},
  6459. args: ["aBlock"],
  6460. 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'),
  6461. messageSends: ["associationsDo:", "value:value:", "key", "value"],
  6462. referencedClasses: []
  6463. }),
  6464. smalltalk.Dictionary);
  6465. smalltalk.addMethod(
  6466. unescape('_do_'),
  6467. smalltalk.method({
  6468. selector: unescape('do%3A'),
  6469. category: 'enumerating',
  6470. fn: function (aBlock){
  6471. var self=this;
  6472. smalltalk.send(smalltalk.send(self, "_values", []), "_do_", [aBlock]);
  6473. return self;},
  6474. args: ["aBlock"],
  6475. source: unescape('do%3A%20aBlock%0A%20%20%20%20%09self%20values%20do%3A%20aBlock'),
  6476. messageSends: ["do:", "values"],
  6477. referencedClasses: []
  6478. }),
  6479. smalltalk.Dictionary);
  6480. smalltalk.addMethod(
  6481. unescape('_select_'),
  6482. smalltalk.method({
  6483. selector: unescape('select%3A'),
  6484. category: 'enumerating',
  6485. fn: function (aBlock){
  6486. var self=this;
  6487. var newDict=nil;
  6488. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6489. 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]);})]));})]);
  6490. return newDict;
  6491. return self;},
  6492. args: ["aBlock"],
  6493. 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'),
  6494. messageSends: ["new", "class", "keysAndValuesDo:", "ifTrue:", "value:", "at:put:"],
  6495. referencedClasses: []
  6496. }),
  6497. smalltalk.Dictionary);
  6498. smalltalk.addMethod(
  6499. unescape('_collect_'),
  6500. smalltalk.method({
  6501. selector: unescape('collect%3A'),
  6502. category: 'enumerating',
  6503. fn: function (aBlock){
  6504. var self=this;
  6505. var newDict=nil;
  6506. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6507. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(newDict, "_at_put_", [key, smalltalk.send(aBlock, "_value_", [value])]);})]);
  6508. return newDict;
  6509. return self;},
  6510. args: ["aBlock"],
  6511. 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'),
  6512. messageSends: ["new", "class", "keysAndValuesDo:", "at:put:", "value:"],
  6513. referencedClasses: []
  6514. }),
  6515. smalltalk.Dictionary);
  6516. smalltalk.addMethod(
  6517. unescape('_detect_ifNone_'),
  6518. smalltalk.method({
  6519. selector: unescape('detect%3AifNone%3A'),
  6520. category: 'enumerating',
  6521. fn: function (aBlock, anotherBlock){
  6522. var self=this;
  6523. return smalltalk.send(smalltalk.send(self, "_values", []), "_detect_ifNone_", [aBlock, anotherBlock]);
  6524. return self;},
  6525. args: ["aBlock", "anotherBlock"],
  6526. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eself%20values%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  6527. messageSends: ["detect:ifNone:", "values"],
  6528. referencedClasses: []
  6529. }),
  6530. smalltalk.Dictionary);
  6531. smalltalk.addMethod(
  6532. unescape('_includes_'),
  6533. smalltalk.method({
  6534. selector: unescape('includes%3A'),
  6535. category: 'enumerating',
  6536. fn: function (anObject){
  6537. var self=this;
  6538. return smalltalk.send(smalltalk.send(self, "_values", []), "_includes_", [anObject]);
  6539. return self;},
  6540. args: ["anObject"],
  6541. source: unescape('includes%3A%20anObject%0A%09%5Eself%20values%20includes%3A%20anObject'),
  6542. messageSends: ["includes:", "values"],
  6543. referencedClasses: []
  6544. }),
  6545. smalltalk.Dictionary);
  6546. smalltalk.addMethod(
  6547. unescape('_remove_'),
  6548. smalltalk.method({
  6549. selector: unescape('remove%3A'),
  6550. category: 'adding/removing',
  6551. fn: function (aKey){
  6552. var self=this;
  6553. smalltalk.send(self, "_removeKey_", [aKey]);
  6554. return self;},
  6555. args: ["aKey"],
  6556. source: unescape('remove%3A%20aKey%0A%20%20%20%20self%20removeKey%3A%20aKey'),
  6557. messageSends: ["removeKey:"],
  6558. referencedClasses: []
  6559. }),
  6560. smalltalk.Dictionary);
  6561. smalltalk.addMethod(
  6562. unescape('_removeKey_'),
  6563. smalltalk.method({
  6564. selector: unescape('removeKey%3A'),
  6565. category: 'adding/removing',
  6566. fn: function (aKey){
  6567. var self=this;
  6568. smalltalk.send(self['@keys'], "_remove_", [aKey]);
  6569. return self;},
  6570. args: ["aKey"],
  6571. source: unescape('removeKey%3A%20aKey%0A%20%20%20%20keys%20remove%3A%20aKey'),
  6572. messageSends: ["remove:"],
  6573. referencedClasses: []
  6574. }),
  6575. smalltalk.Dictionary);
  6576. smalltalk.addMethod(
  6577. unescape('_at_'),
  6578. smalltalk.method({
  6579. selector: unescape('at%3A'),
  6580. category: 'accessing',
  6581. fn: function (aKey){
  6582. var self=this;
  6583. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  6584. return self;},
  6585. args: ["aKey"],
  6586. source: unescape('at%3A%20aKey%0A%09%5Eself%20at%3A%20aKey%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  6587. messageSends: ["at:ifAbsent:", "errorNotFound"],
  6588. referencedClasses: []
  6589. }),
  6590. smalltalk.Dictionary);
  6591. smalltalk.addMethod(
  6592. unescape('_asJSONObject'),
  6593. smalltalk.method({
  6594. selector: unescape('asJSONObject'),
  6595. category: 'converting',
  6596. fn: function (){
  6597. var self=this;
  6598. var object=nil;
  6599. object=smalltalk.send((smalltalk.Object || Object), "_new", []);
  6600. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(object, "_basicAt_put_", [key, smalltalk.send(value, "_asJSONObject", [])]);})]);
  6601. return object;
  6602. return self;},
  6603. args: [],
  6604. 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'),
  6605. messageSends: ["new", "keysAndValuesDo:", "basicAt:put:", "asJSONObject"],
  6606. referencedClasses: [smalltalk.Object]
  6607. }),
  6608. smalltalk.Dictionary);
  6609. smalltalk.addMethod(
  6610. unescape('_printString'),
  6611. smalltalk.method({
  6612. selector: unescape('printString'),
  6613. category: 'printing',
  6614. fn: function (){
  6615. var self=this;
  6616. 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")]);})]);
  6617. return self;},
  6618. args: [],
  6619. 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'),
  6620. messageSends: ["streamContents:", "nextPutAll:", "printString", "do:separatedBy:", "associations", "key", "value"],
  6621. referencedClasses: [smalltalk.String]
  6622. }),
  6623. smalltalk.Dictionary);
  6624. smalltalk.addMethod(
  6625. unescape('_fromPairs_'),
  6626. smalltalk.method({
  6627. selector: unescape('fromPairs%3A'),
  6628. category: 'instance creation',
  6629. fn: function (aCollection){
  6630. var self=this;
  6631. var dict=nil;
  6632. dict=smalltalk.send(self, "_new", []);
  6633. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(dict, "_add_", [each]);})]);
  6634. return dict;
  6635. return self;},
  6636. args: ["aCollection"],
  6637. 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'),
  6638. messageSends: ["new", "do:", "add:"],
  6639. referencedClasses: []
  6640. }),
  6641. smalltalk.Dictionary.klass);
  6642. smalltalk.addClass('ClassBuilder', smalltalk.Object, [], 'Kernel');
  6643. smalltalk.addMethod(
  6644. unescape('_superclass_subclass_'),
  6645. smalltalk.method({
  6646. selector: unescape('superclass%3Asubclass%3A'),
  6647. category: 'class creation',
  6648. fn: function (aClass, aString){
  6649. var self=this;
  6650. return smalltalk.send(self, "_superclass_subclass_instanceVariableNames_package_", [aClass, aString, "", nil]);
  6651. return self;},
  6652. args: ["aClass", "aString"],
  6653. 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'),
  6654. messageSends: ["superclass:subclass:instanceVariableNames:package:"],
  6655. referencedClasses: []
  6656. }),
  6657. smalltalk.ClassBuilder);
  6658. smalltalk.addMethod(
  6659. unescape('_class_instanceVariableNames_'),
  6660. smalltalk.method({
  6661. selector: unescape('class%3AinstanceVariableNames%3A'),
  6662. category: 'class creation',
  6663. fn: function (aClass, aString){
  6664. var self=this;
  6665. ((($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"])]);})]));
  6666. smalltalk.send(aClass, "_basicAt_put_", ["iVarNames", smalltalk.send(self, "_instanceVariableNamesFor_", [aString])]);
  6667. smalltalk.send(self, "_setupClass_", [aClass]);
  6668. return self;},
  6669. args: ["aClass", "aString"],
  6670. 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'),
  6671. messageSends: ["ifFalse:", "isMetaclass", "error:", unescape("%2C"), "name", "basicAt:put:", "instanceVariableNamesFor:", "setupClass:"],
  6672. referencedClasses: []
  6673. }),
  6674. smalltalk.ClassBuilder);
  6675. smalltalk.addMethod(
  6676. unescape('_instanceVariableNamesFor_'),
  6677. smalltalk.method({
  6678. selector: unescape('instanceVariableNamesFor%3A'),
  6679. category: 'private',
  6680. fn: function (aString){
  6681. var self=this;
  6682. return smalltalk.send(smalltalk.send(aString, "_tokenize_", [" "]), "_reject_", [(function(each){return smalltalk.send(each, "_isEmpty", []);})]);
  6683. return self;},
  6684. args: ["aString"],
  6685. 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'),
  6686. messageSends: ["reject:", "tokenize:", "isEmpty"],
  6687. referencedClasses: []
  6688. }),
  6689. smalltalk.ClassBuilder);
  6690. smalltalk.addMethod(
  6691. unescape('_addSubclassOf_named_instanceVariableNames_'),
  6692. smalltalk.method({
  6693. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3A'),
  6694. category: 'private',
  6695. fn: function (aClass, aString, aCollection){
  6696. var self=this;
  6697. smalltalk.addClass(aString, aClass, aCollection);
  6698. return smalltalk[aString];
  6699. return self;},
  6700. args: ["aClass", "aString", "aCollection"],
  6701. 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'),
  6702. messageSends: [],
  6703. referencedClasses: []
  6704. }),
  6705. smalltalk.ClassBuilder);
  6706. smalltalk.addMethod(
  6707. unescape('_setupClass_'),
  6708. smalltalk.method({
  6709. selector: unescape('setupClass%3A'),
  6710. category: 'private',
  6711. fn: function (aClass){
  6712. var self=this;
  6713. smalltalk.init(aClass);;
  6714. return self;},
  6715. args: ["aClass"],
  6716. source: unescape('setupClass%3A%20aClass%0A%09%3Csmalltalk.init%28aClass%29%3B%3E'),
  6717. messageSends: [],
  6718. referencedClasses: []
  6719. }),
  6720. smalltalk.ClassBuilder);
  6721. smalltalk.addMethod(
  6722. unescape('_superclass_subclass_instanceVariableNames_package_'),
  6723. smalltalk.method({
  6724. selector: unescape('superclass%3Asubclass%3AinstanceVariableNames%3Apackage%3A'),
  6725. category: 'class creation',
  6726. fn: function (aClass, aString, aString2, aString3){
  6727. var self=this;
  6728. var newClass=nil;
  6729. newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [aClass, aString, smalltalk.send(self, "_instanceVariableNamesFor_", [aString2]), (($receiver = aString3) == nil || $receiver == undefined) ? (function(){return "unclassified";})() : $receiver]);
  6730. smalltalk.send(self, "_setupClass_", [newClass]);
  6731. return newClass;
  6732. return self;},
  6733. args: ["aClass", "aString", "aString2", "aString3"],
  6734. 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'),
  6735. messageSends: ["addSubclassOf:named:instanceVariableNames:package:", "instanceVariableNamesFor:", "ifNil:", "setupClass:"],
  6736. referencedClasses: []
  6737. }),
  6738. smalltalk.ClassBuilder);
  6739. smalltalk.addMethod(
  6740. unescape('_addSubclassOf_named_instanceVariableNames_package_'),
  6741. smalltalk.method({
  6742. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3Apackage%3A'),
  6743. category: 'private',
  6744. fn: function (aClass, aString, aCollection, packageName){
  6745. var self=this;
  6746. smalltalk.addClass(aString, aClass, aCollection, packageName);
  6747. return smalltalk[aString];
  6748. return self;},
  6749. args: ["aClass", "aString", "aCollection", "packageName"],
  6750. 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'),
  6751. messageSends: [],
  6752. referencedClasses: []
  6753. }),
  6754. smalltalk.ClassBuilder);
  6755. smalltalk.addClass('ClassCategoryReader', smalltalk.Object, ['class', 'category', 'chunkParser'], 'Kernel');
  6756. smalltalk.addMethod(
  6757. unescape('_initialize'),
  6758. smalltalk.method({
  6759. selector: unescape('initialize'),
  6760. category: 'initialization',
  6761. fn: function (){
  6762. var self=this;
  6763. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  6764. self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []);
  6765. return self;},
  6766. args: [],
  6767. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  6768. messageSends: ["initialize", "new"],
  6769. referencedClasses: [smalltalk.nil]
  6770. }),
  6771. smalltalk.ClassCategoryReader);
  6772. smalltalk.addMethod(
  6773. unescape('_class_category_'),
  6774. smalltalk.method({
  6775. selector: unescape('class%3Acategory%3A'),
  6776. category: 'accessing',
  6777. fn: function (aClass, aString){
  6778. var self=this;
  6779. self['@class']=aClass;
  6780. self['@category']=aString;
  6781. return self;},
  6782. args: ["aClass", "aString"],
  6783. source: unescape('class%3A%20aClass%20category%3A%20aString%0A%09class%20%3A%3D%20aClass.%0A%09category%20%3A%3D%20aString'),
  6784. messageSends: [],
  6785. referencedClasses: []
  6786. }),
  6787. smalltalk.ClassCategoryReader);
  6788. smalltalk.addMethod(
  6789. unescape('_scanFrom_'),
  6790. smalltalk.method({
  6791. selector: unescape('scanFrom%3A'),
  6792. category: 'fileIn',
  6793. fn: function (aChunkParser){
  6794. var self=this;
  6795. var chunk=nil;
  6796. (function(){while(!(function(){chunk=smalltalk.send(aChunkParser, "_nextChunk", []);return smalltalk.send(chunk, "_isEmpty", []);})()) {(function(){return smalltalk.send(self, "_compileMethod_", [chunk]);})()}})();
  6797. return self;},
  6798. args: ["aChunkParser"],
  6799. 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'),
  6800. messageSends: ["whileFalse:", "nextChunk", "isEmpty", "compileMethod:"],
  6801. referencedClasses: []
  6802. }),
  6803. smalltalk.ClassCategoryReader);
  6804. smalltalk.addMethod(
  6805. unescape('_compileMethod_'),
  6806. smalltalk.method({
  6807. selector: unescape('compileMethod%3A'),
  6808. category: 'private',
  6809. fn: function (aString){
  6810. var self=this;
  6811. var method=nil;
  6812. method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self['@class']]);
  6813. smalltalk.send(method, "_category_", [self['@category']]);
  6814. smalltalk.send(self['@class'], "_addCompiledMethod_", [method]);
  6815. return self;},
  6816. args: ["aString"],
  6817. 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'),
  6818. messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
  6819. referencedClasses: [smalltalk.nil]
  6820. }),
  6821. smalltalk.ClassCategoryReader);
  6822. smalltalk.addClass('Stream', smalltalk.Object, ['collection', 'position', 'streamSize'], 'Kernel');
  6823. smalltalk.addMethod(
  6824. unescape('_collection'),
  6825. smalltalk.method({
  6826. selector: unescape('collection'),
  6827. category: 'accessing',
  6828. fn: function (){
  6829. var self=this;
  6830. return self['@collection'];
  6831. return self;},
  6832. args: [],
  6833. source: unescape('collection%0A%09%5Ecollection'),
  6834. messageSends: [],
  6835. referencedClasses: []
  6836. }),
  6837. smalltalk.Stream);
  6838. smalltalk.addMethod(
  6839. unescape('_setCollection_'),
  6840. smalltalk.method({
  6841. selector: unescape('setCollection%3A'),
  6842. category: 'accessing',
  6843. fn: function (aCollection){
  6844. var self=this;
  6845. self['@collection']=aCollection;
  6846. return self;},
  6847. args: ["aCollection"],
  6848. source: unescape('setCollection%3A%20aCollection%0A%09collection%20%3A%3D%20aCollection'),
  6849. messageSends: [],
  6850. referencedClasses: []
  6851. }),
  6852. smalltalk.Stream);
  6853. smalltalk.addMethod(
  6854. unescape('_position'),
  6855. smalltalk.method({
  6856. selector: unescape('position'),
  6857. category: 'accessing',
  6858. fn: function (){
  6859. var self=this;
  6860. return (($receiver = self['@position']) == nil || $receiver == undefined) ? (function(){return self['@position']=(0);})() : $receiver;
  6861. return self;},
  6862. args: [],
  6863. source: unescape('position%0A%09%5Eposition%20ifNil%3A%20%5Bposition%20%3A%3D%200%5D'),
  6864. messageSends: ["ifNil:"],
  6865. referencedClasses: []
  6866. }),
  6867. smalltalk.Stream);
  6868. smalltalk.addMethod(
  6869. unescape('_position_'),
  6870. smalltalk.method({
  6871. selector: unescape('position%3A'),
  6872. category: 'accessing',
  6873. fn: function (anInteger){
  6874. var self=this;
  6875. self['@position']=anInteger;
  6876. return self;},
  6877. args: ["anInteger"],
  6878. source: unescape('position%3A%20anInteger%0A%09position%20%3A%3D%20anInteger'),
  6879. messageSends: [],
  6880. referencedClasses: []
  6881. }),
  6882. smalltalk.Stream);
  6883. smalltalk.addMethod(
  6884. unescape('_streamSize'),
  6885. smalltalk.method({
  6886. selector: unescape('streamSize'),
  6887. category: 'accessing',
  6888. fn: function (){
  6889. var self=this;
  6890. return self['@streamSize'];
  6891. return self;},
  6892. args: [],
  6893. source: unescape('streamSize%0A%09%5EstreamSize'),
  6894. messageSends: [],
  6895. referencedClasses: []
  6896. }),
  6897. smalltalk.Stream);
  6898. smalltalk.addMethod(
  6899. unescape('_setStreamSize_'),
  6900. smalltalk.method({
  6901. selector: unescape('setStreamSize%3A'),
  6902. category: 'accessing',
  6903. fn: function (anInteger){
  6904. var self=this;
  6905. self['@streamSize']=anInteger;
  6906. return self;},
  6907. args: ["anInteger"],
  6908. source: unescape('setStreamSize%3A%20anInteger%0A%09streamSize%20%3A%3D%20anInteger'),
  6909. messageSends: [],
  6910. referencedClasses: []
  6911. }),
  6912. smalltalk.Stream);
  6913. smalltalk.addMethod(
  6914. unescape('_contents'),
  6915. smalltalk.method({
  6916. selector: unescape('contents'),
  6917. category: 'accessing',
  6918. fn: function (){
  6919. var self=this;
  6920. return smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_streamSize", [])]);
  6921. return self;},
  6922. args: [],
  6923. 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'),
  6924. messageSends: ["copyFrom:to:", "collection", "streamSize"],
  6925. referencedClasses: []
  6926. }),
  6927. smalltalk.Stream);
  6928. smalltalk.addMethod(
  6929. unescape('_size'),
  6930. smalltalk.method({
  6931. selector: unescape('size'),
  6932. category: 'accessing',
  6933. fn: function (){
  6934. var self=this;
  6935. return smalltalk.send(self, "_streamSize", []);
  6936. return self;},
  6937. args: [],
  6938. source: unescape('size%0A%09%5Eself%20streamSize'),
  6939. messageSends: ["streamSize"],
  6940. referencedClasses: []
  6941. }),
  6942. smalltalk.Stream);
  6943. smalltalk.addMethod(
  6944. unescape('_reset'),
  6945. smalltalk.method({
  6946. selector: unescape('reset'),
  6947. category: 'actions',
  6948. fn: function (){
  6949. var self=this;
  6950. smalltalk.send(self, "_position_", [(0)]);
  6951. return self;},
  6952. args: [],
  6953. source: unescape('reset%0A%09self%20position%3A%200'),
  6954. messageSends: ["position:"],
  6955. referencedClasses: []
  6956. }),
  6957. smalltalk.Stream);
  6958. smalltalk.addMethod(
  6959. unescape('_close'),
  6960. smalltalk.method({
  6961. selector: unescape('close'),
  6962. category: 'actions',
  6963. fn: function (){
  6964. var self=this;
  6965. return self;},
  6966. args: [],
  6967. source: unescape('close'),
  6968. messageSends: [],
  6969. referencedClasses: []
  6970. }),
  6971. smalltalk.Stream);
  6972. smalltalk.addMethod(
  6973. unescape('_flush'),
  6974. smalltalk.method({
  6975. selector: unescape('flush'),
  6976. category: 'actions',
  6977. fn: function (){
  6978. var self=this;
  6979. return self;},
  6980. args: [],
  6981. source: unescape('flush'),
  6982. messageSends: [],
  6983. referencedClasses: []
  6984. }),
  6985. smalltalk.Stream);
  6986. smalltalk.addMethod(
  6987. unescape('_resetContents'),
  6988. smalltalk.method({
  6989. selector: unescape('resetContents'),
  6990. category: 'actions',
  6991. fn: function (){
  6992. var self=this;
  6993. smalltalk.send(self, "_reset", []);
  6994. smalltalk.send(self, "_setStreamSize_", [(0)]);
  6995. return self;},
  6996. args: [],
  6997. source: unescape('resetContents%0A%09self%20reset.%0A%09self%20setStreamSize%3A%200'),
  6998. messageSends: ["reset", "setStreamSize:"],
  6999. referencedClasses: []
  7000. }),
  7001. smalltalk.Stream);
  7002. smalltalk.addMethod(
  7003. unescape('_do_'),
  7004. smalltalk.method({
  7005. selector: unescape('do%3A'),
  7006. category: 'enumerating',
  7007. fn: function (aBlock){
  7008. var self=this;
  7009. (function(){while(!(function(){return smalltalk.send(self, "_atEnd", []);})()) {(function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_next", [])]);})()}})();
  7010. return self;},
  7011. args: ["aBlock"],
  7012. source: unescape('do%3A%20aBlock%0A%09%5Bself%20atEnd%5D%20whileFalse%3A%20%5BaBlock%20value%3A%20self%20next%5D'),
  7013. messageSends: ["whileFalse:", "atEnd", "value:", "next"],
  7014. referencedClasses: []
  7015. }),
  7016. smalltalk.Stream);
  7017. smalltalk.addMethod(
  7018. unescape('_setToEnd'),
  7019. smalltalk.method({
  7020. selector: unescape('setToEnd'),
  7021. category: 'positioning',
  7022. fn: function (){
  7023. var self=this;
  7024. smalltalk.send(self, "_position_", [smalltalk.send(self, "_size", [])]);
  7025. return self;},
  7026. args: [],
  7027. source: unescape('setToEnd%0A%09self%20position%3A%20self%20size'),
  7028. messageSends: ["position:", "size"],
  7029. referencedClasses: []
  7030. }),
  7031. smalltalk.Stream);
  7032. smalltalk.addMethod(
  7033. unescape('_skip_'),
  7034. smalltalk.method({
  7035. selector: unescape('skip%3A'),
  7036. category: 'positioning',
  7037. fn: function (anInteger){
  7038. var self=this;
  7039. 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)])]);
  7040. return self;},
  7041. args: ["anInteger"],
  7042. source: unescape('skip%3A%20anInteger%0A%09self%20position%3A%20%28%28self%20position%20+%20anInteger%29%20min%3A%20self%20size%20max%3A%200%29'),
  7043. messageSends: ["position:", "min:max:", unescape("+"), "position", "size"],
  7044. referencedClasses: []
  7045. }),
  7046. smalltalk.Stream);
  7047. smalltalk.addMethod(
  7048. unescape('_next'),
  7049. smalltalk.method({
  7050. selector: unescape('next'),
  7051. category: 'reading',
  7052. fn: function (){
  7053. var self=this;
  7054. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
  7055. return smalltalk.send(self['@collection'], "_at_", [smalltalk.send(self, "_position", [])]);
  7056. return self;},
  7057. args: [],
  7058. source: unescape('next%0A%09self%20position%3A%20self%20position%20+%201.%20%0A%09%5Ecollection%20at%3A%20self%20position'),
  7059. messageSends: ["position:", unescape("+"), "position", "at:"],
  7060. referencedClasses: []
  7061. }),
  7062. smalltalk.Stream);
  7063. smalltalk.addMethod(
  7064. unescape('_next_'),
  7065. smalltalk.method({
  7066. selector: unescape('next%3A'),
  7067. category: 'reading',
  7068. fn: function (anInteger){
  7069. var self=this;
  7070. var tempCollection=nil;
  7071. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  7072. 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", [])]);})]));})]);
  7073. return tempCollection;
  7074. return self;},
  7075. args: ["anInteger"],
  7076. 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'),
  7077. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", "add:", "next"],
  7078. referencedClasses: []
  7079. }),
  7080. smalltalk.Stream);
  7081. smalltalk.addMethod(
  7082. unescape('_nextPut_'),
  7083. smalltalk.method({
  7084. selector: unescape('nextPut%3A'),
  7085. category: 'writing',
  7086. fn: function (anObject){
  7087. var self=this;
  7088. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
  7089. smalltalk.send(smalltalk.send(self, "_collection", []), "_at_put_", [smalltalk.send(self, "_position", []), anObject]);
  7090. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  7091. return self;},
  7092. args: ["anObject"],
  7093. 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'),
  7094. messageSends: ["position:", unescape("+"), "position", "at:put:", "collection", "setStreamSize:", "max:", "streamSize"],
  7095. referencedClasses: []
  7096. }),
  7097. smalltalk.Stream);
  7098. smalltalk.addMethod(
  7099. unescape('_nextPutAll_'),
  7100. smalltalk.method({
  7101. selector: unescape('nextPutAll%3A'),
  7102. category: 'writing',
  7103. fn: function (aCollection){
  7104. var self=this;
  7105. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_nextPut_", [each]);})]);
  7106. return self;},
  7107. args: ["aCollection"],
  7108. source: unescape('nextPutAll%3A%20aCollection%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20self%20nextPut%3A%20each%5D'),
  7109. messageSends: ["do:", "nextPut:"],
  7110. referencedClasses: []
  7111. }),
  7112. smalltalk.Stream);
  7113. smalltalk.addMethod(
  7114. unescape('_peek'),
  7115. smalltalk.method({
  7116. selector: unescape('peek'),
  7117. category: 'reading',
  7118. fn: function (){
  7119. var self=this;
  7120. 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)]))]);})]));
  7121. return self;},
  7122. args: [],
  7123. 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'),
  7124. messageSends: ["ifFalse:", "atEnd", "at:", "collection", unescape("+"), "position"],
  7125. referencedClasses: []
  7126. }),
  7127. smalltalk.Stream);
  7128. smalltalk.addMethod(
  7129. unescape('_atEnd'),
  7130. smalltalk.method({
  7131. selector: unescape('atEnd'),
  7132. category: 'testing',
  7133. fn: function (){
  7134. var self=this;
  7135. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [smalltalk.send(self, "_size", [])]);
  7136. return self;},
  7137. args: [],
  7138. source: unescape('atEnd%0A%09%5Eself%20position%20%3D%20self%20size'),
  7139. messageSends: [unescape("%3D"), "position", "size"],
  7140. referencedClasses: []
  7141. }),
  7142. smalltalk.Stream);
  7143. smalltalk.addMethod(
  7144. unescape('_atStart'),
  7145. smalltalk.method({
  7146. selector: unescape('atStart'),
  7147. category: 'testing',
  7148. fn: function (){
  7149. var self=this;
  7150. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [(0)]);
  7151. return self;},
  7152. args: [],
  7153. source: unescape('atStart%0A%09%5Eself%20position%20%3D%200'),
  7154. messageSends: [unescape("%3D"), "position"],
  7155. referencedClasses: []
  7156. }),
  7157. smalltalk.Stream);
  7158. smalltalk.addMethod(
  7159. unescape('_isEmpty'),
  7160. smalltalk.method({
  7161. selector: unescape('isEmpty'),
  7162. category: 'testing',
  7163. fn: function (){
  7164. var self=this;
  7165. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  7166. return self;},
  7167. args: [],
  7168. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  7169. messageSends: [unescape("%3D"), "size"],
  7170. referencedClasses: []
  7171. }),
  7172. smalltalk.Stream);
  7173. smalltalk.addMethod(
  7174. unescape('_on_'),
  7175. smalltalk.method({
  7176. selector: unescape('on%3A'),
  7177. category: 'instance creation',
  7178. fn: function (aCollection){
  7179. var self=this;
  7180. 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", []));
  7181. return self;},
  7182. args: ["aCollection"],
  7183. 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'),
  7184. messageSends: ["setCollection:", "setStreamSize:", "size", "yourself", "new"],
  7185. referencedClasses: []
  7186. }),
  7187. smalltalk.Stream.klass);
  7188. smalltalk.addClass('StringStream', smalltalk.Stream, [], 'Kernel');
  7189. smalltalk.addMethod(
  7190. unescape('_next_'),
  7191. smalltalk.method({
  7192. selector: unescape('next%3A'),
  7193. category: 'reading',
  7194. fn: function (anInteger){
  7195. var self=this;
  7196. var tempCollection=nil;
  7197. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  7198. 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", [])]);})]));})]);
  7199. return tempCollection;
  7200. return self;},
  7201. args: ["anInteger"],
  7202. 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'),
  7203. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", unescape("%2C"), "next"],
  7204. referencedClasses: []
  7205. }),
  7206. smalltalk.StringStream);
  7207. smalltalk.addMethod(
  7208. unescape('_nextPut_'),
  7209. smalltalk.method({
  7210. selector: unescape('nextPut%3A'),
  7211. category: 'writing',
  7212. fn: function (aString){
  7213. var self=this;
  7214. smalltalk.send(self, "_nextPutAll_", [aString]);
  7215. return self;},
  7216. args: ["aString"],
  7217. source: unescape('nextPut%3A%20aString%0A%09self%20nextPutAll%3A%20aString'),
  7218. messageSends: ["nextPutAll:"],
  7219. referencedClasses: []
  7220. }),
  7221. smalltalk.StringStream);
  7222. smalltalk.addMethod(
  7223. unescape('_nextPutAll_'),
  7224. smalltalk.method({
  7225. selector: unescape('nextPutAll%3A'),
  7226. category: 'writing',
  7227. fn: function (aString){
  7228. var self=this;
  7229. 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", [])])])]);
  7230. 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", [])]))]);
  7231. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  7232. return self;},
  7233. args: ["aString"],
  7234. 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'),
  7235. messageSends: ["setCollection:", unescape("%2C"), "copyFrom:to:", "collection", "position", unescape("+"), "size", "position:", "setStreamSize:", "max:", "streamSize"],
  7236. referencedClasses: []
  7237. }),
  7238. smalltalk.StringStream);
  7239. smalltalk.addMethod(
  7240. unescape('_cr'),
  7241. smalltalk.method({
  7242. selector: unescape('cr'),
  7243. category: 'writing',
  7244. fn: function (){
  7245. var self=this;
  7246. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  7247. return self;},
  7248. args: [],
  7249. source: unescape('cr%0A%09%5Eself%20nextPutAll%3A%20String%20cr'),
  7250. messageSends: ["nextPutAll:", "cr"],
  7251. referencedClasses: [smalltalk.String]
  7252. }),
  7253. smalltalk.StringStream);
  7254. smalltalk.addMethod(
  7255. unescape('_crlf'),
  7256. smalltalk.method({
  7257. selector: unescape('crlf'),
  7258. category: 'writing',
  7259. fn: function (){
  7260. var self=this;
  7261. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_crlf", [])]);
  7262. return self;},
  7263. args: [],
  7264. source: unescape('crlf%0A%09%5Eself%20nextPutAll%3A%20String%20crlf'),
  7265. messageSends: ["nextPutAll:", "crlf"],
  7266. referencedClasses: [smalltalk.String]
  7267. }),
  7268. smalltalk.StringStream);
  7269. smalltalk.addMethod(
  7270. unescape('_lf'),
  7271. smalltalk.method({
  7272. selector: unescape('lf'),
  7273. category: 'writing',
  7274. fn: function (){
  7275. var self=this;
  7276. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_lf", [])]);
  7277. return self;},
  7278. args: [],
  7279. source: unescape('lf%0A%09%5Eself%20nextPutAll%3A%20String%20lf'),
  7280. messageSends: ["nextPutAll:", "lf"],
  7281. referencedClasses: [smalltalk.String]
  7282. }),
  7283. smalltalk.StringStream);
  7284. smalltalk.addMethod(
  7285. unescape('_space'),
  7286. smalltalk.method({
  7287. selector: unescape('space'),
  7288. category: 'writing',
  7289. fn: function (){
  7290. var self=this;
  7291. smalltalk.send(self, "_nextPut_", [" "]);
  7292. return self;},
  7293. args: [],
  7294. source: unescape('space%0A%09self%20nextPut%3A%20%27%20%27'),
  7295. messageSends: ["nextPut:"],
  7296. referencedClasses: []
  7297. }),
  7298. smalltalk.StringStream);
  7299. smalltalk.addClass('ClassCommentReader', smalltalk.Object, ['class', 'chunkParser'], 'Kernel');
  7300. smalltalk.addMethod(
  7301. unescape('_class_'),
  7302. smalltalk.method({
  7303. selector: unescape('class%3A'),
  7304. category: 'accessing',
  7305. fn: function (aClass){
  7306. var self=this;
  7307. self['@class']=aClass;
  7308. return self;},
  7309. args: ["aClass"],
  7310. source: unescape('class%3A%20aClass%0A%09class%20%3A%3D%20aClass'),
  7311. messageSends: [],
  7312. referencedClasses: []
  7313. }),
  7314. smalltalk.ClassCommentReader);
  7315. smalltalk.addMethod(
  7316. unescape('_scanFrom_'),
  7317. smalltalk.method({
  7318. selector: unescape('scanFrom%3A'),
  7319. category: 'fileIn',
  7320. fn: function (aChunkParser){
  7321. var self=this;
  7322. var chunk=nil;
  7323. chunk=smalltalk.send(aChunkParser, "_nextChunk", []);
  7324. ((($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]);})]));
  7325. return self;},
  7326. args: ["aChunkParser"],
  7327. 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.'),
  7328. messageSends: ["nextChunk", "ifFalse:", "isEmpty", "setComment:"],
  7329. referencedClasses: []
  7330. }),
  7331. smalltalk.ClassCommentReader);
  7332. smalltalk.addMethod(
  7333. unescape('_initialize'),
  7334. smalltalk.method({
  7335. selector: unescape('initialize'),
  7336. category: 'initialization',
  7337. fn: function (){
  7338. var self=this;
  7339. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  7340. self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []);
  7341. return self;},
  7342. args: [],
  7343. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  7344. messageSends: ["initialize", "new"],
  7345. referencedClasses: [smalltalk.nil]
  7346. }),
  7347. smalltalk.ClassCommentReader);
  7348. smalltalk.addMethod(
  7349. unescape('_setComment_'),
  7350. smalltalk.method({
  7351. selector: unescape('setComment%3A'),
  7352. category: 'private',
  7353. fn: function (aString){
  7354. var self=this;
  7355. smalltalk.send(self['@class'], "_comment_", [aString]);
  7356. return self;},
  7357. args: ["aString"],
  7358. source: unescape('setComment%3A%20aString%0A%20%20%20%20class%20comment%3A%20aString'),
  7359. messageSends: ["comment:"],
  7360. referencedClasses: []
  7361. }),
  7362. smalltalk.ClassCommentReader);
  7363. smalltalk.addClass('Random', smalltalk.Object, [], 'Kernel');
  7364. smalltalk.addMethod(
  7365. unescape('_next'),
  7366. smalltalk.method({
  7367. selector: unescape('next'),
  7368. category: 'accessing',
  7369. fn: function (){
  7370. var self=this;
  7371. return Math.random();
  7372. return self;},
  7373. args: [],
  7374. source: unescape('next%0A%09%3Creturn%20Math.random%28%29%3E'),
  7375. messageSends: [],
  7376. referencedClasses: []
  7377. }),
  7378. smalltalk.Random);
  7379. smalltalk.addMethod(
  7380. unescape('_next_'),
  7381. smalltalk.method({
  7382. selector: unescape('next%3A'),
  7383. category: 'accessing',
  7384. fn: function (anInteger){
  7385. var self=this;
  7386. return smalltalk.send(smalltalk.send((1), "_to_", [anInteger]), "_collect_", [(function(each){return smalltalk.send(self, "_next", []);})]);
  7387. return self;},
  7388. args: ["anInteger"],
  7389. 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'),
  7390. messageSends: ["collect:", "to:", "next"],
  7391. referencedClasses: []
  7392. }),
  7393. smalltalk.Random);
  7394. smalltalk.addClass('Point', smalltalk.Object, ['x', 'y'], 'Kernel');
  7395. smalltalk.addMethod(
  7396. unescape('_x'),
  7397. smalltalk.method({
  7398. selector: unescape('x'),
  7399. category: 'accessing',
  7400. fn: function (){
  7401. var self=this;
  7402. return self['@x'];
  7403. return self;},
  7404. args: [],
  7405. source: unescape('x%0A%09%5Ex'),
  7406. messageSends: [],
  7407. referencedClasses: []
  7408. }),
  7409. smalltalk.Point);
  7410. smalltalk.addMethod(
  7411. unescape('_y'),
  7412. smalltalk.method({
  7413. selector: unescape('y'),
  7414. category: 'accessing',
  7415. fn: function (){
  7416. var self=this;
  7417. return self['@y'];
  7418. return self;},
  7419. args: [],
  7420. source: unescape('y%0A%09%5Ey'),
  7421. messageSends: [],
  7422. referencedClasses: []
  7423. }),
  7424. smalltalk.Point);
  7425. smalltalk.addMethod(
  7426. unescape('_y_'),
  7427. smalltalk.method({
  7428. selector: unescape('y%3A'),
  7429. category: 'accessing',
  7430. fn: function (aNumber){
  7431. var self=this;
  7432. self['@y']=aNumber;
  7433. return self;},
  7434. args: ["aNumber"],
  7435. source: unescape('y%3A%20aNumber%0A%09y%20%3A%3D%20aNumber'),
  7436. messageSends: [],
  7437. referencedClasses: []
  7438. }),
  7439. smalltalk.Point);
  7440. smalltalk.addMethod(
  7441. unescape('_x_'),
  7442. smalltalk.method({
  7443. selector: unescape('x%3A'),
  7444. category: 'accessing',
  7445. fn: function (aNumber){
  7446. var self=this;
  7447. self['@x']=aNumber;
  7448. return self;},
  7449. args: ["aNumber"],
  7450. source: unescape('x%3A%20aNumber%0A%09x%20%3A%3D%20aNumber'),
  7451. messageSends: [],
  7452. referencedClasses: []
  7453. }),
  7454. smalltalk.Point);
  7455. smalltalk.addMethod(
  7456. unescape('__star'),
  7457. smalltalk.method({
  7458. selector: unescape('*'),
  7459. category: 'arithmetic',
  7460. fn: function (aPoint){
  7461. var self=this;
  7462. 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", [])]))]);
  7463. return self;},
  7464. args: ["aPoint"],
  7465. source: unescape('*%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20*%20aPoint%20asPoint%20x%20y%3A%20self%20y%20*%20aPoint%20asPoint%20y'),
  7466. messageSends: ["x:y:", unescape("*"), "x", "asPoint", "y"],
  7467. referencedClasses: [smalltalk.Point]
  7468. }),
  7469. smalltalk.Point);
  7470. smalltalk.addMethod(
  7471. unescape('__plus'),
  7472. smalltalk.method({
  7473. selector: unescape('+'),
  7474. category: 'arithmetic',
  7475. fn: function (aPoint){
  7476. var self=this;
  7477. 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", [])]))]);
  7478. return self;},
  7479. args: ["aPoint"],
  7480. source: unescape('+%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20+%20aPoint%20asPoint%20x%20y%3A%20self%20y%20+%20aPoint%20asPoint%20y'),
  7481. messageSends: ["x:y:", unescape("+"), "x", "asPoint", "y"],
  7482. referencedClasses: [smalltalk.Point]
  7483. }),
  7484. smalltalk.Point);
  7485. smalltalk.addMethod(
  7486. unescape('__minus'),
  7487. smalltalk.method({
  7488. selector: unescape('-'),
  7489. category: 'arithmetic',
  7490. fn: function (aPoint){
  7491. var self=this;
  7492. 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", [])]))]);
  7493. return self;},
  7494. args: ["aPoint"],
  7495. source: unescape('-%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20-%20aPoint%20asPoint%20x%20y%3A%20self%20y%20-%20aPoint%20asPoint%20y'),
  7496. messageSends: ["x:y:", unescape("-"), "x", "asPoint", "y"],
  7497. referencedClasses: [smalltalk.Point]
  7498. }),
  7499. smalltalk.Point);
  7500. smalltalk.addMethod(
  7501. unescape('__slash'),
  7502. smalltalk.method({
  7503. selector: unescape('/'),
  7504. category: 'arithmetic',
  7505. fn: function (aPoint){
  7506. var self=this;
  7507. 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", [])]))]);
  7508. return self;},
  7509. args: ["aPoint"],
  7510. source: unescape('/%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20/%20aPoint%20asPoint%20x%20y%3A%20self%20y%20/%20aPoint%20asPoint%20y'),
  7511. messageSends: ["x:y:", unescape("/"), "x", "asPoint", "y"],
  7512. referencedClasses: [smalltalk.Point]
  7513. }),
  7514. smalltalk.Point);
  7515. smalltalk.addMethod(
  7516. unescape('_asPoint'),
  7517. smalltalk.method({
  7518. selector: unescape('asPoint'),
  7519. category: 'converting',
  7520. fn: function (){
  7521. var self=this;
  7522. return self;
  7523. return self;},
  7524. args: [],
  7525. source: unescape('asPoint%0A%09%5Eself'),
  7526. messageSends: [],
  7527. referencedClasses: []
  7528. }),
  7529. smalltalk.Point);
  7530. smalltalk.addMethod(
  7531. unescape('__eq'),
  7532. smalltalk.method({
  7533. selector: unescape('%3D'),
  7534. category: 'arithmetic',
  7535. fn: function (aPoint){
  7536. var self=this;
  7537. 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", [])])]);})]);
  7538. return self;},
  7539. args: ["aPoint"],
  7540. 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'),
  7541. messageSends: ["and:", unescape("%3D"), "class", unescape("%26"), "x", "y"],
  7542. referencedClasses: []
  7543. }),
  7544. smalltalk.Point);
  7545. smalltalk.addMethod(
  7546. unescape('_x_y_'),
  7547. smalltalk.method({
  7548. selector: unescape('x%3Ay%3A'),
  7549. category: 'instance creation',
  7550. fn: function (aNumber, anotherNumber){
  7551. var self=this;
  7552. return (function($rec){smalltalk.send($rec, "_x_", [aNumber]);smalltalk.send($rec, "_y_", [anotherNumber]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  7553. return self;},
  7554. args: ["aNumber", "anotherNumber"],
  7555. 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'),
  7556. messageSends: ["x:", "y:", "yourself", "new"],
  7557. referencedClasses: []
  7558. }),
  7559. smalltalk.Point.klass);
  7560. smalltalk.addClass('Message', smalltalk.Object, ['selector', 'arguments'], 'Kernel');
  7561. smalltalk.addMethod(
  7562. unescape('_selector'),
  7563. smalltalk.method({
  7564. selector: unescape('selector'),
  7565. category: 'accessing',
  7566. fn: function (){
  7567. var self=this;
  7568. return self['@selector'];
  7569. return self;},
  7570. args: [],
  7571. source: unescape('selector%0A%09%5Eselector'),
  7572. messageSends: [],
  7573. referencedClasses: []
  7574. }),
  7575. smalltalk.Message);
  7576. smalltalk.addMethod(
  7577. unescape('_selector_'),
  7578. smalltalk.method({
  7579. selector: unescape('selector%3A'),
  7580. category: 'accessing',
  7581. fn: function (aString){
  7582. var self=this;
  7583. self['@selector']=aString;
  7584. return self;},
  7585. args: ["aString"],
  7586. source: unescape('selector%3A%20aString%0A%09selector%20%3A%3D%20aString'),
  7587. messageSends: [],
  7588. referencedClasses: []
  7589. }),
  7590. smalltalk.Message);
  7591. smalltalk.addMethod(
  7592. unescape('_arguments_'),
  7593. smalltalk.method({
  7594. selector: unescape('arguments%3A'),
  7595. category: 'accessing',
  7596. fn: function (anArray){
  7597. var self=this;
  7598. self['@arguments']=anArray;
  7599. return self;},
  7600. args: ["anArray"],
  7601. source: unescape('arguments%3A%20anArray%0A%09arguments%20%3A%3D%20anArray'),
  7602. messageSends: [],
  7603. referencedClasses: []
  7604. }),
  7605. smalltalk.Message);
  7606. smalltalk.addMethod(
  7607. unescape('_arguments'),
  7608. smalltalk.method({
  7609. selector: unescape('arguments'),
  7610. category: 'accessing',
  7611. fn: function (){
  7612. var self=this;
  7613. return self['@arguments'];
  7614. return self;},
  7615. args: [],
  7616. source: unescape('arguments%0A%09%5Earguments'),
  7617. messageSends: [],
  7618. referencedClasses: []
  7619. }),
  7620. smalltalk.Message);
  7621. smalltalk.addMethod(
  7622. unescape('_printString'),
  7623. smalltalk.method({
  7624. selector: unescape('printString'),
  7625. category: 'printing',
  7626. fn: function (){
  7627. var self=this;
  7628. 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);})]);
  7629. return self;},
  7630. args: [],
  7631. 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'),
  7632. messageSends: ["streamContents:", "nextPutAll:", "printString"],
  7633. referencedClasses: [smalltalk.String]
  7634. }),
  7635. smalltalk.Message);
  7636. smalltalk.addMethod(
  7637. unescape('_selector_arguments_'),
  7638. smalltalk.method({
  7639. selector: unescape('selector%3Aarguments%3A'),
  7640. category: 'instance creation',
  7641. fn: function (aString, anArray){
  7642. var self=this;
  7643. return (function($rec){smalltalk.send($rec, "_selector_", [aString]);smalltalk.send($rec, "_arguments_", [anArray]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  7644. return self;},
  7645. args: ["aString", "anArray"],
  7646. 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'),
  7647. messageSends: ["selector:", "arguments:", "yourself", "new"],
  7648. referencedClasses: []
  7649. }),
  7650. smalltalk.Message.klass);
  7651. smalltalk.addClass('MessageNotUnderstood', smalltalk.Error, ['message', 'receiver'], 'Kernel');
  7652. smalltalk.addMethod(
  7653. unescape('_message'),
  7654. smalltalk.method({
  7655. selector: unescape('message'),
  7656. category: 'accessing',
  7657. fn: function (){
  7658. var self=this;
  7659. return self['@message'];
  7660. return self;},
  7661. args: [],
  7662. source: unescape('message%0A%09%5Emessage'),
  7663. messageSends: [],
  7664. referencedClasses: []
  7665. }),
  7666. smalltalk.MessageNotUnderstood);
  7667. smalltalk.addMethod(
  7668. unescape('_message_'),
  7669. smalltalk.method({
  7670. selector: unescape('message%3A'),
  7671. category: 'accessing',
  7672. fn: function (aMessage){
  7673. var self=this;
  7674. self['@message']=aMessage;
  7675. return self;},
  7676. args: ["aMessage"],
  7677. source: unescape('message%3A%20aMessage%0A%09message%20%3A%3D%20aMessage'),
  7678. messageSends: [],
  7679. referencedClasses: []
  7680. }),
  7681. smalltalk.MessageNotUnderstood);
  7682. smalltalk.addMethod(
  7683. unescape('_receiver'),
  7684. smalltalk.method({
  7685. selector: unescape('receiver'),
  7686. category: 'accessing',
  7687. fn: function (){
  7688. var self=this;
  7689. return self['@receiver'];
  7690. return self;},
  7691. args: [],
  7692. source: unescape('receiver%0A%09%5Ereceiver'),
  7693. messageSends: [],
  7694. referencedClasses: []
  7695. }),
  7696. smalltalk.MessageNotUnderstood);
  7697. smalltalk.addMethod(
  7698. unescape('_receiver_'),
  7699. smalltalk.method({
  7700. selector: unescape('receiver%3A'),
  7701. category: 'accessing',
  7702. fn: function (anObject){
  7703. var self=this;
  7704. self['@receiver']=anObject;
  7705. return self;},
  7706. args: ["anObject"],
  7707. source: unescape('receiver%3A%20anObject%0A%09receiver%20%3A%3D%20anObject'),
  7708. messageSends: [],
  7709. referencedClasses: []
  7710. }),
  7711. smalltalk.MessageNotUnderstood);
  7712. smalltalk.addMethod(
  7713. unescape('_messageText'),
  7714. smalltalk.method({
  7715. selector: unescape('messageText'),
  7716. category: 'accessing',
  7717. fn: function (){
  7718. var self=this;
  7719. 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", [])]);
  7720. return self;},
  7721. args: [],
  7722. source: unescape('messageText%0A%09%5Eself%20receiver%20asString%2C%20%27%20does%20not%20understand%20%23%27%2C%20self%20message%20selector'),
  7723. messageSends: [unescape("%2C"), "asString", "receiver", "selector", "message"],
  7724. referencedClasses: []
  7725. }),
  7726. smalltalk.MessageNotUnderstood);
  7727. smalltalk.addClass('ErrorHandler', smalltalk.Object, [], 'Kernel');
  7728. smalltalk.addMethod(
  7729. unescape('_handleError_'),
  7730. smalltalk.method({
  7731. selector: unescape('handleError%3A'),
  7732. category: 'error handling',
  7733. fn: function (anError){
  7734. var self=this;
  7735. (($receiver = smalltalk.send(anError, "_context", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logErrorContext_", [smalltalk.send(anError, "_context", [])]);})() : nil;
  7736. smalltalk.send(self, "_logError_", [anError]);
  7737. return self;},
  7738. args: ["anError"],
  7739. source: unescape('handleError%3A%20anError%0A%09anError%20context%20ifNotNil%3A%20%5Bself%20logErrorContext%3A%20anError%20context%5D.%0A%09self%20logError%3A%20anError'),
  7740. messageSends: ["ifNotNil:", "context", "logErrorContext:", "logError:"],
  7741. referencedClasses: []
  7742. }),
  7743. smalltalk.ErrorHandler);
  7744. smalltalk.addMethod(
  7745. unescape('_logContext_'),
  7746. smalltalk.method({
  7747. selector: unescape('logContext%3A'),
  7748. category: 'private',
  7749. fn: function (aContext){
  7750. var self=this;
  7751. (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logContext_", [smalltalk.send(aContext, "_home", [])]);})() : nil;
  7752. smalltalk.send(self, "_log_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aContext, "_receiver", []), "_asString", []), "__comma", [unescape("%3E%3E")]), "__comma", [smalltalk.send(aContext, "_selector", [])])]);
  7753. return self;},
  7754. args: ["aContext"],
  7755. 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'),
  7756. messageSends: ["ifNotNil:", "home", "logContext:", "log:", unescape("%2C"), "asString", "receiver", "selector"],
  7757. referencedClasses: []
  7758. }),
  7759. smalltalk.ErrorHandler);
  7760. smalltalk.addMethod(
  7761. unescape('_logErrorContext_'),
  7762. smalltalk.method({
  7763. selector: unescape('logErrorContext%3A'),
  7764. category: 'private',
  7765. fn: function (aContext){
  7766. var self=this;
  7767. (($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;
  7768. return self;},
  7769. args: ["aContext"],
  7770. 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'),
  7771. messageSends: ["ifNotNil:", "home", "logContext:"],
  7772. referencedClasses: []
  7773. }),
  7774. smalltalk.ErrorHandler);
  7775. smalltalk.addMethod(
  7776. unescape('_logError_'),
  7777. smalltalk.method({
  7778. selector: unescape('logError%3A'),
  7779. category: 'private',
  7780. fn: function (anError){
  7781. var self=this;
  7782. smalltalk.send(self, "_log_", [smalltalk.send(anError, "_messageText", [])]);
  7783. return self;},
  7784. args: ["anError"],
  7785. source: unescape('logError%3A%20anError%0A%09self%20log%3A%20anError%20messageText'),
  7786. messageSends: ["log:", "messageText"],
  7787. referencedClasses: []
  7788. }),
  7789. smalltalk.ErrorHandler);
  7790. smalltalk.addMethod(
  7791. unescape('_log_'),
  7792. smalltalk.method({
  7793. selector: unescape('log%3A'),
  7794. category: 'private',
  7795. fn: function (aString){
  7796. var self=this;
  7797. smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [aString]);
  7798. return self;},
  7799. args: ["aString"],
  7800. source: unescape('log%3A%20aString%0A%09console%20log%3A%20aString'),
  7801. messageSends: ["log:"],
  7802. referencedClasses: []
  7803. }),
  7804. smalltalk.ErrorHandler);
  7805. smalltalk.ErrorHandler.klass.iVarNames = ['current'];
  7806. smalltalk.addMethod(
  7807. unescape('_current'),
  7808. smalltalk.method({
  7809. selector: unescape('current'),
  7810. category: 'accessing',
  7811. fn: function (){
  7812. var self=this;
  7813. return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", []);})() : $receiver;
  7814. return self;},
  7815. args: [],
  7816. source: unescape('current%0A%09%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20self%20new%5D'),
  7817. messageSends: ["ifNil:", "new"],
  7818. referencedClasses: []
  7819. }),
  7820. smalltalk.ErrorHandler.klass);
  7821. smalltalk.addMethod(
  7822. unescape('_initialize'),
  7823. smalltalk.method({
  7824. selector: unescape('initialize'),
  7825. category: 'initialization',
  7826. fn: function (){
  7827. var self=this;
  7828. smalltalk.send(self, "_register", []);
  7829. return self;},
  7830. args: [],
  7831. source: unescape('initialize%0A%09self%20register'),
  7832. messageSends: ["register"],
  7833. referencedClasses: []
  7834. }),
  7835. smalltalk.ErrorHandler.klass);
  7836. smalltalk.addMethod(
  7837. unescape('_register'),
  7838. smalltalk.method({
  7839. selector: unescape('register'),
  7840. category: 'initialization',
  7841. fn: function (){
  7842. var self=this;
  7843. smalltalk.send((smalltalk.ErrorHandler || ErrorHandler), "_setCurrent_", [smalltalk.send(self, "_new", [])]);
  7844. return self;},
  7845. args: [],
  7846. source: unescape('register%0A%09ErrorHandler%20setCurrent%3A%20self%20new'),
  7847. messageSends: ["setCurrent:", "new"],
  7848. referencedClasses: [smalltalk.ErrorHandler]
  7849. }),
  7850. smalltalk.ErrorHandler.klass);
  7851. smalltalk.addMethod(
  7852. unescape('_setCurrent_'),
  7853. smalltalk.method({
  7854. selector: unescape('setCurrent%3A'),
  7855. category: 'accessing',
  7856. fn: function (anHandler){
  7857. var self=this;
  7858. self['@current']=anHandler;
  7859. return self;},
  7860. args: ["anHandler"],
  7861. source: unescape('setCurrent%3A%20anHandler%0A%09current%20%3A%3D%20anHandler'),
  7862. messageSends: [],
  7863. referencedClasses: []
  7864. }),
  7865. smalltalk.ErrorHandler.klass);
  7866. smalltalk.addClass('JSObjectProxy', smalltalk.Object, ['jsObject'], 'Kernel');
  7867. smalltalk.addMethod(
  7868. unescape('_jsObject_'),
  7869. smalltalk.method({
  7870. selector: unescape('jsObject%3A'),
  7871. category: 'accessing',
  7872. fn: function (aJSObject){
  7873. var self=this;
  7874. self['@jsObject']=aJSObject;
  7875. return self;},
  7876. args: ["aJSObject"],
  7877. source: unescape('jsObject%3A%20aJSObject%0A%09jsObject%20%3A%3D%20aJSObject'),
  7878. messageSends: [],
  7879. referencedClasses: []
  7880. }),
  7881. smalltalk.JSObjectProxy);
  7882. smalltalk.addMethod(
  7883. unescape('_jsObject'),
  7884. smalltalk.method({
  7885. selector: unescape('jsObject'),
  7886. category: 'accessing',
  7887. fn: function (){
  7888. var self=this;
  7889. return self['@jsObject'];
  7890. return self;},
  7891. args: [],
  7892. source: unescape('jsObject%0A%09%5EjsObject'),
  7893. messageSends: [],
  7894. referencedClasses: []
  7895. }),
  7896. smalltalk.JSObjectProxy);
  7897. smalltalk.addMethod(
  7898. unescape('_printString'),
  7899. smalltalk.method({
  7900. selector: unescape('printString'),
  7901. category: 'proxy',
  7902. fn: function (){
  7903. var self=this;
  7904. return smalltalk.send(smalltalk.send(self, "_jsObject", []), "_toString", []);
  7905. return self;},
  7906. args: [],
  7907. source: unescape('printString%0A%09%5Eself%20jsObject%20toString'),
  7908. messageSends: ["toString", "jsObject"],
  7909. referencedClasses: []
  7910. }),
  7911. smalltalk.JSObjectProxy);
  7912. smalltalk.addMethod(
  7913. unescape('_inspectOn_'),
  7914. smalltalk.method({
  7915. selector: unescape('inspectOn%3A'),
  7916. category: 'proxy',
  7917. fn: function (anInspector){
  7918. var self=this;
  7919. var variables=nil;
  7920. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  7921. smalltalk.send(variables, "_at_put_", [unescape("%23self"), smalltalk.send(self, "_jsObject", [])]);
  7922. smalltalk.send(anInspector, "_setLabel_", [smalltalk.send(self, "_printString", [])]);
  7923. for(var i in self['@jsObject']) {
  7924. variables._at_put_(i, self['@jsObject'][i]);
  7925. };
  7926. smalltalk.send(anInspector, "_setVariables_", [variables]);
  7927. return self;},
  7928. args: ["anInspector"],
  7929. 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'),
  7930. messageSends: ["new", "at:put:", "jsObject", "setLabel:", "printString", "setVariables:"],
  7931. referencedClasses: [smalltalk.Dictionary]
  7932. }),
  7933. smalltalk.JSObjectProxy);
  7934. smalltalk.addMethod(
  7935. unescape('_doesNotUnderstand_'),
  7936. smalltalk.method({
  7937. selector: unescape('doesNotUnderstand%3A'),
  7938. category: 'proxy',
  7939. fn: function (aMessage){
  7940. var self=this;
  7941. var obj=nil;
  7942. var selector=nil;
  7943. var jsSelector=nil;
  7944. var arguments=nil;
  7945. obj=smalltalk.send(self, "_jsObject", []);
  7946. selector=smalltalk.send(aMessage, "_selector", []);
  7947. jsSelector=smalltalk.send(selector, "_asJavaScriptSelector", []);
  7948. arguments=smalltalk.send(aMessage, "_arguments", []);
  7949. if(obj[jsSelector] != undefined) {return smalltalk.send(obj, jsSelector, arguments)};
  7950. smalltalk.send(self, "_doesNotUnderstand_", [aMessage], smalltalk.Object);
  7951. return self;},
  7952. args: ["aMessage"],
  7953. 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'),
  7954. messageSends: ["jsObject", "selector", "asJavaScriptSelector", "arguments", "doesNotUnderstand:"],
  7955. referencedClasses: []
  7956. }),
  7957. smalltalk.JSObjectProxy);
  7958. smalltalk.addMethod(
  7959. unescape('_at_'),
  7960. smalltalk.method({
  7961. selector: unescape('at%3A'),
  7962. category: 'accessing',
  7963. fn: function (aString){
  7964. var self=this;
  7965. return self['@jsObject'][aString];
  7966. return self;},
  7967. args: ["aString"],
  7968. source: unescape('at%3A%20aString%0A%09%3Creturn%20self%5B%27@jsObject%27%5D%5BaString%5D%3E'),
  7969. messageSends: [],
  7970. referencedClasses: []
  7971. }),
  7972. smalltalk.JSObjectProxy);
  7973. smalltalk.addMethod(
  7974. unescape('_at_put_'),
  7975. smalltalk.method({
  7976. selector: unescape('at%3Aput%3A'),
  7977. category: 'accessing',
  7978. fn: function (aString, anObject){
  7979. var self=this;
  7980. self['@jsObject'][aString] = anObject;
  7981. return self;},
  7982. args: ["aString", "anObject"],
  7983. source: unescape('at%3A%20aString%20put%3A%20anObject%0A%09%3Cself%5B%27@jsObject%27%5D%5BaString%5D%20%3D%20anObject%3E'),
  7984. messageSends: [],
  7985. referencedClasses: []
  7986. }),
  7987. smalltalk.JSObjectProxy);
  7988. smalltalk.addMethod(
  7989. unescape('_on_'),
  7990. smalltalk.method({
  7991. selector: unescape('on%3A'),
  7992. category: 'instance creation',
  7993. fn: function (aJSObject){
  7994. var self=this;
  7995. return (function($rec){smalltalk.send($rec, "_jsObject_", [aJSObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  7996. return self;},
  7997. args: ["aJSObject"],
  7998. source: unescape('on%3A%20aJSObject%0A%09%5Eself%20new%0A%09%09jsObject%3A%20aJSObject%3B%0A%09%09yourself'),
  7999. messageSends: ["jsObject:", "yourself", "new"],
  8000. referencedClasses: []
  8001. }),
  8002. smalltalk.JSObjectProxy.klass);
  8003. smalltalk.addClass('Set', smalltalk.Collection, ['elements'], 'Kernel');
  8004. smalltalk.addMethod(
  8005. unescape('_add_'),
  8006. smalltalk.method({
  8007. selector: unescape('add%3A'),
  8008. category: 'adding/removing',
  8009. fn: function (anObject){
  8010. var self=this;
  8011. var found;
  8012. for(var i in self['@elements']) {
  8013. if(anObject == self['@elements'][i]) {
  8014. found = true;
  8015. break;
  8016. }
  8017. }
  8018. if(!found) {self['@elements'].push(anObject)}
  8019. ;
  8020. return self;},
  8021. args: ["anObject"],
  8022. 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'),
  8023. messageSends: [],
  8024. referencedClasses: []
  8025. }),
  8026. smalltalk.Set);
  8027. smalltalk.addMethod(
  8028. unescape('_remove_'),
  8029. smalltalk.method({
  8030. selector: unescape('remove%3A'),
  8031. category: 'adding/removing',
  8032. fn: function (anObject){
  8033. var self=this;
  8034. smalltalk.send(self['@elements'], "_remove_", [anObject]);
  8035. return self;},
  8036. args: ["anObject"],
  8037. source: unescape('remove%3A%20anObject%0A%09elements%20remove%3A%20anObject'),
  8038. messageSends: ["remove:"],
  8039. referencedClasses: []
  8040. }),
  8041. smalltalk.Set);
  8042. smalltalk.addMethod(
  8043. unescape('_initialize'),
  8044. smalltalk.method({
  8045. selector: unescape('initialize'),
  8046. category: 'initialization',
  8047. fn: function (){
  8048. var self=this;
  8049. smalltalk.send(self, "_initialize", [], smalltalk.Collection);
  8050. self['@elements']=[];
  8051. return self;},
  8052. args: [],
  8053. source: unescape('initialize%0A%09super%20initialize.%0A%09elements%20%3A%3D%20%23%28%29'),
  8054. messageSends: ["initialize"],
  8055. referencedClasses: []
  8056. }),
  8057. smalltalk.Set);
  8058. smalltalk.addMethod(
  8059. unescape('_size'),
  8060. smalltalk.method({
  8061. selector: unescape('size'),
  8062. category: 'accessing',
  8063. fn: function (){
  8064. var self=this;
  8065. return smalltalk.send(self['@elements'], "_size", []);
  8066. return self;},
  8067. args: [],
  8068. source: unescape('size%0A%09%5Eelements%20size'),
  8069. messageSends: ["size"],
  8070. referencedClasses: []
  8071. }),
  8072. smalltalk.Set);
  8073. smalltalk.addMethod(
  8074. unescape('_asArray'),
  8075. smalltalk.method({
  8076. selector: unescape('asArray'),
  8077. category: 'converting',
  8078. fn: function (){
  8079. var self=this;
  8080. return smalltalk.send(self['@elements'], "_copy", []);
  8081. return self;},
  8082. args: [],
  8083. source: unescape('asArray%0A%09%5Eelements%20copy'),
  8084. messageSends: ["copy"],
  8085. referencedClasses: []
  8086. }),
  8087. smalltalk.Set);
  8088. smalltalk.addMethod(
  8089. unescape('_detect_ifNone_'),
  8090. smalltalk.method({
  8091. selector: unescape('detect%3AifNone%3A'),
  8092. category: 'enumerating',
  8093. fn: function (aBlock, anotherBlock){
  8094. var self=this;
  8095. return smalltalk.send(self['@elements'], "_detect_ifNone_", [aBlock, anotherBlock]);
  8096. return self;},
  8097. args: ["aBlock", "anotherBlock"],
  8098. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eelements%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  8099. messageSends: ["detect:ifNone:"],
  8100. referencedClasses: []
  8101. }),
  8102. smalltalk.Set);
  8103. smalltalk.addMethod(
  8104. unescape('_do_'),
  8105. smalltalk.method({
  8106. selector: unescape('do%3A'),
  8107. category: 'enumerating',
  8108. fn: function (aBlock){
  8109. var self=this;
  8110. smalltalk.send(self['@elements'], "_do_", [aBlock]);
  8111. return self;},
  8112. args: ["aBlock"],
  8113. source: unescape('do%3A%20aBlock%0A%09elements%20do%3A%20aBlock'),
  8114. messageSends: ["do:"],
  8115. referencedClasses: []
  8116. }),
  8117. smalltalk.Set);
  8118. smalltalk.addMethod(
  8119. unescape('_includes_'),
  8120. smalltalk.method({
  8121. selector: unescape('includes%3A'),
  8122. category: 'testing',
  8123. fn: function (anObject){
  8124. var self=this;
  8125. return smalltalk.send(self['@elements'], "_includes_", [anObject]);
  8126. return self;},
  8127. args: ["anObject"],
  8128. source: unescape('includes%3A%20anObject%0A%09%5Eelements%20includes%3A%20anObject'),
  8129. messageSends: ["includes:"],
  8130. referencedClasses: []
  8131. }),
  8132. smalltalk.Set);
  8133. smalltalk.addMethod(
  8134. unescape('__eq'),
  8135. smalltalk.method({
  8136. selector: unescape('%3D'),
  8137. category: 'comparing',
  8138. fn: function (aCollection){
  8139. var self=this;
  8140. 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", [])]);})]);
  8141. return self;},
  8142. args: ["aCollection"],
  8143. 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'),
  8144. messageSends: ["and:", unescape("%3D"), "class", "asArray"],
  8145. referencedClasses: []
  8146. }),
  8147. smalltalk.Set);
  8148. smalltalk.addClass('Transcript', smalltalk.Object, ['textarea'], 'Kernel');
  8149. smalltalk.Transcript.klass.iVarNames = ['current'];
  8150. smalltalk.addMethod(
  8151. unescape('_open'),
  8152. smalltalk.method({
  8153. selector: unescape('open'),
  8154. category: 'instance creation',
  8155. fn: function (){
  8156. var self=this;
  8157. smalltalk.send(smalltalk.send(self, "_current", []), "_open", []);
  8158. return self;},
  8159. args: [],
  8160. source: unescape('open%0A%20%20%20%20self%20current%20open'),
  8161. messageSends: ["open", "current"],
  8162. referencedClasses: []
  8163. }),
  8164. smalltalk.Transcript.klass);
  8165. smalltalk.addMethod(
  8166. unescape('_new'),
  8167. smalltalk.method({
  8168. selector: unescape('new'),
  8169. category: 'instance creation',
  8170. fn: function (){
  8171. var self=this;
  8172. smalltalk.send(self, "_shouldNotImplement", []);
  8173. return self;},
  8174. args: [],
  8175. source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'),
  8176. messageSends: ["shouldNotImplement"],
  8177. referencedClasses: []
  8178. }),
  8179. smalltalk.Transcript.klass);
  8180. smalltalk.addMethod(
  8181. unescape('_current'),
  8182. smalltalk.method({
  8183. selector: unescape('current'),
  8184. category: 'instance creation',
  8185. fn: function (){
  8186. var self=this;
  8187. return self['@current'];
  8188. return self;},
  8189. args: [],
  8190. source: unescape('current%0A%20%20%20%20%5Ecurrent'),
  8191. messageSends: [],
  8192. referencedClasses: []
  8193. }),
  8194. smalltalk.Transcript.klass);
  8195. smalltalk.addMethod(
  8196. unescape('_show_'),
  8197. smalltalk.method({
  8198. selector: unescape('show%3A'),
  8199. category: 'printing',
  8200. fn: function (anObject){
  8201. var self=this;
  8202. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [anObject]);
  8203. return self;},
  8204. args: ["anObject"],
  8205. source: unescape('show%3A%20anObject%0A%20%20%20%20self%20current%20show%3A%20anObject'),
  8206. messageSends: ["show:", "current"],
  8207. referencedClasses: []
  8208. }),
  8209. smalltalk.Transcript.klass);
  8210. smalltalk.addMethod(
  8211. unescape('_cr'),
  8212. smalltalk.method({
  8213. selector: unescape('cr'),
  8214. category: 'printing',
  8215. fn: function (){
  8216. var self=this;
  8217. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  8218. return self;},
  8219. args: [],
  8220. source: unescape('cr%0A%20%20%20%20self%20current%20show%3A%20String%20cr'),
  8221. messageSends: ["show:", "current", "cr"],
  8222. referencedClasses: [smalltalk.String]
  8223. }),
  8224. smalltalk.Transcript.klass);
  8225. smalltalk.addMethod(
  8226. unescape('_clear'),
  8227. smalltalk.method({
  8228. selector: unescape('clear'),
  8229. category: 'printing',
  8230. fn: function (){
  8231. var self=this;
  8232. smalltalk.send(smalltalk.send(self, "_current", []), "_clear", []);
  8233. return self;},
  8234. args: [],
  8235. source: unescape('clear%0A%20%20%20%20self%20current%20clear'),
  8236. messageSends: ["clear", "current"],
  8237. referencedClasses: []
  8238. }),
  8239. smalltalk.Transcript.klass);
  8240. smalltalk.addMethod(
  8241. unescape('_register_'),
  8242. smalltalk.method({
  8243. selector: unescape('register%3A'),
  8244. category: 'instance creation',
  8245. fn: function (aTranscript){
  8246. var self=this;
  8247. self['@current']=aTranscript;
  8248. return self;},
  8249. args: ["aTranscript"],
  8250. source: unescape('register%3A%20aTranscript%0A%09current%20%3A%3D%20aTranscript'),
  8251. messageSends: [],
  8252. referencedClasses: []
  8253. }),
  8254. smalltalk.Transcript.klass);
  8255. smalltalk.addClass('ConsoleTranscript', smalltalk.Object, ['textarea'], 'Kernel');
  8256. smalltalk.addMethod(
  8257. unescape('_clear'),
  8258. smalltalk.method({
  8259. selector: unescape('clear'),
  8260. category: 'printing',
  8261. fn: function (){
  8262. var self=this;
  8263. return self;},
  8264. args: [],
  8265. source: unescape('clear%0A%09%22no%20op%22'),
  8266. messageSends: [],
  8267. referencedClasses: []
  8268. }),
  8269. smalltalk.ConsoleTranscript);
  8270. smalltalk.addMethod(
  8271. unescape('_cr'),
  8272. smalltalk.method({
  8273. selector: unescape('cr'),
  8274. category: 'printing',
  8275. fn: function (){
  8276. var self=this;
  8277. return self;},
  8278. args: [],
  8279. source: unescape('cr%0A%09%22no%20op%22'),
  8280. messageSends: [],
  8281. referencedClasses: []
  8282. }),
  8283. smalltalk.ConsoleTranscript);
  8284. smalltalk.addMethod(
  8285. unescape('_show_'),
  8286. smalltalk.method({
  8287. selector: unescape('show%3A'),
  8288. category: 'printing',
  8289. fn: function (anObject){
  8290. var self=this;
  8291. console.log(String(anObject._asString()));
  8292. return self;},
  8293. args: ["anObject"],
  8294. source: unescape('show%3A%20anObject%0A%09%3Cconsole.log%28String%28anObject._asString%28%29%29%29%3E'),
  8295. messageSends: [],
  8296. referencedClasses: []
  8297. }),
  8298. smalltalk.ConsoleTranscript);
  8299. smalltalk.addMethod(
  8300. unescape('_open'),
  8301. smalltalk.method({
  8302. selector: unescape('open'),
  8303. category: 'actions',
  8304. fn: function (){
  8305. var self=this;
  8306. return self;},
  8307. args: [],
  8308. source: unescape('open'),
  8309. messageSends: [],
  8310. referencedClasses: []
  8311. }),
  8312. smalltalk.ConsoleTranscript);
  8313. smalltalk.addMethod(
  8314. unescape('_initialize'),
  8315. smalltalk.method({
  8316. selector: unescape('initialize'),
  8317. category: 'initialization',
  8318. fn: function (){
  8319. var self=this;
  8320. smalltalk.send((smalltalk.Transcript || Transcript), "_register_", [smalltalk.send(self, "_new", [])]);
  8321. return self;},
  8322. args: [],
  8323. source: unescape('initialize%0A%09Transcript%20register%3A%20self%20new'),
  8324. messageSends: ["register:", "new"],
  8325. referencedClasses: [smalltalk.Transcript]
  8326. }),
  8327. smalltalk.ConsoleTranscript.klass);