Kernel.js 304 KB

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