2
0

Kernel.js 299 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936
  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.addClass('String', smalltalk.SequenceableCollection, [], 'Kernel');
  4617. smalltalk.addMethod(
  4618. unescape('__eq'),
  4619. smalltalk.method({
  4620. selector: unescape('%3D'),
  4621. category: 'comparing',
  4622. fn: function (aString){
  4623. var self=this;
  4624. 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}})})();})]));
  4625. return String(self) == aString;
  4626. return self;
  4627. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  4628. args: ["aString"],
  4629. 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'),
  4630. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  4631. referencedClasses: []
  4632. }),
  4633. smalltalk.String);
  4634. smalltalk.addMethod(
  4635. unescape('_size'),
  4636. smalltalk.method({
  4637. selector: unescape('size'),
  4638. category: 'accessing',
  4639. fn: function (){
  4640. var self=this;
  4641. return self.length;
  4642. return self;},
  4643. args: [],
  4644. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  4645. messageSends: [],
  4646. referencedClasses: []
  4647. }),
  4648. smalltalk.String);
  4649. smalltalk.addMethod(
  4650. unescape('_at_'),
  4651. smalltalk.method({
  4652. selector: unescape('at%3A'),
  4653. category: 'accessing',
  4654. fn: function (anIndex){
  4655. var self=this;
  4656. return self[anIndex - 1];
  4657. return self;},
  4658. args: ["anIndex"],
  4659. source: unescape('at%3A%20anIndex%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%3E'),
  4660. messageSends: [],
  4661. referencedClasses: []
  4662. }),
  4663. smalltalk.String);
  4664. smalltalk.addMethod(
  4665. unescape('_at_put_'),
  4666. smalltalk.method({
  4667. selector: unescape('at%3Aput%3A'),
  4668. category: 'accessing',
  4669. fn: function (anIndex, anObject){
  4670. var self=this;
  4671. smalltalk.send(self, "_errorReadOnly", []);
  4672. return self;},
  4673. args: ["anIndex", "anObject"],
  4674. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  4675. messageSends: ["errorReadOnly"],
  4676. referencedClasses: []
  4677. }),
  4678. smalltalk.String);
  4679. smalltalk.addMethod(
  4680. unescape('_at_ifAbsent_'),
  4681. smalltalk.method({
  4682. selector: unescape('at%3AifAbsent%3A'),
  4683. category: 'accessing',
  4684. fn: function (anIndex, aBlock){
  4685. var self=this;
  4686. (($receiver = smalltalk.send(self, "_at_", [anIndex])) == nil || $receiver == undefined) ? (function(){return aBlock;})() : $receiver;
  4687. return self;},
  4688. args: ["anIndex", "aBlock"],
  4689. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%20%20%20%20%09%28self%20at%3A%20anIndex%29%20ifNil%3A%20%5BaBlock%5D'),
  4690. messageSends: ["ifNil:", "at:"],
  4691. referencedClasses: []
  4692. }),
  4693. smalltalk.String);
  4694. smalltalk.addMethod(
  4695. unescape('_escaped'),
  4696. smalltalk.method({
  4697. selector: unescape('escaped'),
  4698. category: 'accessing',
  4699. fn: function (){
  4700. var self=this;
  4701. return escape(self);
  4702. return self;},
  4703. args: [],
  4704. source: unescape('escaped%0A%09%3Creturn%20escape%28self%29%3E'),
  4705. messageSends: [],
  4706. referencedClasses: []
  4707. }),
  4708. smalltalk.String);
  4709. smalltalk.addMethod(
  4710. unescape('_unescaped'),
  4711. smalltalk.method({
  4712. selector: unescape('unescaped'),
  4713. category: 'accessing',
  4714. fn: function (){
  4715. var self=this;
  4716. return unescape(self);
  4717. return self;},
  4718. args: [],
  4719. source: unescape('unescaped%0A%09%3Creturn%20unescape%28self%29%3E'),
  4720. messageSends: [],
  4721. referencedClasses: []
  4722. }),
  4723. smalltalk.String);
  4724. smalltalk.addMethod(
  4725. unescape('_add_'),
  4726. smalltalk.method({
  4727. selector: unescape('add%3A'),
  4728. category: 'adding',
  4729. fn: function (anObject){
  4730. var self=this;
  4731. smalltalk.send(self, "_errorReadOnly", []);
  4732. return self;},
  4733. args: ["anObject"],
  4734. source: unescape('add%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  4735. messageSends: ["errorReadOnly"],
  4736. referencedClasses: []
  4737. }),
  4738. smalltalk.String);
  4739. smalltalk.addMethod(
  4740. unescape('__comma'),
  4741. smalltalk.method({
  4742. selector: unescape('%2C'),
  4743. category: 'copying',
  4744. fn: function (aString){
  4745. var self=this;
  4746. return self + aString;
  4747. return self;},
  4748. args: ["aString"],
  4749. source: unescape('%2C%20aString%0A%09%3Creturn%20self%20+%20aString%3E'),
  4750. messageSends: [],
  4751. referencedClasses: []
  4752. }),
  4753. smalltalk.String);
  4754. smalltalk.addMethod(
  4755. unescape('_copyFrom_to_'),
  4756. smalltalk.method({
  4757. selector: unescape('copyFrom%3Ato%3A'),
  4758. category: 'copying',
  4759. fn: function (anIndex, anotherIndex){
  4760. var self=this;
  4761. return self.substring(anIndex - 1, anotherIndex);
  4762. return self;},
  4763. args: ["anIndex", "anotherIndex"],
  4764. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09%3Creturn%20self.substring%28anIndex%20-%201%2C%20anotherIndex%29%3E'),
  4765. messageSends: [],
  4766. referencedClasses: []
  4767. }),
  4768. smalltalk.String);
  4769. smalltalk.addMethod(
  4770. unescape('_shallowCopy'),
  4771. smalltalk.method({
  4772. selector: unescape('shallowCopy'),
  4773. category: 'copying',
  4774. fn: function (){
  4775. var self=this;
  4776. return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [self]);
  4777. return self;},
  4778. args: [],
  4779. source: unescape('shallowCopy%0A%20%20%20%20%09%5Eself%20class%20fromString%3A%20self'),
  4780. messageSends: ["fromString:", "class"],
  4781. referencedClasses: []
  4782. }),
  4783. smalltalk.String);
  4784. smalltalk.addMethod(
  4785. unescape('_deepCopy'),
  4786. smalltalk.method({
  4787. selector: unescape('deepCopy'),
  4788. category: 'copying',
  4789. fn: function (){
  4790. var self=this;
  4791. return smalltalk.send(self, "_shallowCopy", []);
  4792. return self;},
  4793. args: [],
  4794. source: unescape('deepCopy%0A%20%20%20%20%09%5Eself%20shallowCopy'),
  4795. messageSends: ["shallowCopy"],
  4796. referencedClasses: []
  4797. }),
  4798. smalltalk.String);
  4799. smalltalk.addMethod(
  4800. unescape('_asSelector'),
  4801. smalltalk.method({
  4802. selector: unescape('asSelector'),
  4803. category: 'converting',
  4804. fn: function (){
  4805. var self=this;
  4806. var selector=nil;
  4807. selector=smalltalk.send("_", "__comma", [self]);
  4808. selector=smalltalk.send(selector, "_replace_with_", [":", "_"]);
  4809. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B+%5D"), "_plus"]);
  4810. selector=smalltalk.send(selector, "_replace_with_", [unescape("-"), "_minus"]);
  4811. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B*%5D"), "_star"]);
  4812. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B/%5D"), "_slash"]);
  4813. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3E"), "_gt"]);
  4814. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3C"), "_lt"]);
  4815. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3D"), "_eq"]);
  4816. selector=smalltalk.send(selector, "_replace_with_", [unescape("%2C"), "_comma"]);
  4817. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B@%5D"), "_at"]);
  4818. return selector;
  4819. return self;},
  4820. args: [],
  4821. 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'),
  4822. messageSends: [unescape("%2C"), "replace:with:"],
  4823. referencedClasses: []
  4824. }),
  4825. smalltalk.String);
  4826. smalltalk.addMethod(
  4827. unescape('_asJavascript'),
  4828. smalltalk.method({
  4829. selector: unescape('asJavascript'),
  4830. category: 'converting',
  4831. fn: function (){
  4832. var self=this;
  4833. if(self.search(/^[a-zA-Z0-9_:.$ ]*$/) == -1)
  4834. return "unescape(\"" + escape(self) + "\")";
  4835. else
  4836. return "\"" + self + "\"";
  4837. ;
  4838. return self;},
  4839. args: [],
  4840. 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'),
  4841. messageSends: [],
  4842. referencedClasses: []
  4843. }),
  4844. smalltalk.String);
  4845. smalltalk.addMethod(
  4846. unescape('_replace_with_'),
  4847. smalltalk.method({
  4848. selector: unescape('replace%3Awith%3A'),
  4849. category: 'regular expressions',
  4850. fn: function (aString, anotherString){
  4851. var self=this;
  4852. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [aString, "g"]), anotherString]);
  4853. return self;},
  4854. args: ["aString", "anotherString"],
  4855. 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'),
  4856. messageSends: ["replaceRegexp:with:", "fromString:flag:"],
  4857. referencedClasses: [smalltalk.RegularExpression]
  4858. }),
  4859. smalltalk.String);
  4860. smalltalk.addMethod(
  4861. unescape('_replaceRegexp_with_'),
  4862. smalltalk.method({
  4863. selector: unescape('replaceRegexp%3Awith%3A'),
  4864. category: 'regular expressions',
  4865. fn: function (aRegexp, aString){
  4866. var self=this;
  4867. return self.replace(aRegexp, aString);
  4868. return self;},
  4869. args: ["aRegexp", "aString"],
  4870. source: unescape('replaceRegexp%3A%20aRegexp%20with%3A%20aString%0A%09%3Creturn%20self.replace%28aRegexp%2C%20aString%29%3E'),
  4871. messageSends: [],
  4872. referencedClasses: []
  4873. }),
  4874. smalltalk.String);
  4875. smalltalk.addMethod(
  4876. unescape('_tokenize_'),
  4877. smalltalk.method({
  4878. selector: unescape('tokenize%3A'),
  4879. category: 'converting',
  4880. fn: function (aString){
  4881. var self=this;
  4882. return self.split(aString);
  4883. return self;},
  4884. args: ["aString"],
  4885. source: unescape('tokenize%3A%20aString%0A%09%3Creturn%20self.split%28aString%29%3E'),
  4886. messageSends: [],
  4887. referencedClasses: []
  4888. }),
  4889. smalltalk.String);
  4890. smalltalk.addMethod(
  4891. unescape('_match_'),
  4892. smalltalk.method({
  4893. selector: unescape('match%3A'),
  4894. category: 'regular expressions',
  4895. fn: function (aRegexp){
  4896. var self=this;
  4897. return self.search(aRegexp) != -1;
  4898. return self;},
  4899. args: ["aRegexp"],
  4900. source: unescape('match%3A%20aRegexp%0A%09%3Creturn%20self.search%28aRegexp%29%20%21%3D%20-1%3E'),
  4901. messageSends: [],
  4902. referencedClasses: []
  4903. }),
  4904. smalltalk.String);
  4905. smalltalk.addMethod(
  4906. unescape('_asString'),
  4907. smalltalk.method({
  4908. selector: unescape('asString'),
  4909. category: 'converting',
  4910. fn: function (){
  4911. var self=this;
  4912. return self;
  4913. return self;},
  4914. args: [],
  4915. source: unescape('asString%0A%20%20%20%20%09%5Eself'),
  4916. messageSends: [],
  4917. referencedClasses: []
  4918. }),
  4919. smalltalk.String);
  4920. smalltalk.addMethod(
  4921. unescape('_asNumber'),
  4922. smalltalk.method({
  4923. selector: unescape('asNumber'),
  4924. category: 'converting',
  4925. fn: function (){
  4926. var self=this;
  4927. return Number(self);
  4928. return self;},
  4929. args: [],
  4930. source: unescape('asNumber%0A%09%3Creturn%20Number%28self%29%3E'),
  4931. messageSends: [],
  4932. referencedClasses: []
  4933. }),
  4934. smalltalk.String);
  4935. smalltalk.addMethod(
  4936. unescape('_errorReadOnly'),
  4937. smalltalk.method({
  4938. selector: unescape('errorReadOnly'),
  4939. category: 'error handling',
  4940. fn: function (){
  4941. var self=this;
  4942. smalltalk.send(self, "_error_", [unescape("Object%20is%20read-only")]);
  4943. return self;},
  4944. args: [],
  4945. source: unescape('errorReadOnly%0A%20%20%20%20%09self%20error%3A%20%27Object%20is%20read-only%27'),
  4946. messageSends: ["error:"],
  4947. referencedClasses: []
  4948. }),
  4949. smalltalk.String);
  4950. smalltalk.addMethod(
  4951. unescape('_printString'),
  4952. smalltalk.method({
  4953. selector: unescape('printString'),
  4954. category: 'printing',
  4955. fn: function (){
  4956. var self=this;
  4957. return smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [self]), "__comma", [unescape("%27")]);
  4958. return self;},
  4959. args: [],
  4960. source: unescape('printString%0A%20%20%20%20%09%5E%27%27%27%27%2C%20self%2C%20%27%27%27%27'),
  4961. messageSends: [unescape("%2C")],
  4962. referencedClasses: []
  4963. }),
  4964. smalltalk.String);
  4965. smalltalk.addMethod(
  4966. unescape('_printNl'),
  4967. smalltalk.method({
  4968. selector: unescape('printNl'),
  4969. category: 'printing',
  4970. fn: function (){
  4971. var self=this;
  4972. console.log(self);
  4973. return self;},
  4974. args: [],
  4975. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  4976. messageSends: [],
  4977. referencedClasses: []
  4978. }),
  4979. smalltalk.String);
  4980. smalltalk.addMethod(
  4981. unescape('_isString'),
  4982. smalltalk.method({
  4983. selector: unescape('isString'),
  4984. category: 'testing',
  4985. fn: function (){
  4986. var self=this;
  4987. return true;
  4988. return self;},
  4989. args: [],
  4990. source: unescape('isString%0A%20%20%20%20%09%5Etrue'),
  4991. messageSends: [],
  4992. referencedClasses: []
  4993. }),
  4994. smalltalk.String);
  4995. smalltalk.addMethod(
  4996. unescape('__gt'),
  4997. smalltalk.method({
  4998. selector: unescape('%3E'),
  4999. category: 'comparing',
  5000. fn: function (aString){
  5001. var self=this;
  5002. return String(self) > aString;
  5003. return self;},
  5004. args: ["aString"],
  5005. source: unescape('%3E%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%20aString%3E'),
  5006. messageSends: [],
  5007. referencedClasses: []
  5008. }),
  5009. smalltalk.String);
  5010. smalltalk.addMethod(
  5011. unescape('__lt'),
  5012. smalltalk.method({
  5013. selector: unescape('%3C'),
  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('%3C%20aString%0A%09%3Creturn%20String%28self%29%20%3C%20aString%3E'),
  5021. messageSends: [],
  5022. referencedClasses: []
  5023. }),
  5024. smalltalk.String);
  5025. smalltalk.addMethod(
  5026. unescape('__gt_eq'),
  5027. smalltalk.method({
  5028. selector: unescape('%3E%3D'),
  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('%3E%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%3D%20aString%3E'),
  5036. messageSends: [],
  5037. referencedClasses: []
  5038. }),
  5039. smalltalk.String);
  5040. smalltalk.addMethod(
  5041. unescape('__lt_eq'),
  5042. smalltalk.method({
  5043. selector: unescape('%3C%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('%3C%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3C%3D%20aString%3E'),
  5051. messageSends: [],
  5052. referencedClasses: []
  5053. }),
  5054. smalltalk.String);
  5055. smalltalk.addMethod(
  5056. unescape('_remove_'),
  5057. smalltalk.method({
  5058. selector: unescape('remove%3A'),
  5059. category: 'adding',
  5060. fn: function (anObject){
  5061. var self=this;
  5062. smalltalk.send(self, "_errorReadOnly", []);
  5063. return self;},
  5064. args: ["anObject"],
  5065. source: unescape('remove%3A%20anObject%0A%09self%20errorReadOnly'),
  5066. messageSends: ["errorReadOnly"],
  5067. referencedClasses: []
  5068. }),
  5069. smalltalk.String);
  5070. smalltalk.addMethod(
  5071. unescape('_asJSONObject'),
  5072. smalltalk.method({
  5073. selector: unescape('asJSONObject'),
  5074. category: 'converting',
  5075. fn: function (){
  5076. var self=this;
  5077. return self;
  5078. return self;},
  5079. args: [],
  5080. source: unescape('asJSONObject%0A%09%5Eself'),
  5081. messageSends: [],
  5082. referencedClasses: []
  5083. }),
  5084. smalltalk.String);
  5085. smalltalk.addMethod(
  5086. unescape('_trimLeft_'),
  5087. smalltalk.method({
  5088. selector: unescape('trimLeft%3A'),
  5089. category: 'regular expressions',
  5090. fn: function (separators){
  5091. var self=this;
  5092. 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"]), ""]);
  5093. return self;},
  5094. args: ["separators"],
  5095. 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'),
  5096. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  5097. referencedClasses: [smalltalk.RegularExpression]
  5098. }),
  5099. smalltalk.String);
  5100. smalltalk.addMethod(
  5101. unescape('_trimRight_'),
  5102. smalltalk.method({
  5103. selector: unescape('trimRight%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("%5B"), "__comma", [separators]), "__comma", [unescape("%5D+%24")]), "g"]), ""]);
  5108. return self;},
  5109. args: ["separators"],
  5110. 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'),
  5111. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  5112. referencedClasses: [smalltalk.RegularExpression]
  5113. }),
  5114. smalltalk.String);
  5115. smalltalk.addMethod(
  5116. unescape('_trimLeft'),
  5117. smalltalk.method({
  5118. selector: unescape('trimLeft'),
  5119. category: 'regular expressions',
  5120. fn: function (){
  5121. var self=this;
  5122. return smalltalk.send(self, "_trimLeft_", [unescape("%5Cs")]);
  5123. return self;},
  5124. args: [],
  5125. source: unescape('trimLeft%0A%09%5Eself%20trimLeft%3A%20%27%5Cs%27'),
  5126. messageSends: ["trimLeft:"],
  5127. referencedClasses: []
  5128. }),
  5129. smalltalk.String);
  5130. smalltalk.addMethod(
  5131. unescape('_trimRight'),
  5132. smalltalk.method({
  5133. selector: unescape('trimRight'),
  5134. category: 'regular expressions',
  5135. fn: function (){
  5136. var self=this;
  5137. return smalltalk.send(self, "_trimRight_", [unescape("%5Cs")]);
  5138. return self;},
  5139. args: [],
  5140. source: unescape('trimRight%0A%09%5Eself%20trimRight%3A%20%27%5Cs%27'),
  5141. messageSends: ["trimRight:"],
  5142. referencedClasses: []
  5143. }),
  5144. smalltalk.String);
  5145. smalltalk.addMethod(
  5146. unescape('_trimBoth'),
  5147. smalltalk.method({
  5148. selector: unescape('trimBoth'),
  5149. category: 'regular expressions',
  5150. fn: function (){
  5151. var self=this;
  5152. return smalltalk.send(self, "_trimBoth_", [unescape("%5Cs")]);
  5153. return self;},
  5154. args: [],
  5155. source: unescape('trimBoth%0A%09%5Eself%20trimBoth%3A%20%27%5Cs%27'),
  5156. messageSends: ["trimBoth:"],
  5157. referencedClasses: []
  5158. }),
  5159. smalltalk.String);
  5160. smalltalk.addMethod(
  5161. unescape('_trimBoth_'),
  5162. smalltalk.method({
  5163. selector: unescape('trimBoth%3A'),
  5164. category: 'regular expressions',
  5165. fn: function (separators){
  5166. var self=this;
  5167. return smalltalk.send(smalltalk.send(self, "_trimLeft_", [separators]), "_trimRight_", [separators]);
  5168. return self;},
  5169. args: ["separators"],
  5170. source: unescape('trimBoth%3A%20separators%0A%0A%20%20%20%20%09%5E%28self%20trimLeft%3A%20separators%29%20trimRight%3A%20separators'),
  5171. messageSends: ["trimRight:", "trimLeft:"],
  5172. referencedClasses: []
  5173. }),
  5174. smalltalk.String);
  5175. smalltalk.addMethod(
  5176. unescape('_asLowercase'),
  5177. smalltalk.method({
  5178. selector: unescape('asLowercase'),
  5179. category: 'converting',
  5180. fn: function (){
  5181. var self=this;
  5182. return self.toLowerCase();
  5183. return self;},
  5184. args: [],
  5185. source: unescape('asLowercase%0A%09%3Creturn%20self.toLowerCase%28%29%3E'),
  5186. messageSends: [],
  5187. referencedClasses: []
  5188. }),
  5189. smalltalk.String);
  5190. smalltalk.addMethod(
  5191. unescape('_asUppercase'),
  5192. smalltalk.method({
  5193. selector: unescape('asUppercase'),
  5194. category: 'converting',
  5195. fn: function (){
  5196. var self=this;
  5197. return self.toUpperCase();
  5198. return self;},
  5199. args: [],
  5200. source: unescape('asUppercase%0A%09%3Creturn%20self.toUpperCase%28%29%3E'),
  5201. messageSends: [],
  5202. referencedClasses: []
  5203. }),
  5204. smalltalk.String);
  5205. smalltalk.addMethod(
  5206. unescape('_join_'),
  5207. smalltalk.method({
  5208. selector: unescape('join%3A'),
  5209. category: 'split join',
  5210. fn: function (aCollection){
  5211. var self=this;
  5212. 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]);})]);})]);
  5213. return self;},
  5214. args: ["aCollection"],
  5215. 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'),
  5216. messageSends: ["streamContents:", "do:separatedBy:", "nextPutAll:", "asString"],
  5217. referencedClasses: [smalltalk.String]
  5218. }),
  5219. smalltalk.String);
  5220. smalltalk.addMethod(
  5221. unescape('_includesSubString_'),
  5222. smalltalk.method({
  5223. selector: unescape('includesSubString%3A'),
  5224. category: 'testing',
  5225. fn: function (subString){
  5226. var self=this;
  5227. return self.indexOf(subString) != -1 ;
  5228. return self;},
  5229. args: ["subString"],
  5230. source: unescape('includesSubString%3A%20subString%0A%09%3C%20return%20self.indexOf%28subString%29%20%21%3D%20-1%20%3E'),
  5231. messageSends: [],
  5232. referencedClasses: []
  5233. }),
  5234. smalltalk.String);
  5235. smalltalk.addMethod(
  5236. unescape('_asciiValue'),
  5237. smalltalk.method({
  5238. selector: unescape('asciiValue'),
  5239. category: 'accessing',
  5240. fn: function (){
  5241. var self=this;
  5242. return self.charCodeAt(0);;
  5243. return self;},
  5244. args: [],
  5245. source: unescape('asciiValue%0A%09%3Creturn%20self.charCodeAt%280%29%3B%3E'),
  5246. messageSends: [],
  5247. referencedClasses: []
  5248. }),
  5249. smalltalk.String);
  5250. smalltalk.addMethod(
  5251. unescape('_lineIndicesDo_'),
  5252. smalltalk.method({
  5253. selector: unescape('lineIndicesDo%3A'),
  5254. category: 'split join',
  5255. fn: function (aBlock){
  5256. var self=this;
  5257. try{var cr=nil;
  5258. var lf=nil;
  5259. var start=nil;
  5260. var sz=nil;
  5261. var nextLF=nil;
  5262. var nextCR=nil;
  5263. start=(1);
  5264. sz=smalltalk.send(self, "_size", []);
  5265. cr=smalltalk.send((smalltalk.String || String), "_cr", []);
  5266. nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, (1)]);
  5267. lf=smalltalk.send((smalltalk.String || String), "_lf", []);
  5268. nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, (1)]);
  5269. (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]);})]));})]));})()}})();
  5270. return self;
  5271. } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineIndicesDo_'){return e.fn()} throw(e)}},
  5272. args: ["aBlock"],
  5273. 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'),
  5274. messageSends: ["size", "cr", "indexOf:startingAt:", "lf", "whileTrue:", unescape("%3C%3D"), "ifTrue:", "and:", unescape("%3D"), "value:value:value:", "ifTrue:ifFalse:", "or:", unescape("%3C"), unescape("-"), unescape("+")],
  5275. referencedClasses: [smalltalk.String]
  5276. }),
  5277. smalltalk.String);
  5278. smalltalk.addMethod(
  5279. unescape('_linesDo_'),
  5280. smalltalk.method({
  5281. selector: unescape('linesDo%3A'),
  5282. category: 'split join',
  5283. fn: function (aBlock){
  5284. var self=this;
  5285. smalltalk.send(self, "_lineIndicesDo_", [(function(start, endWithoutDelimiters, end){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])]);})]);
  5286. return self;},
  5287. args: ["aBlock"],
  5288. 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'),
  5289. messageSends: ["lineIndicesDo:", "value:", "copyFrom:to:"],
  5290. referencedClasses: []
  5291. }),
  5292. smalltalk.String);
  5293. smalltalk.addMethod(
  5294. unescape('_lines'),
  5295. smalltalk.method({
  5296. selector: unescape('lines'),
  5297. category: 'split join',
  5298. fn: function (){
  5299. var self=this;
  5300. var lines=nil;
  5301. lines=smalltalk.send((smalltalk.Array || Array), "_new", []);
  5302. smalltalk.send(self, "_linesDo_", [(function(aLine){return smalltalk.send(lines, "_add_", [aLine]);})]);
  5303. return lines;
  5304. return self;},
  5305. args: [],
  5306. 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'),
  5307. messageSends: ["new", "linesDo:", "add:"],
  5308. referencedClasses: [smalltalk.Array]
  5309. }),
  5310. smalltalk.String);
  5311. smalltalk.addMethod(
  5312. unescape('_lineNumber_'),
  5313. smalltalk.method({
  5314. selector: unescape('lineNumber%3A'),
  5315. category: 'split join',
  5316. fn: function (anIndex){
  5317. var self=this;
  5318. try{var lineCount=nil;
  5319. lineCount=(0);
  5320. 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])}})})();})]));})]);
  5321. (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return nil}})})();
  5322. return self;
  5323. } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineNumber_'){return e.fn()} throw(e)}},
  5324. args: ["anIndex"],
  5325. 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'),
  5326. messageSends: ["lineIndicesDo:", "ifTrue:", unescape("%3D"), unescape("+"), "copyFrom:to:"],
  5327. referencedClasses: []
  5328. }),
  5329. smalltalk.String);
  5330. smalltalk.addMethod(
  5331. unescape('_reversed'),
  5332. smalltalk.method({
  5333. selector: unescape('reversed'),
  5334. category: 'converting',
  5335. fn: function (){
  5336. var self=this;
  5337. return self.split("").reverse().join("");
  5338. return self;},
  5339. args: [],
  5340. source: unescape('reversed%0A%09%3Creturn%20self.split%28%22%22%29.reverse%28%29.join%28%22%22%29%3E'),
  5341. messageSends: [],
  5342. referencedClasses: []
  5343. }),
  5344. smalltalk.String);
  5345. smalltalk.addMethod(
  5346. unescape('__eq_eq'),
  5347. smalltalk.method({
  5348. selector: unescape('%3D%3D'),
  5349. category: 'comparing',
  5350. fn: function (aString){
  5351. var self=this;
  5352. 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}})})();})]));
  5353. return String(self) === String(aString);
  5354. return self;
  5355. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  5356. args: ["aString"],
  5357. 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'),
  5358. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  5359. referencedClasses: []
  5360. }),
  5361. smalltalk.String);
  5362. smalltalk.addMethod(
  5363. unescape('_asJavaScriptSelector'),
  5364. smalltalk.method({
  5365. selector: unescape('asJavaScriptSelector'),
  5366. category: 'converting',
  5367. fn: function (){
  5368. var self=this;
  5369. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_asSelector", []), "_replace_with_", [unescape("%5E_"), ""]), "_replace_with_", [unescape("_.*"), ""]);
  5370. return self;},
  5371. args: [],
  5372. 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.'),
  5373. messageSends: ["replace:with:", "asSelector"],
  5374. referencedClasses: []
  5375. }),
  5376. smalltalk.String);
  5377. smalltalk.addMethod(
  5378. unescape('_streamClass'),
  5379. smalltalk.method({
  5380. selector: unescape('streamClass'),
  5381. category: 'accessing',
  5382. fn: function (){
  5383. var self=this;
  5384. return (smalltalk.StringStream || StringStream);
  5385. return self;},
  5386. args: [],
  5387. source: unescape('streamClass%0A%09%20%20%20%20%5EStringStream'),
  5388. messageSends: [],
  5389. referencedClasses: [smalltalk.nil]
  5390. }),
  5391. smalltalk.String.klass);
  5392. smalltalk.addMethod(
  5393. unescape('_fromString_'),
  5394. smalltalk.method({
  5395. selector: unescape('fromString%3A'),
  5396. category: 'instance creation',
  5397. fn: function (aString){
  5398. var self=this;
  5399. return new self.fn(aString);
  5400. return self;},
  5401. args: ["aString"],
  5402. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%3Creturn%20new%20self.fn%28aString%29%3E'),
  5403. messageSends: [],
  5404. referencedClasses: []
  5405. }),
  5406. smalltalk.String.klass);
  5407. smalltalk.addMethod(
  5408. unescape('_cr'),
  5409. smalltalk.method({
  5410. selector: unescape('cr'),
  5411. category: 'accessing',
  5412. fn: function (){
  5413. var self=this;
  5414. return '\r';
  5415. return self;},
  5416. args: [],
  5417. source: unescape('cr%0A%09%3Creturn%20%27%5Cr%27%3E'),
  5418. messageSends: [],
  5419. referencedClasses: []
  5420. }),
  5421. smalltalk.String.klass);
  5422. smalltalk.addMethod(
  5423. unescape('_lf'),
  5424. smalltalk.method({
  5425. selector: unescape('lf'),
  5426. category: 'accessing',
  5427. fn: function (){
  5428. var self=this;
  5429. return '\n';
  5430. return self;},
  5431. args: [],
  5432. source: unescape('lf%0A%09%3Creturn%20%27%5Cn%27%3E'),
  5433. messageSends: [],
  5434. referencedClasses: []
  5435. }),
  5436. smalltalk.String.klass);
  5437. smalltalk.addMethod(
  5438. unescape('_space'),
  5439. smalltalk.method({
  5440. selector: unescape('space'),
  5441. category: 'accessing',
  5442. fn: function (){
  5443. var self=this;
  5444. return ' ';
  5445. return self;},
  5446. args: [],
  5447. source: unescape('space%0A%09%3Creturn%20%27%20%27%3E'),
  5448. messageSends: [],
  5449. referencedClasses: []
  5450. }),
  5451. smalltalk.String.klass);
  5452. smalltalk.addMethod(
  5453. unescape('_tab'),
  5454. smalltalk.method({
  5455. selector: unescape('tab'),
  5456. category: 'accessing',
  5457. fn: function (){
  5458. var self=this;
  5459. return '\t';
  5460. return self;},
  5461. args: [],
  5462. source: unescape('tab%0A%09%3Creturn%20%27%5Ct%27%3E'),
  5463. messageSends: [],
  5464. referencedClasses: []
  5465. }),
  5466. smalltalk.String.klass);
  5467. smalltalk.addMethod(
  5468. unescape('_crlf'),
  5469. smalltalk.method({
  5470. selector: unescape('crlf'),
  5471. category: 'accessing',
  5472. fn: function (){
  5473. var self=this;
  5474. return '\r\n';
  5475. return self;},
  5476. args: [],
  5477. source: unescape('crlf%0A%09%3Creturn%20%27%5Cr%5Cn%27%3E'),
  5478. messageSends: [],
  5479. referencedClasses: []
  5480. }),
  5481. smalltalk.String.klass);
  5482. smalltalk.addMethod(
  5483. unescape('_streamContents_'),
  5484. smalltalk.method({
  5485. selector: unescape('streamContents%3A'),
  5486. category: 'instance creation',
  5487. fn: function (blockWithArg){
  5488. var self=this;
  5489. var stream=nil;
  5490. stream=smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [smalltalk.send((smalltalk.String || String), "_new", [])]);
  5491. smalltalk.send(blockWithArg, "_value_", [stream]);
  5492. return smalltalk.send(stream, "_contents", []);
  5493. return self;},
  5494. args: ["blockWithArg"],
  5495. 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'),
  5496. messageSends: ["on:", "streamClass", "new", "value:", "contents"],
  5497. referencedClasses: [smalltalk.String]
  5498. }),
  5499. smalltalk.String.klass);
  5500. smalltalk.addMethod(
  5501. unescape('_value_'),
  5502. smalltalk.method({
  5503. selector: unescape('value%3A'),
  5504. category: 'instance creation',
  5505. fn: function (aUTFCharCode){
  5506. var self=this;
  5507. return String.fromCharCode(aUTFCharCode);;
  5508. return self;},
  5509. args: ["aUTFCharCode"],
  5510. source: unescape('value%3A%20aUTFCharCode%0A%0A%09%3Creturn%20String.fromCharCode%28aUTFCharCode%29%3B%3E'),
  5511. messageSends: [],
  5512. referencedClasses: []
  5513. }),
  5514. smalltalk.String.klass);
  5515. smalltalk.addClass('Array', smalltalk.SequenceableCollection, [], 'Kernel');
  5516. smalltalk.addMethod(
  5517. unescape('_size'),
  5518. smalltalk.method({
  5519. selector: unescape('size'),
  5520. category: 'accessing',
  5521. fn: function (){
  5522. var self=this;
  5523. return self.length;
  5524. return self;},
  5525. args: [],
  5526. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  5527. messageSends: [],
  5528. referencedClasses: []
  5529. }),
  5530. smalltalk.Array);
  5531. smalltalk.addMethod(
  5532. unescape('_at_put_'),
  5533. smalltalk.method({
  5534. selector: unescape('at%3Aput%3A'),
  5535. category: 'accessing',
  5536. fn: function (anIndex, anObject){
  5537. var self=this;
  5538. return self[anIndex - 1] = anObject;
  5539. return self;},
  5540. args: ["anIndex", "anObject"],
  5541. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%20%3D%20anObject%3E'),
  5542. messageSends: [],
  5543. referencedClasses: []
  5544. }),
  5545. smalltalk.Array);
  5546. smalltalk.addMethod(
  5547. unescape('_at_ifAbsent_'),
  5548. smalltalk.method({
  5549. selector: unescape('at%3AifAbsent%3A'),
  5550. category: 'accessing',
  5551. fn: function (anIndex, aBlock){
  5552. var self=this;
  5553. var value = self[anIndex - 1];
  5554. if(value === undefined) {
  5555. return aBlock();
  5556. } else {
  5557. return value;
  5558. }
  5559. ;
  5560. return self;},
  5561. args: ["anIndex", "aBlock"],
  5562. 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'),
  5563. messageSends: [],
  5564. referencedClasses: []
  5565. }),
  5566. smalltalk.Array);
  5567. smalltalk.addMethod(
  5568. unescape('_add_'),
  5569. smalltalk.method({
  5570. selector: unescape('add%3A'),
  5571. category: 'adding/removing',
  5572. fn: function (anObject){
  5573. var self=this;
  5574. self.push(anObject); return anObject;;
  5575. return self;},
  5576. args: ["anObject"],
  5577. source: unescape('add%3A%20anObject%0A%09%3Cself.push%28anObject%29%3B%20return%20anObject%3B%3E'),
  5578. messageSends: [],
  5579. referencedClasses: []
  5580. }),
  5581. smalltalk.Array);
  5582. smalltalk.addMethod(
  5583. unescape('_shallowCopy'),
  5584. smalltalk.method({
  5585. selector: unescape('shallowCopy'),
  5586. category: 'copying',
  5587. fn: function (){
  5588. var self=this;
  5589. var newCollection=nil;
  5590. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5591. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [each]);})]);
  5592. return newCollection;
  5593. return self;},
  5594. args: [],
  5595. 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'),
  5596. messageSends: ["new", "class", "do:", "add:"],
  5597. referencedClasses: []
  5598. }),
  5599. smalltalk.Array);
  5600. smalltalk.addMethod(
  5601. unescape('_deepCopy'),
  5602. smalltalk.method({
  5603. selector: unescape('deepCopy'),
  5604. category: 'copying',
  5605. fn: function (){
  5606. var self=this;
  5607. var newCollection=nil;
  5608. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5609. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(each, "_deepCopy", [])]);})]);
  5610. return newCollection;
  5611. return self;},
  5612. args: [],
  5613. 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'),
  5614. messageSends: ["new", "class", "do:", "add:", "deepCopy"],
  5615. referencedClasses: []
  5616. }),
  5617. smalltalk.Array);
  5618. smalltalk.addMethod(
  5619. unescape('_copyFrom_to_'),
  5620. smalltalk.method({
  5621. selector: unescape('copyFrom%3Ato%3A'),
  5622. category: 'copying',
  5623. fn: function (anIndex, anotherIndex){
  5624. var self=this;
  5625. var array=nil;
  5626. array=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5627. smalltalk.send(anIndex, "_to_do_", [anotherIndex, (function(each){return smalltalk.send(array, "_add_", [smalltalk.send(self, "_at_", [each])]);})]);
  5628. return array;
  5629. return self;},
  5630. args: ["anIndex", "anotherIndex"],
  5631. 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'),
  5632. messageSends: ["new", "class", "to:do:", "add:", "at:"],
  5633. referencedClasses: []
  5634. }),
  5635. smalltalk.Array);
  5636. smalltalk.addMethod(
  5637. unescape('_join_'),
  5638. smalltalk.method({
  5639. selector: unescape('join%3A'),
  5640. category: 'enumerating',
  5641. fn: function (aString){
  5642. var self=this;
  5643. return self.join(aString);
  5644. return self;},
  5645. args: ["aString"],
  5646. source: unescape('join%3A%20aString%0A%09%3Creturn%20self.join%28aString%29%3E'),
  5647. messageSends: [],
  5648. referencedClasses: []
  5649. }),
  5650. smalltalk.Array);
  5651. smalltalk.addMethod(
  5652. unescape('_asJavascript'),
  5653. smalltalk.method({
  5654. selector: unescape('asJavascript'),
  5655. category: 'converting',
  5656. fn: function (){
  5657. var self=this;
  5658. 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")]);
  5659. return self;},
  5660. args: [],
  5661. 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'),
  5662. messageSends: [unescape("%2C"), "join:", "collect:", "asJavascript"],
  5663. referencedClasses: []
  5664. }),
  5665. smalltalk.Array);
  5666. smalltalk.addMethod(
  5667. unescape('_sort'),
  5668. smalltalk.method({
  5669. selector: unescape('sort'),
  5670. category: 'enumerating',
  5671. fn: function (){
  5672. var self=this;
  5673. return smalltalk.send(self, "_basicPerform_", ["sort"]);
  5674. return self;},
  5675. args: [],
  5676. source: unescape('sort%0A%20%20%20%20%5Eself%20basicPerform%3A%20%27sort%27'),
  5677. messageSends: ["basicPerform:"],
  5678. referencedClasses: []
  5679. }),
  5680. smalltalk.Array);
  5681. smalltalk.addMethod(
  5682. unescape('_sort_'),
  5683. smalltalk.method({
  5684. selector: unescape('sort%3A'),
  5685. category: 'enumerating',
  5686. fn: function (aBlock){
  5687. var self=this;
  5688. return self.sort(function(a, b) {
  5689. if(aBlock(a,b)) {return -1} else {return 1}
  5690. })
  5691. ;
  5692. return self;},
  5693. args: ["aBlock"],
  5694. 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'),
  5695. messageSends: [],
  5696. referencedClasses: []
  5697. }),
  5698. smalltalk.Array);
  5699. smalltalk.addMethod(
  5700. unescape('_remove_'),
  5701. smalltalk.method({
  5702. selector: unescape('remove%3A'),
  5703. category: 'adding/removing',
  5704. fn: function (anObject){
  5705. var self=this;
  5706. for(var i=0;i<self.length;i++) {
  5707. if(self[i] == anObject) {
  5708. self.splice(i,1);
  5709. break;
  5710. }
  5711. }
  5712. ;
  5713. return self;},
  5714. args: ["anObject"],
  5715. 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'),
  5716. messageSends: [],
  5717. referencedClasses: []
  5718. }),
  5719. smalltalk.Array);
  5720. smalltalk.addMethod(
  5721. unescape('_sorted'),
  5722. smalltalk.method({
  5723. selector: unescape('sorted'),
  5724. category: 'enumerating',
  5725. fn: function (){
  5726. var self=this;
  5727. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort", []);
  5728. return self;},
  5729. args: [],
  5730. source: unescape('sorted%0A%09%5Eself%20copy%20sort'),
  5731. messageSends: ["sort", "copy"],
  5732. referencedClasses: []
  5733. }),
  5734. smalltalk.Array);
  5735. smalltalk.addMethod(
  5736. unescape('_sorted_'),
  5737. smalltalk.method({
  5738. selector: unescape('sorted%3A'),
  5739. category: 'enumerating',
  5740. fn: function (aBlock){
  5741. var self=this;
  5742. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort_", [aBlock]);
  5743. return self;},
  5744. args: ["aBlock"],
  5745. source: unescape('sorted%3A%20aBlock%0A%09%5Eself%20copy%20sort%3A%20aBlock'),
  5746. messageSends: ["sort:", "copy"],
  5747. referencedClasses: []
  5748. }),
  5749. smalltalk.Array);
  5750. smalltalk.addMethod(
  5751. unescape('_asJSONObject'),
  5752. smalltalk.method({
  5753. selector: unescape('asJSONObject'),
  5754. category: 'converting',
  5755. fn: function (){
  5756. var self=this;
  5757. return smalltalk.send(self, "_collect_", [(function(each){return smalltalk.send(each, "_asJSONObject", []);})]);
  5758. return self;},
  5759. args: [],
  5760. source: unescape('asJSONObject%0A%09%5Eself%20collect%3A%20%5B%3Aeach%20%7C%20each%20asJSONObject%5D'),
  5761. messageSends: ["collect:", "asJSONObject"],
  5762. referencedClasses: []
  5763. }),
  5764. smalltalk.Array);
  5765. smalltalk.addMethod(
  5766. unescape('_removeFrom_to_'),
  5767. smalltalk.method({
  5768. selector: unescape('removeFrom%3Ato%3A'),
  5769. category: 'adding/removing',
  5770. fn: function (aNumber, anotherNumber){
  5771. var self=this;
  5772. self.splice(aNumber - 1,anotherNumber - 1);
  5773. return self;},
  5774. args: ["aNumber", "anotherNumber"],
  5775. source: unescape('removeFrom%3A%20aNumber%20to%3A%20anotherNumber%0A%09%3Cself.splice%28aNumber%20-%201%2CanotherNumber%20-%201%29%3E'),
  5776. messageSends: [],
  5777. referencedClasses: []
  5778. }),
  5779. smalltalk.Array);
  5780. smalltalk.addMethod(
  5781. unescape('_printString'),
  5782. smalltalk.method({
  5783. selector: unescape('printString'),
  5784. category: 'enumerating',
  5785. fn: function (){
  5786. var self=this;
  5787. var str=nil;
  5788. str=smalltalk.send("", "_writeStream", []);
  5789. smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.SequenceableCollection), "__comma", [unescape("%20%28")])]);
  5790. smalltalk.send(self, "_do_separatedBy_", [(function(each){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(each, "_printString", [])]);}), (function(){return smalltalk.send(str, "_nextPutAll_", [" "]);})]);
  5791. smalltalk.send(str, "_nextPutAll_", [unescape("%29")]);
  5792. return smalltalk.send(str, "_contents", []);
  5793. return self;},
  5794. args: [],
  5795. 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'),
  5796. messageSends: ["writeStream", "nextPutAll:", unescape("%2C"), "printString", "do:separatedBy:", "contents"],
  5797. referencedClasses: []
  5798. }),
  5799. smalltalk.Array);
  5800. smalltalk.addMethod(
  5801. unescape('_reversed'),
  5802. smalltalk.method({
  5803. selector: unescape('reversed'),
  5804. category: 'converting',
  5805. fn: function (){
  5806. var self=this;
  5807. return self._copy().reverse();
  5808. return self;},
  5809. args: [],
  5810. source: unescape('reversed%0A%09%3Creturn%20self._copy%28%29.reverse%28%29%3E'),
  5811. messageSends: [],
  5812. referencedClasses: []
  5813. }),
  5814. smalltalk.Array);
  5815. smalltalk.addMethod(
  5816. unescape('__eq'),
  5817. smalltalk.method({
  5818. selector: unescape('%3D'),
  5819. category: 'comparing',
  5820. fn: function (aCollection){
  5821. var self=this;
  5822. 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}})})();})]));
  5823. 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}})})();})]));})]);
  5824. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return true}})})();
  5825. return self;
  5826. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  5827. args: ["aCollection"],
  5828. 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'),
  5829. messageSends: ["ifFalse:", "and:", unescape("%3D"), "class", "size", "withIndexDo:", "at:"],
  5830. referencedClasses: []
  5831. }),
  5832. smalltalk.Array);
  5833. smalltalk.addClass('RegularExpression', smalltalk.Object, [], 'Kernel');
  5834. smalltalk.addMethod(
  5835. unescape('_compile_'),
  5836. smalltalk.method({
  5837. selector: unescape('compile%3A'),
  5838. category: 'evaluating',
  5839. fn: function (aString){
  5840. var self=this;
  5841. return self.compile(aString);
  5842. return self;},
  5843. args: ["aString"],
  5844. source: unescape('compile%3A%20aString%0A%09%3Creturn%20self.compile%28aString%29%3E'),
  5845. messageSends: [],
  5846. referencedClasses: []
  5847. }),
  5848. smalltalk.RegularExpression);
  5849. smalltalk.addMethod(
  5850. unescape('_exec_'),
  5851. smalltalk.method({
  5852. selector: unescape('exec%3A'),
  5853. category: 'evaluating',
  5854. fn: function (aString){
  5855. var self=this;
  5856. return self.exec(aString) || nil;
  5857. return self;},
  5858. args: ["aString"],
  5859. source: unescape('exec%3A%20aString%0A%09%3Creturn%20self.exec%28aString%29%20%7C%7C%20nil%3E'),
  5860. messageSends: [],
  5861. referencedClasses: []
  5862. }),
  5863. smalltalk.RegularExpression);
  5864. smalltalk.addMethod(
  5865. unescape('_test_'),
  5866. smalltalk.method({
  5867. selector: unescape('test%3A'),
  5868. category: 'evaluating',
  5869. fn: function (aString){
  5870. var self=this;
  5871. return self.test(aString);
  5872. return self;},
  5873. args: ["aString"],
  5874. source: unescape('test%3A%20aString%0A%09%3Creturn%20self.test%28aString%29%3E'),
  5875. messageSends: [],
  5876. referencedClasses: []
  5877. }),
  5878. smalltalk.RegularExpression);
  5879. smalltalk.addMethod(
  5880. unescape('_fromString_flag_'),
  5881. smalltalk.method({
  5882. selector: unescape('fromString%3Aflag%3A'),
  5883. category: 'instance creation',
  5884. fn: function (aString, anotherString){
  5885. var self=this;
  5886. return new RegExp(aString, anotherString);
  5887. return self;},
  5888. args: ["aString", "anotherString"],
  5889. source: unescape('fromString%3A%20aString%20flag%3A%20anotherString%0A%09%3Creturn%20new%20RegExp%28aString%2C%20anotherString%29%3E'),
  5890. messageSends: [],
  5891. referencedClasses: []
  5892. }),
  5893. smalltalk.RegularExpression.klass);
  5894. smalltalk.addMethod(
  5895. unescape('_fromString_'),
  5896. smalltalk.method({
  5897. selector: unescape('fromString%3A'),
  5898. category: 'instance creation',
  5899. fn: function (aString){
  5900. var self=this;
  5901. return smalltalk.send(self, "_fromString_flag_", [aString, ""]);
  5902. return self;},
  5903. args: ["aString"],
  5904. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%5Eself%20fromString%3A%20aString%20flag%3A%20%27%27'),
  5905. messageSends: ["fromString:flag:"],
  5906. referencedClasses: []
  5907. }),
  5908. smalltalk.RegularExpression.klass);
  5909. smalltalk.addClass('Error', smalltalk.Object, ['messageText'], 'Kernel');
  5910. smalltalk.addMethod(
  5911. unescape('_messageText'),
  5912. smalltalk.method({
  5913. selector: unescape('messageText'),
  5914. category: 'accessing',
  5915. fn: function (){
  5916. var self=this;
  5917. return self['@messageText'];
  5918. return self;},
  5919. args: [],
  5920. source: unescape('messageText%0A%09%5EmessageText'),
  5921. messageSends: [],
  5922. referencedClasses: []
  5923. }),
  5924. smalltalk.Error);
  5925. smalltalk.addMethod(
  5926. unescape('_messageText_'),
  5927. smalltalk.method({
  5928. selector: unescape('messageText%3A'),
  5929. category: 'accessing',
  5930. fn: function (aString){
  5931. var self=this;
  5932. self['@messageText']=aString;
  5933. return self;},
  5934. args: ["aString"],
  5935. source: unescape('messageText%3A%20aString%0A%09messageText%20%3A%3D%20aString'),
  5936. messageSends: [],
  5937. referencedClasses: []
  5938. }),
  5939. smalltalk.Error);
  5940. smalltalk.addMethod(
  5941. unescape('_signal'),
  5942. smalltalk.method({
  5943. selector: unescape('signal'),
  5944. category: 'signaling',
  5945. fn: function (){
  5946. var self=this;
  5947. self.context = smalltalk.getThisContext(); self.smalltalkError = true; throw(self);
  5948. return self;},
  5949. args: [],
  5950. source: unescape('signal%0A%09%3Cself.context%20%3D%20smalltalk.getThisContext%28%29%3B%20self.smalltalkError%20%3D%20true%3B%20throw%28self%29%3E'),
  5951. messageSends: [],
  5952. referencedClasses: []
  5953. }),
  5954. smalltalk.Error);
  5955. smalltalk.addMethod(
  5956. unescape('_context'),
  5957. smalltalk.method({
  5958. selector: unescape('context'),
  5959. category: 'accessing',
  5960. fn: function (){
  5961. var self=this;
  5962. return self.context;
  5963. return self;},
  5964. args: [],
  5965. source: unescape('context%0A%09%3Creturn%20self.context%3E'),
  5966. messageSends: [],
  5967. referencedClasses: []
  5968. }),
  5969. smalltalk.Error);
  5970. smalltalk.addMethod(
  5971. unescape('_signal_'),
  5972. smalltalk.method({
  5973. selector: unescape('signal%3A'),
  5974. category: 'instance creation',
  5975. fn: function (aString){
  5976. var self=this;
  5977. return (function($rec){smalltalk.send($rec, "_messageText_", [aString]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send(self, "_new", []));
  5978. return self;},
  5979. args: ["aString"],
  5980. source: unescape('signal%3A%20aString%0A%09%20%20%20%20%5Eself%20new%0A%09%09messageText%3A%20aString%3B%0A%09%09signal'),
  5981. messageSends: ["messageText:", "signal", "new"],
  5982. referencedClasses: []
  5983. }),
  5984. smalltalk.Error.klass);
  5985. smalltalk.addClass('MethodContext', smalltalk.Object, [], 'Kernel');
  5986. smalltalk.addMethod(
  5987. unescape('_receiver'),
  5988. smalltalk.method({
  5989. selector: unescape('receiver'),
  5990. category: 'accessing',
  5991. fn: function (){
  5992. var self=this;
  5993. return self.receiver;
  5994. return self;},
  5995. args: [],
  5996. source: unescape('receiver%0A%09%3Creturn%20self.receiver%3E'),
  5997. messageSends: [],
  5998. referencedClasses: []
  5999. }),
  6000. smalltalk.MethodContext);
  6001. smalltalk.addMethod(
  6002. unescape('_selector'),
  6003. smalltalk.method({
  6004. selector: unescape('selector'),
  6005. category: 'accessing',
  6006. fn: function (){
  6007. var self=this;
  6008. return smalltalk.convertSelector(self.selector);
  6009. return self;},
  6010. args: [],
  6011. source: unescape('selector%0A%09%3Creturn%20smalltalk.convertSelector%28self.selector%29%3E'),
  6012. messageSends: [],
  6013. referencedClasses: []
  6014. }),
  6015. smalltalk.MethodContext);
  6016. smalltalk.addMethod(
  6017. unescape('_home'),
  6018. smalltalk.method({
  6019. selector: unescape('home'),
  6020. category: 'accessing',
  6021. fn: function (){
  6022. var self=this;
  6023. return self.homeContext;
  6024. return self;},
  6025. args: [],
  6026. source: unescape('home%0A%09%3Creturn%20self.homeContext%3E'),
  6027. messageSends: [],
  6028. referencedClasses: []
  6029. }),
  6030. smalltalk.MethodContext);
  6031. smalltalk.addMethod(
  6032. unescape('_temps'),
  6033. smalltalk.method({
  6034. selector: unescape('temps'),
  6035. category: 'accessing',
  6036. fn: function (){
  6037. var self=this;
  6038. return self.temps;
  6039. return self;},
  6040. args: [],
  6041. source: unescape('temps%0A%09%3Creturn%20self.temps%3E'),
  6042. messageSends: [],
  6043. referencedClasses: []
  6044. }),
  6045. smalltalk.MethodContext);
  6046. smalltalk.addMethod(
  6047. unescape('_printString'),
  6048. smalltalk.method({
  6049. selector: unescape('printString'),
  6050. category: 'accessing',
  6051. fn: function (){
  6052. var self=this;
  6053. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.Object), "__comma", [unescape("%28")]), "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", [unescape("%29")]);
  6054. return self;},
  6055. args: [],
  6056. source: unescape('printString%0A%09%5Esuper%20printString%2C%20%27%28%27%2C%20self%20asString%2C%20%27%29%27'),
  6057. messageSends: [unescape("%2C"), "printString", "asString"],
  6058. referencedClasses: []
  6059. }),
  6060. smalltalk.MethodContext);
  6061. smalltalk.addMethod(
  6062. unescape('_asString'),
  6063. smalltalk.method({
  6064. selector: unescape('asString'),
  6065. category: 'accessing',
  6066. fn: function (){
  6067. var self=this;
  6068. 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", [])]);
  6069. return self;},
  6070. args: [],
  6071. source: unescape('asString%0A%09%5Eself%20receiver%20class%20printString%2C%20%27%20%3E%3E%20%27%2C%20self%20selector'),
  6072. messageSends: [unescape("%2C"), "printString", "class", "receiver", "selector"],
  6073. referencedClasses: []
  6074. }),
  6075. smalltalk.MethodContext);
  6076. smalltalk.addClass('Association', smalltalk.Object, ['key', 'value'], 'Kernel');
  6077. smalltalk.addMethod(
  6078. unescape('__eq'),
  6079. smalltalk.method({
  6080. selector: unescape('%3D'),
  6081. category: 'comparing',
  6082. fn: function (anAssociation){
  6083. var self=this;
  6084. 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", [])]);})]);})]);
  6085. return self;},
  6086. args: ["anAssociation"],
  6087. 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'),
  6088. messageSends: ["and:", unescape("%3D"), "class", "key", "value"],
  6089. referencedClasses: []
  6090. }),
  6091. smalltalk.Association);
  6092. smalltalk.addMethod(
  6093. unescape('_key_'),
  6094. smalltalk.method({
  6095. selector: unescape('key%3A'),
  6096. category: 'accessing',
  6097. fn: function (aKey){
  6098. var self=this;
  6099. self['@key']=aKey;
  6100. return self;},
  6101. args: ["aKey"],
  6102. source: unescape('key%3A%20aKey%0A%09key%20%3A%3D%20aKey'),
  6103. messageSends: [],
  6104. referencedClasses: []
  6105. }),
  6106. smalltalk.Association);
  6107. smalltalk.addMethod(
  6108. unescape('_key'),
  6109. smalltalk.method({
  6110. selector: unescape('key'),
  6111. category: 'accessing',
  6112. fn: function (){
  6113. var self=this;
  6114. return self['@key'];
  6115. return self;},
  6116. args: [],
  6117. source: unescape('key%0A%09%5Ekey'),
  6118. messageSends: [],
  6119. referencedClasses: []
  6120. }),
  6121. smalltalk.Association);
  6122. smalltalk.addMethod(
  6123. unescape('_value_'),
  6124. smalltalk.method({
  6125. selector: unescape('value%3A'),
  6126. category: 'accessing',
  6127. fn: function (aValue){
  6128. var self=this;
  6129. self['@value']=aValue;
  6130. return self;},
  6131. args: ["aValue"],
  6132. source: unescape('value%3A%20aValue%0A%09value%20%3A%3D%20aValue'),
  6133. messageSends: [],
  6134. referencedClasses: []
  6135. }),
  6136. smalltalk.Association);
  6137. smalltalk.addMethod(
  6138. unescape('_value'),
  6139. smalltalk.method({
  6140. selector: unescape('value'),
  6141. category: 'accessing',
  6142. fn: function (){
  6143. var self=this;
  6144. return self['@value'];
  6145. return self;},
  6146. args: [],
  6147. source: unescape('value%0A%09%5Evalue'),
  6148. messageSends: [],
  6149. referencedClasses: []
  6150. }),
  6151. smalltalk.Association);
  6152. smalltalk.addMethod(
  6153. unescape('_key_value_'),
  6154. smalltalk.method({
  6155. selector: unescape('key%3Avalue%3A'),
  6156. category: 'instance creation',
  6157. fn: function (aKey, aValue){
  6158. var self=this;
  6159. return (function($rec){smalltalk.send($rec, "_key_", [aKey]);smalltalk.send($rec, "_value_", [aValue]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  6160. return self;},
  6161. args: ["aKey", "aValue"],
  6162. 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'),
  6163. messageSends: ["key:", "value:", "yourself", "new"],
  6164. referencedClasses: []
  6165. }),
  6166. smalltalk.Association.klass);
  6167. smalltalk.addClass('Dictionary', smalltalk.Collection, ['keys'], 'Kernel');
  6168. smalltalk.addMethod(
  6169. unescape('__eq'),
  6170. smalltalk.method({
  6171. selector: unescape('%3D'),
  6172. category: 'comparing',
  6173. fn: function (aDictionary){
  6174. var self=this;
  6175. 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}})})();})]));
  6176. ((($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}})})();})]));
  6177. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return smalltalk.send(smalltalk.send(self, "_associations", []), "__eq", [smalltalk.send(aDictionary, "_associations", [])])}})})();
  6178. return self;
  6179. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  6180. args: ["aDictionary"],
  6181. 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'),
  6182. messageSends: ["ifFalse:", unescape("%3D"), "class", "size", "associations"],
  6183. referencedClasses: []
  6184. }),
  6185. smalltalk.Dictionary);
  6186. smalltalk.addMethod(
  6187. unescape('_shallowCopy'),
  6188. smalltalk.method({
  6189. selector: unescape('shallowCopy'),
  6190. category: 'copying',
  6191. fn: function (){
  6192. var self=this;
  6193. var copy=nil;
  6194. copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6195. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(copy, "_at_put_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  6196. return copy;
  6197. return self;},
  6198. args: [],
  6199. 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'),
  6200. messageSends: ["new", "class", "associationsDo:", "at:put:", "key", "value"],
  6201. referencedClasses: []
  6202. }),
  6203. smalltalk.Dictionary);
  6204. smalltalk.addMethod(
  6205. unescape('_initialize'),
  6206. smalltalk.method({
  6207. selector: unescape('initialize'),
  6208. category: 'initialization',
  6209. fn: function (){
  6210. var self=this;
  6211. smalltalk.send(self, "_initialize", [], smalltalk.Collection);
  6212. self['@keys']=[];
  6213. return self;},
  6214. args: [],
  6215. source: unescape('initialize%0A%20%20%20%20%09super%20initialize.%0A%20%20%20%20%09keys%20%3A%3D%20%23%28%29'),
  6216. messageSends: ["initialize"],
  6217. referencedClasses: []
  6218. }),
  6219. smalltalk.Dictionary);
  6220. smalltalk.addMethod(
  6221. unescape('_size'),
  6222. smalltalk.method({
  6223. selector: unescape('size'),
  6224. category: 'accessing',
  6225. fn: function (){
  6226. var self=this;
  6227. return smalltalk.send(self['@keys'], "_size", []);
  6228. return self;},
  6229. args: [],
  6230. source: unescape('size%0A%09%5Ekeys%20size'),
  6231. messageSends: ["size"],
  6232. referencedClasses: []
  6233. }),
  6234. smalltalk.Dictionary);
  6235. smalltalk.addMethod(
  6236. unescape('_associations'),
  6237. smalltalk.method({
  6238. selector: unescape('associations'),
  6239. category: 'accessing',
  6240. fn: function (){
  6241. var self=this;
  6242. var associations=nil;
  6243. associations=[];
  6244. 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])])]);})]);
  6245. return associations;
  6246. return self;},
  6247. args: [],
  6248. 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'),
  6249. messageSends: ["do:", "add:", "key:value:", "at:"],
  6250. referencedClasses: [smalltalk.Association]
  6251. }),
  6252. smalltalk.Dictionary);
  6253. smalltalk.addMethod(
  6254. unescape('_keys'),
  6255. smalltalk.method({
  6256. selector: unescape('keys'),
  6257. category: 'accessing',
  6258. fn: function (){
  6259. var self=this;
  6260. return smalltalk.send(self['@keys'], "_copy", []);
  6261. return self;},
  6262. args: [],
  6263. source: unescape('keys%0A%09%5Ekeys%20copy'),
  6264. messageSends: ["copy"],
  6265. referencedClasses: []
  6266. }),
  6267. smalltalk.Dictionary);
  6268. smalltalk.addMethod(
  6269. unescape('_values'),
  6270. smalltalk.method({
  6271. selector: unescape('values'),
  6272. category: 'accessing',
  6273. fn: function (){
  6274. var self=this;
  6275. return smalltalk.send(self['@keys'], "_collect_", [(function(each){return smalltalk.send(self, "_at_", [each]);})]);
  6276. return self;},
  6277. args: [],
  6278. source: unescape('values%0A%20%20%20%20%09%5Ekeys%20collect%3A%20%5B%3Aeach%20%7C%20self%20at%3A%20each%5D'),
  6279. messageSends: ["collect:", "at:"],
  6280. referencedClasses: []
  6281. }),
  6282. smalltalk.Dictionary);
  6283. smalltalk.addMethod(
  6284. unescape('_at_put_'),
  6285. smalltalk.method({
  6286. selector: unescape('at%3Aput%3A'),
  6287. category: 'accessing',
  6288. fn: function (aKey, aValue){
  6289. var self=this;
  6290. ((($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]);})]));
  6291. return smalltalk.send(self, "_basicAt_put_", [aKey, aValue]);
  6292. return self;},
  6293. args: ["aKey", "aValue"],
  6294. 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'),
  6295. messageSends: ["ifFalse:", "includes:", "add:", "basicAt:put:"],
  6296. referencedClasses: []
  6297. }),
  6298. smalltalk.Dictionary);
  6299. smalltalk.addMethod(
  6300. unescape('_at_ifAbsent_'),
  6301. smalltalk.method({
  6302. selector: unescape('at%3AifAbsent%3A'),
  6303. category: 'accessing',
  6304. fn: function (aKey, aBlock){
  6305. var self=this;
  6306. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_keys", []), "_includes_", [aKey]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_basicAt_", [aKey]);}), aBlock]);
  6307. return self;},
  6308. args: ["aKey", "aBlock"],
  6309. 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'),
  6310. messageSends: ["ifTrue:ifFalse:", "includes:", "keys", "basicAt:"],
  6311. referencedClasses: []
  6312. }),
  6313. smalltalk.Dictionary);
  6314. smalltalk.addMethod(
  6315. unescape('_at_ifAbsentPut_'),
  6316. smalltalk.method({
  6317. selector: unescape('at%3AifAbsentPut%3A'),
  6318. category: 'accessing',
  6319. fn: function (aKey, aBlock){
  6320. var self=this;
  6321. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_at_put_", [aKey, smalltalk.send(aBlock, "_value", [])]);})]);
  6322. return self;},
  6323. args: ["aKey", "aBlock"],
  6324. 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'),
  6325. messageSends: ["at:ifAbsent:", "at:put:", "value"],
  6326. referencedClasses: []
  6327. }),
  6328. smalltalk.Dictionary);
  6329. smalltalk.addMethod(
  6330. unescape('_at_ifPresent_'),
  6331. smalltalk.method({
  6332. selector: unescape('at%3AifPresent%3A'),
  6333. category: 'accessing',
  6334. fn: function (aKey, aBlock){
  6335. var self=this;
  6336. return (($receiver = smalltalk.send(self, "_basicAt_", [aKey])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})() : nil;
  6337. return self;},
  6338. args: ["aKey", "aBlock"],
  6339. 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'),
  6340. messageSends: ["ifNotNil:", "basicAt:", "value:", "at:"],
  6341. referencedClasses: []
  6342. }),
  6343. smalltalk.Dictionary);
  6344. smalltalk.addMethod(
  6345. unescape('_at_ifPresent_ifAbsent_'),
  6346. smalltalk.method({
  6347. selector: unescape('at%3AifPresent%3AifAbsent%3A'),
  6348. category: 'accessing',
  6349. fn: function (aKey, aBlock, anotherBlock){
  6350. var self=this;
  6351. return smalltalk.send(smalltalk.send(self, "_basicAt_", [aKey]), "_ifNil_ifNotNil_", [anotherBlock, (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})]);
  6352. return self;},
  6353. args: ["aKey", "aBlock", "anotherBlock"],
  6354. 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'),
  6355. messageSends: ["ifNil:ifNotNil:", "basicAt:", "value:", "at:"],
  6356. referencedClasses: []
  6357. }),
  6358. smalltalk.Dictionary);
  6359. smalltalk.addMethod(
  6360. unescape('_add_'),
  6361. smalltalk.method({
  6362. selector: unescape('add%3A'),
  6363. category: 'adding/removing',
  6364. fn: function (anAssociation){
  6365. var self=this;
  6366. smalltalk.send(self, "_at_put_", [smalltalk.send(anAssociation, "_key", []), smalltalk.send(anAssociation, "_value", [])]);
  6367. return self;},
  6368. args: ["anAssociation"],
  6369. source: unescape('add%3A%20anAssociation%0A%20%20%20%20%09self%20at%3A%20anAssociation%20key%20put%3A%20anAssociation%20value'),
  6370. messageSends: ["at:put:", "key", "value"],
  6371. referencedClasses: []
  6372. }),
  6373. smalltalk.Dictionary);
  6374. smalltalk.addMethod(
  6375. unescape('_addAll_'),
  6376. smalltalk.method({
  6377. selector: unescape('addAll%3A'),
  6378. category: 'adding/removing',
  6379. fn: function (aDictionary){
  6380. var self=this;
  6381. smalltalk.send(self, "_addAll_", [smalltalk.send(aDictionary, "_associations", [])], smalltalk.Collection);
  6382. return aDictionary;
  6383. return self;},
  6384. args: ["aDictionary"],
  6385. source: unescape('addAll%3A%20aDictionary%0A%20%20%20%20%09super%20addAll%3A%20aDictionary%20associations.%0A%20%20%20%20%09%5EaDictionary'),
  6386. messageSends: ["addAll:", "associations"],
  6387. referencedClasses: []
  6388. }),
  6389. smalltalk.Dictionary);
  6390. smalltalk.addMethod(
  6391. unescape('__comma'),
  6392. smalltalk.method({
  6393. selector: unescape('%2C'),
  6394. category: 'copying',
  6395. fn: function (aCollection){
  6396. var self=this;
  6397. smalltalk.send(self, "_shouldNotImplement", []);
  6398. return self;},
  6399. args: ["aCollection"],
  6400. source: unescape('%2C%20aCollection%0A%09self%20shouldNotImplement'),
  6401. messageSends: ["shouldNotImplement"],
  6402. referencedClasses: []
  6403. }),
  6404. smalltalk.Dictionary);
  6405. smalltalk.addMethod(
  6406. unescape('_copyFrom_to_'),
  6407. smalltalk.method({
  6408. selector: unescape('copyFrom%3Ato%3A'),
  6409. category: 'copying',
  6410. fn: function (anIndex, anotherIndex){
  6411. var self=this;
  6412. smalltalk.send(self, "_shouldNotImplement", []);
  6413. return self;},
  6414. args: ["anIndex", "anotherIndex"],
  6415. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20shouldNotImplement'),
  6416. messageSends: ["shouldNotImplement"],
  6417. referencedClasses: []
  6418. }),
  6419. smalltalk.Dictionary);
  6420. smalltalk.addMethod(
  6421. unescape('_associationsDo_'),
  6422. smalltalk.method({
  6423. selector: unescape('associationsDo%3A'),
  6424. category: 'enumerating',
  6425. fn: function (aBlock){
  6426. var self=this;
  6427. smalltalk.send(smalltalk.send(self, "_associations", []), "_do_", [aBlock]);
  6428. return self;},
  6429. args: ["aBlock"],
  6430. source: unescape('associationsDo%3A%20aBlock%0A%20%20%20%20%09self%20associations%20do%3A%20aBlock'),
  6431. messageSends: ["do:", "associations"],
  6432. referencedClasses: []
  6433. }),
  6434. smalltalk.Dictionary);
  6435. smalltalk.addMethod(
  6436. unescape('_keysAndValuesDo_'),
  6437. smalltalk.method({
  6438. selector: unescape('keysAndValuesDo%3A'),
  6439. category: 'enumerating',
  6440. fn: function (aBlock){
  6441. var self=this;
  6442. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(aBlock, "_value_value_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  6443. return self;},
  6444. args: ["aBlock"],
  6445. 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'),
  6446. messageSends: ["associationsDo:", "value:value:", "key", "value"],
  6447. referencedClasses: []
  6448. }),
  6449. smalltalk.Dictionary);
  6450. smalltalk.addMethod(
  6451. unescape('_do_'),
  6452. smalltalk.method({
  6453. selector: unescape('do%3A'),
  6454. category: 'enumerating',
  6455. fn: function (aBlock){
  6456. var self=this;
  6457. smalltalk.send(smalltalk.send(self, "_values", []), "_do_", [aBlock]);
  6458. return self;},
  6459. args: ["aBlock"],
  6460. source: unescape('do%3A%20aBlock%0A%20%20%20%20%09self%20values%20do%3A%20aBlock'),
  6461. messageSends: ["do:", "values"],
  6462. referencedClasses: []
  6463. }),
  6464. smalltalk.Dictionary);
  6465. smalltalk.addMethod(
  6466. unescape('_select_'),
  6467. smalltalk.method({
  6468. selector: unescape('select%3A'),
  6469. category: 'enumerating',
  6470. fn: function (aBlock){
  6471. var self=this;
  6472. var newDict=nil;
  6473. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6474. 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]);})]));})]);
  6475. return newDict;
  6476. return self;},
  6477. args: ["aBlock"],
  6478. 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'),
  6479. messageSends: ["new", "class", "keysAndValuesDo:", "ifTrue:", "value:", "at:put:"],
  6480. referencedClasses: []
  6481. }),
  6482. smalltalk.Dictionary);
  6483. smalltalk.addMethod(
  6484. unescape('_collect_'),
  6485. smalltalk.method({
  6486. selector: unescape('collect%3A'),
  6487. category: 'enumerating',
  6488. fn: function (aBlock){
  6489. var self=this;
  6490. var newDict=nil;
  6491. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6492. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(newDict, "_at_put_", [key, smalltalk.send(aBlock, "_value_", [value])]);})]);
  6493. return newDict;
  6494. return self;},
  6495. args: ["aBlock"],
  6496. 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'),
  6497. messageSends: ["new", "class", "keysAndValuesDo:", "at:put:", "value:"],
  6498. referencedClasses: []
  6499. }),
  6500. smalltalk.Dictionary);
  6501. smalltalk.addMethod(
  6502. unescape('_detect_ifNone_'),
  6503. smalltalk.method({
  6504. selector: unescape('detect%3AifNone%3A'),
  6505. category: 'enumerating',
  6506. fn: function (aBlock, anotherBlock){
  6507. var self=this;
  6508. return smalltalk.send(smalltalk.send(self, "_values", []), "_detect_ifNone_", [aBlock, anotherBlock]);
  6509. return self;},
  6510. args: ["aBlock", "anotherBlock"],
  6511. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eself%20values%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  6512. messageSends: ["detect:ifNone:", "values"],
  6513. referencedClasses: []
  6514. }),
  6515. smalltalk.Dictionary);
  6516. smalltalk.addMethod(
  6517. unescape('_includes_'),
  6518. smalltalk.method({
  6519. selector: unescape('includes%3A'),
  6520. category: 'enumerating',
  6521. fn: function (anObject){
  6522. var self=this;
  6523. return smalltalk.send(smalltalk.send(self, "_values", []), "_includes_", [anObject]);
  6524. return self;},
  6525. args: ["anObject"],
  6526. source: unescape('includes%3A%20anObject%0A%09%5Eself%20values%20includes%3A%20anObject'),
  6527. messageSends: ["includes:", "values"],
  6528. referencedClasses: []
  6529. }),
  6530. smalltalk.Dictionary);
  6531. smalltalk.addMethod(
  6532. unescape('_remove_'),
  6533. smalltalk.method({
  6534. selector: unescape('remove%3A'),
  6535. category: 'adding/removing',
  6536. fn: function (aKey){
  6537. var self=this;
  6538. smalltalk.send(self, "_removeKey_", [aKey]);
  6539. return self;},
  6540. args: ["aKey"],
  6541. source: unescape('remove%3A%20aKey%0A%20%20%20%20self%20removeKey%3A%20aKey'),
  6542. messageSends: ["removeKey:"],
  6543. referencedClasses: []
  6544. }),
  6545. smalltalk.Dictionary);
  6546. smalltalk.addMethod(
  6547. unescape('_removeKey_'),
  6548. smalltalk.method({
  6549. selector: unescape('removeKey%3A'),
  6550. category: 'adding/removing',
  6551. fn: function (aKey){
  6552. var self=this;
  6553. smalltalk.send(self['@keys'], "_remove_", [aKey]);
  6554. return self;},
  6555. args: ["aKey"],
  6556. source: unescape('removeKey%3A%20aKey%0A%20%20%20%20keys%20remove%3A%20aKey'),
  6557. messageSends: ["remove:"],
  6558. referencedClasses: []
  6559. }),
  6560. smalltalk.Dictionary);
  6561. smalltalk.addMethod(
  6562. unescape('_at_'),
  6563. smalltalk.method({
  6564. selector: unescape('at%3A'),
  6565. category: 'accessing',
  6566. fn: function (aKey){
  6567. var self=this;
  6568. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  6569. return self;},
  6570. args: ["aKey"],
  6571. source: unescape('at%3A%20aKey%0A%09%5Eself%20at%3A%20aKey%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  6572. messageSends: ["at:ifAbsent:", "errorNotFound"],
  6573. referencedClasses: []
  6574. }),
  6575. smalltalk.Dictionary);
  6576. smalltalk.addMethod(
  6577. unescape('_asJSONObject'),
  6578. smalltalk.method({
  6579. selector: unescape('asJSONObject'),
  6580. category: 'converting',
  6581. fn: function (){
  6582. var self=this;
  6583. var object=nil;
  6584. object=smalltalk.send((smalltalk.Object || Object), "_new", []);
  6585. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(object, "_basicAt_put_", [key, smalltalk.send(value, "_asJSONObject", [])]);})]);
  6586. return object;
  6587. return self;},
  6588. args: [],
  6589. 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'),
  6590. messageSends: ["new", "keysAndValuesDo:", "basicAt:put:", "asJSONObject"],
  6591. referencedClasses: [smalltalk.Object]
  6592. }),
  6593. smalltalk.Dictionary);
  6594. smalltalk.addMethod(
  6595. unescape('_printString'),
  6596. smalltalk.method({
  6597. selector: unescape('printString'),
  6598. category: 'printing',
  6599. fn: function (){
  6600. var self=this;
  6601. 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")]);})]);
  6602. return self;},
  6603. args: [],
  6604. 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'),
  6605. messageSends: ["streamContents:", "nextPutAll:", "printString", "do:separatedBy:", "associations", "key", "value"],
  6606. referencedClasses: [smalltalk.String]
  6607. }),
  6608. smalltalk.Dictionary);
  6609. smalltalk.addMethod(
  6610. unescape('_fromPairs_'),
  6611. smalltalk.method({
  6612. selector: unescape('fromPairs%3A'),
  6613. category: 'instance creation',
  6614. fn: function (aCollection){
  6615. var self=this;
  6616. var dict=nil;
  6617. dict=smalltalk.send(self, "_new", []);
  6618. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(dict, "_add_", [each]);})]);
  6619. return dict;
  6620. return self;},
  6621. args: ["aCollection"],
  6622. 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'),
  6623. messageSends: ["new", "do:", "add:"],
  6624. referencedClasses: []
  6625. }),
  6626. smalltalk.Dictionary.klass);
  6627. smalltalk.addClass('ClassBuilder', smalltalk.Object, [], 'Kernel');
  6628. smalltalk.addMethod(
  6629. unescape('_superclass_subclass_'),
  6630. smalltalk.method({
  6631. selector: unescape('superclass%3Asubclass%3A'),
  6632. category: 'class creation',
  6633. fn: function (aClass, aString){
  6634. var self=this;
  6635. return smalltalk.send(self, "_superclass_subclass_instanceVariableNames_package_", [aClass, aString, "", nil]);
  6636. return self;},
  6637. args: ["aClass", "aString"],
  6638. 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'),
  6639. messageSends: ["superclass:subclass:instanceVariableNames:package:"],
  6640. referencedClasses: []
  6641. }),
  6642. smalltalk.ClassBuilder);
  6643. smalltalk.addMethod(
  6644. unescape('_class_instanceVariableNames_'),
  6645. smalltalk.method({
  6646. selector: unescape('class%3AinstanceVariableNames%3A'),
  6647. category: 'class creation',
  6648. fn: function (aClass, aString){
  6649. var self=this;
  6650. ((($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"])]);})]));
  6651. smalltalk.send(aClass, "_basicAt_put_", ["iVarNames", smalltalk.send(self, "_instanceVariableNamesFor_", [aString])]);
  6652. smalltalk.send(self, "_setupClass_", [aClass]);
  6653. return self;},
  6654. args: ["aClass", "aString"],
  6655. 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'),
  6656. messageSends: ["ifFalse:", "isMetaclass", "error:", unescape("%2C"), "name", "basicAt:put:", "instanceVariableNamesFor:", "setupClass:"],
  6657. referencedClasses: []
  6658. }),
  6659. smalltalk.ClassBuilder);
  6660. smalltalk.addMethod(
  6661. unescape('_instanceVariableNamesFor_'),
  6662. smalltalk.method({
  6663. selector: unescape('instanceVariableNamesFor%3A'),
  6664. category: 'private',
  6665. fn: function (aString){
  6666. var self=this;
  6667. return smalltalk.send(smalltalk.send(aString, "_tokenize_", [" "]), "_reject_", [(function(each){return smalltalk.send(each, "_isEmpty", []);})]);
  6668. return self;},
  6669. args: ["aString"],
  6670. 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'),
  6671. messageSends: ["reject:", "tokenize:", "isEmpty"],
  6672. referencedClasses: []
  6673. }),
  6674. smalltalk.ClassBuilder);
  6675. smalltalk.addMethod(
  6676. unescape('_addSubclassOf_named_instanceVariableNames_'),
  6677. smalltalk.method({
  6678. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3A'),
  6679. category: 'private',
  6680. fn: function (aClass, aString, aCollection){
  6681. var self=this;
  6682. smalltalk.addClass(aString, aClass, aCollection);
  6683. return smalltalk[aString];
  6684. return self;},
  6685. args: ["aClass", "aString", "aCollection"],
  6686. 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'),
  6687. messageSends: [],
  6688. referencedClasses: []
  6689. }),
  6690. smalltalk.ClassBuilder);
  6691. smalltalk.addMethod(
  6692. unescape('_setupClass_'),
  6693. smalltalk.method({
  6694. selector: unescape('setupClass%3A'),
  6695. category: 'private',
  6696. fn: function (aClass){
  6697. var self=this;
  6698. smalltalk.init(aClass);;
  6699. return self;},
  6700. args: ["aClass"],
  6701. source: unescape('setupClass%3A%20aClass%0A%09%3Csmalltalk.init%28aClass%29%3B%3E'),
  6702. messageSends: [],
  6703. referencedClasses: []
  6704. }),
  6705. smalltalk.ClassBuilder);
  6706. smalltalk.addMethod(
  6707. unescape('_superclass_subclass_instanceVariableNames_package_'),
  6708. smalltalk.method({
  6709. selector: unescape('superclass%3Asubclass%3AinstanceVariableNames%3Apackage%3A'),
  6710. category: 'class creation',
  6711. fn: function (aClass, aString, aString2, aString3){
  6712. var self=this;
  6713. var newClass=nil;
  6714. newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [aClass, aString, smalltalk.send(self, "_instanceVariableNamesFor_", [aString2]), (($receiver = aString3) == nil || $receiver == undefined) ? (function(){return "unclassified";})() : $receiver]);
  6715. smalltalk.send(self, "_setupClass_", [newClass]);
  6716. return newClass;
  6717. return self;},
  6718. args: ["aClass", "aString", "aString2", "aString3"],
  6719. 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'),
  6720. messageSends: ["addSubclassOf:named:instanceVariableNames:package:", "instanceVariableNamesFor:", "ifNil:", "setupClass:"],
  6721. referencedClasses: []
  6722. }),
  6723. smalltalk.ClassBuilder);
  6724. smalltalk.addMethod(
  6725. unescape('_addSubclassOf_named_instanceVariableNames_package_'),
  6726. smalltalk.method({
  6727. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3Apackage%3A'),
  6728. category: 'private',
  6729. fn: function (aClass, aString, aCollection, packageName){
  6730. var self=this;
  6731. smalltalk.addClass(aString, aClass, aCollection, packageName);
  6732. return smalltalk[aString];
  6733. return self;},
  6734. args: ["aClass", "aString", "aCollection", "packageName"],
  6735. 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'),
  6736. messageSends: [],
  6737. referencedClasses: []
  6738. }),
  6739. smalltalk.ClassBuilder);
  6740. smalltalk.addClass('ClassCategoryReader', smalltalk.Object, ['class', 'category', 'chunkParser'], 'Kernel');
  6741. smalltalk.addMethod(
  6742. unescape('_initialize'),
  6743. smalltalk.method({
  6744. selector: unescape('initialize'),
  6745. category: 'initialization',
  6746. fn: function (){
  6747. var self=this;
  6748. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  6749. self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []);
  6750. return self;},
  6751. args: [],
  6752. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  6753. messageSends: ["initialize", "new"],
  6754. referencedClasses: [smalltalk.nil]
  6755. }),
  6756. smalltalk.ClassCategoryReader);
  6757. smalltalk.addMethod(
  6758. unescape('_class_category_'),
  6759. smalltalk.method({
  6760. selector: unescape('class%3Acategory%3A'),
  6761. category: 'accessing',
  6762. fn: function (aClass, aString){
  6763. var self=this;
  6764. self['@class']=aClass;
  6765. self['@category']=aString;
  6766. return self;},
  6767. args: ["aClass", "aString"],
  6768. source: unescape('class%3A%20aClass%20category%3A%20aString%0A%09class%20%3A%3D%20aClass.%0A%09category%20%3A%3D%20aString'),
  6769. messageSends: [],
  6770. referencedClasses: []
  6771. }),
  6772. smalltalk.ClassCategoryReader);
  6773. smalltalk.addMethod(
  6774. unescape('_scanFrom_'),
  6775. smalltalk.method({
  6776. selector: unescape('scanFrom%3A'),
  6777. category: 'fileIn',
  6778. fn: function (aChunkParser){
  6779. var self=this;
  6780. var chunk=nil;
  6781. (function(){while(!(function(){chunk=smalltalk.send(aChunkParser, "_nextChunk", []);return smalltalk.send(chunk, "_isEmpty", []);})()) {(function(){return smalltalk.send(self, "_compileMethod_", [chunk]);})()}})();
  6782. return self;},
  6783. args: ["aChunkParser"],
  6784. 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'),
  6785. messageSends: ["whileFalse:", "nextChunk", "isEmpty", "compileMethod:"],
  6786. referencedClasses: []
  6787. }),
  6788. smalltalk.ClassCategoryReader);
  6789. smalltalk.addMethod(
  6790. unescape('_compileMethod_'),
  6791. smalltalk.method({
  6792. selector: unescape('compileMethod%3A'),
  6793. category: 'private',
  6794. fn: function (aString){
  6795. var self=this;
  6796. var method=nil;
  6797. method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self['@class']]);
  6798. smalltalk.send(method, "_category_", [self['@category']]);
  6799. smalltalk.send(self['@class'], "_addCompiledMethod_", [method]);
  6800. return self;},
  6801. args: ["aString"],
  6802. 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'),
  6803. messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
  6804. referencedClasses: [smalltalk.nil]
  6805. }),
  6806. smalltalk.ClassCategoryReader);
  6807. smalltalk.addClass('Stream', smalltalk.Object, ['collection', 'position', 'streamSize'], 'Kernel');
  6808. smalltalk.addMethod(
  6809. unescape('_collection'),
  6810. smalltalk.method({
  6811. selector: unescape('collection'),
  6812. category: 'accessing',
  6813. fn: function (){
  6814. var self=this;
  6815. return self['@collection'];
  6816. return self;},
  6817. args: [],
  6818. source: unescape('collection%0A%09%5Ecollection'),
  6819. messageSends: [],
  6820. referencedClasses: []
  6821. }),
  6822. smalltalk.Stream);
  6823. smalltalk.addMethod(
  6824. unescape('_setCollection_'),
  6825. smalltalk.method({
  6826. selector: unescape('setCollection%3A'),
  6827. category: 'accessing',
  6828. fn: function (aCollection){
  6829. var self=this;
  6830. self['@collection']=aCollection;
  6831. return self;},
  6832. args: ["aCollection"],
  6833. source: unescape('setCollection%3A%20aCollection%0A%09collection%20%3A%3D%20aCollection'),
  6834. messageSends: [],
  6835. referencedClasses: []
  6836. }),
  6837. smalltalk.Stream);
  6838. smalltalk.addMethod(
  6839. unescape('_position'),
  6840. smalltalk.method({
  6841. selector: unescape('position'),
  6842. category: 'accessing',
  6843. fn: function (){
  6844. var self=this;
  6845. return (($receiver = self['@position']) == nil || $receiver == undefined) ? (function(){return self['@position']=(0);})() : $receiver;
  6846. return self;},
  6847. args: [],
  6848. source: unescape('position%0A%09%5Eposition%20ifNil%3A%20%5Bposition%20%3A%3D%200%5D'),
  6849. messageSends: ["ifNil:"],
  6850. referencedClasses: []
  6851. }),
  6852. smalltalk.Stream);
  6853. smalltalk.addMethod(
  6854. unescape('_position_'),
  6855. smalltalk.method({
  6856. selector: unescape('position%3A'),
  6857. category: 'accessing',
  6858. fn: function (anInteger){
  6859. var self=this;
  6860. self['@position']=anInteger;
  6861. return self;},
  6862. args: ["anInteger"],
  6863. source: unescape('position%3A%20anInteger%0A%09position%20%3A%3D%20anInteger'),
  6864. messageSends: [],
  6865. referencedClasses: []
  6866. }),
  6867. smalltalk.Stream);
  6868. smalltalk.addMethod(
  6869. unescape('_streamSize'),
  6870. smalltalk.method({
  6871. selector: unescape('streamSize'),
  6872. category: 'accessing',
  6873. fn: function (){
  6874. var self=this;
  6875. return self['@streamSize'];
  6876. return self;},
  6877. args: [],
  6878. source: unescape('streamSize%0A%09%5EstreamSize'),
  6879. messageSends: [],
  6880. referencedClasses: []
  6881. }),
  6882. smalltalk.Stream);
  6883. smalltalk.addMethod(
  6884. unescape('_setStreamSize_'),
  6885. smalltalk.method({
  6886. selector: unescape('setStreamSize%3A'),
  6887. category: 'accessing',
  6888. fn: function (anInteger){
  6889. var self=this;
  6890. self['@streamSize']=anInteger;
  6891. return self;},
  6892. args: ["anInteger"],
  6893. source: unescape('setStreamSize%3A%20anInteger%0A%09streamSize%20%3A%3D%20anInteger'),
  6894. messageSends: [],
  6895. referencedClasses: []
  6896. }),
  6897. smalltalk.Stream);
  6898. smalltalk.addMethod(
  6899. unescape('_contents'),
  6900. smalltalk.method({
  6901. selector: unescape('contents'),
  6902. category: 'accessing',
  6903. fn: function (){
  6904. var self=this;
  6905. return smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_streamSize", [])]);
  6906. return self;},
  6907. args: [],
  6908. 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'),
  6909. messageSends: ["copyFrom:to:", "collection", "streamSize"],
  6910. referencedClasses: []
  6911. }),
  6912. smalltalk.Stream);
  6913. smalltalk.addMethod(
  6914. unescape('_size'),
  6915. smalltalk.method({
  6916. selector: unescape('size'),
  6917. category: 'accessing',
  6918. fn: function (){
  6919. var self=this;
  6920. return smalltalk.send(self, "_streamSize", []);
  6921. return self;},
  6922. args: [],
  6923. source: unescape('size%0A%09%5Eself%20streamSize'),
  6924. messageSends: ["streamSize"],
  6925. referencedClasses: []
  6926. }),
  6927. smalltalk.Stream);
  6928. smalltalk.addMethod(
  6929. unescape('_reset'),
  6930. smalltalk.method({
  6931. selector: unescape('reset'),
  6932. category: 'actions',
  6933. fn: function (){
  6934. var self=this;
  6935. smalltalk.send(self, "_position_", [(0)]);
  6936. return self;},
  6937. args: [],
  6938. source: unescape('reset%0A%09self%20position%3A%200'),
  6939. messageSends: ["position:"],
  6940. referencedClasses: []
  6941. }),
  6942. smalltalk.Stream);
  6943. smalltalk.addMethod(
  6944. unescape('_close'),
  6945. smalltalk.method({
  6946. selector: unescape('close'),
  6947. category: 'actions',
  6948. fn: function (){
  6949. var self=this;
  6950. return self;},
  6951. args: [],
  6952. source: unescape('close'),
  6953. messageSends: [],
  6954. referencedClasses: []
  6955. }),
  6956. smalltalk.Stream);
  6957. smalltalk.addMethod(
  6958. unescape('_flush'),
  6959. smalltalk.method({
  6960. selector: unescape('flush'),
  6961. category: 'actions',
  6962. fn: function (){
  6963. var self=this;
  6964. return self;},
  6965. args: [],
  6966. source: unescape('flush'),
  6967. messageSends: [],
  6968. referencedClasses: []
  6969. }),
  6970. smalltalk.Stream);
  6971. smalltalk.addMethod(
  6972. unescape('_resetContents'),
  6973. smalltalk.method({
  6974. selector: unescape('resetContents'),
  6975. category: 'actions',
  6976. fn: function (){
  6977. var self=this;
  6978. smalltalk.send(self, "_reset", []);
  6979. smalltalk.send(self, "_setStreamSize_", [(0)]);
  6980. return self;},
  6981. args: [],
  6982. source: unescape('resetContents%0A%09self%20reset.%0A%09self%20setStreamSize%3A%200'),
  6983. messageSends: ["reset", "setStreamSize:"],
  6984. referencedClasses: []
  6985. }),
  6986. smalltalk.Stream);
  6987. smalltalk.addMethod(
  6988. unescape('_do_'),
  6989. smalltalk.method({
  6990. selector: unescape('do%3A'),
  6991. category: 'enumerating',
  6992. fn: function (aBlock){
  6993. var self=this;
  6994. (function(){while(!(function(){return smalltalk.send(self, "_atEnd", []);})()) {(function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_next", [])]);})()}})();
  6995. return self;},
  6996. args: ["aBlock"],
  6997. source: unescape('do%3A%20aBlock%0A%09%5Bself%20atEnd%5D%20whileFalse%3A%20%5BaBlock%20value%3A%20self%20next%5D'),
  6998. messageSends: ["whileFalse:", "atEnd", "value:", "next"],
  6999. referencedClasses: []
  7000. }),
  7001. smalltalk.Stream);
  7002. smalltalk.addMethod(
  7003. unescape('_setToEnd'),
  7004. smalltalk.method({
  7005. selector: unescape('setToEnd'),
  7006. category: 'positioning',
  7007. fn: function (){
  7008. var self=this;
  7009. smalltalk.send(self, "_position_", [smalltalk.send(self, "_size", [])]);
  7010. return self;},
  7011. args: [],
  7012. source: unescape('setToEnd%0A%09self%20position%3A%20self%20size'),
  7013. messageSends: ["position:", "size"],
  7014. referencedClasses: []
  7015. }),
  7016. smalltalk.Stream);
  7017. smalltalk.addMethod(
  7018. unescape('_skip_'),
  7019. smalltalk.method({
  7020. selector: unescape('skip%3A'),
  7021. category: 'positioning',
  7022. fn: function (anInteger){
  7023. var self=this;
  7024. 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)])]);
  7025. return self;},
  7026. args: ["anInteger"],
  7027. source: unescape('skip%3A%20anInteger%0A%09self%20position%3A%20%28%28self%20position%20+%20anInteger%29%20min%3A%20self%20size%20max%3A%200%29'),
  7028. messageSends: ["position:", "min:max:", unescape("+"), "position", "size"],
  7029. referencedClasses: []
  7030. }),
  7031. smalltalk.Stream);
  7032. smalltalk.addMethod(
  7033. unescape('_next'),
  7034. smalltalk.method({
  7035. selector: unescape('next'),
  7036. category: 'reading',
  7037. fn: function (){
  7038. var self=this;
  7039. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
  7040. return smalltalk.send(self['@collection'], "_at_", [smalltalk.send(self, "_position", [])]);
  7041. return self;},
  7042. args: [],
  7043. source: unescape('next%0A%09self%20position%3A%20self%20position%20+%201.%20%0A%09%5Ecollection%20at%3A%20self%20position'),
  7044. messageSends: ["position:", unescape("+"), "position", "at:"],
  7045. referencedClasses: []
  7046. }),
  7047. smalltalk.Stream);
  7048. smalltalk.addMethod(
  7049. unescape('_next_'),
  7050. smalltalk.method({
  7051. selector: unescape('next%3A'),
  7052. category: 'reading',
  7053. fn: function (anInteger){
  7054. var self=this;
  7055. var tempCollection=nil;
  7056. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  7057. 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", [])]);})]));})]);
  7058. return tempCollection;
  7059. return self;},
  7060. args: ["anInteger"],
  7061. 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'),
  7062. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", "add:", "next"],
  7063. referencedClasses: []
  7064. }),
  7065. smalltalk.Stream);
  7066. smalltalk.addMethod(
  7067. unescape('_nextPut_'),
  7068. smalltalk.method({
  7069. selector: unescape('nextPut%3A'),
  7070. category: 'writing',
  7071. fn: function (anObject){
  7072. var self=this;
  7073. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
  7074. smalltalk.send(smalltalk.send(self, "_collection", []), "_at_put_", [smalltalk.send(self, "_position", []), anObject]);
  7075. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  7076. return self;},
  7077. args: ["anObject"],
  7078. 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'),
  7079. messageSends: ["position:", unescape("+"), "position", "at:put:", "collection", "setStreamSize:", "max:", "streamSize"],
  7080. referencedClasses: []
  7081. }),
  7082. smalltalk.Stream);
  7083. smalltalk.addMethod(
  7084. unescape('_nextPutAll_'),
  7085. smalltalk.method({
  7086. selector: unescape('nextPutAll%3A'),
  7087. category: 'writing',
  7088. fn: function (aCollection){
  7089. var self=this;
  7090. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_nextPut_", [each]);})]);
  7091. return self;},
  7092. args: ["aCollection"],
  7093. source: unescape('nextPutAll%3A%20aCollection%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20self%20nextPut%3A%20each%5D'),
  7094. messageSends: ["do:", "nextPut:"],
  7095. referencedClasses: []
  7096. }),
  7097. smalltalk.Stream);
  7098. smalltalk.addMethod(
  7099. unescape('_peek'),
  7100. smalltalk.method({
  7101. selector: unescape('peek'),
  7102. category: 'reading',
  7103. fn: function (){
  7104. var self=this;
  7105. 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)]))]);})]));
  7106. return self;},
  7107. args: [],
  7108. 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'),
  7109. messageSends: ["ifFalse:", "atEnd", "at:", "collection", unescape("+"), "position"],
  7110. referencedClasses: []
  7111. }),
  7112. smalltalk.Stream);
  7113. smalltalk.addMethod(
  7114. unescape('_atEnd'),
  7115. smalltalk.method({
  7116. selector: unescape('atEnd'),
  7117. category: 'testing',
  7118. fn: function (){
  7119. var self=this;
  7120. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [smalltalk.send(self, "_size", [])]);
  7121. return self;},
  7122. args: [],
  7123. source: unescape('atEnd%0A%09%5Eself%20position%20%3D%20self%20size'),
  7124. messageSends: [unescape("%3D"), "position", "size"],
  7125. referencedClasses: []
  7126. }),
  7127. smalltalk.Stream);
  7128. smalltalk.addMethod(
  7129. unescape('_atStart'),
  7130. smalltalk.method({
  7131. selector: unescape('atStart'),
  7132. category: 'testing',
  7133. fn: function (){
  7134. var self=this;
  7135. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [(0)]);
  7136. return self;},
  7137. args: [],
  7138. source: unescape('atStart%0A%09%5Eself%20position%20%3D%200'),
  7139. messageSends: [unescape("%3D"), "position"],
  7140. referencedClasses: []
  7141. }),
  7142. smalltalk.Stream);
  7143. smalltalk.addMethod(
  7144. unescape('_isEmpty'),
  7145. smalltalk.method({
  7146. selector: unescape('isEmpty'),
  7147. category: 'testing',
  7148. fn: function (){
  7149. var self=this;
  7150. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  7151. return self;},
  7152. args: [],
  7153. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  7154. messageSends: [unescape("%3D"), "size"],
  7155. referencedClasses: []
  7156. }),
  7157. smalltalk.Stream);
  7158. smalltalk.addMethod(
  7159. unescape('_on_'),
  7160. smalltalk.method({
  7161. selector: unescape('on%3A'),
  7162. category: 'instance creation',
  7163. fn: function (aCollection){
  7164. var self=this;
  7165. 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", []));
  7166. return self;},
  7167. args: ["aCollection"],
  7168. 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'),
  7169. messageSends: ["setCollection:", "setStreamSize:", "size", "yourself", "new"],
  7170. referencedClasses: []
  7171. }),
  7172. smalltalk.Stream.klass);
  7173. smalltalk.addClass('StringStream', smalltalk.Stream, [], 'Kernel');
  7174. smalltalk.addMethod(
  7175. unescape('_next_'),
  7176. smalltalk.method({
  7177. selector: unescape('next%3A'),
  7178. category: 'reading',
  7179. fn: function (anInteger){
  7180. var self=this;
  7181. var tempCollection=nil;
  7182. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  7183. 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", [])]);})]));})]);
  7184. return tempCollection;
  7185. return self;},
  7186. args: ["anInteger"],
  7187. 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'),
  7188. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", unescape("%2C"), "next"],
  7189. referencedClasses: []
  7190. }),
  7191. smalltalk.StringStream);
  7192. smalltalk.addMethod(
  7193. unescape('_nextPut_'),
  7194. smalltalk.method({
  7195. selector: unescape('nextPut%3A'),
  7196. category: 'writing',
  7197. fn: function (aString){
  7198. var self=this;
  7199. smalltalk.send(self, "_nextPutAll_", [aString]);
  7200. return self;},
  7201. args: ["aString"],
  7202. source: unescape('nextPut%3A%20aString%0A%09self%20nextPutAll%3A%20aString'),
  7203. messageSends: ["nextPutAll:"],
  7204. referencedClasses: []
  7205. }),
  7206. smalltalk.StringStream);
  7207. smalltalk.addMethod(
  7208. unescape('_nextPutAll_'),
  7209. smalltalk.method({
  7210. selector: unescape('nextPutAll%3A'),
  7211. category: 'writing',
  7212. fn: function (aString){
  7213. var self=this;
  7214. 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", [])])])]);
  7215. 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", [])]))]);
  7216. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  7217. return self;},
  7218. args: ["aString"],
  7219. 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'),
  7220. messageSends: ["setCollection:", unescape("%2C"), "copyFrom:to:", "collection", "position", unescape("+"), "size", "position:", "setStreamSize:", "max:", "streamSize"],
  7221. referencedClasses: []
  7222. }),
  7223. smalltalk.StringStream);
  7224. smalltalk.addMethod(
  7225. unescape('_cr'),
  7226. smalltalk.method({
  7227. selector: unescape('cr'),
  7228. category: 'writing',
  7229. fn: function (){
  7230. var self=this;
  7231. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  7232. return self;},
  7233. args: [],
  7234. source: unescape('cr%0A%09%5Eself%20nextPutAll%3A%20String%20cr'),
  7235. messageSends: ["nextPutAll:", "cr"],
  7236. referencedClasses: [smalltalk.String]
  7237. }),
  7238. smalltalk.StringStream);
  7239. smalltalk.addMethod(
  7240. unescape('_crlf'),
  7241. smalltalk.method({
  7242. selector: unescape('crlf'),
  7243. category: 'writing',
  7244. fn: function (){
  7245. var self=this;
  7246. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_crlf", [])]);
  7247. return self;},
  7248. args: [],
  7249. source: unescape('crlf%0A%09%5Eself%20nextPutAll%3A%20String%20crlf'),
  7250. messageSends: ["nextPutAll:", "crlf"],
  7251. referencedClasses: [smalltalk.String]
  7252. }),
  7253. smalltalk.StringStream);
  7254. smalltalk.addMethod(
  7255. unescape('_lf'),
  7256. smalltalk.method({
  7257. selector: unescape('lf'),
  7258. category: 'writing',
  7259. fn: function (){
  7260. var self=this;
  7261. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_lf", [])]);
  7262. return self;},
  7263. args: [],
  7264. source: unescape('lf%0A%09%5Eself%20nextPutAll%3A%20String%20lf'),
  7265. messageSends: ["nextPutAll:", "lf"],
  7266. referencedClasses: [smalltalk.String]
  7267. }),
  7268. smalltalk.StringStream);
  7269. smalltalk.addMethod(
  7270. unescape('_space'),
  7271. smalltalk.method({
  7272. selector: unescape('space'),
  7273. category: 'writing',
  7274. fn: function (){
  7275. var self=this;
  7276. smalltalk.send(self, "_nextPut_", [" "]);
  7277. return self;},
  7278. args: [],
  7279. source: unescape('space%0A%09self%20nextPut%3A%20%27%20%27'),
  7280. messageSends: ["nextPut:"],
  7281. referencedClasses: []
  7282. }),
  7283. smalltalk.StringStream);
  7284. smalltalk.addClass('ClassCommentReader', smalltalk.Object, ['class', 'chunkParser'], 'Kernel');
  7285. smalltalk.addMethod(
  7286. unescape('_class_'),
  7287. smalltalk.method({
  7288. selector: unescape('class%3A'),
  7289. category: 'accessing',
  7290. fn: function (aClass){
  7291. var self=this;
  7292. self['@class']=aClass;
  7293. return self;},
  7294. args: ["aClass"],
  7295. source: unescape('class%3A%20aClass%0A%09class%20%3A%3D%20aClass'),
  7296. messageSends: [],
  7297. referencedClasses: []
  7298. }),
  7299. smalltalk.ClassCommentReader);
  7300. smalltalk.addMethod(
  7301. unescape('_scanFrom_'),
  7302. smalltalk.method({
  7303. selector: unescape('scanFrom%3A'),
  7304. category: 'fileIn',
  7305. fn: function (aChunkParser){
  7306. var self=this;
  7307. var chunk=nil;
  7308. chunk=smalltalk.send(aChunkParser, "_nextChunk", []);
  7309. ((($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]);})]));
  7310. return self;},
  7311. args: ["aChunkParser"],
  7312. 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.'),
  7313. messageSends: ["nextChunk", "ifFalse:", "isEmpty", "setComment:"],
  7314. referencedClasses: []
  7315. }),
  7316. smalltalk.ClassCommentReader);
  7317. smalltalk.addMethod(
  7318. unescape('_initialize'),
  7319. smalltalk.method({
  7320. selector: unescape('initialize'),
  7321. category: 'initialization',
  7322. fn: function (){
  7323. var self=this;
  7324. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  7325. self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []);
  7326. return self;},
  7327. args: [],
  7328. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  7329. messageSends: ["initialize", "new"],
  7330. referencedClasses: [smalltalk.nil]
  7331. }),
  7332. smalltalk.ClassCommentReader);
  7333. smalltalk.addMethod(
  7334. unescape('_setComment_'),
  7335. smalltalk.method({
  7336. selector: unescape('setComment%3A'),
  7337. category: 'private',
  7338. fn: function (aString){
  7339. var self=this;
  7340. smalltalk.send(self['@class'], "_comment_", [aString]);
  7341. return self;},
  7342. args: ["aString"],
  7343. source: unescape('setComment%3A%20aString%0A%20%20%20%20class%20comment%3A%20aString'),
  7344. messageSends: ["comment:"],
  7345. referencedClasses: []
  7346. }),
  7347. smalltalk.ClassCommentReader);
  7348. smalltalk.addClass('Random', smalltalk.Object, [], 'Kernel');
  7349. smalltalk.addMethod(
  7350. unescape('_next'),
  7351. smalltalk.method({
  7352. selector: unescape('next'),
  7353. category: 'accessing',
  7354. fn: function (){
  7355. var self=this;
  7356. return Math.random();
  7357. return self;},
  7358. args: [],
  7359. source: unescape('next%0A%09%3Creturn%20Math.random%28%29%3E'),
  7360. messageSends: [],
  7361. referencedClasses: []
  7362. }),
  7363. smalltalk.Random);
  7364. smalltalk.addMethod(
  7365. unescape('_next_'),
  7366. smalltalk.method({
  7367. selector: unescape('next%3A'),
  7368. category: 'accessing',
  7369. fn: function (anInteger){
  7370. var self=this;
  7371. return smalltalk.send(smalltalk.send((1), "_to_", [anInteger]), "_collect_", [(function(each){return smalltalk.send(self, "_next", []);})]);
  7372. return self;},
  7373. args: ["anInteger"],
  7374. 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'),
  7375. messageSends: ["collect:", "to:", "next"],
  7376. referencedClasses: []
  7377. }),
  7378. smalltalk.Random);
  7379. smalltalk.addClass('Point', smalltalk.Object, ['x', 'y'], 'Kernel');
  7380. smalltalk.addMethod(
  7381. unescape('_x'),
  7382. smalltalk.method({
  7383. selector: unescape('x'),
  7384. category: 'accessing',
  7385. fn: function (){
  7386. var self=this;
  7387. return self['@x'];
  7388. return self;},
  7389. args: [],
  7390. source: unescape('x%0A%09%5Ex'),
  7391. messageSends: [],
  7392. referencedClasses: []
  7393. }),
  7394. smalltalk.Point);
  7395. smalltalk.addMethod(
  7396. unescape('_y'),
  7397. smalltalk.method({
  7398. selector: unescape('y'),
  7399. category: 'accessing',
  7400. fn: function (){
  7401. var self=this;
  7402. return self['@y'];
  7403. return self;},
  7404. args: [],
  7405. source: unescape('y%0A%09%5Ey'),
  7406. messageSends: [],
  7407. referencedClasses: []
  7408. }),
  7409. smalltalk.Point);
  7410. smalltalk.addMethod(
  7411. unescape('_y_'),
  7412. smalltalk.method({
  7413. selector: unescape('y%3A'),
  7414. category: 'accessing',
  7415. fn: function (aNumber){
  7416. var self=this;
  7417. self['@y']=aNumber;
  7418. return self;},
  7419. args: ["aNumber"],
  7420. source: unescape('y%3A%20aNumber%0A%09y%20%3A%3D%20aNumber'),
  7421. messageSends: [],
  7422. referencedClasses: []
  7423. }),
  7424. smalltalk.Point);
  7425. smalltalk.addMethod(
  7426. unescape('_x_'),
  7427. smalltalk.method({
  7428. selector: unescape('x%3A'),
  7429. category: 'accessing',
  7430. fn: function (aNumber){
  7431. var self=this;
  7432. self['@x']=aNumber;
  7433. return self;},
  7434. args: ["aNumber"],
  7435. source: unescape('x%3A%20aNumber%0A%09x%20%3A%3D%20aNumber'),
  7436. messageSends: [],
  7437. referencedClasses: []
  7438. }),
  7439. smalltalk.Point);
  7440. smalltalk.addMethod(
  7441. unescape('__star'),
  7442. smalltalk.method({
  7443. selector: unescape('*'),
  7444. category: 'arithmetic',
  7445. fn: function (aPoint){
  7446. var self=this;
  7447. 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", [])]))]);
  7448. return self;},
  7449. args: ["aPoint"],
  7450. source: unescape('*%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20*%20aPoint%20asPoint%20x%20y%3A%20self%20y%20*%20aPoint%20asPoint%20y'),
  7451. messageSends: ["x:y:", unescape("*"), "x", "asPoint", "y"],
  7452. referencedClasses: [smalltalk.Point]
  7453. }),
  7454. smalltalk.Point);
  7455. smalltalk.addMethod(
  7456. unescape('__plus'),
  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, "__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", [])]))]);
  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('__minus'),
  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, "__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", [])]))]);
  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('__slash'),
  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, "__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", [])]))]);
  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('_asPoint'),
  7502. smalltalk.method({
  7503. selector: unescape('asPoint'),
  7504. category: 'converting',
  7505. fn: function (){
  7506. var self=this;
  7507. return self;
  7508. return self;},
  7509. args: [],
  7510. source: unescape('asPoint%0A%09%5Eself'),
  7511. messageSends: [],
  7512. referencedClasses: []
  7513. }),
  7514. smalltalk.Point);
  7515. smalltalk.addMethod(
  7516. unescape('__eq'),
  7517. smalltalk.method({
  7518. selector: unescape('%3D'),
  7519. category: 'arithmetic',
  7520. fn: function (aPoint){
  7521. var self=this;
  7522. 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", [])])]);})]);
  7523. return self;},
  7524. args: ["aPoint"],
  7525. 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'),
  7526. messageSends: ["and:", unescape("%3D"), "class", unescape("%26"), "x", "y"],
  7527. referencedClasses: []
  7528. }),
  7529. smalltalk.Point);
  7530. smalltalk.addMethod(
  7531. unescape('_x_y_'),
  7532. smalltalk.method({
  7533. selector: unescape('x%3Ay%3A'),
  7534. category: 'instance creation',
  7535. fn: function (aNumber, anotherNumber){
  7536. var self=this;
  7537. return (function($rec){smalltalk.send($rec, "_x_", [aNumber]);smalltalk.send($rec, "_y_", [anotherNumber]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  7538. return self;},
  7539. args: ["aNumber", "anotherNumber"],
  7540. 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'),
  7541. messageSends: ["x:", "y:", "yourself", "new"],
  7542. referencedClasses: []
  7543. }),
  7544. smalltalk.Point.klass);
  7545. smalltalk.addClass('Message', smalltalk.Object, ['selector', 'arguments'], 'Kernel');
  7546. smalltalk.addMethod(
  7547. unescape('_selector'),
  7548. smalltalk.method({
  7549. selector: unescape('selector'),
  7550. category: 'accessing',
  7551. fn: function (){
  7552. var self=this;
  7553. return self['@selector'];
  7554. return self;},
  7555. args: [],
  7556. source: unescape('selector%0A%09%5Eselector'),
  7557. messageSends: [],
  7558. referencedClasses: []
  7559. }),
  7560. smalltalk.Message);
  7561. smalltalk.addMethod(
  7562. unescape('_selector_'),
  7563. smalltalk.method({
  7564. selector: unescape('selector%3A'),
  7565. category: 'accessing',
  7566. fn: function (aString){
  7567. var self=this;
  7568. self['@selector']=aString;
  7569. return self;},
  7570. args: ["aString"],
  7571. source: unescape('selector%3A%20aString%0A%09selector%20%3A%3D%20aString'),
  7572. messageSends: [],
  7573. referencedClasses: []
  7574. }),
  7575. smalltalk.Message);
  7576. smalltalk.addMethod(
  7577. unescape('_arguments_'),
  7578. smalltalk.method({
  7579. selector: unescape('arguments%3A'),
  7580. category: 'accessing',
  7581. fn: function (anArray){
  7582. var self=this;
  7583. self['@arguments']=anArray;
  7584. return self;},
  7585. args: ["anArray"],
  7586. source: unescape('arguments%3A%20anArray%0A%09arguments%20%3A%3D%20anArray'),
  7587. messageSends: [],
  7588. referencedClasses: []
  7589. }),
  7590. smalltalk.Message);
  7591. smalltalk.addMethod(
  7592. unescape('_arguments'),
  7593. smalltalk.method({
  7594. selector: unescape('arguments'),
  7595. category: 'accessing',
  7596. fn: function (){
  7597. var self=this;
  7598. return self['@arguments'];
  7599. return self;},
  7600. args: [],
  7601. source: unescape('arguments%0A%09%5Earguments'),
  7602. messageSends: [],
  7603. referencedClasses: []
  7604. }),
  7605. smalltalk.Message);
  7606. smalltalk.addMethod(
  7607. unescape('_printString'),
  7608. smalltalk.method({
  7609. selector: unescape('printString'),
  7610. category: 'printing',
  7611. fn: function (){
  7612. var self=this;
  7613. 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);})]);
  7614. return self;},
  7615. args: [],
  7616. 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'),
  7617. messageSends: ["streamContents:", "nextPutAll:", "printString"],
  7618. referencedClasses: [smalltalk.String]
  7619. }),
  7620. smalltalk.Message);
  7621. smalltalk.addMethod(
  7622. unescape('_selector_arguments_'),
  7623. smalltalk.method({
  7624. selector: unescape('selector%3Aarguments%3A'),
  7625. category: 'instance creation',
  7626. fn: function (aString, anArray){
  7627. var self=this;
  7628. return (function($rec){smalltalk.send($rec, "_selector_", [aString]);smalltalk.send($rec, "_arguments_", [anArray]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  7629. return self;},
  7630. args: ["aString", "anArray"],
  7631. 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'),
  7632. messageSends: ["selector:", "arguments:", "yourself", "new"],
  7633. referencedClasses: []
  7634. }),
  7635. smalltalk.Message.klass);
  7636. smalltalk.addClass('MessageNotUnderstood', smalltalk.Error, ['message', 'receiver'], 'Kernel');
  7637. smalltalk.addMethod(
  7638. unescape('_message'),
  7639. smalltalk.method({
  7640. selector: unescape('message'),
  7641. category: 'accessing',
  7642. fn: function (){
  7643. var self=this;
  7644. return self['@message'];
  7645. return self;},
  7646. args: [],
  7647. source: unescape('message%0A%09%5Emessage'),
  7648. messageSends: [],
  7649. referencedClasses: []
  7650. }),
  7651. smalltalk.MessageNotUnderstood);
  7652. smalltalk.addMethod(
  7653. unescape('_message_'),
  7654. smalltalk.method({
  7655. selector: unescape('message%3A'),
  7656. category: 'accessing',
  7657. fn: function (aMessage){
  7658. var self=this;
  7659. self['@message']=aMessage;
  7660. return self;},
  7661. args: ["aMessage"],
  7662. source: unescape('message%3A%20aMessage%0A%09message%20%3A%3D%20aMessage'),
  7663. messageSends: [],
  7664. referencedClasses: []
  7665. }),
  7666. smalltalk.MessageNotUnderstood);
  7667. smalltalk.addMethod(
  7668. unescape('_receiver'),
  7669. smalltalk.method({
  7670. selector: unescape('receiver'),
  7671. category: 'accessing',
  7672. fn: function (){
  7673. var self=this;
  7674. return self['@receiver'];
  7675. return self;},
  7676. args: [],
  7677. source: unescape('receiver%0A%09%5Ereceiver'),
  7678. messageSends: [],
  7679. referencedClasses: []
  7680. }),
  7681. smalltalk.MessageNotUnderstood);
  7682. smalltalk.addMethod(
  7683. unescape('_receiver_'),
  7684. smalltalk.method({
  7685. selector: unescape('receiver%3A'),
  7686. category: 'accessing',
  7687. fn: function (anObject){
  7688. var self=this;
  7689. self['@receiver']=anObject;
  7690. return self;},
  7691. args: ["anObject"],
  7692. source: unescape('receiver%3A%20anObject%0A%09receiver%20%3A%3D%20anObject'),
  7693. messageSends: [],
  7694. referencedClasses: []
  7695. }),
  7696. smalltalk.MessageNotUnderstood);
  7697. smalltalk.addMethod(
  7698. unescape('_messageText'),
  7699. smalltalk.method({
  7700. selector: unescape('messageText'),
  7701. category: 'accessing',
  7702. fn: function (){
  7703. var self=this;
  7704. 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", [])]);
  7705. return self;},
  7706. args: [],
  7707. source: unescape('messageText%0A%09%5Eself%20receiver%20asString%2C%20%27%20does%20not%20understand%20%23%27%2C%20self%20message%20selector'),
  7708. messageSends: [unescape("%2C"), "asString", "receiver", "selector", "message"],
  7709. referencedClasses: []
  7710. }),
  7711. smalltalk.MessageNotUnderstood);
  7712. smalltalk.addClass('ErrorHandler', smalltalk.Object, [], 'Kernel');
  7713. smalltalk.addMethod(
  7714. unescape('_handleError_'),
  7715. smalltalk.method({
  7716. selector: unescape('handleError%3A'),
  7717. category: 'error handling',
  7718. fn: function (anError){
  7719. var self=this;
  7720. (($receiver = smalltalk.send(anError, "_context", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logErrorContext_", [smalltalk.send(anError, "_context", [])]);})() : nil;
  7721. smalltalk.send(self, "_logError_", [anError]);
  7722. return self;},
  7723. args: ["anError"],
  7724. source: unescape('handleError%3A%20anError%0A%09anError%20context%20ifNotNil%3A%20%5Bself%20logErrorContext%3A%20anError%20context%5D.%0A%09self%20logError%3A%20anError'),
  7725. messageSends: ["ifNotNil:", "context", "logErrorContext:", "logError:"],
  7726. referencedClasses: []
  7727. }),
  7728. smalltalk.ErrorHandler);
  7729. smalltalk.addMethod(
  7730. unescape('_logContext_'),
  7731. smalltalk.method({
  7732. selector: unescape('logContext%3A'),
  7733. category: 'private',
  7734. fn: function (aContext){
  7735. var self=this;
  7736. (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logContext_", [smalltalk.send(aContext, "_home", [])]);})() : nil;
  7737. smalltalk.send(self, "_log_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aContext, "_receiver", []), "_asString", []), "__comma", [unescape("%3E%3E")]), "__comma", [smalltalk.send(aContext, "_selector", [])])]);
  7738. return self;},
  7739. args: ["aContext"],
  7740. 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'),
  7741. messageSends: ["ifNotNil:", "home", "logContext:", "log:", unescape("%2C"), "asString", "receiver", "selector"],
  7742. referencedClasses: []
  7743. }),
  7744. smalltalk.ErrorHandler);
  7745. smalltalk.addMethod(
  7746. unescape('_logErrorContext_'),
  7747. smalltalk.method({
  7748. selector: unescape('logErrorContext%3A'),
  7749. category: 'private',
  7750. fn: function (aContext){
  7751. var self=this;
  7752. (($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;
  7753. return self;},
  7754. args: ["aContext"],
  7755. 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'),
  7756. messageSends: ["ifNotNil:", "home", "logContext:"],
  7757. referencedClasses: []
  7758. }),
  7759. smalltalk.ErrorHandler);
  7760. smalltalk.addMethod(
  7761. unescape('_logError_'),
  7762. smalltalk.method({
  7763. selector: unescape('logError%3A'),
  7764. category: 'private',
  7765. fn: function (anError){
  7766. var self=this;
  7767. smalltalk.send(self, "_log_", [smalltalk.send(anError, "_messageText", [])]);
  7768. return self;},
  7769. args: ["anError"],
  7770. source: unescape('logError%3A%20anError%0A%09self%20log%3A%20anError%20messageText'),
  7771. messageSends: ["log:", "messageText"],
  7772. referencedClasses: []
  7773. }),
  7774. smalltalk.ErrorHandler);
  7775. smalltalk.addMethod(
  7776. unescape('_log_'),
  7777. smalltalk.method({
  7778. selector: unescape('log%3A'),
  7779. category: 'private',
  7780. fn: function (aString){
  7781. var self=this;
  7782. smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [aString]);
  7783. return self;},
  7784. args: ["aString"],
  7785. source: unescape('log%3A%20aString%0A%09console%20log%3A%20aString'),
  7786. messageSends: ["log:"],
  7787. referencedClasses: []
  7788. }),
  7789. smalltalk.ErrorHandler);
  7790. smalltalk.ErrorHandler.klass.iVarNames = ['current'];
  7791. smalltalk.addMethod(
  7792. unescape('_current'),
  7793. smalltalk.method({
  7794. selector: unescape('current'),
  7795. category: 'accessing',
  7796. fn: function (){
  7797. var self=this;
  7798. return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", []);})() : $receiver;
  7799. return self;},
  7800. args: [],
  7801. source: unescape('current%0A%09%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20self%20new%5D'),
  7802. messageSends: ["ifNil:", "new"],
  7803. referencedClasses: []
  7804. }),
  7805. smalltalk.ErrorHandler.klass);
  7806. smalltalk.addMethod(
  7807. unescape('_initialize'),
  7808. smalltalk.method({
  7809. selector: unescape('initialize'),
  7810. category: 'initialization',
  7811. fn: function (){
  7812. var self=this;
  7813. smalltalk.send(self, "_register", []);
  7814. return self;},
  7815. args: [],
  7816. source: unescape('initialize%0A%09self%20register'),
  7817. messageSends: ["register"],
  7818. referencedClasses: []
  7819. }),
  7820. smalltalk.ErrorHandler.klass);
  7821. smalltalk.addMethod(
  7822. unescape('_register'),
  7823. smalltalk.method({
  7824. selector: unescape('register'),
  7825. category: 'initialization',
  7826. fn: function (){
  7827. var self=this;
  7828. smalltalk.send((smalltalk.ErrorHandler || ErrorHandler), "_setCurrent_", [smalltalk.send(self, "_new", [])]);
  7829. return self;},
  7830. args: [],
  7831. source: unescape('register%0A%09ErrorHandler%20setCurrent%3A%20self%20new'),
  7832. messageSends: ["setCurrent:", "new"],
  7833. referencedClasses: [smalltalk.ErrorHandler]
  7834. }),
  7835. smalltalk.ErrorHandler.klass);
  7836. smalltalk.addMethod(
  7837. unescape('_setCurrent_'),
  7838. smalltalk.method({
  7839. selector: unescape('setCurrent%3A'),
  7840. category: 'accessing',
  7841. fn: function (anHandler){
  7842. var self=this;
  7843. self['@current']=anHandler;
  7844. return self;},
  7845. args: ["anHandler"],
  7846. source: unescape('setCurrent%3A%20anHandler%0A%09current%20%3A%3D%20anHandler'),
  7847. messageSends: [],
  7848. referencedClasses: []
  7849. }),
  7850. smalltalk.ErrorHandler.klass);
  7851. smalltalk.addClass('JSObjectProxy', smalltalk.Object, ['jsObject'], 'Kernel');
  7852. smalltalk.addMethod(
  7853. unescape('_jsObject_'),
  7854. smalltalk.method({
  7855. selector: unescape('jsObject%3A'),
  7856. category: 'accessing',
  7857. fn: function (aJSObject){
  7858. var self=this;
  7859. self['@jsObject']=aJSObject;
  7860. return self;},
  7861. args: ["aJSObject"],
  7862. source: unescape('jsObject%3A%20aJSObject%0A%09jsObject%20%3A%3D%20aJSObject'),
  7863. messageSends: [],
  7864. referencedClasses: []
  7865. }),
  7866. smalltalk.JSObjectProxy);
  7867. smalltalk.addMethod(
  7868. unescape('_jsObject'),
  7869. smalltalk.method({
  7870. selector: unescape('jsObject'),
  7871. category: 'accessing',
  7872. fn: function (){
  7873. var self=this;
  7874. return self['@jsObject'];
  7875. return self;},
  7876. args: [],
  7877. source: unescape('jsObject%0A%09%5EjsObject'),
  7878. messageSends: [],
  7879. referencedClasses: []
  7880. }),
  7881. smalltalk.JSObjectProxy);
  7882. smalltalk.addMethod(
  7883. unescape('_printString'),
  7884. smalltalk.method({
  7885. selector: unescape('printString'),
  7886. category: 'proxy',
  7887. fn: function (){
  7888. var self=this;
  7889. return smalltalk.send(smalltalk.send(self, "_jsObject", []), "_toString", []);
  7890. return self;},
  7891. args: [],
  7892. source: unescape('printString%0A%09%5Eself%20jsObject%20toString'),
  7893. messageSends: ["toString", "jsObject"],
  7894. referencedClasses: []
  7895. }),
  7896. smalltalk.JSObjectProxy);
  7897. smalltalk.addMethod(
  7898. unescape('_inspectOn_'),
  7899. smalltalk.method({
  7900. selector: unescape('inspectOn%3A'),
  7901. category: 'proxy',
  7902. fn: function (anInspector){
  7903. var self=this;
  7904. var variables=nil;
  7905. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  7906. smalltalk.send(variables, "_at_put_", [unescape("%23self"), smalltalk.send(self, "_jsObject", [])]);
  7907. smalltalk.send(anInspector, "_setLabel_", [smalltalk.send(self, "_printString", [])]);
  7908. for(var i in self['@jsObject']) {
  7909. variables._at_put_(i, self['@jsObject'][i]);
  7910. };
  7911. smalltalk.send(anInspector, "_setVariables_", [variables]);
  7912. return self;},
  7913. args: ["anInspector"],
  7914. 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'),
  7915. messageSends: ["new", "at:put:", "jsObject", "setLabel:", "printString", "setVariables:"],
  7916. referencedClasses: [smalltalk.Dictionary]
  7917. }),
  7918. smalltalk.JSObjectProxy);
  7919. smalltalk.addMethod(
  7920. unescape('_doesNotUnderstand_'),
  7921. smalltalk.method({
  7922. selector: unescape('doesNotUnderstand%3A'),
  7923. category: 'proxy',
  7924. fn: function (aMessage){
  7925. var self=this;
  7926. var obj=nil;
  7927. var selector=nil;
  7928. var jsSelector=nil;
  7929. var arguments=nil;
  7930. obj=smalltalk.send(self, "_jsObject", []);
  7931. selector=smalltalk.send(aMessage, "_selector", []);
  7932. jsSelector=smalltalk.send(selector, "_asJavaScriptSelector", []);
  7933. arguments=smalltalk.send(aMessage, "_arguments", []);
  7934. if(obj[jsSelector] != undefined) {return smalltalk.send(obj, jsSelector, arguments)};
  7935. smalltalk.send(self, "_doesNotUnderstand_", [aMessage], smalltalk.Object);
  7936. return self;},
  7937. args: ["aMessage"],
  7938. 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'),
  7939. messageSends: ["jsObject", "selector", "asJavaScriptSelector", "arguments", "doesNotUnderstand:"],
  7940. referencedClasses: []
  7941. }),
  7942. smalltalk.JSObjectProxy);
  7943. smalltalk.addMethod(
  7944. unescape('_at_'),
  7945. smalltalk.method({
  7946. selector: unescape('at%3A'),
  7947. category: 'accessing',
  7948. fn: function (aString){
  7949. var self=this;
  7950. return self['@jsObject'][aString];
  7951. return self;},
  7952. args: ["aString"],
  7953. source: unescape('at%3A%20aString%0A%09%3Creturn%20self%5B%27@jsObject%27%5D%5BaString%5D%3E'),
  7954. messageSends: [],
  7955. referencedClasses: []
  7956. }),
  7957. smalltalk.JSObjectProxy);
  7958. smalltalk.addMethod(
  7959. unescape('_at_put_'),
  7960. smalltalk.method({
  7961. selector: unescape('at%3Aput%3A'),
  7962. category: 'accessing',
  7963. fn: function (aString, anObject){
  7964. var self=this;
  7965. self['@jsObject'][aString] = anObject;
  7966. return self;},
  7967. args: ["aString", "anObject"],
  7968. source: unescape('at%3A%20aString%20put%3A%20anObject%0A%09%3Cself%5B%27@jsObject%27%5D%5BaString%5D%20%3D%20anObject%3E'),
  7969. messageSends: [],
  7970. referencedClasses: []
  7971. }),
  7972. smalltalk.JSObjectProxy);
  7973. smalltalk.addMethod(
  7974. unescape('_on_'),
  7975. smalltalk.method({
  7976. selector: unescape('on%3A'),
  7977. category: 'instance creation',
  7978. fn: function (aJSObject){
  7979. var self=this;
  7980. return (function($rec){smalltalk.send($rec, "_jsObject_", [aJSObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  7981. return self;},
  7982. args: ["aJSObject"],
  7983. source: unescape('on%3A%20aJSObject%0A%09%5Eself%20new%0A%09%09jsObject%3A%20aJSObject%3B%0A%09%09yourself'),
  7984. messageSends: ["jsObject:", "yourself", "new"],
  7985. referencedClasses: []
  7986. }),
  7987. smalltalk.JSObjectProxy.klass);
  7988. smalltalk.addClass('Set', smalltalk.Collection, ['elements'], 'Kernel');
  7989. smalltalk.addMethod(
  7990. unescape('_add_'),
  7991. smalltalk.method({
  7992. selector: unescape('add%3A'),
  7993. category: 'adding/removing',
  7994. fn: function (anObject){
  7995. var self=this;
  7996. var found;
  7997. for(var i in self['@elements']) {
  7998. if(anObject == self['@elements'][i]) {
  7999. found = true;
  8000. break;
  8001. }
  8002. }
  8003. if(!found) {self['@elements'].push(anObject)}
  8004. ;
  8005. return self;},
  8006. args: ["anObject"],
  8007. 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'),
  8008. messageSends: [],
  8009. referencedClasses: []
  8010. }),
  8011. smalltalk.Set);
  8012. smalltalk.addMethod(
  8013. unescape('_remove_'),
  8014. smalltalk.method({
  8015. selector: unescape('remove%3A'),
  8016. category: 'adding/removing',
  8017. fn: function (anObject){
  8018. var self=this;
  8019. smalltalk.send(self['@elements'], "_remove_", [anObject]);
  8020. return self;},
  8021. args: ["anObject"],
  8022. source: unescape('remove%3A%20anObject%0A%09elements%20remove%3A%20anObject'),
  8023. messageSends: ["remove:"],
  8024. referencedClasses: []
  8025. }),
  8026. smalltalk.Set);
  8027. smalltalk.addMethod(
  8028. unescape('_initialize'),
  8029. smalltalk.method({
  8030. selector: unescape('initialize'),
  8031. category: 'initialization',
  8032. fn: function (){
  8033. var self=this;
  8034. smalltalk.send(self, "_initialize", [], smalltalk.Collection);
  8035. self['@elements']=[];
  8036. return self;},
  8037. args: [],
  8038. source: unescape('initialize%0A%09super%20initialize.%0A%09elements%20%3A%3D%20%23%28%29'),
  8039. messageSends: ["initialize"],
  8040. referencedClasses: []
  8041. }),
  8042. smalltalk.Set);
  8043. smalltalk.addMethod(
  8044. unescape('_size'),
  8045. smalltalk.method({
  8046. selector: unescape('size'),
  8047. category: 'accessing',
  8048. fn: function (){
  8049. var self=this;
  8050. return smalltalk.send(self['@elements'], "_size", []);
  8051. return self;},
  8052. args: [],
  8053. source: unescape('size%0A%09%5Eelements%20size'),
  8054. messageSends: ["size"],
  8055. referencedClasses: []
  8056. }),
  8057. smalltalk.Set);
  8058. smalltalk.addMethod(
  8059. unescape('_asArray'),
  8060. smalltalk.method({
  8061. selector: unescape('asArray'),
  8062. category: 'converting',
  8063. fn: function (){
  8064. var self=this;
  8065. return smalltalk.send(self['@elements'], "_copy", []);
  8066. return self;},
  8067. args: [],
  8068. source: unescape('asArray%0A%09%5Eelements%20copy'),
  8069. messageSends: ["copy"],
  8070. referencedClasses: []
  8071. }),
  8072. smalltalk.Set);
  8073. smalltalk.addMethod(
  8074. unescape('_detect_ifNone_'),
  8075. smalltalk.method({
  8076. selector: unescape('detect%3AifNone%3A'),
  8077. category: 'enumerating',
  8078. fn: function (aBlock, anotherBlock){
  8079. var self=this;
  8080. return smalltalk.send(self['@elements'], "_detect_ifNone_", [aBlock, anotherBlock]);
  8081. return self;},
  8082. args: ["aBlock", "anotherBlock"],
  8083. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eelements%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  8084. messageSends: ["detect:ifNone:"],
  8085. referencedClasses: []
  8086. }),
  8087. smalltalk.Set);
  8088. smalltalk.addMethod(
  8089. unescape('_do_'),
  8090. smalltalk.method({
  8091. selector: unescape('do%3A'),
  8092. category: 'enumerating',
  8093. fn: function (aBlock){
  8094. var self=this;
  8095. smalltalk.send(self['@elements'], "_do_", [aBlock]);
  8096. return self;},
  8097. args: ["aBlock"],
  8098. source: unescape('do%3A%20aBlock%0A%09elements%20do%3A%20aBlock'),
  8099. messageSends: ["do:"],
  8100. referencedClasses: []
  8101. }),
  8102. smalltalk.Set);
  8103. smalltalk.addMethod(
  8104. unescape('_includes_'),
  8105. smalltalk.method({
  8106. selector: unescape('includes%3A'),
  8107. category: 'testing',
  8108. fn: function (anObject){
  8109. var self=this;
  8110. return smalltalk.send(self['@elements'], "_includes_", [anObject]);
  8111. return self;},
  8112. args: ["anObject"],
  8113. source: unescape('includes%3A%20anObject%0A%09%5Eelements%20includes%3A%20anObject'),
  8114. messageSends: ["includes:"],
  8115. referencedClasses: []
  8116. }),
  8117. smalltalk.Set);
  8118. smalltalk.addMethod(
  8119. unescape('__eq'),
  8120. smalltalk.method({
  8121. selector: unescape('%3D'),
  8122. category: 'comparing',
  8123. fn: function (aCollection){
  8124. var self=this;
  8125. 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", [])]);})]);
  8126. return self;},
  8127. args: ["aCollection"],
  8128. 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'),
  8129. messageSends: ["and:", unescape("%3D"), "class", "asArray"],
  8130. referencedClasses: []
  8131. }),
  8132. smalltalk.Set);
  8133. smalltalk.addClass('Transcript', smalltalk.Object, ['textarea'], 'Kernel');
  8134. smalltalk.Transcript.klass.iVarNames = ['current'];
  8135. smalltalk.addMethod(
  8136. unescape('_open'),
  8137. smalltalk.method({
  8138. selector: unescape('open'),
  8139. category: 'instance creation',
  8140. fn: function (){
  8141. var self=this;
  8142. smalltalk.send(smalltalk.send(self, "_current", []), "_open", []);
  8143. return self;},
  8144. args: [],
  8145. source: unescape('open%0A%20%20%20%20self%20current%20open'),
  8146. messageSends: ["open", "current"],
  8147. referencedClasses: []
  8148. }),
  8149. smalltalk.Transcript.klass);
  8150. smalltalk.addMethod(
  8151. unescape('_new'),
  8152. smalltalk.method({
  8153. selector: unescape('new'),
  8154. category: 'instance creation',
  8155. fn: function (){
  8156. var self=this;
  8157. smalltalk.send(self, "_shouldNotImplement", []);
  8158. return self;},
  8159. args: [],
  8160. source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'),
  8161. messageSends: ["shouldNotImplement"],
  8162. referencedClasses: []
  8163. }),
  8164. smalltalk.Transcript.klass);
  8165. smalltalk.addMethod(
  8166. unescape('_current'),
  8167. smalltalk.method({
  8168. selector: unescape('current'),
  8169. category: 'instance creation',
  8170. fn: function (){
  8171. var self=this;
  8172. return self['@current'];
  8173. return self;},
  8174. args: [],
  8175. source: unescape('current%0A%20%20%20%20%5Ecurrent'),
  8176. messageSends: [],
  8177. referencedClasses: []
  8178. }),
  8179. smalltalk.Transcript.klass);
  8180. smalltalk.addMethod(
  8181. unescape('_show_'),
  8182. smalltalk.method({
  8183. selector: unescape('show%3A'),
  8184. category: 'printing',
  8185. fn: function (anObject){
  8186. var self=this;
  8187. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [anObject]);
  8188. return self;},
  8189. args: ["anObject"],
  8190. source: unescape('show%3A%20anObject%0A%20%20%20%20self%20current%20show%3A%20anObject'),
  8191. messageSends: ["show:", "current"],
  8192. referencedClasses: []
  8193. }),
  8194. smalltalk.Transcript.klass);
  8195. smalltalk.addMethod(
  8196. unescape('_cr'),
  8197. smalltalk.method({
  8198. selector: unescape('cr'),
  8199. category: 'printing',
  8200. fn: function (){
  8201. var self=this;
  8202. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  8203. return self;},
  8204. args: [],
  8205. source: unescape('cr%0A%20%20%20%20self%20current%20show%3A%20String%20cr'),
  8206. messageSends: ["show:", "current", "cr"],
  8207. referencedClasses: [smalltalk.String]
  8208. }),
  8209. smalltalk.Transcript.klass);
  8210. smalltalk.addMethod(
  8211. unescape('_clear'),
  8212. smalltalk.method({
  8213. selector: unescape('clear'),
  8214. category: 'printing',
  8215. fn: function (){
  8216. var self=this;
  8217. smalltalk.send(smalltalk.send(self, "_current", []), "_clear", []);
  8218. return self;},
  8219. args: [],
  8220. source: unescape('clear%0A%20%20%20%20self%20current%20clear'),
  8221. messageSends: ["clear", "current"],
  8222. referencedClasses: []
  8223. }),
  8224. smalltalk.Transcript.klass);
  8225. smalltalk.addMethod(
  8226. unescape('_register_'),
  8227. smalltalk.method({
  8228. selector: unescape('register%3A'),
  8229. category: 'instance creation',
  8230. fn: function (aTranscript){
  8231. var self=this;
  8232. self['@current']=aTranscript;
  8233. return self;},
  8234. args: ["aTranscript"],
  8235. source: unescape('register%3A%20aTranscript%0A%09current%20%3A%3D%20aTranscript'),
  8236. messageSends: [],
  8237. referencedClasses: []
  8238. }),
  8239. smalltalk.Transcript.klass);
  8240. smalltalk.addClass('ConsoleTranscript', smalltalk.Object, ['textarea'], 'Kernel');
  8241. smalltalk.addMethod(
  8242. unescape('_clear'),
  8243. smalltalk.method({
  8244. selector: unescape('clear'),
  8245. category: 'printing',
  8246. fn: function (){
  8247. var self=this;
  8248. return self;},
  8249. args: [],
  8250. source: unescape('clear%0A%09%22no%20op%22'),
  8251. messageSends: [],
  8252. referencedClasses: []
  8253. }),
  8254. smalltalk.ConsoleTranscript);
  8255. smalltalk.addMethod(
  8256. unescape('_cr'),
  8257. smalltalk.method({
  8258. selector: unescape('cr'),
  8259. category: 'printing',
  8260. fn: function (){
  8261. var self=this;
  8262. return self;},
  8263. args: [],
  8264. source: unescape('cr%0A%09%22no%20op%22'),
  8265. messageSends: [],
  8266. referencedClasses: []
  8267. }),
  8268. smalltalk.ConsoleTranscript);
  8269. smalltalk.addMethod(
  8270. unescape('_show_'),
  8271. smalltalk.method({
  8272. selector: unescape('show%3A'),
  8273. category: 'printing',
  8274. fn: function (anObject){
  8275. var self=this;
  8276. console.log(String(anObject._asString()));
  8277. return self;},
  8278. args: ["anObject"],
  8279. source: unescape('show%3A%20anObject%0A%09%3Cconsole.log%28String%28anObject._asString%28%29%29%29%3E'),
  8280. messageSends: [],
  8281. referencedClasses: []
  8282. }),
  8283. smalltalk.ConsoleTranscript);
  8284. smalltalk.addMethod(
  8285. unescape('_open'),
  8286. smalltalk.method({
  8287. selector: unescape('open'),
  8288. category: 'actions',
  8289. fn: function (){
  8290. var self=this;
  8291. return self;},
  8292. args: [],
  8293. source: unescape('open'),
  8294. messageSends: [],
  8295. referencedClasses: []
  8296. }),
  8297. smalltalk.ConsoleTranscript);
  8298. smalltalk.addMethod(
  8299. unescape('_initialize'),
  8300. smalltalk.method({
  8301. selector: unescape('initialize'),
  8302. category: 'initialization',
  8303. fn: function (){
  8304. var self=this;
  8305. smalltalk.send((smalltalk.Transcript || Transcript), "_register_", [smalltalk.send(self, "_new", [])]);
  8306. return self;},
  8307. args: [],
  8308. source: unescape('initialize%0A%09Transcript%20register%3A%20self%20new'),
  8309. messageSends: ["register:", "new"],
  8310. referencedClasses: [smalltalk.Transcript]
  8311. }),
  8312. smalltalk.ConsoleTranscript.klass);