Kernel.js 317 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460
  1. smalltalk.addPackage('Kernel', {});
  2. smalltalk.addClass('Object', smalltalk.nil, [], 'Kernel');
  3. smalltalk.addMethod(
  4. unescape('__eq'),
  5. smalltalk.method({
  6. selector: unescape('%3D'),
  7. category: 'comparing',
  8. fn: function (anObject){
  9. var self=this;
  10. return smalltalk.send(self, "__eq_eq", [anObject]);
  11. return self;},
  12. args: ["anObject"],
  13. source: unescape('%3D%20anObject%0A%09%5Eself%20%3D%3D%20anObject'),
  14. messageSends: [unescape("%3D%3D")],
  15. referencedClasses: []
  16. }),
  17. smalltalk.Object);
  18. smalltalk.addMethod(
  19. unescape('_%7E_eq'),
  20. smalltalk.method({
  21. selector: unescape('%7E%3D'),
  22. category: 'comparing',
  23. fn: function (anObject){
  24. var self=this;
  25. return smalltalk.send(smalltalk.send(self, "__eq", [anObject]), "__eq", [false]);
  26. return self;},
  27. args: ["anObject"],
  28. source: unescape('%7E%3D%20anObject%0A%09%5E%28self%20%3D%20anObject%29%20%3D%20false'),
  29. messageSends: [unescape("%3D")],
  30. referencedClasses: []
  31. }),
  32. smalltalk.Object);
  33. smalltalk.addMethod(
  34. unescape('_initialize'),
  35. smalltalk.method({
  36. selector: unescape('initialize'),
  37. category: 'initialization',
  38. fn: function (){
  39. var self=this;
  40. return self;},
  41. args: [],
  42. source: unescape('initialize'),
  43. messageSends: [],
  44. referencedClasses: []
  45. }),
  46. smalltalk.Object);
  47. smalltalk.addMethod(
  48. unescape('_yourself'),
  49. smalltalk.method({
  50. selector: unescape('yourself'),
  51. category: 'accessing',
  52. fn: function (){
  53. var self=this;
  54. return self;
  55. return self;},
  56. args: [],
  57. source: unescape('yourself%0A%09%5Eself'),
  58. messageSends: [],
  59. referencedClasses: []
  60. }),
  61. smalltalk.Object);
  62. smalltalk.addMethod(
  63. unescape('_class'),
  64. smalltalk.method({
  65. selector: unescape('class'),
  66. category: 'accessing',
  67. fn: function (){
  68. var self=this;
  69. return self.klass;
  70. return self;},
  71. args: [],
  72. source: unescape('class%0A%09%3Creturn%20self.klass%3E'),
  73. messageSends: [],
  74. referencedClasses: []
  75. }),
  76. smalltalk.Object);
  77. smalltalk.addMethod(
  78. unescape('_size'),
  79. smalltalk.method({
  80. selector: unescape('size'),
  81. category: 'accessing',
  82. fn: function (){
  83. var self=this;
  84. smalltalk.send(self, "_error_", ["Object not indexable"]);
  85. return self;},
  86. args: [],
  87. source: unescape('size%0A%09self%20error%3A%20%27Object%20not%20indexable%27'),
  88. messageSends: ["error:"],
  89. referencedClasses: []
  90. }),
  91. smalltalk.Object);
  92. smalltalk.addMethod(
  93. unescape('_copy'),
  94. smalltalk.method({
  95. selector: unescape('copy'),
  96. category: 'copying',
  97. fn: function (){
  98. var self=this;
  99. return smalltalk.send(smalltalk.send(self, "_shallowCopy", []), "_postCopy", []);
  100. return self;},
  101. args: [],
  102. source: unescape('copy%0A%09%5Eself%20shallowCopy%20postCopy'),
  103. messageSends: ["postCopy", "shallowCopy"],
  104. referencedClasses: []
  105. }),
  106. smalltalk.Object);
  107. smalltalk.addMethod(
  108. unescape('_shallowCopy'),
  109. smalltalk.method({
  110. selector: unescape('shallowCopy'),
  111. category: 'copying',
  112. fn: function (){
  113. var self=this;
  114. var copy = self.klass._new();
  115. for(var i in self) {
  116. if(/^@.+/.test(i)) {
  117. copy[i] = self[i];
  118. }
  119. }
  120. return copy;
  121. ;
  122. return self;},
  123. args: [],
  124. source: unescape('shallowCopy%0A%09%3C%0A%09%20%20%20%20var%20copy%20%3D%20self.klass._new%28%29%3B%0A%09%20%20%20%20for%28var%20i%20in%20self%29%20%7B%0A%09%09if%28/%5E@.+/.test%28i%29%29%20%7B%0A%09%09%20%20%20%20copy%5Bi%5D%20%3D%20self%5Bi%5D%3B%0A%09%09%7D%0A%09%20%20%20%20%7D%0A%09%20%20%20%20return%20copy%3B%0A%09%3E'),
  125. messageSends: [],
  126. referencedClasses: []
  127. }),
  128. smalltalk.Object);
  129. smalltalk.addMethod(
  130. unescape('_deepCopy'),
  131. smalltalk.method({
  132. selector: unescape('deepCopy'),
  133. category: 'copying',
  134. fn: function (){
  135. var self=this;
  136. var copy = self.klass._new();
  137. for(var i in self) {
  138. if(/^@.+/.test(i)) {
  139. copy[i] = self[i]._deepCopy();
  140. }
  141. }
  142. return copy;
  143. ;
  144. return self;},
  145. args: [],
  146. source: unescape('deepCopy%0A%09%3C%20%20%20%20%0A%09%20%20%20%20var%20copy%20%3D%20self.klass._new%28%29%3B%0A%09%20%20%20%20for%28var%20i%20in%20self%29%20%7B%0A%09%09if%28/%5E@.+/.test%28i%29%29%20%7B%0A%09%09%20%20%20%20copy%5Bi%5D%20%3D%20self%5Bi%5D._deepCopy%28%29%3B%0A%09%09%7D%0A%09%20%20%20%20%7D%0A%09%20%20%20%20return%20copy%3B%0A%09%3E'),
  147. messageSends: [],
  148. referencedClasses: []
  149. }),
  150. smalltalk.Object);
  151. smalltalk.addMethod(
  152. unescape('_postCopy'),
  153. smalltalk.method({
  154. selector: unescape('postCopy'),
  155. category: 'copying',
  156. fn: function (){
  157. var self=this;
  158. return self;},
  159. args: [],
  160. source: unescape('postCopy'),
  161. messageSends: [],
  162. referencedClasses: []
  163. }),
  164. smalltalk.Object);
  165. smalltalk.addMethod(
  166. unescape('__minus_gt'),
  167. smalltalk.method({
  168. selector: unescape('-%3E'),
  169. category: 'converting',
  170. fn: function (anObject){
  171. var self=this;
  172. return smalltalk.send((smalltalk.Association || Association), "_key_value_", [self, anObject]);
  173. return self;},
  174. args: ["anObject"],
  175. source: unescape('-%3E%20anObject%0A%09%5EAssociation%20key%3A%20self%20value%3A%20anObject'),
  176. messageSends: ["key:value:"],
  177. referencedClasses: ["Association"]
  178. }),
  179. smalltalk.Object);
  180. smalltalk.addMethod(
  181. unescape('_asString'),
  182. smalltalk.method({
  183. selector: unescape('asString'),
  184. category: 'converting',
  185. fn: function (){
  186. var self=this;
  187. return smalltalk.send(self, "_printString", []);
  188. return self;},
  189. args: [],
  190. source: unescape('asString%0A%09%5Eself%20printString'),
  191. messageSends: ["printString"],
  192. referencedClasses: []
  193. }),
  194. smalltalk.Object);
  195. smalltalk.addMethod(
  196. unescape('_asJavascript'),
  197. smalltalk.method({
  198. selector: unescape('asJavascript'),
  199. category: 'converting',
  200. fn: function (){
  201. var self=this;
  202. return smalltalk.send(self, "_asString", []);
  203. return self;},
  204. args: [],
  205. source: unescape('asJavascript%0A%09%5Eself%20asString'),
  206. messageSends: ["asString"],
  207. referencedClasses: []
  208. }),
  209. smalltalk.Object);
  210. smalltalk.addMethod(
  211. unescape('_perform_'),
  212. smalltalk.method({
  213. selector: unescape('perform%3A'),
  214. category: 'message handling',
  215. fn: function (aSymbol){
  216. var self=this;
  217. return smalltalk.send(self, "_perform_withArguments_", [aSymbol, []]);
  218. return self;},
  219. args: ["aSymbol"],
  220. source: unescape('perform%3A%20aSymbol%0A%09%5Eself%20perform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
  221. messageSends: ["perform:withArguments:"],
  222. referencedClasses: []
  223. }),
  224. smalltalk.Object);
  225. smalltalk.addMethod(
  226. unescape('_perform_withArguments_'),
  227. smalltalk.method({
  228. selector: unescape('perform%3AwithArguments%3A'),
  229. category: 'message handling',
  230. fn: function (aSymbol, aCollection){
  231. var self=this;
  232. return smalltalk.send(self, "_basicPerform_withArguments_", [smalltalk.send(aSymbol, "_asSelector", []), aCollection]);
  233. return self;},
  234. args: ["aSymbol", "aCollection"],
  235. source: unescape('perform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%5Eself%20basicPerform%3A%20aSymbol%20asSelector%20withArguments%3A%20aCollection'),
  236. messageSends: ["basicPerform:withArguments:", "asSelector"],
  237. referencedClasses: []
  238. }),
  239. smalltalk.Object);
  240. smalltalk.addMethod(
  241. unescape('_instVarAt_'),
  242. smalltalk.method({
  243. selector: unescape('instVarAt%3A'),
  244. category: 'accessing',
  245. fn: function (aString){
  246. var self=this;
  247. return self['@'+aString];
  248. return self;},
  249. args: ["aString"],
  250. source: unescape('instVarAt%3A%20aString%0A%09%3Creturn%20self%5B%27@%27+aString%5D%3E'),
  251. messageSends: [],
  252. referencedClasses: []
  253. }),
  254. smalltalk.Object);
  255. smalltalk.addMethod(
  256. unescape('_instVarAt_put_'),
  257. smalltalk.method({
  258. selector: unescape('instVarAt%3Aput%3A'),
  259. category: 'accessing',
  260. fn: function (aString, anObject){
  261. var self=this;
  262. self['@' + aString] = anObject;
  263. return self;},
  264. args: ["aString", "anObject"],
  265. source: unescape('instVarAt%3A%20aString%20put%3A%20anObject%0A%09%3Cself%5B%27@%27%20+%20aString%5D%20%3D%20anObject%3E'),
  266. messageSends: [],
  267. referencedClasses: []
  268. }),
  269. smalltalk.Object);
  270. smalltalk.addMethod(
  271. unescape('_basicAt_'),
  272. smalltalk.method({
  273. selector: unescape('basicAt%3A'),
  274. category: 'accessing',
  275. fn: function (aString){
  276. var self=this;
  277. return self[aString];
  278. return self;},
  279. args: ["aString"],
  280. source: unescape('basicAt%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
  281. messageSends: [],
  282. referencedClasses: []
  283. }),
  284. smalltalk.Object);
  285. smalltalk.addMethod(
  286. unescape('_basicAt_put_'),
  287. smalltalk.method({
  288. selector: unescape('basicAt%3Aput%3A'),
  289. category: 'accessing',
  290. fn: function (aString, anObject){
  291. var self=this;
  292. return self[aString] = anObject;
  293. return self;},
  294. args: ["aString", "anObject"],
  295. source: unescape('basicAt%3A%20aString%20put%3A%20anObject%0A%09%3Creturn%20self%5BaString%5D%20%3D%20anObject%3E'),
  296. messageSends: [],
  297. referencedClasses: []
  298. }),
  299. smalltalk.Object);
  300. smalltalk.addMethod(
  301. unescape('_error_'),
  302. smalltalk.method({
  303. selector: unescape('error%3A'),
  304. category: 'error handling',
  305. fn: function (aString){
  306. var self=this;
  307. smalltalk.send((smalltalk.Error || Error), "_signal_", [aString]);
  308. return self;},
  309. args: ["aString"],
  310. source: unescape('error%3A%20aString%0A%09Error%20signal%3A%20aString'),
  311. messageSends: ["signal:"],
  312. referencedClasses: ["Error"]
  313. }),
  314. smalltalk.Object);
  315. smalltalk.addMethod(
  316. unescape('_subclassResponsibility'),
  317. smalltalk.method({
  318. selector: unescape('subclassResponsibility'),
  319. category: 'error handling',
  320. fn: function (){
  321. var self=this;
  322. smalltalk.send(self, "_error_", ["This method is a responsibility of a subclass"]);
  323. return self;},
  324. args: [],
  325. source: unescape('subclassResponsibility%0A%09self%20error%3A%20%27This%20method%20is%20a%20responsibility%20of%20a%20subclass%27'),
  326. messageSends: ["error:"],
  327. referencedClasses: []
  328. }),
  329. smalltalk.Object);
  330. smalltalk.addMethod(
  331. unescape('_shouldNotImplement'),
  332. smalltalk.method({
  333. selector: unescape('shouldNotImplement'),
  334. category: 'error handling',
  335. fn: function (){
  336. var self=this;
  337. smalltalk.send(self, "_error_", [smalltalk.send("This method should not be implemented in ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])])]);
  338. return self;},
  339. args: [],
  340. source: unescape('shouldNotImplement%0A%09self%20error%3A%20%27This%20method%20should%20not%20be%20implemented%20in%20%27%2C%20self%20class%20name'),
  341. messageSends: ["error:", unescape("%2C"), "name", "class"],
  342. referencedClasses: []
  343. }),
  344. smalltalk.Object);
  345. smalltalk.addMethod(
  346. unescape('_try_catch_'),
  347. smalltalk.method({
  348. selector: unescape('try%3Acatch%3A'),
  349. category: 'error handling',
  350. fn: function (aBlock, anotherBlock){
  351. var self=this;
  352. try{aBlock()} catch(e) {anotherBlock(e)};
  353. return self;},
  354. args: ["aBlock", "anotherBlock"],
  355. source: unescape('try%3A%20aBlock%20catch%3A%20anotherBlock%0A%09%3Ctry%7BaBlock%28%29%7D%20catch%28e%29%20%7BanotherBlock%28e%29%7D%3E'),
  356. messageSends: [],
  357. referencedClasses: []
  358. }),
  359. smalltalk.Object);
  360. smalltalk.addMethod(
  361. unescape('_printString'),
  362. smalltalk.method({
  363. selector: unescape('printString'),
  364. category: 'printing',
  365. fn: function (){
  366. var self=this;
  367. return smalltalk.send("a ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])]);
  368. return self;},
  369. args: [],
  370. source: unescape('printString%0A%09%5E%27a%20%27%2C%20self%20class%20name'),
  371. messageSends: [unescape("%2C"), "name", "class"],
  372. referencedClasses: []
  373. }),
  374. smalltalk.Object);
  375. smalltalk.addMethod(
  376. unescape('_printNl'),
  377. smalltalk.method({
  378. selector: unescape('printNl'),
  379. category: 'printing',
  380. fn: function (){
  381. var self=this;
  382. console.log(self);
  383. return self;},
  384. args: [],
  385. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  386. messageSends: [],
  387. referencedClasses: []
  388. }),
  389. smalltalk.Object);
  390. smalltalk.addMethod(
  391. unescape('_isKindOf_'),
  392. smalltalk.method({
  393. selector: unescape('isKindOf%3A'),
  394. category: 'testing',
  395. fn: function (aClass){
  396. var self=this;
  397. return ((($receiver = smalltalk.send(self, "_isMemberOf_", [aClass])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return true;})() : (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return true;}), (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})]));
  398. return self;},
  399. args: ["aClass"],
  400. source: unescape('isKindOf%3A%20aClass%0A%09%5E%28self%20isMemberOf%3A%20aClass%29%0A%09%20%20%20%20ifTrue%3A%20%5Btrue%5D%0A%09%20%20%20%20ifFalse%3A%20%5Bself%20class%20inheritsFrom%3A%20aClass%5D'),
  401. messageSends: ["ifTrue:ifFalse:", "isMemberOf:", "inheritsFrom:", "class"],
  402. referencedClasses: []
  403. }),
  404. smalltalk.Object);
  405. smalltalk.addMethod(
  406. unescape('_isMemberOf_'),
  407. smalltalk.method({
  408. selector: unescape('isMemberOf%3A'),
  409. category: 'testing',
  410. fn: function (aClass){
  411. var self=this;
  412. return smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [aClass]);
  413. return self;},
  414. args: ["aClass"],
  415. source: unescape('isMemberOf%3A%20aClass%0A%09%5Eself%20class%20%3D%20aClass'),
  416. messageSends: [unescape("%3D"), "class"],
  417. referencedClasses: []
  418. }),
  419. smalltalk.Object);
  420. smalltalk.addMethod(
  421. unescape('_ifNil_'),
  422. smalltalk.method({
  423. selector: unescape('ifNil%3A'),
  424. category: 'testing',
  425. fn: function (aBlock){
  426. var self=this;
  427. return self;
  428. return self;},
  429. args: ["aBlock"],
  430. source: unescape('ifNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself'),
  431. messageSends: [],
  432. referencedClasses: []
  433. }),
  434. smalltalk.Object);
  435. smalltalk.addMethod(
  436. unescape('_ifNil_ifNotNil_'),
  437. smalltalk.method({
  438. selector: unescape('ifNil%3AifNotNil%3A'),
  439. category: 'testing',
  440. fn: function (aBlock, anotherBlock){
  441. var self=this;
  442. return smalltalk.send(anotherBlock, "_value", []);
  443. return self;},
  444. args: ["aBlock", "anotherBlock"],
  445. source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EanotherBlock%20value'),
  446. messageSends: ["value"],
  447. referencedClasses: []
  448. }),
  449. smalltalk.Object);
  450. smalltalk.addMethod(
  451. unescape('_ifNotNil_'),
  452. smalltalk.method({
  453. selector: unescape('ifNotNil%3A'),
  454. category: 'testing',
  455. fn: function (aBlock){
  456. var self=this;
  457. return smalltalk.send(aBlock, "_value", []);
  458. return self;},
  459. args: ["aBlock"],
  460. source: unescape('ifNotNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  461. messageSends: ["value"],
  462. referencedClasses: []
  463. }),
  464. smalltalk.Object);
  465. smalltalk.addMethod(
  466. unescape('_ifNotNil_ifNil_'),
  467. smalltalk.method({
  468. selector: unescape('ifNotNil%3AifNil%3A'),
  469. category: 'testing',
  470. fn: function (aBlock, anotherBlock){
  471. var self=this;
  472. return smalltalk.send(aBlock, "_value", []);
  473. return self;},
  474. args: ["aBlock", "anotherBlock"],
  475. source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  476. messageSends: ["value"],
  477. referencedClasses: []
  478. }),
  479. smalltalk.Object);
  480. smalltalk.addMethod(
  481. unescape('_isNil'),
  482. smalltalk.method({
  483. selector: unescape('isNil'),
  484. category: 'testing',
  485. fn: function (){
  486. var self=this;
  487. return false;
  488. return self;},
  489. args: [],
  490. source: unescape('isNil%0A%09%5Efalse'),
  491. messageSends: [],
  492. referencedClasses: []
  493. }),
  494. smalltalk.Object);
  495. smalltalk.addMethod(
  496. unescape('_notNil'),
  497. smalltalk.method({
  498. selector: unescape('notNil'),
  499. category: 'testing',
  500. fn: function (){
  501. var self=this;
  502. return smalltalk.send(smalltalk.send(self, "_isNil", []), "_not", []);
  503. return self;},
  504. args: [],
  505. source: unescape('notNil%0A%09%5Eself%20isNil%20not'),
  506. messageSends: ["not", "isNil"],
  507. referencedClasses: []
  508. }),
  509. smalltalk.Object);
  510. smalltalk.addMethod(
  511. unescape('_isClass'),
  512. smalltalk.method({
  513. selector: unescape('isClass'),
  514. category: 'testing',
  515. fn: function (){
  516. var self=this;
  517. return false;
  518. return self;},
  519. args: [],
  520. source: unescape('isClass%0A%09%5Efalse'),
  521. messageSends: [],
  522. referencedClasses: []
  523. }),
  524. smalltalk.Object);
  525. smalltalk.addMethod(
  526. unescape('_isMetaclass'),
  527. smalltalk.method({
  528. selector: unescape('isMetaclass'),
  529. category: 'testing',
  530. fn: function (){
  531. var self=this;
  532. return false;
  533. return self;},
  534. args: [],
  535. source: unescape('isMetaclass%0A%09%5Efalse'),
  536. messageSends: [],
  537. referencedClasses: []
  538. }),
  539. smalltalk.Object);
  540. smalltalk.addMethod(
  541. unescape('_isNumber'),
  542. smalltalk.method({
  543. selector: unescape('isNumber'),
  544. category: 'testing',
  545. fn: function (){
  546. var self=this;
  547. return false;
  548. return self;},
  549. args: [],
  550. source: unescape('isNumber%0A%09%5Efalse'),
  551. messageSends: [],
  552. referencedClasses: []
  553. }),
  554. smalltalk.Object);
  555. smalltalk.addMethod(
  556. unescape('_isString'),
  557. smalltalk.method({
  558. selector: unescape('isString'),
  559. category: 'testing',
  560. fn: function (){
  561. var self=this;
  562. return false;
  563. return self;},
  564. args: [],
  565. source: unescape('isString%0A%09%5Efalse'),
  566. messageSends: [],
  567. referencedClasses: []
  568. }),
  569. smalltalk.Object);
  570. smalltalk.addMethod(
  571. unescape('_isParseFailure'),
  572. smalltalk.method({
  573. selector: unescape('isParseFailure'),
  574. category: 'testing',
  575. fn: function (){
  576. var self=this;
  577. return false;
  578. return self;},
  579. args: [],
  580. source: unescape('isParseFailure%0A%09%5Efalse'),
  581. messageSends: [],
  582. referencedClasses: []
  583. }),
  584. smalltalk.Object);
  585. smalltalk.addMethod(
  586. unescape('_basicPerform_'),
  587. smalltalk.method({
  588. selector: unescape('basicPerform%3A'),
  589. category: 'message handling',
  590. fn: function (aSymbol){
  591. var self=this;
  592. return smalltalk.send(self, "_basicPerform_withArguments_", [aSymbol, []]);
  593. return self;},
  594. args: ["aSymbol"],
  595. source: unescape('basicPerform%3A%20aSymbol%20%0A%09%5Eself%20basicPerform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
  596. messageSends: ["basicPerform:withArguments:"],
  597. referencedClasses: []
  598. }),
  599. smalltalk.Object);
  600. smalltalk.addMethod(
  601. unescape('_basicPerform_withArguments_'),
  602. smalltalk.method({
  603. selector: unescape('basicPerform%3AwithArguments%3A'),
  604. category: 'message handling',
  605. fn: function (aSymbol, aCollection){
  606. var self=this;
  607. return self[aSymbol].apply(self, aCollection);;
  608. return self;},
  609. args: ["aSymbol", "aCollection"],
  610. source: unescape('basicPerform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%3Creturn%20self%5BaSymbol%5D.apply%28self%2C%20aCollection%29%3B%3E'),
  611. messageSends: [],
  612. referencedClasses: []
  613. }),
  614. smalltalk.Object);
  615. smalltalk.addMethod(
  616. unescape('_basicDelete_'),
  617. smalltalk.method({
  618. selector: unescape('basicDelete%3A'),
  619. category: 'accessing',
  620. fn: function (aString){
  621. var self=this;
  622. delete self[aString]; return aString;
  623. return self;},
  624. args: ["aString"],
  625. source: unescape('basicDelete%3A%20aString%0A%20%20%20%20%3Cdelete%20self%5BaString%5D%3B%20return%20aString%3E'),
  626. messageSends: [],
  627. referencedClasses: []
  628. }),
  629. smalltalk.Object);
  630. smalltalk.addMethod(
  631. unescape('_doesNotUnderstand_'),
  632. smalltalk.method({
  633. selector: unescape('doesNotUnderstand%3A'),
  634. category: 'error handling',
  635. fn: function (aMessage){
  636. var self=this;
  637. (function($rec){smalltalk.send($rec, "_receiver_", [self]);smalltalk.send($rec, "_message_", [aMessage]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send((smalltalk.MessageNotUnderstood || MessageNotUnderstood), "_new", []));
  638. return self;},
  639. args: ["aMessage"],
  640. source: unescape('doesNotUnderstand%3A%20aMessage%0A%09MessageNotUnderstood%20new%0A%09%09receiver%3A%20self%3B%0A%09%09message%3A%20aMessage%3B%0A%09%09signal'),
  641. messageSends: ["receiver:", "message:", "signal", "new"],
  642. referencedClasses: ["MessageNotUnderstood"]
  643. }),
  644. smalltalk.Object);
  645. smalltalk.addMethod(
  646. unescape('_asJSON'),
  647. smalltalk.method({
  648. selector: unescape('asJSON'),
  649. category: 'converting',
  650. fn: function (){
  651. var self=this;
  652. return smalltalk.send((smalltalk.JSON || JSON), "_parse_", [smalltalk.send(self, "_asJSONString", [])]);
  653. return self;},
  654. args: [],
  655. source: unescape('asJSON%0A%09%5EJSON%20parse%3A%20self%20asJSONString'),
  656. messageSends: ["parse:", "asJSONString"],
  657. referencedClasses: ["JSON"]
  658. }),
  659. smalltalk.Object);
  660. smalltalk.addMethod(
  661. unescape('_halt'),
  662. smalltalk.method({
  663. selector: unescape('halt'),
  664. category: 'error handling',
  665. fn: function (){
  666. var self=this;
  667. smalltalk.send(self, "_error_", ["Halt encountered"]);
  668. return self;},
  669. args: [],
  670. source: unescape('halt%0A%09self%20error%3A%20%27Halt%20encountered%27'),
  671. messageSends: ["error:"],
  672. referencedClasses: []
  673. }),
  674. smalltalk.Object);
  675. smalltalk.addMethod(
  676. unescape('_log_block_'),
  677. smalltalk.method({
  678. selector: unescape('log%3Ablock%3A'),
  679. category: 'printing',
  680. fn: function (aString, aBlock){
  681. var self=this;
  682. var result=nil;
  683. 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", [])])]);
  684. return result;
  685. return self;},
  686. args: ["aString", "aBlock"],
  687. 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'),
  688. messageSends: ["log:", unescape("%2C"), "printString", "millisecondsToRun:", "value"],
  689. referencedClasses: ["Date"]
  690. }),
  691. smalltalk.Object);
  692. smalltalk.addMethod(
  693. unescape('__eq_eq'),
  694. smalltalk.method({
  695. selector: unescape('%3D%3D'),
  696. category: 'comparing',
  697. fn: function (anObject){
  698. var self=this;
  699. return self === anObject;
  700. return self;},
  701. args: ["anObject"],
  702. source: unescape('%3D%3D%20anObject%0A%09%3Creturn%20self%20%3D%3D%3D%20anObject%3E'),
  703. messageSends: [],
  704. referencedClasses: []
  705. }),
  706. smalltalk.Object);
  707. smalltalk.addMethod(
  708. unescape('_%7E%7E'),
  709. smalltalk.method({
  710. selector: unescape('%7E%7E'),
  711. category: 'comparing',
  712. fn: function (anObject){
  713. var self=this;
  714. return smalltalk.send(smalltalk.send(self, "__eq_eq", [anObject]), "__eq", [false]);
  715. return self;},
  716. args: ["anObject"],
  717. source: unescape('%7E%7E%20anObject%0A%09%5E%28self%20%3D%3D%20anObject%29%20%3D%20false'),
  718. messageSends: [unescape("%3D"), unescape("%3D%3D")],
  719. referencedClasses: []
  720. }),
  721. smalltalk.Object);
  722. smalltalk.addMethod(
  723. unescape('_deprecatedAPI'),
  724. smalltalk.method({
  725. selector: unescape('deprecatedAPI'),
  726. category: 'error handling',
  727. fn: function (){
  728. var self=this;
  729. smalltalk.send((typeof console == 'undefined' ? nil : console), "_warn_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.getThisContext()), "_home", []), "_asString", []), "__comma", [unescape("%20is%20deprecated%21%20%28in%20")]), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.getThisContext()), "_home", []), "_home", []), "_asString", [])]), "__comma", [unescape("%29")])]);
  730. return self;},
  731. args: [],
  732. 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%20%28in%20%27%2C%20thisContext%20home%20home%20asString%2C%20%27%29%27'),
  733. messageSends: ["warn:", unescape("%2C"), "asString", "home"],
  734. referencedClasses: []
  735. }),
  736. smalltalk.Object);
  737. smalltalk.addMethod(
  738. unescape('_storeString'),
  739. smalltalk.method({
  740. selector: unescape('storeString'),
  741. category: 'printing',
  742. fn: function (){
  743. var self=this;
  744. return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(s){return smalltalk.send(self, "_storeOn_", [s]);})]);
  745. return self;},
  746. args: [],
  747. source: unescape('storeString%0A%09%22Answer%20a%20String%20representation%20of%20the%20receiver%20from%20which%20the%20receiver%20%0A%09can%20be%20reconstructed.%22%0A%0A%09%5E%20String%20streamContents%3A%20%5B%3As%20%7C%20self%20storeOn%3A%20s%5D'),
  748. messageSends: ["streamContents:", "storeOn:"],
  749. referencedClasses: ["String"]
  750. }),
  751. smalltalk.Object);
  752. smalltalk.addMethod(
  753. unescape('_storeOn_'),
  754. smalltalk.method({
  755. selector: unescape('storeOn%3A'),
  756. category: 'printing',
  757. fn: function (aStream){
  758. var self=this;
  759. smalltalk.send(aStream, "_nextPutAll_", [smalltalk.send(self, "_printString", [])]);
  760. return self;},
  761. args: ["aStream"],
  762. source: unescape('storeOn%3A%20aStream%0A%09aStream%20nextPutAll%3A%20self%20printString'),
  763. messageSends: ["nextPutAll:", "printString"],
  764. referencedClasses: []
  765. }),
  766. smalltalk.Object);
  767. smalltalk.addMethod(
  768. unescape('_asJSONString'),
  769. smalltalk.method({
  770. selector: unescape('asJSONString'),
  771. category: 'converting',
  772. fn: function (){
  773. var self=this;
  774. return smalltalk.send((smalltalk.JSON || JSON), "_stringify_", [self]);
  775. return self;},
  776. args: [],
  777. source: unescape('asJSONString%0A%09%5EJSON%20stringify%3A%20self'),
  778. messageSends: ["stringify:"],
  779. referencedClasses: ["JSON"]
  780. }),
  781. smalltalk.Object);
  782. smalltalk.addMethod(
  783. unescape('_initialize'),
  784. smalltalk.method({
  785. selector: unescape('initialize'),
  786. category: 'initialization',
  787. fn: function (){
  788. var self=this;
  789. return self;},
  790. args: [],
  791. source: unescape('initialize%0A%09%22no%20op%22'),
  792. messageSends: [],
  793. referencedClasses: []
  794. }),
  795. smalltalk.Object.klass);
  796. smalltalk.addClass('Smalltalk', smalltalk.Object, [], 'Kernel');
  797. smalltalk.addMethod(
  798. unescape('_classes'),
  799. smalltalk.method({
  800. selector: unescape('classes'),
  801. category: 'accessing',
  802. fn: function (){
  803. var self=this;
  804. return self.classes();
  805. return self;},
  806. args: [],
  807. source: unescape('classes%0A%09%3Creturn%20self.classes%28%29%3E'),
  808. messageSends: [],
  809. referencedClasses: []
  810. }),
  811. smalltalk.Smalltalk);
  812. smalltalk.addMethod(
  813. unescape('_at_'),
  814. smalltalk.method({
  815. selector: unescape('at%3A'),
  816. category: 'accessing',
  817. fn: function (aString){
  818. var self=this;
  819. return self[aString];
  820. return self;},
  821. args: ["aString"],
  822. source: unescape('at%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
  823. messageSends: [],
  824. referencedClasses: []
  825. }),
  826. smalltalk.Smalltalk);
  827. smalltalk.addMethod(
  828. unescape('_removeClass_'),
  829. smalltalk.method({
  830. selector: unescape('removeClass%3A'),
  831. category: 'classes',
  832. fn: function (aClass){
  833. var self=this;
  834. ((($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")])]);})]));
  835. smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(aClass, "_removeCompiledMethod_", [each]);})]);
  836. smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(aClass, "_class", []), "_removeCompiledMethod_", [each]);})]);
  837. smalltalk.send(self, "_basicDelete_", [smalltalk.send(aClass, "_name", [])]);
  838. return self;},
  839. args: ["aClass"],
  840. 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'),
  841. messageSends: ["ifTrue:", "isMetaclass", "error:", unescape("%2C"), "asString", "do:", "values", "methodDictionary", "removeCompiledMethod:", "class", "basicDelete:", "name"],
  842. referencedClasses: []
  843. }),
  844. smalltalk.Smalltalk);
  845. smalltalk.addMethod(
  846. unescape('_basicParse_'),
  847. smalltalk.method({
  848. selector: unescape('basicParse%3A'),
  849. category: 'accessing',
  850. fn: function (aString){
  851. var self=this;
  852. return smalltalk.parser.parse(aString);
  853. return self;},
  854. args: ["aString"],
  855. source: unescape('basicParse%3A%20aString%0A%09%3Creturn%20smalltalk.parser.parse%28aString%29%3E'),
  856. messageSends: [],
  857. referencedClasses: []
  858. }),
  859. smalltalk.Smalltalk);
  860. smalltalk.addMethod(
  861. unescape('_parse_'),
  862. smalltalk.method({
  863. selector: unescape('parse%3A'),
  864. category: 'accessing',
  865. fn: function (aString){
  866. var self=this;
  867. var result=nil;
  868. 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", []);})]);
  869. return result;
  870. return self;},
  871. args: ["aString"],
  872. 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'),
  873. messageSends: ["try:catch:", "basicParse:", "signal", "parseError:parsing:"],
  874. referencedClasses: []
  875. }),
  876. smalltalk.Smalltalk);
  877. smalltalk.addMethod(
  878. unescape('_parseError_parsing_'),
  879. smalltalk.method({
  880. selector: unescape('parseError%3Aparsing%3A'),
  881. category: 'accessing',
  882. fn: function (anException, aString){
  883. var self=this;
  884. var row=nil;
  885. var col=nil;
  886. var message=nil;
  887. var lines=nil;
  888. var badLine=nil;
  889. var code=nil;
  890. row = anException.line;
  891. col = anException.column;
  892. message = anException.message;;
  893. lines=smalltalk.send(aString, "_lines", []);
  894. badLine=smalltalk.send(lines, "_at_", [row]);
  895. 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", [])])]);
  896. smalltalk.send(lines, "_at_put_", [row, badLine]);
  897. 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", [])])]);})]);})]);
  898. 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])]);
  899. return self;},
  900. args: ["anException", "aString"],
  901. 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'),
  902. messageSends: ["lines", "at:", unescape("%2C"), "copyFrom:to:", unescape("-"), "size", "at:put:", "streamContents:", "withIndexDo:", "nextPutAll:", "asString", "lf", "messageText:", "new"],
  903. referencedClasses: ["String", "Error"]
  904. }),
  905. smalltalk.Smalltalk);
  906. smalltalk.addMethod(
  907. unescape('_packages'),
  908. smalltalk.method({
  909. selector: unescape('packages'),
  910. category: 'packages',
  911. fn: function (){
  912. var self=this;
  913. return self.packages.all();
  914. return self;},
  915. args: [],
  916. source: unescape('packages%0A%09%22Return%20all%20Package%20instances%20in%20the%20system.%22%0A%0A%09%3Creturn%20self.packages.all%28%29%3E'),
  917. messageSends: [],
  918. referencedClasses: []
  919. }),
  920. smalltalk.Smalltalk);
  921. smalltalk.addMethod(
  922. unescape('_packageAt_'),
  923. smalltalk.method({
  924. selector: unescape('packageAt%3A'),
  925. category: 'packages',
  926. fn: function (packageName){
  927. var self=this;
  928. return self.packages[packageName];
  929. return self;},
  930. args: ["packageName"],
  931. source: unescape('packageAt%3A%20packageName%0A%20%20%20%20%20%20%20%3Creturn%20self.packages%5BpackageName%5D%3E'),
  932. messageSends: [],
  933. referencedClasses: []
  934. }),
  935. smalltalk.Smalltalk);
  936. smalltalk.addMethod(
  937. unescape('_packageAt_ifAbsent_'),
  938. smalltalk.method({
  939. selector: unescape('packageAt%3AifAbsent%3A'),
  940. category: 'packages',
  941. fn: function (packageName, aBlock){
  942. var self=this;
  943. return smalltalk.send(smalltalk.send(self, "_packageAt_", [packageName]), "_ifNil_", [aBlock]);
  944. return self;},
  945. args: ["packageName", "aBlock"],
  946. 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'),
  947. messageSends: ["ifNil:", "packageAt:"],
  948. referencedClasses: []
  949. }),
  950. smalltalk.Smalltalk);
  951. smalltalk.addMethod(
  952. unescape('_createPackage_'),
  953. smalltalk.method({
  954. selector: unescape('createPackage%3A'),
  955. category: 'private',
  956. fn: function (packageName){
  957. var self=this;
  958. return smalltalk.addPackage(packageName, nil);
  959. return self;},
  960. args: ["packageName"],
  961. source: unescape('createPackage%3A%20packageName%0A%09%22Create%20and%20bind%20a%20new%20package%20with%20given%20name%20and%20return%20it.%22%0A%0A%20%20%20%20%20%20%3Creturn%20smalltalk.addPackage%28packageName%2C%20nil%29%3E'),
  962. messageSends: [],
  963. referencedClasses: []
  964. }),
  965. smalltalk.Smalltalk);
  966. smalltalk.addMethod(
  967. unescape('_deletePackage_'),
  968. smalltalk.method({
  969. selector: unescape('deletePackage%3A'),
  970. category: 'private',
  971. fn: function (packageName){
  972. var self=this;
  973. delete smalltalk.packages[packageName];
  974. return self;},
  975. args: ["packageName"],
  976. 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'),
  977. messageSends: [],
  978. referencedClasses: []
  979. }),
  980. smalltalk.Smalltalk);
  981. smalltalk.addMethod(
  982. unescape('_removePackage_'),
  983. smalltalk.method({
  984. selector: unescape('removePackage%3A'),
  985. category: 'packages',
  986. fn: function (packageName){
  987. var self=this;
  988. var pkg=nil;
  989. pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]);
  990. smalltalk.send(smalltalk.send(pkg, "_classes", []), "_do_", [(function(each){return smalltalk.send(self, "_removeClass_", [each]);})]);
  991. smalltalk.send(self, "_deletePackage_", [packageName]);
  992. return self;},
  993. args: ["packageName"],
  994. 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'),
  995. messageSends: ["packageAt:ifAbsent:", "error:", unescape("%2C"), "do:", "classes", "removeClass:", "deletePackage:"],
  996. referencedClasses: []
  997. }),
  998. smalltalk.Smalltalk);
  999. smalltalk.addMethod(
  1000. unescape('_renamePackage_to_'),
  1001. smalltalk.method({
  1002. selector: unescape('renamePackage%3Ato%3A'),
  1003. category: 'packages',
  1004. fn: function (packageName, newName){
  1005. var self=this;
  1006. var pkg=nil;
  1007. pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]);
  1008. (($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;
  1009. smalltalk.packages[newName] = smalltalk.packages[packageName];
  1010. smalltalk.send(pkg, "_name_", [newName]);
  1011. smalltalk.send(self, "_deletePackage_", [packageName]);
  1012. return self;},
  1013. args: ["packageName", "newName"],
  1014. 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.'),
  1015. messageSends: ["packageAt:ifAbsent:", "error:", unescape("%2C"), "ifNotNil:", "packageAt:", "name:", "deletePackage:"],
  1016. referencedClasses: []
  1017. }),
  1018. smalltalk.Smalltalk);
  1019. smalltalk.addMethod(
  1020. unescape('_reservedWords'),
  1021. smalltalk.method({
  1022. selector: unescape('reservedWords'),
  1023. category: 'accessing',
  1024. fn: function (){
  1025. var self=this;
  1026. return self.reservedWords;
  1027. return self;},
  1028. args: [],
  1029. source: unescape('reservedWords%0A%09%22JavaScript%20reserved%20words%22%0A%09%3Creturn%20self.reservedWords%3E'),
  1030. messageSends: [],
  1031. referencedClasses: []
  1032. }),
  1033. smalltalk.Smalltalk);
  1034. smalltalk.addMethod(
  1035. unescape('_createPackage_properties_'),
  1036. smalltalk.method({
  1037. selector: unescape('createPackage%3Aproperties%3A'),
  1038. category: 'private',
  1039. fn: function (packageName, aDict){
  1040. var self=this;
  1041. var object=nil;
  1042. object = {};;
  1043. smalltalk.send(aDict, "_keysAndValuesDo_", [(function(key, value){return object[key] = value;})]);
  1044. return smalltalk.addPackage(packageName, object);
  1045. return self;},
  1046. args: ["packageName", "aDict"],
  1047. source: unescape('createPackage%3A%20packageName%20properties%3A%20aDict%0A%09%22Create%20and%20bind%20a%20new%20package%20with%20given%20name%20and%20return%20it.%22%0A%0A%09%7C%20object%20%7C%0A%09%3Cobject%20%3D%20%7B%7D%3B%3E.%0A%09aDict%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09%3Cobject%5Bkey%5D%20%3D%20value%3E.%0A%09%5D.%0A%20%20%20%20%20%20%20%3Creturn%20smalltalk.addPackage%28packageName%2C%20object%29%3E'),
  1048. messageSends: ["keysAndValuesDo:"],
  1049. referencedClasses: []
  1050. }),
  1051. smalltalk.Smalltalk);
  1052. smalltalk.addMethod(
  1053. unescape('_readJSObject_'),
  1054. smalltalk.method({
  1055. selector: unescape('readJSObject%3A'),
  1056. category: 'accessing',
  1057. fn: function (anObject){
  1058. var self=this;
  1059. return self.readJSObject(anObject);
  1060. return self;},
  1061. args: ["anObject"],
  1062. source: unescape('readJSObject%3A%20anObject%0A%09%3Creturn%20self.readJSObject%28anObject%29%3E'),
  1063. messageSends: [],
  1064. referencedClasses: []
  1065. }),
  1066. smalltalk.Smalltalk);
  1067. smalltalk.Smalltalk.klass.iVarNames = ['current'];
  1068. smalltalk.addMethod(
  1069. unescape('_current'),
  1070. smalltalk.method({
  1071. selector: unescape('current'),
  1072. category: 'accessing',
  1073. fn: function (){
  1074. var self=this;
  1075. return smalltalk;
  1076. return self;},
  1077. args: [],
  1078. source: unescape('current%0A%09%3Creturn%20smalltalk%3E'),
  1079. messageSends: [],
  1080. referencedClasses: []
  1081. }),
  1082. smalltalk.Smalltalk.klass);
  1083. smalltalk.addClass('Package', smalltalk.Object, ['commitPathJs', 'commitPathSt'], 'Kernel');
  1084. 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.')
  1085. smalltalk.addMethod(
  1086. unescape('_name'),
  1087. smalltalk.method({
  1088. selector: unescape('name'),
  1089. category: 'accessing',
  1090. fn: function (){
  1091. var self=this;
  1092. return self.pkgName;
  1093. return self;},
  1094. args: [],
  1095. source: unescape('name%0A%09%3Creturn%20self.pkgName%3E'),
  1096. messageSends: [],
  1097. referencedClasses: []
  1098. }),
  1099. smalltalk.Package);
  1100. smalltalk.addMethod(
  1101. unescape('_name_'),
  1102. smalltalk.method({
  1103. selector: unescape('name%3A'),
  1104. category: 'accessing',
  1105. fn: function (aString){
  1106. var self=this;
  1107. self.pkgName = aString;
  1108. return self;},
  1109. args: ["aString"],
  1110. source: unescape('name%3A%20aString%0A%09%3Cself.pkgName%20%3D%20aString%3E'),
  1111. messageSends: [],
  1112. referencedClasses: []
  1113. }),
  1114. smalltalk.Package);
  1115. smalltalk.addMethod(
  1116. unescape('_classes'),
  1117. smalltalk.method({
  1118. selector: unescape('classes'),
  1119. category: 'classes',
  1120. fn: function (){
  1121. var self=this;
  1122. 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]);})]);
  1123. return self;},
  1124. args: [],
  1125. 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'),
  1126. messageSends: ["select:", "classes", "current", unescape("%3D%3D"), "package"],
  1127. referencedClasses: ["Smalltalk"]
  1128. }),
  1129. smalltalk.Package);
  1130. smalltalk.addMethod(
  1131. unescape('_printString'),
  1132. smalltalk.method({
  1133. selector: unescape('printString'),
  1134. category: 'printing',
  1135. fn: function (){
  1136. var self=this;
  1137. return smalltalk.send(self, "_name", []);
  1138. return self;},
  1139. args: [],
  1140. source: unescape('printString%0A%09%5Eself%20name'),
  1141. messageSends: ["name"],
  1142. referencedClasses: []
  1143. }),
  1144. smalltalk.Package);
  1145. smalltalk.addMethod(
  1146. unescape('_dependencies'),
  1147. smalltalk.method({
  1148. selector: unescape('dependencies'),
  1149. category: 'accessing',
  1150. fn: function (){
  1151. var self=this;
  1152. return smalltalk.send(self, "_propertyAt_ifAbsent_", ["dependencies", (function(){return [];})]);
  1153. return self;},
  1154. args: [],
  1155. source: unescape('dependencies%0A%09%5Eself%20propertyAt%3A%20%27dependencies%27%20ifAbsent%3A%20%5B%23%28%29%5D'),
  1156. messageSends: ["propertyAt:ifAbsent:"],
  1157. referencedClasses: []
  1158. }),
  1159. smalltalk.Package);
  1160. smalltalk.addMethod(
  1161. unescape('_dependencies_'),
  1162. smalltalk.method({
  1163. selector: unescape('dependencies%3A'),
  1164. category: 'accessing',
  1165. fn: function (anArray){
  1166. var self=this;
  1167. return smalltalk.send(self, "_propertyAt_put_", ["dependencies", anArray]);
  1168. return self;},
  1169. args: ["anArray"],
  1170. source: unescape('dependencies%3A%20anArray%0A%09%5Eself%20propertyAt%3A%20%27dependencies%27%20put%3A%20anArray'),
  1171. messageSends: ["propertyAt:put:"],
  1172. referencedClasses: []
  1173. }),
  1174. smalltalk.Package);
  1175. smalltalk.addMethod(
  1176. unescape('_properties'),
  1177. smalltalk.method({
  1178. selector: unescape('properties'),
  1179. category: 'accessing',
  1180. fn: function (){
  1181. var self=this;
  1182. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_readJSObject_", [smalltalk.send(self, "_basicAt_", ["properties"])]);
  1183. return self;},
  1184. args: [],
  1185. source: unescape('properties%0A%09%5ESmalltalk%20current%20readJSObject%3A%20%28self%20basicAt%3A%20%27properties%27%29'),
  1186. messageSends: ["readJSObject:", "current", "basicAt:"],
  1187. referencedClasses: ["Smalltalk"]
  1188. }),
  1189. smalltalk.Package);
  1190. smalltalk.addMethod(
  1191. unescape('_propertiesAsJSON'),
  1192. smalltalk.method({
  1193. selector: unescape('propertiesAsJSON'),
  1194. category: 'private',
  1195. fn: function (){
  1196. var self=this;
  1197. return JSON.stringify(self.properties);
  1198. return self;},
  1199. args: [],
  1200. source: unescape('propertiesAsJSON%0A%09%3Creturn%20JSON.stringify%28self.properties%29%3E'),
  1201. messageSends: [],
  1202. referencedClasses: []
  1203. }),
  1204. smalltalk.Package);
  1205. smalltalk.addMethod(
  1206. unescape('_properties_'),
  1207. smalltalk.method({
  1208. selector: unescape('properties%3A'),
  1209. category: 'accessing',
  1210. fn: function (aDict){
  1211. var self=this;
  1212. var object=nil;
  1213. object = {};;
  1214. smalltalk.send(aDict, "_keysAndValuesDo_", [(function(key, value){return object[key] = value;})]);
  1215. return self.properties = object;
  1216. return self;},
  1217. args: ["aDict"],
  1218. source: unescape('properties%3A%20aDict%0A%09%22We%20store%20it%20as%20a%20javascript%20object.%22%0A%09%0A%09%7C%20object%20%7C%0A%09%3Cobject%20%3D%20%7B%7D%3B%3E.%0A%09aDict%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09%3Cobject%5Bkey%5D%20%3D%20value%3E.%0A%09%5D.%0A%09%3Creturn%20self.properties%20%3D%20object%3E'),
  1219. messageSends: ["keysAndValuesDo:"],
  1220. referencedClasses: []
  1221. }),
  1222. smalltalk.Package);
  1223. smalltalk.addMethod(
  1224. unescape('_jsProperties'),
  1225. smalltalk.method({
  1226. selector: unescape('jsProperties'),
  1227. category: 'private',
  1228. fn: function (){
  1229. var self=this;
  1230. return self.properties;
  1231. return self;},
  1232. args: [],
  1233. source: unescape('jsProperties%0A%09%3Creturn%20self.properties%3E'),
  1234. messageSends: [],
  1235. referencedClasses: []
  1236. }),
  1237. smalltalk.Package);
  1238. smalltalk.addMethod(
  1239. unescape('_jsProperties_'),
  1240. smalltalk.method({
  1241. selector: unescape('jsProperties%3A'),
  1242. category: 'private',
  1243. fn: function (aJSObject){
  1244. var self=this;
  1245. return self.properties = aJSObject;
  1246. return self;},
  1247. args: ["aJSObject"],
  1248. source: unescape('jsProperties%3A%20aJSObject%0A%09%3Creturn%20self.properties%20%3D%20aJSObject%3E'),
  1249. messageSends: [],
  1250. referencedClasses: []
  1251. }),
  1252. smalltalk.Package);
  1253. smalltalk.addMethod(
  1254. unescape('_propertyAt_'),
  1255. smalltalk.method({
  1256. selector: unescape('propertyAt%3A'),
  1257. category: 'properties',
  1258. fn: function (key){
  1259. var self=this;
  1260. return self.properties[key];
  1261. return self;},
  1262. args: ["key"],
  1263. source: unescape('propertyAt%3A%20key%0A%0A%09%3Creturn%20self.properties%5Bkey%5D%3E'),
  1264. messageSends: [],
  1265. referencedClasses: []
  1266. }),
  1267. smalltalk.Package);
  1268. smalltalk.addMethod(
  1269. unescape('_propertyAt_put_'),
  1270. smalltalk.method({
  1271. selector: unescape('propertyAt%3Aput%3A'),
  1272. category: 'properties',
  1273. fn: function (key, value){
  1274. var self=this;
  1275. return self.properties[key] = value;
  1276. return self;},
  1277. args: ["key", "value"],
  1278. source: unescape('propertyAt%3A%20key%20put%3A%20value%0A%0A%09%3Creturn%20self.properties%5Bkey%5D%20%3D%20value%3E'),
  1279. messageSends: [],
  1280. referencedClasses: []
  1281. }),
  1282. smalltalk.Package);
  1283. smalltalk.addMethod(
  1284. unescape('_propertyAt_ifAbsent_'),
  1285. smalltalk.method({
  1286. selector: unescape('propertyAt%3AifAbsent%3A'),
  1287. category: 'properties',
  1288. fn: function (key, block){
  1289. var self=this;
  1290. return (($receiver = smalltalk.send(self, "_propertyAt_", [key])) == nil || $receiver == undefined) ? (function(){return smalltalk.send(block, "_value", []);})() : $receiver;
  1291. return self;},
  1292. args: ["key", "block"],
  1293. source: unescape('propertyAt%3A%20key%20ifAbsent%3A%20block%0A%0A%09%5E%28self%20propertyAt%3A%20key%29%20ifNil%3A%20%5Bblock%20value%5D'),
  1294. messageSends: ["ifNil:", "propertyAt:", "value"],
  1295. referencedClasses: []
  1296. }),
  1297. smalltalk.Package);
  1298. smalltalk.addMethod(
  1299. unescape('_commitPathSt_'),
  1300. smalltalk.method({
  1301. selector: unescape('commitPathSt%3A'),
  1302. category: 'accessing',
  1303. fn: function (aString){
  1304. var self=this;
  1305. self['@commitPathSt']=aString;
  1306. return self;},
  1307. args: ["aString"],
  1308. source: unescape('commitPathSt%3A%20aString%0A%09commitPathSt%A0%3A%3D%20aString'),
  1309. messageSends: [],
  1310. referencedClasses: []
  1311. }),
  1312. smalltalk.Package);
  1313. smalltalk.addMethod(
  1314. unescape('_commitPathJs'),
  1315. smalltalk.method({
  1316. selector: unescape('commitPathJs'),
  1317. category: 'accessing',
  1318. fn: function (){
  1319. var self=this;
  1320. return (($receiver = self['@commitPathJs']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_defaultCommitPathJs", []);})() : $receiver;
  1321. return self;},
  1322. args: [],
  1323. source: unescape('commitPathJs%0A%09%5E%20commitPathJs%20ifNil%3A%20%5Bself%20class%20defaultCommitPathJs%5D'),
  1324. messageSends: ["ifNil:", "defaultCommitPathJs", "class"],
  1325. referencedClasses: []
  1326. }),
  1327. smalltalk.Package);
  1328. smalltalk.addMethod(
  1329. unescape('_commitPathSt'),
  1330. smalltalk.method({
  1331. selector: unescape('commitPathSt'),
  1332. category: 'accessing',
  1333. fn: function (){
  1334. var self=this;
  1335. return (($receiver = self['@commitPathSt']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_defaultCommitPathSt", []);})() : $receiver;
  1336. return self;},
  1337. args: [],
  1338. source: unescape('commitPathSt%0A%09%5E%20commitPathSt%20ifNil%3A%20%5Bself%20class%20defaultCommitPathSt%5D'),
  1339. messageSends: ["ifNil:", "defaultCommitPathSt", "class"],
  1340. referencedClasses: []
  1341. }),
  1342. smalltalk.Package);
  1343. smalltalk.addMethod(
  1344. unescape('_commitPathJs_'),
  1345. smalltalk.method({
  1346. selector: unescape('commitPathJs%3A'),
  1347. category: 'accessing',
  1348. fn: function (aString){
  1349. var self=this;
  1350. self['@commitPathJs']=aString;
  1351. return self;},
  1352. args: ["aString"],
  1353. source: unescape('commitPathJs%3A%20aString%0A%09commitPathJs%A0%3A%3D%20aString'),
  1354. messageSends: [],
  1355. referencedClasses: []
  1356. }),
  1357. smalltalk.Package);
  1358. smalltalk.Package.klass.iVarNames = ['defaultCommitPathJs','defaultCommitPathSt'];
  1359. smalltalk.addMethod(
  1360. unescape('_named_'),
  1361. smalltalk.method({
  1362. selector: unescape('named%3A'),
  1363. category: 'accessing',
  1364. fn: function (aPackageName){
  1365. var self=this;
  1366. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_", [aPackageName]);
  1367. return self;},
  1368. args: ["aPackageName"],
  1369. source: unescape('named%3A%20aPackageName%0A%0A%09%5ESmalltalk%20current%20packageAt%3A%20aPackageName'),
  1370. messageSends: ["packageAt:", "current"],
  1371. referencedClasses: ["Smalltalk"]
  1372. }),
  1373. smalltalk.Package.klass);
  1374. smalltalk.addMethod(
  1375. unescape('_named_ifAbsent_'),
  1376. smalltalk.method({
  1377. selector: unescape('named%3AifAbsent%3A'),
  1378. category: 'accessing',
  1379. fn: function (aPackageName, aBlock){
  1380. var self=this;
  1381. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_ifAbsent_", [aPackageName, aBlock]);
  1382. return self;},
  1383. args: ["aPackageName", "aBlock"],
  1384. source: unescape('named%3A%20aPackageName%20ifAbsent%3A%20aBlock%0A%0A%09%5ESmalltalk%20current%20packageAt%3A%20aPackageName%20ifAbsent%3A%20aBlock'),
  1385. messageSends: ["packageAt:ifAbsent:", "current"],
  1386. referencedClasses: ["Smalltalk"]
  1387. }),
  1388. smalltalk.Package.klass);
  1389. smalltalk.addMethod(
  1390. unescape('_defaultCommitPathSt'),
  1391. smalltalk.method({
  1392. selector: unescape('defaultCommitPathSt'),
  1393. category: 'accessing',
  1394. fn: function (){
  1395. var self=this;
  1396. return (($receiver = self['@defaultCommitPathSt']) == nil || $receiver == undefined) ? (function(){return self['@defaultCommitPathSt']="st";})() : $receiver;
  1397. return self;},
  1398. args: [],
  1399. source: unescape('defaultCommitPathSt%0A%09%5E%20defaultCommitPathSt%20ifNil%3A%20%5B%20defaultCommitPathSt%20%3A%3D%20%27st%27%5D'),
  1400. messageSends: ["ifNil:"],
  1401. referencedClasses: []
  1402. }),
  1403. smalltalk.Package.klass);
  1404. smalltalk.addMethod(
  1405. unescape('_defaultCommitPathJs'),
  1406. smalltalk.method({
  1407. selector: unescape('defaultCommitPathJs'),
  1408. category: 'accessing',
  1409. fn: function (){
  1410. var self=this;
  1411. return (($receiver = self['@defaultCommitPathJs']) == nil || $receiver == undefined) ? (function(){return self['@defaultCommitPathJs']="js";})() : $receiver;
  1412. return self;},
  1413. args: [],
  1414. source: unescape('defaultCommitPathJs%0A%09%5E%20defaultCommitPathJs%20ifNil%3A%20%5B%20defaultCommitPathJs%20%3A%3D%20%27js%27%5D'),
  1415. messageSends: ["ifNil:"],
  1416. referencedClasses: []
  1417. }),
  1418. smalltalk.Package.klass);
  1419. smalltalk.addMethod(
  1420. unescape('_defaultCommitPathSt_'),
  1421. smalltalk.method({
  1422. selector: unescape('defaultCommitPathSt%3A'),
  1423. category: 'accessing',
  1424. fn: function (aString){
  1425. var self=this;
  1426. self['@defaultCommitPathSt']=aString;
  1427. return self;},
  1428. args: ["aString"],
  1429. source: unescape('defaultCommitPathSt%3A%20aString%0A%09defaultCommitPathSt%20%3A%3D%20aString'),
  1430. messageSends: [],
  1431. referencedClasses: []
  1432. }),
  1433. smalltalk.Package.klass);
  1434. smalltalk.addMethod(
  1435. unescape('_defaultCommitPathJs_'),
  1436. smalltalk.method({
  1437. selector: unescape('defaultCommitPathJs%3A'),
  1438. category: 'accessing',
  1439. fn: function (aString){
  1440. var self=this;
  1441. self['@defaultCommitPathJs']=aString;
  1442. return self;},
  1443. args: ["aString"],
  1444. source: unescape('defaultCommitPathJs%3A%20aString%0A%09defaultCommitPathJs%20%3A%3D%20aString'),
  1445. messageSends: [],
  1446. referencedClasses: []
  1447. }),
  1448. smalltalk.Package.klass);
  1449. smalltalk.addMethod(
  1450. unescape('_resetCommitPaths'),
  1451. smalltalk.method({
  1452. selector: unescape('resetCommitPaths'),
  1453. category: 'reset',
  1454. fn: function (){
  1455. var self=this;
  1456. self['@defaultCommitPathJs']=nil;
  1457. self['@defaultCommitPathSt']=nil;
  1458. return self;},
  1459. args: [],
  1460. source: unescape('resetCommitPaths%0A%09defaultCommitPathJs%20%3A%3D%20nil.%0A%09defaultCommitPathSt%20%3A%3D%20nil.'),
  1461. messageSends: [],
  1462. referencedClasses: []
  1463. }),
  1464. smalltalk.Package.klass);
  1465. smalltalk.addClass('Behavior', smalltalk.Object, [], 'Kernel');
  1466. smalltalk.addMethod(
  1467. unescape('_new'),
  1468. smalltalk.method({
  1469. selector: unescape('new'),
  1470. category: 'instance creation',
  1471. fn: function (){
  1472. var self=this;
  1473. return smalltalk.send(smalltalk.send(self, "_basicNew", []), "_initialize", []);
  1474. return self;},
  1475. args: [],
  1476. source: unescape('new%0A%09%5Eself%20basicNew%20initialize'),
  1477. messageSends: ["initialize", "basicNew"],
  1478. referencedClasses: []
  1479. }),
  1480. smalltalk.Behavior);
  1481. smalltalk.addMethod(
  1482. unescape('_basicNew'),
  1483. smalltalk.method({
  1484. selector: unescape('basicNew'),
  1485. category: 'instance creation',
  1486. fn: function (){
  1487. var self=this;
  1488. return new self.fn();
  1489. return self;},
  1490. args: [],
  1491. source: unescape('basicNew%0A%09%3Creturn%20new%20self.fn%28%29%3E'),
  1492. messageSends: [],
  1493. referencedClasses: []
  1494. }),
  1495. smalltalk.Behavior);
  1496. smalltalk.addMethod(
  1497. unescape('_name'),
  1498. smalltalk.method({
  1499. selector: unescape('name'),
  1500. category: 'accessing',
  1501. fn: function (){
  1502. var self=this;
  1503. return self.className || nil;
  1504. return self;},
  1505. args: [],
  1506. source: unescape('name%0A%09%3Creturn%20self.className%20%7C%7C%20nil%3E'),
  1507. messageSends: [],
  1508. referencedClasses: []
  1509. }),
  1510. smalltalk.Behavior);
  1511. smalltalk.addMethod(
  1512. unescape('_superclass'),
  1513. smalltalk.method({
  1514. selector: unescape('superclass'),
  1515. category: 'accessing',
  1516. fn: function (){
  1517. var self=this;
  1518. return self.superclass || nil;
  1519. return self;},
  1520. args: [],
  1521. source: unescape('superclass%0A%09%3Creturn%20self.superclass%20%7C%7C%20nil%3E'),
  1522. messageSends: [],
  1523. referencedClasses: []
  1524. }),
  1525. smalltalk.Behavior);
  1526. smalltalk.addMethod(
  1527. unescape('_subclasses'),
  1528. smalltalk.method({
  1529. selector: unescape('subclasses'),
  1530. category: 'accessing',
  1531. fn: function (){
  1532. var self=this;
  1533. return smalltalk.subclasses(self);
  1534. return self;},
  1535. args: [],
  1536. source: unescape('subclasses%0A%09%3Creturn%20smalltalk.subclasses%28self%29%3E'),
  1537. messageSends: [],
  1538. referencedClasses: []
  1539. }),
  1540. smalltalk.Behavior);
  1541. smalltalk.addMethod(
  1542. unescape('_allSubclasses'),
  1543. smalltalk.method({
  1544. selector: unescape('allSubclasses'),
  1545. category: 'accessing',
  1546. fn: function (){
  1547. var self=this;
  1548. var result=nil;
  1549. result=smalltalk.send(self, "_subclasses", []);
  1550. smalltalk.send(smalltalk.send(self, "_subclasses", []), "_do_", [(function(each){return smalltalk.send(result, "_addAll_", [smalltalk.send(each, "_allSubclasses", [])]);})]);
  1551. return result;
  1552. return self;},
  1553. args: [],
  1554. 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'),
  1555. messageSends: ["subclasses", "do:", "addAll:", "allSubclasses"],
  1556. referencedClasses: []
  1557. }),
  1558. smalltalk.Behavior);
  1559. smalltalk.addMethod(
  1560. unescape('_withAllSubclasses'),
  1561. smalltalk.method({
  1562. selector: unescape('withAllSubclasses'),
  1563. category: 'accessing',
  1564. fn: function (){
  1565. var self=this;
  1566. return (function($rec){smalltalk.send($rec, "_addAll_", [smalltalk.send(self, "_allSubclasses", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.Array || Array), "_with_", [self]));
  1567. return self;},
  1568. args: [],
  1569. source: unescape('withAllSubclasses%0A%09%5E%28Array%20with%3A%20self%29%20addAll%3A%20self%20allSubclasses%3B%20yourself'),
  1570. messageSends: ["addAll:", "allSubclasses", "yourself", "with:"],
  1571. referencedClasses: ["Array"]
  1572. }),
  1573. smalltalk.Behavior);
  1574. smalltalk.addMethod(
  1575. unescape('_prototype'),
  1576. smalltalk.method({
  1577. selector: unescape('prototype'),
  1578. category: 'accessing',
  1579. fn: function (){
  1580. var self=this;
  1581. return self.fn.prototype;
  1582. return self;},
  1583. args: [],
  1584. source: unescape('prototype%0A%09%3Creturn%20self.fn.prototype%3E'),
  1585. messageSends: [],
  1586. referencedClasses: []
  1587. }),
  1588. smalltalk.Behavior);
  1589. smalltalk.addMethod(
  1590. unescape('_methodDictionary'),
  1591. smalltalk.method({
  1592. selector: unescape('methodDictionary'),
  1593. category: 'accessing',
  1594. fn: function (){
  1595. var self=this;
  1596. var dict = smalltalk.Dictionary._new();
  1597. var methods = self.fn.prototype.methods;
  1598. for(var i in methods) {
  1599. if(methods[i].selector) {
  1600. dict._at_put_(methods[i].selector, methods[i]);
  1601. }
  1602. };
  1603. return dict;
  1604. return self;},
  1605. args: [],
  1606. 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'),
  1607. messageSends: [],
  1608. referencedClasses: []
  1609. }),
  1610. smalltalk.Behavior);
  1611. smalltalk.addMethod(
  1612. unescape('_methodsFor_'),
  1613. smalltalk.method({
  1614. selector: unescape('methodsFor%3A'),
  1615. category: 'accessing',
  1616. fn: function (aString){
  1617. var self=this;
  1618. return (function($rec){smalltalk.send($rec, "_class_category_", [self, aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.ClassCategoryReader || ClassCategoryReader), "_new", []));
  1619. return self;},
  1620. args: ["aString"],
  1621. 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'),
  1622. messageSends: ["class:category:", "yourself", "new"],
  1623. referencedClasses: ["ClassCategoryReader"]
  1624. }),
  1625. smalltalk.Behavior);
  1626. smalltalk.addMethod(
  1627. unescape('_addCompiledMethod_'),
  1628. smalltalk.method({
  1629. selector: unescape('addCompiledMethod%3A'),
  1630. category: 'accessing',
  1631. fn: function (aMethod){
  1632. var self=this;
  1633. smalltalk.addMethod(aMethod.selector._asSelector(), aMethod, self);
  1634. return self;},
  1635. args: ["aMethod"],
  1636. source: unescape('addCompiledMethod%3A%20aMethod%0A%09%3Csmalltalk.addMethod%28aMethod.selector._asSelector%28%29%2C%20aMethod%2C%20self%29%3E'),
  1637. messageSends: [],
  1638. referencedClasses: []
  1639. }),
  1640. smalltalk.Behavior);
  1641. smalltalk.addMethod(
  1642. unescape('_instanceVariableNames'),
  1643. smalltalk.method({
  1644. selector: unescape('instanceVariableNames'),
  1645. category: 'accessing',
  1646. fn: function (){
  1647. var self=this;
  1648. return self.iVarNames;
  1649. return self;},
  1650. args: [],
  1651. source: unescape('instanceVariableNames%0A%09%3Creturn%20self.iVarNames%3E'),
  1652. messageSends: [],
  1653. referencedClasses: []
  1654. }),
  1655. smalltalk.Behavior);
  1656. smalltalk.addMethod(
  1657. unescape('_comment'),
  1658. smalltalk.method({
  1659. selector: unescape('comment'),
  1660. category: 'accessing',
  1661. fn: function (){
  1662. var self=this;
  1663. return (($receiver = smalltalk.send(self, "_basicAt_", ["comment"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  1664. return self;},
  1665. args: [],
  1666. source: unescape('comment%0A%20%20%20%20%5E%28self%20basicAt%3A%20%27comment%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1667. messageSends: ["ifNil:", "basicAt:"],
  1668. referencedClasses: []
  1669. }),
  1670. smalltalk.Behavior);
  1671. smalltalk.addMethod(
  1672. unescape('_comment_'),
  1673. smalltalk.method({
  1674. selector: unescape('comment%3A'),
  1675. category: 'accessing',
  1676. fn: function (aString){
  1677. var self=this;
  1678. smalltalk.send(self, "_basicAt_put_", ["comment", aString]);
  1679. return self;},
  1680. args: ["aString"],
  1681. source: unescape('comment%3A%20aString%0A%20%20%20%20self%20basicAt%3A%20%27comment%27%20put%3A%20aString'),
  1682. messageSends: ["basicAt:put:"],
  1683. referencedClasses: []
  1684. }),
  1685. smalltalk.Behavior);
  1686. smalltalk.addMethod(
  1687. unescape('_commentStamp'),
  1688. smalltalk.method({
  1689. selector: unescape('commentStamp'),
  1690. category: 'accessing',
  1691. fn: function (){
  1692. var self=this;
  1693. return (function($rec){smalltalk.send($rec, "_class_", [self]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.ClassCommentReader || ClassCommentReader), "_new", []));
  1694. return self;},
  1695. args: [],
  1696. source: unescape('commentStamp%0A%20%20%20%20%5EClassCommentReader%20new%0A%09class%3A%20self%3B%0A%09yourself'),
  1697. messageSends: ["class:", "yourself", "new"],
  1698. referencedClasses: ["ClassCommentReader"]
  1699. }),
  1700. smalltalk.Behavior);
  1701. smalltalk.addMethod(
  1702. unescape('_removeCompiledMethod_'),
  1703. smalltalk.method({
  1704. selector: unescape('removeCompiledMethod%3A'),
  1705. category: 'accessing',
  1706. fn: function (aMethod){
  1707. var self=this;
  1708. delete self.fn.prototype[aMethod.selector._asSelector()];
  1709. delete self.fn.prototype.methods[aMethod.selector];
  1710. smalltalk.init(self);;
  1711. return self;},
  1712. args: ["aMethod"],
  1713. 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'),
  1714. messageSends: [],
  1715. referencedClasses: []
  1716. }),
  1717. smalltalk.Behavior);
  1718. smalltalk.addMethod(
  1719. unescape('_inheritsFrom_'),
  1720. smalltalk.method({
  1721. selector: unescape('inheritsFrom%3A'),
  1722. category: 'instance creation',
  1723. fn: function (aClass){
  1724. var self=this;
  1725. return smalltalk.send(smalltalk.send(aClass, "_allSubclasses", []), "_includes_", [self]);
  1726. return self;},
  1727. args: ["aClass"],
  1728. source: unescape('inheritsFrom%3A%20aClass%0A%09%5EaClass%20allSubclasses%20includes%3A%20self'),
  1729. messageSends: ["includes:", "allSubclasses"],
  1730. referencedClasses: []
  1731. }),
  1732. smalltalk.Behavior);
  1733. smalltalk.addMethod(
  1734. unescape('_protocols'),
  1735. smalltalk.method({
  1736. selector: unescape('protocols'),
  1737. category: 'accessing',
  1738. fn: function (){
  1739. var self=this;
  1740. var protocols=nil;
  1741. protocols=smalltalk.send((smalltalk.Array || Array), "_new", []);
  1742. 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", [])]);})]));})]);
  1743. return smalltalk.send(protocols, "_sort", []);
  1744. return self;},
  1745. args: [],
  1746. 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'),
  1747. messageSends: ["new", "do:", "methodDictionary", "ifFalse:", "includes:", "category", "add:", "sort"],
  1748. referencedClasses: ["Array"]
  1749. }),
  1750. smalltalk.Behavior);
  1751. smalltalk.addMethod(
  1752. unescape('_protocolsDo_'),
  1753. smalltalk.method({
  1754. selector: unescape('protocolsDo%3A'),
  1755. category: 'accessing',
  1756. fn: function (aBlock){
  1757. var self=this;
  1758. var methodsByCategory=nil;
  1759. methodsByCategory=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  1760. 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]);})]);
  1761. smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(category){return smalltalk.send(aBlock, "_value_value_", [category, smalltalk.send(methodsByCategory, "_at_", [category])]);})]);
  1762. return self;},
  1763. args: ["aBlock"],
  1764. 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'),
  1765. messageSends: ["new", "do:", "values", "methodDictionary", "add:", "at:ifAbsentPut:", "category", "protocols", "value:value:", "at:"],
  1766. referencedClasses: ["Dictionary", "Array"]
  1767. }),
  1768. smalltalk.Behavior);
  1769. smalltalk.addMethod(
  1770. unescape('_allInstanceVariableNames'),
  1771. smalltalk.method({
  1772. selector: unescape('allInstanceVariableNames'),
  1773. category: 'accessing',
  1774. fn: function (){
  1775. var self=this;
  1776. var result=nil;
  1777. result=smalltalk.send(smalltalk.send(self, "_instanceVariableNames", []), "_copy", []);
  1778. (($receiver = smalltalk.send(self, "_superclass", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(result, "_addAll_", [smalltalk.send(smalltalk.send(self, "_superclass", []), "_allInstanceVariableNames", [])]);})() : nil;
  1779. return result;
  1780. return self;},
  1781. args: [],
  1782. 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'),
  1783. messageSends: ["copy", "instanceVariableNames", "ifNotNil:", "superclass", "addAll:", "allInstanceVariableNames"],
  1784. referencedClasses: []
  1785. }),
  1786. smalltalk.Behavior);
  1787. smalltalk.addMethod(
  1788. unescape('_methodAt_'),
  1789. smalltalk.method({
  1790. selector: unescape('methodAt%3A'),
  1791. category: 'accessing',
  1792. fn: function (aString){
  1793. var self=this;
  1794. return smalltalk.methods(self)[aString];
  1795. return self;},
  1796. args: ["aString"],
  1797. source: unescape('methodAt%3A%20aString%0A%09%3Creturn%20smalltalk.methods%28self%29%5BaString%5D%3E'),
  1798. messageSends: [],
  1799. referencedClasses: []
  1800. }),
  1801. smalltalk.Behavior);
  1802. smalltalk.addMethod(
  1803. unescape('_methodsFor_stamp_'),
  1804. smalltalk.method({
  1805. selector: unescape('methodsFor%3Astamp%3A'),
  1806. category: 'accessing',
  1807. fn: function (aString, aStamp){
  1808. var self=this;
  1809. return smalltalk.send(self, "_methodsFor_", [aString]);
  1810. return self;},
  1811. args: ["aString", "aStamp"],
  1812. 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'),
  1813. messageSends: ["methodsFor:"],
  1814. referencedClasses: []
  1815. }),
  1816. smalltalk.Behavior);
  1817. smalltalk.addMethod(
  1818. unescape('_commentStamp_prior_'),
  1819. smalltalk.method({
  1820. selector: unescape('commentStamp%3Aprior%3A'),
  1821. category: 'accessing',
  1822. fn: function (aStamp, prior){
  1823. var self=this;
  1824. return smalltalk.send(self, "_commentStamp", []);
  1825. return self;},
  1826. args: ["aStamp", "prior"],
  1827. source: unescape('commentStamp%3A%20aStamp%20prior%3A%20prior%0A%20%20%20%20%20%20%20%20%5Eself%20commentStamp'),
  1828. messageSends: ["commentStamp"],
  1829. referencedClasses: []
  1830. }),
  1831. smalltalk.Behavior);
  1832. smalltalk.addMethod(
  1833. unescape('_compile_'),
  1834. smalltalk.method({
  1835. selector: unescape('compile%3A'),
  1836. category: 'compiling',
  1837. fn: function (aString){
  1838. var self=this;
  1839. smalltalk.send(self, "_compile_category_", [aString, ""]);
  1840. return self;},
  1841. args: ["aString"],
  1842. source: unescape('compile%3A%20aString%0A%09self%20compile%3A%20aString%20category%3A%20%27%27'),
  1843. messageSends: ["compile:category:"],
  1844. referencedClasses: []
  1845. }),
  1846. smalltalk.Behavior);
  1847. smalltalk.addMethod(
  1848. unescape('_compile_category_'),
  1849. smalltalk.method({
  1850. selector: unescape('compile%3Acategory%3A'),
  1851. category: 'compiling',
  1852. fn: function (aString, anotherString){
  1853. var self=this;
  1854. var method=nil;
  1855. method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self]);
  1856. smalltalk.send(method, "_category_", [anotherString]);
  1857. smalltalk.send(self, "_addCompiledMethod_", [method]);
  1858. return self;},
  1859. args: ["aString", "anotherString"],
  1860. 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'),
  1861. messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
  1862. referencedClasses: ["Compiler"]
  1863. }),
  1864. smalltalk.Behavior);
  1865. smalltalk.addClass('Class', smalltalk.Behavior, [], 'Kernel');
  1866. smalltalk.addMethod(
  1867. unescape('_category'),
  1868. smalltalk.method({
  1869. selector: unescape('category'),
  1870. category: 'accessing',
  1871. fn: function (){
  1872. var self=this;
  1873. return (($receiver = smalltalk.send(self, "_package", [])) == nil || $receiver == undefined) ? (function(){return "Unclassified";})() : (function(){return smalltalk.send(smalltalk.send(self, "_package", []), "_name", []);})();
  1874. return self;},
  1875. args: [],
  1876. source: unescape('category%0A%09%5Eself%20package%20ifNil%3A%20%5B%27Unclassified%27%5D%20ifNotNil%3A%20%5Bself%20package%20name%5D'),
  1877. messageSends: ["ifNil:ifNotNil:", "package", "name"],
  1878. referencedClasses: []
  1879. }),
  1880. smalltalk.Class);
  1881. smalltalk.addMethod(
  1882. unescape('_subclass_instanceVariableNames_'),
  1883. smalltalk.method({
  1884. selector: unescape('subclass%3AinstanceVariableNames%3A'),
  1885. category: 'class creation',
  1886. fn: function (aString, anotherString){
  1887. var self=this;
  1888. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
  1889. return self;},
  1890. args: ["aString", "anotherString"],
  1891. 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'),
  1892. messageSends: ["subclass:instanceVariableNames:package:"],
  1893. referencedClasses: []
  1894. }),
  1895. smalltalk.Class);
  1896. smalltalk.addMethod(
  1897. unescape('_subclass_instanceVariableNames_category_'),
  1898. smalltalk.method({
  1899. selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
  1900. category: 'class creation',
  1901. fn: function (aString, aString2, aString3){
  1902. var self=this;
  1903. smalltalk.send(self, "_deprecatedAPI", []);
  1904. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  1905. return self;},
  1906. args: ["aString", "aString2", "aString3"],
  1907. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20category%3A%20aString3%0A%09%22Kept%20for%20compatibility.%22%0A%09self%20deprecatedAPI.%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  1908. messageSends: ["deprecatedAPI", "subclass:instanceVariableNames:package:"],
  1909. referencedClasses: []
  1910. }),
  1911. smalltalk.Class);
  1912. smalltalk.addMethod(
  1913. unescape('_isClass'),
  1914. smalltalk.method({
  1915. selector: unescape('isClass'),
  1916. category: 'testing',
  1917. fn: function (){
  1918. var self=this;
  1919. return true;
  1920. return self;},
  1921. args: [],
  1922. source: unescape('isClass%0A%09%5Etrue'),
  1923. messageSends: [],
  1924. referencedClasses: []
  1925. }),
  1926. smalltalk.Class);
  1927. smalltalk.addMethod(
  1928. unescape('_printString'),
  1929. smalltalk.method({
  1930. selector: unescape('printString'),
  1931. category: 'printing',
  1932. fn: function (){
  1933. var self=this;
  1934. return smalltalk.send(self, "_name", []);
  1935. return self;},
  1936. args: [],
  1937. source: unescape('printString%0A%09%5Eself%20name'),
  1938. messageSends: ["name"],
  1939. referencedClasses: []
  1940. }),
  1941. smalltalk.Class);
  1942. smalltalk.addMethod(
  1943. unescape('_rename_'),
  1944. smalltalk.method({
  1945. selector: unescape('rename%3A'),
  1946. category: 'accessing',
  1947. fn: function (aString){
  1948. var self=this;
  1949. smalltalk[aString] = self;
  1950. delete smalltalk[self.className];
  1951. self.className = aString;
  1952. ;
  1953. return self;},
  1954. args: ["aString"],
  1955. 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'),
  1956. messageSends: [],
  1957. referencedClasses: []
  1958. }),
  1959. smalltalk.Class);
  1960. smalltalk.addMethod(
  1961. unescape('_subclass_instanceVariableNames_classVariableNames_poolDictionaries_category_'),
  1962. smalltalk.method({
  1963. selector: unescape('subclass%3AinstanceVariableNames%3AclassVariableNames%3ApoolDictionaries%3Acategory%3A'),
  1964. category: 'class creation',
  1965. fn: function (aString, aString2, classVars, pools, aString3){
  1966. var self=this;
  1967. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  1968. return self;},
  1969. args: ["aString", "aString2", "classVars", "pools", "aString3"],
  1970. 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'),
  1971. messageSends: ["subclass:instanceVariableNames:package:"],
  1972. referencedClasses: []
  1973. }),
  1974. smalltalk.Class);
  1975. smalltalk.addMethod(
  1976. unescape('_package'),
  1977. smalltalk.method({
  1978. selector: unescape('package'),
  1979. category: 'accessing',
  1980. fn: function (){
  1981. var self=this;
  1982. return self.pkg;
  1983. return self;},
  1984. args: [],
  1985. source: unescape('package%0A%09%3Creturn%20self.pkg%3E'),
  1986. messageSends: [],
  1987. referencedClasses: []
  1988. }),
  1989. smalltalk.Class);
  1990. smalltalk.addMethod(
  1991. unescape('_package_'),
  1992. smalltalk.method({
  1993. selector: unescape('package%3A'),
  1994. category: 'accessing',
  1995. fn: function (aPackage){
  1996. var self=this;
  1997. self.pkg = aPackage;
  1998. return self;},
  1999. args: ["aPackage"],
  2000. source: unescape('package%3A%20aPackage%0A%09%3Cself.pkg%20%3D%20aPackage%3E'),
  2001. messageSends: [],
  2002. referencedClasses: []
  2003. }),
  2004. smalltalk.Class);
  2005. smalltalk.addMethod(
  2006. unescape('_subclass_instanceVariableNames_package_'),
  2007. smalltalk.method({
  2008. selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
  2009. category: 'class creation',
  2010. fn: function (aString, aString2, aString3){
  2011. var self=this;
  2012. return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
  2013. return self;},
  2014. args: ["aString", "aString2", "aString3"],
  2015. 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'),
  2016. messageSends: ["superclass:subclass:instanceVariableNames:package:", "new"],
  2017. referencedClasses: ["ClassBuilder"]
  2018. }),
  2019. smalltalk.Class);
  2020. smalltalk.addClass('Metaclass', smalltalk.Behavior, [], 'Kernel');
  2021. smalltalk.addMethod(
  2022. unescape('_instanceClass'),
  2023. smalltalk.method({
  2024. selector: unescape('instanceClass'),
  2025. category: 'accessing',
  2026. fn: function (){
  2027. var self=this;
  2028. return self.instanceClass;
  2029. return self;},
  2030. args: [],
  2031. source: unescape('instanceClass%0A%09%3Creturn%20self.instanceClass%3E'),
  2032. messageSends: [],
  2033. referencedClasses: []
  2034. }),
  2035. smalltalk.Metaclass);
  2036. smalltalk.addMethod(
  2037. unescape('_instanceVariableNames_'),
  2038. smalltalk.method({
  2039. selector: unescape('instanceVariableNames%3A'),
  2040. category: 'accessing',
  2041. fn: function (aCollection){
  2042. var self=this;
  2043. smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_class_instanceVariableNames_", [self, aCollection]);
  2044. return self;},
  2045. args: ["aCollection"],
  2046. source: unescape('instanceVariableNames%3A%20aCollection%0A%09ClassBuilder%20new%0A%09%20%20%20%20class%3A%20self%20instanceVariableNames%3A%20aCollection'),
  2047. messageSends: ["class:instanceVariableNames:", "new"],
  2048. referencedClasses: ["ClassBuilder"]
  2049. }),
  2050. smalltalk.Metaclass);
  2051. smalltalk.addMethod(
  2052. unescape('_isMetaclass'),
  2053. smalltalk.method({
  2054. selector: unescape('isMetaclass'),
  2055. category: 'testing',
  2056. fn: function (){
  2057. var self=this;
  2058. return true;
  2059. return self;},
  2060. args: [],
  2061. source: unescape('isMetaclass%0A%09%5Etrue'),
  2062. messageSends: [],
  2063. referencedClasses: []
  2064. }),
  2065. smalltalk.Metaclass);
  2066. smalltalk.addMethod(
  2067. unescape('_printString'),
  2068. smalltalk.method({
  2069. selector: unescape('printString'),
  2070. category: 'printing',
  2071. fn: function (){
  2072. var self=this;
  2073. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_instanceClass", []), "_name", []), "__comma", [" class"]);
  2074. return self;},
  2075. args: [],
  2076. source: unescape('printString%0A%09%5Eself%20instanceClass%20name%2C%20%27%20class%27'),
  2077. messageSends: [unescape("%2C"), "name", "instanceClass"],
  2078. referencedClasses: []
  2079. }),
  2080. smalltalk.Metaclass);
  2081. smalltalk.addClass('CompiledMethod', smalltalk.Object, [], 'Kernel');
  2082. smalltalk.addMethod(
  2083. unescape('_source'),
  2084. smalltalk.method({
  2085. selector: unescape('source'),
  2086. category: 'accessing',
  2087. fn: function (){
  2088. var self=this;
  2089. return (($receiver = smalltalk.send(self, "_basicAt_", ["source"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  2090. return self;},
  2091. args: [],
  2092. source: unescape('source%0A%09%5E%28self%20basicAt%3A%20%27source%27%29%20ifNil%3A%20%5B%27%27%5D'),
  2093. messageSends: ["ifNil:", "basicAt:"],
  2094. referencedClasses: []
  2095. }),
  2096. smalltalk.CompiledMethod);
  2097. smalltalk.addMethod(
  2098. unescape('_source_'),
  2099. smalltalk.method({
  2100. selector: unescape('source%3A'),
  2101. category: 'accessing',
  2102. fn: function (aString){
  2103. var self=this;
  2104. smalltalk.send(self, "_basicAt_put_", ["source", aString]);
  2105. return self;},
  2106. args: ["aString"],
  2107. source: unescape('source%3A%20aString%0A%09self%20basicAt%3A%20%27source%27%20put%3A%20aString'),
  2108. messageSends: ["basicAt:put:"],
  2109. referencedClasses: []
  2110. }),
  2111. smalltalk.CompiledMethod);
  2112. smalltalk.addMethod(
  2113. unescape('_category'),
  2114. smalltalk.method({
  2115. selector: unescape('category'),
  2116. category: 'accessing',
  2117. fn: function (){
  2118. var self=this;
  2119. return (($receiver = smalltalk.send(self, "_basicAt_", ["category"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  2120. return self;},
  2121. args: [],
  2122. source: unescape('category%0A%09%5E%28self%20basicAt%3A%20%27category%27%29%20ifNil%3A%20%5B%27%27%5D'),
  2123. messageSends: ["ifNil:", "basicAt:"],
  2124. referencedClasses: []
  2125. }),
  2126. smalltalk.CompiledMethod);
  2127. smalltalk.addMethod(
  2128. unescape('_category_'),
  2129. smalltalk.method({
  2130. selector: unescape('category%3A'),
  2131. category: 'accessing',
  2132. fn: function (aString){
  2133. var self=this;
  2134. smalltalk.send(self, "_basicAt_put_", ["category", aString]);
  2135. return self;},
  2136. args: ["aString"],
  2137. source: unescape('category%3A%20aString%0A%09self%20basicAt%3A%20%27category%27%20put%3A%20aString'),
  2138. messageSends: ["basicAt:put:"],
  2139. referencedClasses: []
  2140. }),
  2141. smalltalk.CompiledMethod);
  2142. smalltalk.addMethod(
  2143. unescape('_selector'),
  2144. smalltalk.method({
  2145. selector: unescape('selector'),
  2146. category: 'accessing',
  2147. fn: function (){
  2148. var self=this;
  2149. return smalltalk.send(self, "_basicAt_", ["selector"]);
  2150. return self;},
  2151. args: [],
  2152. source: unescape('selector%0A%09%5Eself%20basicAt%3A%20%27selector%27'),
  2153. messageSends: ["basicAt:"],
  2154. referencedClasses: []
  2155. }),
  2156. smalltalk.CompiledMethod);
  2157. smalltalk.addMethod(
  2158. unescape('_selector_'),
  2159. smalltalk.method({
  2160. selector: unescape('selector%3A'),
  2161. category: 'accessing',
  2162. fn: function (aString){
  2163. var self=this;
  2164. smalltalk.send(self, "_basicAt_put_", ["selector", aString]);
  2165. return self;},
  2166. args: ["aString"],
  2167. source: unescape('selector%3A%20aString%0A%09self%20basicAt%3A%20%27selector%27%20put%3A%20aString'),
  2168. messageSends: ["basicAt:put:"],
  2169. referencedClasses: []
  2170. }),
  2171. smalltalk.CompiledMethod);
  2172. smalltalk.addMethod(
  2173. unescape('_fn'),
  2174. smalltalk.method({
  2175. selector: unescape('fn'),
  2176. category: 'accessing',
  2177. fn: function (){
  2178. var self=this;
  2179. return smalltalk.send(self, "_basicAt_", ["fn"]);
  2180. return self;},
  2181. args: [],
  2182. source: unescape('fn%0A%09%5Eself%20basicAt%3A%20%27fn%27'),
  2183. messageSends: ["basicAt:"],
  2184. referencedClasses: []
  2185. }),
  2186. smalltalk.CompiledMethod);
  2187. smalltalk.addMethod(
  2188. unescape('_fn_'),
  2189. smalltalk.method({
  2190. selector: unescape('fn%3A'),
  2191. category: 'accessing',
  2192. fn: function (aBlock){
  2193. var self=this;
  2194. smalltalk.send(self, "_basicAt_put_", ["fn", aBlock]);
  2195. return self;},
  2196. args: ["aBlock"],
  2197. source: unescape('fn%3A%20aBlock%0A%09self%20basicAt%3A%20%27fn%27%20put%3A%20aBlock'),
  2198. messageSends: ["basicAt:put:"],
  2199. referencedClasses: []
  2200. }),
  2201. smalltalk.CompiledMethod);
  2202. smalltalk.addMethod(
  2203. unescape('_messageSends'),
  2204. smalltalk.method({
  2205. selector: unescape('messageSends'),
  2206. category: 'accessing',
  2207. fn: function (){
  2208. var self=this;
  2209. return smalltalk.send(self, "_basicAt_", ["messageSends"]);
  2210. return self;},
  2211. args: [],
  2212. source: unescape('messageSends%0A%09%5Eself%20basicAt%3A%20%27messageSends%27'),
  2213. messageSends: ["basicAt:"],
  2214. referencedClasses: []
  2215. }),
  2216. smalltalk.CompiledMethod);
  2217. smalltalk.addMethod(
  2218. unescape('_methodClass'),
  2219. smalltalk.method({
  2220. selector: unescape('methodClass'),
  2221. category: 'accessing',
  2222. fn: function (){
  2223. var self=this;
  2224. return smalltalk.send(self, "_basicAt_", ["methodClass"]);
  2225. return self;},
  2226. args: [],
  2227. source: unescape('methodClass%0A%09%5Eself%20basicAt%3A%20%27methodClass%27'),
  2228. messageSends: ["basicAt:"],
  2229. referencedClasses: []
  2230. }),
  2231. smalltalk.CompiledMethod);
  2232. smalltalk.addMethod(
  2233. unescape('_referencedClasses'),
  2234. smalltalk.method({
  2235. selector: unescape('referencedClasses'),
  2236. category: 'accessing',
  2237. fn: function (){
  2238. var self=this;
  2239. return smalltalk.send(self, "_basicAt_", ["referencedClasses"]);
  2240. return self;},
  2241. args: [],
  2242. source: unescape('referencedClasses%0A%09%5Eself%20basicAt%3A%20%27referencedClasses%27'),
  2243. messageSends: ["basicAt:"],
  2244. referencedClasses: []
  2245. }),
  2246. smalltalk.CompiledMethod);
  2247. smalltalk.addMethod(
  2248. unescape('_arguments'),
  2249. smalltalk.method({
  2250. selector: unescape('arguments'),
  2251. category: 'accessing',
  2252. fn: function (){
  2253. var self=this;
  2254. return self.args || [];
  2255. return self;},
  2256. args: [],
  2257. source: unescape('arguments%0A%09%3Creturn%20self.args%20%7C%7C%20%5B%5D%3E'),
  2258. messageSends: [],
  2259. referencedClasses: []
  2260. }),
  2261. smalltalk.CompiledMethod);
  2262. smalltalk.addClass('Number', smalltalk.Object, [], 'Kernel');
  2263. smalltalk.addMethod(
  2264. unescape('__eq'),
  2265. smalltalk.method({
  2266. selector: unescape('%3D'),
  2267. category: 'comparing',
  2268. fn: function (aNumber){
  2269. var self=this;
  2270. 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}})})();})]));
  2271. return Number(self) == aNumber;
  2272. return self;
  2273. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  2274. args: ["aNumber"],
  2275. 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'),
  2276. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  2277. referencedClasses: []
  2278. }),
  2279. smalltalk.Number);
  2280. smalltalk.addMethod(
  2281. unescape('__gt'),
  2282. smalltalk.method({
  2283. selector: unescape('%3E'),
  2284. category: 'comparing',
  2285. fn: function (aNumber){
  2286. var self=this;
  2287. return self > aNumber;
  2288. return self;},
  2289. args: ["aNumber"],
  2290. source: unescape('%3E%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3E%3E%20aNumber%3E'),
  2291. messageSends: [],
  2292. referencedClasses: []
  2293. }),
  2294. smalltalk.Number);
  2295. smalltalk.addMethod(
  2296. unescape('__lt'),
  2297. smalltalk.method({
  2298. selector: unescape('%3C'),
  2299. category: 'comparing',
  2300. fn: function (aNumber){
  2301. var self=this;
  2302. return self < aNumber;
  2303. return self;},
  2304. args: ["aNumber"],
  2305. source: unescape('%3C%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3C%20aNumber%3E'),
  2306. messageSends: [],
  2307. referencedClasses: []
  2308. }),
  2309. smalltalk.Number);
  2310. smalltalk.addMethod(
  2311. unescape('__gt_eq'),
  2312. smalltalk.method({
  2313. selector: unescape('%3E%3D'),
  2314. category: 'comparing',
  2315. fn: function (aNumber){
  2316. var self=this;
  2317. return self >= aNumber;
  2318. return self;},
  2319. args: ["aNumber"],
  2320. source: unescape('%3E%3D%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3E%3E%3D%20aNumber%3E'),
  2321. messageSends: [],
  2322. referencedClasses: []
  2323. }),
  2324. smalltalk.Number);
  2325. smalltalk.addMethod(
  2326. unescape('__lt_eq'),
  2327. smalltalk.method({
  2328. selector: unescape('%3C%3D'),
  2329. category: 'comparing',
  2330. fn: function (aNumber){
  2331. var self=this;
  2332. return self <= aNumber;
  2333. return self;},
  2334. args: ["aNumber"],
  2335. source: unescape('%3C%3D%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3C%3D%20aNumber%3E'),
  2336. messageSends: [],
  2337. referencedClasses: []
  2338. }),
  2339. smalltalk.Number);
  2340. smalltalk.addMethod(
  2341. unescape('__plus'),
  2342. smalltalk.method({
  2343. selector: unescape('+'),
  2344. category: 'arithmetic',
  2345. fn: function (aNumber){
  2346. var self=this;
  2347. return self + aNumber;
  2348. return self;},
  2349. args: ["aNumber"],
  2350. source: unescape('+%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20+%20aNumber%3E'),
  2351. messageSends: [],
  2352. referencedClasses: []
  2353. }),
  2354. smalltalk.Number);
  2355. smalltalk.addMethod(
  2356. unescape('__minus'),
  2357. smalltalk.method({
  2358. selector: unescape('-'),
  2359. category: 'arithmetic',
  2360. fn: function (aNumber){
  2361. var self=this;
  2362. return self - aNumber;
  2363. return self;},
  2364. args: ["aNumber"],
  2365. source: unescape('-%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20-%20aNumber%3E'),
  2366. messageSends: [],
  2367. referencedClasses: []
  2368. }),
  2369. smalltalk.Number);
  2370. smalltalk.addMethod(
  2371. unescape('__star'),
  2372. smalltalk.method({
  2373. selector: unescape('*'),
  2374. category: 'arithmetic',
  2375. fn: function (aNumber){
  2376. var self=this;
  2377. return self * aNumber;
  2378. return self;},
  2379. args: ["aNumber"],
  2380. source: unescape('*%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20*%20aNumber%3E'),
  2381. messageSends: [],
  2382. referencedClasses: []
  2383. }),
  2384. smalltalk.Number);
  2385. smalltalk.addMethod(
  2386. unescape('__slash'),
  2387. smalltalk.method({
  2388. selector: unescape('/'),
  2389. category: 'arithmetic',
  2390. fn: function (aNumber){
  2391. var self=this;
  2392. return self / aNumber;
  2393. return self;},
  2394. args: ["aNumber"],
  2395. source: unescape('/%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20/%20aNumber%3E'),
  2396. messageSends: [],
  2397. referencedClasses: []
  2398. }),
  2399. smalltalk.Number);
  2400. smalltalk.addMethod(
  2401. unescape('_max_'),
  2402. smalltalk.method({
  2403. selector: unescape('max%3A'),
  2404. category: 'arithmetic',
  2405. fn: function (aNumber){
  2406. var self=this;
  2407. return Math.max(self, aNumber);;
  2408. return self;},
  2409. args: ["aNumber"],
  2410. source: unescape('max%3A%20aNumber%0A%09%3Creturn%20Math.max%28self%2C%20aNumber%29%3B%3E'),
  2411. messageSends: [],
  2412. referencedClasses: []
  2413. }),
  2414. smalltalk.Number);
  2415. smalltalk.addMethod(
  2416. unescape('_min_'),
  2417. smalltalk.method({
  2418. selector: unescape('min%3A'),
  2419. category: 'arithmetic',
  2420. fn: function (aNumber){
  2421. var self=this;
  2422. return Math.min(self, aNumber);;
  2423. return self;},
  2424. args: ["aNumber"],
  2425. source: unescape('min%3A%20aNumber%0A%09%3Creturn%20Math.min%28self%2C%20aNumber%29%3B%3E'),
  2426. messageSends: [],
  2427. referencedClasses: []
  2428. }),
  2429. smalltalk.Number);
  2430. smalltalk.addMethod(
  2431. unescape('_rounded'),
  2432. smalltalk.method({
  2433. selector: unescape('rounded'),
  2434. category: 'converting',
  2435. fn: function (){
  2436. var self=this;
  2437. return Math.round(self);;
  2438. return self;},
  2439. args: [],
  2440. source: unescape('rounded%0A%09%3Creturn%20Math.round%28self%29%3B%3E'),
  2441. messageSends: [],
  2442. referencedClasses: []
  2443. }),
  2444. smalltalk.Number);
  2445. smalltalk.addMethod(
  2446. unescape('_truncated'),
  2447. smalltalk.method({
  2448. selector: unescape('truncated'),
  2449. category: 'converting',
  2450. fn: function (){
  2451. var self=this;
  2452. var result=nil;
  2453. ((($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));;})]));
  2454. return result;
  2455. return self;},
  2456. args: [],
  2457. 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'),
  2458. messageSends: ["ifTrue:ifFalse:", unescape("%3E%3D")],
  2459. referencedClasses: []
  2460. }),
  2461. smalltalk.Number);
  2462. smalltalk.addMethod(
  2463. unescape('_to_'),
  2464. smalltalk.method({
  2465. selector: unescape('to%3A'),
  2466. category: 'converting',
  2467. fn: function (aNumber){
  2468. var self=this;
  2469. var array=nil;
  2470. var first=nil;
  2471. var last=nil;
  2472. var count=nil;
  2473. first=smalltalk.send(self, "_truncated", []);
  2474. last=((($receiver = smalltalk.send(aNumber, "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));
  2475. count=(1);
  2476. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2477. 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)]));})]);
  2478. return array;
  2479. return self;},
  2480. args: ["aNumber"],
  2481. 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'),
  2482. messageSends: ["truncated", unescape("+"), "new", "timesRepeat:", unescape("-"), "at:put:"],
  2483. referencedClasses: ["Array"]
  2484. }),
  2485. smalltalk.Number);
  2486. smalltalk.addMethod(
  2487. unescape('_timesRepeat_'),
  2488. smalltalk.method({
  2489. selector: unescape('timesRepeat%3A'),
  2490. category: 'enumerating',
  2491. fn: function (aBlock){
  2492. var self=this;
  2493. var integer=nil;
  2494. var count=nil;
  2495. integer=smalltalk.send(self, "_truncated", []);
  2496. count=(1);
  2497. (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)]));})()}})();
  2498. return self;},
  2499. args: ["aBlock"],
  2500. 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'),
  2501. messageSends: ["truncated", "whileFalse:", unescape("%3E"), "value", unescape("+")],
  2502. referencedClasses: []
  2503. }),
  2504. smalltalk.Number);
  2505. smalltalk.addMethod(
  2506. unescape('_to_do_'),
  2507. smalltalk.method({
  2508. selector: unescape('to%3Ado%3A'),
  2509. category: 'enumerating',
  2510. fn: function (stop, aBlock){
  2511. var self=this;
  2512. var nextValue=nil;
  2513. nextValue=self;
  2514. (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)]));})()}})();
  2515. return self;},
  2516. args: ["stop", "aBlock"],
  2517. 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'),
  2518. messageSends: ["whileTrue:", unescape("%3C%3D"), "value:", unescape("+")],
  2519. referencedClasses: []
  2520. }),
  2521. smalltalk.Number);
  2522. smalltalk.addMethod(
  2523. unescape('_asString'),
  2524. smalltalk.method({
  2525. selector: unescape('asString'),
  2526. category: 'converting',
  2527. fn: function (){
  2528. var self=this;
  2529. return smalltalk.send(self, "_printString", []);
  2530. return self;},
  2531. args: [],
  2532. source: unescape('asString%0A%09%5Eself%20printString'),
  2533. messageSends: ["printString"],
  2534. referencedClasses: []
  2535. }),
  2536. smalltalk.Number);
  2537. smalltalk.addMethod(
  2538. unescape('_asJavascript'),
  2539. smalltalk.method({
  2540. selector: unescape('asJavascript'),
  2541. category: 'converting',
  2542. fn: function (){
  2543. var self=this;
  2544. return smalltalk.send(smalltalk.send(unescape("%28"), "__comma", [smalltalk.send(self, "_printString", [])]), "__comma", [unescape("%29")]);
  2545. return self;},
  2546. args: [],
  2547. source: unescape('asJavascript%0A%09%5E%27%28%27%2C%20self%20printString%2C%20%27%29%27'),
  2548. messageSends: [unescape("%2C"), "printString"],
  2549. referencedClasses: []
  2550. }),
  2551. smalltalk.Number);
  2552. smalltalk.addMethod(
  2553. unescape('_printString'),
  2554. smalltalk.method({
  2555. selector: unescape('printString'),
  2556. category: 'printing',
  2557. fn: function (){
  2558. var self=this;
  2559. return String(self);
  2560. return self;},
  2561. args: [],
  2562. source: unescape('printString%0A%09%3Creturn%20String%28self%29%3E'),
  2563. messageSends: [],
  2564. referencedClasses: []
  2565. }),
  2566. smalltalk.Number);
  2567. smalltalk.addMethod(
  2568. unescape('_isNumber'),
  2569. smalltalk.method({
  2570. selector: unescape('isNumber'),
  2571. category: 'testing',
  2572. fn: function (){
  2573. var self=this;
  2574. return true;
  2575. return self;},
  2576. args: [],
  2577. source: unescape('isNumber%0A%09%5Etrue'),
  2578. messageSends: [],
  2579. referencedClasses: []
  2580. }),
  2581. smalltalk.Number);
  2582. smalltalk.addMethod(
  2583. unescape('_atRandom'),
  2584. smalltalk.method({
  2585. selector: unescape('atRandom'),
  2586. category: 'converting',
  2587. fn: function (){
  2588. var self=this;
  2589. 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)]));
  2590. return self;},
  2591. args: [],
  2592. source: unescape('atRandom%0A%20%20%20%20%5E%28Random%20new%20next%20*%20self%29%20truncated%20+%201'),
  2593. messageSends: [unescape("+"), "truncated", unescape("*"), "next", "new"],
  2594. referencedClasses: ["Random"]
  2595. }),
  2596. smalltalk.Number);
  2597. smalltalk.addMethod(
  2598. unescape('__at'),
  2599. smalltalk.method({
  2600. selector: unescape('@'),
  2601. category: 'converting',
  2602. fn: function (aNumber){
  2603. var self=this;
  2604. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, aNumber]);
  2605. return self;},
  2606. args: ["aNumber"],
  2607. source: unescape('@%20aNumber%0A%09%5EPoint%20x%3A%20self%20y%3A%20aNumber'),
  2608. messageSends: ["x:y:"],
  2609. referencedClasses: ["Point"]
  2610. }),
  2611. smalltalk.Number);
  2612. smalltalk.addMethod(
  2613. unescape('_asPoint'),
  2614. smalltalk.method({
  2615. selector: unescape('asPoint'),
  2616. category: 'converting',
  2617. fn: function (){
  2618. var self=this;
  2619. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, self]);
  2620. return self;},
  2621. args: [],
  2622. source: unescape('asPoint%0A%09%5EPoint%20x%3A%20self%20y%3A%20self'),
  2623. messageSends: ["x:y:"],
  2624. referencedClasses: ["Point"]
  2625. }),
  2626. smalltalk.Number);
  2627. smalltalk.addMethod(
  2628. unescape('_clearInterval'),
  2629. smalltalk.method({
  2630. selector: unescape('clearInterval'),
  2631. category: 'timeouts/intervals',
  2632. fn: function (){
  2633. var self=this;
  2634. clearInterval(Number(self));
  2635. return self;},
  2636. args: [],
  2637. source: unescape('clearInterval%0A%09%3CclearInterval%28Number%28self%29%29%3E'),
  2638. messageSends: [],
  2639. referencedClasses: []
  2640. }),
  2641. smalltalk.Number);
  2642. smalltalk.addMethod(
  2643. unescape('_clearTimeout'),
  2644. smalltalk.method({
  2645. selector: unescape('clearTimeout'),
  2646. category: 'timeouts/intervals',
  2647. fn: function (){
  2648. var self=this;
  2649. clearTimeout(Number(self));
  2650. return self;},
  2651. args: [],
  2652. source: unescape('clearTimeout%0A%09%3CclearTimeout%28Number%28self%29%29%3E'),
  2653. messageSends: [],
  2654. referencedClasses: []
  2655. }),
  2656. smalltalk.Number);
  2657. smalltalk.addMethod(
  2658. unescape('_even'),
  2659. smalltalk.method({
  2660. selector: unescape('even'),
  2661. category: 'testing',
  2662. fn: function (){
  2663. var self=this;
  2664. return smalltalk.send((0), "__eq", [smalltalk.send(self, "_\\\\", [(2)])]);
  2665. return self;},
  2666. args: [],
  2667. source: unescape('even%0A%09%5E%200%20%3D%20%28self%20%5C%5C%202%29'),
  2668. messageSends: [unescape("%3D"), unescape("%5C%5C%5C%5C")],
  2669. referencedClasses: []
  2670. }),
  2671. smalltalk.Number);
  2672. smalltalk.addMethod(
  2673. unescape('_odd'),
  2674. smalltalk.method({
  2675. selector: unescape('odd'),
  2676. category: 'testing',
  2677. fn: function (){
  2678. var self=this;
  2679. return smalltalk.send(smalltalk.send(self, "_even", []), "_not", []);
  2680. return self;},
  2681. args: [],
  2682. source: unescape('odd%0A%09%5E%20self%20even%20not'),
  2683. messageSends: ["not", "even"],
  2684. referencedClasses: []
  2685. }),
  2686. smalltalk.Number);
  2687. smalltalk.addMethod(
  2688. unescape('_negated'),
  2689. smalltalk.method({
  2690. selector: unescape('negated'),
  2691. category: 'arithmetic',
  2692. fn: function (){
  2693. var self=this;
  2694. return (0) - self;
  2695. return self;},
  2696. args: [],
  2697. source: unescape('negated%0A%09%5E0%20-%20self'),
  2698. messageSends: [unescape("-")],
  2699. referencedClasses: []
  2700. }),
  2701. smalltalk.Number);
  2702. smalltalk.addMethod(
  2703. unescape('__eq_eq'),
  2704. smalltalk.method({
  2705. selector: unescape('%3D%3D'),
  2706. category: 'comparing',
  2707. fn: function (aNumber){
  2708. var self=this;
  2709. 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}})})();})]));
  2710. return Number(self) === Number(aNumber);
  2711. return self;
  2712. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  2713. args: ["aNumber"],
  2714. 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'),
  2715. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  2716. referencedClasses: []
  2717. }),
  2718. smalltalk.Number);
  2719. smalltalk.addMethod(
  2720. unescape('_printShowingDecimalPlaces_'),
  2721. smalltalk.method({
  2722. selector: unescape('printShowingDecimalPlaces%3A'),
  2723. category: 'printing',
  2724. fn: function (placesDesired){
  2725. var self=this;
  2726. return self.toFixed(placesDesired);
  2727. return self;},
  2728. args: ["placesDesired"],
  2729. source: unescape('printShowingDecimalPlaces%3A%20placesDesired%0A%09%3Creturn%20self.toFixed%28placesDesired%29%3E'),
  2730. messageSends: [],
  2731. referencedClasses: []
  2732. }),
  2733. smalltalk.Number);
  2734. smalltalk.addMethod(
  2735. unescape('_%5C'),
  2736. smalltalk.method({
  2737. selector: unescape('%5C'),
  2738. category: '',
  2739. fn: function (aNumber){
  2740. var self=this;
  2741. return self % aNumber;
  2742. return self;},
  2743. args: ["aNumber"],
  2744. source: unescape(''),
  2745. messageSends: [],
  2746. referencedClasses: []
  2747. }),
  2748. smalltalk.Number);
  2749. smalltalk.addMethod(
  2750. unescape('_to_by_'),
  2751. smalltalk.method({
  2752. selector: unescape('to%3Aby%3A'),
  2753. category: 'converting',
  2754. fn: function (stop, step){
  2755. var self=this;
  2756. var array=nil;
  2757. var value=nil;
  2758. var pos=nil;
  2759. value=self;
  2760. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2761. pos=(1);
  2762. ((($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")]);})]));
  2763. ((($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]));})()}})();})]));
  2764. return array;
  2765. return self;},
  2766. args: ["stop", "step"],
  2767. 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'),
  2768. messageSends: ["new", "ifTrue:", unescape("%3D"), "error:", "ifTrue:ifFalse:", unescape("%3C"), "whileTrue:", unescape("%3E%3D"), "at:put:", unescape("+"), unescape("%3C%3D")],
  2769. referencedClasses: ["Array"]
  2770. }),
  2771. smalltalk.Number);
  2772. smalltalk.addMethod(
  2773. unescape('_to_by_do_'),
  2774. smalltalk.method({
  2775. selector: unescape('to%3Aby%3Ado%3A'),
  2776. category: 'enumerating',
  2777. fn: function (stop, step, aBlock){
  2778. var self=this;
  2779. var value=nil;
  2780. value=self;
  2781. ((($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")]);})]));
  2782. ((($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]));})()}})();})]));
  2783. return self;},
  2784. args: ["stop", "step", "aBlock"],
  2785. 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'),
  2786. messageSends: ["ifTrue:", unescape("%3D"), "error:", "ifTrue:ifFalse:", unescape("%3C"), "whileTrue:", unescape("%3E%3D"), "value:", unescape("+"), unescape("%3C%3D")],
  2787. referencedClasses: []
  2788. }),
  2789. smalltalk.Number);
  2790. smalltalk.addMethod(
  2791. unescape('_deepCopy'),
  2792. smalltalk.method({
  2793. selector: unescape('deepCopy'),
  2794. category: 'copying',
  2795. fn: function (){
  2796. var self=this;
  2797. return smalltalk.send(self, "_copy", []);
  2798. return self;},
  2799. args: [],
  2800. source: unescape('deepCopy%0A%09%5Eself%20copy'),
  2801. messageSends: ["copy"],
  2802. referencedClasses: []
  2803. }),
  2804. smalltalk.Number);
  2805. smalltalk.addMethod(
  2806. unescape('_copy'),
  2807. smalltalk.method({
  2808. selector: unescape('copy'),
  2809. category: 'copying',
  2810. fn: function (){
  2811. var self=this;
  2812. return self;
  2813. return self;},
  2814. args: [],
  2815. source: unescape('copy%0A%09%5Eself'),
  2816. messageSends: [],
  2817. referencedClasses: []
  2818. }),
  2819. smalltalk.Number);
  2820. smalltalk.addMethod(
  2821. unescape('_%5C%5C'),
  2822. smalltalk.method({
  2823. selector: unescape('%5C%5C'),
  2824. category: 'arithmetic',
  2825. fn: function (aNumber){
  2826. var self=this;
  2827. return self % aNumber;
  2828. return self;},
  2829. args: ["aNumber"],
  2830. source: unescape('%5C%5C%20aNumber%0A%09%3Creturn%20self%20%25%20aNumber%3E'),
  2831. messageSends: [],
  2832. referencedClasses: []
  2833. }),
  2834. smalltalk.Number);
  2835. smalltalk.addMethod(
  2836. unescape('_sqrt'),
  2837. smalltalk.method({
  2838. selector: unescape('sqrt'),
  2839. category: 'arithmetic',
  2840. fn: function (){
  2841. var self=this;
  2842. return Math.sqrt(self);
  2843. return self;},
  2844. args: [],
  2845. source: unescape('sqrt%0A%09%3Creturn%20Math.sqrt%28self%29%3E'),
  2846. messageSends: [],
  2847. referencedClasses: []
  2848. }),
  2849. smalltalk.Number);
  2850. smalltalk.addMethod(
  2851. unescape('_squared'),
  2852. smalltalk.method({
  2853. selector: unescape('squared'),
  2854. category: 'arithmetic',
  2855. fn: function (){
  2856. var self=this;
  2857. return self * self;
  2858. return self;},
  2859. args: [],
  2860. source: unescape('squared%0A%09%5Eself%20*%20self'),
  2861. messageSends: [unescape("*")],
  2862. referencedClasses: []
  2863. }),
  2864. smalltalk.Number);
  2865. smalltalk.addMethod(
  2866. unescape('_pi'),
  2867. smalltalk.method({
  2868. selector: unescape('pi'),
  2869. category: 'instance creation',
  2870. fn: function (){
  2871. var self=this;
  2872. return Math.PI;
  2873. return self;},
  2874. args: [],
  2875. source: unescape('pi%0A%09%3Creturn%20Math.PI%3E'),
  2876. messageSends: [],
  2877. referencedClasses: []
  2878. }),
  2879. smalltalk.Number.klass);
  2880. smalltalk.addClass('BlockClosure', smalltalk.Object, [], 'Kernel');
  2881. smalltalk.addMethod(
  2882. unescape('_compiledSource'),
  2883. smalltalk.method({
  2884. selector: unescape('compiledSource'),
  2885. category: 'accessing',
  2886. fn: function (){
  2887. var self=this;
  2888. return self.toString();
  2889. return self;},
  2890. args: [],
  2891. source: unescape('compiledSource%0A%09%3Creturn%20self.toString%28%29%3E'),
  2892. messageSends: [],
  2893. referencedClasses: []
  2894. }),
  2895. smalltalk.BlockClosure);
  2896. smalltalk.addMethod(
  2897. unescape('_whileTrue_'),
  2898. smalltalk.method({
  2899. selector: unescape('whileTrue%3A'),
  2900. category: 'controlling',
  2901. fn: function (aBlock){
  2902. var self=this;
  2903. while(self()) {aBlock()};
  2904. return self;},
  2905. args: ["aBlock"],
  2906. 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'),
  2907. messageSends: [],
  2908. referencedClasses: []
  2909. }),
  2910. smalltalk.BlockClosure);
  2911. smalltalk.addMethod(
  2912. unescape('_whileFalse_'),
  2913. smalltalk.method({
  2914. selector: unescape('whileFalse%3A'),
  2915. category: 'controlling',
  2916. fn: function (aBlock){
  2917. var self=this;
  2918. while(!self()) {aBlock()};
  2919. return self;},
  2920. args: ["aBlock"],
  2921. 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'),
  2922. messageSends: [],
  2923. referencedClasses: []
  2924. }),
  2925. smalltalk.BlockClosure);
  2926. smalltalk.addMethod(
  2927. unescape('_value'),
  2928. smalltalk.method({
  2929. selector: unescape('value'),
  2930. category: 'evaluating',
  2931. fn: function (){
  2932. var self=this;
  2933. return self();;
  2934. return self;},
  2935. args: [],
  2936. source: unescape('value%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28%29%3B%3E'),
  2937. messageSends: [],
  2938. referencedClasses: []
  2939. }),
  2940. smalltalk.BlockClosure);
  2941. smalltalk.addMethod(
  2942. unescape('_value_'),
  2943. smalltalk.method({
  2944. selector: unescape('value%3A'),
  2945. category: 'evaluating',
  2946. fn: function (anArg){
  2947. var self=this;
  2948. return self(anArg);;
  2949. return self;},
  2950. args: ["anArg"],
  2951. source: unescape('value%3A%20anArg%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28anArg%29%3B%3E'),
  2952. messageSends: [],
  2953. referencedClasses: []
  2954. }),
  2955. smalltalk.BlockClosure);
  2956. smalltalk.addMethod(
  2957. unescape('_value_value_'),
  2958. smalltalk.method({
  2959. selector: unescape('value%3Avalue%3A'),
  2960. category: 'evaluating',
  2961. fn: function (firstArg, secondArg){
  2962. var self=this;
  2963. return self(firstArg, secondArg);;
  2964. return self;},
  2965. args: ["firstArg", "secondArg"],
  2966. 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'),
  2967. messageSends: [],
  2968. referencedClasses: []
  2969. }),
  2970. smalltalk.BlockClosure);
  2971. smalltalk.addMethod(
  2972. unescape('_value_value_value_'),
  2973. smalltalk.method({
  2974. selector: unescape('value%3Avalue%3Avalue%3A'),
  2975. category: 'evaluating',
  2976. fn: function (firstArg, secondArg, thirdArg){
  2977. var self=this;
  2978. return self(firstArg, secondArg, thirdArg);;
  2979. return self;},
  2980. args: ["firstArg", "secondArg", "thirdArg"],
  2981. 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'),
  2982. messageSends: [],
  2983. referencedClasses: []
  2984. }),
  2985. smalltalk.BlockClosure);
  2986. smalltalk.addMethod(
  2987. unescape('_valueWithPossibleArguments_'),
  2988. smalltalk.method({
  2989. selector: unescape('valueWithPossibleArguments%3A'),
  2990. category: 'evaluating',
  2991. fn: function (aCollection){
  2992. var self=this;
  2993. return self.apply(null, aCollection);;
  2994. return self;},
  2995. args: ["aCollection"],
  2996. source: unescape('valueWithPossibleArguments%3A%20aCollection%0A%09%3Creturn%20self.apply%28null%2C%20aCollection%29%3B%3E'),
  2997. messageSends: [],
  2998. referencedClasses: []
  2999. }),
  3000. smalltalk.BlockClosure);
  3001. smalltalk.addMethod(
  3002. unescape('_on_do_'),
  3003. smalltalk.method({
  3004. selector: unescape('on%3Ado%3A'),
  3005. category: 'error handling',
  3006. fn: function (anErrorClass, aBlock){
  3007. var self=this;
  3008. 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", []);})]));})]);
  3009. return self;},
  3010. args: ["anErrorClass", "aBlock"],
  3011. 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'),
  3012. messageSends: ["try:catch:", "ifTrue:ifFalse:", "isKindOf:", "value:", "signal"],
  3013. referencedClasses: []
  3014. }),
  3015. smalltalk.BlockClosure);
  3016. smalltalk.addMethod(
  3017. unescape('_valueWithTimeout_'),
  3018. smalltalk.method({
  3019. selector: unescape('valueWithTimeout%3A'),
  3020. category: 'timeout/interval',
  3021. fn: function (aNumber){
  3022. var self=this;
  3023. return setTimeout(self, aNumber);
  3024. return self;},
  3025. args: ["aNumber"],
  3026. source: unescape('valueWithTimeout%3A%20aNumber%0A%09%3Creturn%20setTimeout%28self%2C%20aNumber%29%3E'),
  3027. messageSends: [],
  3028. referencedClasses: []
  3029. }),
  3030. smalltalk.BlockClosure);
  3031. smalltalk.addMethod(
  3032. unescape('_valueWithInterval_'),
  3033. smalltalk.method({
  3034. selector: unescape('valueWithInterval%3A'),
  3035. category: 'timeout/interval',
  3036. fn: function (aNumber){
  3037. var self=this;
  3038. return setInterval(self, aNumber);
  3039. return self;},
  3040. args: ["aNumber"],
  3041. source: unescape('valueWithInterval%3A%20aNumber%0A%09%3Creturn%20setInterval%28self%2C%20aNumber%29%3E'),
  3042. messageSends: [],
  3043. referencedClasses: []
  3044. }),
  3045. smalltalk.BlockClosure);
  3046. smalltalk.addMethod(
  3047. unescape('_whileFalse'),
  3048. smalltalk.method({
  3049. selector: unescape('whileFalse'),
  3050. category: 'controlling',
  3051. fn: function (){
  3052. var self=this;
  3053. smalltalk.send(self, "_whileFalse_", [(function(){return nil;})]);
  3054. return self;},
  3055. args: [],
  3056. source: unescape('whileFalse%0A%09%22inlined%20in%20the%20Compiler%22%0A%09self%20whileFalse%3A%20%5B%5D'),
  3057. messageSends: ["whileFalse:"],
  3058. referencedClasses: []
  3059. }),
  3060. smalltalk.BlockClosure);
  3061. smalltalk.addMethod(
  3062. unescape('_whileTrue'),
  3063. smalltalk.method({
  3064. selector: unescape('whileTrue'),
  3065. category: 'controlling',
  3066. fn: function (){
  3067. var self=this;
  3068. smalltalk.send(self, "_whileTrue_", [(function(){return nil;})]);
  3069. return self;},
  3070. args: [],
  3071. source: unescape('whileTrue%0A%09%22inlined%20in%20the%20Compiler%22%0A%09self%20whileTrue%3A%20%5B%5D'),
  3072. messageSends: ["whileTrue:"],
  3073. referencedClasses: []
  3074. }),
  3075. smalltalk.BlockClosure);
  3076. smalltalk.addMethod(
  3077. unescape('_new'),
  3078. smalltalk.method({
  3079. selector: unescape('new'),
  3080. category: 'evaluating',
  3081. fn: function (){
  3082. var self=this;
  3083. return new self();
  3084. return self;},
  3085. args: [],
  3086. 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'),
  3087. messageSends: [],
  3088. referencedClasses: []
  3089. }),
  3090. smalltalk.BlockClosure);
  3091. smalltalk.addMethod(
  3092. unescape('_applyTo_arguments_'),
  3093. smalltalk.method({
  3094. selector: unescape('applyTo%3Aarguments%3A'),
  3095. category: 'evaluating',
  3096. fn: function (anObject, aCollection){
  3097. var self=this;
  3098. return self.apply(anObject, aCollection);
  3099. return self;},
  3100. args: ["anObject", "aCollection"],
  3101. source: unescape('applyTo%3A%20anObject%20arguments%3A%20aCollection%0A%09%3Creturn%20self.apply%28anObject%2C%20aCollection%29%3E'),
  3102. messageSends: [],
  3103. referencedClasses: []
  3104. }),
  3105. smalltalk.BlockClosure);
  3106. smalltalk.addMethod(
  3107. unescape('_timeToRun'),
  3108. smalltalk.method({
  3109. selector: unescape('timeToRun'),
  3110. category: 'evaluating',
  3111. fn: function (){
  3112. var self=this;
  3113. return smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [self]);
  3114. return self;},
  3115. args: [],
  3116. source: unescape('timeToRun%0A%09%22Answer%20the%20number%20of%20milliseconds%20taken%20to%20execute%20this%20block.%22%0A%0A%09%5E%20Date%20millisecondsToRun%3A%20self'),
  3117. messageSends: ["millisecondsToRun:"],
  3118. referencedClasses: ["Date"]
  3119. }),
  3120. smalltalk.BlockClosure);
  3121. smalltalk.addMethod(
  3122. unescape('_numArgs'),
  3123. smalltalk.method({
  3124. selector: unescape('numArgs'),
  3125. category: 'accessing',
  3126. fn: function (){
  3127. var self=this;
  3128. return self.length;
  3129. return self;},
  3130. args: [],
  3131. source: unescape('numArgs%0A%09%3Creturn%20self.length%3E'),
  3132. messageSends: [],
  3133. referencedClasses: []
  3134. }),
  3135. smalltalk.BlockClosure);
  3136. smalltalk.addMethod(
  3137. unescape('_ensure_'),
  3138. smalltalk.method({
  3139. selector: unescape('ensure%3A'),
  3140. category: 'evaluating',
  3141. fn: function (aBlock){
  3142. var self=this;
  3143. var success=nil;
  3144. success=false;
  3145. smalltalk.send((function(){smalltalk.send(self, "_value", []);success=true;return smalltalk.send(aBlock, "_value", []);}), "_on_do_", [(smalltalk.Error || Error), (function(ex){((($receiver = success).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(aBlock, "_value", []);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(aBlock, "_value", []);})]));return smalltalk.send(ex, "_signal", []);})]);
  3146. return self;},
  3147. args: ["aBlock"],
  3148. source: unescape('ensure%3A%20aBlock%0A%09%7C%20success%20%7C%0A%09success%20%3A%3D%20false.%0A%09%5Bself%20value.%20success%20%3A%3D%20true.%20aBlock%20value%5D%0A%09%09on%3A%20Error%0A%09%09do%3A%20%5B%3Aex%20%7C%0A%09%09%09success%20ifFalse%3A%20%5BaBlock%20value%5D.%0A%09%09%09ex%20signal%5D'),
  3149. messageSends: ["on:do:", "value", "ifFalse:", "signal"],
  3150. referencedClasses: ["Error"]
  3151. }),
  3152. smalltalk.BlockClosure);
  3153. smalltalk.addClass('Boolean', smalltalk.Object, [], 'Kernel');
  3154. smalltalk.addMethod(
  3155. unescape('__eq'),
  3156. smalltalk.method({
  3157. selector: unescape('%3D'),
  3158. category: 'comparing',
  3159. fn: function (aBoolean){
  3160. var self=this;
  3161. 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}})})();})]));
  3162. return Boolean(self == true) == aBoolean;
  3163. return self;
  3164. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  3165. args: ["aBoolean"],
  3166. 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'),
  3167. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  3168. referencedClasses: []
  3169. }),
  3170. smalltalk.Boolean);
  3171. smalltalk.addMethod(
  3172. unescape('_shallowCopy'),
  3173. smalltalk.method({
  3174. selector: unescape('shallowCopy'),
  3175. category: 'copying',
  3176. fn: function (){
  3177. var self=this;
  3178. return self;
  3179. return self;},
  3180. args: [],
  3181. source: unescape('shallowCopy%0A%09%5Eself'),
  3182. messageSends: [],
  3183. referencedClasses: []
  3184. }),
  3185. smalltalk.Boolean);
  3186. smalltalk.addMethod(
  3187. unescape('_deepCopy'),
  3188. smalltalk.method({
  3189. selector: unescape('deepCopy'),
  3190. category: 'copying',
  3191. fn: function (){
  3192. var self=this;
  3193. return self;
  3194. return self;},
  3195. args: [],
  3196. source: unescape('deepCopy%0A%09%5Eself'),
  3197. messageSends: [],
  3198. referencedClasses: []
  3199. }),
  3200. smalltalk.Boolean);
  3201. smalltalk.addMethod(
  3202. unescape('_ifTrue_'),
  3203. smalltalk.method({
  3204. selector: unescape('ifTrue%3A'),
  3205. category: 'controlling',
  3206. fn: function (aBlock){
  3207. var self=this;
  3208. return smalltalk.send(self, "_ifTrue_ifFalse_", [aBlock, (function(){return nil;})]);
  3209. return self;},
  3210. args: ["aBlock"],
  3211. source: unescape('ifTrue%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20aBlock%20ifFalse%3A%20%5B%5D'),
  3212. messageSends: ["ifTrue:ifFalse:"],
  3213. referencedClasses: []
  3214. }),
  3215. smalltalk.Boolean);
  3216. smalltalk.addMethod(
  3217. unescape('_ifFalse_'),
  3218. smalltalk.method({
  3219. selector: unescape('ifFalse%3A'),
  3220. category: 'controlling',
  3221. fn: function (aBlock){
  3222. var self=this;
  3223. return smalltalk.send(self, "_ifTrue_ifFalse_", [(function(){return nil;}), aBlock]);
  3224. return self;},
  3225. args: ["aBlock"],
  3226. source: unescape('ifFalse%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20%5B%5D%20ifFalse%3A%20aBlock'),
  3227. messageSends: ["ifTrue:ifFalse:"],
  3228. referencedClasses: []
  3229. }),
  3230. smalltalk.Boolean);
  3231. smalltalk.addMethod(
  3232. unescape('_ifFalse_ifTrue_'),
  3233. smalltalk.method({
  3234. selector: unescape('ifFalse%3AifTrue%3A'),
  3235. category: 'controlling',
  3236. fn: function (aBlock, anotherBlock){
  3237. var self=this;
  3238. return smalltalk.send(self, "_ifTrue_ifFalse_", [anotherBlock, aBlock]);
  3239. return self;},
  3240. args: ["aBlock", "anotherBlock"],
  3241. source: unescape('ifFalse%3A%20aBlock%20ifTrue%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20anotherBlock%20ifFalse%3A%20aBlock'),
  3242. messageSends: ["ifTrue:ifFalse:"],
  3243. referencedClasses: []
  3244. }),
  3245. smalltalk.Boolean);
  3246. smalltalk.addMethod(
  3247. unescape('_ifTrue_ifFalse_'),
  3248. smalltalk.method({
  3249. selector: unescape('ifTrue%3AifFalse%3A'),
  3250. category: 'controlling',
  3251. fn: function (aBlock, anotherBlock){
  3252. var self=this;
  3253. if(self == true) {
  3254. return aBlock();
  3255. } else {
  3256. return anotherBlock();
  3257. }
  3258. ;
  3259. return self;},
  3260. args: ["aBlock", "anotherBlock"],
  3261. 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'),
  3262. messageSends: [],
  3263. referencedClasses: []
  3264. }),
  3265. smalltalk.Boolean);
  3266. smalltalk.addMethod(
  3267. unescape('_and_'),
  3268. smalltalk.method({
  3269. selector: unescape('and%3A'),
  3270. category: 'controlling',
  3271. fn: function (aBlock){
  3272. var self=this;
  3273. return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [aBlock, (function(){return false;})]);
  3274. return self;},
  3275. args: ["aBlock"],
  3276. 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'),
  3277. messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
  3278. referencedClasses: []
  3279. }),
  3280. smalltalk.Boolean);
  3281. smalltalk.addMethod(
  3282. unescape('_or_'),
  3283. smalltalk.method({
  3284. selector: unescape('or%3A'),
  3285. category: 'controlling',
  3286. fn: function (aBlock){
  3287. var self=this;
  3288. return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [(function(){return true;}), aBlock]);
  3289. return self;},
  3290. args: ["aBlock"],
  3291. 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'),
  3292. messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
  3293. referencedClasses: []
  3294. }),
  3295. smalltalk.Boolean);
  3296. smalltalk.addMethod(
  3297. unescape('_not'),
  3298. smalltalk.method({
  3299. selector: unescape('not'),
  3300. category: 'controlling',
  3301. fn: function (){
  3302. var self=this;
  3303. return smalltalk.send(self, "__eq", [false]);
  3304. return self;},
  3305. args: [],
  3306. source: unescape('not%0A%09%5Eself%20%3D%20false'),
  3307. messageSends: [unescape("%3D")],
  3308. referencedClasses: []
  3309. }),
  3310. smalltalk.Boolean);
  3311. smalltalk.addMethod(
  3312. unescape('_printString'),
  3313. smalltalk.method({
  3314. selector: unescape('printString'),
  3315. category: 'printing',
  3316. fn: function (){
  3317. var self=this;
  3318. return self.toString();
  3319. return self;},
  3320. args: [],
  3321. source: unescape('printString%0A%09%3Creturn%20self.toString%28%29%3E'),
  3322. messageSends: [],
  3323. referencedClasses: []
  3324. }),
  3325. smalltalk.Boolean);
  3326. smalltalk.addMethod(
  3327. unescape('_%26'),
  3328. smalltalk.method({
  3329. selector: unescape('%26'),
  3330. category: 'controlling',
  3331. fn: function (aBoolean){
  3332. var self=this;
  3333. if(self == true) {
  3334. return aBoolean;
  3335. } else {
  3336. return false;
  3337. }
  3338. ;
  3339. return self;},
  3340. args: ["aBoolean"],
  3341. 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'),
  3342. messageSends: [],
  3343. referencedClasses: []
  3344. }),
  3345. smalltalk.Boolean);
  3346. smalltalk.addMethod(
  3347. unescape('_%7C'),
  3348. smalltalk.method({
  3349. selector: unescape('%7C'),
  3350. category: 'controlling',
  3351. fn: function (aBoolean){
  3352. var self=this;
  3353. if(self == true) {
  3354. return true;
  3355. } else {
  3356. return aBoolean;
  3357. }
  3358. ;
  3359. return self;},
  3360. args: ["aBoolean"],
  3361. 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'),
  3362. messageSends: [],
  3363. referencedClasses: []
  3364. }),
  3365. smalltalk.Boolean);
  3366. smalltalk.addMethod(
  3367. unescape('__eq_eq'),
  3368. smalltalk.method({
  3369. selector: unescape('%3D%3D'),
  3370. category: 'comparing',
  3371. fn: function (aBoolean){
  3372. var self=this;
  3373. 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}})})();})]));
  3374. return Boolean(self == true) === Boolean(aBoolean == true);
  3375. return self;
  3376. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  3377. args: ["aBoolean"],
  3378. 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'),
  3379. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  3380. referencedClasses: []
  3381. }),
  3382. smalltalk.Boolean);
  3383. smalltalk.addClass('Date', smalltalk.Object, [], 'Kernel');
  3384. smalltalk.Date.comment=unescape('The%20Date%20class%20is%20used%20to%20work%20with%20dates%20and%20times.')
  3385. smalltalk.addMethod(
  3386. unescape('_year'),
  3387. smalltalk.method({
  3388. selector: unescape('year'),
  3389. category: 'accessing',
  3390. fn: function (){
  3391. var self=this;
  3392. return self.getFullYear();
  3393. return self;},
  3394. args: [],
  3395. source: unescape('year%0A%09%3Creturn%20self.getFullYear%28%29%3E'),
  3396. messageSends: [],
  3397. referencedClasses: []
  3398. }),
  3399. smalltalk.Date);
  3400. smalltalk.addMethod(
  3401. unescape('_month'),
  3402. smalltalk.method({
  3403. selector: unescape('month'),
  3404. category: 'accessing',
  3405. fn: function (){
  3406. var self=this;
  3407. return self.getMonth() + 1;
  3408. return self;},
  3409. args: [],
  3410. source: unescape('month%0A%09%3Creturn%20self.getMonth%28%29%20+%201%3E'),
  3411. messageSends: [],
  3412. referencedClasses: []
  3413. }),
  3414. smalltalk.Date);
  3415. smalltalk.addMethod(
  3416. unescape('_month_'),
  3417. smalltalk.method({
  3418. selector: unescape('month%3A'),
  3419. category: 'accessing',
  3420. fn: function (aNumber){
  3421. var self=this;
  3422. self.setMonth(aNumber - 1);
  3423. return self;},
  3424. args: ["aNumber"],
  3425. source: unescape('month%3A%20aNumber%0A%09%3Cself.setMonth%28aNumber%20-%201%29%3E'),
  3426. messageSends: [],
  3427. referencedClasses: []
  3428. }),
  3429. smalltalk.Date);
  3430. smalltalk.addMethod(
  3431. unescape('_day'),
  3432. smalltalk.method({
  3433. selector: unescape('day'),
  3434. category: 'accessing',
  3435. fn: function (){
  3436. var self=this;
  3437. return smalltalk.send(self, "_dayOfWeek", []);
  3438. return self;},
  3439. args: [],
  3440. source: unescape('day%0A%09%5Eself%20dayOfWeek'),
  3441. messageSends: ["dayOfWeek"],
  3442. referencedClasses: []
  3443. }),
  3444. smalltalk.Date);
  3445. smalltalk.addMethod(
  3446. unescape('_dayOfWeek'),
  3447. smalltalk.method({
  3448. selector: unescape('dayOfWeek'),
  3449. category: 'accessing',
  3450. fn: function (){
  3451. var self=this;
  3452. return self.getDay() + 1;
  3453. return self;},
  3454. args: [],
  3455. source: unescape('dayOfWeek%0A%09%3Creturn%20self.getDay%28%29%20+%201%3E'),
  3456. messageSends: [],
  3457. referencedClasses: []
  3458. }),
  3459. smalltalk.Date);
  3460. smalltalk.addMethod(
  3461. unescape('_dayOfWeek_'),
  3462. smalltalk.method({
  3463. selector: unescape('dayOfWeek%3A'),
  3464. category: 'accessing',
  3465. fn: function (aNumber){
  3466. var self=this;
  3467. return self.setDay(aNumber - 1);
  3468. return self;},
  3469. args: ["aNumber"],
  3470. source: unescape('dayOfWeek%3A%20aNumber%0A%09%3Creturn%20self.setDay%28aNumber%20-%201%29%3E'),
  3471. messageSends: [],
  3472. referencedClasses: []
  3473. }),
  3474. smalltalk.Date);
  3475. smalltalk.addMethod(
  3476. unescape('_day_'),
  3477. smalltalk.method({
  3478. selector: unescape('day%3A'),
  3479. category: 'accessing',
  3480. fn: function (aNumber){
  3481. var self=this;
  3482. smalltalk.send(self, "_day_", [aNumber]);
  3483. return self;},
  3484. args: ["aNumber"],
  3485. source: unescape('day%3A%20aNumber%0A%09self%20day%3A%20aNumber'),
  3486. messageSends: ["day:"],
  3487. referencedClasses: []
  3488. }),
  3489. smalltalk.Date);
  3490. smalltalk.addMethod(
  3491. unescape('_year_'),
  3492. smalltalk.method({
  3493. selector: unescape('year%3A'),
  3494. category: 'accessing',
  3495. fn: function (aNumber){
  3496. var self=this;
  3497. self.setFullYear(aNumber);
  3498. return self;},
  3499. args: ["aNumber"],
  3500. source: unescape('year%3A%20aNumber%0A%09%3Cself.setFullYear%28aNumber%29%3E'),
  3501. messageSends: [],
  3502. referencedClasses: []
  3503. }),
  3504. smalltalk.Date);
  3505. smalltalk.addMethod(
  3506. unescape('_dayOfMonth'),
  3507. smalltalk.method({
  3508. selector: unescape('dayOfMonth'),
  3509. category: 'accessing',
  3510. fn: function (){
  3511. var self=this;
  3512. return self.getDate();
  3513. return self;},
  3514. args: [],
  3515. source: unescape('dayOfMonth%0A%09%3Creturn%20self.getDate%28%29%3E'),
  3516. messageSends: [],
  3517. referencedClasses: []
  3518. }),
  3519. smalltalk.Date);
  3520. smalltalk.addMethod(
  3521. unescape('_dayOfMonth_'),
  3522. smalltalk.method({
  3523. selector: unescape('dayOfMonth%3A'),
  3524. category: 'accessing',
  3525. fn: function (aNumber){
  3526. var self=this;
  3527. self.setDate(aNumber);
  3528. return self;},
  3529. args: ["aNumber"],
  3530. source: unescape('dayOfMonth%3A%20aNumber%0A%09%3Cself.setDate%28aNumber%29%3E'),
  3531. messageSends: [],
  3532. referencedClasses: []
  3533. }),
  3534. smalltalk.Date);
  3535. smalltalk.addMethod(
  3536. unescape('_asString'),
  3537. smalltalk.method({
  3538. selector: unescape('asString'),
  3539. category: 'converting',
  3540. fn: function (){
  3541. var self=this;
  3542. return self.toString();
  3543. return self;},
  3544. args: [],
  3545. source: unescape('asString%0A%09%3Creturn%20self.toString%28%29%3E'),
  3546. messageSends: [],
  3547. referencedClasses: []
  3548. }),
  3549. smalltalk.Date);
  3550. smalltalk.addMethod(
  3551. unescape('_printString'),
  3552. smalltalk.method({
  3553. selector: unescape('printString'),
  3554. category: 'printing',
  3555. fn: function (){
  3556. var self=this;
  3557. return smalltalk.send(self, "_asString", []);
  3558. return self;},
  3559. args: [],
  3560. source: unescape('printString%0A%09%5Eself%20asString'),
  3561. messageSends: ["asString"],
  3562. referencedClasses: []
  3563. }),
  3564. smalltalk.Date);
  3565. smalltalk.addMethod(
  3566. unescape('_asMilliseconds'),
  3567. smalltalk.method({
  3568. selector: unescape('asMilliseconds'),
  3569. category: 'converting',
  3570. fn: function (){
  3571. var self=this;
  3572. return smalltalk.send(self, "_time", []);
  3573. return self;},
  3574. args: [],
  3575. source: unescape('asMilliseconds%0A%09%5Eself%20time'),
  3576. messageSends: ["time"],
  3577. referencedClasses: []
  3578. }),
  3579. smalltalk.Date);
  3580. smalltalk.addMethod(
  3581. unescape('_time'),
  3582. smalltalk.method({
  3583. selector: unescape('time'),
  3584. category: 'accessing',
  3585. fn: function (){
  3586. var self=this;
  3587. return self.getTime();
  3588. return self;},
  3589. args: [],
  3590. source: unescape('time%0A%09%3Creturn%20self.getTime%28%29%3E'),
  3591. messageSends: [],
  3592. referencedClasses: []
  3593. }),
  3594. smalltalk.Date);
  3595. smalltalk.addMethod(
  3596. unescape('_time_'),
  3597. smalltalk.method({
  3598. selector: unescape('time%3A'),
  3599. category: 'accessing',
  3600. fn: function (aNumber){
  3601. var self=this;
  3602. self.setTime(aNumber);
  3603. return self;},
  3604. args: ["aNumber"],
  3605. source: unescape('time%3A%20aNumber%0A%09%3Cself.setTime%28aNumber%29%3E'),
  3606. messageSends: [],
  3607. referencedClasses: []
  3608. }),
  3609. smalltalk.Date);
  3610. smalltalk.addMethod(
  3611. unescape('_asDateString'),
  3612. smalltalk.method({
  3613. selector: unescape('asDateString'),
  3614. category: 'converting',
  3615. fn: function (){
  3616. var self=this;
  3617. return self.toDateString();
  3618. return self;},
  3619. args: [],
  3620. source: unescape('asDateString%0A%09%3Creturn%20self.toDateString%28%29%3E'),
  3621. messageSends: [],
  3622. referencedClasses: []
  3623. }),
  3624. smalltalk.Date);
  3625. smalltalk.addMethod(
  3626. unescape('_asTimeString'),
  3627. smalltalk.method({
  3628. selector: unescape('asTimeString'),
  3629. category: 'converting',
  3630. fn: function (){
  3631. var self=this;
  3632. return self.toTimeString();
  3633. return self;},
  3634. args: [],
  3635. source: unescape('asTimeString%0A%09%3Creturn%20self.toTimeString%28%29%3E'),
  3636. messageSends: [],
  3637. referencedClasses: []
  3638. }),
  3639. smalltalk.Date);
  3640. smalltalk.addMethod(
  3641. unescape('_asLocaleString'),
  3642. smalltalk.method({
  3643. selector: unescape('asLocaleString'),
  3644. category: 'converting',
  3645. fn: function (){
  3646. var self=this;
  3647. return self.toLocaleString();
  3648. return self;},
  3649. args: [],
  3650. source: unescape('asLocaleString%0A%09%3Creturn%20self.toLocaleString%28%29%3E'),
  3651. messageSends: [],
  3652. referencedClasses: []
  3653. }),
  3654. smalltalk.Date);
  3655. smalltalk.addMethod(
  3656. unescape('_asNumber'),
  3657. smalltalk.method({
  3658. selector: unescape('asNumber'),
  3659. category: 'converting',
  3660. fn: function (){
  3661. var self=this;
  3662. return smalltalk.send(self, "_asMilliseconds", []);
  3663. return self;},
  3664. args: [],
  3665. source: unescape('asNumber%0A%09%5Eself%20asMilliseconds'),
  3666. messageSends: ["asMilliseconds"],
  3667. referencedClasses: []
  3668. }),
  3669. smalltalk.Date);
  3670. smalltalk.addMethod(
  3671. unescape('_hours_'),
  3672. smalltalk.method({
  3673. selector: unescape('hours%3A'),
  3674. category: 'accessing',
  3675. fn: function (aNumber){
  3676. var self=this;
  3677. self.setHours(aNumber);
  3678. return self;},
  3679. args: ["aNumber"],
  3680. source: unescape('hours%3A%20aNumber%0A%09%3Cself.setHours%28aNumber%29%3E'),
  3681. messageSends: [],
  3682. referencedClasses: []
  3683. }),
  3684. smalltalk.Date);
  3685. smalltalk.addMethod(
  3686. unescape('_minutes_'),
  3687. smalltalk.method({
  3688. selector: unescape('minutes%3A'),
  3689. category: 'accessing',
  3690. fn: function (aNumber){
  3691. var self=this;
  3692. self.setMinutes(aNumber);
  3693. return self;},
  3694. args: ["aNumber"],
  3695. source: unescape('minutes%3A%20aNumber%0A%09%3Cself.setMinutes%28aNumber%29%3E'),
  3696. messageSends: [],
  3697. referencedClasses: []
  3698. }),
  3699. smalltalk.Date);
  3700. smalltalk.addMethod(
  3701. unescape('_seconds_'),
  3702. smalltalk.method({
  3703. selector: unescape('seconds%3A'),
  3704. category: 'accessing',
  3705. fn: function (aNumber){
  3706. var self=this;
  3707. self.setSeconds(aNumber);
  3708. return self;},
  3709. args: ["aNumber"],
  3710. source: unescape('seconds%3A%20aNumber%0A%09%3Cself.setSeconds%28aNumber%29%3E'),
  3711. messageSends: [],
  3712. referencedClasses: []
  3713. }),
  3714. smalltalk.Date);
  3715. smalltalk.addMethod(
  3716. unescape('_milliseconds_'),
  3717. smalltalk.method({
  3718. selector: unescape('milliseconds%3A'),
  3719. category: 'accessing',
  3720. fn: function (aNumber){
  3721. var self=this;
  3722. self.setMilliseconds(aNumber);
  3723. return self;},
  3724. args: ["aNumber"],
  3725. source: unescape('milliseconds%3A%20aNumber%0A%09%3Cself.setMilliseconds%28aNumber%29%3E'),
  3726. messageSends: [],
  3727. referencedClasses: []
  3728. }),
  3729. smalltalk.Date);
  3730. smalltalk.addMethod(
  3731. unescape('_hours'),
  3732. smalltalk.method({
  3733. selector: unescape('hours'),
  3734. category: 'accessing',
  3735. fn: function (){
  3736. var self=this;
  3737. return self.getHours();
  3738. return self;},
  3739. args: [],
  3740. source: unescape('hours%0A%09%3Creturn%20self.getHours%28%29%3E'),
  3741. messageSends: [],
  3742. referencedClasses: []
  3743. }),
  3744. smalltalk.Date);
  3745. smalltalk.addMethod(
  3746. unescape('_minutes'),
  3747. smalltalk.method({
  3748. selector: unescape('minutes'),
  3749. category: 'accessing',
  3750. fn: function (){
  3751. var self=this;
  3752. return self.getMinutes();
  3753. return self;},
  3754. args: [],
  3755. source: unescape('minutes%0A%09%3Creturn%20self.getMinutes%28%29%3E'),
  3756. messageSends: [],
  3757. referencedClasses: []
  3758. }),
  3759. smalltalk.Date);
  3760. smalltalk.addMethod(
  3761. unescape('_seconds'),
  3762. smalltalk.method({
  3763. selector: unescape('seconds'),
  3764. category: 'accessing',
  3765. fn: function (){
  3766. var self=this;
  3767. return self.getSeconds();
  3768. return self;},
  3769. args: [],
  3770. source: unescape('seconds%0A%09%3Creturn%20self.getSeconds%28%29%3E'),
  3771. messageSends: [],
  3772. referencedClasses: []
  3773. }),
  3774. smalltalk.Date);
  3775. smalltalk.addMethod(
  3776. unescape('_milliseconds'),
  3777. smalltalk.method({
  3778. selector: unescape('milliseconds'),
  3779. category: 'accessing',
  3780. fn: function (){
  3781. var self=this;
  3782. return self.getMilliseconds();
  3783. return self;},
  3784. args: [],
  3785. source: unescape('milliseconds%0A%09%3Creturn%20self.getMilliseconds%28%29%3E'),
  3786. messageSends: [],
  3787. referencedClasses: []
  3788. }),
  3789. smalltalk.Date);
  3790. smalltalk.addMethod(
  3791. unescape('__lt'),
  3792. smalltalk.method({
  3793. selector: unescape('%3C'),
  3794. category: 'comparing',
  3795. fn: function (aDate){
  3796. var self=this;
  3797. return self < aDate;
  3798. return self;},
  3799. args: ["aDate"],
  3800. source: unescape('%3C%20aDate%0A%09%3Creturn%20self%20%3C%20aDate%3E'),
  3801. messageSends: [],
  3802. referencedClasses: []
  3803. }),
  3804. smalltalk.Date);
  3805. smalltalk.addMethod(
  3806. unescape('__gt'),
  3807. smalltalk.method({
  3808. selector: unescape('%3E'),
  3809. category: 'comparing',
  3810. fn: function (aDate){
  3811. var self=this;
  3812. return self > aDate;
  3813. return self;},
  3814. args: ["aDate"],
  3815. source: unescape('%3E%20aDate%0A%09%3Creturn%20self%20%3E%3E%20aDate%3E'),
  3816. messageSends: [],
  3817. referencedClasses: []
  3818. }),
  3819. smalltalk.Date);
  3820. smalltalk.addMethod(
  3821. unescape('__lt_eq'),
  3822. smalltalk.method({
  3823. selector: unescape('%3C%3D'),
  3824. category: 'comparing',
  3825. fn: function (aDate){
  3826. var self=this;
  3827. return self <= aDate;
  3828. return self;},
  3829. args: ["aDate"],
  3830. source: unescape('%3C%3D%20aDate%0A%09%3Creturn%20self%20%3C%3D%20aDate%3E'),
  3831. messageSends: [],
  3832. referencedClasses: []
  3833. }),
  3834. smalltalk.Date);
  3835. smalltalk.addMethod(
  3836. unescape('__gt_eq'),
  3837. smalltalk.method({
  3838. selector: unescape('%3E%3D'),
  3839. category: 'comparing',
  3840. fn: function (aDate){
  3841. var self=this;
  3842. return self >= aDate;
  3843. return self;},
  3844. args: ["aDate"],
  3845. source: unescape('%3E%3D%20aDate%0A%09%3Creturn%20self%20%3E%3E%3D%20aDate%3E'),
  3846. messageSends: [],
  3847. referencedClasses: []
  3848. }),
  3849. smalltalk.Date);
  3850. smalltalk.addMethod(
  3851. unescape('__minus'),
  3852. smalltalk.method({
  3853. selector: unescape('-'),
  3854. category: 'arithmetic',
  3855. fn: function (aDate){
  3856. var self=this;
  3857. return self - aDate;
  3858. return self;},
  3859. args: ["aDate"],
  3860. source: unescape('-%20aDate%0A%09%3Creturn%20self%20-%20aDate%3E'),
  3861. messageSends: [],
  3862. referencedClasses: []
  3863. }),
  3864. smalltalk.Date);
  3865. smalltalk.addMethod(
  3866. unescape('__plus'),
  3867. smalltalk.method({
  3868. selector: unescape('+'),
  3869. category: 'arithmetic',
  3870. fn: function (aDate){
  3871. var self=this;
  3872. return self + aDate;
  3873. return self;},
  3874. args: ["aDate"],
  3875. source: unescape('+%20aDate%0A%09%3Creturn%20self%20+%20aDate%3E'),
  3876. messageSends: [],
  3877. referencedClasses: []
  3878. }),
  3879. smalltalk.Date);
  3880. smalltalk.addMethod(
  3881. unescape('_new_'),
  3882. smalltalk.method({
  3883. selector: unescape('new%3A'),
  3884. category: 'instance creation',
  3885. fn: function (anObject){
  3886. var self=this;
  3887. return new Date(anObject);
  3888. return self;},
  3889. args: ["anObject"],
  3890. source: unescape('new%3A%20anObject%0A%09%3Creturn%20new%20Date%28anObject%29%3E'),
  3891. messageSends: [],
  3892. referencedClasses: []
  3893. }),
  3894. smalltalk.Date.klass);
  3895. smalltalk.addMethod(
  3896. unescape('_fromString_'),
  3897. smalltalk.method({
  3898. selector: unescape('fromString%3A'),
  3899. category: 'instance creation',
  3900. fn: function (aString){
  3901. var self=this;
  3902. return smalltalk.send(self, "_new_", [aString]);
  3903. return self;},
  3904. args: ["aString"],
  3905. 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'),
  3906. messageSends: ["new:"],
  3907. referencedClasses: []
  3908. }),
  3909. smalltalk.Date.klass);
  3910. smalltalk.addMethod(
  3911. unescape('_fromSeconds_'),
  3912. smalltalk.method({
  3913. selector: unescape('fromSeconds%3A'),
  3914. category: 'instance creation',
  3915. fn: function (aNumber){
  3916. var self=this;
  3917. return smalltalk.send(self, "_fromMilliseconds_", [((($receiver = aNumber).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))]);
  3918. return self;},
  3919. args: ["aNumber"],
  3920. source: unescape('fromSeconds%3A%20aNumber%0A%09%5Eself%20fromMilliseconds%3A%20aNumber%20*%201000'),
  3921. messageSends: ["fromMilliseconds:", unescape("*")],
  3922. referencedClasses: []
  3923. }),
  3924. smalltalk.Date.klass);
  3925. smalltalk.addMethod(
  3926. unescape('_fromMilliseconds_'),
  3927. smalltalk.method({
  3928. selector: unescape('fromMilliseconds%3A'),
  3929. category: 'instance creation',
  3930. fn: function (aNumber){
  3931. var self=this;
  3932. return smalltalk.send(self, "_new_", [aNumber]);
  3933. return self;},
  3934. args: ["aNumber"],
  3935. source: unescape('fromMilliseconds%3A%20aNumber%0A%09%5Eself%20new%3A%20aNumber'),
  3936. messageSends: ["new:"],
  3937. referencedClasses: []
  3938. }),
  3939. smalltalk.Date.klass);
  3940. smalltalk.addMethod(
  3941. unescape('_today'),
  3942. smalltalk.method({
  3943. selector: unescape('today'),
  3944. category: 'instance creation',
  3945. fn: function (){
  3946. var self=this;
  3947. return smalltalk.send(self, "_new", []);
  3948. return self;},
  3949. args: [],
  3950. source: unescape('today%0A%09%5Eself%20new'),
  3951. messageSends: ["new"],
  3952. referencedClasses: []
  3953. }),
  3954. smalltalk.Date.klass);
  3955. smalltalk.addMethod(
  3956. unescape('_now'),
  3957. smalltalk.method({
  3958. selector: unescape('now'),
  3959. category: 'instance creation',
  3960. fn: function (){
  3961. var self=this;
  3962. return smalltalk.send(self, "_today", []);
  3963. return self;},
  3964. args: [],
  3965. source: unescape('now%0A%09%5Eself%20today'),
  3966. messageSends: ["today"],
  3967. referencedClasses: []
  3968. }),
  3969. smalltalk.Date.klass);
  3970. smalltalk.addMethod(
  3971. unescape('_millisecondsToRun_'),
  3972. smalltalk.method({
  3973. selector: unescape('millisecondsToRun%3A'),
  3974. category: 'instance creation',
  3975. fn: function (aBlock){
  3976. var self=this;
  3977. var t=nil;
  3978. t=smalltalk.send((smalltalk.Date || Date), "_now", []);
  3979. smalltalk.send(aBlock, "_value", []);
  3980. return ((($receiver = smalltalk.send((smalltalk.Date || Date), "_now", [])).klass === smalltalk.Number) ? $receiver -t : smalltalk.send($receiver, "__minus", [t]));
  3981. return self;},
  3982. args: ["aBlock"],
  3983. 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'),
  3984. messageSends: ["now", "value", unescape("-")],
  3985. referencedClasses: ["Date"]
  3986. }),
  3987. smalltalk.Date.klass);
  3988. smalltalk.addClass('UndefinedObject', smalltalk.Object, [], 'Kernel');
  3989. smalltalk.addMethod(
  3990. unescape('_subclass_instanceVariableNames_'),
  3991. smalltalk.method({
  3992. selector: unescape('subclass%3AinstanceVariableNames%3A'),
  3993. category: 'class creation',
  3994. fn: function (aString, anotherString){
  3995. var self=this;
  3996. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
  3997. return self;},
  3998. args: ["aString", "anotherString"],
  3999. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%20package%3A%20nil'),
  4000. messageSends: ["subclass:instanceVariableNames:package:"],
  4001. referencedClasses: []
  4002. }),
  4003. smalltalk.UndefinedObject);
  4004. smalltalk.addMethod(
  4005. unescape('_subclass_instanceVariableNames_category_'),
  4006. smalltalk.method({
  4007. selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
  4008. category: 'class creation',
  4009. fn: function (aString, aString2, aString3){
  4010. var self=this;
  4011. smalltalk.send(self, "_deprecatedAPI", []);
  4012. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  4013. return self;},
  4014. args: ["aString", "aString2", "aString3"],
  4015. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20category%3A%20aString3%0A%09%22Kept%20for%20compatibility.%22%0A%09self%20deprecatedAPI.%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  4016. messageSends: ["deprecatedAPI", "subclass:instanceVariableNames:package:"],
  4017. referencedClasses: []
  4018. }),
  4019. smalltalk.UndefinedObject);
  4020. smalltalk.addMethod(
  4021. unescape('_shallowCopy'),
  4022. smalltalk.method({
  4023. selector: unescape('shallowCopy'),
  4024. category: 'copying',
  4025. fn: function (){
  4026. var self=this;
  4027. return self;
  4028. return self;},
  4029. args: [],
  4030. source: unescape('shallowCopy%0A%09%5Eself'),
  4031. messageSends: [],
  4032. referencedClasses: []
  4033. }),
  4034. smalltalk.UndefinedObject);
  4035. smalltalk.addMethod(
  4036. unescape('_deepCopy'),
  4037. smalltalk.method({
  4038. selector: unescape('deepCopy'),
  4039. category: 'copying',
  4040. fn: function (){
  4041. var self=this;
  4042. return self;
  4043. return self;},
  4044. args: [],
  4045. source: unescape('deepCopy%0A%09%5Eself'),
  4046. messageSends: [],
  4047. referencedClasses: []
  4048. }),
  4049. smalltalk.UndefinedObject);
  4050. smalltalk.addMethod(
  4051. unescape('_ifNil_'),
  4052. smalltalk.method({
  4053. selector: unescape('ifNil%3A'),
  4054. category: 'testing',
  4055. fn: function (aBlock){
  4056. var self=this;
  4057. return smalltalk.send(self, "_ifNil_ifNotNil_", [aBlock, (function(){return nil;})]);
  4058. return self;},
  4059. args: ["aBlock"],
  4060. source: unescape('ifNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifNil%3A%20aBlock%20ifNotNil%3A%20%5B%5D'),
  4061. messageSends: ["ifNil:ifNotNil:"],
  4062. referencedClasses: []
  4063. }),
  4064. smalltalk.UndefinedObject);
  4065. smalltalk.addMethod(
  4066. unescape('_ifNotNil_'),
  4067. smalltalk.method({
  4068. selector: unescape('ifNotNil%3A'),
  4069. category: 'testing',
  4070. fn: function (aBlock){
  4071. var self=this;
  4072. return self;
  4073. return self;},
  4074. args: ["aBlock"],
  4075. source: unescape('ifNotNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself'),
  4076. messageSends: [],
  4077. referencedClasses: []
  4078. }),
  4079. smalltalk.UndefinedObject);
  4080. smalltalk.addMethod(
  4081. unescape('_ifNil_ifNotNil_'),
  4082. smalltalk.method({
  4083. selector: unescape('ifNil%3AifNotNil%3A'),
  4084. category: 'testing',
  4085. fn: function (aBlock, anotherBlock){
  4086. var self=this;
  4087. return smalltalk.send(aBlock, "_value", []);
  4088. return self;},
  4089. args: ["aBlock", "anotherBlock"],
  4090. source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  4091. messageSends: ["value"],
  4092. referencedClasses: []
  4093. }),
  4094. smalltalk.UndefinedObject);
  4095. smalltalk.addMethod(
  4096. unescape('_ifNotNil_ifNil_'),
  4097. smalltalk.method({
  4098. selector: unescape('ifNotNil%3AifNil%3A'),
  4099. category: 'testing',
  4100. fn: function (aBlock, anotherBlock){
  4101. var self=this;
  4102. return smalltalk.send(anotherBlock, "_value", []);
  4103. return self;},
  4104. args: ["aBlock", "anotherBlock"],
  4105. source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EanotherBlock%20value'),
  4106. messageSends: ["value"],
  4107. referencedClasses: []
  4108. }),
  4109. smalltalk.UndefinedObject);
  4110. smalltalk.addMethod(
  4111. unescape('_isNil'),
  4112. smalltalk.method({
  4113. selector: unescape('isNil'),
  4114. category: 'testing',
  4115. fn: function (){
  4116. var self=this;
  4117. return true;
  4118. return self;},
  4119. args: [],
  4120. source: unescape('isNil%0A%09%5Etrue'),
  4121. messageSends: [],
  4122. referencedClasses: []
  4123. }),
  4124. smalltalk.UndefinedObject);
  4125. smalltalk.addMethod(
  4126. unescape('_notNil'),
  4127. smalltalk.method({
  4128. selector: unescape('notNil'),
  4129. category: 'testing',
  4130. fn: function (){
  4131. var self=this;
  4132. return false;
  4133. return self;},
  4134. args: [],
  4135. source: unescape('notNil%0A%09%5Efalse'),
  4136. messageSends: [],
  4137. referencedClasses: []
  4138. }),
  4139. smalltalk.UndefinedObject);
  4140. smalltalk.addMethod(
  4141. unescape('_printString'),
  4142. smalltalk.method({
  4143. selector: unescape('printString'),
  4144. category: 'printing',
  4145. fn: function (){
  4146. var self=this;
  4147. return "nil";
  4148. return self;},
  4149. args: [],
  4150. source: unescape('printString%0A%20%20%20%20%5E%27nil%27'),
  4151. messageSends: [],
  4152. referencedClasses: []
  4153. }),
  4154. smalltalk.UndefinedObject);
  4155. smalltalk.addMethod(
  4156. unescape('_subclass_instanceVariableNames_package_'),
  4157. smalltalk.method({
  4158. selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
  4159. category: 'class creation',
  4160. fn: function (aString, aString2, aString3){
  4161. var self=this;
  4162. return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
  4163. return self;},
  4164. args: ["aString", "aString2", "aString3"],
  4165. 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'),
  4166. messageSends: ["superclass:subclass:instanceVariableNames:package:", "new"],
  4167. referencedClasses: ["ClassBuilder"]
  4168. }),
  4169. smalltalk.UndefinedObject);
  4170. smalltalk.addMethod(
  4171. unescape('_new'),
  4172. smalltalk.method({
  4173. selector: unescape('new'),
  4174. category: 'instance creation',
  4175. fn: function (){
  4176. var self=this;
  4177. smalltalk.send(self, "_error_", ["You cannot create new instances of UndefinedObject. Use nil"]);
  4178. return self;},
  4179. args: [],
  4180. source: unescape('new%0A%09%20%20%20%20self%20error%3A%20%27You%20cannot%20create%20new%20instances%20of%20UndefinedObject.%20Use%20nil%27'),
  4181. messageSends: ["error:"],
  4182. referencedClasses: []
  4183. }),
  4184. smalltalk.UndefinedObject.klass);
  4185. smalltalk.addClass('Collection', smalltalk.Object, [], 'Kernel');
  4186. smalltalk.addMethod(
  4187. unescape('_size'),
  4188. smalltalk.method({
  4189. selector: unescape('size'),
  4190. category: 'accessing',
  4191. fn: function (){
  4192. var self=this;
  4193. smalltalk.send(self, "_subclassResponsibility", []);
  4194. return self;},
  4195. args: [],
  4196. source: unescape('size%0A%09self%20subclassResponsibility'),
  4197. messageSends: ["subclassResponsibility"],
  4198. referencedClasses: []
  4199. }),
  4200. smalltalk.Collection);
  4201. smalltalk.addMethod(
  4202. unescape('_readStream'),
  4203. smalltalk.method({
  4204. selector: unescape('readStream'),
  4205. category: 'accessing',
  4206. fn: function (){
  4207. var self=this;
  4208. return smalltalk.send(self, "_stream", []);
  4209. return self;},
  4210. args: [],
  4211. source: unescape('readStream%0A%09%5Eself%20stream'),
  4212. messageSends: ["stream"],
  4213. referencedClasses: []
  4214. }),
  4215. smalltalk.Collection);
  4216. smalltalk.addMethod(
  4217. unescape('_writeStream'),
  4218. smalltalk.method({
  4219. selector: unescape('writeStream'),
  4220. category: 'accessing',
  4221. fn: function (){
  4222. var self=this;
  4223. return smalltalk.send(self, "_stream", []);
  4224. return self;},
  4225. args: [],
  4226. source: unescape('writeStream%0A%09%5Eself%20stream'),
  4227. messageSends: ["stream"],
  4228. referencedClasses: []
  4229. }),
  4230. smalltalk.Collection);
  4231. smalltalk.addMethod(
  4232. unescape('_stream'),
  4233. smalltalk.method({
  4234. selector: unescape('stream'),
  4235. category: 'accessing',
  4236. fn: function (){
  4237. var self=this;
  4238. return smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [self]);
  4239. return self;},
  4240. args: [],
  4241. source: unescape('stream%0A%09%5Eself%20streamClass%20on%3A%20self'),
  4242. messageSends: ["on:", "streamClass"],
  4243. referencedClasses: []
  4244. }),
  4245. smalltalk.Collection);
  4246. smalltalk.addMethod(
  4247. unescape('_streamClass'),
  4248. smalltalk.method({
  4249. selector: unescape('streamClass'),
  4250. category: 'accessing',
  4251. fn: function (){
  4252. var self=this;
  4253. return smalltalk.send(smalltalk.send(self, "_class", []), "_streamClass", []);
  4254. return self;},
  4255. args: [],
  4256. source: unescape('streamClass%0A%09%5Eself%20class%20streamClass'),
  4257. messageSends: ["streamClass", "class"],
  4258. referencedClasses: []
  4259. }),
  4260. smalltalk.Collection);
  4261. smalltalk.addMethod(
  4262. unescape('_add_'),
  4263. smalltalk.method({
  4264. selector: unescape('add%3A'),
  4265. category: 'adding/removing',
  4266. fn: function (anObject){
  4267. var self=this;
  4268. smalltalk.send(self, "_subclassResponsibility", []);
  4269. return self;},
  4270. args: ["anObject"],
  4271. source: unescape('add%3A%20anObject%0A%09self%20subclassResponsibility'),
  4272. messageSends: ["subclassResponsibility"],
  4273. referencedClasses: []
  4274. }),
  4275. smalltalk.Collection);
  4276. smalltalk.addMethod(
  4277. unescape('_addAll_'),
  4278. smalltalk.method({
  4279. selector: unescape('addAll%3A'),
  4280. category: 'adding/removing',
  4281. fn: function (aCollection){
  4282. var self=this;
  4283. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_add_", [each]);})]);
  4284. return aCollection;
  4285. return self;},
  4286. args: ["aCollection"],
  4287. 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'),
  4288. messageSends: ["do:", "add:"],
  4289. referencedClasses: []
  4290. }),
  4291. smalltalk.Collection);
  4292. smalltalk.addMethod(
  4293. unescape('__comma'),
  4294. smalltalk.method({
  4295. selector: unescape('%2C'),
  4296. category: 'copying',
  4297. fn: function (aCollection){
  4298. var self=this;
  4299. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  4300. return self;},
  4301. args: ["aCollection"],
  4302. 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'),
  4303. messageSends: ["addAll:", "yourself", "copy"],
  4304. referencedClasses: []
  4305. }),
  4306. smalltalk.Collection);
  4307. smalltalk.addMethod(
  4308. unescape('_copyWith_'),
  4309. smalltalk.method({
  4310. selector: unescape('copyWith%3A'),
  4311. category: 'copying',
  4312. fn: function (anObject){
  4313. var self=this;
  4314. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  4315. return self;},
  4316. args: ["anObject"],
  4317. source: unescape('copyWith%3A%20anObject%0A%09%5Eself%20copy%20add%3A%20anObject%3B%20yourself'),
  4318. messageSends: ["add:", "yourself", "copy"],
  4319. referencedClasses: []
  4320. }),
  4321. smalltalk.Collection);
  4322. smalltalk.addMethod(
  4323. unescape('_copyWithAll_'),
  4324. smalltalk.method({
  4325. selector: unescape('copyWithAll%3A'),
  4326. category: 'copying',
  4327. fn: function (aCollection){
  4328. var self=this;
  4329. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  4330. return self;},
  4331. args: ["aCollection"],
  4332. source: unescape('copyWithAll%3A%20aCollection%0A%09%5Eself%20copy%20addAll%3A%20aCollection%3B%20yourself'),
  4333. messageSends: ["addAll:", "yourself", "copy"],
  4334. referencedClasses: []
  4335. }),
  4336. smalltalk.Collection);
  4337. smalltalk.addMethod(
  4338. unescape('_asArray'),
  4339. smalltalk.method({
  4340. selector: unescape('asArray'),
  4341. category: 'converting',
  4342. fn: function (){
  4343. var self=this;
  4344. var array=nil;
  4345. var index=nil;
  4346. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  4347. index=(0);
  4348. 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]);})]);
  4349. return array;
  4350. return self;},
  4351. args: [],
  4352. 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'),
  4353. messageSends: ["new", "do:", unescape("+"), "at:put:"],
  4354. referencedClasses: ["Array"]
  4355. }),
  4356. smalltalk.Collection);
  4357. smalltalk.addMethod(
  4358. unescape('_do_'),
  4359. smalltalk.method({
  4360. selector: unescape('do%3A'),
  4361. category: 'enumerating',
  4362. fn: function (aBlock){
  4363. var self=this;
  4364. for(var i=0;i<self.length;i++){aBlock(self[i]);};
  4365. return self;},
  4366. args: ["aBlock"],
  4367. source: unescape('do%3A%20aBlock%0A%09%3Cfor%28var%20i%3D0%3Bi%3Cself.length%3Bi++%29%7BaBlock%28self%5Bi%5D%29%3B%7D%3E'),
  4368. messageSends: [],
  4369. referencedClasses: []
  4370. }),
  4371. smalltalk.Collection);
  4372. smalltalk.addMethod(
  4373. unescape('_collect_'),
  4374. smalltalk.method({
  4375. selector: unescape('collect%3A'),
  4376. category: 'enumerating',
  4377. fn: function (aBlock){
  4378. var self=this;
  4379. var newCollection=nil;
  4380. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  4381. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(aBlock, "_value_", [each])]);})]);
  4382. return newCollection;
  4383. return self;},
  4384. args: ["aBlock"],
  4385. 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'),
  4386. messageSends: ["new", "class", "do:", "add:", "value:"],
  4387. referencedClasses: []
  4388. }),
  4389. smalltalk.Collection);
  4390. smalltalk.addMethod(
  4391. unescape('_detect_'),
  4392. smalltalk.method({
  4393. selector: unescape('detect%3A'),
  4394. category: 'enumerating',
  4395. fn: function (aBlock){
  4396. var self=this;
  4397. return smalltalk.send(self, "_detect_ifNone_", [aBlock, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4398. return self;},
  4399. args: ["aBlock"],
  4400. source: unescape('detect%3A%20aBlock%0A%09%5Eself%20detect%3A%20aBlock%20ifNone%3A%20%5Bself%20errorNotFound%5D'),
  4401. messageSends: ["detect:ifNone:", "errorNotFound"],
  4402. referencedClasses: []
  4403. }),
  4404. smalltalk.Collection);
  4405. smalltalk.addMethod(
  4406. unescape('_detect_ifNone_'),
  4407. smalltalk.method({
  4408. selector: unescape('detect%3AifNone%3A'),
  4409. category: 'enumerating',
  4410. fn: function (aBlock, anotherBlock){
  4411. var self=this;
  4412. for(var i = 0; i < self.length; i++)
  4413. if(aBlock(self[i]))
  4414. return self[i];
  4415. return anotherBlock();
  4416. ;
  4417. return self;},
  4418. args: ["aBlock", "anotherBlock"],
  4419. 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'),
  4420. messageSends: [],
  4421. referencedClasses: []
  4422. }),
  4423. smalltalk.Collection);
  4424. smalltalk.addMethod(
  4425. unescape('_do_separatedBy_'),
  4426. smalltalk.method({
  4427. selector: unescape('do%3AseparatedBy%3A'),
  4428. category: 'enumerating',
  4429. fn: function (aBlock, anotherBlock){
  4430. var self=this;
  4431. var first=nil;
  4432. first=true;
  4433. 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]);})]);
  4434. return self;},
  4435. args: ["aBlock", "anotherBlock"],
  4436. 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'),
  4437. messageSends: ["do:", "ifTrue:ifFalse:", "value", "value:"],
  4438. referencedClasses: []
  4439. }),
  4440. smalltalk.Collection);
  4441. smalltalk.addMethod(
  4442. unescape('_inject_into_'),
  4443. smalltalk.method({
  4444. selector: unescape('inject%3Ainto%3A'),
  4445. category: 'enumerating',
  4446. fn: function (anObject, aBlock){
  4447. var self=this;
  4448. var result=nil;
  4449. result=anObject;
  4450. smalltalk.send(self, "_do_", [(function(each){return result=smalltalk.send(aBlock, "_value_value_", [result, each]);})]);
  4451. return result;
  4452. return self;},
  4453. args: ["anObject", "aBlock"],
  4454. 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'),
  4455. messageSends: ["do:", "value:value:"],
  4456. referencedClasses: []
  4457. }),
  4458. smalltalk.Collection);
  4459. smalltalk.addMethod(
  4460. unescape('_reject_'),
  4461. smalltalk.method({
  4462. selector: unescape('reject%3A'),
  4463. category: 'enumerating',
  4464. fn: function (aBlock){
  4465. var self=this;
  4466. return smalltalk.send(self, "_select_", [(function(each){return smalltalk.send(smalltalk.send(aBlock, "_value_", [each]), "__eq", [false]);})]);
  4467. return self;},
  4468. args: ["aBlock"],
  4469. 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'),
  4470. messageSends: ["select:", unescape("%3D"), "value:"],
  4471. referencedClasses: []
  4472. }),
  4473. smalltalk.Collection);
  4474. smalltalk.addMethod(
  4475. unescape('_select_'),
  4476. smalltalk.method({
  4477. selector: unescape('select%3A'),
  4478. category: 'enumerating',
  4479. fn: function (aBlock){
  4480. var self=this;
  4481. var stream=nil;
  4482. stream=smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_new", []), "_writeStream", []);
  4483. 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]);})]));})]);
  4484. return smalltalk.send(stream, "_contents", []);
  4485. return self;},
  4486. args: ["aBlock"],
  4487. 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'),
  4488. messageSends: ["writeStream", "new", "class", "do:", "ifTrue:", "value:", "nextPut:", "contents"],
  4489. referencedClasses: []
  4490. }),
  4491. smalltalk.Collection);
  4492. smalltalk.addMethod(
  4493. unescape('_errorNotFound'),
  4494. smalltalk.method({
  4495. selector: unescape('errorNotFound'),
  4496. category: 'error handling',
  4497. fn: function (){
  4498. var self=this;
  4499. smalltalk.send(self, "_error_", ["Object is not in the collection"]);
  4500. return self;},
  4501. args: [],
  4502. source: unescape('errorNotFound%0A%09self%20error%3A%20%27Object%20is%20not%20in%20the%20collection%27'),
  4503. messageSends: ["error:"],
  4504. referencedClasses: []
  4505. }),
  4506. smalltalk.Collection);
  4507. smalltalk.addMethod(
  4508. unescape('_includes_'),
  4509. smalltalk.method({
  4510. selector: unescape('includes%3A'),
  4511. category: 'testing',
  4512. fn: function (anObject){
  4513. var self=this;
  4514. var i = self.length;
  4515. while (i--) {
  4516. if (smalltalk.send(self[i], "__eq", [anObject])) {return true;}
  4517. }
  4518. return false
  4519. ;
  4520. return self;},
  4521. args: ["anObject"],
  4522. 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'),
  4523. messageSends: [],
  4524. referencedClasses: []
  4525. }),
  4526. smalltalk.Collection);
  4527. smalltalk.addMethod(
  4528. unescape('_notEmpty'),
  4529. smalltalk.method({
  4530. selector: unescape('notEmpty'),
  4531. category: 'testing',
  4532. fn: function (){
  4533. var self=this;
  4534. return smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_not", []);
  4535. return self;},
  4536. args: [],
  4537. source: unescape('notEmpty%0A%09%5Eself%20isEmpty%20not'),
  4538. messageSends: ["not", "isEmpty"],
  4539. referencedClasses: []
  4540. }),
  4541. smalltalk.Collection);
  4542. smalltalk.addMethod(
  4543. unescape('_isEmpty'),
  4544. smalltalk.method({
  4545. selector: unescape('isEmpty'),
  4546. category: 'testing',
  4547. fn: function (){
  4548. var self=this;
  4549. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  4550. return self;},
  4551. args: [],
  4552. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  4553. messageSends: [unescape("%3D"), "size"],
  4554. referencedClasses: []
  4555. }),
  4556. smalltalk.Collection);
  4557. smalltalk.addMethod(
  4558. unescape('_remove_'),
  4559. smalltalk.method({
  4560. selector: unescape('remove%3A'),
  4561. category: 'adding/removing',
  4562. fn: function (anObject){
  4563. var self=this;
  4564. return smalltalk.send(self, "_remove_ifAbsent_", [anObject, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4565. return self;},
  4566. args: ["anObject"],
  4567. source: unescape('remove%3A%20anObject%0A%20%20%20%20%5Eself%20remove%3A%20anObject%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  4568. messageSends: ["remove:ifAbsent:", "errorNotFound"],
  4569. referencedClasses: []
  4570. }),
  4571. smalltalk.Collection);
  4572. smalltalk.addMethod(
  4573. unescape('_asSet'),
  4574. smalltalk.method({
  4575. selector: unescape('asSet'),
  4576. category: 'converting',
  4577. fn: function (){
  4578. var self=this;
  4579. return smalltalk.send((smalltalk.Set || Set), "_withAll_", [self]);
  4580. return self;},
  4581. args: [],
  4582. source: unescape('asSet%0A%09%5ESet%20withAll%3A%20self'),
  4583. messageSends: ["withAll:"],
  4584. referencedClasses: ["Set"]
  4585. }),
  4586. smalltalk.Collection);
  4587. smalltalk.addMethod(
  4588. unescape('_ifNotEmpty_'),
  4589. smalltalk.method({
  4590. selector: unescape('ifNotEmpty%3A'),
  4591. category: 'testing',
  4592. fn: function (aBlock){
  4593. var self=this;
  4594. smalltalk.send(smalltalk.send(self, "_notEmpty", []), "_ifTrue_", [aBlock]);
  4595. return self;},
  4596. args: ["aBlock"],
  4597. source: unescape('ifNotEmpty%3A%20aBlock%0A%09self%20notEmpty%20ifTrue%3A%20aBlock.'),
  4598. messageSends: ["ifTrue:", "notEmpty"],
  4599. referencedClasses: []
  4600. }),
  4601. smalltalk.Collection);
  4602. smalltalk.addMethod(
  4603. unescape('_ifEmpty_'),
  4604. smalltalk.method({
  4605. selector: unescape('ifEmpty%3A'),
  4606. category: 'testing',
  4607. fn: function (aBlock){
  4608. var self=this;
  4609. smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_ifTrue_", [aBlock]);
  4610. return self;},
  4611. args: ["aBlock"],
  4612. source: unescape('ifEmpty%3A%20aBlock%0A%09self%20isEmpty%20ifTrue%3A%20aBlock.'),
  4613. messageSends: ["ifTrue:", "isEmpty"],
  4614. referencedClasses: []
  4615. }),
  4616. smalltalk.Collection);
  4617. smalltalk.addMethod(
  4618. unescape('_copyWithoutAll_'),
  4619. smalltalk.method({
  4620. selector: unescape('copyWithoutAll%3A'),
  4621. category: 'copying',
  4622. fn: function (aCollection){
  4623. var self=this;
  4624. return smalltalk.send(self, "_reject_", [(function(each){return smalltalk.send(aCollection, "_includes_", [each]);})]);
  4625. return self;},
  4626. args: ["aCollection"],
  4627. 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'),
  4628. messageSends: ["reject:", "includes:"],
  4629. referencedClasses: []
  4630. }),
  4631. smalltalk.Collection);
  4632. smalltalk.addMethod(
  4633. unescape('_remove_ifAbsent_'),
  4634. smalltalk.method({
  4635. selector: unescape('remove%3AifAbsent%3A'),
  4636. category: 'adding/removing',
  4637. fn: function (anObject, aBlock){
  4638. var self=this;
  4639. smalltalk.send(self, "_subclassResponsibility", []);
  4640. return self;},
  4641. args: ["anObject", "aBlock"],
  4642. source: unescape('remove%3A%20anObject%20ifAbsent%3A%20aBlock%0A%20%20%20%20self%20subclassResponsibility'),
  4643. messageSends: ["subclassResponsibility"],
  4644. referencedClasses: []
  4645. }),
  4646. smalltalk.Collection);
  4647. smalltalk.addMethod(
  4648. unescape('_streamClass'),
  4649. smalltalk.method({
  4650. selector: unescape('streamClass'),
  4651. category: 'accessing',
  4652. fn: function (){
  4653. var self=this;
  4654. return (smalltalk.Stream || Stream);
  4655. return self;},
  4656. args: [],
  4657. source: unescape('streamClass%0A%09%20%20%20%20%5EStream'),
  4658. messageSends: [],
  4659. referencedClasses: ["Stream"]
  4660. }),
  4661. smalltalk.Collection.klass);
  4662. smalltalk.addMethod(
  4663. unescape('_with_'),
  4664. smalltalk.method({
  4665. selector: unescape('with%3A'),
  4666. category: 'instance creation',
  4667. fn: function (anObject){
  4668. var self=this;
  4669. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4670. return self;},
  4671. args: ["anObject"],
  4672. source: unescape('with%3A%20anObject%0A%09%20%20%20%20%5Eself%20new%0A%09%09add%3A%20anObject%3B%0A%09%09yourself'),
  4673. messageSends: ["add:", "yourself", "new"],
  4674. referencedClasses: []
  4675. }),
  4676. smalltalk.Collection.klass);
  4677. smalltalk.addMethod(
  4678. unescape('_with_with_'),
  4679. smalltalk.method({
  4680. selector: unescape('with%3Awith%3A'),
  4681. category: 'instance creation',
  4682. fn: function (anObject, anotherObject){
  4683. var self=this;
  4684. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);smalltalk.send($rec, "_add_", [anotherObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4685. return self;},
  4686. args: ["anObject", "anotherObject"],
  4687. 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'),
  4688. messageSends: ["add:", "yourself", "new"],
  4689. referencedClasses: []
  4690. }),
  4691. smalltalk.Collection.klass);
  4692. smalltalk.addMethod(
  4693. unescape('_with_with_with_'),
  4694. smalltalk.method({
  4695. selector: unescape('with%3Awith%3Awith%3A'),
  4696. category: 'instance creation',
  4697. fn: function (firstObject, secondObject, thirdObject){
  4698. var self=this;
  4699. 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", []));
  4700. return self;},
  4701. args: ["firstObject", "secondObject", "thirdObject"],
  4702. 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'),
  4703. messageSends: ["add:", "yourself", "new"],
  4704. referencedClasses: []
  4705. }),
  4706. smalltalk.Collection.klass);
  4707. smalltalk.addMethod(
  4708. unescape('_withAll_'),
  4709. smalltalk.method({
  4710. selector: unescape('withAll%3A'),
  4711. category: 'instance creation',
  4712. fn: function (aCollection){
  4713. var self=this;
  4714. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4715. return self;},
  4716. args: ["aCollection"],
  4717. source: unescape('withAll%3A%20aCollection%0A%09%20%20%20%20%5Eself%20new%0A%09%09addAll%3A%20aCollection%3B%0A%09%09yourself'),
  4718. messageSends: ["addAll:", "yourself", "new"],
  4719. referencedClasses: []
  4720. }),
  4721. smalltalk.Collection.klass);
  4722. smalltalk.addClass('SequenceableCollection', smalltalk.Collection, [], 'Kernel');
  4723. smalltalk.addMethod(
  4724. unescape('_at_'),
  4725. smalltalk.method({
  4726. selector: unescape('at%3A'),
  4727. category: 'accessing',
  4728. fn: function (anIndex){
  4729. var self=this;
  4730. return smalltalk.send(self, "_at_ifAbsent_", [anIndex, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4731. return self;},
  4732. args: ["anIndex"],
  4733. source: unescape('at%3A%20anIndex%0A%09%5Eself%20at%3A%20anIndex%20ifAbsent%3A%20%5B%0A%09%20%20%20%20self%20errorNotFound%5D'),
  4734. messageSends: ["at:ifAbsent:", "errorNotFound"],
  4735. referencedClasses: []
  4736. }),
  4737. smalltalk.SequenceableCollection);
  4738. smalltalk.addMethod(
  4739. unescape('_at_ifAbsent_'),
  4740. smalltalk.method({
  4741. selector: unescape('at%3AifAbsent%3A'),
  4742. category: 'accessing',
  4743. fn: function (anIndex, aBlock){
  4744. var self=this;
  4745. smalltalk.send(self, "_subclassResponsibility", []);
  4746. return self;},
  4747. args: ["anIndex", "aBlock"],
  4748. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%09self%20subclassResponsibility'),
  4749. messageSends: ["subclassResponsibility"],
  4750. referencedClasses: []
  4751. }),
  4752. smalltalk.SequenceableCollection);
  4753. smalltalk.addMethod(
  4754. unescape('_at_put_'),
  4755. smalltalk.method({
  4756. selector: unescape('at%3Aput%3A'),
  4757. category: 'accessing',
  4758. fn: function (anIndex, anObject){
  4759. var self=this;
  4760. smalltalk.send(self, "_subclassResponsibility", []);
  4761. return self;},
  4762. args: ["anIndex", "anObject"],
  4763. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09self%20subclassResponsibility'),
  4764. messageSends: ["subclassResponsibility"],
  4765. referencedClasses: []
  4766. }),
  4767. smalltalk.SequenceableCollection);
  4768. smalltalk.addMethod(
  4769. unescape('_copyFrom_to_'),
  4770. smalltalk.method({
  4771. selector: unescape('copyFrom%3Ato%3A'),
  4772. category: 'copying',
  4773. fn: function (anIndex, anotherIndex){
  4774. var self=this;
  4775. smalltalk.send(self, "_subclassResponsibility", []);
  4776. return self;},
  4777. args: ["anIndex", "anotherIndex"],
  4778. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20subclassResponsibility'),
  4779. messageSends: ["subclassResponsibility"],
  4780. referencedClasses: []
  4781. }),
  4782. smalltalk.SequenceableCollection);
  4783. smalltalk.addMethod(
  4784. unescape('_first'),
  4785. smalltalk.method({
  4786. selector: unescape('first'),
  4787. category: 'accessing',
  4788. fn: function (){
  4789. var self=this;
  4790. return smalltalk.send(self, "_at_", [(1)]);
  4791. return self;},
  4792. args: [],
  4793. source: unescape('first%0A%09%5Eself%20at%3A%201'),
  4794. messageSends: ["at:"],
  4795. referencedClasses: []
  4796. }),
  4797. smalltalk.SequenceableCollection);
  4798. smalltalk.addMethod(
  4799. unescape('_fourth'),
  4800. smalltalk.method({
  4801. selector: unescape('fourth'),
  4802. category: 'accessing',
  4803. fn: function (){
  4804. var self=this;
  4805. return smalltalk.send(self, "_at_", [(4)]);
  4806. return self;},
  4807. args: [],
  4808. source: unescape('fourth%0A%09%5Eself%20at%3A%204'),
  4809. messageSends: ["at:"],
  4810. referencedClasses: []
  4811. }),
  4812. smalltalk.SequenceableCollection);
  4813. smalltalk.addMethod(
  4814. unescape('_last'),
  4815. smalltalk.method({
  4816. selector: unescape('last'),
  4817. category: 'accessing',
  4818. fn: function (){
  4819. var self=this;
  4820. return smalltalk.send(self, "_at_", [smalltalk.send(self, "_size", [])]);
  4821. return self;},
  4822. args: [],
  4823. source: unescape('last%0A%09%5Eself%20at%3A%20self%20size'),
  4824. messageSends: ["at:", "size"],
  4825. referencedClasses: []
  4826. }),
  4827. smalltalk.SequenceableCollection);
  4828. smalltalk.addMethod(
  4829. unescape('_second'),
  4830. smalltalk.method({
  4831. selector: unescape('second'),
  4832. category: 'accessing',
  4833. fn: function (){
  4834. var self=this;
  4835. return smalltalk.send(self, "_at_", [(2)]);
  4836. return self;},
  4837. args: [],
  4838. source: unescape('second%0A%09%5Eself%20at%3A%202'),
  4839. messageSends: ["at:"],
  4840. referencedClasses: []
  4841. }),
  4842. smalltalk.SequenceableCollection);
  4843. smalltalk.addMethod(
  4844. unescape('_third'),
  4845. smalltalk.method({
  4846. selector: unescape('third'),
  4847. category: 'accessing',
  4848. fn: function (){
  4849. var self=this;
  4850. return smalltalk.send(self, "_at_", [(3)]);
  4851. return self;},
  4852. args: [],
  4853. source: unescape('third%0A%09%5Eself%20at%3A%203'),
  4854. messageSends: ["at:"],
  4855. referencedClasses: []
  4856. }),
  4857. smalltalk.SequenceableCollection);
  4858. smalltalk.addMethod(
  4859. unescape('_removeLast'),
  4860. smalltalk.method({
  4861. selector: unescape('removeLast'),
  4862. category: 'adding',
  4863. fn: function (){
  4864. var self=this;
  4865. smalltalk.send(self, "_remove_", [smalltalk.send(self, "_last", [])]);
  4866. return self;},
  4867. args: [],
  4868. source: unescape('removeLast%0A%09self%20remove%3A%20self%20last'),
  4869. messageSends: ["remove:", "last"],
  4870. referencedClasses: []
  4871. }),
  4872. smalltalk.SequenceableCollection);
  4873. smalltalk.addMethod(
  4874. unescape('_addLast_'),
  4875. smalltalk.method({
  4876. selector: unescape('addLast%3A'),
  4877. category: 'adding',
  4878. fn: function (anObject){
  4879. var self=this;
  4880. smalltalk.send(self, "_add_", [anObject]);
  4881. return self;},
  4882. args: ["anObject"],
  4883. source: unescape('addLast%3A%20anObject%0A%09self%20add%3A%20anObject'),
  4884. messageSends: ["add:"],
  4885. referencedClasses: []
  4886. }),
  4887. smalltalk.SequenceableCollection);
  4888. smalltalk.addMethod(
  4889. unescape('_withIndexDo_'),
  4890. smalltalk.method({
  4891. selector: unescape('withIndexDo%3A'),
  4892. category: 'enumerating',
  4893. fn: function (aBlock){
  4894. var self=this;
  4895. for(var i=0;i<self.length;i++){aBlock(self[i], i+1);};
  4896. return self;},
  4897. args: ["aBlock"],
  4898. 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'),
  4899. messageSends: [],
  4900. referencedClasses: []
  4901. }),
  4902. smalltalk.SequenceableCollection);
  4903. smalltalk.addMethod(
  4904. unescape('_allButFirst'),
  4905. smalltalk.method({
  4906. selector: unescape('allButFirst'),
  4907. category: 'accessing',
  4908. fn: function (){
  4909. var self=this;
  4910. return smalltalk.send(self, "_copyFrom_to_", [(2), smalltalk.send(self, "_size", [])]);
  4911. return self;},
  4912. args: [],
  4913. source: unescape('allButFirst%0A%09%5Eself%20copyFrom%3A%202%20to%3A%20self%20size'),
  4914. messageSends: ["copyFrom:to:", "size"],
  4915. referencedClasses: []
  4916. }),
  4917. smalltalk.SequenceableCollection);
  4918. smalltalk.addMethod(
  4919. unescape('_allButLast'),
  4920. smalltalk.method({
  4921. selector: unescape('allButLast'),
  4922. category: 'accessing',
  4923. fn: function (){
  4924. var self=this;
  4925. return smalltalk.send(self, "_copyFrom_to_", [(1), ((($receiver = smalltalk.send(self, "_size", [])).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]);
  4926. return self;},
  4927. args: [],
  4928. source: unescape('allButLast%0A%09%5Eself%20copyFrom%3A%201%20to%3A%20self%20size%20-%201'),
  4929. messageSends: ["copyFrom:to:", unescape("-"), "size"],
  4930. referencedClasses: []
  4931. }),
  4932. smalltalk.SequenceableCollection);
  4933. smalltalk.addMethod(
  4934. unescape('_indexOf_'),
  4935. smalltalk.method({
  4936. selector: unescape('indexOf%3A'),
  4937. category: 'accessing',
  4938. fn: function (anObject){
  4939. var self=this;
  4940. return smalltalk.send(self, "_indexOf_ifAbsent_", [anObject, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4941. return self;},
  4942. args: ["anObject"],
  4943. source: unescape('indexOf%3A%20anObject%0A%09%5Eself%20indexOf%3A%20anObject%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  4944. messageSends: ["indexOf:ifAbsent:", "errorNotFound"],
  4945. referencedClasses: []
  4946. }),
  4947. smalltalk.SequenceableCollection);
  4948. smalltalk.addMethod(
  4949. unescape('_indexOf_ifAbsent_'),
  4950. smalltalk.method({
  4951. selector: unescape('indexOf%3AifAbsent%3A'),
  4952. category: 'accessing',
  4953. fn: function (anObject, aBlock){
  4954. var self=this;
  4955. for(var i=0;i<self.length;i++){
  4956. if(self[i].__eq(anObject)) {return i+1}
  4957. }
  4958. return aBlock();
  4959. ;
  4960. return self;},
  4961. args: ["anObject", "aBlock"],
  4962. 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'),
  4963. messageSends: [],
  4964. referencedClasses: []
  4965. }),
  4966. smalltalk.SequenceableCollection);
  4967. smalltalk.addMethod(
  4968. unescape('_indexOf_startingAt_ifAbsent_'),
  4969. smalltalk.method({
  4970. selector: unescape('indexOf%3AstartingAt%3AifAbsent%3A'),
  4971. category: 'accessing',
  4972. fn: function (anObject, start, aBlock){
  4973. var self=this;
  4974. for(var i=start-1;i<self.length;i++){
  4975. if(self[i].__eq(anObject)) {return i+1}
  4976. }
  4977. return aBlock();
  4978. ;
  4979. return self;},
  4980. args: ["anObject", "start", "aBlock"],
  4981. 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'),
  4982. messageSends: [],
  4983. referencedClasses: []
  4984. }),
  4985. smalltalk.SequenceableCollection);
  4986. smalltalk.addMethod(
  4987. unescape('_indexOf_startingAt_'),
  4988. smalltalk.method({
  4989. selector: unescape('indexOf%3AstartingAt%3A'),
  4990. category: 'accessing',
  4991. fn: function (anObject, start){
  4992. var self=this;
  4993. return smalltalk.send(self, "_indexOf_startingAt_ifAbsent_", [anObject, start, (function(){return (0);})]);
  4994. return self;},
  4995. args: ["anObject", "start"],
  4996. 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'),
  4997. messageSends: ["indexOf:startingAt:ifAbsent:"],
  4998. referencedClasses: []
  4999. }),
  5000. smalltalk.SequenceableCollection);
  5001. smalltalk.addMethod(
  5002. unescape('_reversed'),
  5003. smalltalk.method({
  5004. selector: unescape('reversed'),
  5005. category: 'converting',
  5006. fn: function (){
  5007. var self=this;
  5008. smalltalk.send(self, "_subclassResponsibility", []);
  5009. return self;},
  5010. args: [],
  5011. source: unescape('reversed%0A%09self%20subclassResponsibility'),
  5012. messageSends: ["subclassResponsibility"],
  5013. referencedClasses: []
  5014. }),
  5015. smalltalk.SequenceableCollection);
  5016. smalltalk.addMethod(
  5017. unescape('_atRandom'),
  5018. smalltalk.method({
  5019. selector: unescape('atRandom'),
  5020. category: 'accessing',
  5021. fn: function (){
  5022. var self=this;
  5023. return smalltalk.send(self, "_at_", [smalltalk.send(smalltalk.send(self, "_size", []), "_atRandom", [])]);
  5024. return self;},
  5025. args: [],
  5026. source: unescape('atRandom%0A%09%5E%20self%20at%3A%20self%20size%20atRandom'),
  5027. messageSends: ["at:", "atRandom", "size"],
  5028. referencedClasses: []
  5029. }),
  5030. smalltalk.SequenceableCollection);
  5031. smalltalk.addClass('String', smalltalk.SequenceableCollection, [], 'Kernel');
  5032. smalltalk.addMethod(
  5033. unescape('__eq'),
  5034. smalltalk.method({
  5035. selector: unescape('%3D'),
  5036. category: 'comparing',
  5037. fn: function (aString){
  5038. var self=this;
  5039. 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}})})();})]));
  5040. return String(self) == aString;
  5041. return self;
  5042. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  5043. args: ["aString"],
  5044. 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'),
  5045. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  5046. referencedClasses: []
  5047. }),
  5048. smalltalk.String);
  5049. smalltalk.addMethod(
  5050. unescape('_size'),
  5051. smalltalk.method({
  5052. selector: unescape('size'),
  5053. category: 'accessing',
  5054. fn: function (){
  5055. var self=this;
  5056. return self.length;
  5057. return self;},
  5058. args: [],
  5059. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  5060. messageSends: [],
  5061. referencedClasses: []
  5062. }),
  5063. smalltalk.String);
  5064. smalltalk.addMethod(
  5065. unescape('_at_'),
  5066. smalltalk.method({
  5067. selector: unescape('at%3A'),
  5068. category: 'accessing',
  5069. fn: function (anIndex){
  5070. var self=this;
  5071. return self[anIndex - 1];
  5072. return self;},
  5073. args: ["anIndex"],
  5074. source: unescape('at%3A%20anIndex%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%3E'),
  5075. messageSends: [],
  5076. referencedClasses: []
  5077. }),
  5078. smalltalk.String);
  5079. smalltalk.addMethod(
  5080. unescape('_at_put_'),
  5081. smalltalk.method({
  5082. selector: unescape('at%3Aput%3A'),
  5083. category: 'accessing',
  5084. fn: function (anIndex, anObject){
  5085. var self=this;
  5086. smalltalk.send(self, "_errorReadOnly", []);
  5087. return self;},
  5088. args: ["anIndex", "anObject"],
  5089. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  5090. messageSends: ["errorReadOnly"],
  5091. referencedClasses: []
  5092. }),
  5093. smalltalk.String);
  5094. smalltalk.addMethod(
  5095. unescape('_at_ifAbsent_'),
  5096. smalltalk.method({
  5097. selector: unescape('at%3AifAbsent%3A'),
  5098. category: 'accessing',
  5099. fn: function (anIndex, aBlock){
  5100. var self=this;
  5101. (($receiver = smalltalk.send(self, "_at_", [anIndex])) == nil || $receiver == undefined) ? (function(){return aBlock;})() : $receiver;
  5102. return self;},
  5103. args: ["anIndex", "aBlock"],
  5104. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%20%20%20%20%09%28self%20at%3A%20anIndex%29%20ifNil%3A%20%5BaBlock%5D'),
  5105. messageSends: ["ifNil:", "at:"],
  5106. referencedClasses: []
  5107. }),
  5108. smalltalk.String);
  5109. smalltalk.addMethod(
  5110. unescape('_escaped'),
  5111. smalltalk.method({
  5112. selector: unescape('escaped'),
  5113. category: 'accessing',
  5114. fn: function (){
  5115. var self=this;
  5116. return escape(self);
  5117. return self;},
  5118. args: [],
  5119. source: unescape('escaped%0A%09%3Creturn%20escape%28self%29%3E'),
  5120. messageSends: [],
  5121. referencedClasses: []
  5122. }),
  5123. smalltalk.String);
  5124. smalltalk.addMethod(
  5125. unescape('_unescaped'),
  5126. smalltalk.method({
  5127. selector: unescape('unescaped'),
  5128. category: 'accessing',
  5129. fn: function (){
  5130. var self=this;
  5131. return unescape(self);
  5132. return self;},
  5133. args: [],
  5134. source: unescape('unescaped%0A%09%3Creturn%20unescape%28self%29%3E'),
  5135. messageSends: [],
  5136. referencedClasses: []
  5137. }),
  5138. smalltalk.String);
  5139. smalltalk.addMethod(
  5140. unescape('_add_'),
  5141. smalltalk.method({
  5142. selector: unescape('add%3A'),
  5143. category: 'adding',
  5144. fn: function (anObject){
  5145. var self=this;
  5146. smalltalk.send(self, "_errorReadOnly", []);
  5147. return self;},
  5148. args: ["anObject"],
  5149. source: unescape('add%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  5150. messageSends: ["errorReadOnly"],
  5151. referencedClasses: []
  5152. }),
  5153. smalltalk.String);
  5154. smalltalk.addMethod(
  5155. unescape('__comma'),
  5156. smalltalk.method({
  5157. selector: unescape('%2C'),
  5158. category: 'copying',
  5159. fn: function (aString){
  5160. var self=this;
  5161. return self + aString;
  5162. return self;},
  5163. args: ["aString"],
  5164. source: unescape('%2C%20aString%0A%09%3Creturn%20self%20+%20aString%3E'),
  5165. messageSends: [],
  5166. referencedClasses: []
  5167. }),
  5168. smalltalk.String);
  5169. smalltalk.addMethod(
  5170. unescape('_copyFrom_to_'),
  5171. smalltalk.method({
  5172. selector: unescape('copyFrom%3Ato%3A'),
  5173. category: 'copying',
  5174. fn: function (anIndex, anotherIndex){
  5175. var self=this;
  5176. return self.substring(anIndex - 1, anotherIndex);
  5177. return self;},
  5178. args: ["anIndex", "anotherIndex"],
  5179. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09%3Creturn%20self.substring%28anIndex%20-%201%2C%20anotherIndex%29%3E'),
  5180. messageSends: [],
  5181. referencedClasses: []
  5182. }),
  5183. smalltalk.String);
  5184. smalltalk.addMethod(
  5185. unescape('_shallowCopy'),
  5186. smalltalk.method({
  5187. selector: unescape('shallowCopy'),
  5188. category: 'copying',
  5189. fn: function (){
  5190. var self=this;
  5191. return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [self]);
  5192. return self;},
  5193. args: [],
  5194. source: unescape('shallowCopy%0A%20%20%20%20%09%5Eself%20class%20fromString%3A%20self'),
  5195. messageSends: ["fromString:", "class"],
  5196. referencedClasses: []
  5197. }),
  5198. smalltalk.String);
  5199. smalltalk.addMethod(
  5200. unescape('_deepCopy'),
  5201. smalltalk.method({
  5202. selector: unescape('deepCopy'),
  5203. category: 'copying',
  5204. fn: function (){
  5205. var self=this;
  5206. return smalltalk.send(self, "_shallowCopy", []);
  5207. return self;},
  5208. args: [],
  5209. source: unescape('deepCopy%0A%20%20%20%20%09%5Eself%20shallowCopy'),
  5210. messageSends: ["shallowCopy"],
  5211. referencedClasses: []
  5212. }),
  5213. smalltalk.String);
  5214. smalltalk.addMethod(
  5215. unescape('_asSelector'),
  5216. smalltalk.method({
  5217. selector: unescape('asSelector'),
  5218. category: 'converting',
  5219. fn: function (){
  5220. var self=this;
  5221. var selector=nil;
  5222. selector=smalltalk.send("_", "__comma", [self]);
  5223. selector=smalltalk.send(selector, "_replace_with_", [":", "_"]);
  5224. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B+%5D"), "_plus"]);
  5225. selector=smalltalk.send(selector, "_replace_with_", [unescape("-"), "_minus"]);
  5226. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B*%5D"), "_star"]);
  5227. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B/%5D"), "_slash"]);
  5228. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3E"), "_gt"]);
  5229. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3C"), "_lt"]);
  5230. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3D"), "_eq"]);
  5231. selector=smalltalk.send(selector, "_replace_with_", [unescape("%2C"), "_comma"]);
  5232. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B@%5D"), "_at"]);
  5233. return selector;
  5234. return self;},
  5235. args: [],
  5236. 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'),
  5237. messageSends: [unescape("%2C"), "replace:with:"],
  5238. referencedClasses: []
  5239. }),
  5240. smalltalk.String);
  5241. smalltalk.addMethod(
  5242. unescape('_asJavascript'),
  5243. smalltalk.method({
  5244. selector: unescape('asJavascript'),
  5245. category: 'converting',
  5246. fn: function (){
  5247. var self=this;
  5248. if(self.search(/^[a-zA-Z0-9_:.$ ]*$/) == -1)
  5249. return "unescape(\"" + escape(self) + "\")";
  5250. else
  5251. return "\"" + self + "\"";
  5252. ;
  5253. return self;},
  5254. args: [],
  5255. 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'),
  5256. messageSends: [],
  5257. referencedClasses: []
  5258. }),
  5259. smalltalk.String);
  5260. smalltalk.addMethod(
  5261. unescape('_replace_with_'),
  5262. smalltalk.method({
  5263. selector: unescape('replace%3Awith%3A'),
  5264. category: 'regular expressions',
  5265. fn: function (aString, anotherString){
  5266. var self=this;
  5267. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [aString, "g"]), anotherString]);
  5268. return self;},
  5269. args: ["aString", "anotherString"],
  5270. 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'),
  5271. messageSends: ["replaceRegexp:with:", "fromString:flag:"],
  5272. referencedClasses: ["RegularExpression"]
  5273. }),
  5274. smalltalk.String);
  5275. smalltalk.addMethod(
  5276. unescape('_replaceRegexp_with_'),
  5277. smalltalk.method({
  5278. selector: unescape('replaceRegexp%3Awith%3A'),
  5279. category: 'regular expressions',
  5280. fn: function (aRegexp, aString){
  5281. var self=this;
  5282. return self.replace(aRegexp, aString);
  5283. return self;},
  5284. args: ["aRegexp", "aString"],
  5285. source: unescape('replaceRegexp%3A%20aRegexp%20with%3A%20aString%0A%09%3Creturn%20self.replace%28aRegexp%2C%20aString%29%3E'),
  5286. messageSends: [],
  5287. referencedClasses: []
  5288. }),
  5289. smalltalk.String);
  5290. smalltalk.addMethod(
  5291. unescape('_tokenize_'),
  5292. smalltalk.method({
  5293. selector: unescape('tokenize%3A'),
  5294. category: 'converting',
  5295. fn: function (aString){
  5296. var self=this;
  5297. return self.split(aString);
  5298. return self;},
  5299. args: ["aString"],
  5300. source: unescape('tokenize%3A%20aString%0A%09%3Creturn%20self.split%28aString%29%3E'),
  5301. messageSends: [],
  5302. referencedClasses: []
  5303. }),
  5304. smalltalk.String);
  5305. smalltalk.addMethod(
  5306. unescape('_match_'),
  5307. smalltalk.method({
  5308. selector: unescape('match%3A'),
  5309. category: 'regular expressions',
  5310. fn: function (aRegexp){
  5311. var self=this;
  5312. return self.search(aRegexp) != -1;
  5313. return self;},
  5314. args: ["aRegexp"],
  5315. source: unescape('match%3A%20aRegexp%0A%09%3Creturn%20self.search%28aRegexp%29%20%21%3D%20-1%3E'),
  5316. messageSends: [],
  5317. referencedClasses: []
  5318. }),
  5319. smalltalk.String);
  5320. smalltalk.addMethod(
  5321. unescape('_asString'),
  5322. smalltalk.method({
  5323. selector: unescape('asString'),
  5324. category: 'converting',
  5325. fn: function (){
  5326. var self=this;
  5327. return self;
  5328. return self;},
  5329. args: [],
  5330. source: unescape('asString%0A%20%20%20%20%09%5Eself'),
  5331. messageSends: [],
  5332. referencedClasses: []
  5333. }),
  5334. smalltalk.String);
  5335. smalltalk.addMethod(
  5336. unescape('_asNumber'),
  5337. smalltalk.method({
  5338. selector: unescape('asNumber'),
  5339. category: 'converting',
  5340. fn: function (){
  5341. var self=this;
  5342. return Number(self);
  5343. return self;},
  5344. args: [],
  5345. source: unescape('asNumber%0A%09%3Creturn%20Number%28self%29%3E'),
  5346. messageSends: [],
  5347. referencedClasses: []
  5348. }),
  5349. smalltalk.String);
  5350. smalltalk.addMethod(
  5351. unescape('_errorReadOnly'),
  5352. smalltalk.method({
  5353. selector: unescape('errorReadOnly'),
  5354. category: 'error handling',
  5355. fn: function (){
  5356. var self=this;
  5357. smalltalk.send(self, "_error_", [unescape("Object%20is%20read-only")]);
  5358. return self;},
  5359. args: [],
  5360. source: unescape('errorReadOnly%0A%20%20%20%20%09self%20error%3A%20%27Object%20is%20read-only%27'),
  5361. messageSends: ["error:"],
  5362. referencedClasses: []
  5363. }),
  5364. smalltalk.String);
  5365. smalltalk.addMethod(
  5366. unescape('_printString'),
  5367. smalltalk.method({
  5368. selector: unescape('printString'),
  5369. category: 'printing',
  5370. fn: function (){
  5371. var self=this;
  5372. return smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [self]), "__comma", [unescape("%27")]);
  5373. return self;},
  5374. args: [],
  5375. source: unescape('printString%0A%20%20%20%20%09%5E%27%27%27%27%2C%20self%2C%20%27%27%27%27'),
  5376. messageSends: [unescape("%2C")],
  5377. referencedClasses: []
  5378. }),
  5379. smalltalk.String);
  5380. smalltalk.addMethod(
  5381. unescape('_printNl'),
  5382. smalltalk.method({
  5383. selector: unescape('printNl'),
  5384. category: 'printing',
  5385. fn: function (){
  5386. var self=this;
  5387. console.log(self);
  5388. return self;},
  5389. args: [],
  5390. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  5391. messageSends: [],
  5392. referencedClasses: []
  5393. }),
  5394. smalltalk.String);
  5395. smalltalk.addMethod(
  5396. unescape('_isString'),
  5397. smalltalk.method({
  5398. selector: unescape('isString'),
  5399. category: 'testing',
  5400. fn: function (){
  5401. var self=this;
  5402. return true;
  5403. return self;},
  5404. args: [],
  5405. source: unescape('isString%0A%20%20%20%20%09%5Etrue'),
  5406. messageSends: [],
  5407. referencedClasses: []
  5408. }),
  5409. smalltalk.String);
  5410. smalltalk.addMethod(
  5411. unescape('__gt'),
  5412. smalltalk.method({
  5413. selector: unescape('%3E'),
  5414. category: 'comparing',
  5415. fn: function (aString){
  5416. var self=this;
  5417. return String(self) > aString;
  5418. return self;},
  5419. args: ["aString"],
  5420. source: unescape('%3E%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%20aString%3E'),
  5421. messageSends: [],
  5422. referencedClasses: []
  5423. }),
  5424. smalltalk.String);
  5425. smalltalk.addMethod(
  5426. unescape('__lt'),
  5427. smalltalk.method({
  5428. selector: unescape('%3C'),
  5429. category: 'comparing',
  5430. fn: function (aString){
  5431. var self=this;
  5432. return String(self) < aString;
  5433. return self;},
  5434. args: ["aString"],
  5435. source: unescape('%3C%20aString%0A%09%3Creturn%20String%28self%29%20%3C%20aString%3E'),
  5436. messageSends: [],
  5437. referencedClasses: []
  5438. }),
  5439. smalltalk.String);
  5440. smalltalk.addMethod(
  5441. unescape('__gt_eq'),
  5442. smalltalk.method({
  5443. selector: unescape('%3E%3D'),
  5444. category: 'comparing',
  5445. fn: function (aString){
  5446. var self=this;
  5447. return String(self) >= aString;
  5448. return self;},
  5449. args: ["aString"],
  5450. source: unescape('%3E%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%3D%20aString%3E'),
  5451. messageSends: [],
  5452. referencedClasses: []
  5453. }),
  5454. smalltalk.String);
  5455. smalltalk.addMethod(
  5456. unescape('__lt_eq'),
  5457. smalltalk.method({
  5458. selector: unescape('%3C%3D'),
  5459. category: 'comparing',
  5460. fn: function (aString){
  5461. var self=this;
  5462. return String(self) <= aString;
  5463. return self;},
  5464. args: ["aString"],
  5465. source: unescape('%3C%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3C%3D%20aString%3E'),
  5466. messageSends: [],
  5467. referencedClasses: []
  5468. }),
  5469. smalltalk.String);
  5470. smalltalk.addMethod(
  5471. unescape('_remove_'),
  5472. smalltalk.method({
  5473. selector: unescape('remove%3A'),
  5474. category: 'adding',
  5475. fn: function (anObject){
  5476. var self=this;
  5477. smalltalk.send(self, "_errorReadOnly", []);
  5478. return self;},
  5479. args: ["anObject"],
  5480. source: unescape('remove%3A%20anObject%0A%09self%20errorReadOnly'),
  5481. messageSends: ["errorReadOnly"],
  5482. referencedClasses: []
  5483. }),
  5484. smalltalk.String);
  5485. smalltalk.addMethod(
  5486. unescape('_trimLeft_'),
  5487. smalltalk.method({
  5488. selector: unescape('trimLeft%3A'),
  5489. category: 'regular expressions',
  5490. fn: function (separators){
  5491. var self=this;
  5492. 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"]), ""]);
  5493. return self;},
  5494. args: ["separators"],
  5495. 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'),
  5496. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  5497. referencedClasses: ["RegularExpression"]
  5498. }),
  5499. smalltalk.String);
  5500. smalltalk.addMethod(
  5501. unescape('_trimRight_'),
  5502. smalltalk.method({
  5503. selector: unescape('trimRight%3A'),
  5504. category: 'regular expressions',
  5505. fn: function (separators){
  5506. var self=this;
  5507. 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"]), ""]);
  5508. return self;},
  5509. args: ["separators"],
  5510. 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'),
  5511. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  5512. referencedClasses: ["RegularExpression"]
  5513. }),
  5514. smalltalk.String);
  5515. smalltalk.addMethod(
  5516. unescape('_trimLeft'),
  5517. smalltalk.method({
  5518. selector: unescape('trimLeft'),
  5519. category: 'regular expressions',
  5520. fn: function (){
  5521. var self=this;
  5522. return smalltalk.send(self, "_trimLeft_", [unescape("%5Cs")]);
  5523. return self;},
  5524. args: [],
  5525. source: unescape('trimLeft%0A%09%5Eself%20trimLeft%3A%20%27%5Cs%27'),
  5526. messageSends: ["trimLeft:"],
  5527. referencedClasses: []
  5528. }),
  5529. smalltalk.String);
  5530. smalltalk.addMethod(
  5531. unescape('_trimRight'),
  5532. smalltalk.method({
  5533. selector: unescape('trimRight'),
  5534. category: 'regular expressions',
  5535. fn: function (){
  5536. var self=this;
  5537. return smalltalk.send(self, "_trimRight_", [unescape("%5Cs")]);
  5538. return self;},
  5539. args: [],
  5540. source: unescape('trimRight%0A%09%5Eself%20trimRight%3A%20%27%5Cs%27'),
  5541. messageSends: ["trimRight:"],
  5542. referencedClasses: []
  5543. }),
  5544. smalltalk.String);
  5545. smalltalk.addMethod(
  5546. unescape('_trimBoth'),
  5547. smalltalk.method({
  5548. selector: unescape('trimBoth'),
  5549. category: 'regular expressions',
  5550. fn: function (){
  5551. var self=this;
  5552. return smalltalk.send(self, "_trimBoth_", [unescape("%5Cs")]);
  5553. return self;},
  5554. args: [],
  5555. source: unescape('trimBoth%0A%09%5Eself%20trimBoth%3A%20%27%5Cs%27'),
  5556. messageSends: ["trimBoth:"],
  5557. referencedClasses: []
  5558. }),
  5559. smalltalk.String);
  5560. smalltalk.addMethod(
  5561. unescape('_trimBoth_'),
  5562. smalltalk.method({
  5563. selector: unescape('trimBoth%3A'),
  5564. category: 'regular expressions',
  5565. fn: function (separators){
  5566. var self=this;
  5567. return smalltalk.send(smalltalk.send(self, "_trimLeft_", [separators]), "_trimRight_", [separators]);
  5568. return self;},
  5569. args: ["separators"],
  5570. source: unescape('trimBoth%3A%20separators%0A%0A%20%20%20%20%09%5E%28self%20trimLeft%3A%20separators%29%20trimRight%3A%20separators'),
  5571. messageSends: ["trimRight:", "trimLeft:"],
  5572. referencedClasses: []
  5573. }),
  5574. smalltalk.String);
  5575. smalltalk.addMethod(
  5576. unescape('_asLowercase'),
  5577. smalltalk.method({
  5578. selector: unescape('asLowercase'),
  5579. category: 'converting',
  5580. fn: function (){
  5581. var self=this;
  5582. return self.toLowerCase();
  5583. return self;},
  5584. args: [],
  5585. source: unescape('asLowercase%0A%09%3Creturn%20self.toLowerCase%28%29%3E'),
  5586. messageSends: [],
  5587. referencedClasses: []
  5588. }),
  5589. smalltalk.String);
  5590. smalltalk.addMethod(
  5591. unescape('_asUppercase'),
  5592. smalltalk.method({
  5593. selector: unescape('asUppercase'),
  5594. category: 'converting',
  5595. fn: function (){
  5596. var self=this;
  5597. return self.toUpperCase();
  5598. return self;},
  5599. args: [],
  5600. source: unescape('asUppercase%0A%09%3Creturn%20self.toUpperCase%28%29%3E'),
  5601. messageSends: [],
  5602. referencedClasses: []
  5603. }),
  5604. smalltalk.String);
  5605. smalltalk.addMethod(
  5606. unescape('_join_'),
  5607. smalltalk.method({
  5608. selector: unescape('join%3A'),
  5609. category: 'split join',
  5610. fn: function (aCollection){
  5611. var self=this;
  5612. 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]);})]);})]);
  5613. return self;},
  5614. args: ["aCollection"],
  5615. 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'),
  5616. messageSends: ["streamContents:", "do:separatedBy:", "nextPutAll:", "asString"],
  5617. referencedClasses: ["String"]
  5618. }),
  5619. smalltalk.String);
  5620. smalltalk.addMethod(
  5621. unescape('_includesSubString_'),
  5622. smalltalk.method({
  5623. selector: unescape('includesSubString%3A'),
  5624. category: 'testing',
  5625. fn: function (subString){
  5626. var self=this;
  5627. return self.indexOf(subString) != -1 ;
  5628. return self;},
  5629. args: ["subString"],
  5630. source: unescape('includesSubString%3A%20subString%0A%09%3C%20return%20self.indexOf%28subString%29%20%21%3D%20-1%20%3E'),
  5631. messageSends: [],
  5632. referencedClasses: []
  5633. }),
  5634. smalltalk.String);
  5635. smalltalk.addMethod(
  5636. unescape('_asciiValue'),
  5637. smalltalk.method({
  5638. selector: unescape('asciiValue'),
  5639. category: 'accessing',
  5640. fn: function (){
  5641. var self=this;
  5642. return self.charCodeAt(0);;
  5643. return self;},
  5644. args: [],
  5645. source: unescape('asciiValue%0A%09%3Creturn%20self.charCodeAt%280%29%3B%3E'),
  5646. messageSends: [],
  5647. referencedClasses: []
  5648. }),
  5649. smalltalk.String);
  5650. smalltalk.addMethod(
  5651. unescape('_lineIndicesDo_'),
  5652. smalltalk.method({
  5653. selector: unescape('lineIndicesDo%3A'),
  5654. category: 'split join',
  5655. fn: function (aBlock){
  5656. var self=this;
  5657. try{var cr=nil;
  5658. var lf=nil;
  5659. var start=nil;
  5660. var sz=nil;
  5661. var nextLF=nil;
  5662. var nextCR=nil;
  5663. start=(1);
  5664. sz=smalltalk.send(self, "_size", []);
  5665. cr=smalltalk.send((smalltalk.String || String), "_cr", []);
  5666. nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, (1)]);
  5667. lf=smalltalk.send((smalltalk.String || String), "_lf", []);
  5668. nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, (1)]);
  5669. (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]);})]));})]));})()}})();
  5670. return self;
  5671. } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineIndicesDo_'){return e.fn()} throw(e)}},
  5672. args: ["aBlock"],
  5673. 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'),
  5674. messageSends: ["size", "cr", "indexOf:startingAt:", "lf", "whileTrue:", unescape("%3C%3D"), "ifTrue:", "and:", unescape("%3D"), "value:value:value:", "ifTrue:ifFalse:", "or:", unescape("%3C"), unescape("-"), unescape("+")],
  5675. referencedClasses: ["String"]
  5676. }),
  5677. smalltalk.String);
  5678. smalltalk.addMethod(
  5679. unescape('_linesDo_'),
  5680. smalltalk.method({
  5681. selector: unescape('linesDo%3A'),
  5682. category: 'split join',
  5683. fn: function (aBlock){
  5684. var self=this;
  5685. smalltalk.send(self, "_lineIndicesDo_", [(function(start, endWithoutDelimiters, end){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])]);})]);
  5686. return self;},
  5687. args: ["aBlock"],
  5688. 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'),
  5689. messageSends: ["lineIndicesDo:", "value:", "copyFrom:to:"],
  5690. referencedClasses: []
  5691. }),
  5692. smalltalk.String);
  5693. smalltalk.addMethod(
  5694. unescape('_lines'),
  5695. smalltalk.method({
  5696. selector: unescape('lines'),
  5697. category: 'split join',
  5698. fn: function (){
  5699. var self=this;
  5700. var lines=nil;
  5701. lines=smalltalk.send((smalltalk.Array || Array), "_new", []);
  5702. smalltalk.send(self, "_linesDo_", [(function(aLine){return smalltalk.send(lines, "_add_", [aLine]);})]);
  5703. return lines;
  5704. return self;},
  5705. args: [],
  5706. 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'),
  5707. messageSends: ["new", "linesDo:", "add:"],
  5708. referencedClasses: ["Array"]
  5709. }),
  5710. smalltalk.String);
  5711. smalltalk.addMethod(
  5712. unescape('_lineNumber_'),
  5713. smalltalk.method({
  5714. selector: unescape('lineNumber%3A'),
  5715. category: 'split join',
  5716. fn: function (anIndex){
  5717. var self=this;
  5718. try{var lineCount=nil;
  5719. lineCount=(0);
  5720. 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])}})})();})]));})]);
  5721. (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return nil}})})();
  5722. return self;
  5723. } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineNumber_'){return e.fn()} throw(e)}},
  5724. args: ["anIndex"],
  5725. 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'),
  5726. messageSends: ["lineIndicesDo:", "ifTrue:", unescape("%3D"), unescape("+"), "copyFrom:to:"],
  5727. referencedClasses: []
  5728. }),
  5729. smalltalk.String);
  5730. smalltalk.addMethod(
  5731. unescape('_reversed'),
  5732. smalltalk.method({
  5733. selector: unescape('reversed'),
  5734. category: 'converting',
  5735. fn: function (){
  5736. var self=this;
  5737. return self.split("").reverse().join("");
  5738. return self;},
  5739. args: [],
  5740. source: unescape('reversed%0A%09%3Creturn%20self.split%28%22%22%29.reverse%28%29.join%28%22%22%29%3E'),
  5741. messageSends: [],
  5742. referencedClasses: []
  5743. }),
  5744. smalltalk.String);
  5745. smalltalk.addMethod(
  5746. unescape('__eq_eq'),
  5747. smalltalk.method({
  5748. selector: unescape('%3D%3D'),
  5749. category: 'comparing',
  5750. fn: function (aString){
  5751. var self=this;
  5752. 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}})})();})]));
  5753. return String(self) === String(aString);
  5754. return self;
  5755. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  5756. args: ["aString"],
  5757. 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'),
  5758. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  5759. referencedClasses: []
  5760. }),
  5761. smalltalk.String);
  5762. smalltalk.addMethod(
  5763. unescape('_asJavaScriptSelector'),
  5764. smalltalk.method({
  5765. selector: unescape('asJavaScriptSelector'),
  5766. category: 'converting',
  5767. fn: function (){
  5768. var self=this;
  5769. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_asSelector", []), "_replace_with_", [unescape("%5E_"), ""]), "_replace_with_", [unescape("_.*"), ""]);
  5770. return self;},
  5771. args: [],
  5772. 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.'),
  5773. messageSends: ["replace:with:", "asSelector"],
  5774. referencedClasses: []
  5775. }),
  5776. smalltalk.String);
  5777. smalltalk.addMethod(
  5778. unescape('_streamClass'),
  5779. smalltalk.method({
  5780. selector: unescape('streamClass'),
  5781. category: 'accessing',
  5782. fn: function (){
  5783. var self=this;
  5784. return (smalltalk.StringStream || StringStream);
  5785. return self;},
  5786. args: [],
  5787. source: unescape('streamClass%0A%09%20%20%20%20%5EStringStream'),
  5788. messageSends: [],
  5789. referencedClasses: ["StringStream"]
  5790. }),
  5791. smalltalk.String.klass);
  5792. smalltalk.addMethod(
  5793. unescape('_fromString_'),
  5794. smalltalk.method({
  5795. selector: unescape('fromString%3A'),
  5796. category: 'instance creation',
  5797. fn: function (aString){
  5798. var self=this;
  5799. return new self.fn(aString);
  5800. return self;},
  5801. args: ["aString"],
  5802. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%3Creturn%20new%20self.fn%28aString%29%3E'),
  5803. messageSends: [],
  5804. referencedClasses: []
  5805. }),
  5806. smalltalk.String.klass);
  5807. smalltalk.addMethod(
  5808. unescape('_cr'),
  5809. smalltalk.method({
  5810. selector: unescape('cr'),
  5811. category: 'accessing',
  5812. fn: function (){
  5813. var self=this;
  5814. return '\r';
  5815. return self;},
  5816. args: [],
  5817. source: unescape('cr%0A%09%3Creturn%20%27%5Cr%27%3E'),
  5818. messageSends: [],
  5819. referencedClasses: []
  5820. }),
  5821. smalltalk.String.klass);
  5822. smalltalk.addMethod(
  5823. unescape('_lf'),
  5824. smalltalk.method({
  5825. selector: unescape('lf'),
  5826. category: 'accessing',
  5827. fn: function (){
  5828. var self=this;
  5829. return '\n';
  5830. return self;},
  5831. args: [],
  5832. source: unescape('lf%0A%09%3Creturn%20%27%5Cn%27%3E'),
  5833. messageSends: [],
  5834. referencedClasses: []
  5835. }),
  5836. smalltalk.String.klass);
  5837. smalltalk.addMethod(
  5838. unescape('_space'),
  5839. smalltalk.method({
  5840. selector: unescape('space'),
  5841. category: 'accessing',
  5842. fn: function (){
  5843. var self=this;
  5844. return ' ';
  5845. return self;},
  5846. args: [],
  5847. source: unescape('space%0A%09%3Creturn%20%27%20%27%3E'),
  5848. messageSends: [],
  5849. referencedClasses: []
  5850. }),
  5851. smalltalk.String.klass);
  5852. smalltalk.addMethod(
  5853. unescape('_tab'),
  5854. smalltalk.method({
  5855. selector: unescape('tab'),
  5856. category: 'accessing',
  5857. fn: function (){
  5858. var self=this;
  5859. return '\t';
  5860. return self;},
  5861. args: [],
  5862. source: unescape('tab%0A%09%3Creturn%20%27%5Ct%27%3E'),
  5863. messageSends: [],
  5864. referencedClasses: []
  5865. }),
  5866. smalltalk.String.klass);
  5867. smalltalk.addMethod(
  5868. unescape('_crlf'),
  5869. smalltalk.method({
  5870. selector: unescape('crlf'),
  5871. category: 'accessing',
  5872. fn: function (){
  5873. var self=this;
  5874. return '\r\n';
  5875. return self;},
  5876. args: [],
  5877. source: unescape('crlf%0A%09%3Creturn%20%27%5Cr%5Cn%27%3E'),
  5878. messageSends: [],
  5879. referencedClasses: []
  5880. }),
  5881. smalltalk.String.klass);
  5882. smalltalk.addMethod(
  5883. unescape('_streamContents_'),
  5884. smalltalk.method({
  5885. selector: unescape('streamContents%3A'),
  5886. category: 'instance creation',
  5887. fn: function (blockWithArg){
  5888. var self=this;
  5889. var stream=nil;
  5890. stream=smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [smalltalk.send((smalltalk.String || String), "_new", [])]);
  5891. smalltalk.send(blockWithArg, "_value_", [stream]);
  5892. return smalltalk.send(stream, "_contents", []);
  5893. return self;},
  5894. args: ["blockWithArg"],
  5895. 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'),
  5896. messageSends: ["on:", "streamClass", "new", "value:", "contents"],
  5897. referencedClasses: ["String"]
  5898. }),
  5899. smalltalk.String.klass);
  5900. smalltalk.addMethod(
  5901. unescape('_value_'),
  5902. smalltalk.method({
  5903. selector: unescape('value%3A'),
  5904. category: 'instance creation',
  5905. fn: function (aUTFCharCode){
  5906. var self=this;
  5907. return String.fromCharCode(aUTFCharCode);;
  5908. return self;},
  5909. args: ["aUTFCharCode"],
  5910. source: unescape('value%3A%20aUTFCharCode%0A%0A%09%3Creturn%20String.fromCharCode%28aUTFCharCode%29%3B%3E'),
  5911. messageSends: [],
  5912. referencedClasses: []
  5913. }),
  5914. smalltalk.String.klass);
  5915. smalltalk.addClass('Array', smalltalk.SequenceableCollection, [], 'Kernel');
  5916. smalltalk.addMethod(
  5917. unescape('_size'),
  5918. smalltalk.method({
  5919. selector: unescape('size'),
  5920. category: 'accessing',
  5921. fn: function (){
  5922. var self=this;
  5923. return self.length;
  5924. return self;},
  5925. args: [],
  5926. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  5927. messageSends: [],
  5928. referencedClasses: []
  5929. }),
  5930. smalltalk.Array);
  5931. smalltalk.addMethod(
  5932. unescape('_at_put_'),
  5933. smalltalk.method({
  5934. selector: unescape('at%3Aput%3A'),
  5935. category: 'accessing',
  5936. fn: function (anIndex, anObject){
  5937. var self=this;
  5938. return self[anIndex - 1] = anObject;
  5939. return self;},
  5940. args: ["anIndex", "anObject"],
  5941. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%20%3D%20anObject%3E'),
  5942. messageSends: [],
  5943. referencedClasses: []
  5944. }),
  5945. smalltalk.Array);
  5946. smalltalk.addMethod(
  5947. unescape('_at_ifAbsent_'),
  5948. smalltalk.method({
  5949. selector: unescape('at%3AifAbsent%3A'),
  5950. category: 'accessing',
  5951. fn: function (anIndex, aBlock){
  5952. var self=this;
  5953. var value = self[anIndex - 1];
  5954. if(value === undefined) {
  5955. return aBlock();
  5956. } else {
  5957. return value;
  5958. }
  5959. ;
  5960. return self;},
  5961. args: ["anIndex", "aBlock"],
  5962. 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'),
  5963. messageSends: [],
  5964. referencedClasses: []
  5965. }),
  5966. smalltalk.Array);
  5967. smalltalk.addMethod(
  5968. unescape('_add_'),
  5969. smalltalk.method({
  5970. selector: unescape('add%3A'),
  5971. category: 'adding/removing',
  5972. fn: function (anObject){
  5973. var self=this;
  5974. self.push(anObject); return anObject;;
  5975. return self;},
  5976. args: ["anObject"],
  5977. source: unescape('add%3A%20anObject%0A%09%3Cself.push%28anObject%29%3B%20return%20anObject%3B%3E'),
  5978. messageSends: [],
  5979. referencedClasses: []
  5980. }),
  5981. smalltalk.Array);
  5982. smalltalk.addMethod(
  5983. unescape('_shallowCopy'),
  5984. smalltalk.method({
  5985. selector: unescape('shallowCopy'),
  5986. category: 'copying',
  5987. fn: function (){
  5988. var self=this;
  5989. var newCollection=nil;
  5990. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5991. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [each]);})]);
  5992. return newCollection;
  5993. return self;},
  5994. args: [],
  5995. 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'),
  5996. messageSends: ["new", "class", "do:", "add:"],
  5997. referencedClasses: []
  5998. }),
  5999. smalltalk.Array);
  6000. smalltalk.addMethod(
  6001. unescape('_deepCopy'),
  6002. smalltalk.method({
  6003. selector: unescape('deepCopy'),
  6004. category: 'copying',
  6005. fn: function (){
  6006. var self=this;
  6007. var newCollection=nil;
  6008. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6009. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(each, "_deepCopy", [])]);})]);
  6010. return newCollection;
  6011. return self;},
  6012. args: [],
  6013. 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'),
  6014. messageSends: ["new", "class", "do:", "add:", "deepCopy"],
  6015. referencedClasses: []
  6016. }),
  6017. smalltalk.Array);
  6018. smalltalk.addMethod(
  6019. unescape('_copyFrom_to_'),
  6020. smalltalk.method({
  6021. selector: unescape('copyFrom%3Ato%3A'),
  6022. category: 'copying',
  6023. fn: function (anIndex, anotherIndex){
  6024. var self=this;
  6025. var array=nil;
  6026. array=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6027. smalltalk.send(anIndex, "_to_do_", [anotherIndex, (function(each){return smalltalk.send(array, "_add_", [smalltalk.send(self, "_at_", [each])]);})]);
  6028. return array;
  6029. return self;},
  6030. args: ["anIndex", "anotherIndex"],
  6031. 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'),
  6032. messageSends: ["new", "class", "to:do:", "add:", "at:"],
  6033. referencedClasses: []
  6034. }),
  6035. smalltalk.Array);
  6036. smalltalk.addMethod(
  6037. unescape('_join_'),
  6038. smalltalk.method({
  6039. selector: unescape('join%3A'),
  6040. category: 'enumerating',
  6041. fn: function (aString){
  6042. var self=this;
  6043. return self.join(aString);
  6044. return self;},
  6045. args: ["aString"],
  6046. source: unescape('join%3A%20aString%0A%09%3Creturn%20self.join%28aString%29%3E'),
  6047. messageSends: [],
  6048. referencedClasses: []
  6049. }),
  6050. smalltalk.Array);
  6051. smalltalk.addMethod(
  6052. unescape('_asJavascript'),
  6053. smalltalk.method({
  6054. selector: unescape('asJavascript'),
  6055. category: 'converting',
  6056. fn: function (){
  6057. var self=this;
  6058. 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")]);
  6059. return self;},
  6060. args: [],
  6061. 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'),
  6062. messageSends: [unescape("%2C"), "join:", "collect:", "asJavascript"],
  6063. referencedClasses: []
  6064. }),
  6065. smalltalk.Array);
  6066. smalltalk.addMethod(
  6067. unescape('_sort'),
  6068. smalltalk.method({
  6069. selector: unescape('sort'),
  6070. category: 'enumerating',
  6071. fn: function (){
  6072. var self=this;
  6073. return smalltalk.send(self, "_basicPerform_", ["sort"]);
  6074. return self;},
  6075. args: [],
  6076. source: unescape('sort%0A%20%20%20%20%5Eself%20basicPerform%3A%20%27sort%27'),
  6077. messageSends: ["basicPerform:"],
  6078. referencedClasses: []
  6079. }),
  6080. smalltalk.Array);
  6081. smalltalk.addMethod(
  6082. unescape('_sort_'),
  6083. smalltalk.method({
  6084. selector: unescape('sort%3A'),
  6085. category: 'enumerating',
  6086. fn: function (aBlock){
  6087. var self=this;
  6088. return self.sort(function(a, b) {
  6089. if(aBlock(a,b)) {return -1} else {return 1}
  6090. })
  6091. ;
  6092. return self;},
  6093. args: ["aBlock"],
  6094. 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'),
  6095. messageSends: [],
  6096. referencedClasses: []
  6097. }),
  6098. smalltalk.Array);
  6099. smalltalk.addMethod(
  6100. unescape('_remove_'),
  6101. smalltalk.method({
  6102. selector: unescape('remove%3A'),
  6103. category: 'adding/removing',
  6104. fn: function (anObject){
  6105. var self=this;
  6106. for(var i=0;i<self.length;i++) {
  6107. if(self[i] == anObject) {
  6108. self.splice(i,1);
  6109. break;
  6110. }
  6111. }
  6112. ;
  6113. return self;},
  6114. args: ["anObject"],
  6115. 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'),
  6116. messageSends: [],
  6117. referencedClasses: []
  6118. }),
  6119. smalltalk.Array);
  6120. smalltalk.addMethod(
  6121. unescape('_sorted'),
  6122. smalltalk.method({
  6123. selector: unescape('sorted'),
  6124. category: 'enumerating',
  6125. fn: function (){
  6126. var self=this;
  6127. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort", []);
  6128. return self;},
  6129. args: [],
  6130. source: unescape('sorted%0A%09%5Eself%20copy%20sort'),
  6131. messageSends: ["sort", "copy"],
  6132. referencedClasses: []
  6133. }),
  6134. smalltalk.Array);
  6135. smalltalk.addMethod(
  6136. unescape('_sorted_'),
  6137. smalltalk.method({
  6138. selector: unescape('sorted%3A'),
  6139. category: 'enumerating',
  6140. fn: function (aBlock){
  6141. var self=this;
  6142. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort_", [aBlock]);
  6143. return self;},
  6144. args: ["aBlock"],
  6145. source: unescape('sorted%3A%20aBlock%0A%09%5Eself%20copy%20sort%3A%20aBlock'),
  6146. messageSends: ["sort:", "copy"],
  6147. referencedClasses: []
  6148. }),
  6149. smalltalk.Array);
  6150. smalltalk.addMethod(
  6151. unescape('_removeFrom_to_'),
  6152. smalltalk.method({
  6153. selector: unescape('removeFrom%3Ato%3A'),
  6154. category: 'adding/removing',
  6155. fn: function (aNumber, anotherNumber){
  6156. var self=this;
  6157. self.splice(aNumber - 1,anotherNumber - 1);
  6158. return self;},
  6159. args: ["aNumber", "anotherNumber"],
  6160. source: unescape('removeFrom%3A%20aNumber%20to%3A%20anotherNumber%0A%09%3Cself.splice%28aNumber%20-%201%2CanotherNumber%20-%201%29%3E'),
  6161. messageSends: [],
  6162. referencedClasses: []
  6163. }),
  6164. smalltalk.Array);
  6165. smalltalk.addMethod(
  6166. unescape('_printString'),
  6167. smalltalk.method({
  6168. selector: unescape('printString'),
  6169. category: 'enumerating',
  6170. fn: function (){
  6171. var self=this;
  6172. var str=nil;
  6173. str=smalltalk.send("", "_writeStream", []);
  6174. smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.SequenceableCollection), "__comma", [unescape("%20%28")])]);
  6175. smalltalk.send(self, "_do_separatedBy_", [(function(each){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(each, "_printString", [])]);}), (function(){return smalltalk.send(str, "_nextPutAll_", [" "]);})]);
  6176. smalltalk.send(str, "_nextPutAll_", [unescape("%29")]);
  6177. return smalltalk.send(str, "_contents", []);
  6178. return self;},
  6179. args: [],
  6180. 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'),
  6181. messageSends: ["writeStream", "nextPutAll:", unescape("%2C"), "printString", "do:separatedBy:", "contents"],
  6182. referencedClasses: []
  6183. }),
  6184. smalltalk.Array);
  6185. smalltalk.addMethod(
  6186. unescape('_reversed'),
  6187. smalltalk.method({
  6188. selector: unescape('reversed'),
  6189. category: 'converting',
  6190. fn: function (){
  6191. var self=this;
  6192. return self._copy().reverse();
  6193. return self;},
  6194. args: [],
  6195. source: unescape('reversed%0A%09%3Creturn%20self._copy%28%29.reverse%28%29%3E'),
  6196. messageSends: [],
  6197. referencedClasses: []
  6198. }),
  6199. smalltalk.Array);
  6200. smalltalk.addMethod(
  6201. unescape('__eq'),
  6202. smalltalk.method({
  6203. selector: unescape('%3D'),
  6204. category: 'comparing',
  6205. fn: function (aCollection){
  6206. var self=this;
  6207. 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}})})();})]));
  6208. 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}})})();})]));})]);
  6209. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return true}})})();
  6210. return self;
  6211. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  6212. args: ["aCollection"],
  6213. 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'),
  6214. messageSends: ["ifFalse:", "and:", unescape("%3D"), "class", "size", "withIndexDo:", "at:"],
  6215. referencedClasses: []
  6216. }),
  6217. smalltalk.Array);
  6218. smalltalk.addClass('RegularExpression', smalltalk.Object, [], 'Kernel');
  6219. smalltalk.addMethod(
  6220. unescape('_compile_'),
  6221. smalltalk.method({
  6222. selector: unescape('compile%3A'),
  6223. category: 'evaluating',
  6224. fn: function (aString){
  6225. var self=this;
  6226. return self.compile(aString);
  6227. return self;},
  6228. args: ["aString"],
  6229. source: unescape('compile%3A%20aString%0A%09%3Creturn%20self.compile%28aString%29%3E'),
  6230. messageSends: [],
  6231. referencedClasses: []
  6232. }),
  6233. smalltalk.RegularExpression);
  6234. smalltalk.addMethod(
  6235. unescape('_exec_'),
  6236. smalltalk.method({
  6237. selector: unescape('exec%3A'),
  6238. category: 'evaluating',
  6239. fn: function (aString){
  6240. var self=this;
  6241. return self.exec(aString) || nil;
  6242. return self;},
  6243. args: ["aString"],
  6244. source: unescape('exec%3A%20aString%0A%09%3Creturn%20self.exec%28aString%29%20%7C%7C%20nil%3E'),
  6245. messageSends: [],
  6246. referencedClasses: []
  6247. }),
  6248. smalltalk.RegularExpression);
  6249. smalltalk.addMethod(
  6250. unescape('_test_'),
  6251. smalltalk.method({
  6252. selector: unescape('test%3A'),
  6253. category: 'evaluating',
  6254. fn: function (aString){
  6255. var self=this;
  6256. return self.test(aString);
  6257. return self;},
  6258. args: ["aString"],
  6259. source: unescape('test%3A%20aString%0A%09%3Creturn%20self.test%28aString%29%3E'),
  6260. messageSends: [],
  6261. referencedClasses: []
  6262. }),
  6263. smalltalk.RegularExpression);
  6264. smalltalk.addMethod(
  6265. unescape('_fromString_flag_'),
  6266. smalltalk.method({
  6267. selector: unescape('fromString%3Aflag%3A'),
  6268. category: 'instance creation',
  6269. fn: function (aString, anotherString){
  6270. var self=this;
  6271. return new RegExp(aString, anotherString);
  6272. return self;},
  6273. args: ["aString", "anotherString"],
  6274. source: unescape('fromString%3A%20aString%20flag%3A%20anotherString%0A%09%3Creturn%20new%20RegExp%28aString%2C%20anotherString%29%3E'),
  6275. messageSends: [],
  6276. referencedClasses: []
  6277. }),
  6278. smalltalk.RegularExpression.klass);
  6279. smalltalk.addMethod(
  6280. unescape('_fromString_'),
  6281. smalltalk.method({
  6282. selector: unescape('fromString%3A'),
  6283. category: 'instance creation',
  6284. fn: function (aString){
  6285. var self=this;
  6286. return smalltalk.send(self, "_fromString_flag_", [aString, ""]);
  6287. return self;},
  6288. args: ["aString"],
  6289. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%5Eself%20fromString%3A%20aString%20flag%3A%20%27%27'),
  6290. messageSends: ["fromString:flag:"],
  6291. referencedClasses: []
  6292. }),
  6293. smalltalk.RegularExpression.klass);
  6294. smalltalk.addClass('Error', smalltalk.Object, ['messageText'], 'Kernel');
  6295. smalltalk.addMethod(
  6296. unescape('_messageText'),
  6297. smalltalk.method({
  6298. selector: unescape('messageText'),
  6299. category: 'accessing',
  6300. fn: function (){
  6301. var self=this;
  6302. return self['@messageText'];
  6303. return self;},
  6304. args: [],
  6305. source: unescape('messageText%0A%09%5EmessageText'),
  6306. messageSends: [],
  6307. referencedClasses: []
  6308. }),
  6309. smalltalk.Error);
  6310. smalltalk.addMethod(
  6311. unescape('_messageText_'),
  6312. smalltalk.method({
  6313. selector: unescape('messageText%3A'),
  6314. category: 'accessing',
  6315. fn: function (aString){
  6316. var self=this;
  6317. self['@messageText']=aString;
  6318. return self;},
  6319. args: ["aString"],
  6320. source: unescape('messageText%3A%20aString%0A%09messageText%20%3A%3D%20aString'),
  6321. messageSends: [],
  6322. referencedClasses: []
  6323. }),
  6324. smalltalk.Error);
  6325. smalltalk.addMethod(
  6326. unescape('_signal'),
  6327. smalltalk.method({
  6328. selector: unescape('signal'),
  6329. category: 'signaling',
  6330. fn: function (){
  6331. var self=this;
  6332. self.context = smalltalk.getThisContext(); self.smalltalkError = true; throw(self);
  6333. return self;},
  6334. args: [],
  6335. source: unescape('signal%0A%09%3Cself.context%20%3D%20smalltalk.getThisContext%28%29%3B%20self.smalltalkError%20%3D%20true%3B%20throw%28self%29%3E'),
  6336. messageSends: [],
  6337. referencedClasses: []
  6338. }),
  6339. smalltalk.Error);
  6340. smalltalk.addMethod(
  6341. unescape('_context'),
  6342. smalltalk.method({
  6343. selector: unescape('context'),
  6344. category: 'accessing',
  6345. fn: function (){
  6346. var self=this;
  6347. return self.context;
  6348. return self;},
  6349. args: [],
  6350. source: unescape('context%0A%09%3Creturn%20self.context%3E'),
  6351. messageSends: [],
  6352. referencedClasses: []
  6353. }),
  6354. smalltalk.Error);
  6355. smalltalk.addMethod(
  6356. unescape('_jsStack'),
  6357. smalltalk.method({
  6358. selector: unescape('jsStack'),
  6359. category: 'accessing',
  6360. fn: function (){
  6361. var self=this;
  6362. return self.stack;
  6363. return self;},
  6364. args: [],
  6365. source: unescape('jsStack%0A%09%3Creturn%20self.stack%3E'),
  6366. messageSends: [],
  6367. referencedClasses: []
  6368. }),
  6369. smalltalk.Error);
  6370. smalltalk.addMethod(
  6371. unescape('_isSmalltalkError'),
  6372. smalltalk.method({
  6373. selector: unescape('isSmalltalkError'),
  6374. category: 'testing',
  6375. fn: function (){
  6376. var self=this;
  6377. return self.smalltalkError === true;
  6378. return self;},
  6379. args: [],
  6380. source: unescape('isSmalltalkError%0A%09%3Creturn%20self.smalltalkError%20%3D%3D%3D%20true%3E'),
  6381. messageSends: [],
  6382. referencedClasses: []
  6383. }),
  6384. smalltalk.Error);
  6385. smalltalk.addMethod(
  6386. unescape('_signal_'),
  6387. smalltalk.method({
  6388. selector: unescape('signal%3A'),
  6389. category: 'instance creation',
  6390. fn: function (aString){
  6391. var self=this;
  6392. return (function($rec){smalltalk.send($rec, "_messageText_", [aString]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send(self, "_new", []));
  6393. return self;},
  6394. args: ["aString"],
  6395. source: unescape('signal%3A%20aString%0A%09%20%20%20%20%5Eself%20new%0A%09%09messageText%3A%20aString%3B%0A%09%09signal'),
  6396. messageSends: ["messageText:", "signal", "new"],
  6397. referencedClasses: []
  6398. }),
  6399. smalltalk.Error.klass);
  6400. smalltalk.addClass('MethodContext', smalltalk.Object, [], 'Kernel');
  6401. smalltalk.addMethod(
  6402. unescape('_receiver'),
  6403. smalltalk.method({
  6404. selector: unescape('receiver'),
  6405. category: 'accessing',
  6406. fn: function (){
  6407. var self=this;
  6408. return self.receiver;
  6409. return self;},
  6410. args: [],
  6411. source: unescape('receiver%0A%09%3Creturn%20self.receiver%3E'),
  6412. messageSends: [],
  6413. referencedClasses: []
  6414. }),
  6415. smalltalk.MethodContext);
  6416. smalltalk.addMethod(
  6417. unescape('_selector'),
  6418. smalltalk.method({
  6419. selector: unescape('selector'),
  6420. category: 'accessing',
  6421. fn: function (){
  6422. var self=this;
  6423. return smalltalk.convertSelector(self.selector);
  6424. return self;},
  6425. args: [],
  6426. source: unescape('selector%0A%09%3Creturn%20smalltalk.convertSelector%28self.selector%29%3E'),
  6427. messageSends: [],
  6428. referencedClasses: []
  6429. }),
  6430. smalltalk.MethodContext);
  6431. smalltalk.addMethod(
  6432. unescape('_home'),
  6433. smalltalk.method({
  6434. selector: unescape('home'),
  6435. category: 'accessing',
  6436. fn: function (){
  6437. var self=this;
  6438. return self.homeContext;
  6439. return self;},
  6440. args: [],
  6441. source: unescape('home%0A%09%3Creturn%20self.homeContext%3E'),
  6442. messageSends: [],
  6443. referencedClasses: []
  6444. }),
  6445. smalltalk.MethodContext);
  6446. smalltalk.addMethod(
  6447. unescape('_temps'),
  6448. smalltalk.method({
  6449. selector: unescape('temps'),
  6450. category: 'accessing',
  6451. fn: function (){
  6452. var self=this;
  6453. return self.temps;
  6454. return self;},
  6455. args: [],
  6456. source: unescape('temps%0A%09%3Creturn%20self.temps%3E'),
  6457. messageSends: [],
  6458. referencedClasses: []
  6459. }),
  6460. smalltalk.MethodContext);
  6461. smalltalk.addMethod(
  6462. unescape('_printString'),
  6463. smalltalk.method({
  6464. selector: unescape('printString'),
  6465. category: 'accessing',
  6466. fn: function (){
  6467. var self=this;
  6468. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.Object), "__comma", [unescape("%28")]), "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", [unescape("%29")]);
  6469. return self;},
  6470. args: [],
  6471. source: unescape('printString%0A%09%5Esuper%20printString%2C%20%27%28%27%2C%20self%20asString%2C%20%27%29%27'),
  6472. messageSends: [unescape("%2C"), "printString", "asString"],
  6473. referencedClasses: []
  6474. }),
  6475. smalltalk.MethodContext);
  6476. smalltalk.addMethod(
  6477. unescape('_asString'),
  6478. smalltalk.method({
  6479. selector: unescape('asString'),
  6480. category: 'accessing',
  6481. fn: function (){
  6482. var self=this;
  6483. 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", [])]);
  6484. return self;},
  6485. args: [],
  6486. source: unescape('asString%0A%09%5Eself%20receiver%20class%20printString%2C%20%27%20%3E%3E%20%27%2C%20self%20selector'),
  6487. messageSends: [unescape("%2C"), "printString", "class", "receiver", "selector"],
  6488. referencedClasses: []
  6489. }),
  6490. smalltalk.MethodContext);
  6491. smalltalk.addClass('Association', smalltalk.Object, ['key', 'value'], 'Kernel');
  6492. smalltalk.addMethod(
  6493. unescape('__eq'),
  6494. smalltalk.method({
  6495. selector: unescape('%3D'),
  6496. category: 'comparing',
  6497. fn: function (anAssociation){
  6498. var self=this;
  6499. 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", [])]);})]);})]);
  6500. return self;},
  6501. args: ["anAssociation"],
  6502. 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'),
  6503. messageSends: ["and:", unescape("%3D"), "class", "key", "value"],
  6504. referencedClasses: []
  6505. }),
  6506. smalltalk.Association);
  6507. smalltalk.addMethod(
  6508. unescape('_key_'),
  6509. smalltalk.method({
  6510. selector: unescape('key%3A'),
  6511. category: 'accessing',
  6512. fn: function (aKey){
  6513. var self=this;
  6514. self['@key']=aKey;
  6515. return self;},
  6516. args: ["aKey"],
  6517. source: unescape('key%3A%20aKey%0A%09key%20%3A%3D%20aKey'),
  6518. messageSends: [],
  6519. referencedClasses: []
  6520. }),
  6521. smalltalk.Association);
  6522. smalltalk.addMethod(
  6523. unescape('_key'),
  6524. smalltalk.method({
  6525. selector: unescape('key'),
  6526. category: 'accessing',
  6527. fn: function (){
  6528. var self=this;
  6529. return self['@key'];
  6530. return self;},
  6531. args: [],
  6532. source: unescape('key%0A%09%5Ekey'),
  6533. messageSends: [],
  6534. referencedClasses: []
  6535. }),
  6536. smalltalk.Association);
  6537. smalltalk.addMethod(
  6538. unescape('_value_'),
  6539. smalltalk.method({
  6540. selector: unescape('value%3A'),
  6541. category: 'accessing',
  6542. fn: function (aValue){
  6543. var self=this;
  6544. self['@value']=aValue;
  6545. return self;},
  6546. args: ["aValue"],
  6547. source: unescape('value%3A%20aValue%0A%09value%20%3A%3D%20aValue'),
  6548. messageSends: [],
  6549. referencedClasses: []
  6550. }),
  6551. smalltalk.Association);
  6552. smalltalk.addMethod(
  6553. unescape('_value'),
  6554. smalltalk.method({
  6555. selector: unescape('value'),
  6556. category: 'accessing',
  6557. fn: function (){
  6558. var self=this;
  6559. return self['@value'];
  6560. return self;},
  6561. args: [],
  6562. source: unescape('value%0A%09%5Evalue'),
  6563. messageSends: [],
  6564. referencedClasses: []
  6565. }),
  6566. smalltalk.Association);
  6567. smalltalk.addMethod(
  6568. unescape('_storeOn_'),
  6569. smalltalk.method({
  6570. selector: unescape('storeOn%3A'),
  6571. category: 'comparing',
  6572. fn: function (aStream){
  6573. var self=this;
  6574. smalltalk.send(self['@key'], "_storeOn_", [aStream]);
  6575. smalltalk.send(aStream, "_nextPutAll_", [unescape("-%3E")]);
  6576. smalltalk.send(self['@value'], "_storeOn_", [aStream]);
  6577. return self;},
  6578. args: ["aStream"],
  6579. source: unescape('storeOn%3A%20aStream%0A%09%22Store%20in%20the%20format%20%28key-%3Evalue%29%22%0A%0A%09%22aStream%20nextPutAll%3A%20%27%28%27.%22%0A%09key%20storeOn%3A%20aStream.%0A%09aStream%20nextPutAll%3A%20%27-%3E%27.%0A%09value%20storeOn%3A%20aStream.%0A%09%22aStream%20nextPutAll%3A%20%27%29%27%22'),
  6580. messageSends: ["storeOn:", "nextPutAll:"],
  6581. referencedClasses: []
  6582. }),
  6583. smalltalk.Association);
  6584. smalltalk.addMethod(
  6585. unescape('_key_value_'),
  6586. smalltalk.method({
  6587. selector: unescape('key%3Avalue%3A'),
  6588. category: 'instance creation',
  6589. fn: function (aKey, aValue){
  6590. var self=this;
  6591. return (function($rec){smalltalk.send($rec, "_key_", [aKey]);smalltalk.send($rec, "_value_", [aValue]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  6592. return self;},
  6593. args: ["aKey", "aValue"],
  6594. 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'),
  6595. messageSends: ["key:", "value:", "yourself", "new"],
  6596. referencedClasses: []
  6597. }),
  6598. smalltalk.Association.klass);
  6599. smalltalk.addClass('Dictionary', smalltalk.Collection, [], 'Kernel');
  6600. smalltalk.addMethod(
  6601. unescape('__eq'),
  6602. smalltalk.method({
  6603. selector: unescape('%3D'),
  6604. category: 'comparing',
  6605. fn: function (aDictionary){
  6606. var self=this;
  6607. 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}})})();})]));
  6608. ((($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}})})();})]));
  6609. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return smalltalk.send(smalltalk.send(self, "_associations", []), "__eq", [smalltalk.send(aDictionary, "_associations", [])])}})})();
  6610. return self;
  6611. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  6612. args: ["aDictionary"],
  6613. 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'),
  6614. messageSends: ["ifFalse:", unescape("%3D"), "class", "size", "associations"],
  6615. referencedClasses: []
  6616. }),
  6617. smalltalk.Dictionary);
  6618. smalltalk.addMethod(
  6619. unescape('_shallowCopy'),
  6620. smalltalk.method({
  6621. selector: unescape('shallowCopy'),
  6622. category: 'copying',
  6623. fn: function (){
  6624. var self=this;
  6625. var copy=nil;
  6626. copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6627. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(copy, "_at_put_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  6628. return copy;
  6629. return self;},
  6630. args: [],
  6631. 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'),
  6632. messageSends: ["new", "class", "associationsDo:", "at:put:", "key", "value"],
  6633. referencedClasses: []
  6634. }),
  6635. smalltalk.Dictionary);
  6636. smalltalk.addMethod(
  6637. unescape('_size'),
  6638. smalltalk.method({
  6639. selector: unescape('size'),
  6640. category: 'accessing',
  6641. fn: function (){
  6642. var self=this;
  6643. return smalltalk.send(smalltalk.send(self, "_keys", []), "_size", []);
  6644. return self;},
  6645. args: [],
  6646. source: unescape('size%0A%09%5Eself%20keys%20size'),
  6647. messageSends: ["size", "keys"],
  6648. referencedClasses: []
  6649. }),
  6650. smalltalk.Dictionary);
  6651. smalltalk.addMethod(
  6652. unescape('_associations'),
  6653. smalltalk.method({
  6654. selector: unescape('associations'),
  6655. category: 'accessing',
  6656. fn: function (){
  6657. var self=this;
  6658. var associations=nil;
  6659. associations=[];
  6660. smalltalk.send(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])])]);})]);
  6661. return associations;
  6662. return self;},
  6663. args: [],
  6664. source: unescape('associations%0A%09%7C%20associations%20%7C%0A%09associations%20%3A%3D%20%23%28%29.%0A%09self%20keys%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'),
  6665. messageSends: ["do:", "keys", "add:", "key:value:", "at:"],
  6666. referencedClasses: ["Association"]
  6667. }),
  6668. smalltalk.Dictionary);
  6669. smalltalk.addMethod(
  6670. unescape('_keys'),
  6671. smalltalk.method({
  6672. selector: unescape('keys'),
  6673. category: 'accessing',
  6674. fn: function (){
  6675. var self=this;
  6676. var keys = [];
  6677. for(var i in self) {
  6678. if(self.hasOwnProperty(i)) {
  6679. keys.push(i);
  6680. }
  6681. };
  6682. return keys;
  6683. ;
  6684. return self;},
  6685. args: [],
  6686. source: unescape('keys%0A%09%3C%0A%09%09var%20keys%20%3D%20%5B%5D%3B%0A%09%09for%28var%20i%20in%20self%29%20%7B%0A%09%09%09if%28self.hasOwnProperty%28i%29%29%20%7B%0A%09%09%09%09keys.push%28i%29%3B%0A%09%09%09%7D%0A%09%09%7D%3B%0A%09%09return%20keys%3B%0A%09%3E'),
  6687. messageSends: [],
  6688. referencedClasses: []
  6689. }),
  6690. smalltalk.Dictionary);
  6691. smalltalk.addMethod(
  6692. unescape('_values'),
  6693. smalltalk.method({
  6694. selector: unescape('values'),
  6695. category: 'accessing',
  6696. fn: function (){
  6697. var self=this;
  6698. return smalltalk.send(smalltalk.send(self, "_keys", []), "_collect_", [(function(each){return smalltalk.send(self, "_at_", [each]);})]);
  6699. return self;},
  6700. args: [],
  6701. source: unescape('values%0A%20%20%20%20%09%5Eself%20keys%20collect%3A%20%5B%3Aeach%20%7C%20self%20at%3A%20each%5D'),
  6702. messageSends: ["collect:", "keys", "at:"],
  6703. referencedClasses: []
  6704. }),
  6705. smalltalk.Dictionary);
  6706. smalltalk.addMethod(
  6707. unescape('_at_put_'),
  6708. smalltalk.method({
  6709. selector: unescape('at%3Aput%3A'),
  6710. category: 'accessing',
  6711. fn: function (aKey, aValue){
  6712. var self=this;
  6713. return smalltalk.send(self, "_basicAt_put_", [aKey, aValue]);
  6714. return self;},
  6715. args: ["aKey", "aValue"],
  6716. source: unescape('at%3A%20aKey%20put%3A%20aValue%0A%09%5Eself%20basicAt%3A%20aKey%20put%3A%20aValue'),
  6717. messageSends: ["basicAt:put:"],
  6718. referencedClasses: []
  6719. }),
  6720. smalltalk.Dictionary);
  6721. smalltalk.addMethod(
  6722. unescape('_at_ifAbsent_'),
  6723. smalltalk.method({
  6724. selector: unescape('at%3AifAbsent%3A'),
  6725. category: 'accessing',
  6726. fn: function (aKey, aBlock){
  6727. var self=this;
  6728. return smalltalk.send(smalltalk.send(self, "_includesKey_", [aKey]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_basicAt_", [aKey]);}), aBlock]);
  6729. return self;},
  6730. args: ["aKey", "aBlock"],
  6731. source: unescape('at%3A%20aKey%20ifAbsent%3A%20aBlock%0A%09%5E%28self%20includesKey%3A%20aKey%29%0A%09%09ifTrue%3A%20%5Bself%20basicAt%3A%20aKey%5D%0A%09%09ifFalse%3A%20aBlock'),
  6732. messageSends: ["ifTrue:ifFalse:", "includesKey:", "basicAt:"],
  6733. referencedClasses: []
  6734. }),
  6735. smalltalk.Dictionary);
  6736. smalltalk.addMethod(
  6737. unescape('_at_ifAbsentPut_'),
  6738. smalltalk.method({
  6739. selector: unescape('at%3AifAbsentPut%3A'),
  6740. category: 'accessing',
  6741. fn: function (aKey, aBlock){
  6742. var self=this;
  6743. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_at_put_", [aKey, smalltalk.send(aBlock, "_value", [])]);})]);
  6744. return self;},
  6745. args: ["aKey", "aBlock"],
  6746. 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'),
  6747. messageSends: ["at:ifAbsent:", "at:put:", "value"],
  6748. referencedClasses: []
  6749. }),
  6750. smalltalk.Dictionary);
  6751. smalltalk.addMethod(
  6752. unescape('_at_ifPresent_'),
  6753. smalltalk.method({
  6754. selector: unescape('at%3AifPresent%3A'),
  6755. category: 'accessing',
  6756. fn: function (aKey, aBlock){
  6757. var self=this;
  6758. return (($receiver = smalltalk.send(self, "_basicAt_", [aKey])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})() : nil;
  6759. return self;},
  6760. args: ["aKey", "aBlock"],
  6761. 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'),
  6762. messageSends: ["ifNotNil:", "basicAt:", "value:", "at:"],
  6763. referencedClasses: []
  6764. }),
  6765. smalltalk.Dictionary);
  6766. smalltalk.addMethod(
  6767. unescape('_at_ifPresent_ifAbsent_'),
  6768. smalltalk.method({
  6769. selector: unescape('at%3AifPresent%3AifAbsent%3A'),
  6770. category: 'accessing',
  6771. fn: function (aKey, aBlock, anotherBlock){
  6772. var self=this;
  6773. return smalltalk.send(smalltalk.send(self, "_basicAt_", [aKey]), "_ifNil_ifNotNil_", [anotherBlock, (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})]);
  6774. return self;},
  6775. args: ["aKey", "aBlock", "anotherBlock"],
  6776. 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'),
  6777. messageSends: ["ifNil:ifNotNil:", "basicAt:", "value:", "at:"],
  6778. referencedClasses: []
  6779. }),
  6780. smalltalk.Dictionary);
  6781. smalltalk.addMethod(
  6782. unescape('_add_'),
  6783. smalltalk.method({
  6784. selector: unescape('add%3A'),
  6785. category: 'adding/removing',
  6786. fn: function (anAssociation){
  6787. var self=this;
  6788. smalltalk.send(self, "_at_put_", [smalltalk.send(anAssociation, "_key", []), smalltalk.send(anAssociation, "_value", [])]);
  6789. return self;},
  6790. args: ["anAssociation"],
  6791. source: unescape('add%3A%20anAssociation%0A%20%20%20%20%09self%20at%3A%20anAssociation%20key%20put%3A%20anAssociation%20value'),
  6792. messageSends: ["at:put:", "key", "value"],
  6793. referencedClasses: []
  6794. }),
  6795. smalltalk.Dictionary);
  6796. smalltalk.addMethod(
  6797. unescape('_addAll_'),
  6798. smalltalk.method({
  6799. selector: unescape('addAll%3A'),
  6800. category: 'adding/removing',
  6801. fn: function (aDictionary){
  6802. var self=this;
  6803. smalltalk.send(self, "_addAll_", [smalltalk.send(aDictionary, "_associations", [])], smalltalk.Collection);
  6804. return aDictionary;
  6805. return self;},
  6806. args: ["aDictionary"],
  6807. source: unescape('addAll%3A%20aDictionary%0A%20%20%20%20%09super%20addAll%3A%20aDictionary%20associations.%0A%20%20%20%20%09%5EaDictionary'),
  6808. messageSends: ["addAll:", "associations"],
  6809. referencedClasses: []
  6810. }),
  6811. smalltalk.Dictionary);
  6812. smalltalk.addMethod(
  6813. unescape('__comma'),
  6814. smalltalk.method({
  6815. selector: unescape('%2C'),
  6816. category: 'copying',
  6817. fn: function (aCollection){
  6818. var self=this;
  6819. smalltalk.send(self, "_shouldNotImplement", []);
  6820. return self;},
  6821. args: ["aCollection"],
  6822. source: unescape('%2C%20aCollection%0A%09self%20shouldNotImplement'),
  6823. messageSends: ["shouldNotImplement"],
  6824. referencedClasses: []
  6825. }),
  6826. smalltalk.Dictionary);
  6827. smalltalk.addMethod(
  6828. unescape('_copyFrom_to_'),
  6829. smalltalk.method({
  6830. selector: unescape('copyFrom%3Ato%3A'),
  6831. category: 'copying',
  6832. fn: function (anIndex, anotherIndex){
  6833. var self=this;
  6834. smalltalk.send(self, "_shouldNotImplement", []);
  6835. return self;},
  6836. args: ["anIndex", "anotherIndex"],
  6837. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20shouldNotImplement'),
  6838. messageSends: ["shouldNotImplement"],
  6839. referencedClasses: []
  6840. }),
  6841. smalltalk.Dictionary);
  6842. smalltalk.addMethod(
  6843. unescape('_associationsDo_'),
  6844. smalltalk.method({
  6845. selector: unescape('associationsDo%3A'),
  6846. category: 'enumerating',
  6847. fn: function (aBlock){
  6848. var self=this;
  6849. smalltalk.send(smalltalk.send(self, "_associations", []), "_do_", [aBlock]);
  6850. return self;},
  6851. args: ["aBlock"],
  6852. source: unescape('associationsDo%3A%20aBlock%0A%20%20%20%20%09self%20associations%20do%3A%20aBlock'),
  6853. messageSends: ["do:", "associations"],
  6854. referencedClasses: []
  6855. }),
  6856. smalltalk.Dictionary);
  6857. smalltalk.addMethod(
  6858. unescape('_keysAndValuesDo_'),
  6859. smalltalk.method({
  6860. selector: unescape('keysAndValuesDo%3A'),
  6861. category: 'enumerating',
  6862. fn: function (aBlock){
  6863. var self=this;
  6864. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(aBlock, "_value_value_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  6865. return self;},
  6866. args: ["aBlock"],
  6867. 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'),
  6868. messageSends: ["associationsDo:", "value:value:", "key", "value"],
  6869. referencedClasses: []
  6870. }),
  6871. smalltalk.Dictionary);
  6872. smalltalk.addMethod(
  6873. unescape('_do_'),
  6874. smalltalk.method({
  6875. selector: unescape('do%3A'),
  6876. category: 'enumerating',
  6877. fn: function (aBlock){
  6878. var self=this;
  6879. smalltalk.send(smalltalk.send(self, "_values", []), "_do_", [aBlock]);
  6880. return self;},
  6881. args: ["aBlock"],
  6882. source: unescape('do%3A%20aBlock%0A%20%20%20%20%09self%20values%20do%3A%20aBlock'),
  6883. messageSends: ["do:", "values"],
  6884. referencedClasses: []
  6885. }),
  6886. smalltalk.Dictionary);
  6887. smalltalk.addMethod(
  6888. unescape('_select_'),
  6889. smalltalk.method({
  6890. selector: unescape('select%3A'),
  6891. category: 'enumerating',
  6892. fn: function (aBlock){
  6893. var self=this;
  6894. var newDict=nil;
  6895. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6896. 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]);})]));})]);
  6897. return newDict;
  6898. return self;},
  6899. args: ["aBlock"],
  6900. 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'),
  6901. messageSends: ["new", "class", "keysAndValuesDo:", "ifTrue:", "value:", "at:put:"],
  6902. referencedClasses: []
  6903. }),
  6904. smalltalk.Dictionary);
  6905. smalltalk.addMethod(
  6906. unescape('_collect_'),
  6907. smalltalk.method({
  6908. selector: unescape('collect%3A'),
  6909. category: 'enumerating',
  6910. fn: function (aBlock){
  6911. var self=this;
  6912. var newDict=nil;
  6913. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6914. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(newDict, "_at_put_", [key, smalltalk.send(aBlock, "_value_", [value])]);})]);
  6915. return newDict;
  6916. return self;},
  6917. args: ["aBlock"],
  6918. 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'),
  6919. messageSends: ["new", "class", "keysAndValuesDo:", "at:put:", "value:"],
  6920. referencedClasses: []
  6921. }),
  6922. smalltalk.Dictionary);
  6923. smalltalk.addMethod(
  6924. unescape('_detect_ifNone_'),
  6925. smalltalk.method({
  6926. selector: unescape('detect%3AifNone%3A'),
  6927. category: 'enumerating',
  6928. fn: function (aBlock, anotherBlock){
  6929. var self=this;
  6930. return smalltalk.send(smalltalk.send(self, "_values", []), "_detect_ifNone_", [aBlock, anotherBlock]);
  6931. return self;},
  6932. args: ["aBlock", "anotherBlock"],
  6933. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eself%20values%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  6934. messageSends: ["detect:ifNone:", "values"],
  6935. referencedClasses: []
  6936. }),
  6937. smalltalk.Dictionary);
  6938. smalltalk.addMethod(
  6939. unescape('_includes_'),
  6940. smalltalk.method({
  6941. selector: unescape('includes%3A'),
  6942. category: 'enumerating',
  6943. fn: function (anObject){
  6944. var self=this;
  6945. return smalltalk.send(smalltalk.send(self, "_values", []), "_includes_", [anObject]);
  6946. return self;},
  6947. args: ["anObject"],
  6948. source: unescape('includes%3A%20anObject%0A%09%5Eself%20values%20includes%3A%20anObject'),
  6949. messageSends: ["includes:", "values"],
  6950. referencedClasses: []
  6951. }),
  6952. smalltalk.Dictionary);
  6953. smalltalk.addMethod(
  6954. unescape('_removeKey_'),
  6955. smalltalk.method({
  6956. selector: unescape('removeKey%3A'),
  6957. category: 'adding/removing',
  6958. fn: function (aKey){
  6959. var self=this;
  6960. smalltalk.send(self, "_remove_", [aKey]);
  6961. return self;},
  6962. args: ["aKey"],
  6963. source: unescape('removeKey%3A%20aKey%0A%20%20%20%20self%20remove%3A%20aKey'),
  6964. messageSends: ["remove:"],
  6965. referencedClasses: []
  6966. }),
  6967. smalltalk.Dictionary);
  6968. smalltalk.addMethod(
  6969. unescape('_at_'),
  6970. smalltalk.method({
  6971. selector: unescape('at%3A'),
  6972. category: 'accessing',
  6973. fn: function (aKey){
  6974. var self=this;
  6975. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  6976. return self;},
  6977. args: ["aKey"],
  6978. source: unescape('at%3A%20aKey%0A%09%5Eself%20at%3A%20aKey%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  6979. messageSends: ["at:ifAbsent:", "errorNotFound"],
  6980. referencedClasses: []
  6981. }),
  6982. smalltalk.Dictionary);
  6983. smalltalk.addMethod(
  6984. unescape('_printString'),
  6985. smalltalk.method({
  6986. selector: unescape('printString'),
  6987. category: 'printing',
  6988. fn: function (){
  6989. var self=this;
  6990. 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")]);})]);
  6991. return self;},
  6992. args: [],
  6993. source: unescape('printString%0A%09%5EString%20streamContents%3A%20%5B%3AaStream%7C%20%20%0A%09%09aStream%20%0A%09%09%09nextPutAll%3A%20super%20printString%3B%0A%09%09%09nextPutAll%3A%20%27%28%27.%0A%09%09%09%09self%20associations%20%0A%09%09%09%09%09do%3A%20%5B%3AanAssociation%7C%20%20%0A%09%09%09%09%09%09aStream%20%0A%09%09%09%09%09%09%09nextPutAll%3A%20anAssociation%20key%20printString%3B%0A%09%09%09%09%09%09%09%09nextPutAll%3A%20%27%20-%3E%20%27%3B%0A%09%09%09%09%09%09%09%09nextPutAll%3A%20anAssociation%20value%20printString%5D%0A%09%09%09%09%09%09%09separatedBy%3A%20%5BaStream%20nextPutAll%3A%20%27%20%2C%20%27%5D.%0A%09%09%09%09%09%09aStream%20nextPutAll%3A%20%27%29%27%5D'),
  6994. messageSends: ["streamContents:", "nextPutAll:", "printString", "do:separatedBy:", "associations", "key", "value"],
  6995. referencedClasses: ["String"]
  6996. }),
  6997. smalltalk.Dictionary);
  6998. smalltalk.addMethod(
  6999. unescape('_storeOn_'),
  7000. smalltalk.method({
  7001. selector: unescape('storeOn%3A'),
  7002. category: 'printing',
  7003. fn: function (aStream){
  7004. var self=this;
  7005. smalltalk.send(aStream, "_nextPutAll_", [unescape("%23%7B")]);
  7006. smalltalk.send(smalltalk.send(self, "_associations", []), "_do_separatedBy_", [(function(each){return smalltalk.send(each, "_storeOn_", [aStream]);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [". "]);})]);
  7007. smalltalk.send(aStream, "_nextPutAll_", [unescape("%7D")]);
  7008. return self;},
  7009. args: ["aStream"],
  7010. source: unescape('storeOn%3A%20aStream%0A%09aStream%20nextPutAll%3A%20%27%23%7B%27.%0A%09self%20associations%0A%09%09do%3A%20%5B%3Aeach%20%7C%20each%20storeOn%3A%20aStream%5D%0A%09%09separatedBy%3A%20%5B%20aStream%20nextPutAll%3A%20%27.%20%27%5D.%0A%09aStream%20nextPutAll%3A%20%27%7D%27'),
  7011. messageSends: ["nextPutAll:", "do:separatedBy:", "associations", "storeOn:"],
  7012. referencedClasses: []
  7013. }),
  7014. smalltalk.Dictionary);
  7015. smalltalk.addMethod(
  7016. unescape('_includesKey_'),
  7017. smalltalk.method({
  7018. selector: unescape('includesKey%3A'),
  7019. category: 'testing',
  7020. fn: function (aKey){
  7021. var self=this;
  7022. return self.hasOwnProperty(aKey);
  7023. return self;},
  7024. args: ["aKey"],
  7025. source: unescape('includesKey%3A%20aKey%0A%09%3Creturn%20self.hasOwnProperty%28aKey%29%3E'),
  7026. messageSends: [],
  7027. referencedClasses: []
  7028. }),
  7029. smalltalk.Dictionary);
  7030. smalltalk.addMethod(
  7031. unescape('_remove_ifAbsent_'),
  7032. smalltalk.method({
  7033. selector: unescape('remove%3AifAbsent%3A'),
  7034. category: 'adding/removing',
  7035. fn: function (aKey, aBlock){
  7036. var self=this;
  7037. return smalltalk.send(self, "_removeKey_ifAbsent_", [aKey, aBlock]);
  7038. return self;},
  7039. args: ["aKey", "aBlock"],
  7040. source: unescape('remove%3A%20aKey%20ifAbsent%3A%20aBlock%0A%20%20%20%20%5Eself%20removeKey%3A%20aKey%20ifAbsent%3A%20aBlock'),
  7041. messageSends: ["removeKey:ifAbsent:"],
  7042. referencedClasses: []
  7043. }),
  7044. smalltalk.Dictionary);
  7045. smalltalk.addMethod(
  7046. unescape('_removeKey_ifAbsent_'),
  7047. smalltalk.method({
  7048. selector: unescape('removeKey%3AifAbsent%3A'),
  7049. category: 'adding/removing',
  7050. fn: function (aKey, aBlock){
  7051. var self=this;
  7052. return ((($receiver = smalltalk.send(self, "_includesKey_", [aKey])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(aBlock, "_value", []);})() : (function(){return smalltalk.send(self, "_basicDelete_", [aKey]);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(aBlock, "_value", []);}), (function(){return smalltalk.send(self, "_basicDelete_", [aKey]);})]));
  7053. return self;},
  7054. args: ["aKey", "aBlock"],
  7055. source: unescape('removeKey%3A%20aKey%20ifAbsent%3A%20aBlock%0A%09%5E%28self%20includesKey%3A%20aKey%29%20%0A%09%09ifFalse%3A%20%5BaBlock%20value%5D%0A%09%09ifTrue%3A%20%5Bself%20basicDelete%3A%20aKey%5D'),
  7056. messageSends: ["ifFalse:ifTrue:", "includesKey:", "value", "basicDelete:"],
  7057. referencedClasses: []
  7058. }),
  7059. smalltalk.Dictionary);
  7060. smalltalk.addMethod(
  7061. unescape('_deepCopy'),
  7062. smalltalk.method({
  7063. selector: unescape('deepCopy'),
  7064. category: 'copying',
  7065. fn: function (){
  7066. var self=this;
  7067. var copy=nil;
  7068. copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  7069. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(copy, "_at_put_", [smalltalk.send(each, "_key", []), smalltalk.send(smalltalk.send(each, "_value", []), "_deepCopy", [])]);})]);
  7070. return copy;
  7071. return self;},
  7072. args: [],
  7073. source: unescape('deepCopy%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%20deepCopy%5D.%0A%09%5Ecopy'),
  7074. messageSends: ["new", "class", "associationsDo:", "at:put:", "key", "deepCopy", "value"],
  7075. referencedClasses: []
  7076. }),
  7077. smalltalk.Dictionary);
  7078. smalltalk.addMethod(
  7079. unescape('_fromPairs_'),
  7080. smalltalk.method({
  7081. selector: unescape('fromPairs%3A'),
  7082. category: 'instance creation',
  7083. fn: function (aCollection){
  7084. var self=this;
  7085. var dict=nil;
  7086. dict=smalltalk.send(self, "_new", []);
  7087. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(dict, "_add_", [each]);})]);
  7088. return dict;
  7089. return self;},
  7090. args: ["aCollection"],
  7091. 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'),
  7092. messageSends: ["new", "do:", "add:"],
  7093. referencedClasses: []
  7094. }),
  7095. smalltalk.Dictionary.klass);
  7096. smalltalk.addClass('ClassBuilder', smalltalk.Object, [], 'Kernel');
  7097. smalltalk.addMethod(
  7098. unescape('_superclass_subclass_'),
  7099. smalltalk.method({
  7100. selector: unescape('superclass%3Asubclass%3A'),
  7101. category: 'class creation',
  7102. fn: function (aClass, aString){
  7103. var self=this;
  7104. return smalltalk.send(self, "_superclass_subclass_instanceVariableNames_package_", [aClass, aString, "", nil]);
  7105. return self;},
  7106. args: ["aClass", "aString"],
  7107. 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'),
  7108. messageSends: ["superclass:subclass:instanceVariableNames:package:"],
  7109. referencedClasses: []
  7110. }),
  7111. smalltalk.ClassBuilder);
  7112. smalltalk.addMethod(
  7113. unescape('_class_instanceVariableNames_'),
  7114. smalltalk.method({
  7115. selector: unescape('class%3AinstanceVariableNames%3A'),
  7116. category: 'class creation',
  7117. fn: function (aClass, aString){
  7118. var self=this;
  7119. ((($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"])]);})]));
  7120. smalltalk.send(aClass, "_basicAt_put_", ["iVarNames", smalltalk.send(self, "_instanceVariableNamesFor_", [aString])]);
  7121. smalltalk.send(self, "_setupClass_", [aClass]);
  7122. return self;},
  7123. args: ["aClass", "aString"],
  7124. 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'),
  7125. messageSends: ["ifFalse:", "isMetaclass", "error:", unescape("%2C"), "name", "basicAt:put:", "instanceVariableNamesFor:", "setupClass:"],
  7126. referencedClasses: []
  7127. }),
  7128. smalltalk.ClassBuilder);
  7129. smalltalk.addMethod(
  7130. unescape('_instanceVariableNamesFor_'),
  7131. smalltalk.method({
  7132. selector: unescape('instanceVariableNamesFor%3A'),
  7133. category: 'private',
  7134. fn: function (aString){
  7135. var self=this;
  7136. return smalltalk.send(smalltalk.send(aString, "_tokenize_", [" "]), "_reject_", [(function(each){return smalltalk.send(each, "_isEmpty", []);})]);
  7137. return self;},
  7138. args: ["aString"],
  7139. 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'),
  7140. messageSends: ["reject:", "tokenize:", "isEmpty"],
  7141. referencedClasses: []
  7142. }),
  7143. smalltalk.ClassBuilder);
  7144. smalltalk.addMethod(
  7145. unescape('_addSubclassOf_named_instanceVariableNames_'),
  7146. smalltalk.method({
  7147. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3A'),
  7148. category: 'private',
  7149. fn: function (aClass, aString, aCollection){
  7150. var self=this;
  7151. smalltalk.addClass(aString, aClass, aCollection);
  7152. return smalltalk[aString];
  7153. return self;},
  7154. args: ["aClass", "aString", "aCollection"],
  7155. 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'),
  7156. messageSends: [],
  7157. referencedClasses: []
  7158. }),
  7159. smalltalk.ClassBuilder);
  7160. smalltalk.addMethod(
  7161. unescape('_setupClass_'),
  7162. smalltalk.method({
  7163. selector: unescape('setupClass%3A'),
  7164. category: 'private',
  7165. fn: function (aClass){
  7166. var self=this;
  7167. smalltalk.init(aClass);;
  7168. return self;},
  7169. args: ["aClass"],
  7170. source: unescape('setupClass%3A%20aClass%0A%09%3Csmalltalk.init%28aClass%29%3B%3E'),
  7171. messageSends: [],
  7172. referencedClasses: []
  7173. }),
  7174. smalltalk.ClassBuilder);
  7175. smalltalk.addMethod(
  7176. unescape('_superclass_subclass_instanceVariableNames_package_'),
  7177. smalltalk.method({
  7178. selector: unescape('superclass%3Asubclass%3AinstanceVariableNames%3Apackage%3A'),
  7179. category: 'class creation',
  7180. fn: function (aClass, aString, aString2, aString3){
  7181. var self=this;
  7182. var newClass=nil;
  7183. newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [aClass, aString, smalltalk.send(self, "_instanceVariableNamesFor_", [aString2]), (($receiver = aString3) == nil || $receiver == undefined) ? (function(){return "unclassified";})() : $receiver]);
  7184. smalltalk.send(self, "_setupClass_", [newClass]);
  7185. return newClass;
  7186. return self;},
  7187. args: ["aClass", "aString", "aString2", "aString3"],
  7188. 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'),
  7189. messageSends: ["addSubclassOf:named:instanceVariableNames:package:", "instanceVariableNamesFor:", "ifNil:", "setupClass:"],
  7190. referencedClasses: []
  7191. }),
  7192. smalltalk.ClassBuilder);
  7193. smalltalk.addMethod(
  7194. unescape('_addSubclassOf_named_instanceVariableNames_package_'),
  7195. smalltalk.method({
  7196. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3Apackage%3A'),
  7197. category: 'private',
  7198. fn: function (aClass, aString, aCollection, packageName){
  7199. var self=this;
  7200. smalltalk.addClass(aString, aClass, aCollection, packageName);
  7201. return smalltalk[aString];
  7202. return self;},
  7203. args: ["aClass", "aString", "aCollection", "packageName"],
  7204. 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'),
  7205. messageSends: [],
  7206. referencedClasses: []
  7207. }),
  7208. smalltalk.ClassBuilder);
  7209. smalltalk.addMethod(
  7210. unescape('_copyClass_named_'),
  7211. smalltalk.method({
  7212. selector: unescape('copyClass%3Anamed%3A'),
  7213. category: 'private',
  7214. fn: function (aClass, aString){
  7215. var self=this;
  7216. var newClass=nil;
  7217. newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [smalltalk.send(aClass, "_superclass", []), aString, smalltalk.send(aClass, "_instanceVariableNames", []), smalltalk.send(smalltalk.send(aClass, "_package", []), "_name", [])]);
  7218. smalltalk.send(self, "_setupClass_", [newClass]);
  7219. smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){smalltalk.send(newClass, "_addCompiledMethod_", [smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [smalltalk.send(each, "_source", []), newClass])]);return smalltalk.send(smalltalk.send(smalltalk.send(newClass, "_methodDictionary", []), "_at_", [smalltalk.send(each, "_selector", [])]), "_category_", [smalltalk.send(each, "_category", [])]);})]);
  7220. smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_methodDictionary", []), "_values", []), "_do_", [(function(each){smalltalk.send(smalltalk.send(newClass, "_class", []), "_addCompiledMethod_", [smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [smalltalk.send(each, "_source", []), smalltalk.send(newClass, "_class", [])])]);return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(newClass, "_class", []), "_methodDictionary", []), "_at_", [smalltalk.send(each, "_selector", [])]), "_category_", [smalltalk.send(each, "_category", [])]);})]);
  7221. smalltalk.send(self, "_setupClass_", [newClass]);
  7222. return newClass;
  7223. return self;},
  7224. args: ["aClass", "aString"],
  7225. source: unescape('copyClass%3A%20aClass%20named%3A%20aString%0A%09%7C%20newClass%20%7C%0A%0A%09newClass%20%3A%3D%20self%20%0A%09%09addSubclassOf%3A%20aClass%20superclass%0A%09%09named%3A%20aString%20%0A%09%09instanceVariableNames%3A%20aClass%20instanceVariableNames%20%0A%09%09package%3A%20aClass%20package%20name.%0A%0A%09self%20setupClass%3A%20newClass.%0A%0A%09aClass%20methodDictionary%20values%20do%3A%20%5B%3Aeach%20%7C%0A%09%09newClass%20addCompiledMethod%3A%20%28Compiler%20new%20load%3A%20each%20source%20forClass%3A%20newClass%29.%0A%09%09%28newClass%20methodDictionary%20at%3A%20each%20selector%29%20category%3A%20each%20category%5D.%0A%0A%09aClass%20class%20methodDictionary%20values%20do%3A%20%5B%3Aeach%20%7C%0A%09%09newClass%20class%20addCompiledMethod%3A%20%28Compiler%20new%20load%3A%20each%20source%20forClass%3A%20newClass%20class%29.%0A%09%09%28newClass%20class%20methodDictionary%20at%3A%20each%20selector%29%20category%3A%20each%20category%5D.%0A%0A%09self%20setupClass%3A%20newClass.%0A%09%5EnewClass'),
  7226. messageSends: ["addSubclassOf:named:instanceVariableNames:package:", "superclass", "instanceVariableNames", "name", "package", "setupClass:", "do:", "values", "methodDictionary", "addCompiledMethod:", "load:forClass:", "new", "source", "category:", "at:", "selector", "category", "class"],
  7227. referencedClasses: ["Compiler"]
  7228. }),
  7229. smalltalk.ClassBuilder);
  7230. smalltalk.addClass('ClassCategoryReader', smalltalk.Object, ['class', 'category', 'chunkParser'], 'Kernel');
  7231. smalltalk.addMethod(
  7232. unescape('_initialize'),
  7233. smalltalk.method({
  7234. selector: unescape('initialize'),
  7235. category: 'initialization',
  7236. fn: function (){
  7237. var self=this;
  7238. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  7239. self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []);
  7240. return self;},
  7241. args: [],
  7242. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  7243. messageSends: ["initialize", "new"],
  7244. referencedClasses: ["ChunkParser"]
  7245. }),
  7246. smalltalk.ClassCategoryReader);
  7247. smalltalk.addMethod(
  7248. unescape('_class_category_'),
  7249. smalltalk.method({
  7250. selector: unescape('class%3Acategory%3A'),
  7251. category: 'accessing',
  7252. fn: function (aClass, aString){
  7253. var self=this;
  7254. self['@class']=aClass;
  7255. self['@category']=aString;
  7256. return self;},
  7257. args: ["aClass", "aString"],
  7258. source: unescape('class%3A%20aClass%20category%3A%20aString%0A%09class%20%3A%3D%20aClass.%0A%09category%20%3A%3D%20aString'),
  7259. messageSends: [],
  7260. referencedClasses: []
  7261. }),
  7262. smalltalk.ClassCategoryReader);
  7263. smalltalk.addMethod(
  7264. unescape('_scanFrom_'),
  7265. smalltalk.method({
  7266. selector: unescape('scanFrom%3A'),
  7267. category: 'fileIn',
  7268. fn: function (aChunkParser){
  7269. var self=this;
  7270. var chunk=nil;
  7271. (function(){while(!(function(){chunk=smalltalk.send(aChunkParser, "_nextChunk", []);return smalltalk.send(chunk, "_isEmpty", []);})()) {(function(){return smalltalk.send(self, "_compileMethod_", [chunk]);})()}})();
  7272. return self;},
  7273. args: ["aChunkParser"],
  7274. 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'),
  7275. messageSends: ["whileFalse:", "nextChunk", "isEmpty", "compileMethod:"],
  7276. referencedClasses: []
  7277. }),
  7278. smalltalk.ClassCategoryReader);
  7279. smalltalk.addMethod(
  7280. unescape('_compileMethod_'),
  7281. smalltalk.method({
  7282. selector: unescape('compileMethod%3A'),
  7283. category: 'private',
  7284. fn: function (aString){
  7285. var self=this;
  7286. var method=nil;
  7287. method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self['@class']]);
  7288. smalltalk.send(method, "_category_", [self['@category']]);
  7289. smalltalk.send(self['@class'], "_addCompiledMethod_", [method]);
  7290. return self;},
  7291. args: ["aString"],
  7292. 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'),
  7293. messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
  7294. referencedClasses: ["Compiler"]
  7295. }),
  7296. smalltalk.ClassCategoryReader);
  7297. smalltalk.addClass('Stream', smalltalk.Object, ['collection', 'position', 'streamSize'], 'Kernel');
  7298. smalltalk.addMethod(
  7299. unescape('_collection'),
  7300. smalltalk.method({
  7301. selector: unescape('collection'),
  7302. category: 'accessing',
  7303. fn: function (){
  7304. var self=this;
  7305. return self['@collection'];
  7306. return self;},
  7307. args: [],
  7308. source: unescape('collection%0A%09%5Ecollection'),
  7309. messageSends: [],
  7310. referencedClasses: []
  7311. }),
  7312. smalltalk.Stream);
  7313. smalltalk.addMethod(
  7314. unescape('_setCollection_'),
  7315. smalltalk.method({
  7316. selector: unescape('setCollection%3A'),
  7317. category: 'accessing',
  7318. fn: function (aCollection){
  7319. var self=this;
  7320. self['@collection']=aCollection;
  7321. return self;},
  7322. args: ["aCollection"],
  7323. source: unescape('setCollection%3A%20aCollection%0A%09collection%20%3A%3D%20aCollection'),
  7324. messageSends: [],
  7325. referencedClasses: []
  7326. }),
  7327. smalltalk.Stream);
  7328. smalltalk.addMethod(
  7329. unescape('_position'),
  7330. smalltalk.method({
  7331. selector: unescape('position'),
  7332. category: 'accessing',
  7333. fn: function (){
  7334. var self=this;
  7335. return (($receiver = self['@position']) == nil || $receiver == undefined) ? (function(){return self['@position']=(0);})() : $receiver;
  7336. return self;},
  7337. args: [],
  7338. source: unescape('position%0A%09%5Eposition%20ifNil%3A%20%5Bposition%20%3A%3D%200%5D'),
  7339. messageSends: ["ifNil:"],
  7340. referencedClasses: []
  7341. }),
  7342. smalltalk.Stream);
  7343. smalltalk.addMethod(
  7344. unescape('_position_'),
  7345. smalltalk.method({
  7346. selector: unescape('position%3A'),
  7347. category: 'accessing',
  7348. fn: function (anInteger){
  7349. var self=this;
  7350. self['@position']=anInteger;
  7351. return self;},
  7352. args: ["anInteger"],
  7353. source: unescape('position%3A%20anInteger%0A%09position%20%3A%3D%20anInteger'),
  7354. messageSends: [],
  7355. referencedClasses: []
  7356. }),
  7357. smalltalk.Stream);
  7358. smalltalk.addMethod(
  7359. unescape('_streamSize'),
  7360. smalltalk.method({
  7361. selector: unescape('streamSize'),
  7362. category: 'accessing',
  7363. fn: function (){
  7364. var self=this;
  7365. return self['@streamSize'];
  7366. return self;},
  7367. args: [],
  7368. source: unescape('streamSize%0A%09%5EstreamSize'),
  7369. messageSends: [],
  7370. referencedClasses: []
  7371. }),
  7372. smalltalk.Stream);
  7373. smalltalk.addMethod(
  7374. unescape('_setStreamSize_'),
  7375. smalltalk.method({
  7376. selector: unescape('setStreamSize%3A'),
  7377. category: 'accessing',
  7378. fn: function (anInteger){
  7379. var self=this;
  7380. self['@streamSize']=anInteger;
  7381. return self;},
  7382. args: ["anInteger"],
  7383. source: unescape('setStreamSize%3A%20anInteger%0A%09streamSize%20%3A%3D%20anInteger'),
  7384. messageSends: [],
  7385. referencedClasses: []
  7386. }),
  7387. smalltalk.Stream);
  7388. smalltalk.addMethod(
  7389. unescape('_contents'),
  7390. smalltalk.method({
  7391. selector: unescape('contents'),
  7392. category: 'accessing',
  7393. fn: function (){
  7394. var self=this;
  7395. return smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_streamSize", [])]);
  7396. return self;},
  7397. args: [],
  7398. 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'),
  7399. messageSends: ["copyFrom:to:", "collection", "streamSize"],
  7400. referencedClasses: []
  7401. }),
  7402. smalltalk.Stream);
  7403. smalltalk.addMethod(
  7404. unescape('_size'),
  7405. smalltalk.method({
  7406. selector: unescape('size'),
  7407. category: 'accessing',
  7408. fn: function (){
  7409. var self=this;
  7410. return smalltalk.send(self, "_streamSize", []);
  7411. return self;},
  7412. args: [],
  7413. source: unescape('size%0A%09%5Eself%20streamSize'),
  7414. messageSends: ["streamSize"],
  7415. referencedClasses: []
  7416. }),
  7417. smalltalk.Stream);
  7418. smalltalk.addMethod(
  7419. unescape('_reset'),
  7420. smalltalk.method({
  7421. selector: unescape('reset'),
  7422. category: 'actions',
  7423. fn: function (){
  7424. var self=this;
  7425. smalltalk.send(self, "_position_", [(0)]);
  7426. return self;},
  7427. args: [],
  7428. source: unescape('reset%0A%09self%20position%3A%200'),
  7429. messageSends: ["position:"],
  7430. referencedClasses: []
  7431. }),
  7432. smalltalk.Stream);
  7433. smalltalk.addMethod(
  7434. unescape('_close'),
  7435. smalltalk.method({
  7436. selector: unescape('close'),
  7437. category: 'actions',
  7438. fn: function (){
  7439. var self=this;
  7440. return self;},
  7441. args: [],
  7442. source: unescape('close'),
  7443. messageSends: [],
  7444. referencedClasses: []
  7445. }),
  7446. smalltalk.Stream);
  7447. smalltalk.addMethod(
  7448. unescape('_flush'),
  7449. smalltalk.method({
  7450. selector: unescape('flush'),
  7451. category: 'actions',
  7452. fn: function (){
  7453. var self=this;
  7454. return self;},
  7455. args: [],
  7456. source: unescape('flush'),
  7457. messageSends: [],
  7458. referencedClasses: []
  7459. }),
  7460. smalltalk.Stream);
  7461. smalltalk.addMethod(
  7462. unescape('_resetContents'),
  7463. smalltalk.method({
  7464. selector: unescape('resetContents'),
  7465. category: 'actions',
  7466. fn: function (){
  7467. var self=this;
  7468. smalltalk.send(self, "_reset", []);
  7469. smalltalk.send(self, "_setStreamSize_", [(0)]);
  7470. return self;},
  7471. args: [],
  7472. source: unescape('resetContents%0A%09self%20reset.%0A%09self%20setStreamSize%3A%200'),
  7473. messageSends: ["reset", "setStreamSize:"],
  7474. referencedClasses: []
  7475. }),
  7476. smalltalk.Stream);
  7477. smalltalk.addMethod(
  7478. unescape('_do_'),
  7479. smalltalk.method({
  7480. selector: unescape('do%3A'),
  7481. category: 'enumerating',
  7482. fn: function (aBlock){
  7483. var self=this;
  7484. (function(){while(!(function(){return smalltalk.send(self, "_atEnd", []);})()) {(function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_next", [])]);})()}})();
  7485. return self;},
  7486. args: ["aBlock"],
  7487. source: unescape('do%3A%20aBlock%0A%09%5Bself%20atEnd%5D%20whileFalse%3A%20%5BaBlock%20value%3A%20self%20next%5D'),
  7488. messageSends: ["whileFalse:", "atEnd", "value:", "next"],
  7489. referencedClasses: []
  7490. }),
  7491. smalltalk.Stream);
  7492. smalltalk.addMethod(
  7493. unescape('_setToEnd'),
  7494. smalltalk.method({
  7495. selector: unescape('setToEnd'),
  7496. category: 'positioning',
  7497. fn: function (){
  7498. var self=this;
  7499. smalltalk.send(self, "_position_", [smalltalk.send(self, "_size", [])]);
  7500. return self;},
  7501. args: [],
  7502. source: unescape('setToEnd%0A%09self%20position%3A%20self%20size'),
  7503. messageSends: ["position:", "size"],
  7504. referencedClasses: []
  7505. }),
  7506. smalltalk.Stream);
  7507. smalltalk.addMethod(
  7508. unescape('_skip_'),
  7509. smalltalk.method({
  7510. selector: unescape('skip%3A'),
  7511. category: 'positioning',
  7512. fn: function (anInteger){
  7513. var self=this;
  7514. 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)])]);
  7515. return self;},
  7516. args: ["anInteger"],
  7517. source: unescape('skip%3A%20anInteger%0A%09self%20position%3A%20%28%28self%20position%20+%20anInteger%29%20min%3A%20self%20size%20max%3A%200%29'),
  7518. messageSends: ["position:", "min:max:", unescape("+"), "position", "size"],
  7519. referencedClasses: []
  7520. }),
  7521. smalltalk.Stream);
  7522. smalltalk.addMethod(
  7523. unescape('_next'),
  7524. smalltalk.method({
  7525. selector: unescape('next'),
  7526. category: 'reading',
  7527. fn: function (){
  7528. var self=this;
  7529. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
  7530. return smalltalk.send(self['@collection'], "_at_", [smalltalk.send(self, "_position", [])]);
  7531. return self;},
  7532. args: [],
  7533. source: unescape('next%0A%09self%20position%3A%20self%20position%20+%201.%20%0A%09%5Ecollection%20at%3A%20self%20position'),
  7534. messageSends: ["position:", unescape("+"), "position", "at:"],
  7535. referencedClasses: []
  7536. }),
  7537. smalltalk.Stream);
  7538. smalltalk.addMethod(
  7539. unescape('_next_'),
  7540. smalltalk.method({
  7541. selector: unescape('next%3A'),
  7542. category: 'reading',
  7543. fn: function (anInteger){
  7544. var self=this;
  7545. var tempCollection=nil;
  7546. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  7547. 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", [])]);})]));})]);
  7548. return tempCollection;
  7549. return self;},
  7550. args: ["anInteger"],
  7551. 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'),
  7552. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", "add:", "next"],
  7553. referencedClasses: []
  7554. }),
  7555. smalltalk.Stream);
  7556. smalltalk.addMethod(
  7557. unescape('_nextPut_'),
  7558. smalltalk.method({
  7559. selector: unescape('nextPut%3A'),
  7560. category: 'writing',
  7561. fn: function (anObject){
  7562. var self=this;
  7563. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
  7564. smalltalk.send(smalltalk.send(self, "_collection", []), "_at_put_", [smalltalk.send(self, "_position", []), anObject]);
  7565. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  7566. return self;},
  7567. args: ["anObject"],
  7568. 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'),
  7569. messageSends: ["position:", unescape("+"), "position", "at:put:", "collection", "setStreamSize:", "max:", "streamSize"],
  7570. referencedClasses: []
  7571. }),
  7572. smalltalk.Stream);
  7573. smalltalk.addMethod(
  7574. unescape('_nextPutAll_'),
  7575. smalltalk.method({
  7576. selector: unescape('nextPutAll%3A'),
  7577. category: 'writing',
  7578. fn: function (aCollection){
  7579. var self=this;
  7580. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_nextPut_", [each]);})]);
  7581. return self;},
  7582. args: ["aCollection"],
  7583. source: unescape('nextPutAll%3A%20aCollection%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20self%20nextPut%3A%20each%5D'),
  7584. messageSends: ["do:", "nextPut:"],
  7585. referencedClasses: []
  7586. }),
  7587. smalltalk.Stream);
  7588. smalltalk.addMethod(
  7589. unescape('_peek'),
  7590. smalltalk.method({
  7591. selector: unescape('peek'),
  7592. category: 'reading',
  7593. fn: function (){
  7594. var self=this;
  7595. 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)]))]);})]));
  7596. return self;},
  7597. args: [],
  7598. 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'),
  7599. messageSends: ["ifFalse:", "atEnd", "at:", "collection", unescape("+"), "position"],
  7600. referencedClasses: []
  7601. }),
  7602. smalltalk.Stream);
  7603. smalltalk.addMethod(
  7604. unescape('_atEnd'),
  7605. smalltalk.method({
  7606. selector: unescape('atEnd'),
  7607. category: 'testing',
  7608. fn: function (){
  7609. var self=this;
  7610. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [smalltalk.send(self, "_size", [])]);
  7611. return self;},
  7612. args: [],
  7613. source: unescape('atEnd%0A%09%5Eself%20position%20%3D%20self%20size'),
  7614. messageSends: [unescape("%3D"), "position", "size"],
  7615. referencedClasses: []
  7616. }),
  7617. smalltalk.Stream);
  7618. smalltalk.addMethod(
  7619. unescape('_atStart'),
  7620. smalltalk.method({
  7621. selector: unescape('atStart'),
  7622. category: 'testing',
  7623. fn: function (){
  7624. var self=this;
  7625. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [(0)]);
  7626. return self;},
  7627. args: [],
  7628. source: unescape('atStart%0A%09%5Eself%20position%20%3D%200'),
  7629. messageSends: [unescape("%3D"), "position"],
  7630. referencedClasses: []
  7631. }),
  7632. smalltalk.Stream);
  7633. smalltalk.addMethod(
  7634. unescape('_isEmpty'),
  7635. smalltalk.method({
  7636. selector: unescape('isEmpty'),
  7637. category: 'testing',
  7638. fn: function (){
  7639. var self=this;
  7640. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  7641. return self;},
  7642. args: [],
  7643. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  7644. messageSends: [unescape("%3D"), "size"],
  7645. referencedClasses: []
  7646. }),
  7647. smalltalk.Stream);
  7648. smalltalk.addMethod(
  7649. unescape('_on_'),
  7650. smalltalk.method({
  7651. selector: unescape('on%3A'),
  7652. category: 'instance creation',
  7653. fn: function (aCollection){
  7654. var self=this;
  7655. 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", []));
  7656. return self;},
  7657. args: ["aCollection"],
  7658. 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'),
  7659. messageSends: ["setCollection:", "setStreamSize:", "size", "yourself", "new"],
  7660. referencedClasses: []
  7661. }),
  7662. smalltalk.Stream.klass);
  7663. smalltalk.addClass('StringStream', smalltalk.Stream, [], 'Kernel');
  7664. smalltalk.addMethod(
  7665. unescape('_next_'),
  7666. smalltalk.method({
  7667. selector: unescape('next%3A'),
  7668. category: 'reading',
  7669. fn: function (anInteger){
  7670. var self=this;
  7671. var tempCollection=nil;
  7672. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  7673. 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", [])]);})]));})]);
  7674. return tempCollection;
  7675. return self;},
  7676. args: ["anInteger"],
  7677. 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'),
  7678. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", unescape("%2C"), "next"],
  7679. referencedClasses: []
  7680. }),
  7681. smalltalk.StringStream);
  7682. smalltalk.addMethod(
  7683. unescape('_nextPut_'),
  7684. smalltalk.method({
  7685. selector: unescape('nextPut%3A'),
  7686. category: 'writing',
  7687. fn: function (aString){
  7688. var self=this;
  7689. smalltalk.send(self, "_nextPutAll_", [aString]);
  7690. return self;},
  7691. args: ["aString"],
  7692. source: unescape('nextPut%3A%20aString%0A%09self%20nextPutAll%3A%20aString'),
  7693. messageSends: ["nextPutAll:"],
  7694. referencedClasses: []
  7695. }),
  7696. smalltalk.StringStream);
  7697. smalltalk.addMethod(
  7698. unescape('_nextPutAll_'),
  7699. smalltalk.method({
  7700. selector: unescape('nextPutAll%3A'),
  7701. category: 'writing',
  7702. fn: function (aString){
  7703. var self=this;
  7704. 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", [])])])]);
  7705. 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", [])]))]);
  7706. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  7707. return self;},
  7708. args: ["aString"],
  7709. 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'),
  7710. messageSends: ["setCollection:", unescape("%2C"), "copyFrom:to:", "collection", "position", unescape("+"), "size", "position:", "setStreamSize:", "max:", "streamSize"],
  7711. referencedClasses: []
  7712. }),
  7713. smalltalk.StringStream);
  7714. smalltalk.addMethod(
  7715. unescape('_cr'),
  7716. smalltalk.method({
  7717. selector: unescape('cr'),
  7718. category: 'writing',
  7719. fn: function (){
  7720. var self=this;
  7721. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  7722. return self;},
  7723. args: [],
  7724. source: unescape('cr%0A%09%5Eself%20nextPutAll%3A%20String%20cr'),
  7725. messageSends: ["nextPutAll:", "cr"],
  7726. referencedClasses: ["String"]
  7727. }),
  7728. smalltalk.StringStream);
  7729. smalltalk.addMethod(
  7730. unescape('_crlf'),
  7731. smalltalk.method({
  7732. selector: unescape('crlf'),
  7733. category: 'writing',
  7734. fn: function (){
  7735. var self=this;
  7736. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_crlf", [])]);
  7737. return self;},
  7738. args: [],
  7739. source: unescape('crlf%0A%09%5Eself%20nextPutAll%3A%20String%20crlf'),
  7740. messageSends: ["nextPutAll:", "crlf"],
  7741. referencedClasses: ["String"]
  7742. }),
  7743. smalltalk.StringStream);
  7744. smalltalk.addMethod(
  7745. unescape('_lf'),
  7746. smalltalk.method({
  7747. selector: unescape('lf'),
  7748. category: 'writing',
  7749. fn: function (){
  7750. var self=this;
  7751. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_lf", [])]);
  7752. return self;},
  7753. args: [],
  7754. source: unescape('lf%0A%09%5Eself%20nextPutAll%3A%20String%20lf'),
  7755. messageSends: ["nextPutAll:", "lf"],
  7756. referencedClasses: ["String"]
  7757. }),
  7758. smalltalk.StringStream);
  7759. smalltalk.addMethod(
  7760. unescape('_space'),
  7761. smalltalk.method({
  7762. selector: unescape('space'),
  7763. category: 'writing',
  7764. fn: function (){
  7765. var self=this;
  7766. smalltalk.send(self, "_nextPut_", [" "]);
  7767. return self;},
  7768. args: [],
  7769. source: unescape('space%0A%09self%20nextPut%3A%20%27%20%27'),
  7770. messageSends: ["nextPut:"],
  7771. referencedClasses: []
  7772. }),
  7773. smalltalk.StringStream);
  7774. smalltalk.addClass('ClassCommentReader', smalltalk.Object, ['class', 'chunkParser'], 'Kernel');
  7775. smalltalk.addMethod(
  7776. unescape('_class_'),
  7777. smalltalk.method({
  7778. selector: unescape('class%3A'),
  7779. category: 'accessing',
  7780. fn: function (aClass){
  7781. var self=this;
  7782. self['@class']=aClass;
  7783. return self;},
  7784. args: ["aClass"],
  7785. source: unescape('class%3A%20aClass%0A%09class%20%3A%3D%20aClass'),
  7786. messageSends: [],
  7787. referencedClasses: []
  7788. }),
  7789. smalltalk.ClassCommentReader);
  7790. smalltalk.addMethod(
  7791. unescape('_scanFrom_'),
  7792. smalltalk.method({
  7793. selector: unescape('scanFrom%3A'),
  7794. category: 'fileIn',
  7795. fn: function (aChunkParser){
  7796. var self=this;
  7797. var chunk=nil;
  7798. chunk=smalltalk.send(aChunkParser, "_nextChunk", []);
  7799. ((($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]);})]));
  7800. return self;},
  7801. args: ["aChunkParser"],
  7802. 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.'),
  7803. messageSends: ["nextChunk", "ifFalse:", "isEmpty", "setComment:"],
  7804. referencedClasses: []
  7805. }),
  7806. smalltalk.ClassCommentReader);
  7807. smalltalk.addMethod(
  7808. unescape('_initialize'),
  7809. smalltalk.method({
  7810. selector: unescape('initialize'),
  7811. category: 'initialization',
  7812. fn: function (){
  7813. var self=this;
  7814. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  7815. self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []);
  7816. return self;},
  7817. args: [],
  7818. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  7819. messageSends: ["initialize", "new"],
  7820. referencedClasses: ["ChunkParser"]
  7821. }),
  7822. smalltalk.ClassCommentReader);
  7823. smalltalk.addMethod(
  7824. unescape('_setComment_'),
  7825. smalltalk.method({
  7826. selector: unescape('setComment%3A'),
  7827. category: 'private',
  7828. fn: function (aString){
  7829. var self=this;
  7830. smalltalk.send(self['@class'], "_comment_", [aString]);
  7831. return self;},
  7832. args: ["aString"],
  7833. source: unescape('setComment%3A%20aString%0A%20%20%20%20class%20comment%3A%20aString'),
  7834. messageSends: ["comment:"],
  7835. referencedClasses: []
  7836. }),
  7837. smalltalk.ClassCommentReader);
  7838. smalltalk.addClass('Random', smalltalk.Object, [], 'Kernel');
  7839. smalltalk.addMethod(
  7840. unescape('_next'),
  7841. smalltalk.method({
  7842. selector: unescape('next'),
  7843. category: 'accessing',
  7844. fn: function (){
  7845. var self=this;
  7846. return Math.random();
  7847. return self;},
  7848. args: [],
  7849. source: unescape('next%0A%09%3Creturn%20Math.random%28%29%3E'),
  7850. messageSends: [],
  7851. referencedClasses: []
  7852. }),
  7853. smalltalk.Random);
  7854. smalltalk.addMethod(
  7855. unescape('_next_'),
  7856. smalltalk.method({
  7857. selector: unescape('next%3A'),
  7858. category: 'accessing',
  7859. fn: function (anInteger){
  7860. var self=this;
  7861. return smalltalk.send(smalltalk.send((1), "_to_", [anInteger]), "_collect_", [(function(each){return smalltalk.send(self, "_next", []);})]);
  7862. return self;},
  7863. args: ["anInteger"],
  7864. 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'),
  7865. messageSends: ["collect:", "to:", "next"],
  7866. referencedClasses: []
  7867. }),
  7868. smalltalk.Random);
  7869. smalltalk.addClass('Point', smalltalk.Object, ['x', 'y'], 'Kernel');
  7870. smalltalk.addMethod(
  7871. unescape('_x'),
  7872. smalltalk.method({
  7873. selector: unescape('x'),
  7874. category: 'accessing',
  7875. fn: function (){
  7876. var self=this;
  7877. return self['@x'];
  7878. return self;},
  7879. args: [],
  7880. source: unescape('x%0A%09%5Ex'),
  7881. messageSends: [],
  7882. referencedClasses: []
  7883. }),
  7884. smalltalk.Point);
  7885. smalltalk.addMethod(
  7886. unescape('_y'),
  7887. smalltalk.method({
  7888. selector: unescape('y'),
  7889. category: 'accessing',
  7890. fn: function (){
  7891. var self=this;
  7892. return self['@y'];
  7893. return self;},
  7894. args: [],
  7895. source: unescape('y%0A%09%5Ey'),
  7896. messageSends: [],
  7897. referencedClasses: []
  7898. }),
  7899. smalltalk.Point);
  7900. smalltalk.addMethod(
  7901. unescape('_y_'),
  7902. smalltalk.method({
  7903. selector: unescape('y%3A'),
  7904. category: 'accessing',
  7905. fn: function (aNumber){
  7906. var self=this;
  7907. self['@y']=aNumber;
  7908. return self;},
  7909. args: ["aNumber"],
  7910. source: unescape('y%3A%20aNumber%0A%09y%20%3A%3D%20aNumber'),
  7911. messageSends: [],
  7912. referencedClasses: []
  7913. }),
  7914. smalltalk.Point);
  7915. smalltalk.addMethod(
  7916. unescape('_x_'),
  7917. smalltalk.method({
  7918. selector: unescape('x%3A'),
  7919. category: 'accessing',
  7920. fn: function (aNumber){
  7921. var self=this;
  7922. self['@x']=aNumber;
  7923. return self;},
  7924. args: ["aNumber"],
  7925. source: unescape('x%3A%20aNumber%0A%09x%20%3A%3D%20aNumber'),
  7926. messageSends: [],
  7927. referencedClasses: []
  7928. }),
  7929. smalltalk.Point);
  7930. smalltalk.addMethod(
  7931. unescape('__star'),
  7932. smalltalk.method({
  7933. selector: unescape('*'),
  7934. category: 'arithmetic',
  7935. fn: function (aPoint){
  7936. var self=this;
  7937. 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", [])]))]);
  7938. return self;},
  7939. args: ["aPoint"],
  7940. source: unescape('*%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20*%20aPoint%20asPoint%20x%20y%3A%20self%20y%20*%20aPoint%20asPoint%20y'),
  7941. messageSends: ["x:y:", unescape("*"), "x", "asPoint", "y"],
  7942. referencedClasses: ["Point"]
  7943. }),
  7944. smalltalk.Point);
  7945. smalltalk.addMethod(
  7946. unescape('__plus'),
  7947. smalltalk.method({
  7948. selector: unescape('+'),
  7949. category: 'arithmetic',
  7950. fn: function (aPoint){
  7951. var self=this;
  7952. 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", [])]))]);
  7953. return self;},
  7954. args: ["aPoint"],
  7955. source: unescape('+%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20+%20aPoint%20asPoint%20x%20y%3A%20self%20y%20+%20aPoint%20asPoint%20y'),
  7956. messageSends: ["x:y:", unescape("+"), "x", "asPoint", "y"],
  7957. referencedClasses: ["Point"]
  7958. }),
  7959. smalltalk.Point);
  7960. smalltalk.addMethod(
  7961. unescape('__minus'),
  7962. smalltalk.method({
  7963. selector: unescape('-'),
  7964. category: 'arithmetic',
  7965. fn: function (aPoint){
  7966. var self=this;
  7967. 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", [])]))]);
  7968. return self;},
  7969. args: ["aPoint"],
  7970. source: unescape('-%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20-%20aPoint%20asPoint%20x%20y%3A%20self%20y%20-%20aPoint%20asPoint%20y'),
  7971. messageSends: ["x:y:", unescape("-"), "x", "asPoint", "y"],
  7972. referencedClasses: ["Point"]
  7973. }),
  7974. smalltalk.Point);
  7975. smalltalk.addMethod(
  7976. unescape('__slash'),
  7977. smalltalk.method({
  7978. selector: unescape('/'),
  7979. category: 'arithmetic',
  7980. fn: function (aPoint){
  7981. var self=this;
  7982. 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", [])]))]);
  7983. return self;},
  7984. args: ["aPoint"],
  7985. source: unescape('/%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20/%20aPoint%20asPoint%20x%20y%3A%20self%20y%20/%20aPoint%20asPoint%20y'),
  7986. messageSends: ["x:y:", unescape("/"), "x", "asPoint", "y"],
  7987. referencedClasses: ["Point"]
  7988. }),
  7989. smalltalk.Point);
  7990. smalltalk.addMethod(
  7991. unescape('_asPoint'),
  7992. smalltalk.method({
  7993. selector: unescape('asPoint'),
  7994. category: 'converting',
  7995. fn: function (){
  7996. var self=this;
  7997. return self;
  7998. return self;},
  7999. args: [],
  8000. source: unescape('asPoint%0A%09%5Eself'),
  8001. messageSends: [],
  8002. referencedClasses: []
  8003. }),
  8004. smalltalk.Point);
  8005. smalltalk.addMethod(
  8006. unescape('__eq'),
  8007. smalltalk.method({
  8008. selector: unescape('%3D'),
  8009. category: 'arithmetic',
  8010. fn: function (aPoint){
  8011. var self=this;
  8012. 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", [])])]);})]);
  8013. return self;},
  8014. args: ["aPoint"],
  8015. 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'),
  8016. messageSends: ["and:", unescape("%3D"), "class", unescape("%26"), "x", "y"],
  8017. referencedClasses: []
  8018. }),
  8019. smalltalk.Point);
  8020. smalltalk.addMethod(
  8021. unescape('_x_y_'),
  8022. smalltalk.method({
  8023. selector: unescape('x%3Ay%3A'),
  8024. category: 'instance creation',
  8025. fn: function (aNumber, anotherNumber){
  8026. var self=this;
  8027. return (function($rec){smalltalk.send($rec, "_x_", [aNumber]);smalltalk.send($rec, "_y_", [anotherNumber]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  8028. return self;},
  8029. args: ["aNumber", "anotherNumber"],
  8030. 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'),
  8031. messageSends: ["x:", "y:", "yourself", "new"],
  8032. referencedClasses: []
  8033. }),
  8034. smalltalk.Point.klass);
  8035. smalltalk.addClass('Message', smalltalk.Object, ['selector', 'arguments'], 'Kernel');
  8036. smalltalk.addMethod(
  8037. unescape('_selector'),
  8038. smalltalk.method({
  8039. selector: unescape('selector'),
  8040. category: 'accessing',
  8041. fn: function (){
  8042. var self=this;
  8043. return self['@selector'];
  8044. return self;},
  8045. args: [],
  8046. source: unescape('selector%0A%09%5Eselector'),
  8047. messageSends: [],
  8048. referencedClasses: []
  8049. }),
  8050. smalltalk.Message);
  8051. smalltalk.addMethod(
  8052. unescape('_selector_'),
  8053. smalltalk.method({
  8054. selector: unescape('selector%3A'),
  8055. category: 'accessing',
  8056. fn: function (aString){
  8057. var self=this;
  8058. self['@selector']=aString;
  8059. return self;},
  8060. args: ["aString"],
  8061. source: unescape('selector%3A%20aString%0A%09selector%20%3A%3D%20aString'),
  8062. messageSends: [],
  8063. referencedClasses: []
  8064. }),
  8065. smalltalk.Message);
  8066. smalltalk.addMethod(
  8067. unescape('_arguments_'),
  8068. smalltalk.method({
  8069. selector: unescape('arguments%3A'),
  8070. category: 'accessing',
  8071. fn: function (anArray){
  8072. var self=this;
  8073. self['@arguments']=anArray;
  8074. return self;},
  8075. args: ["anArray"],
  8076. source: unescape('arguments%3A%20anArray%0A%09arguments%20%3A%3D%20anArray'),
  8077. messageSends: [],
  8078. referencedClasses: []
  8079. }),
  8080. smalltalk.Message);
  8081. smalltalk.addMethod(
  8082. unescape('_arguments'),
  8083. smalltalk.method({
  8084. selector: unescape('arguments'),
  8085. category: 'accessing',
  8086. fn: function (){
  8087. var self=this;
  8088. return self['@arguments'];
  8089. return self;},
  8090. args: [],
  8091. source: unescape('arguments%0A%09%5Earguments'),
  8092. messageSends: [],
  8093. referencedClasses: []
  8094. }),
  8095. smalltalk.Message);
  8096. smalltalk.addMethod(
  8097. unescape('_printString'),
  8098. smalltalk.method({
  8099. selector: unescape('printString'),
  8100. category: 'printing',
  8101. fn: function (){
  8102. var self=this;
  8103. 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);})]);
  8104. return self;},
  8105. args: [],
  8106. 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'),
  8107. messageSends: ["streamContents:", "nextPutAll:", "printString"],
  8108. referencedClasses: ["String"]
  8109. }),
  8110. smalltalk.Message);
  8111. smalltalk.addMethod(
  8112. unescape('_selector_arguments_'),
  8113. smalltalk.method({
  8114. selector: unescape('selector%3Aarguments%3A'),
  8115. category: 'instance creation',
  8116. fn: function (aString, anArray){
  8117. var self=this;
  8118. return (function($rec){smalltalk.send($rec, "_selector_", [aString]);smalltalk.send($rec, "_arguments_", [anArray]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  8119. return self;},
  8120. args: ["aString", "anArray"],
  8121. 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'),
  8122. messageSends: ["selector:", "arguments:", "yourself", "new"],
  8123. referencedClasses: []
  8124. }),
  8125. smalltalk.Message.klass);
  8126. smalltalk.addClass('MessageNotUnderstood', smalltalk.Error, ['message', 'receiver'], 'Kernel');
  8127. smalltalk.addMethod(
  8128. unescape('_message'),
  8129. smalltalk.method({
  8130. selector: unescape('message'),
  8131. category: 'accessing',
  8132. fn: function (){
  8133. var self=this;
  8134. return self['@message'];
  8135. return self;},
  8136. args: [],
  8137. source: unescape('message%0A%09%5Emessage'),
  8138. messageSends: [],
  8139. referencedClasses: []
  8140. }),
  8141. smalltalk.MessageNotUnderstood);
  8142. smalltalk.addMethod(
  8143. unescape('_message_'),
  8144. smalltalk.method({
  8145. selector: unescape('message%3A'),
  8146. category: 'accessing',
  8147. fn: function (aMessage){
  8148. var self=this;
  8149. self['@message']=aMessage;
  8150. return self;},
  8151. args: ["aMessage"],
  8152. source: unescape('message%3A%20aMessage%0A%09message%20%3A%3D%20aMessage'),
  8153. messageSends: [],
  8154. referencedClasses: []
  8155. }),
  8156. smalltalk.MessageNotUnderstood);
  8157. smalltalk.addMethod(
  8158. unescape('_receiver'),
  8159. smalltalk.method({
  8160. selector: unescape('receiver'),
  8161. category: 'accessing',
  8162. fn: function (){
  8163. var self=this;
  8164. return self['@receiver'];
  8165. return self;},
  8166. args: [],
  8167. source: unescape('receiver%0A%09%5Ereceiver'),
  8168. messageSends: [],
  8169. referencedClasses: []
  8170. }),
  8171. smalltalk.MessageNotUnderstood);
  8172. smalltalk.addMethod(
  8173. unescape('_receiver_'),
  8174. smalltalk.method({
  8175. selector: unescape('receiver%3A'),
  8176. category: 'accessing',
  8177. fn: function (anObject){
  8178. var self=this;
  8179. self['@receiver']=anObject;
  8180. return self;},
  8181. args: ["anObject"],
  8182. source: unescape('receiver%3A%20anObject%0A%09receiver%20%3A%3D%20anObject'),
  8183. messageSends: [],
  8184. referencedClasses: []
  8185. }),
  8186. smalltalk.MessageNotUnderstood);
  8187. smalltalk.addMethod(
  8188. unescape('_messageText'),
  8189. smalltalk.method({
  8190. selector: unescape('messageText'),
  8191. category: 'accessing',
  8192. fn: function (){
  8193. var self=this;
  8194. 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", [])]);
  8195. return self;},
  8196. args: [],
  8197. source: unescape('messageText%0A%09%5Eself%20receiver%20asString%2C%20%27%20does%20not%20understand%20%23%27%2C%20self%20message%20selector'),
  8198. messageSends: [unescape("%2C"), "asString", "receiver", "selector", "message"],
  8199. referencedClasses: []
  8200. }),
  8201. smalltalk.MessageNotUnderstood);
  8202. smalltalk.addClass('ErrorHandler', smalltalk.Object, [], 'Kernel');
  8203. smalltalk.addMethod(
  8204. unescape('_handleError_'),
  8205. smalltalk.method({
  8206. selector: unescape('handleError%3A'),
  8207. category: 'error handling',
  8208. fn: function (anError){
  8209. var self=this;
  8210. (($receiver = smalltalk.send(anError, "_context", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logErrorContext_", [smalltalk.send(anError, "_context", [])]);})() : nil;
  8211. smalltalk.send(self, "_logError_", [anError]);
  8212. return self;},
  8213. args: ["anError"],
  8214. source: unescape('handleError%3A%20anError%0A%09anError%20context%20ifNotNil%3A%20%5Bself%20logErrorContext%3A%20anError%20context%5D.%0A%09self%20logError%3A%20anError'),
  8215. messageSends: ["ifNotNil:", "context", "logErrorContext:", "logError:"],
  8216. referencedClasses: []
  8217. }),
  8218. smalltalk.ErrorHandler);
  8219. smalltalk.addMethod(
  8220. unescape('_logContext_'),
  8221. smalltalk.method({
  8222. selector: unescape('logContext%3A'),
  8223. category: 'private',
  8224. fn: function (aContext){
  8225. var self=this;
  8226. (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logContext_", [smalltalk.send(aContext, "_home", [])]);})() : nil;
  8227. smalltalk.send(self, "_log_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aContext, "_receiver", []), "_asString", []), "__comma", [unescape("%3E%3E")]), "__comma", [smalltalk.send(aContext, "_selector", [])])]);
  8228. return self;},
  8229. args: ["aContext"],
  8230. 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'),
  8231. messageSends: ["ifNotNil:", "home", "logContext:", "log:", unescape("%2C"), "asString", "receiver", "selector"],
  8232. referencedClasses: []
  8233. }),
  8234. smalltalk.ErrorHandler);
  8235. smalltalk.addMethod(
  8236. unescape('_logErrorContext_'),
  8237. smalltalk.method({
  8238. selector: unescape('logErrorContext%3A'),
  8239. category: 'private',
  8240. fn: function (aContext){
  8241. var self=this;
  8242. (($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;
  8243. return self;},
  8244. args: ["aContext"],
  8245. 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'),
  8246. messageSends: ["ifNotNil:", "home", "logContext:"],
  8247. referencedClasses: []
  8248. }),
  8249. smalltalk.ErrorHandler);
  8250. smalltalk.addMethod(
  8251. unescape('_logError_'),
  8252. smalltalk.method({
  8253. selector: unescape('logError%3A'),
  8254. category: 'private',
  8255. fn: function (anError){
  8256. var self=this;
  8257. smalltalk.send(self, "_log_", [smalltalk.send(anError, "_messageText", [])]);
  8258. return self;},
  8259. args: ["anError"],
  8260. source: unescape('logError%3A%20anError%0A%09self%20log%3A%20anError%20messageText'),
  8261. messageSends: ["log:", "messageText"],
  8262. referencedClasses: []
  8263. }),
  8264. smalltalk.ErrorHandler);
  8265. smalltalk.addMethod(
  8266. unescape('_log_'),
  8267. smalltalk.method({
  8268. selector: unescape('log%3A'),
  8269. category: 'private',
  8270. fn: function (aString){
  8271. var self=this;
  8272. smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [aString]);
  8273. return self;},
  8274. args: ["aString"],
  8275. source: unescape('log%3A%20aString%0A%09console%20log%3A%20aString'),
  8276. messageSends: ["log:"],
  8277. referencedClasses: []
  8278. }),
  8279. smalltalk.ErrorHandler);
  8280. smalltalk.ErrorHandler.klass.iVarNames = ['current'];
  8281. smalltalk.addMethod(
  8282. unescape('_current'),
  8283. smalltalk.method({
  8284. selector: unescape('current'),
  8285. category: 'accessing',
  8286. fn: function (){
  8287. var self=this;
  8288. return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", []);})() : $receiver;
  8289. return self;},
  8290. args: [],
  8291. source: unescape('current%0A%09%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20self%20new%5D'),
  8292. messageSends: ["ifNil:", "new"],
  8293. referencedClasses: []
  8294. }),
  8295. smalltalk.ErrorHandler.klass);
  8296. smalltalk.addMethod(
  8297. unescape('_initialize'),
  8298. smalltalk.method({
  8299. selector: unescape('initialize'),
  8300. category: 'initialization',
  8301. fn: function (){
  8302. var self=this;
  8303. smalltalk.send(self, "_register", []);
  8304. return self;},
  8305. args: [],
  8306. source: unescape('initialize%0A%09self%20register'),
  8307. messageSends: ["register"],
  8308. referencedClasses: []
  8309. }),
  8310. smalltalk.ErrorHandler.klass);
  8311. smalltalk.addMethod(
  8312. unescape('_register'),
  8313. smalltalk.method({
  8314. selector: unescape('register'),
  8315. category: 'initialization',
  8316. fn: function (){
  8317. var self=this;
  8318. smalltalk.send((smalltalk.ErrorHandler || ErrorHandler), "_setCurrent_", [smalltalk.send(self, "_new", [])]);
  8319. return self;},
  8320. args: [],
  8321. source: unescape('register%0A%09ErrorHandler%20setCurrent%3A%20self%20new'),
  8322. messageSends: ["setCurrent:", "new"],
  8323. referencedClasses: ["ErrorHandler"]
  8324. }),
  8325. smalltalk.ErrorHandler.klass);
  8326. smalltalk.addMethod(
  8327. unescape('_setCurrent_'),
  8328. smalltalk.method({
  8329. selector: unescape('setCurrent%3A'),
  8330. category: 'accessing',
  8331. fn: function (anHandler){
  8332. var self=this;
  8333. self['@current']=anHandler;
  8334. return self;},
  8335. args: ["anHandler"],
  8336. source: unescape('setCurrent%3A%20anHandler%0A%09current%20%3A%3D%20anHandler'),
  8337. messageSends: [],
  8338. referencedClasses: []
  8339. }),
  8340. smalltalk.ErrorHandler.klass);
  8341. smalltalk.addClass('JSObjectProxy', smalltalk.Object, ['jsObject'], 'Kernel');
  8342. smalltalk.addMethod(
  8343. unescape('_jsObject_'),
  8344. smalltalk.method({
  8345. selector: unescape('jsObject%3A'),
  8346. category: 'accessing',
  8347. fn: function (aJSObject){
  8348. var self=this;
  8349. self['@jsObject']=aJSObject;
  8350. return self;},
  8351. args: ["aJSObject"],
  8352. source: unescape('jsObject%3A%20aJSObject%0A%09jsObject%20%3A%3D%20aJSObject'),
  8353. messageSends: [],
  8354. referencedClasses: []
  8355. }),
  8356. smalltalk.JSObjectProxy);
  8357. smalltalk.addMethod(
  8358. unescape('_jsObject'),
  8359. smalltalk.method({
  8360. selector: unescape('jsObject'),
  8361. category: 'accessing',
  8362. fn: function (){
  8363. var self=this;
  8364. return self['@jsObject'];
  8365. return self;},
  8366. args: [],
  8367. source: unescape('jsObject%0A%09%5EjsObject'),
  8368. messageSends: [],
  8369. referencedClasses: []
  8370. }),
  8371. smalltalk.JSObjectProxy);
  8372. smalltalk.addMethod(
  8373. unescape('_printString'),
  8374. smalltalk.method({
  8375. selector: unescape('printString'),
  8376. category: 'proxy',
  8377. fn: function (){
  8378. var self=this;
  8379. return smalltalk.send(smalltalk.send(self, "_jsObject", []), "_toString", []);
  8380. return self;},
  8381. args: [],
  8382. source: unescape('printString%0A%09%5Eself%20jsObject%20toString'),
  8383. messageSends: ["toString", "jsObject"],
  8384. referencedClasses: []
  8385. }),
  8386. smalltalk.JSObjectProxy);
  8387. smalltalk.addMethod(
  8388. unescape('_inspectOn_'),
  8389. smalltalk.method({
  8390. selector: unescape('inspectOn%3A'),
  8391. category: 'proxy',
  8392. fn: function (anInspector){
  8393. var self=this;
  8394. var variables=nil;
  8395. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  8396. smalltalk.send(variables, "_at_put_", [unescape("%23self"), smalltalk.send(self, "_jsObject", [])]);
  8397. smalltalk.send(anInspector, "_setLabel_", [smalltalk.send(self, "_printString", [])]);
  8398. for(var i in self['@jsObject']) {
  8399. variables._at_put_(i, self['@jsObject'][i]);
  8400. };
  8401. smalltalk.send(anInspector, "_setVariables_", [variables]);
  8402. return self;},
  8403. args: ["anInspector"],
  8404. 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'),
  8405. messageSends: ["new", "at:put:", "jsObject", "setLabel:", "printString", "setVariables:"],
  8406. referencedClasses: ["Dictionary"]
  8407. }),
  8408. smalltalk.JSObjectProxy);
  8409. smalltalk.addMethod(
  8410. unescape('_doesNotUnderstand_'),
  8411. smalltalk.method({
  8412. selector: unescape('doesNotUnderstand%3A'),
  8413. category: 'proxy',
  8414. fn: function (aMessage){
  8415. var self=this;
  8416. var obj=nil;
  8417. var selector=nil;
  8418. var jsSelector=nil;
  8419. var arguments=nil;
  8420. obj=smalltalk.send(self, "_jsObject", []);
  8421. selector=smalltalk.send(aMessage, "_selector", []);
  8422. jsSelector=smalltalk.send(selector, "_asJavaScriptSelector", []);
  8423. arguments=smalltalk.send(aMessage, "_arguments", []);
  8424. if(obj[jsSelector] != undefined) {return smalltalk.send(obj, jsSelector, arguments)};
  8425. smalltalk.send(self, "_doesNotUnderstand_", [aMessage], smalltalk.Object);
  8426. return self;},
  8427. args: ["aMessage"],
  8428. 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'),
  8429. messageSends: ["jsObject", "selector", "asJavaScriptSelector", "arguments", "doesNotUnderstand:"],
  8430. referencedClasses: []
  8431. }),
  8432. smalltalk.JSObjectProxy);
  8433. smalltalk.addMethod(
  8434. unescape('_at_'),
  8435. smalltalk.method({
  8436. selector: unescape('at%3A'),
  8437. category: 'accessing',
  8438. fn: function (aString){
  8439. var self=this;
  8440. return self['@jsObject'][aString];
  8441. return self;},
  8442. args: ["aString"],
  8443. source: unescape('at%3A%20aString%0A%09%3Creturn%20self%5B%27@jsObject%27%5D%5BaString%5D%3E'),
  8444. messageSends: [],
  8445. referencedClasses: []
  8446. }),
  8447. smalltalk.JSObjectProxy);
  8448. smalltalk.addMethod(
  8449. unescape('_at_put_'),
  8450. smalltalk.method({
  8451. selector: unescape('at%3Aput%3A'),
  8452. category: 'accessing',
  8453. fn: function (aString, anObject){
  8454. var self=this;
  8455. self['@jsObject'][aString] = anObject;
  8456. return self;},
  8457. args: ["aString", "anObject"],
  8458. source: unescape('at%3A%20aString%20put%3A%20anObject%0A%09%3Cself%5B%27@jsObject%27%5D%5BaString%5D%20%3D%20anObject%3E'),
  8459. messageSends: [],
  8460. referencedClasses: []
  8461. }),
  8462. smalltalk.JSObjectProxy);
  8463. smalltalk.addMethod(
  8464. unescape('_on_'),
  8465. smalltalk.method({
  8466. selector: unescape('on%3A'),
  8467. category: 'instance creation',
  8468. fn: function (aJSObject){
  8469. var self=this;
  8470. return (function($rec){smalltalk.send($rec, "_jsObject_", [aJSObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  8471. return self;},
  8472. args: ["aJSObject"],
  8473. source: unescape('on%3A%20aJSObject%0A%09%5Eself%20new%0A%09%09jsObject%3A%20aJSObject%3B%0A%09%09yourself'),
  8474. messageSends: ["jsObject:", "yourself", "new"],
  8475. referencedClasses: []
  8476. }),
  8477. smalltalk.JSObjectProxy.klass);
  8478. smalltalk.addClass('Set', smalltalk.Collection, ['elements'], 'Kernel');
  8479. smalltalk.addMethod(
  8480. unescape('_add_'),
  8481. smalltalk.method({
  8482. selector: unescape('add%3A'),
  8483. category: 'adding/removing',
  8484. fn: function (anObject){
  8485. var self=this;
  8486. var found;
  8487. for(var i in self['@elements']) {
  8488. if(anObject == self['@elements'][i]) {
  8489. found = true;
  8490. break;
  8491. }
  8492. }
  8493. if(!found) {self['@elements'].push(anObject)}
  8494. ;
  8495. return self;},
  8496. args: ["anObject"],
  8497. 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'),
  8498. messageSends: [],
  8499. referencedClasses: []
  8500. }),
  8501. smalltalk.Set);
  8502. smalltalk.addMethod(
  8503. unescape('_remove_'),
  8504. smalltalk.method({
  8505. selector: unescape('remove%3A'),
  8506. category: 'adding/removing',
  8507. fn: function (anObject){
  8508. var self=this;
  8509. smalltalk.send(self['@elements'], "_remove_", [anObject]);
  8510. return self;},
  8511. args: ["anObject"],
  8512. source: unescape('remove%3A%20anObject%0A%09elements%20remove%3A%20anObject'),
  8513. messageSends: ["remove:"],
  8514. referencedClasses: []
  8515. }),
  8516. smalltalk.Set);
  8517. smalltalk.addMethod(
  8518. unescape('_initialize'),
  8519. smalltalk.method({
  8520. selector: unescape('initialize'),
  8521. category: 'initialization',
  8522. fn: function (){
  8523. var self=this;
  8524. smalltalk.send(self, "_initialize", [], smalltalk.Collection);
  8525. self['@elements']=[];
  8526. return self;},
  8527. args: [],
  8528. source: unescape('initialize%0A%09super%20initialize.%0A%09elements%20%3A%3D%20%23%28%29'),
  8529. messageSends: ["initialize"],
  8530. referencedClasses: []
  8531. }),
  8532. smalltalk.Set);
  8533. smalltalk.addMethod(
  8534. unescape('_size'),
  8535. smalltalk.method({
  8536. selector: unescape('size'),
  8537. category: 'accessing',
  8538. fn: function (){
  8539. var self=this;
  8540. return smalltalk.send(self['@elements'], "_size", []);
  8541. return self;},
  8542. args: [],
  8543. source: unescape('size%0A%09%5Eelements%20size'),
  8544. messageSends: ["size"],
  8545. referencedClasses: []
  8546. }),
  8547. smalltalk.Set);
  8548. smalltalk.addMethod(
  8549. unescape('_asArray'),
  8550. smalltalk.method({
  8551. selector: unescape('asArray'),
  8552. category: 'converting',
  8553. fn: function (){
  8554. var self=this;
  8555. return smalltalk.send(self['@elements'], "_copy", []);
  8556. return self;},
  8557. args: [],
  8558. source: unescape('asArray%0A%09%5Eelements%20copy'),
  8559. messageSends: ["copy"],
  8560. referencedClasses: []
  8561. }),
  8562. smalltalk.Set);
  8563. smalltalk.addMethod(
  8564. unescape('_detect_ifNone_'),
  8565. smalltalk.method({
  8566. selector: unescape('detect%3AifNone%3A'),
  8567. category: 'enumerating',
  8568. fn: function (aBlock, anotherBlock){
  8569. var self=this;
  8570. return smalltalk.send(self['@elements'], "_detect_ifNone_", [aBlock, anotherBlock]);
  8571. return self;},
  8572. args: ["aBlock", "anotherBlock"],
  8573. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eelements%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  8574. messageSends: ["detect:ifNone:"],
  8575. referencedClasses: []
  8576. }),
  8577. smalltalk.Set);
  8578. smalltalk.addMethod(
  8579. unescape('_do_'),
  8580. smalltalk.method({
  8581. selector: unescape('do%3A'),
  8582. category: 'enumerating',
  8583. fn: function (aBlock){
  8584. var self=this;
  8585. smalltalk.send(self['@elements'], "_do_", [aBlock]);
  8586. return self;},
  8587. args: ["aBlock"],
  8588. source: unescape('do%3A%20aBlock%0A%09elements%20do%3A%20aBlock'),
  8589. messageSends: ["do:"],
  8590. referencedClasses: []
  8591. }),
  8592. smalltalk.Set);
  8593. smalltalk.addMethod(
  8594. unescape('_includes_'),
  8595. smalltalk.method({
  8596. selector: unescape('includes%3A'),
  8597. category: 'testing',
  8598. fn: function (anObject){
  8599. var self=this;
  8600. return smalltalk.send(self['@elements'], "_includes_", [anObject]);
  8601. return self;},
  8602. args: ["anObject"],
  8603. source: unescape('includes%3A%20anObject%0A%09%5Eelements%20includes%3A%20anObject'),
  8604. messageSends: ["includes:"],
  8605. referencedClasses: []
  8606. }),
  8607. smalltalk.Set);
  8608. smalltalk.addMethod(
  8609. unescape('__eq'),
  8610. smalltalk.method({
  8611. selector: unescape('%3D'),
  8612. category: 'comparing',
  8613. fn: function (aCollection){
  8614. var self=this;
  8615. 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", [])]);})]);
  8616. return self;},
  8617. args: ["aCollection"],
  8618. 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'),
  8619. messageSends: ["and:", unescape("%3D"), "class", "asArray"],
  8620. referencedClasses: []
  8621. }),
  8622. smalltalk.Set);
  8623. smalltalk.addClass('Transcript', smalltalk.Object, ['textarea'], 'Kernel');
  8624. smalltalk.Transcript.klass.iVarNames = ['current'];
  8625. smalltalk.addMethod(
  8626. unescape('_open'),
  8627. smalltalk.method({
  8628. selector: unescape('open'),
  8629. category: 'instance creation',
  8630. fn: function (){
  8631. var self=this;
  8632. smalltalk.send(smalltalk.send(self, "_current", []), "_open", []);
  8633. return self;},
  8634. args: [],
  8635. source: unescape('open%0A%20%20%20%20self%20current%20open'),
  8636. messageSends: ["open", "current"],
  8637. referencedClasses: []
  8638. }),
  8639. smalltalk.Transcript.klass);
  8640. smalltalk.addMethod(
  8641. unescape('_new'),
  8642. smalltalk.method({
  8643. selector: unescape('new'),
  8644. category: 'instance creation',
  8645. fn: function (){
  8646. var self=this;
  8647. smalltalk.send(self, "_shouldNotImplement", []);
  8648. return self;},
  8649. args: [],
  8650. source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'),
  8651. messageSends: ["shouldNotImplement"],
  8652. referencedClasses: []
  8653. }),
  8654. smalltalk.Transcript.klass);
  8655. smalltalk.addMethod(
  8656. unescape('_current'),
  8657. smalltalk.method({
  8658. selector: unescape('current'),
  8659. category: 'instance creation',
  8660. fn: function (){
  8661. var self=this;
  8662. return self['@current'];
  8663. return self;},
  8664. args: [],
  8665. source: unescape('current%0A%20%20%20%20%5Ecurrent'),
  8666. messageSends: [],
  8667. referencedClasses: []
  8668. }),
  8669. smalltalk.Transcript.klass);
  8670. smalltalk.addMethod(
  8671. unescape('_show_'),
  8672. smalltalk.method({
  8673. selector: unescape('show%3A'),
  8674. category: 'printing',
  8675. fn: function (anObject){
  8676. var self=this;
  8677. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [anObject]);
  8678. return self;},
  8679. args: ["anObject"],
  8680. source: unescape('show%3A%20anObject%0A%20%20%20%20self%20current%20show%3A%20anObject'),
  8681. messageSends: ["show:", "current"],
  8682. referencedClasses: []
  8683. }),
  8684. smalltalk.Transcript.klass);
  8685. smalltalk.addMethod(
  8686. unescape('_cr'),
  8687. smalltalk.method({
  8688. selector: unescape('cr'),
  8689. category: 'printing',
  8690. fn: function (){
  8691. var self=this;
  8692. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  8693. return self;},
  8694. args: [],
  8695. source: unescape('cr%0A%20%20%20%20self%20current%20show%3A%20String%20cr'),
  8696. messageSends: ["show:", "current", "cr"],
  8697. referencedClasses: ["String"]
  8698. }),
  8699. smalltalk.Transcript.klass);
  8700. smalltalk.addMethod(
  8701. unescape('_clear'),
  8702. smalltalk.method({
  8703. selector: unescape('clear'),
  8704. category: 'printing',
  8705. fn: function (){
  8706. var self=this;
  8707. smalltalk.send(smalltalk.send(self, "_current", []), "_clear", []);
  8708. return self;},
  8709. args: [],
  8710. source: unescape('clear%0A%20%20%20%20self%20current%20clear'),
  8711. messageSends: ["clear", "current"],
  8712. referencedClasses: []
  8713. }),
  8714. smalltalk.Transcript.klass);
  8715. smalltalk.addMethod(
  8716. unescape('_register_'),
  8717. smalltalk.method({
  8718. selector: unescape('register%3A'),
  8719. category: 'instance creation',
  8720. fn: function (aTranscript){
  8721. var self=this;
  8722. self['@current']=aTranscript;
  8723. return self;},
  8724. args: ["aTranscript"],
  8725. source: unescape('register%3A%20aTranscript%0A%09current%20%3A%3D%20aTranscript'),
  8726. messageSends: [],
  8727. referencedClasses: []
  8728. }),
  8729. smalltalk.Transcript.klass);
  8730. smalltalk.addClass('ConsoleTranscript', smalltalk.Object, ['textarea'], 'Kernel');
  8731. smalltalk.addMethod(
  8732. unescape('_clear'),
  8733. smalltalk.method({
  8734. selector: unescape('clear'),
  8735. category: 'printing',
  8736. fn: function (){
  8737. var self=this;
  8738. return self;},
  8739. args: [],
  8740. source: unescape('clear%0A%09%22no%20op%22'),
  8741. messageSends: [],
  8742. referencedClasses: []
  8743. }),
  8744. smalltalk.ConsoleTranscript);
  8745. smalltalk.addMethod(
  8746. unescape('_cr'),
  8747. smalltalk.method({
  8748. selector: unescape('cr'),
  8749. category: 'printing',
  8750. fn: function (){
  8751. var self=this;
  8752. return self;},
  8753. args: [],
  8754. source: unescape('cr%0A%09%22no%20op%22'),
  8755. messageSends: [],
  8756. referencedClasses: []
  8757. }),
  8758. smalltalk.ConsoleTranscript);
  8759. smalltalk.addMethod(
  8760. unescape('_show_'),
  8761. smalltalk.method({
  8762. selector: unescape('show%3A'),
  8763. category: 'printing',
  8764. fn: function (anObject){
  8765. var self=this;
  8766. var string=nil;
  8767. string=smalltalk.send(anObject, "_asString", []);
  8768. console.log(String(string));
  8769. return self;},
  8770. args: ["anObject"],
  8771. source: unescape('show%3A%20anObject%0A%09%7C%20string%20%7C%0A%09string%20%3A%3D%20anObject%20asString.%0A%09%3Cconsole.log%28String%28string%29%29%3E'),
  8772. messageSends: ["asString"],
  8773. referencedClasses: []
  8774. }),
  8775. smalltalk.ConsoleTranscript);
  8776. smalltalk.addMethod(
  8777. unescape('_open'),
  8778. smalltalk.method({
  8779. selector: unescape('open'),
  8780. category: 'actions',
  8781. fn: function (){
  8782. var self=this;
  8783. return self;},
  8784. args: [],
  8785. source: unescape('open'),
  8786. messageSends: [],
  8787. referencedClasses: []
  8788. }),
  8789. smalltalk.ConsoleTranscript);
  8790. smalltalk.addMethod(
  8791. unescape('_initialize'),
  8792. smalltalk.method({
  8793. selector: unescape('initialize'),
  8794. category: 'initialization',
  8795. fn: function (){
  8796. var self=this;
  8797. smalltalk.send((smalltalk.Transcript || Transcript), "_register_", [smalltalk.send(self, "_new", [])]);
  8798. return self;},
  8799. args: [],
  8800. source: unescape('initialize%0A%09Transcript%20register%3A%20self%20new'),
  8801. messageSends: ["register:", "new"],
  8802. referencedClasses: ["Transcript"]
  8803. }),
  8804. smalltalk.ConsoleTranscript.klass);