Kernel.js 300 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968
  1. smalltalk.addClass('Object', smalltalk.nil, [], 'Kernel');
  2. smalltalk.addMethod(
  3. unescape('__eq'),
  4. smalltalk.method({
  5. selector: unescape('%3D'),
  6. category: 'comparing',
  7. fn: function (anObject){
  8. var self=this;
  9. return smalltalk.send(self, "__eq_eq", [anObject]);
  10. return self;},
  11. args: ["anObject"],
  12. source: unescape('%3D%20anObject%0A%09%5Eself%20%3D%3D%20anObject'),
  13. messageSends: [unescape("%3D%3D")],
  14. referencedClasses: []
  15. }),
  16. smalltalk.Object);
  17. smalltalk.addMethod(
  18. unescape('_%7E_eq'),
  19. smalltalk.method({
  20. selector: unescape('%7E%3D'),
  21. category: 'comparing',
  22. fn: function (anObject){
  23. var self=this;
  24. return smalltalk.send(smalltalk.send(self, "__eq", [anObject]), "__eq", [false]);
  25. return self;},
  26. args: ["anObject"],
  27. source: unescape('%7E%3D%20anObject%0A%09%5E%28self%20%3D%20anObject%29%20%3D%20false'),
  28. messageSends: [unescape("%3D")],
  29. referencedClasses: []
  30. }),
  31. smalltalk.Object);
  32. smalltalk.addMethod(
  33. unescape('_initialize'),
  34. smalltalk.method({
  35. selector: unescape('initialize'),
  36. category: 'initialization',
  37. fn: function (){
  38. var self=this;
  39. return self;},
  40. args: [],
  41. source: unescape('initialize'),
  42. messageSends: [],
  43. referencedClasses: []
  44. }),
  45. smalltalk.Object);
  46. smalltalk.addMethod(
  47. unescape('_yourself'),
  48. smalltalk.method({
  49. selector: unescape('yourself'),
  50. category: 'accessing',
  51. fn: function (){
  52. var self=this;
  53. return self;
  54. return self;},
  55. args: [],
  56. source: unescape('yourself%0A%09%5Eself'),
  57. messageSends: [],
  58. referencedClasses: []
  59. }),
  60. smalltalk.Object);
  61. smalltalk.addMethod(
  62. unescape('_class'),
  63. smalltalk.method({
  64. selector: unescape('class'),
  65. category: 'accessing',
  66. fn: function (){
  67. var self=this;
  68. return self.klass;
  69. return self;},
  70. args: [],
  71. source: unescape('class%0A%09%3Creturn%20self.klass%3E'),
  72. messageSends: [],
  73. referencedClasses: []
  74. }),
  75. smalltalk.Object);
  76. smalltalk.addMethod(
  77. unescape('_size'),
  78. smalltalk.method({
  79. selector: unescape('size'),
  80. category: 'accessing',
  81. fn: function (){
  82. var self=this;
  83. smalltalk.send(self, "_error_", ["Object not indexable"]);
  84. return self;},
  85. args: [],
  86. source: unescape('size%0A%09self%20error%3A%20%27Object%20not%20indexable%27'),
  87. messageSends: ["error:"],
  88. referencedClasses: []
  89. }),
  90. smalltalk.Object);
  91. smalltalk.addMethod(
  92. unescape('_copy'),
  93. smalltalk.method({
  94. selector: unescape('copy'),
  95. category: 'copying',
  96. fn: function (){
  97. var self=this;
  98. return smalltalk.send(smalltalk.send(self, "_shallowCopy", []), "_postCopy", []);
  99. return self;},
  100. args: [],
  101. source: unescape('copy%0A%09%5Eself%20shallowCopy%20postCopy'),
  102. messageSends: ["postCopy", "shallowCopy"],
  103. referencedClasses: []
  104. }),
  105. smalltalk.Object);
  106. smalltalk.addMethod(
  107. unescape('_shallowCopy'),
  108. smalltalk.method({
  109. selector: unescape('shallowCopy'),
  110. category: 'copying',
  111. fn: function (){
  112. var self=this;
  113. var copy = self.klass._new();
  114. for(var i in self) {
  115. if(/^@.+/.test(i)) {
  116. copy[i] = self[i];
  117. }
  118. }
  119. return copy;
  120. ;
  121. return self;},
  122. args: [],
  123. source: unescape('shallowCopy%0A%09%3C%0A%09%20%20%20%20var%20copy%20%3D%20self.klass._new%28%29%3B%0A%09%20%20%20%20for%28var%20i%20in%20self%29%20%7B%0A%09%09if%28/%5E@.+/.test%28i%29%29%20%7B%0A%09%09%20%20%20%20copy%5Bi%5D%20%3D%20self%5Bi%5D%3B%0A%09%09%7D%0A%09%20%20%20%20%7D%0A%09%20%20%20%20return%20copy%3B%0A%09%3E'),
  124. messageSends: [],
  125. referencedClasses: []
  126. }),
  127. smalltalk.Object);
  128. smalltalk.addMethod(
  129. unescape('_deepCopy'),
  130. smalltalk.method({
  131. selector: unescape('deepCopy'),
  132. category: 'copying',
  133. fn: function (){
  134. var self=this;
  135. var copy = self.klass._new();
  136. for(var i in self) {
  137. if(/^@.+/.test(i)) {
  138. copy[i] = self[i]._deepCopy();
  139. }
  140. }
  141. return copy;
  142. ;
  143. return self;},
  144. args: [],
  145. source: unescape('deepCopy%0A%09%3C%20%20%20%20%0A%09%20%20%20%20var%20copy%20%3D%20self.klass._new%28%29%3B%0A%09%20%20%20%20for%28var%20i%20in%20self%29%20%7B%0A%09%09if%28/%5E@.+/.test%28i%29%29%20%7B%0A%09%09%20%20%20%20copy%5Bi%5D%20%3D%20self%5Bi%5D._deepCopy%28%29%3B%0A%09%09%7D%0A%09%20%20%20%20%7D%0A%09%20%20%20%20return%20copy%3B%0A%09%3E'),
  146. messageSends: [],
  147. referencedClasses: []
  148. }),
  149. smalltalk.Object);
  150. smalltalk.addMethod(
  151. unescape('_postCopy'),
  152. smalltalk.method({
  153. selector: unescape('postCopy'),
  154. category: 'copying',
  155. fn: function (){
  156. var self=this;
  157. return self;},
  158. args: [],
  159. source: unescape('postCopy'),
  160. messageSends: [],
  161. referencedClasses: []
  162. }),
  163. smalltalk.Object);
  164. smalltalk.addMethod(
  165. unescape('__minus_gt'),
  166. smalltalk.method({
  167. selector: unescape('-%3E'),
  168. category: 'converting',
  169. fn: function (anObject){
  170. var self=this;
  171. return smalltalk.send((smalltalk.Association || Association), "_key_value_", [self, anObject]);
  172. return self;},
  173. args: ["anObject"],
  174. source: unescape('-%3E%20anObject%0A%09%5EAssociation%20key%3A%20self%20value%3A%20anObject'),
  175. messageSends: ["key:value:"],
  176. referencedClasses: [smalltalk.nil]
  177. }),
  178. smalltalk.Object);
  179. smalltalk.addMethod(
  180. unescape('_asString'),
  181. smalltalk.method({
  182. selector: unescape('asString'),
  183. category: 'converting',
  184. fn: function (){
  185. var self=this;
  186. return smalltalk.send(self, "_printString", []);
  187. return self;},
  188. args: [],
  189. source: unescape('asString%0A%09%5Eself%20printString'),
  190. messageSends: ["printString"],
  191. referencedClasses: []
  192. }),
  193. smalltalk.Object);
  194. smalltalk.addMethod(
  195. unescape('_asJavascript'),
  196. smalltalk.method({
  197. selector: unescape('asJavascript'),
  198. category: 'converting',
  199. fn: function (){
  200. var self=this;
  201. return smalltalk.send(self, "_asString", []);
  202. return self;},
  203. args: [],
  204. source: unescape('asJavascript%0A%09%5Eself%20asString'),
  205. messageSends: ["asString"],
  206. referencedClasses: []
  207. }),
  208. smalltalk.Object);
  209. smalltalk.addMethod(
  210. unescape('_perform_'),
  211. smalltalk.method({
  212. selector: unescape('perform%3A'),
  213. category: 'message handling',
  214. fn: function (aSymbol){
  215. var self=this;
  216. return smalltalk.send(self, "_perform_withArguments_", [aSymbol, []]);
  217. return self;},
  218. args: ["aSymbol"],
  219. source: unescape('perform%3A%20aSymbol%0A%09%5Eself%20perform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
  220. messageSends: ["perform:withArguments:"],
  221. referencedClasses: []
  222. }),
  223. smalltalk.Object);
  224. smalltalk.addMethod(
  225. unescape('_perform_withArguments_'),
  226. smalltalk.method({
  227. selector: unescape('perform%3AwithArguments%3A'),
  228. category: 'message handling',
  229. fn: function (aSymbol, aCollection){
  230. var self=this;
  231. return smalltalk.send(self, "_basicPerform_withArguments_", [smalltalk.send(aSymbol, "_asSelector", []), aCollection]);
  232. return self;},
  233. args: ["aSymbol", "aCollection"],
  234. source: unescape('perform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%5Eself%20basicPerform%3A%20aSymbol%20asSelector%20withArguments%3A%20aCollection'),
  235. messageSends: ["basicPerform:withArguments:", "asSelector"],
  236. referencedClasses: []
  237. }),
  238. smalltalk.Object);
  239. smalltalk.addMethod(
  240. unescape('_instVarAt_'),
  241. smalltalk.method({
  242. selector: unescape('instVarAt%3A'),
  243. category: 'accessing',
  244. fn: function (aString){
  245. var self=this;
  246. return self['@'+aString];
  247. return self;},
  248. args: ["aString"],
  249. source: unescape('instVarAt%3A%20aString%0A%09%3Creturn%20self%5B%27@%27+aString%5D%3E'),
  250. messageSends: [],
  251. referencedClasses: []
  252. }),
  253. smalltalk.Object);
  254. smalltalk.addMethod(
  255. unescape('_instVarAt_put_'),
  256. smalltalk.method({
  257. selector: unescape('instVarAt%3Aput%3A'),
  258. category: 'accessing',
  259. fn: function (aString, anObject){
  260. var self=this;
  261. self['@' + aString] = anObject;
  262. return self;},
  263. args: ["aString", "anObject"],
  264. source: unescape('instVarAt%3A%20aString%20put%3A%20anObject%0A%09%3Cself%5B%27@%27%20+%20aString%5D%20%3D%20anObject%3E'),
  265. messageSends: [],
  266. referencedClasses: []
  267. }),
  268. smalltalk.Object);
  269. smalltalk.addMethod(
  270. unescape('_basicAt_'),
  271. smalltalk.method({
  272. selector: unescape('basicAt%3A'),
  273. category: 'accessing',
  274. fn: function (aString){
  275. var self=this;
  276. return self[aString];
  277. return self;},
  278. args: ["aString"],
  279. source: unescape('basicAt%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
  280. messageSends: [],
  281. referencedClasses: []
  282. }),
  283. smalltalk.Object);
  284. smalltalk.addMethod(
  285. unescape('_basicAt_put_'),
  286. smalltalk.method({
  287. selector: unescape('basicAt%3Aput%3A'),
  288. category: 'accessing',
  289. fn: function (aString, anObject){
  290. var self=this;
  291. return self[aString] = anObject;
  292. return self;},
  293. args: ["aString", "anObject"],
  294. source: unescape('basicAt%3A%20aString%20put%3A%20anObject%0A%09%3Creturn%20self%5BaString%5D%20%3D%20anObject%3E'),
  295. messageSends: [],
  296. referencedClasses: []
  297. }),
  298. smalltalk.Object);
  299. smalltalk.addMethod(
  300. unescape('_error_'),
  301. smalltalk.method({
  302. selector: unescape('error%3A'),
  303. category: 'error handling',
  304. fn: function (aString){
  305. var self=this;
  306. smalltalk.send((smalltalk.Error || Error), "_signal_", [aString]);
  307. return self;},
  308. args: ["aString"],
  309. source: unescape('error%3A%20aString%0A%09Error%20signal%3A%20aString'),
  310. messageSends: ["signal:"],
  311. referencedClasses: [smalltalk.Error]
  312. }),
  313. smalltalk.Object);
  314. smalltalk.addMethod(
  315. unescape('_subclassResponsibility'),
  316. smalltalk.method({
  317. selector: unescape('subclassResponsibility'),
  318. category: 'error handling',
  319. fn: function (){
  320. var self=this;
  321. smalltalk.send(self, "_error_", ["This method is a responsibility of a subclass"]);
  322. return self;},
  323. args: [],
  324. source: unescape('subclassResponsibility%0A%09self%20error%3A%20%27This%20method%20is%20a%20responsibility%20of%20a%20subclass%27'),
  325. messageSends: ["error:"],
  326. referencedClasses: []
  327. }),
  328. smalltalk.Object);
  329. smalltalk.addMethod(
  330. unescape('_shouldNotImplement'),
  331. smalltalk.method({
  332. selector: unescape('shouldNotImplement'),
  333. category: 'error handling',
  334. fn: function (){
  335. var self=this;
  336. smalltalk.send(self, "_error_", [smalltalk.send("This method should not be implemented in ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])])]);
  337. return self;},
  338. args: [],
  339. source: unescape('shouldNotImplement%0A%09self%20error%3A%20%27This%20method%20should%20not%20be%20implemented%20in%20%27%2C%20self%20class%20name'),
  340. messageSends: ["error:", unescape("%2C"), "name", "class"],
  341. referencedClasses: []
  342. }),
  343. smalltalk.Object);
  344. smalltalk.addMethod(
  345. unescape('_try_catch_'),
  346. smalltalk.method({
  347. selector: unescape('try%3Acatch%3A'),
  348. category: 'error handling',
  349. fn: function (aBlock, anotherBlock){
  350. var self=this;
  351. try{aBlock()} catch(e) {anotherBlock(e)};
  352. return self;},
  353. args: ["aBlock", "anotherBlock"],
  354. source: unescape('try%3A%20aBlock%20catch%3A%20anotherBlock%0A%09%3Ctry%7BaBlock%28%29%7D%20catch%28e%29%20%7BanotherBlock%28e%29%7D%3E'),
  355. messageSends: [],
  356. referencedClasses: []
  357. }),
  358. smalltalk.Object);
  359. smalltalk.addMethod(
  360. unescape('_printString'),
  361. smalltalk.method({
  362. selector: unescape('printString'),
  363. category: 'printing',
  364. fn: function (){
  365. var self=this;
  366. return smalltalk.send("a ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])]);
  367. return self;},
  368. args: [],
  369. source: unescape('printString%0A%09%5E%27a%20%27%2C%20self%20class%20name'),
  370. messageSends: [unescape("%2C"), "name", "class"],
  371. referencedClasses: []
  372. }),
  373. smalltalk.Object);
  374. smalltalk.addMethod(
  375. unescape('_printNl'),
  376. smalltalk.method({
  377. selector: unescape('printNl'),
  378. category: 'printing',
  379. fn: function (){
  380. var self=this;
  381. console.log(self);
  382. return self;},
  383. args: [],
  384. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  385. messageSends: [],
  386. referencedClasses: []
  387. }),
  388. smalltalk.Object);
  389. smalltalk.addMethod(
  390. unescape('_isKindOf_'),
  391. smalltalk.method({
  392. selector: unescape('isKindOf%3A'),
  393. category: 'testing',
  394. fn: function (aClass){
  395. var self=this;
  396. return ((($receiver = smalltalk.send(self, "_isMemberOf_", [aClass])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return true;})() : (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return true;}), (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})]));
  397. return self;},
  398. args: ["aClass"],
  399. source: unescape('isKindOf%3A%20aClass%0A%09%5E%28self%20isMemberOf%3A%20aClass%29%0A%09%20%20%20%20ifTrue%3A%20%5Btrue%5D%0A%09%20%20%20%20ifFalse%3A%20%5Bself%20class%20inheritsFrom%3A%20aClass%5D'),
  400. messageSends: ["ifTrue:ifFalse:", "isMemberOf:", "inheritsFrom:", "class"],
  401. referencedClasses: []
  402. }),
  403. smalltalk.Object);
  404. smalltalk.addMethod(
  405. unescape('_isMemberOf_'),
  406. smalltalk.method({
  407. selector: unescape('isMemberOf%3A'),
  408. category: 'testing',
  409. fn: function (aClass){
  410. var self=this;
  411. return smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [aClass]);
  412. return self;},
  413. args: ["aClass"],
  414. source: unescape('isMemberOf%3A%20aClass%0A%09%5Eself%20class%20%3D%20aClass'),
  415. messageSends: [unescape("%3D"), "class"],
  416. referencedClasses: []
  417. }),
  418. smalltalk.Object);
  419. smalltalk.addMethod(
  420. unescape('_ifNil_'),
  421. smalltalk.method({
  422. selector: unescape('ifNil%3A'),
  423. category: 'testing',
  424. fn: function (aBlock){
  425. var self=this;
  426. return self;
  427. return self;},
  428. args: ["aBlock"],
  429. source: unescape('ifNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself'),
  430. messageSends: [],
  431. referencedClasses: []
  432. }),
  433. smalltalk.Object);
  434. smalltalk.addMethod(
  435. unescape('_ifNil_ifNotNil_'),
  436. smalltalk.method({
  437. selector: unescape('ifNil%3AifNotNil%3A'),
  438. category: 'testing',
  439. fn: function (aBlock, anotherBlock){
  440. var self=this;
  441. return smalltalk.send(anotherBlock, "_value", []);
  442. return self;},
  443. args: ["aBlock", "anotherBlock"],
  444. source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EanotherBlock%20value'),
  445. messageSends: ["value"],
  446. referencedClasses: []
  447. }),
  448. smalltalk.Object);
  449. smalltalk.addMethod(
  450. unescape('_ifNotNil_'),
  451. smalltalk.method({
  452. selector: unescape('ifNotNil%3A'),
  453. category: 'testing',
  454. fn: function (aBlock){
  455. var self=this;
  456. return smalltalk.send(aBlock, "_value", []);
  457. return self;},
  458. args: ["aBlock"],
  459. source: unescape('ifNotNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  460. messageSends: ["value"],
  461. referencedClasses: []
  462. }),
  463. smalltalk.Object);
  464. smalltalk.addMethod(
  465. unescape('_ifNotNil_ifNil_'),
  466. smalltalk.method({
  467. selector: unescape('ifNotNil%3AifNil%3A'),
  468. category: 'testing',
  469. fn: function (aBlock, anotherBlock){
  470. var self=this;
  471. return smalltalk.send(aBlock, "_value", []);
  472. return self;},
  473. args: ["aBlock", "anotherBlock"],
  474. source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  475. messageSends: ["value"],
  476. referencedClasses: []
  477. }),
  478. smalltalk.Object);
  479. smalltalk.addMethod(
  480. unescape('_isNil'),
  481. smalltalk.method({
  482. selector: unescape('isNil'),
  483. category: 'testing',
  484. fn: function (){
  485. var self=this;
  486. return false;
  487. return self;},
  488. args: [],
  489. source: unescape('isNil%0A%09%5Efalse'),
  490. messageSends: [],
  491. referencedClasses: []
  492. }),
  493. smalltalk.Object);
  494. smalltalk.addMethod(
  495. unescape('_notNil'),
  496. smalltalk.method({
  497. selector: unescape('notNil'),
  498. category: 'testing',
  499. fn: function (){
  500. var self=this;
  501. return smalltalk.send(smalltalk.send(self, "_isNil", []), "_not", []);
  502. return self;},
  503. args: [],
  504. source: unescape('notNil%0A%09%5Eself%20isNil%20not'),
  505. messageSends: ["not", "isNil"],
  506. referencedClasses: []
  507. }),
  508. smalltalk.Object);
  509. smalltalk.addMethod(
  510. unescape('_isClass'),
  511. smalltalk.method({
  512. selector: unescape('isClass'),
  513. category: 'testing',
  514. fn: function (){
  515. var self=this;
  516. return false;
  517. return self;},
  518. args: [],
  519. source: unescape('isClass%0A%09%5Efalse'),
  520. messageSends: [],
  521. referencedClasses: []
  522. }),
  523. smalltalk.Object);
  524. smalltalk.addMethod(
  525. unescape('_isMetaclass'),
  526. smalltalk.method({
  527. selector: unescape('isMetaclass'),
  528. category: 'testing',
  529. fn: function (){
  530. var self=this;
  531. return false;
  532. return self;},
  533. args: [],
  534. source: unescape('isMetaclass%0A%09%5Efalse'),
  535. messageSends: [],
  536. referencedClasses: []
  537. }),
  538. smalltalk.Object);
  539. smalltalk.addMethod(
  540. unescape('_isNumber'),
  541. smalltalk.method({
  542. selector: unescape('isNumber'),
  543. category: 'testing',
  544. fn: function (){
  545. var self=this;
  546. return false;
  547. return self;},
  548. args: [],
  549. source: unescape('isNumber%0A%09%5Efalse'),
  550. messageSends: [],
  551. referencedClasses: []
  552. }),
  553. smalltalk.Object);
  554. smalltalk.addMethod(
  555. unescape('_isString'),
  556. smalltalk.method({
  557. selector: unescape('isString'),
  558. category: 'testing',
  559. fn: function (){
  560. var self=this;
  561. return false;
  562. return self;},
  563. args: [],
  564. source: unescape('isString%0A%09%5Efalse'),
  565. messageSends: [],
  566. referencedClasses: []
  567. }),
  568. smalltalk.Object);
  569. smalltalk.addMethod(
  570. unescape('_isParseFailure'),
  571. smalltalk.method({
  572. selector: unescape('isParseFailure'),
  573. category: 'testing',
  574. fn: function (){
  575. var self=this;
  576. return false;
  577. return self;},
  578. args: [],
  579. source: unescape('isParseFailure%0A%09%5Efalse'),
  580. messageSends: [],
  581. referencedClasses: []
  582. }),
  583. smalltalk.Object);
  584. smalltalk.addMethod(
  585. unescape('_basicPerform_'),
  586. smalltalk.method({
  587. selector: unescape('basicPerform%3A'),
  588. category: 'message handling',
  589. fn: function (aSymbol){
  590. var self=this;
  591. return smalltalk.send(self, "_basicPerform_withArguments_", [aSymbol, []]);
  592. return self;},
  593. args: ["aSymbol"],
  594. source: unescape('basicPerform%3A%20aSymbol%20%0A%09%5Eself%20basicPerform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
  595. messageSends: ["basicPerform:withArguments:"],
  596. referencedClasses: []
  597. }),
  598. smalltalk.Object);
  599. smalltalk.addMethod(
  600. unescape('_basicPerform_withArguments_'),
  601. smalltalk.method({
  602. selector: unescape('basicPerform%3AwithArguments%3A'),
  603. category: 'message handling',
  604. fn: function (aSymbol, aCollection){
  605. var self=this;
  606. return self[aSymbol].apply(self, aCollection);;
  607. return self;},
  608. args: ["aSymbol", "aCollection"],
  609. source: unescape('basicPerform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%3Creturn%20self%5BaSymbol%5D.apply%28self%2C%20aCollection%29%3B%3E'),
  610. messageSends: [],
  611. referencedClasses: []
  612. }),
  613. smalltalk.Object);
  614. smalltalk.addMethod(
  615. unescape('_basicDelete_'),
  616. smalltalk.method({
  617. selector: unescape('basicDelete%3A'),
  618. category: 'accessing',
  619. fn: function (aString){
  620. var self=this;
  621. delete self[aString];
  622. return self;},
  623. args: ["aString"],
  624. source: unescape('basicDelete%3A%20aString%0A%20%20%20%20%3Cdelete%20self%5BaString%5D%3E'),
  625. messageSends: [],
  626. referencedClasses: []
  627. }),
  628. smalltalk.Object);
  629. smalltalk.addMethod(
  630. unescape('_doesNotUnderstand_'),
  631. smalltalk.method({
  632. selector: unescape('doesNotUnderstand%3A'),
  633. category: 'error handling',
  634. fn: function (aMessage){
  635. var self=this;
  636. (function($rec){smalltalk.send($rec, "_receiver_", [self]);smalltalk.send($rec, "_message_", [aMessage]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send((smalltalk.MessageNotUnderstood || MessageNotUnderstood), "_new", []));
  637. return self;},
  638. args: ["aMessage"],
  639. source: unescape('doesNotUnderstand%3A%20aMessage%0A%09MessageNotUnderstood%20new%0A%09%09receiver%3A%20self%3B%0A%09%09message%3A%20aMessage%3B%0A%09%09signal'),
  640. messageSends: ["receiver:", "message:", "signal", "new"],
  641. referencedClasses: [smalltalk.nil]
  642. }),
  643. smalltalk.Object);
  644. smalltalk.addMethod(
  645. unescape('_asJSON'),
  646. smalltalk.method({
  647. selector: unescape('asJSON'),
  648. category: 'converting',
  649. fn: function (){
  650. var self=this;
  651. return JSON.stringify(self._asJSONObject());
  652. return self;},
  653. args: [],
  654. source: unescape('asJSON%0A%09%3Creturn%20JSON.stringify%28self._asJSONObject%28%29%29%3E'),
  655. messageSends: [],
  656. referencedClasses: []
  657. }),
  658. smalltalk.Object);
  659. smalltalk.addMethod(
  660. unescape('_asJSONObject'),
  661. smalltalk.method({
  662. selector: unescape('asJSONObject'),
  663. category: 'converting',
  664. fn: function (){
  665. var self=this;
  666. var object=nil;
  667. object=smalltalk.send((smalltalk.Object || Object), "_new", []);
  668. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_instanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(object, "_basicAt_put_", [each, smalltalk.send(smalltalk.send(self, "_instVarAt_", [each]), "_asJSONObject", [])]);})]);
  669. return object;
  670. return self;},
  671. args: [],
  672. source: unescape('asJSONObject%0A%09%7C%20object%20%7C%0A%09object%20%3A%3D%20Object%20new.%0A%09self%20class%20instanceVariableNames%20do%3A%20%5B%3Aeach%20%7C%0A%09%09object%20basicAt%3A%20each%20put%3A%20%28self%20instVarAt%3A%20each%29%20asJSONObject%5D.%0A%09%5Eobject'),
  673. messageSends: ["new", "do:", "instanceVariableNames", "class", "basicAt:put:", "asJSONObject", "instVarAt:"],
  674. referencedClasses: [smalltalk.Object]
  675. }),
  676. smalltalk.Object);
  677. smalltalk.addMethod(
  678. unescape('_halt'),
  679. smalltalk.method({
  680. selector: unescape('halt'),
  681. category: 'error handling',
  682. fn: function (){
  683. var self=this;
  684. smalltalk.send(self, "_error_", ["Halt encountered"]);
  685. return self;},
  686. args: [],
  687. source: unescape('halt%0A%09self%20error%3A%20%27Halt%20encountered%27'),
  688. messageSends: ["error:"],
  689. referencedClasses: []
  690. }),
  691. smalltalk.Object);
  692. smalltalk.addMethod(
  693. unescape('_log_block_'),
  694. smalltalk.method({
  695. selector: unescape('log%3Ablock%3A'),
  696. category: 'printing',
  697. fn: function (aString, aBlock){
  698. var self=this;
  699. var result=nil;
  700. smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [smalltalk.send(smalltalk.send(aString, "__comma", [" time: "]), "__comma", [smalltalk.send(smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [(function(){return result=smalltalk.send(aBlock, "_value", []);})]), "_printString", [])])]);
  701. return result;
  702. return self;},
  703. args: ["aString", "aBlock"],
  704. source: unescape('log%3A%20aString%20block%3A%20aBlock%0A%0A%09%7C%20result%20%7C%0A%09console%20log%3A%20%20aString%2C%20%20%27%20time%3A%20%27%2C%20%28Date%20millisecondsToRun%3A%20%5Bresult%20%3A%3D%20aBlock%20value%5D%29%20printString.%0A%09%5Eresult'),
  705. messageSends: ["log:", unescape("%2C"), "printString", "millisecondsToRun:", "value"],
  706. referencedClasses: [smalltalk.Date]
  707. }),
  708. smalltalk.Object);
  709. smalltalk.addMethod(
  710. unescape('__eq_eq'),
  711. smalltalk.method({
  712. selector: unescape('%3D%3D'),
  713. category: 'comparing',
  714. fn: function (anObject){
  715. var self=this;
  716. return self === anObject;
  717. return self;},
  718. args: ["anObject"],
  719. source: unescape('%3D%3D%20anObject%0A%09%3Creturn%20self%20%3D%3D%3D%20anObject%3E'),
  720. messageSends: [],
  721. referencedClasses: []
  722. }),
  723. smalltalk.Object);
  724. smalltalk.addMethod(
  725. unescape('_%7E%7E'),
  726. smalltalk.method({
  727. selector: unescape('%7E%7E'),
  728. category: 'comparing',
  729. fn: function (anObject){
  730. var self=this;
  731. return smalltalk.send(smalltalk.send(self, "__eq_eq", [anObject]), "__eq", [false]);
  732. return self;},
  733. args: ["anObject"],
  734. source: unescape('%7E%7E%20anObject%0A%09%5E%28self%20%3D%3D%20anObject%29%20%3D%20false'),
  735. messageSends: [unescape("%3D"), unescape("%3D%3D")],
  736. referencedClasses: []
  737. }),
  738. smalltalk.Object);
  739. smalltalk.addMethod(
  740. unescape('_deprecatedAPI'),
  741. smalltalk.method({
  742. selector: unescape('deprecatedAPI'),
  743. category: 'error handling',
  744. fn: function (){
  745. var self=this;
  746. smalltalk.send((typeof console == 'undefined' ? nil : console), "_warn_", [smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.getThisContext()), "_home", []), "_asString", []), "__comma", [unescape("%20is%20deprecated%21")])]);
  747. return self;},
  748. args: [],
  749. source: unescape('deprecatedAPI%0A%09%22Just%20a%20simple%20way%20to%20deprecate%20methods.%0A%09%23deprecatedAPI%20is%20in%20the%20%27error%20handling%27%20protocol%20even%20if%20it%20doesn%27t%20throw%20an%20error%2C%0A%09but%20it%20could%20in%20the%20future.%22%0A%09console%20warn%3A%20thisContext%20home%20asString%2C%20%27%20is%20deprecated%21%27'),
  750. messageSends: ["warn:", unescape("%2C"), "asString", "home"],
  751. referencedClasses: []
  752. }),
  753. smalltalk.Object);
  754. smalltalk.addMethod(
  755. unescape('_initialize'),
  756. smalltalk.method({
  757. selector: unescape('initialize'),
  758. category: 'initialization',
  759. fn: function (){
  760. var self=this;
  761. return self;},
  762. args: [],
  763. source: unescape('initialize%0A%09%22no%20op%22'),
  764. messageSends: [],
  765. referencedClasses: []
  766. }),
  767. smalltalk.Object.klass);
  768. smalltalk.addClass('Smalltalk', smalltalk.Object, [], 'Kernel');
  769. smalltalk.addMethod(
  770. unescape('_classes'),
  771. smalltalk.method({
  772. selector: unescape('classes'),
  773. category: 'accessing',
  774. fn: function (){
  775. var self=this;
  776. return self.classes();
  777. return self;},
  778. args: [],
  779. source: unescape('classes%0A%09%3Creturn%20self.classes%28%29%3E'),
  780. messageSends: [],
  781. referencedClasses: []
  782. }),
  783. smalltalk.Smalltalk);
  784. smalltalk.addMethod(
  785. unescape('_readJSON_'),
  786. smalltalk.method({
  787. selector: unescape('readJSON%3A'),
  788. category: 'accessing',
  789. fn: function (anObject){
  790. var self=this;
  791. return self.readJSObject(anObject);
  792. return self;},
  793. args: ["anObject"],
  794. source: unescape('readJSON%3A%20anObject%0A%09%3Creturn%20self.readJSObject%28anObject%29%3E'),
  795. messageSends: [],
  796. referencedClasses: []
  797. }),
  798. smalltalk.Smalltalk);
  799. smalltalk.addMethod(
  800. unescape('_at_'),
  801. smalltalk.method({
  802. selector: unescape('at%3A'),
  803. category: 'accessing',
  804. fn: function (aString){
  805. var self=this;
  806. return self[aString];
  807. return self;},
  808. args: ["aString"],
  809. source: unescape('at%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
  810. messageSends: [],
  811. referencedClasses: []
  812. }),
  813. smalltalk.Smalltalk);
  814. smalltalk.addMethod(
  815. unescape('_removeClass_'),
  816. smalltalk.method({
  817. selector: unescape('removeClass%3A'),
  818. category: 'classes',
  819. fn: function (aClass){
  820. var self=this;
  821. ((($receiver = smalltalk.send(aClass, "_isMetaclass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_asString", []), "__comma", [unescape("%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21")])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_asString", []), "__comma", [unescape("%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21")])]);})]));
  822. smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(aClass, "_removeCompiledMethod_", [each]);})]);
  823. smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(aClass, "_class", []), "_removeCompiledMethod_", [each]);})]);
  824. smalltalk.send(self, "_basicDelete_", [smalltalk.send(aClass, "_name", [])]);
  825. return self;},
  826. args: ["aClass"],
  827. source: unescape('removeClass%3A%20aClass%0A%09aClass%20isMetaclass%20ifTrue%3A%20%5Bself%20error%3A%20aClass%20asString%2C%20%27%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21%27%5D.%0A%09aClass%20methodDictionary%20values%20do%3A%20%5B%3Aeach%20%7C%0A%09%09aClass%20removeCompiledMethod%3A%20each%5D.%0A%09aClass%20class%20methodDictionary%20values%20do%3A%20%5B%3Aeach%20%7C%0A%09%09aClass%20class%20removeCompiledMethod%3A%20each%5D.%0A%09self%20basicDelete%3A%20aClass%20name'),
  828. messageSends: ["ifTrue:", "isMetaclass", "error:", unescape("%2C"), "asString", "do:", "values", "methodDictionary", "removeCompiledMethod:", "class", "basicDelete:", "name"],
  829. referencedClasses: []
  830. }),
  831. smalltalk.Smalltalk);
  832. smalltalk.addMethod(
  833. unescape('_basicParse_'),
  834. smalltalk.method({
  835. selector: unescape('basicParse%3A'),
  836. category: 'accessing',
  837. fn: function (aString){
  838. var self=this;
  839. return smalltalk.parser.parse(aString);
  840. return self;},
  841. args: ["aString"],
  842. source: unescape('basicParse%3A%20aString%0A%09%3Creturn%20smalltalk.parser.parse%28aString%29%3E'),
  843. messageSends: [],
  844. referencedClasses: []
  845. }),
  846. smalltalk.Smalltalk);
  847. smalltalk.addMethod(
  848. unescape('_parse_'),
  849. smalltalk.method({
  850. selector: unescape('parse%3A'),
  851. category: 'accessing',
  852. fn: function (aString){
  853. var self=this;
  854. var result=nil;
  855. smalltalk.send(self, "_try_catch_", [(function(){return result=smalltalk.send(self, "_basicParse_", [aString]);}), (function(ex){return smalltalk.send(smalltalk.send(self, "_parseError_parsing_", [ex, aString]), "_signal", []);})]);
  856. return result;
  857. return self;},
  858. args: ["aString"],
  859. source: unescape('parse%3A%20aString%0A%09%7C%20result%20%7C%20%0A%09self%20try%3A%20%5Bresult%20%3A%3D%20self%20basicParse%3A%20aString%5D%20catch%3A%20%5B%3Aex%20%7C%20%28self%20parseError%3A%20ex%20parsing%3A%20aString%29%20signal%5D.%0A%09%5Eresult'),
  860. messageSends: ["try:catch:", "basicParse:", "signal", "parseError:parsing:"],
  861. referencedClasses: []
  862. }),
  863. smalltalk.Smalltalk);
  864. smalltalk.addMethod(
  865. unescape('_parseError_parsing_'),
  866. smalltalk.method({
  867. selector: unescape('parseError%3Aparsing%3A'),
  868. category: 'accessing',
  869. fn: function (anException, aString){
  870. var self=this;
  871. var row=nil;
  872. var col=nil;
  873. var message=nil;
  874. var lines=nil;
  875. var badLine=nil;
  876. var code=nil;
  877. row = anException.line;
  878. col = anException.column;
  879. message = anException.message;;
  880. lines=smalltalk.send(aString, "_lines", []);
  881. badLine=smalltalk.send(lines, "_at_", [row]);
  882. badLine=smalltalk.send(smalltalk.send(smalltalk.send(badLine, "_copyFrom_to_", [(1), ((($receiver = col).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]), "__comma", [unescape("%20%3D%3D%3D%3E")]), "__comma", [smalltalk.send(badLine, "_copyFrom_to_", [col, smalltalk.send(badLine, "_size", [])])]);
  883. smalltalk.send(lines, "_at_put_", [row, badLine]);
  884. code=smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(s){return smalltalk.send(lines, "_withIndexDo_", [(function(l, i){return smalltalk.send(s, "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(i, "_asString", []), "__comma", [": "]), "__comma", [l]), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])])]);})]);})]);
  885. return smalltalk.send(smalltalk.send((smalltalk.Error || Error), "_new", []), "_messageText_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("Parse error on line ", "__comma", [row]), "__comma", [" column "]), "__comma", [col]), "__comma", [" : "]), "__comma", [message]), "__comma", [unescape("%20Below%20is%20code%20with%20line%20numbers%20and%20%3D%3D%3D%3E%20marker%20inserted%3A")]), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])]), "__comma", [code])]);
  886. return self;},
  887. args: ["anException", "aString"],
  888. source: unescape('parseError%3A%20anException%20parsing%3A%20aString%0A%09%7C%20row%20col%20message%20lines%20badLine%20code%20%7C%0A%09%3Crow%20%3D%20anException.line%3B%0A%09col%20%3D%20anException.column%3B%0A%09message%20%3D%20anException.message%3B%3E.%0A%09lines%20%3A%3D%20aString%20lines.%0A%09badLine%20%3A%3D%20lines%20at%3A%20row.%0A%09badLine%20%3A%3D%20%28badLine%20copyFrom%3A%201%20to%3A%20col%20-%201%29%2C%20%27%20%3D%3D%3D%3E%27%2C%20%28badLine%20copyFrom%3A%20%20col%20to%3A%20badLine%20size%29.%0A%09lines%20at%3A%20row%20put%3A%20badLine.%0A%09code%20%3A%3D%20String%20streamContents%3A%20%5B%3As%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20lines%20withIndexDo%3A%20%5B%3Al%20%3Ai%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20s%20nextPutAll%3A%20i%20asString%2C%20%27%3A%20%27%2C%20l%2C%20String%20lf%5D%5D.%0A%09%5E%20Error%20new%20messageText%3A%20%28%27Parse%20error%20on%20line%20%27%20%2C%20row%20%2C%20%27%20column%20%27%20%2C%20col%20%2C%20%27%20%3A%20%27%20%2C%20message%20%2C%20%27%20Below%20is%20code%20with%20line%20numbers%20and%20%3D%3D%3D%3E%20marker%20inserted%3A%27%20%2C%20String%20lf%2C%20code%29'),
  889. messageSends: ["lines", "at:", unescape("%2C"), "copyFrom:to:", unescape("-"), "size", "at:put:", "streamContents:", "withIndexDo:", "nextPutAll:", "asString", "lf", "messageText:", "new"],
  890. referencedClasses: [smalltalk.String,smalltalk.Error]
  891. }),
  892. smalltalk.Smalltalk);
  893. smalltalk.addMethod(
  894. unescape('_packages'),
  895. smalltalk.method({
  896. selector: unescape('packages'),
  897. category: 'packages',
  898. fn: function (){
  899. var self=this;
  900. return self.packages.all();
  901. return self;},
  902. args: [],
  903. source: unescape('packages%0A%09%22Return%20all%20Package%20instances%20in%20the%20system.%22%0A%0A%09%3Creturn%20self.packages.all%28%29%3E'),
  904. messageSends: [],
  905. referencedClasses: []
  906. }),
  907. smalltalk.Smalltalk);
  908. smalltalk.addMethod(
  909. unescape('_packageAt_'),
  910. smalltalk.method({
  911. selector: unescape('packageAt%3A'),
  912. category: 'packages',
  913. fn: function (packageName){
  914. var self=this;
  915. return self.packages[packageName];
  916. return self;},
  917. args: ["packageName"],
  918. source: unescape('packageAt%3A%20packageName%0A%20%20%20%20%20%20%20%3Creturn%20self.packages%5BpackageName%5D%3E'),
  919. messageSends: [],
  920. referencedClasses: []
  921. }),
  922. smalltalk.Smalltalk);
  923. smalltalk.addMethod(
  924. unescape('_packageAt_ifAbsent_'),
  925. smalltalk.method({
  926. selector: unescape('packageAt%3AifAbsent%3A'),
  927. category: 'packages',
  928. fn: function (packageName, aBlock){
  929. var self=this;
  930. return smalltalk.send(smalltalk.send(self, "_packageAt_", [packageName]), "_ifNil_", [aBlock]);
  931. return self;},
  932. args: ["packageName", "aBlock"],
  933. source: unescape('packageAt%3A%20packageName%20ifAbsent%3A%20aBlock%0A%20%20%20%20%20%20%20%5E%28self%20packageAt%3A%20packageName%29%20ifNil%3A%20aBlock'),
  934. messageSends: ["ifNil:", "packageAt:"],
  935. referencedClasses: []
  936. }),
  937. smalltalk.Smalltalk);
  938. smalltalk.addMethod(
  939. unescape('_createPackage_'),
  940. smalltalk.method({
  941. selector: unescape('createPackage%3A'),
  942. category: 'private',
  943. fn: function (packageName){
  944. var self=this;
  945. return smalltalk.addPackage(packageName);
  946. return self;},
  947. args: ["packageName"],
  948. source: unescape('createPackage%3A%20packageName%0A%09%22Create%20and%20bind%20a%20new%20package%20with%20given%20name%20and%20return%20it.%22%0A%0A%20%20%20%20%20%20%20%3Creturn%20smalltalk.addPackage%28packageName%29%3E'),
  949. messageSends: [],
  950. referencedClasses: []
  951. }),
  952. smalltalk.Smalltalk);
  953. smalltalk.addMethod(
  954. unescape('_deletePackage_'),
  955. smalltalk.method({
  956. selector: unescape('deletePackage%3A'),
  957. category: 'private',
  958. fn: function (packageName){
  959. var self=this;
  960. delete smalltalk.packages[packageName];
  961. return self;},
  962. args: ["packageName"],
  963. source: unescape('deletePackage%3A%20packageName%0A%09%22Deletes%20a%20package%20by%20deleting%20its%20binding%2C%20but%20does%20not%20check%20if%20it%20contains%20classes%20etc.%0A%09To%20remove%20a%20package%2C%20use%20%23removePackage%20instead.%22%0A%0A%20%20%20%20%20%20%20%3Cdelete%20smalltalk.packages%5BpackageName%5D%3E'),
  964. messageSends: [],
  965. referencedClasses: []
  966. }),
  967. smalltalk.Smalltalk);
  968. smalltalk.addMethod(
  969. unescape('_removePackage_'),
  970. smalltalk.method({
  971. selector: unescape('removePackage%3A'),
  972. category: 'packages',
  973. fn: function (packageName){
  974. var self=this;
  975. var pkg=nil;
  976. pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]);
  977. smalltalk.send(smalltalk.send(pkg, "_classes", []), "_do_", [(function(each){return smalltalk.send(self, "_removeClass_", [each]);})]);
  978. smalltalk.send(self, "_deletePackage_", [packageName]);
  979. return self;},
  980. args: ["packageName"],
  981. source: unescape('removePackage%3A%20packageName%0A%09%22Removes%20a%20package%20and%20all%20its%20classes.%22%0A%0A%09%7C%20pkg%20%7C%0A%09pkg%20%3A%3D%20self%20packageAt%3A%20packageName%20ifAbsent%3A%20%5Bself%20error%3A%20%27Missing%20package%3A%20%27%2C%20packageName%5D.%0A%09pkg%20classes%20do%3A%20%5B%3Aeach%20%7C%0A%20%20%20%20%20%20%20%20%09self%20removeClass%3A%20each%5D.%0A%09self%20deletePackage%3A%20packageName'),
  982. messageSends: ["packageAt:ifAbsent:", "error:", unescape("%2C"), "do:", "classes", "removeClass:", "deletePackage:"],
  983. referencedClasses: []
  984. }),
  985. smalltalk.Smalltalk);
  986. smalltalk.addMethod(
  987. unescape('_renamePackage_to_'),
  988. smalltalk.method({
  989. selector: unescape('renamePackage%3Ato%3A'),
  990. category: 'packages',
  991. fn: function (packageName, newName){
  992. var self=this;
  993. var pkg=nil;
  994. pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]);
  995. (($receiver = smalltalk.send(self, "_packageAt_", [newName])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Already exists a package called: ", "__comma", [newName])]);})() : nil;
  996. smalltalk.packages[newName] = smalltalk.packages[packageName];
  997. smalltalk.send(pkg, "_name_", [newName]);
  998. smalltalk.send(self, "_deletePackage_", [packageName]);
  999. return self;},
  1000. args: ["packageName", "newName"],
  1001. source: unescape('renamePackage%3A%20packageName%20to%3A%20newName%0A%09%22Rename%20a%20package.%22%0A%0A%09%7C%20pkg%20%7C%0A%09pkg%20%3A%3D%20self%20packageAt%3A%20packageName%20ifAbsent%3A%20%5Bself%20error%3A%20%27Missing%20package%3A%20%27%2C%20packageName%5D.%0A%09%28self%20packageAt%3A%20newName%29%20ifNotNil%3A%20%5Bself%20error%3A%20%27Already%20exists%20a%20package%20called%3A%20%27%2C%20newName%5D.%0A%09%3Csmalltalk.packages%5BnewName%5D%20%3D%20smalltalk.packages%5BpackageName%5D%3E.%0A%09pkg%20name%3A%20newName.%0A%09self%20deletePackage%3A%20packageName.'),
  1002. messageSends: ["packageAt:ifAbsent:", "error:", unescape("%2C"), "ifNotNil:", "packageAt:", "name:", "deletePackage:"],
  1003. referencedClasses: []
  1004. }),
  1005. smalltalk.Smalltalk);
  1006. smalltalk.addMethod(
  1007. unescape('_reservedWords'),
  1008. smalltalk.method({
  1009. selector: unescape('reservedWords'),
  1010. category: 'accessing',
  1011. fn: function (){
  1012. var self=this;
  1013. return self.reservedWords;
  1014. return self;},
  1015. args: [],
  1016. source: unescape('reservedWords%0A%09%22JavaScript%20reserved%20words%22%0A%09%3Creturn%20self.reservedWords%3E'),
  1017. messageSends: [],
  1018. referencedClasses: []
  1019. }),
  1020. smalltalk.Smalltalk);
  1021. smalltalk.Smalltalk.klass.iVarNames = ['current'];
  1022. smalltalk.addMethod(
  1023. unescape('_current'),
  1024. smalltalk.method({
  1025. selector: unescape('current'),
  1026. category: 'accessing',
  1027. fn: function (){
  1028. var self=this;
  1029. return smalltalk;
  1030. return self;},
  1031. args: [],
  1032. source: unescape('current%0A%09%3Creturn%20smalltalk%3E'),
  1033. messageSends: [],
  1034. referencedClasses: []
  1035. }),
  1036. smalltalk.Smalltalk.klass);
  1037. smalltalk.addClass('Package', smalltalk.Object, [], 'Kernel');
  1038. smalltalk.Package.comment=unescape('A%20Package%20is%20similar%20to%20a%20%22class%20category%22%20typically%20found%20in%20other%20Smalltalks%20like%20Pharo%20or%20Squeak.%20Amber%20does%20not%20have%20class%20categories%20anymore%2C%20it%20had%20in%20the%20beginning%20but%20now%20each%20class%20in%20the%20system%20knows%20which%20package%20it%20belongs%20to.%0A%0AA%20Package%20has%20a%20name%2C%20an%20Array%20of%20%22requires%22%2C%20a%20comment%20and%20a%20Dictionary%20with%20other%20optional%20key%20value%20attributes.%20A%20Package%20can%20also%20be%20queried%20for%20its%20classes%2C%20but%20it%20will%20then%20resort%20to%20a%20reverse%20scan%20of%20all%20classes%20to%20find%20them.%0APackages%20are%20manipulated%20through%20%22Smalltalk%20current%22%2C%20like%20for%20example%20finding%20one%20based%20on%20a%20name%3A%0A%0A%09Smalltalk%20current%20packageAt%3A%20%27Kernel%27%0A%0A...but%20you%20can%20also%20use%3A%0A%0A%09Package%20named%3A%20%27Kernel%27%0A%0AA%20Package%20differs%20slightly%20from%20a%20Monticello%20package%20which%20can%20span%20multiple%20class%20categories%20using%20a%20naming%20convention%20based%20on%20hyphenation.%20But%20just%20as%20in%20Monticello%20a%20Package%20supports%20%22class%20extensions%22%20so%20a%20Package%0Acan%20define%20behaviors%20in%20foreign%20classes%20using%20a%20naming%20convention%20for%20method%20categories%20where%20the%20category%20starts%20with%20an%20asterisk%20and%20then%20the%20name%20of%20the%20owning%20package%20follows.%20This%20can%20easily%20be%20seen%20in%20for%20example%20class%0AString%20where%20the%20method%20category%20%22*IDE%22%20defines%20%23inspectOn%3A%20which%20thus%20is%20a%20method%20belonging%20to%20the%20IDE%20package.')
  1039. smalltalk.addMethod(
  1040. unescape('_name'),
  1041. smalltalk.method({
  1042. selector: unescape('name'),
  1043. category: 'accessing',
  1044. fn: function (){
  1045. var self=this;
  1046. return self.pkgName || nil;
  1047. return self;},
  1048. args: [],
  1049. source: unescape('name%0A%09%3Creturn%20self.pkgName%20%7C%7C%20nil%3E'),
  1050. messageSends: [],
  1051. referencedClasses: []
  1052. }),
  1053. smalltalk.Package);
  1054. smalltalk.addMethod(
  1055. unescape('_requires'),
  1056. smalltalk.method({
  1057. selector: unescape('requires'),
  1058. category: 'accessing',
  1059. fn: function (){
  1060. var self=this;
  1061. return self.requires || nil;
  1062. return self;},
  1063. args: [],
  1064. source: unescape('requires%0A%09%3Creturn%20self.requires%20%7C%7C%20nil%3E'),
  1065. messageSends: [],
  1066. referencedClasses: []
  1067. }),
  1068. smalltalk.Package);
  1069. smalltalk.addMethod(
  1070. unescape('_name_'),
  1071. smalltalk.method({
  1072. selector: unescape('name%3A'),
  1073. category: 'accessing',
  1074. fn: function (aString){
  1075. var self=this;
  1076. return self.pkgName = aString;
  1077. return self;},
  1078. args: ["aString"],
  1079. source: unescape('name%3A%20aString%0A%09%3Creturn%20self.pkgName%20%3D%20aString%3E'),
  1080. messageSends: [],
  1081. referencedClasses: []
  1082. }),
  1083. smalltalk.Package);
  1084. smalltalk.addMethod(
  1085. unescape('_classes'),
  1086. smalltalk.method({
  1087. selector: unescape('classes'),
  1088. category: 'classes',
  1089. fn: function (){
  1090. var self=this;
  1091. return smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_select_", [(function(c){return smalltalk.send(smalltalk.send(c, "_package", []), "__eq_eq", [self]);})]);
  1092. return self;},
  1093. args: [],
  1094. source: unescape('classes%0A%09%22We%20need%20to%20do%20a%20reverse%20scan.%22%0A%09%5ESmalltalk%20current%20classes%20select%3A%20%5B%3Ac%20%7C%20c%20package%20%3D%3D%20self%5D'),
  1095. messageSends: ["select:", "classes", "current", unescape("%3D%3D"), "package"],
  1096. referencedClasses: [smalltalk.Smalltalk]
  1097. }),
  1098. smalltalk.Package);
  1099. smalltalk.addMethod(
  1100. unescape('_printString'),
  1101. smalltalk.method({
  1102. selector: unescape('printString'),
  1103. category: 'printing',
  1104. fn: function (){
  1105. var self=this;
  1106. return smalltalk.send(self, "_name", []);
  1107. return self;},
  1108. args: [],
  1109. source: unescape('printString%0A%09%5Eself%20name'),
  1110. messageSends: ["name"],
  1111. referencedClasses: []
  1112. }),
  1113. smalltalk.Package);
  1114. smalltalk.addMethod(
  1115. unescape('_named_'),
  1116. smalltalk.method({
  1117. selector: unescape('named%3A'),
  1118. category: 'not yet classified',
  1119. fn: function (aPackageName){
  1120. var self=this;
  1121. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_", [aPackageName]);
  1122. return self;},
  1123. args: ["aPackageName"],
  1124. source: unescape('named%3A%20aPackageName%0A%0A%09%5ESmalltalk%20current%20packageAt%3A%20aPackageName'),
  1125. messageSends: ["packageAt:", "current"],
  1126. referencedClasses: [smalltalk.Smalltalk]
  1127. }),
  1128. smalltalk.Package.klass);
  1129. smalltalk.addMethod(
  1130. unescape('_named_ifAbsent_'),
  1131. smalltalk.method({
  1132. selector: unescape('named%3AifAbsent%3A'),
  1133. category: 'not yet classified',
  1134. fn: function (aPackageName, aBlock){
  1135. var self=this;
  1136. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_ifAbsent_", [aPackageName, aBlock]);
  1137. return self;},
  1138. args: ["aPackageName", "aBlock"],
  1139. source: unescape('named%3A%20aPackageName%20ifAbsent%3A%20aBlock%0A%0A%09%5ESmalltalk%20current%20packageAt%3A%20aPackageName%20ifAbsent%3A%20aBlock'),
  1140. messageSends: ["packageAt:ifAbsent:", "current"],
  1141. referencedClasses: [smalltalk.Smalltalk]
  1142. }),
  1143. smalltalk.Package.klass);
  1144. smalltalk.addClass('Behavior', smalltalk.Object, [], 'Kernel');
  1145. smalltalk.addMethod(
  1146. unescape('_new'),
  1147. smalltalk.method({
  1148. selector: unescape('new'),
  1149. category: 'instance creation',
  1150. fn: function (){
  1151. var self=this;
  1152. return smalltalk.send(smalltalk.send(self, "_basicNew", []), "_initialize", []);
  1153. return self;},
  1154. args: [],
  1155. source: unescape('new%0A%09%5Eself%20basicNew%20initialize'),
  1156. messageSends: ["initialize", "basicNew"],
  1157. referencedClasses: []
  1158. }),
  1159. smalltalk.Behavior);
  1160. smalltalk.addMethod(
  1161. unescape('_basicNew'),
  1162. smalltalk.method({
  1163. selector: unescape('basicNew'),
  1164. category: 'instance creation',
  1165. fn: function (){
  1166. var self=this;
  1167. return new self.fn();
  1168. return self;},
  1169. args: [],
  1170. source: unescape('basicNew%0A%09%3Creturn%20new%20self.fn%28%29%3E'),
  1171. messageSends: [],
  1172. referencedClasses: []
  1173. }),
  1174. smalltalk.Behavior);
  1175. smalltalk.addMethod(
  1176. unescape('_name'),
  1177. smalltalk.method({
  1178. selector: unescape('name'),
  1179. category: 'accessing',
  1180. fn: function (){
  1181. var self=this;
  1182. return self.className || nil;
  1183. return self;},
  1184. args: [],
  1185. source: unescape('name%0A%09%3Creturn%20self.className%20%7C%7C%20nil%3E'),
  1186. messageSends: [],
  1187. referencedClasses: []
  1188. }),
  1189. smalltalk.Behavior);
  1190. smalltalk.addMethod(
  1191. unescape('_superclass'),
  1192. smalltalk.method({
  1193. selector: unescape('superclass'),
  1194. category: 'accessing',
  1195. fn: function (){
  1196. var self=this;
  1197. return self.superclass || nil;
  1198. return self;},
  1199. args: [],
  1200. source: unescape('superclass%0A%09%3Creturn%20self.superclass%20%7C%7C%20nil%3E'),
  1201. messageSends: [],
  1202. referencedClasses: []
  1203. }),
  1204. smalltalk.Behavior);
  1205. smalltalk.addMethod(
  1206. unescape('_subclasses'),
  1207. smalltalk.method({
  1208. selector: unescape('subclasses'),
  1209. category: 'accessing',
  1210. fn: function (){
  1211. var self=this;
  1212. return smalltalk.subclasses(self);
  1213. return self;},
  1214. args: [],
  1215. source: unescape('subclasses%0A%09%3Creturn%20smalltalk.subclasses%28self%29%3E'),
  1216. messageSends: [],
  1217. referencedClasses: []
  1218. }),
  1219. smalltalk.Behavior);
  1220. smalltalk.addMethod(
  1221. unescape('_allSubclasses'),
  1222. smalltalk.method({
  1223. selector: unescape('allSubclasses'),
  1224. category: 'accessing',
  1225. fn: function (){
  1226. var self=this;
  1227. var result=nil;
  1228. result=smalltalk.send(self, "_subclasses", []);
  1229. smalltalk.send(smalltalk.send(self, "_subclasses", []), "_do_", [(function(each){return smalltalk.send(result, "_addAll_", [smalltalk.send(each, "_allSubclasses", [])]);})]);
  1230. return result;
  1231. return self;},
  1232. args: [],
  1233. source: unescape('allSubclasses%0A%09%7C%20result%20%7C%0A%09result%20%3A%3D%20self%20subclasses.%0A%09self%20subclasses%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20result%20addAll%3A%20each%20allSubclasses%5D.%0A%09%5Eresult'),
  1234. messageSends: ["subclasses", "do:", "addAll:", "allSubclasses"],
  1235. referencedClasses: []
  1236. }),
  1237. smalltalk.Behavior);
  1238. smalltalk.addMethod(
  1239. unescape('_withAllSubclasses'),
  1240. smalltalk.method({
  1241. selector: unescape('withAllSubclasses'),
  1242. category: 'accessing',
  1243. fn: function (){
  1244. var self=this;
  1245. return (function($rec){smalltalk.send($rec, "_addAll_", [smalltalk.send(self, "_allSubclasses", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.Array || Array), "_with_", [self]));
  1246. return self;},
  1247. args: [],
  1248. source: unescape('withAllSubclasses%0A%09%5E%28Array%20with%3A%20self%29%20addAll%3A%20self%20allSubclasses%3B%20yourself'),
  1249. messageSends: ["addAll:", "allSubclasses", "yourself", "with:"],
  1250. referencedClasses: [smalltalk.Array]
  1251. }),
  1252. smalltalk.Behavior);
  1253. smalltalk.addMethod(
  1254. unescape('_prototype'),
  1255. smalltalk.method({
  1256. selector: unescape('prototype'),
  1257. category: 'accessing',
  1258. fn: function (){
  1259. var self=this;
  1260. return self.fn.prototype;
  1261. return self;},
  1262. args: [],
  1263. source: unescape('prototype%0A%09%3Creturn%20self.fn.prototype%3E'),
  1264. messageSends: [],
  1265. referencedClasses: []
  1266. }),
  1267. smalltalk.Behavior);
  1268. smalltalk.addMethod(
  1269. unescape('_methodDictionary'),
  1270. smalltalk.method({
  1271. selector: unescape('methodDictionary'),
  1272. category: 'accessing',
  1273. fn: function (){
  1274. var self=this;
  1275. var dict = smalltalk.Dictionary._new();
  1276. var methods = self.fn.prototype.methods;
  1277. for(var i in methods) {
  1278. if(methods[i].selector) {
  1279. dict._at_put_(methods[i].selector, methods[i]);
  1280. }
  1281. };
  1282. return dict;
  1283. return self;},
  1284. args: [],
  1285. source: unescape('methodDictionary%0A%09%3Cvar%20dict%20%3D%20smalltalk.Dictionary._new%28%29%3B%0A%09var%20methods%20%3D%20self.fn.prototype.methods%3B%0A%09for%28var%20i%20in%20methods%29%20%7B%0A%09%09if%28methods%5Bi%5D.selector%29%20%7B%0A%09%09%09dict._at_put_%28methods%5Bi%5D.selector%2C%20methods%5Bi%5D%29%3B%0A%09%09%7D%0A%09%7D%3B%0A%09return%20dict%3E'),
  1286. messageSends: [],
  1287. referencedClasses: []
  1288. }),
  1289. smalltalk.Behavior);
  1290. smalltalk.addMethod(
  1291. unescape('_methodsFor_'),
  1292. smalltalk.method({
  1293. selector: unescape('methodsFor%3A'),
  1294. category: 'accessing',
  1295. fn: function (aString){
  1296. var self=this;
  1297. return (function($rec){smalltalk.send($rec, "_class_category_", [self, aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.ClassCategoryReader || ClassCategoryReader), "_new", []));
  1298. return self;},
  1299. args: ["aString"],
  1300. source: unescape('methodsFor%3A%20aString%0A%09%5EClassCategoryReader%20new%0A%09%20%20%20%20class%3A%20self%20category%3A%20aString%3B%0A%09%20%20%20%20yourself'),
  1301. messageSends: ["class:category:", "yourself", "new"],
  1302. referencedClasses: [smalltalk.nil]
  1303. }),
  1304. smalltalk.Behavior);
  1305. smalltalk.addMethod(
  1306. unescape('_addCompiledMethod_'),
  1307. smalltalk.method({
  1308. selector: unescape('addCompiledMethod%3A'),
  1309. category: 'accessing',
  1310. fn: function (aMethod){
  1311. var self=this;
  1312. smalltalk.addMethod(aMethod.selector._asSelector(), aMethod, self);
  1313. return self;},
  1314. args: ["aMethod"],
  1315. source: unescape('addCompiledMethod%3A%20aMethod%0A%09%3Csmalltalk.addMethod%28aMethod.selector._asSelector%28%29%2C%20aMethod%2C%20self%29%3E'),
  1316. messageSends: [],
  1317. referencedClasses: []
  1318. }),
  1319. smalltalk.Behavior);
  1320. smalltalk.addMethod(
  1321. unescape('_instanceVariableNames'),
  1322. smalltalk.method({
  1323. selector: unescape('instanceVariableNames'),
  1324. category: 'accessing',
  1325. fn: function (){
  1326. var self=this;
  1327. return self.iVarNames;
  1328. return self;},
  1329. args: [],
  1330. source: unescape('instanceVariableNames%0A%09%3Creturn%20self.iVarNames%3E'),
  1331. messageSends: [],
  1332. referencedClasses: []
  1333. }),
  1334. smalltalk.Behavior);
  1335. smalltalk.addMethod(
  1336. unescape('_comment'),
  1337. smalltalk.method({
  1338. selector: unescape('comment'),
  1339. category: 'accessing',
  1340. fn: function (){
  1341. var self=this;
  1342. return (($receiver = smalltalk.send(self, "_basicAt_", ["comment"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  1343. return self;},
  1344. args: [],
  1345. source: unescape('comment%0A%20%20%20%20%5E%28self%20basicAt%3A%20%27comment%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1346. messageSends: ["ifNil:", "basicAt:"],
  1347. referencedClasses: []
  1348. }),
  1349. smalltalk.Behavior);
  1350. smalltalk.addMethod(
  1351. unescape('_comment_'),
  1352. smalltalk.method({
  1353. selector: unescape('comment%3A'),
  1354. category: 'accessing',
  1355. fn: function (aString){
  1356. var self=this;
  1357. smalltalk.send(self, "_basicAt_put_", ["comment", aString]);
  1358. return self;},
  1359. args: ["aString"],
  1360. source: unescape('comment%3A%20aString%0A%20%20%20%20self%20basicAt%3A%20%27comment%27%20put%3A%20aString'),
  1361. messageSends: ["basicAt:put:"],
  1362. referencedClasses: []
  1363. }),
  1364. smalltalk.Behavior);
  1365. smalltalk.addMethod(
  1366. unescape('_commentStamp'),
  1367. smalltalk.method({
  1368. selector: unescape('commentStamp'),
  1369. category: 'accessing',
  1370. fn: function (){
  1371. var self=this;
  1372. return (function($rec){smalltalk.send($rec, "_class_", [self]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.ClassCommentReader || ClassCommentReader), "_new", []));
  1373. return self;},
  1374. args: [],
  1375. source: unescape('commentStamp%0A%20%20%20%20%5EClassCommentReader%20new%0A%09class%3A%20self%3B%0A%09yourself'),
  1376. messageSends: ["class:", "yourself", "new"],
  1377. referencedClasses: [smalltalk.nil]
  1378. }),
  1379. smalltalk.Behavior);
  1380. smalltalk.addMethod(
  1381. unescape('_removeCompiledMethod_'),
  1382. smalltalk.method({
  1383. selector: unescape('removeCompiledMethod%3A'),
  1384. category: 'accessing',
  1385. fn: function (aMethod){
  1386. var self=this;
  1387. delete self.fn.prototype[aMethod.selector._asSelector()];
  1388. delete self.fn.prototype.methods[aMethod.selector];
  1389. smalltalk.init(self);;
  1390. return self;},
  1391. args: ["aMethod"],
  1392. source: unescape('removeCompiledMethod%3A%20aMethod%0A%09%3Cdelete%20self.fn.prototype%5BaMethod.selector._asSelector%28%29%5D%3B%0A%09delete%20self.fn.prototype.methods%5BaMethod.selector%5D%3B%0A%09smalltalk.init%28self%29%3B%3E'),
  1393. messageSends: [],
  1394. referencedClasses: []
  1395. }),
  1396. smalltalk.Behavior);
  1397. smalltalk.addMethod(
  1398. unescape('_inheritsFrom_'),
  1399. smalltalk.method({
  1400. selector: unescape('inheritsFrom%3A'),
  1401. category: 'instance creation',
  1402. fn: function (aClass){
  1403. var self=this;
  1404. return smalltalk.send(smalltalk.send(aClass, "_allSubclasses", []), "_includes_", [self]);
  1405. return self;},
  1406. args: ["aClass"],
  1407. source: unescape('inheritsFrom%3A%20aClass%0A%09%5EaClass%20allSubclasses%20includes%3A%20self'),
  1408. messageSends: ["includes:", "allSubclasses"],
  1409. referencedClasses: []
  1410. }),
  1411. smalltalk.Behavior);
  1412. smalltalk.addMethod(
  1413. unescape('_protocols'),
  1414. smalltalk.method({
  1415. selector: unescape('protocols'),
  1416. category: 'accessing',
  1417. fn: function (){
  1418. var self=this;
  1419. var protocols=nil;
  1420. protocols=smalltalk.send((smalltalk.Array || Array), "_new", []);
  1421. smalltalk.send(smalltalk.send(self, "_methodDictionary", []), "_do_", [(function(each){return ((($receiver = smalltalk.send(protocols, "_includes_", [smalltalk.send(each, "_category", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(protocols, "_add_", [smalltalk.send(each, "_category", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(protocols, "_add_", [smalltalk.send(each, "_category", [])]);})]));})]);
  1422. return smalltalk.send(protocols, "_sort", []);
  1423. return self;},
  1424. args: [],
  1425. source: unescape('protocols%0A%20%20%20%20%7C%20protocols%20%7C%0A%20%20%20%20protocols%20%3A%3D%20Array%20new.%0A%20%20%20%20self%20methodDictionary%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20%28protocols%20includes%3A%20each%20category%29%20ifFalse%3A%20%5B%0A%09%09protocols%20add%3A%20each%20category%5D%5D.%0A%20%20%20%20%5Eprotocols%20sort'),
  1426. messageSends: ["new", "do:", "methodDictionary", "ifFalse:", "includes:", "category", "add:", "sort"],
  1427. referencedClasses: [smalltalk.Array]
  1428. }),
  1429. smalltalk.Behavior);
  1430. smalltalk.addMethod(
  1431. unescape('_protocolsDo_'),
  1432. smalltalk.method({
  1433. selector: unescape('protocolsDo%3A'),
  1434. category: 'accessing',
  1435. fn: function (aBlock){
  1436. var self=this;
  1437. var methodsByCategory=nil;
  1438. methodsByCategory=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  1439. smalltalk.send(smalltalk.send(smalltalk.send(self, "_methodDictionary", []), "_values", []), "_do_", [(function(m){return smalltalk.send(smalltalk.send(methodsByCategory, "_at_ifAbsentPut_", [smalltalk.send(m, "_category", []), (function(){return smalltalk.send((smalltalk.Array || Array), "_new", []);})]), "_add_", [m]);})]);
  1440. smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(category){return smalltalk.send(aBlock, "_value_value_", [category, smalltalk.send(methodsByCategory, "_at_", [category])]);})]);
  1441. return self;},
  1442. args: ["aBlock"],
  1443. source: unescape('protocolsDo%3A%20aBlock%0A%09%22Execute%20aBlock%20for%20each%20method%20category%20with%0A%09its%20collection%20of%20methods%20in%20the%20sort%20order%20of%20category%20name.%22%0A%0A%09%7C%20methodsByCategory%20%7C%0A%09methodsByCategory%20%3A%3D%20Dictionary%20new.%0A%09self%20methodDictionary%20values%20do%3A%20%5B%3Am%20%7C%0A%09%09%28methodsByCategory%20at%3A%20m%20category%20ifAbsentPut%3A%20%5BArray%20new%5D%29%0A%20%09%09%09add%3A%20m%5D.%20%0A%09self%20protocols%20do%3A%20%5B%3Acategory%20%7C%0A%09%09aBlock%20value%3A%20category%20value%3A%20%28methodsByCategory%20at%3A%20category%29%5D'),
  1444. messageSends: ["new", "do:", "values", "methodDictionary", "add:", "at:ifAbsentPut:", "category", "protocols", "value:value:", "at:"],
  1445. referencedClasses: [smalltalk.nil,smalltalk.Array]
  1446. }),
  1447. smalltalk.Behavior);
  1448. smalltalk.addMethod(
  1449. unescape('_allInstanceVariableNames'),
  1450. smalltalk.method({
  1451. selector: unescape('allInstanceVariableNames'),
  1452. category: 'accessing',
  1453. fn: function (){
  1454. var self=this;
  1455. var result=nil;
  1456. result=smalltalk.send(smalltalk.send(self, "_instanceVariableNames", []), "_copy", []);
  1457. (($receiver = smalltalk.send(self, "_superclass", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(result, "_addAll_", [smalltalk.send(smalltalk.send(self, "_superclass", []), "_allInstanceVariableNames", [])]);})() : nil;
  1458. return result;
  1459. return self;},
  1460. args: [],
  1461. source: unescape('allInstanceVariableNames%0A%09%7C%20result%20%7C%0A%09result%20%3A%3D%20self%20instanceVariableNames%20copy.%0A%09self%20superclass%20ifNotNil%3A%20%5B%0A%09%20%20%20%20result%20addAll%3A%20self%20superclass%20allInstanceVariableNames%5D.%0A%09%5Eresult'),
  1462. messageSends: ["copy", "instanceVariableNames", "ifNotNil:", "superclass", "addAll:", "allInstanceVariableNames"],
  1463. referencedClasses: []
  1464. }),
  1465. smalltalk.Behavior);
  1466. smalltalk.addMethod(
  1467. unescape('_methodAt_'),
  1468. smalltalk.method({
  1469. selector: unescape('methodAt%3A'),
  1470. category: 'accessing',
  1471. fn: function (aString){
  1472. var self=this;
  1473. return smalltalk.methods(self)[aString];
  1474. return self;},
  1475. args: ["aString"],
  1476. source: unescape('methodAt%3A%20aString%0A%09%3Creturn%20smalltalk.methods%28self%29%5BaString%5D%3E'),
  1477. messageSends: [],
  1478. referencedClasses: []
  1479. }),
  1480. smalltalk.Behavior);
  1481. smalltalk.addMethod(
  1482. unescape('_methodsFor_stamp_'),
  1483. smalltalk.method({
  1484. selector: unescape('methodsFor%3Astamp%3A'),
  1485. category: 'accessing',
  1486. fn: function (aString, aStamp){
  1487. var self=this;
  1488. return smalltalk.send(self, "_methodsFor_", [aString]);
  1489. return self;},
  1490. args: ["aString", "aStamp"],
  1491. source: unescape('methodsFor%3A%20aString%20stamp%3A%20aStamp%0A%09%22Added%20for%20compatibility%2C%20right%20now%20ignores%20stamp.%22%0A%09%5Eself%20methodsFor%3A%20aString'),
  1492. messageSends: ["methodsFor:"],
  1493. referencedClasses: []
  1494. }),
  1495. smalltalk.Behavior);
  1496. smalltalk.addMethod(
  1497. unescape('_commentStamp_prior_'),
  1498. smalltalk.method({
  1499. selector: unescape('commentStamp%3Aprior%3A'),
  1500. category: 'accessing',
  1501. fn: function (aStamp, prior){
  1502. var self=this;
  1503. return smalltalk.send(self, "_commentStamp", []);
  1504. return self;},
  1505. args: ["aStamp", "prior"],
  1506. source: unescape('commentStamp%3A%20aStamp%20prior%3A%20prior%0A%20%20%20%20%20%20%20%20%5Eself%20commentStamp'),
  1507. messageSends: ["commentStamp"],
  1508. referencedClasses: []
  1509. }),
  1510. smalltalk.Behavior);
  1511. smalltalk.addMethod(
  1512. unescape('_compile_'),
  1513. smalltalk.method({
  1514. selector: unescape('compile%3A'),
  1515. category: 'compiling',
  1516. fn: function (aString){
  1517. var self=this;
  1518. smalltalk.send(self, "_compile_category_", [aString, ""]);
  1519. return self;},
  1520. args: ["aString"],
  1521. source: unescape('compile%3A%20aString%0A%09self%20compile%3A%20aString%20category%3A%20%27%27'),
  1522. messageSends: ["compile:category:"],
  1523. referencedClasses: []
  1524. }),
  1525. smalltalk.Behavior);
  1526. smalltalk.addMethod(
  1527. unescape('_compile_category_'),
  1528. smalltalk.method({
  1529. selector: unescape('compile%3Acategory%3A'),
  1530. category: 'compiling',
  1531. fn: function (aString, anotherString){
  1532. var self=this;
  1533. var method=nil;
  1534. method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self]);
  1535. smalltalk.send(method, "_category_", [anotherString]);
  1536. smalltalk.send(self, "_addCompiledMethod_", [method]);
  1537. return self;},
  1538. args: ["aString", "anotherString"],
  1539. source: unescape('compile%3A%20aString%20category%3A%20anotherString%0A%09%7C%20method%20%7C%0A%09method%20%3A%3D%20Compiler%20new%20load%3A%20aString%20forClass%3A%20self.%0A%09method%20category%3A%20anotherString.%0A%09self%20addCompiledMethod%3A%20method'),
  1540. messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
  1541. referencedClasses: [smalltalk.nil]
  1542. }),
  1543. smalltalk.Behavior);
  1544. smalltalk.addClass('Class', smalltalk.Behavior, [], 'Kernel');
  1545. smalltalk.addMethod(
  1546. unescape('_category'),
  1547. smalltalk.method({
  1548. selector: unescape('category'),
  1549. category: 'accessing',
  1550. fn: function (){
  1551. var self=this;
  1552. return (($receiver = smalltalk.send(self, "_package", [])) == nil || $receiver == undefined) ? (function(){return "Unclassified";})() : (function(){return smalltalk.send(smalltalk.send(self, "_package", []), "_name", []);})();
  1553. return self;},
  1554. args: [],
  1555. source: unescape('category%0A%09%5Eself%20package%20ifNil%3A%20%5B%27Unclassified%27%5D%20ifNotNil%3A%20%5Bself%20package%20name%5D'),
  1556. messageSends: ["ifNil:ifNotNil:", "package", "name"],
  1557. referencedClasses: []
  1558. }),
  1559. smalltalk.Class);
  1560. smalltalk.addMethod(
  1561. unescape('_subclass_instanceVariableNames_'),
  1562. smalltalk.method({
  1563. selector: unescape('subclass%3AinstanceVariableNames%3A'),
  1564. category: 'class creation',
  1565. fn: function (aString, anotherString){
  1566. var self=this;
  1567. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
  1568. return self;},
  1569. args: ["aString", "anotherString"],
  1570. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%0A%09%22Kept%20for%20compatibility.%22%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%20package%3A%20nil'),
  1571. messageSends: ["subclass:instanceVariableNames:package:"],
  1572. referencedClasses: []
  1573. }),
  1574. smalltalk.Class);
  1575. smalltalk.addMethod(
  1576. unescape('_subclass_instanceVariableNames_category_'),
  1577. smalltalk.method({
  1578. selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
  1579. category: 'class creation',
  1580. fn: function (aString, aString2, aString3){
  1581. var self=this;
  1582. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  1583. return self;},
  1584. args: ["aString", "aString2", "aString3"],
  1585. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20category%3A%20aString3%0A%09%22Kept%20for%20compatibility.%22%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  1586. messageSends: ["subclass:instanceVariableNames:package:"],
  1587. referencedClasses: []
  1588. }),
  1589. smalltalk.Class);
  1590. smalltalk.addMethod(
  1591. unescape('_isClass'),
  1592. smalltalk.method({
  1593. selector: unescape('isClass'),
  1594. category: 'testing',
  1595. fn: function (){
  1596. var self=this;
  1597. return true;
  1598. return self;},
  1599. args: [],
  1600. source: unescape('isClass%0A%09%5Etrue'),
  1601. messageSends: [],
  1602. referencedClasses: []
  1603. }),
  1604. smalltalk.Class);
  1605. smalltalk.addMethod(
  1606. unescape('_printString'),
  1607. smalltalk.method({
  1608. selector: unescape('printString'),
  1609. category: 'printing',
  1610. fn: function (){
  1611. var self=this;
  1612. return smalltalk.send(self, "_name", []);
  1613. return self;},
  1614. args: [],
  1615. source: unescape('printString%0A%09%5Eself%20name'),
  1616. messageSends: ["name"],
  1617. referencedClasses: []
  1618. }),
  1619. smalltalk.Class);
  1620. smalltalk.addMethod(
  1621. unescape('_rename_'),
  1622. smalltalk.method({
  1623. selector: unescape('rename%3A'),
  1624. category: 'accessing',
  1625. fn: function (aString){
  1626. var self=this;
  1627. smalltalk[aString] = self;
  1628. delete smalltalk[self.className];
  1629. self.className = aString;
  1630. ;
  1631. return self;},
  1632. args: ["aString"],
  1633. source: unescape('rename%3A%20aString%0A%09%3C%0A%09%09smalltalk%5BaString%5D%20%3D%20self%3B%0A%09%09delete%20smalltalk%5Bself.className%5D%3B%0A%09%09self.className%20%3D%20aString%3B%0A%09%3E'),
  1634. messageSends: [],
  1635. referencedClasses: []
  1636. }),
  1637. smalltalk.Class);
  1638. smalltalk.addMethod(
  1639. unescape('_subclass_instanceVariableNames_classVariableNames_poolDictionaries_category_'),
  1640. smalltalk.method({
  1641. selector: unescape('subclass%3AinstanceVariableNames%3AclassVariableNames%3ApoolDictionaries%3Acategory%3A'),
  1642. category: 'class creation',
  1643. fn: function (aString, aString2, classVars, pools, aString3){
  1644. var self=this;
  1645. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  1646. return self;},
  1647. args: ["aString", "aString2", "classVars", "pools", "aString3"],
  1648. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20classVariableNames%3A%20classVars%20poolDictionaries%3A%20pools%20category%3A%20aString3%0A%09%22Just%20ignore%20class%20variables%20and%20pools.%20Added%20for%20compatibility.%22%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  1649. messageSends: ["subclass:instanceVariableNames:package:"],
  1650. referencedClasses: []
  1651. }),
  1652. smalltalk.Class);
  1653. smalltalk.addMethod(
  1654. unescape('_package'),
  1655. smalltalk.method({
  1656. selector: unescape('package'),
  1657. category: 'accessing',
  1658. fn: function (){
  1659. var self=this;
  1660. return self.pkg;
  1661. return self;},
  1662. args: [],
  1663. source: unescape('package%0A%09%3Creturn%20self.pkg%3E'),
  1664. messageSends: [],
  1665. referencedClasses: []
  1666. }),
  1667. smalltalk.Class);
  1668. smalltalk.addMethod(
  1669. unescape('_package_'),
  1670. smalltalk.method({
  1671. selector: unescape('package%3A'),
  1672. category: 'accessing',
  1673. fn: function (aPackage){
  1674. var self=this;
  1675. self.pkg = aPackage;
  1676. return self;},
  1677. args: ["aPackage"],
  1678. source: unescape('package%3A%20aPackage%0A%09%3Cself.pkg%20%3D%20aPackage%3E'),
  1679. messageSends: [],
  1680. referencedClasses: []
  1681. }),
  1682. smalltalk.Class);
  1683. smalltalk.addMethod(
  1684. unescape('_subclass_instanceVariableNames_package_'),
  1685. smalltalk.method({
  1686. selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
  1687. category: 'class creation',
  1688. fn: function (aString, aString2, aString3){
  1689. var self=this;
  1690. return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
  1691. return self;},
  1692. args: ["aString", "aString2", "aString3"],
  1693. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3%0A%09%5EClassBuilder%20new%0A%09%20%20%20%20superclass%3A%20self%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  1694. messageSends: ["superclass:subclass:instanceVariableNames:package:", "new"],
  1695. referencedClasses: [smalltalk.nil]
  1696. }),
  1697. smalltalk.Class);
  1698. smalltalk.addClass('Metaclass', smalltalk.Behavior, [], 'Kernel');
  1699. smalltalk.addMethod(
  1700. unescape('_instanceClass'),
  1701. smalltalk.method({
  1702. selector: unescape('instanceClass'),
  1703. category: 'accessing',
  1704. fn: function (){
  1705. var self=this;
  1706. return self.instanceClass;
  1707. return self;},
  1708. args: [],
  1709. source: unescape('instanceClass%0A%09%3Creturn%20self.instanceClass%3E'),
  1710. messageSends: [],
  1711. referencedClasses: []
  1712. }),
  1713. smalltalk.Metaclass);
  1714. smalltalk.addMethod(
  1715. unescape('_instanceVariableNames_'),
  1716. smalltalk.method({
  1717. selector: unescape('instanceVariableNames%3A'),
  1718. category: 'accessing',
  1719. fn: function (aCollection){
  1720. var self=this;
  1721. smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_class_instanceVariableNames_", [self, aCollection]);
  1722. return self;},
  1723. args: ["aCollection"],
  1724. source: unescape('instanceVariableNames%3A%20aCollection%0A%09ClassBuilder%20new%0A%09%20%20%20%20class%3A%20self%20instanceVariableNames%3A%20aCollection'),
  1725. messageSends: ["class:instanceVariableNames:", "new"],
  1726. referencedClasses: [smalltalk.nil]
  1727. }),
  1728. smalltalk.Metaclass);
  1729. smalltalk.addMethod(
  1730. unescape('_isMetaclass'),
  1731. smalltalk.method({
  1732. selector: unescape('isMetaclass'),
  1733. category: 'testing',
  1734. fn: function (){
  1735. var self=this;
  1736. return true;
  1737. return self;},
  1738. args: [],
  1739. source: unescape('isMetaclass%0A%09%5Etrue'),
  1740. messageSends: [],
  1741. referencedClasses: []
  1742. }),
  1743. smalltalk.Metaclass);
  1744. smalltalk.addMethod(
  1745. unescape('_printString'),
  1746. smalltalk.method({
  1747. selector: unescape('printString'),
  1748. category: 'printing',
  1749. fn: function (){
  1750. var self=this;
  1751. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_instanceClass", []), "_name", []), "__comma", [" class"]);
  1752. return self;},
  1753. args: [],
  1754. source: unescape('printString%0A%09%5Eself%20instanceClass%20name%2C%20%27%20class%27'),
  1755. messageSends: [unescape("%2C"), "name", "instanceClass"],
  1756. referencedClasses: []
  1757. }),
  1758. smalltalk.Metaclass);
  1759. smalltalk.addClass('CompiledMethod', smalltalk.Object, [], 'Kernel');
  1760. smalltalk.addMethod(
  1761. unescape('_source'),
  1762. smalltalk.method({
  1763. selector: unescape('source'),
  1764. category: 'accessing',
  1765. fn: function (){
  1766. var self=this;
  1767. return (($receiver = smalltalk.send(self, "_basicAt_", ["source"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  1768. return self;},
  1769. args: [],
  1770. source: unescape('source%0A%09%5E%28self%20basicAt%3A%20%27source%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1771. messageSends: ["ifNil:", "basicAt:"],
  1772. referencedClasses: []
  1773. }),
  1774. smalltalk.CompiledMethod);
  1775. smalltalk.addMethod(
  1776. unescape('_source_'),
  1777. smalltalk.method({
  1778. selector: unescape('source%3A'),
  1779. category: 'accessing',
  1780. fn: function (aString){
  1781. var self=this;
  1782. smalltalk.send(self, "_basicAt_put_", ["source", aString]);
  1783. return self;},
  1784. args: ["aString"],
  1785. source: unescape('source%3A%20aString%0A%09self%20basicAt%3A%20%27source%27%20put%3A%20aString'),
  1786. messageSends: ["basicAt:put:"],
  1787. referencedClasses: []
  1788. }),
  1789. smalltalk.CompiledMethod);
  1790. smalltalk.addMethod(
  1791. unescape('_category'),
  1792. smalltalk.method({
  1793. selector: unescape('category'),
  1794. category: 'accessing',
  1795. fn: function (){
  1796. var self=this;
  1797. return (($receiver = smalltalk.send(self, "_basicAt_", ["category"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  1798. return self;},
  1799. args: [],
  1800. source: unescape('category%0A%09%5E%28self%20basicAt%3A%20%27category%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1801. messageSends: ["ifNil:", "basicAt:"],
  1802. referencedClasses: []
  1803. }),
  1804. smalltalk.CompiledMethod);
  1805. smalltalk.addMethod(
  1806. unescape('_category_'),
  1807. smalltalk.method({
  1808. selector: unescape('category%3A'),
  1809. category: 'accessing',
  1810. fn: function (aString){
  1811. var self=this;
  1812. smalltalk.send(self, "_basicAt_put_", ["category", aString]);
  1813. return self;},
  1814. args: ["aString"],
  1815. source: unescape('category%3A%20aString%0A%09self%20basicAt%3A%20%27category%27%20put%3A%20aString'),
  1816. messageSends: ["basicAt:put:"],
  1817. referencedClasses: []
  1818. }),
  1819. smalltalk.CompiledMethod);
  1820. smalltalk.addMethod(
  1821. unescape('_selector'),
  1822. smalltalk.method({
  1823. selector: unescape('selector'),
  1824. category: 'accessing',
  1825. fn: function (){
  1826. var self=this;
  1827. return smalltalk.send(self, "_basicAt_", ["selector"]);
  1828. return self;},
  1829. args: [],
  1830. source: unescape('selector%0A%09%5Eself%20basicAt%3A%20%27selector%27'),
  1831. messageSends: ["basicAt:"],
  1832. referencedClasses: []
  1833. }),
  1834. smalltalk.CompiledMethod);
  1835. smalltalk.addMethod(
  1836. unescape('_selector_'),
  1837. smalltalk.method({
  1838. selector: unescape('selector%3A'),
  1839. category: 'accessing',
  1840. fn: function (aString){
  1841. var self=this;
  1842. smalltalk.send(self, "_basicAt_put_", ["selector", aString]);
  1843. return self;},
  1844. args: ["aString"],
  1845. source: unescape('selector%3A%20aString%0A%09self%20basicAt%3A%20%27selector%27%20put%3A%20aString'),
  1846. messageSends: ["basicAt:put:"],
  1847. referencedClasses: []
  1848. }),
  1849. smalltalk.CompiledMethod);
  1850. smalltalk.addMethod(
  1851. unescape('_fn'),
  1852. smalltalk.method({
  1853. selector: unescape('fn'),
  1854. category: 'accessing',
  1855. fn: function (){
  1856. var self=this;
  1857. return smalltalk.send(self, "_basicAt_", ["fn"]);
  1858. return self;},
  1859. args: [],
  1860. source: unescape('fn%0A%09%5Eself%20basicAt%3A%20%27fn%27'),
  1861. messageSends: ["basicAt:"],
  1862. referencedClasses: []
  1863. }),
  1864. smalltalk.CompiledMethod);
  1865. smalltalk.addMethod(
  1866. unescape('_fn_'),
  1867. smalltalk.method({
  1868. selector: unescape('fn%3A'),
  1869. category: 'accessing',
  1870. fn: function (aBlock){
  1871. var self=this;
  1872. smalltalk.send(self, "_basicAt_put_", ["fn", aBlock]);
  1873. return self;},
  1874. args: ["aBlock"],
  1875. source: unescape('fn%3A%20aBlock%0A%09self%20basicAt%3A%20%27fn%27%20put%3A%20aBlock'),
  1876. messageSends: ["basicAt:put:"],
  1877. referencedClasses: []
  1878. }),
  1879. smalltalk.CompiledMethod);
  1880. smalltalk.addMethod(
  1881. unescape('_messageSends'),
  1882. smalltalk.method({
  1883. selector: unescape('messageSends'),
  1884. category: 'accessing',
  1885. fn: function (){
  1886. var self=this;
  1887. return smalltalk.send(self, "_basicAt_", ["messageSends"]);
  1888. return self;},
  1889. args: [],
  1890. source: unescape('messageSends%0A%09%5Eself%20basicAt%3A%20%27messageSends%27'),
  1891. messageSends: ["basicAt:"],
  1892. referencedClasses: []
  1893. }),
  1894. smalltalk.CompiledMethod);
  1895. smalltalk.addMethod(
  1896. unescape('_methodClass'),
  1897. smalltalk.method({
  1898. selector: unescape('methodClass'),
  1899. category: 'accessing',
  1900. fn: function (){
  1901. var self=this;
  1902. return smalltalk.send(self, "_basicAt_", ["methodClass"]);
  1903. return self;},
  1904. args: [],
  1905. source: unescape('methodClass%0A%09%5Eself%20basicAt%3A%20%27methodClass%27'),
  1906. messageSends: ["basicAt:"],
  1907. referencedClasses: []
  1908. }),
  1909. smalltalk.CompiledMethod);
  1910. smalltalk.addMethod(
  1911. unescape('_referencedClasses'),
  1912. smalltalk.method({
  1913. selector: unescape('referencedClasses'),
  1914. category: 'accessing',
  1915. fn: function (){
  1916. var self=this;
  1917. return smalltalk.send(self, "_basicAt_", ["referencedClasses"]);
  1918. return self;},
  1919. args: [],
  1920. source: unescape('referencedClasses%0A%09%5Eself%20basicAt%3A%20%27referencedClasses%27'),
  1921. messageSends: ["basicAt:"],
  1922. referencedClasses: []
  1923. }),
  1924. smalltalk.CompiledMethod);
  1925. smalltalk.addMethod(
  1926. unescape('_arguments'),
  1927. smalltalk.method({
  1928. selector: unescape('arguments'),
  1929. category: 'accessing',
  1930. fn: function (){
  1931. var self=this;
  1932. return self.args || [];
  1933. return self;},
  1934. args: [],
  1935. source: unescape('arguments%0A%09%3Creturn%20self.args%20%7C%7C%20%5B%5D%3E'),
  1936. messageSends: [],
  1937. referencedClasses: []
  1938. }),
  1939. smalltalk.CompiledMethod);
  1940. smalltalk.addClass('Number', smalltalk.Object, [], 'Kernel');
  1941. smalltalk.addMethod(
  1942. unescape('__eq'),
  1943. smalltalk.method({
  1944. selector: unescape('%3D'),
  1945. category: 'comparing',
  1946. fn: function (aNumber){
  1947. var self=this;
  1948. try{((($receiver = smalltalk.send(smalltalk.send(aNumber, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  1949. return Number(self) == aNumber;
  1950. return self;
  1951. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  1952. args: ["aNumber"],
  1953. source: unescape('%3D%20aNumber%0A%09aNumber%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%20%0A%09%3Creturn%20Number%28self%29%20%3D%3D%20aNumber%3E'),
  1954. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  1955. referencedClasses: []
  1956. }),
  1957. smalltalk.Number);
  1958. smalltalk.addMethod(
  1959. unescape('__gt'),
  1960. smalltalk.method({
  1961. selector: unescape('%3E'),
  1962. category: 'comparing',
  1963. fn: function (aNumber){
  1964. var self=this;
  1965. return self > aNumber;
  1966. return self;},
  1967. args: ["aNumber"],
  1968. source: unescape('%3E%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3E%3E%20aNumber%3E'),
  1969. messageSends: [],
  1970. referencedClasses: []
  1971. }),
  1972. smalltalk.Number);
  1973. smalltalk.addMethod(
  1974. unescape('__lt'),
  1975. smalltalk.method({
  1976. selector: unescape('%3C'),
  1977. category: 'comparing',
  1978. fn: function (aNumber){
  1979. var self=this;
  1980. return self < aNumber;
  1981. return self;},
  1982. args: ["aNumber"],
  1983. source: unescape('%3C%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3C%20aNumber%3E'),
  1984. messageSends: [],
  1985. referencedClasses: []
  1986. }),
  1987. smalltalk.Number);
  1988. smalltalk.addMethod(
  1989. unescape('__gt_eq'),
  1990. smalltalk.method({
  1991. selector: unescape('%3E%3D'),
  1992. category: 'comparing',
  1993. fn: function (aNumber){
  1994. var self=this;
  1995. return self >= aNumber;
  1996. return self;},
  1997. args: ["aNumber"],
  1998. source: unescape('%3E%3D%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3E%3E%3D%20aNumber%3E'),
  1999. messageSends: [],
  2000. referencedClasses: []
  2001. }),
  2002. smalltalk.Number);
  2003. smalltalk.addMethod(
  2004. unescape('__lt_eq'),
  2005. smalltalk.method({
  2006. selector: unescape('%3C%3D'),
  2007. category: 'comparing',
  2008. fn: function (aNumber){
  2009. var self=this;
  2010. return self <= aNumber;
  2011. return self;},
  2012. args: ["aNumber"],
  2013. source: unescape('%3C%3D%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3C%3D%20aNumber%3E'),
  2014. messageSends: [],
  2015. referencedClasses: []
  2016. }),
  2017. smalltalk.Number);
  2018. smalltalk.addMethod(
  2019. unescape('__plus'),
  2020. smalltalk.method({
  2021. selector: unescape('+'),
  2022. category: 'arithmetic',
  2023. fn: function (aNumber){
  2024. var self=this;
  2025. return self + aNumber;
  2026. return self;},
  2027. args: ["aNumber"],
  2028. source: unescape('+%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20+%20aNumber%3E'),
  2029. messageSends: [],
  2030. referencedClasses: []
  2031. }),
  2032. smalltalk.Number);
  2033. smalltalk.addMethod(
  2034. unescape('__minus'),
  2035. smalltalk.method({
  2036. selector: unescape('-'),
  2037. category: 'arithmetic',
  2038. fn: function (aNumber){
  2039. var self=this;
  2040. return self - aNumber;
  2041. return self;},
  2042. args: ["aNumber"],
  2043. source: unescape('-%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20-%20aNumber%3E'),
  2044. messageSends: [],
  2045. referencedClasses: []
  2046. }),
  2047. smalltalk.Number);
  2048. smalltalk.addMethod(
  2049. unescape('__star'),
  2050. smalltalk.method({
  2051. selector: unescape('*'),
  2052. category: 'arithmetic',
  2053. fn: function (aNumber){
  2054. var self=this;
  2055. return self * aNumber;
  2056. return self;},
  2057. args: ["aNumber"],
  2058. source: unescape('*%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20*%20aNumber%3E'),
  2059. messageSends: [],
  2060. referencedClasses: []
  2061. }),
  2062. smalltalk.Number);
  2063. smalltalk.addMethod(
  2064. unescape('__slash'),
  2065. smalltalk.method({
  2066. selector: unescape('/'),
  2067. category: 'arithmetic',
  2068. fn: function (aNumber){
  2069. var self=this;
  2070. return self / aNumber;
  2071. return self;},
  2072. args: ["aNumber"],
  2073. source: unescape('/%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20/%20aNumber%3E'),
  2074. messageSends: [],
  2075. referencedClasses: []
  2076. }),
  2077. smalltalk.Number);
  2078. smalltalk.addMethod(
  2079. unescape('_max_'),
  2080. smalltalk.method({
  2081. selector: unescape('max%3A'),
  2082. category: 'arithmetic',
  2083. fn: function (aNumber){
  2084. var self=this;
  2085. return Math.max(self, aNumber);;
  2086. return self;},
  2087. args: ["aNumber"],
  2088. source: unescape('max%3A%20aNumber%0A%09%3Creturn%20Math.max%28self%2C%20aNumber%29%3B%3E'),
  2089. messageSends: [],
  2090. referencedClasses: []
  2091. }),
  2092. smalltalk.Number);
  2093. smalltalk.addMethod(
  2094. unescape('_min_'),
  2095. smalltalk.method({
  2096. selector: unescape('min%3A'),
  2097. category: 'arithmetic',
  2098. fn: function (aNumber){
  2099. var self=this;
  2100. return Math.min(self, aNumber);;
  2101. return self;},
  2102. args: ["aNumber"],
  2103. source: unescape('min%3A%20aNumber%0A%09%3Creturn%20Math.min%28self%2C%20aNumber%29%3B%3E'),
  2104. messageSends: [],
  2105. referencedClasses: []
  2106. }),
  2107. smalltalk.Number);
  2108. smalltalk.addMethod(
  2109. unescape('_rounded'),
  2110. smalltalk.method({
  2111. selector: unescape('rounded'),
  2112. category: 'converting',
  2113. fn: function (){
  2114. var self=this;
  2115. return Math.round(self);;
  2116. return self;},
  2117. args: [],
  2118. source: unescape('rounded%0A%09%3Creturn%20Math.round%28self%29%3B%3E'),
  2119. messageSends: [],
  2120. referencedClasses: []
  2121. }),
  2122. smalltalk.Number);
  2123. smalltalk.addMethod(
  2124. unescape('_truncated'),
  2125. smalltalk.method({
  2126. selector: unescape('truncated'),
  2127. category: 'converting',
  2128. fn: function (){
  2129. var self=this;
  2130. var result=nil;
  2131. ((($receiver = self >= (0)).klass === smalltalk.Boolean) ? ($receiver ? (function(){return result = Math.floor(self);;})() : (function(){return result = (Math.floor(self * (-1)) * (-1));;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return result = Math.floor(self);;}), (function(){return result = (Math.floor(self * (-1)) * (-1));;})]));
  2132. return result;
  2133. return self;},
  2134. args: [],
  2135. source: unescape('truncated%0A%7Cresult%7C%0A%0A%20%20%20%20self%20%3E%3D%200%20%0A%20%20%20%20%20%20%20%20ifTrue%3A%20%5B%3Cresult%20%3D%20Math.floor%28self%29%3B%3E%5D%0A%20%20%20%20%20%20%20%20ifFalse%3A%20%5B%3Cresult%20%3D%20%28Math.floor%28self%20*%20%28-1%29%29%20*%20%28-1%29%29%3B%3E%5D.%0A%0A%20%20%20%20%5E%20result'),
  2136. messageSends: ["ifTrue:ifFalse:", unescape("%3E%3D")],
  2137. referencedClasses: []
  2138. }),
  2139. smalltalk.Number);
  2140. smalltalk.addMethod(
  2141. unescape('_to_'),
  2142. smalltalk.method({
  2143. selector: unescape('to%3A'),
  2144. category: 'converting',
  2145. fn: function (aNumber){
  2146. var self=this;
  2147. var array=nil;
  2148. var first=nil;
  2149. var last=nil;
  2150. var count=nil;
  2151. first=smalltalk.send(self, "_truncated", []);
  2152. last=((($receiver = smalltalk.send(aNumber, "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));
  2153. count=(1);
  2154. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2155. smalltalk.send(((($receiver = last).klass === smalltalk.Number) ? $receiver -first : smalltalk.send($receiver, "__minus", [first])), "_timesRepeat_", [(function(){smalltalk.send(array, "_at_put_", [count, first]);count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return first=((($receiver = first).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})]);
  2156. return array;
  2157. return self;},
  2158. args: ["aNumber"],
  2159. source: unescape('to%3A%20aNumber%0A%09%7C%20array%20first%20last%20count%20%7C%0A%09first%20%3A%3D%20self%20truncated.%0A%09last%20%3A%3D%20aNumber%20truncated%20+%201.%0A%09count%20%3A%3D%201.%0A%09array%20%3A%3D%20Array%20new.%0A%09%28last%20-%20first%29%20timesRepeat%3A%20%5B%0A%09%20%20%20%20array%20at%3A%20count%20put%3A%20first.%0A%09%20%20%20%20count%20%3A%3D%20count%20+%201.%0A%09%20%20%20%20first%20%3A%3D%20first%20+%201%5D.%0A%09%5Earray'),
  2160. messageSends: ["truncated", unescape("+"), "new", "timesRepeat:", unescape("-"), "at:put:"],
  2161. referencedClasses: [smalltalk.Array]
  2162. }),
  2163. smalltalk.Number);
  2164. smalltalk.addMethod(
  2165. unescape('_timesRepeat_'),
  2166. smalltalk.method({
  2167. selector: unescape('timesRepeat%3A'),
  2168. category: 'enumerating',
  2169. fn: function (aBlock){
  2170. var self=this;
  2171. var integer=nil;
  2172. var count=nil;
  2173. integer=smalltalk.send(self, "_truncated", []);
  2174. count=(1);
  2175. (function(){while(!(function(){return ((($receiver = count).klass === smalltalk.Number) ? $receiver >self : smalltalk.send($receiver, "__gt", [self]));})()) {(function(){smalltalk.send(aBlock, "_value", []);return count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})()}})();
  2176. return self;},
  2177. args: ["aBlock"],
  2178. source: unescape('timesRepeat%3A%20aBlock%0A%09%7C%20integer%20count%20%7C%0A%09integer%20%3A%3D%20self%20truncated.%0A%09count%20%3A%3D%201.%0A%09%5Bcount%20%3E%20self%5D%20whileFalse%3A%20%5B%0A%09%20%20%20%20aBlock%20value.%0A%09%20%20%20%20count%20%3A%3D%20count%20+%201%5D'),
  2179. messageSends: ["truncated", "whileFalse:", unescape("%3E"), "value", unescape("+")],
  2180. referencedClasses: []
  2181. }),
  2182. smalltalk.Number);
  2183. smalltalk.addMethod(
  2184. unescape('_to_do_'),
  2185. smalltalk.method({
  2186. selector: unescape('to%3Ado%3A'),
  2187. category: 'enumerating',
  2188. fn: function (stop, aBlock){
  2189. var self=this;
  2190. var nextValue=nil;
  2191. nextValue=self;
  2192. (function(){while((function(){return ((($receiver = nextValue).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [nextValue]);return nextValue=((($receiver = nextValue).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})()}})();
  2193. return self;},
  2194. args: ["stop", "aBlock"],
  2195. source: unescape('to%3A%20stop%20do%3A%20aBlock%0A%09%22Evaluate%20aBlock%20for%20each%20number%20from%20self%20to%20aNumber.%22%0A%09%7C%20nextValue%20%7C%0A%09nextValue%20%3A%3D%20self.%0A%09%5BnextValue%20%3C%3D%20stop%5D%0A%09%09whileTrue%3A%20%0A%09%09%09%5BaBlock%20value%3A%20nextValue.%0A%09%09%09nextValue%20%3A%3D%20nextValue%20+%201%5D'),
  2196. messageSends: ["whileTrue:", unescape("%3C%3D"), "value:", unescape("+")],
  2197. referencedClasses: []
  2198. }),
  2199. smalltalk.Number);
  2200. smalltalk.addMethod(
  2201. unescape('_asString'),
  2202. smalltalk.method({
  2203. selector: unescape('asString'),
  2204. category: 'converting',
  2205. fn: function (){
  2206. var self=this;
  2207. return smalltalk.send(self, "_printString", []);
  2208. return self;},
  2209. args: [],
  2210. source: unescape('asString%0A%09%5Eself%20printString'),
  2211. messageSends: ["printString"],
  2212. referencedClasses: []
  2213. }),
  2214. smalltalk.Number);
  2215. smalltalk.addMethod(
  2216. unescape('_asJavascript'),
  2217. smalltalk.method({
  2218. selector: unescape('asJavascript'),
  2219. category: 'converting',
  2220. fn: function (){
  2221. var self=this;
  2222. return smalltalk.send(smalltalk.send(unescape("%28"), "__comma", [smalltalk.send(self, "_printString", [])]), "__comma", [unescape("%29")]);
  2223. return self;},
  2224. args: [],
  2225. source: unescape('asJavascript%0A%09%5E%27%28%27%2C%20self%20printString%2C%20%27%29%27'),
  2226. messageSends: [unescape("%2C"), "printString"],
  2227. referencedClasses: []
  2228. }),
  2229. smalltalk.Number);
  2230. smalltalk.addMethod(
  2231. unescape('_printString'),
  2232. smalltalk.method({
  2233. selector: unescape('printString'),
  2234. category: 'printing',
  2235. fn: function (){
  2236. var self=this;
  2237. return String(self);
  2238. return self;},
  2239. args: [],
  2240. source: unescape('printString%0A%09%3Creturn%20String%28self%29%3E'),
  2241. messageSends: [],
  2242. referencedClasses: []
  2243. }),
  2244. smalltalk.Number);
  2245. smalltalk.addMethod(
  2246. unescape('_isNumber'),
  2247. smalltalk.method({
  2248. selector: unescape('isNumber'),
  2249. category: 'testing',
  2250. fn: function (){
  2251. var self=this;
  2252. return true;
  2253. return self;},
  2254. args: [],
  2255. source: unescape('isNumber%0A%09%5Etrue'),
  2256. messageSends: [],
  2257. referencedClasses: []
  2258. }),
  2259. smalltalk.Number);
  2260. smalltalk.addMethod(
  2261. unescape('_atRandom'),
  2262. smalltalk.method({
  2263. selector: unescape('atRandom'),
  2264. category: 'converting',
  2265. fn: function (){
  2266. var self=this;
  2267. return ((($receiver = smalltalk.send(((($receiver = smalltalk.send(smalltalk.send((smalltalk.Random || Random), "_new", []), "_next", [])).klass === smalltalk.Number) ? $receiver *self : smalltalk.send($receiver, "__star", [self])), "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));
  2268. return self;},
  2269. args: [],
  2270. source: unescape('atRandom%0A%20%20%20%20%5E%28Random%20new%20next%20*%20self%29%20truncated%20+%201'),
  2271. messageSends: [unescape("+"), "truncated", unescape("*"), "next", "new"],
  2272. referencedClasses: [smalltalk.nil]
  2273. }),
  2274. smalltalk.Number);
  2275. smalltalk.addMethod(
  2276. unescape('__at'),
  2277. smalltalk.method({
  2278. selector: unescape('@'),
  2279. category: 'converting',
  2280. fn: function (aNumber){
  2281. var self=this;
  2282. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, aNumber]);
  2283. return self;},
  2284. args: ["aNumber"],
  2285. source: unescape('@%20aNumber%0A%09%5EPoint%20x%3A%20self%20y%3A%20aNumber'),
  2286. messageSends: ["x:y:"],
  2287. referencedClasses: [smalltalk.nil]
  2288. }),
  2289. smalltalk.Number);
  2290. smalltalk.addMethod(
  2291. unescape('_asPoint'),
  2292. smalltalk.method({
  2293. selector: unescape('asPoint'),
  2294. category: 'converting',
  2295. fn: function (){
  2296. var self=this;
  2297. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, self]);
  2298. return self;},
  2299. args: [],
  2300. source: unescape('asPoint%0A%09%5EPoint%20x%3A%20self%20y%3A%20self'),
  2301. messageSends: ["x:y:"],
  2302. referencedClasses: [smalltalk.nil]
  2303. }),
  2304. smalltalk.Number);
  2305. smalltalk.addMethod(
  2306. unescape('_clearInterval'),
  2307. smalltalk.method({
  2308. selector: unescape('clearInterval'),
  2309. category: 'timeouts/intervals',
  2310. fn: function (){
  2311. var self=this;
  2312. clearInterval(Number(self));
  2313. return self;},
  2314. args: [],
  2315. source: unescape('clearInterval%0A%09%3CclearInterval%28Number%28self%29%29%3E'),
  2316. messageSends: [],
  2317. referencedClasses: []
  2318. }),
  2319. smalltalk.Number);
  2320. smalltalk.addMethod(
  2321. unescape('_asJSONObject'),
  2322. smalltalk.method({
  2323. selector: unescape('asJSONObject'),
  2324. category: 'converting',
  2325. fn: function (){
  2326. var self=this;
  2327. return self;
  2328. return self;},
  2329. args: [],
  2330. source: unescape('asJSONObject%0A%09%5Eself'),
  2331. messageSends: [],
  2332. referencedClasses: []
  2333. }),
  2334. smalltalk.Number);
  2335. smalltalk.addMethod(
  2336. unescape('_clearTimeout'),
  2337. smalltalk.method({
  2338. selector: unescape('clearTimeout'),
  2339. category: 'timeouts/intervals',
  2340. fn: function (){
  2341. var self=this;
  2342. clearTimeout(Number(self));
  2343. return self;},
  2344. args: [],
  2345. source: unescape('clearTimeout%0A%09%3CclearTimeout%28Number%28self%29%29%3E'),
  2346. messageSends: [],
  2347. referencedClasses: []
  2348. }),
  2349. smalltalk.Number);
  2350. smalltalk.addMethod(
  2351. unescape('_even'),
  2352. smalltalk.method({
  2353. selector: unescape('even'),
  2354. category: 'testing',
  2355. fn: function (){
  2356. var self=this;
  2357. return smalltalk.send((0), "__eq", [smalltalk.send(self, "_\\\\", [(2)])]);
  2358. return self;},
  2359. args: [],
  2360. source: unescape('even%0A%09%5E%200%20%3D%20%28self%20%5C%5C%202%29'),
  2361. messageSends: [unescape("%3D"), unescape("%5C%5C%5C%5C")],
  2362. referencedClasses: []
  2363. }),
  2364. smalltalk.Number);
  2365. smalltalk.addMethod(
  2366. unescape('_odd'),
  2367. smalltalk.method({
  2368. selector: unescape('odd'),
  2369. category: 'testing',
  2370. fn: function (){
  2371. var self=this;
  2372. return smalltalk.send(smalltalk.send(self, "_even", []), "_not", []);
  2373. return self;},
  2374. args: [],
  2375. source: unescape('odd%0A%09%5E%20self%20even%20not'),
  2376. messageSends: ["not", "even"],
  2377. referencedClasses: []
  2378. }),
  2379. smalltalk.Number);
  2380. smalltalk.addMethod(
  2381. unescape('_negated'),
  2382. smalltalk.method({
  2383. selector: unescape('negated'),
  2384. category: 'arithmetic',
  2385. fn: function (){
  2386. var self=this;
  2387. return (0) - self;
  2388. return self;},
  2389. args: [],
  2390. source: unescape('negated%0A%09%5E0%20-%20self'),
  2391. messageSends: [unescape("-")],
  2392. referencedClasses: []
  2393. }),
  2394. smalltalk.Number);
  2395. smalltalk.addMethod(
  2396. unescape('__eq_eq'),
  2397. smalltalk.method({
  2398. selector: unescape('%3D%3D'),
  2399. category: 'comparing',
  2400. fn: function (aNumber){
  2401. var self=this;
  2402. try{((($receiver = smalltalk.send(smalltalk.send(aNumber, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})]));
  2403. return Number(self) === Number(aNumber);
  2404. return self;
  2405. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  2406. args: ["aNumber"],
  2407. source: unescape('%3D%3D%20aNumber%0A%09aNumber%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%20%0A%09%3Creturn%20Number%28self%29%20%3D%3D%3D%20Number%28aNumber%29%3E'),
  2408. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  2409. referencedClasses: []
  2410. }),
  2411. smalltalk.Number);
  2412. smalltalk.addMethod(
  2413. unescape('_printShowingDecimalPlaces_'),
  2414. smalltalk.method({
  2415. selector: unescape('printShowingDecimalPlaces%3A'),
  2416. category: 'printing',
  2417. fn: function (placesDesired){
  2418. var self=this;
  2419. return self.toFixed(placesDesired);
  2420. return self;},
  2421. args: ["placesDesired"],
  2422. source: unescape('printShowingDecimalPlaces%3A%20placesDesired%0A%09%3Creturn%20self.toFixed%28placesDesired%29%3E'),
  2423. messageSends: [],
  2424. referencedClasses: []
  2425. }),
  2426. smalltalk.Number);
  2427. smalltalk.addMethod(
  2428. unescape('_%5C%5C'),
  2429. smalltalk.method({
  2430. selector: unescape('%5C%5C'),
  2431. category: 'arithmetic',
  2432. fn: function (aNumber){
  2433. var self=this;
  2434. return self % aNumber;
  2435. return self;},
  2436. args: ["aNumber"],
  2437. source: unescape('%5C%5C%20aNumber%0A%09%3Creturn%20self%20%25%20aNumber%3E'),
  2438. messageSends: [],
  2439. referencedClasses: []
  2440. }),
  2441. smalltalk.Number);
  2442. smalltalk.addMethod(
  2443. unescape('_to_by_'),
  2444. smalltalk.method({
  2445. selector: unescape('to%3Aby%3A'),
  2446. category: 'converting',
  2447. fn: function (stop, step){
  2448. var self=this;
  2449. var array=nil;
  2450. var value=nil;
  2451. var pos=nil;
  2452. value=self;
  2453. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2454. pos=(1);
  2455. ((($receiver = smalltalk.send(step, "__eq", [(0)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})]));
  2456. ((($receiver = ((($receiver = step).klass === smalltalk.Number) ? $receiver <(0) : smalltalk.send($receiver, "__lt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})() : (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();}), (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})]));
  2457. return array;
  2458. return self;},
  2459. args: ["stop", "step"],
  2460. source: unescape('to%3A%20stop%20by%3A%20step%0A%09%7C%20array%20value%20pos%20%7C%0A%09value%20%3A%3D%20self.%0A%09array%20%3A%3D%20Array%20new.%0A%09pos%20%3A%3D%201.%0A%09step%20%3D%200%20ifTrue%3A%20%5Bself%20error%3A%20%27step%20must%20be%20non-zero%27%5D.%0A%09step%20%3C%200%0A%09%09ifTrue%3A%20%5B%5B%20value%20%3E%3D%20stop%20%5D%20whileTrue%3A%20%5B%0A%09%20%20%20%20%09%09%09array%20at%3A%20pos%20put%3A%20value.%0A%09%20%20%20%20%09%09%09pos%20%3A%3D%20pos%20+%201.%0A%09%20%20%20%20%09%09%09value%20%3A%3D%20value%20+%20step%5D%5D%0A%09%09ifFalse%3A%20%5B%5B%20value%20%3C%3D%20stop%20%5D%20whileTrue%3A%20%5B%0A%09%20%20%20%20%09%09%09array%20at%3A%20pos%20put%3A%20value.%0A%09%20%20%09%09%09pos%20%3A%3D%20pos%20+%201.%0A%09%20%20%20%20%09%09%09value%20%3A%3D%20value%20+%20step%5D%5D.%0A%09%5Earray'),
  2461. messageSends: ["new", "ifTrue:", unescape("%3D"), "error:", "ifTrue:ifFalse:", unescape("%3C"), "whileTrue:", unescape("%3E%3D"), "at:put:", unescape("+"), unescape("%3C%3D")],
  2462. referencedClasses: [smalltalk.Array]
  2463. }),
  2464. smalltalk.Number);
  2465. smalltalk.addMethod(
  2466. unescape('_to_by_do_'),
  2467. smalltalk.method({
  2468. selector: unescape('to%3Aby%3Ado%3A'),
  2469. category: 'converting',
  2470. fn: function (stop, step, aBlock){
  2471. var self=this;
  2472. var value=nil;
  2473. value=self;
  2474. ((($receiver = smalltalk.send(step, "__eq", [(0)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})]));
  2475. ((($receiver = ((($receiver = step).klass === smalltalk.Number) ? $receiver <(0) : smalltalk.send($receiver, "__lt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})() : (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();}), (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})]));
  2476. return self;},
  2477. args: ["stop", "step", "aBlock"],
  2478. source: unescape('to%3A%20stop%20by%3A%20step%20do%3A%20aBlock%0A%09%7C%20value%20%7C%0A%09value%20%3A%3D%20self.%0A%09step%20%3D%200%20ifTrue%3A%20%5Bself%20error%3A%20%27step%20must%20be%20non-zero%27%5D.%0A%09step%20%3C%200%0A%09%09ifTrue%3A%20%5B%5B%20value%20%3E%3D%20stop%20%5D%20whileTrue%3A%20%5B%0A%09%20%20%20%20%09%09%09aBlock%20value%3A%20value.%0A%09%20%20%20%20%09%09%09value%20%3A%3D%20value%20+%20step%5D%5D%0A%09%09ifFalse%3A%20%5B%5B%20value%20%3C%3D%20stop%20%5D%20whileTrue%3A%20%5B%0A%09%20%20%20%20%09%09%09aBlock%20value%3A%20value.%0A%09%20%20%20%20%09%09%09value%20%3A%3D%20value%20+%20step%5D%5D'),
  2479. messageSends: ["ifTrue:", unescape("%3D"), "error:", "ifTrue:ifFalse:", unescape("%3C"), "whileTrue:", unescape("%3E%3D"), "value:", unescape("+"), unescape("%3C%3D")],
  2480. referencedClasses: []
  2481. }),
  2482. smalltalk.Number);
  2483. smalltalk.addMethod(
  2484. unescape('_deepCopy'),
  2485. smalltalk.method({
  2486. selector: unescape('deepCopy'),
  2487. category: 'copying',
  2488. fn: function (){
  2489. var self=this;
  2490. return smalltalk.send(self, "_copy", []);
  2491. return self;},
  2492. args: [],
  2493. source: unescape('deepCopy%0A%09%5Eself%20copy'),
  2494. messageSends: ["copy"],
  2495. referencedClasses: []
  2496. }),
  2497. smalltalk.Number);
  2498. smalltalk.addMethod(
  2499. unescape('_copy'),
  2500. smalltalk.method({
  2501. selector: unescape('copy'),
  2502. category: 'copying',
  2503. fn: function (){
  2504. var self=this;
  2505. return self;
  2506. return self;},
  2507. args: [],
  2508. source: unescape('copy%0A%09%5Eself'),
  2509. messageSends: [],
  2510. referencedClasses: []
  2511. }),
  2512. smalltalk.Number);
  2513. smalltalk.addMethod(
  2514. unescape('_pi'),
  2515. smalltalk.method({
  2516. selector: unescape('pi'),
  2517. category: 'instance creation',
  2518. fn: function (){
  2519. var self=this;
  2520. return Math.PI;
  2521. return self;},
  2522. args: [],
  2523. source: unescape('pi%0A%09%3Creturn%20Math.PI%3E'),
  2524. messageSends: [],
  2525. referencedClasses: []
  2526. }),
  2527. smalltalk.Number.klass);
  2528. smalltalk.addClass('BlockClosure', smalltalk.Object, [], 'Kernel');
  2529. smalltalk.addMethod(
  2530. unescape('_compiledSource'),
  2531. smalltalk.method({
  2532. selector: unescape('compiledSource'),
  2533. category: 'accessing',
  2534. fn: function (){
  2535. var self=this;
  2536. return self.toString();
  2537. return self;},
  2538. args: [],
  2539. source: unescape('compiledSource%0A%09%3Creturn%20self.toString%28%29%3E'),
  2540. messageSends: [],
  2541. referencedClasses: []
  2542. }),
  2543. smalltalk.BlockClosure);
  2544. smalltalk.addMethod(
  2545. unescape('_whileTrue_'),
  2546. smalltalk.method({
  2547. selector: unescape('whileTrue%3A'),
  2548. category: 'controlling',
  2549. fn: function (aBlock){
  2550. var self=this;
  2551. while(self()) {aBlock()};
  2552. return self;},
  2553. args: ["aBlock"],
  2554. 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'),
  2555. messageSends: [],
  2556. referencedClasses: []
  2557. }),
  2558. smalltalk.BlockClosure);
  2559. smalltalk.addMethod(
  2560. unescape('_whileFalse_'),
  2561. smalltalk.method({
  2562. selector: unescape('whileFalse%3A'),
  2563. category: 'controlling',
  2564. fn: function (aBlock){
  2565. var self=this;
  2566. while(!self()) {aBlock()};
  2567. return self;},
  2568. args: ["aBlock"],
  2569. 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'),
  2570. messageSends: [],
  2571. referencedClasses: []
  2572. }),
  2573. smalltalk.BlockClosure);
  2574. smalltalk.addMethod(
  2575. unescape('_value'),
  2576. smalltalk.method({
  2577. selector: unescape('value'),
  2578. category: 'evaluating',
  2579. fn: function (){
  2580. var self=this;
  2581. return self();;
  2582. return self;},
  2583. args: [],
  2584. source: unescape('value%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28%29%3B%3E'),
  2585. messageSends: [],
  2586. referencedClasses: []
  2587. }),
  2588. smalltalk.BlockClosure);
  2589. smalltalk.addMethod(
  2590. unescape('_value_'),
  2591. smalltalk.method({
  2592. selector: unescape('value%3A'),
  2593. category: 'evaluating',
  2594. fn: function (anArg){
  2595. var self=this;
  2596. return self(anArg);;
  2597. return self;},
  2598. args: ["anArg"],
  2599. source: unescape('value%3A%20anArg%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28anArg%29%3B%3E'),
  2600. messageSends: [],
  2601. referencedClasses: []
  2602. }),
  2603. smalltalk.BlockClosure);
  2604. smalltalk.addMethod(
  2605. unescape('_value_value_'),
  2606. smalltalk.method({
  2607. selector: unescape('value%3Avalue%3A'),
  2608. category: 'evaluating',
  2609. fn: function (firstArg, secondArg){
  2610. var self=this;
  2611. return self(firstArg, secondArg);;
  2612. return self;},
  2613. args: ["firstArg", "secondArg"],
  2614. 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'),
  2615. messageSends: [],
  2616. referencedClasses: []
  2617. }),
  2618. smalltalk.BlockClosure);
  2619. smalltalk.addMethod(
  2620. unescape('_value_value_value_'),
  2621. smalltalk.method({
  2622. selector: unescape('value%3Avalue%3Avalue%3A'),
  2623. category: 'evaluating',
  2624. fn: function (firstArg, secondArg, thirdArg){
  2625. var self=this;
  2626. return self(firstArg, secondArg, thirdArg);;
  2627. return self;},
  2628. args: ["firstArg", "secondArg", "thirdArg"],
  2629. 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'),
  2630. messageSends: [],
  2631. referencedClasses: []
  2632. }),
  2633. smalltalk.BlockClosure);
  2634. smalltalk.addMethod(
  2635. unescape('_valueWithPossibleArguments_'),
  2636. smalltalk.method({
  2637. selector: unescape('valueWithPossibleArguments%3A'),
  2638. category: 'evaluating',
  2639. fn: function (aCollection){
  2640. var self=this;
  2641. return self.apply(null, aCollection);;
  2642. return self;},
  2643. args: ["aCollection"],
  2644. source: unescape('valueWithPossibleArguments%3A%20aCollection%0A%09%3Creturn%20self.apply%28null%2C%20aCollection%29%3B%3E'),
  2645. messageSends: [],
  2646. referencedClasses: []
  2647. }),
  2648. smalltalk.BlockClosure);
  2649. smalltalk.addMethod(
  2650. unescape('_on_do_'),
  2651. smalltalk.method({
  2652. selector: unescape('on%3Ado%3A'),
  2653. category: 'error handling',
  2654. fn: function (anErrorClass, aBlock){
  2655. var self=this;
  2656. 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", []);})]));})]);
  2657. return self;},
  2658. args: ["anErrorClass", "aBlock"],
  2659. 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'),
  2660. messageSends: ["try:catch:", "ifTrue:ifFalse:", "isKindOf:", "value:", "signal"],
  2661. referencedClasses: []
  2662. }),
  2663. smalltalk.BlockClosure);
  2664. smalltalk.addMethod(
  2665. unescape('_valueWithTimeout_'),
  2666. smalltalk.method({
  2667. selector: unescape('valueWithTimeout%3A'),
  2668. category: 'timeout/interval',
  2669. fn: function (aNumber){
  2670. var self=this;
  2671. return setTimeout(self, aNumber);
  2672. return self;},
  2673. args: ["aNumber"],
  2674. source: unescape('valueWithTimeout%3A%20aNumber%0A%09%3Creturn%20setTimeout%28self%2C%20aNumber%29%3E'),
  2675. messageSends: [],
  2676. referencedClasses: []
  2677. }),
  2678. smalltalk.BlockClosure);
  2679. smalltalk.addMethod(
  2680. unescape('_valueWithInterval_'),
  2681. smalltalk.method({
  2682. selector: unescape('valueWithInterval%3A'),
  2683. category: 'timeout/interval',
  2684. fn: function (aNumber){
  2685. var self=this;
  2686. return setInterval(self, aNumber);
  2687. return self;},
  2688. args: ["aNumber"],
  2689. source: unescape('valueWithInterval%3A%20aNumber%0A%09%3Creturn%20setInterval%28self%2C%20aNumber%29%3E'),
  2690. messageSends: [],
  2691. referencedClasses: []
  2692. }),
  2693. smalltalk.BlockClosure);
  2694. smalltalk.addMethod(
  2695. unescape('_whileFalse'),
  2696. smalltalk.method({
  2697. selector: unescape('whileFalse'),
  2698. category: 'controlling',
  2699. fn: function (){
  2700. var self=this;
  2701. smalltalk.send(self, "_whileFalse_", [(function(){return nil;})]);
  2702. return self;},
  2703. args: [],
  2704. source: unescape('whileFalse%0A%09%22inlined%20in%20the%20Compiler%22%0A%09self%20whileFalse%3A%20%5B%5D'),
  2705. messageSends: ["whileFalse:"],
  2706. referencedClasses: []
  2707. }),
  2708. smalltalk.BlockClosure);
  2709. smalltalk.addMethod(
  2710. unescape('_whileTrue'),
  2711. smalltalk.method({
  2712. selector: unescape('whileTrue'),
  2713. category: 'controlling',
  2714. fn: function (){
  2715. var self=this;
  2716. smalltalk.send(self, "_whileTrue_", [(function(){return nil;})]);
  2717. return self;},
  2718. args: [],
  2719. source: unescape('whileTrue%0A%09%22inlined%20in%20the%20Compiler%22%0A%09self%20whileTrue%3A%20%5B%5D'),
  2720. messageSends: ["whileTrue:"],
  2721. referencedClasses: []
  2722. }),
  2723. smalltalk.BlockClosure);
  2724. smalltalk.addMethod(
  2725. unescape('_new'),
  2726. smalltalk.method({
  2727. selector: unescape('new'),
  2728. category: 'evaluating',
  2729. fn: function (){
  2730. var self=this;
  2731. return new self();
  2732. return self;},
  2733. args: [],
  2734. 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'),
  2735. messageSends: [],
  2736. referencedClasses: []
  2737. }),
  2738. smalltalk.BlockClosure);
  2739. smalltalk.addMethod(
  2740. unescape('_applyTo_arguments_'),
  2741. smalltalk.method({
  2742. selector: unescape('applyTo%3Aarguments%3A'),
  2743. category: 'evaluating',
  2744. fn: function (anObject, aCollection){
  2745. var self=this;
  2746. return self.apply(anObject, aCollection);
  2747. return self;},
  2748. args: ["anObject", "aCollection"],
  2749. source: unescape('applyTo%3A%20anObject%20arguments%3A%20aCollection%0A%09%3Creturn%20self.apply%28anObject%2C%20aCollection%29%3E'),
  2750. messageSends: [],
  2751. referencedClasses: []
  2752. }),
  2753. smalltalk.BlockClosure);
  2754. smalltalk.addMethod(
  2755. unescape('_timeToRun'),
  2756. smalltalk.method({
  2757. selector: unescape('timeToRun'),
  2758. category: 'evaluating',
  2759. fn: function (){
  2760. var self=this;
  2761. return smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [self]);
  2762. return self;},
  2763. args: [],
  2764. source: unescape('timeToRun%0A%09%22Answer%20the%20number%20of%20milliseconds%20taken%20to%20execute%20this%20block.%22%0A%0A%09%5E%20Date%20millisecondsToRun%3A%20self'),
  2765. messageSends: ["millisecondsToRun:"],
  2766. referencedClasses: [smalltalk.Date]
  2767. }),
  2768. smalltalk.BlockClosure);
  2769. smalltalk.addClass('Boolean', smalltalk.Object, [], 'Kernel');
  2770. smalltalk.addMethod(
  2771. unescape('__eq'),
  2772. smalltalk.method({
  2773. selector: unescape('%3D'),
  2774. category: 'comparing',
  2775. fn: function (aBoolean){
  2776. var self=this;
  2777. 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}})})();})]));
  2778. return Boolean(self == true) == aBoolean;
  2779. return self;
  2780. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  2781. args: ["aBoolean"],
  2782. 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'),
  2783. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  2784. referencedClasses: []
  2785. }),
  2786. smalltalk.Boolean);
  2787. smalltalk.addMethod(
  2788. unescape('_shallowCopy'),
  2789. smalltalk.method({
  2790. selector: unescape('shallowCopy'),
  2791. category: 'copying',
  2792. fn: function (){
  2793. var self=this;
  2794. return self;
  2795. return self;},
  2796. args: [],
  2797. source: unescape('shallowCopy%0A%09%5Eself'),
  2798. messageSends: [],
  2799. referencedClasses: []
  2800. }),
  2801. smalltalk.Boolean);
  2802. smalltalk.addMethod(
  2803. unescape('_deepCopy'),
  2804. smalltalk.method({
  2805. selector: unescape('deepCopy'),
  2806. category: 'copying',
  2807. fn: function (){
  2808. var self=this;
  2809. return self;
  2810. return self;},
  2811. args: [],
  2812. source: unescape('deepCopy%0A%09%5Eself'),
  2813. messageSends: [],
  2814. referencedClasses: []
  2815. }),
  2816. smalltalk.Boolean);
  2817. smalltalk.addMethod(
  2818. unescape('_ifTrue_'),
  2819. smalltalk.method({
  2820. selector: unescape('ifTrue%3A'),
  2821. category: 'controlling',
  2822. fn: function (aBlock){
  2823. var self=this;
  2824. return smalltalk.send(self, "_ifTrue_ifFalse_", [aBlock, (function(){return nil;})]);
  2825. return self;},
  2826. args: ["aBlock"],
  2827. source: unescape('ifTrue%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20aBlock%20ifFalse%3A%20%5B%5D'),
  2828. messageSends: ["ifTrue:ifFalse:"],
  2829. referencedClasses: []
  2830. }),
  2831. smalltalk.Boolean);
  2832. smalltalk.addMethod(
  2833. unescape('_ifFalse_'),
  2834. smalltalk.method({
  2835. selector: unescape('ifFalse%3A'),
  2836. category: 'controlling',
  2837. fn: function (aBlock){
  2838. var self=this;
  2839. return smalltalk.send(self, "_ifTrue_ifFalse_", [(function(){return nil;}), aBlock]);
  2840. return self;},
  2841. args: ["aBlock"],
  2842. source: unescape('ifFalse%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20%5B%5D%20ifFalse%3A%20aBlock'),
  2843. messageSends: ["ifTrue:ifFalse:"],
  2844. referencedClasses: []
  2845. }),
  2846. smalltalk.Boolean);
  2847. smalltalk.addMethod(
  2848. unescape('_ifFalse_ifTrue_'),
  2849. smalltalk.method({
  2850. selector: unescape('ifFalse%3AifTrue%3A'),
  2851. category: 'controlling',
  2852. fn: function (aBlock, anotherBlock){
  2853. var self=this;
  2854. return smalltalk.send(self, "_ifTrue_ifFalse_", [anotherBlock, aBlock]);
  2855. return self;},
  2856. args: ["aBlock", "anotherBlock"],
  2857. source: unescape('ifFalse%3A%20aBlock%20ifTrue%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20anotherBlock%20ifFalse%3A%20aBlock'),
  2858. messageSends: ["ifTrue:ifFalse:"],
  2859. referencedClasses: []
  2860. }),
  2861. smalltalk.Boolean);
  2862. smalltalk.addMethod(
  2863. unescape('_ifTrue_ifFalse_'),
  2864. smalltalk.method({
  2865. selector: unescape('ifTrue%3AifFalse%3A'),
  2866. category: 'controlling',
  2867. fn: function (aBlock, anotherBlock){
  2868. var self=this;
  2869. if(self == true) {
  2870. return aBlock();
  2871. } else {
  2872. return anotherBlock();
  2873. }
  2874. ;
  2875. return self;},
  2876. args: ["aBlock", "anotherBlock"],
  2877. 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'),
  2878. messageSends: [],
  2879. referencedClasses: []
  2880. }),
  2881. smalltalk.Boolean);
  2882. smalltalk.addMethod(
  2883. unescape('_and_'),
  2884. smalltalk.method({
  2885. selector: unescape('and%3A'),
  2886. category: 'controlling',
  2887. fn: function (aBlock){
  2888. var self=this;
  2889. return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [aBlock, (function(){return false;})]);
  2890. return self;},
  2891. args: ["aBlock"],
  2892. 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'),
  2893. messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
  2894. referencedClasses: []
  2895. }),
  2896. smalltalk.Boolean);
  2897. smalltalk.addMethod(
  2898. unescape('_or_'),
  2899. smalltalk.method({
  2900. selector: unescape('or%3A'),
  2901. category: 'controlling',
  2902. fn: function (aBlock){
  2903. var self=this;
  2904. return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [(function(){return true;}), aBlock]);
  2905. return self;},
  2906. args: ["aBlock"],
  2907. 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'),
  2908. messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
  2909. referencedClasses: []
  2910. }),
  2911. smalltalk.Boolean);
  2912. smalltalk.addMethod(
  2913. unescape('_not'),
  2914. smalltalk.method({
  2915. selector: unescape('not'),
  2916. category: 'controlling',
  2917. fn: function (){
  2918. var self=this;
  2919. return smalltalk.send(self, "__eq", [false]);
  2920. return self;},
  2921. args: [],
  2922. source: unescape('not%0A%09%5Eself%20%3D%20false'),
  2923. messageSends: [unescape("%3D")],
  2924. referencedClasses: []
  2925. }),
  2926. smalltalk.Boolean);
  2927. smalltalk.addMethod(
  2928. unescape('_printString'),
  2929. smalltalk.method({
  2930. selector: unescape('printString'),
  2931. category: 'printing',
  2932. fn: function (){
  2933. var self=this;
  2934. return self.toString();
  2935. return self;},
  2936. args: [],
  2937. source: unescape('printString%0A%09%3Creturn%20self.toString%28%29%3E'),
  2938. messageSends: [],
  2939. referencedClasses: []
  2940. }),
  2941. smalltalk.Boolean);
  2942. smalltalk.addMethod(
  2943. unescape('_asJSONObject'),
  2944. smalltalk.method({
  2945. selector: unescape('asJSONObject'),
  2946. category: 'converting',
  2947. fn: function (){
  2948. var self=this;
  2949. return self;
  2950. return self;},
  2951. args: [],
  2952. source: unescape('asJSONObject%0A%09%5Eself'),
  2953. messageSends: [],
  2954. referencedClasses: []
  2955. }),
  2956. smalltalk.Boolean);
  2957. smalltalk.addMethod(
  2958. unescape('_%26'),
  2959. smalltalk.method({
  2960. selector: unescape('%26'),
  2961. category: 'controlling',
  2962. fn: function (aBoolean){
  2963. var self=this;
  2964. if(self == true) {
  2965. return aBoolean;
  2966. } else {
  2967. return false;
  2968. }
  2969. ;
  2970. return self;},
  2971. args: ["aBoolean"],
  2972. 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'),
  2973. messageSends: [],
  2974. referencedClasses: []
  2975. }),
  2976. smalltalk.Boolean);
  2977. smalltalk.addMethod(
  2978. unescape('_%7C'),
  2979. smalltalk.method({
  2980. selector: unescape('%7C'),
  2981. category: 'controlling',
  2982. fn: function (aBoolean){
  2983. var self=this;
  2984. if(self == true) {
  2985. return true;
  2986. } else {
  2987. return aBoolean;
  2988. }
  2989. ;
  2990. return self;},
  2991. args: ["aBoolean"],
  2992. 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'),
  2993. messageSends: [],
  2994. referencedClasses: []
  2995. }),
  2996. smalltalk.Boolean);
  2997. smalltalk.addMethod(
  2998. unescape('__eq_eq'),
  2999. smalltalk.method({
  3000. selector: unescape('%3D%3D'),
  3001. category: 'comparing',
  3002. fn: function (aBoolean){
  3003. var self=this;
  3004. 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}})})();})]));
  3005. return Boolean(self == true) === Boolean(aBoolean == true);
  3006. return self;
  3007. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  3008. args: ["aBoolean"],
  3009. 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'),
  3010. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  3011. referencedClasses: []
  3012. }),
  3013. smalltalk.Boolean);
  3014. smalltalk.addClass('Date', smalltalk.Object, [], 'Kernel');
  3015. smalltalk.Date.comment=unescape('The%20Date%20class%20is%20used%20to%20work%20with%20dates%20and%20times.')
  3016. smalltalk.addMethod(
  3017. unescape('_year'),
  3018. smalltalk.method({
  3019. selector: unescape('year'),
  3020. category: 'accessing',
  3021. fn: function (){
  3022. var self=this;
  3023. return self.getFullYear();
  3024. return self;},
  3025. args: [],
  3026. source: unescape('year%0A%09%3Creturn%20self.getFullYear%28%29%3E'),
  3027. messageSends: [],
  3028. referencedClasses: []
  3029. }),
  3030. smalltalk.Date);
  3031. smalltalk.addMethod(
  3032. unescape('_month'),
  3033. smalltalk.method({
  3034. selector: unescape('month'),
  3035. category: 'accessing',
  3036. fn: function (){
  3037. var self=this;
  3038. return self.getMonth() + 1;
  3039. return self;},
  3040. args: [],
  3041. source: unescape('month%0A%09%3Creturn%20self.getMonth%28%29%20+%201%3E'),
  3042. messageSends: [],
  3043. referencedClasses: []
  3044. }),
  3045. smalltalk.Date);
  3046. smalltalk.addMethod(
  3047. unescape('_month_'),
  3048. smalltalk.method({
  3049. selector: unescape('month%3A'),
  3050. category: 'accessing',
  3051. fn: function (aNumber){
  3052. var self=this;
  3053. self.setMonth(aNumber - 1);
  3054. return self;},
  3055. args: ["aNumber"],
  3056. source: unescape('month%3A%20aNumber%0A%09%3Cself.setMonth%28aNumber%20-%201%29%3E'),
  3057. messageSends: [],
  3058. referencedClasses: []
  3059. }),
  3060. smalltalk.Date);
  3061. smalltalk.addMethod(
  3062. unescape('_day'),
  3063. smalltalk.method({
  3064. selector: unescape('day'),
  3065. category: 'accessing',
  3066. fn: function (){
  3067. var self=this;
  3068. return smalltalk.send(self, "_dayOfWeek", []);
  3069. return self;},
  3070. args: [],
  3071. source: unescape('day%0A%09%5Eself%20dayOfWeek'),
  3072. messageSends: ["dayOfWeek"],
  3073. referencedClasses: []
  3074. }),
  3075. smalltalk.Date);
  3076. smalltalk.addMethod(
  3077. unescape('_dayOfWeek'),
  3078. smalltalk.method({
  3079. selector: unescape('dayOfWeek'),
  3080. category: 'accessing',
  3081. fn: function (){
  3082. var self=this;
  3083. return self.getDay() + 1;
  3084. return self;},
  3085. args: [],
  3086. source: unescape('dayOfWeek%0A%09%3Creturn%20self.getDay%28%29%20+%201%3E'),
  3087. messageSends: [],
  3088. referencedClasses: []
  3089. }),
  3090. smalltalk.Date);
  3091. smalltalk.addMethod(
  3092. unescape('_dayOfWeek_'),
  3093. smalltalk.method({
  3094. selector: unescape('dayOfWeek%3A'),
  3095. category: 'accessing',
  3096. fn: function (aNumber){
  3097. var self=this;
  3098. return self.setDay(aNumber - 1);
  3099. return self;},
  3100. args: ["aNumber"],
  3101. source: unescape('dayOfWeek%3A%20aNumber%0A%09%3Creturn%20self.setDay%28aNumber%20-%201%29%3E'),
  3102. messageSends: [],
  3103. referencedClasses: []
  3104. }),
  3105. smalltalk.Date);
  3106. smalltalk.addMethod(
  3107. unescape('_day_'),
  3108. smalltalk.method({
  3109. selector: unescape('day%3A'),
  3110. category: 'accessing',
  3111. fn: function (aNumber){
  3112. var self=this;
  3113. smalltalk.send(self, "_day_", [aNumber]);
  3114. return self;},
  3115. args: ["aNumber"],
  3116. source: unescape('day%3A%20aNumber%0A%09self%20day%3A%20aNumber'),
  3117. messageSends: ["day:"],
  3118. referencedClasses: []
  3119. }),
  3120. smalltalk.Date);
  3121. smalltalk.addMethod(
  3122. unescape('_year_'),
  3123. smalltalk.method({
  3124. selector: unescape('year%3A'),
  3125. category: 'accessing',
  3126. fn: function (aNumber){
  3127. var self=this;
  3128. self.setFullYear(aNumber);
  3129. return self;},
  3130. args: ["aNumber"],
  3131. source: unescape('year%3A%20aNumber%0A%09%3Cself.setFullYear%28aNumber%29%3E'),
  3132. messageSends: [],
  3133. referencedClasses: []
  3134. }),
  3135. smalltalk.Date);
  3136. smalltalk.addMethod(
  3137. unescape('_dayOfMonth'),
  3138. smalltalk.method({
  3139. selector: unescape('dayOfMonth'),
  3140. category: 'accessing',
  3141. fn: function (){
  3142. var self=this;
  3143. return self.getDate();
  3144. return self;},
  3145. args: [],
  3146. source: unescape('dayOfMonth%0A%09%3Creturn%20self.getDate%28%29%3E'),
  3147. messageSends: [],
  3148. referencedClasses: []
  3149. }),
  3150. smalltalk.Date);
  3151. smalltalk.addMethod(
  3152. unescape('_dayOfMonth_'),
  3153. smalltalk.method({
  3154. selector: unescape('dayOfMonth%3A'),
  3155. category: 'accessing',
  3156. fn: function (aNumber){
  3157. var self=this;
  3158. self.setDate(aNumber);
  3159. return self;},
  3160. args: ["aNumber"],
  3161. source: unescape('dayOfMonth%3A%20aNumber%0A%09%3Cself.setDate%28aNumber%29%3E'),
  3162. messageSends: [],
  3163. referencedClasses: []
  3164. }),
  3165. smalltalk.Date);
  3166. smalltalk.addMethod(
  3167. unescape('_asString'),
  3168. smalltalk.method({
  3169. selector: unescape('asString'),
  3170. category: 'converting',
  3171. fn: function (){
  3172. var self=this;
  3173. return self.toString();
  3174. return self;},
  3175. args: [],
  3176. source: unescape('asString%0A%09%3Creturn%20self.toString%28%29%3E'),
  3177. messageSends: [],
  3178. referencedClasses: []
  3179. }),
  3180. smalltalk.Date);
  3181. smalltalk.addMethod(
  3182. unescape('_printString'),
  3183. smalltalk.method({
  3184. selector: unescape('printString'),
  3185. category: 'printing',
  3186. fn: function (){
  3187. var self=this;
  3188. return smalltalk.send(self, "_asString", []);
  3189. return self;},
  3190. args: [],
  3191. source: unescape('printString%0A%09%5Eself%20asString'),
  3192. messageSends: ["asString"],
  3193. referencedClasses: []
  3194. }),
  3195. smalltalk.Date);
  3196. smalltalk.addMethod(
  3197. unescape('_asMilliseconds'),
  3198. smalltalk.method({
  3199. selector: unescape('asMilliseconds'),
  3200. category: 'converting',
  3201. fn: function (){
  3202. var self=this;
  3203. return smalltalk.send(self, "_time", []);
  3204. return self;},
  3205. args: [],
  3206. source: unescape('asMilliseconds%0A%09%5Eself%20time'),
  3207. messageSends: ["time"],
  3208. referencedClasses: []
  3209. }),
  3210. smalltalk.Date);
  3211. smalltalk.addMethod(
  3212. unescape('_time'),
  3213. smalltalk.method({
  3214. selector: unescape('time'),
  3215. category: 'accessing',
  3216. fn: function (){
  3217. var self=this;
  3218. return self.getTime();
  3219. return self;},
  3220. args: [],
  3221. source: unescape('time%0A%09%3Creturn%20self.getTime%28%29%3E'),
  3222. messageSends: [],
  3223. referencedClasses: []
  3224. }),
  3225. smalltalk.Date);
  3226. smalltalk.addMethod(
  3227. unescape('_time_'),
  3228. smalltalk.method({
  3229. selector: unescape('time%3A'),
  3230. category: 'accessing',
  3231. fn: function (aNumber){
  3232. var self=this;
  3233. self.setTime(aNumber);
  3234. return self;},
  3235. args: ["aNumber"],
  3236. source: unescape('time%3A%20aNumber%0A%09%3Cself.setTime%28aNumber%29%3E'),
  3237. messageSends: [],
  3238. referencedClasses: []
  3239. }),
  3240. smalltalk.Date);
  3241. smalltalk.addMethod(
  3242. unescape('_asDateString'),
  3243. smalltalk.method({
  3244. selector: unescape('asDateString'),
  3245. category: 'converting',
  3246. fn: function (){
  3247. var self=this;
  3248. return self.toDateString();
  3249. return self;},
  3250. args: [],
  3251. source: unescape('asDateString%0A%09%3Creturn%20self.toDateString%28%29%3E'),
  3252. messageSends: [],
  3253. referencedClasses: []
  3254. }),
  3255. smalltalk.Date);
  3256. smalltalk.addMethod(
  3257. unescape('_asTimeString'),
  3258. smalltalk.method({
  3259. selector: unescape('asTimeString'),
  3260. category: 'converting',
  3261. fn: function (){
  3262. var self=this;
  3263. return self.toTimeString();
  3264. return self;},
  3265. args: [],
  3266. source: unescape('asTimeString%0A%09%3Creturn%20self.toTimeString%28%29%3E'),
  3267. messageSends: [],
  3268. referencedClasses: []
  3269. }),
  3270. smalltalk.Date);
  3271. smalltalk.addMethod(
  3272. unescape('_asLocaleString'),
  3273. smalltalk.method({
  3274. selector: unescape('asLocaleString'),
  3275. category: 'converting',
  3276. fn: function (){
  3277. var self=this;
  3278. return self.toLocaleString();
  3279. return self;},
  3280. args: [],
  3281. source: unescape('asLocaleString%0A%09%3Creturn%20self.toLocaleString%28%29%3E'),
  3282. messageSends: [],
  3283. referencedClasses: []
  3284. }),
  3285. smalltalk.Date);
  3286. smalltalk.addMethod(
  3287. unescape('_asNumber'),
  3288. smalltalk.method({
  3289. selector: unescape('asNumber'),
  3290. category: 'converting',
  3291. fn: function (){
  3292. var self=this;
  3293. return smalltalk.send(self, "_asMilliseconds", []);
  3294. return self;},
  3295. args: [],
  3296. source: unescape('asNumber%0A%09%5Eself%20asMilliseconds'),
  3297. messageSends: ["asMilliseconds"],
  3298. referencedClasses: []
  3299. }),
  3300. smalltalk.Date);
  3301. smalltalk.addMethod(
  3302. unescape('_hours_'),
  3303. smalltalk.method({
  3304. selector: unescape('hours%3A'),
  3305. category: 'accessing',
  3306. fn: function (aNumber){
  3307. var self=this;
  3308. self.setHours(aNumber);
  3309. return self;},
  3310. args: ["aNumber"],
  3311. source: unescape('hours%3A%20aNumber%0A%09%3Cself.setHours%28aNumber%29%3E'),
  3312. messageSends: [],
  3313. referencedClasses: []
  3314. }),
  3315. smalltalk.Date);
  3316. smalltalk.addMethod(
  3317. unescape('_minutes_'),
  3318. smalltalk.method({
  3319. selector: unescape('minutes%3A'),
  3320. category: 'accessing',
  3321. fn: function (aNumber){
  3322. var self=this;
  3323. self.setMinutes(aNumber);
  3324. return self;},
  3325. args: ["aNumber"],
  3326. source: unescape('minutes%3A%20aNumber%0A%09%3Cself.setMinutes%28aNumber%29%3E'),
  3327. messageSends: [],
  3328. referencedClasses: []
  3329. }),
  3330. smalltalk.Date);
  3331. smalltalk.addMethod(
  3332. unescape('_seconds_'),
  3333. smalltalk.method({
  3334. selector: unescape('seconds%3A'),
  3335. category: 'accessing',
  3336. fn: function (aNumber){
  3337. var self=this;
  3338. self.setSeconds(aNumber);
  3339. return self;},
  3340. args: ["aNumber"],
  3341. source: unescape('seconds%3A%20aNumber%0A%09%3Cself.setSeconds%28aNumber%29%3E'),
  3342. messageSends: [],
  3343. referencedClasses: []
  3344. }),
  3345. smalltalk.Date);
  3346. smalltalk.addMethod(
  3347. unescape('_milliseconds_'),
  3348. smalltalk.method({
  3349. selector: unescape('milliseconds%3A'),
  3350. category: 'accessing',
  3351. fn: function (aNumber){
  3352. var self=this;
  3353. self.setMilliseconds(aNumber);
  3354. return self;},
  3355. args: ["aNumber"],
  3356. source: unescape('milliseconds%3A%20aNumber%0A%09%3Cself.setMilliseconds%28aNumber%29%3E'),
  3357. messageSends: [],
  3358. referencedClasses: []
  3359. }),
  3360. smalltalk.Date);
  3361. smalltalk.addMethod(
  3362. unescape('_hours'),
  3363. smalltalk.method({
  3364. selector: unescape('hours'),
  3365. category: 'accessing',
  3366. fn: function (){
  3367. var self=this;
  3368. return self.getHours();
  3369. return self;},
  3370. args: [],
  3371. source: unescape('hours%0A%09%3Creturn%20self.getHours%28%29%3E'),
  3372. messageSends: [],
  3373. referencedClasses: []
  3374. }),
  3375. smalltalk.Date);
  3376. smalltalk.addMethod(
  3377. unescape('_minutes'),
  3378. smalltalk.method({
  3379. selector: unescape('minutes'),
  3380. category: 'accessing',
  3381. fn: function (){
  3382. var self=this;
  3383. return self.getMinutes();
  3384. return self;},
  3385. args: [],
  3386. source: unescape('minutes%0A%09%3Creturn%20self.getMinutes%28%29%3E'),
  3387. messageSends: [],
  3388. referencedClasses: []
  3389. }),
  3390. smalltalk.Date);
  3391. smalltalk.addMethod(
  3392. unescape('_seconds'),
  3393. smalltalk.method({
  3394. selector: unescape('seconds'),
  3395. category: 'accessing',
  3396. fn: function (){
  3397. var self=this;
  3398. return self.getSeconds();
  3399. return self;},
  3400. args: [],
  3401. source: unescape('seconds%0A%09%3Creturn%20self.getSeconds%28%29%3E'),
  3402. messageSends: [],
  3403. referencedClasses: []
  3404. }),
  3405. smalltalk.Date);
  3406. smalltalk.addMethod(
  3407. unescape('_milliseconds'),
  3408. smalltalk.method({
  3409. selector: unescape('milliseconds'),
  3410. category: 'accessing',
  3411. fn: function (){
  3412. var self=this;
  3413. return self.getMilliseconds();
  3414. return self;},
  3415. args: [],
  3416. source: unescape('milliseconds%0A%09%3Creturn%20self.getMilliseconds%28%29%3E'),
  3417. messageSends: [],
  3418. referencedClasses: []
  3419. }),
  3420. smalltalk.Date);
  3421. smalltalk.addMethod(
  3422. unescape('__lt'),
  3423. smalltalk.method({
  3424. selector: unescape('%3C'),
  3425. category: 'comparing',
  3426. fn: function (aDate){
  3427. var self=this;
  3428. return self < aDate;
  3429. return self;},
  3430. args: ["aDate"],
  3431. source: unescape('%3C%20aDate%0A%09%3Creturn%20self%20%3C%20aDate%3E'),
  3432. messageSends: [],
  3433. referencedClasses: []
  3434. }),
  3435. smalltalk.Date);
  3436. smalltalk.addMethod(
  3437. unescape('__gt'),
  3438. smalltalk.method({
  3439. selector: unescape('%3E'),
  3440. category: 'comparing',
  3441. fn: function (aDate){
  3442. var self=this;
  3443. return self > aDate;
  3444. return self;},
  3445. args: ["aDate"],
  3446. source: unescape('%3E%20aDate%0A%09%3Creturn%20self%20%3E%3E%20aDate%3E'),
  3447. messageSends: [],
  3448. referencedClasses: []
  3449. }),
  3450. smalltalk.Date);
  3451. smalltalk.addMethod(
  3452. unescape('__lt_eq'),
  3453. smalltalk.method({
  3454. selector: unescape('%3C%3D'),
  3455. category: 'comparing',
  3456. fn: function (aDate){
  3457. var self=this;
  3458. return self <= aDate;
  3459. return self;},
  3460. args: ["aDate"],
  3461. source: unescape('%3C%3D%20aDate%0A%09%3Creturn%20self%20%3C%3D%20aDate%3E'),
  3462. messageSends: [],
  3463. referencedClasses: []
  3464. }),
  3465. smalltalk.Date);
  3466. smalltalk.addMethod(
  3467. unescape('__gt_eq'),
  3468. smalltalk.method({
  3469. selector: unescape('%3E%3D'),
  3470. category: 'comparing',
  3471. fn: function (aDate){
  3472. var self=this;
  3473. return self >= aDate;
  3474. return self;},
  3475. args: ["aDate"],
  3476. source: unescape('%3E%3D%20aDate%0A%09%3Creturn%20self%20%3E%3E%3D%20aDate%3E'),
  3477. messageSends: [],
  3478. referencedClasses: []
  3479. }),
  3480. smalltalk.Date);
  3481. smalltalk.addMethod(
  3482. unescape('__minus'),
  3483. smalltalk.method({
  3484. selector: unescape('-'),
  3485. category: 'arithmetic',
  3486. fn: function (aDate){
  3487. var self=this;
  3488. return self - aDate;
  3489. return self;},
  3490. args: ["aDate"],
  3491. source: unescape('-%20aDate%0A%09%3Creturn%20self%20-%20aDate%3E'),
  3492. messageSends: [],
  3493. referencedClasses: []
  3494. }),
  3495. smalltalk.Date);
  3496. smalltalk.addMethod(
  3497. unescape('__plus'),
  3498. smalltalk.method({
  3499. selector: unescape('+'),
  3500. category: 'arithmetic',
  3501. fn: function (aDate){
  3502. var self=this;
  3503. return self + aDate;
  3504. return self;},
  3505. args: ["aDate"],
  3506. source: unescape('+%20aDate%0A%09%3Creturn%20self%20+%20aDate%3E'),
  3507. messageSends: [],
  3508. referencedClasses: []
  3509. }),
  3510. smalltalk.Date);
  3511. smalltalk.addMethod(
  3512. unescape('_asJSONObject'),
  3513. smalltalk.method({
  3514. selector: unescape('asJSONObject'),
  3515. category: 'converting',
  3516. fn: function (){
  3517. var self=this;
  3518. return self;
  3519. return self;},
  3520. args: [],
  3521. source: unescape('asJSONObject%0A%09%5Eself'),
  3522. messageSends: [],
  3523. referencedClasses: []
  3524. }),
  3525. smalltalk.Date);
  3526. smalltalk.addMethod(
  3527. unescape('_new_'),
  3528. smalltalk.method({
  3529. selector: unescape('new%3A'),
  3530. category: 'instance creation',
  3531. fn: function (anObject){
  3532. var self=this;
  3533. return new Date(anObject);
  3534. return self;},
  3535. args: ["anObject"],
  3536. source: unescape('new%3A%20anObject%0A%09%3Creturn%20new%20Date%28anObject%29%3E'),
  3537. messageSends: [],
  3538. referencedClasses: []
  3539. }),
  3540. smalltalk.Date.klass);
  3541. smalltalk.addMethod(
  3542. unescape('_fromString_'),
  3543. smalltalk.method({
  3544. selector: unescape('fromString%3A'),
  3545. category: 'instance creation',
  3546. fn: function (aString){
  3547. var self=this;
  3548. return smalltalk.send(self, "_new_", [aString]);
  3549. return self;},
  3550. args: ["aString"],
  3551. 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'),
  3552. messageSends: ["new:"],
  3553. referencedClasses: []
  3554. }),
  3555. smalltalk.Date.klass);
  3556. smalltalk.addMethod(
  3557. unescape('_fromSeconds_'),
  3558. smalltalk.method({
  3559. selector: unescape('fromSeconds%3A'),
  3560. category: 'instance creation',
  3561. fn: function (aNumber){
  3562. var self=this;
  3563. return smalltalk.send(self, "_fromMilliseconds_", [((($receiver = aNumber).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))]);
  3564. return self;},
  3565. args: ["aNumber"],
  3566. source: unescape('fromSeconds%3A%20aNumber%0A%09%5Eself%20fromMilliseconds%3A%20aNumber%20*%201000'),
  3567. messageSends: ["fromMilliseconds:", unescape("*")],
  3568. referencedClasses: []
  3569. }),
  3570. smalltalk.Date.klass);
  3571. smalltalk.addMethod(
  3572. unescape('_fromMilliseconds_'),
  3573. smalltalk.method({
  3574. selector: unescape('fromMilliseconds%3A'),
  3575. category: 'instance creation',
  3576. fn: function (aNumber){
  3577. var self=this;
  3578. return smalltalk.send(self, "_new_", [aNumber]);
  3579. return self;},
  3580. args: ["aNumber"],
  3581. source: unescape('fromMilliseconds%3A%20aNumber%0A%09%5Eself%20new%3A%20aNumber'),
  3582. messageSends: ["new:"],
  3583. referencedClasses: []
  3584. }),
  3585. smalltalk.Date.klass);
  3586. smalltalk.addMethod(
  3587. unescape('_today'),
  3588. smalltalk.method({
  3589. selector: unescape('today'),
  3590. category: 'instance creation',
  3591. fn: function (){
  3592. var self=this;
  3593. return smalltalk.send(self, "_new", []);
  3594. return self;},
  3595. args: [],
  3596. source: unescape('today%0A%09%5Eself%20new'),
  3597. messageSends: ["new"],
  3598. referencedClasses: []
  3599. }),
  3600. smalltalk.Date.klass);
  3601. smalltalk.addMethod(
  3602. unescape('_now'),
  3603. smalltalk.method({
  3604. selector: unescape('now'),
  3605. category: 'instance creation',
  3606. fn: function (){
  3607. var self=this;
  3608. return smalltalk.send(self, "_today", []);
  3609. return self;},
  3610. args: [],
  3611. source: unescape('now%0A%09%5Eself%20today'),
  3612. messageSends: ["today"],
  3613. referencedClasses: []
  3614. }),
  3615. smalltalk.Date.klass);
  3616. smalltalk.addMethod(
  3617. unescape('_millisecondsToRun_'),
  3618. smalltalk.method({
  3619. selector: unescape('millisecondsToRun%3A'),
  3620. category: 'instance creation',
  3621. fn: function (aBlock){
  3622. var self=this;
  3623. var t=nil;
  3624. t=smalltalk.send((smalltalk.Date || Date), "_now", []);
  3625. smalltalk.send(aBlock, "_value", []);
  3626. return ((($receiver = smalltalk.send((smalltalk.Date || Date), "_now", [])).klass === smalltalk.Number) ? $receiver -t : smalltalk.send($receiver, "__minus", [t]));
  3627. return self;},
  3628. args: ["aBlock"],
  3629. 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'),
  3630. messageSends: ["now", "value", unescape("-")],
  3631. referencedClasses: [smalltalk.Date]
  3632. }),
  3633. smalltalk.Date.klass);
  3634. smalltalk.addClass('UndefinedObject', smalltalk.Object, [], 'Kernel');
  3635. smalltalk.addMethod(
  3636. unescape('_subclass_instanceVariableNames_'),
  3637. smalltalk.method({
  3638. selector: unescape('subclass%3AinstanceVariableNames%3A'),
  3639. category: 'class creation',
  3640. fn: function (aString, anotherString){
  3641. var self=this;
  3642. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
  3643. return self;},
  3644. args: ["aString", "anotherString"],
  3645. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%20package%3A%20nil'),
  3646. messageSends: ["subclass:instanceVariableNames:package:"],
  3647. referencedClasses: []
  3648. }),
  3649. smalltalk.UndefinedObject);
  3650. smalltalk.addMethod(
  3651. unescape('_subclass_instanceVariableNames_category_'),
  3652. smalltalk.method({
  3653. selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
  3654. category: 'class creation',
  3655. fn: function (aString, aString2, aString3){
  3656. var self=this;
  3657. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  3658. return self;},
  3659. args: ["aString", "aString2", "aString3"],
  3660. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20category%3A%20aString3%0A%09%22Kept%20for%20compatibility.%22%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  3661. messageSends: ["subclass:instanceVariableNames:package:"],
  3662. referencedClasses: []
  3663. }),
  3664. smalltalk.UndefinedObject);
  3665. smalltalk.addMethod(
  3666. unescape('_shallowCopy'),
  3667. smalltalk.method({
  3668. selector: unescape('shallowCopy'),
  3669. category: 'copying',
  3670. fn: function (){
  3671. var self=this;
  3672. return self;
  3673. return self;},
  3674. args: [],
  3675. source: unescape('shallowCopy%0A%09%5Eself'),
  3676. messageSends: [],
  3677. referencedClasses: []
  3678. }),
  3679. smalltalk.UndefinedObject);
  3680. smalltalk.addMethod(
  3681. unescape('_deepCopy'),
  3682. smalltalk.method({
  3683. selector: unescape('deepCopy'),
  3684. category: 'copying',
  3685. fn: function (){
  3686. var self=this;
  3687. return self;
  3688. return self;},
  3689. args: [],
  3690. source: unescape('deepCopy%0A%09%5Eself'),
  3691. messageSends: [],
  3692. referencedClasses: []
  3693. }),
  3694. smalltalk.UndefinedObject);
  3695. smalltalk.addMethod(
  3696. unescape('_ifNil_'),
  3697. smalltalk.method({
  3698. selector: unescape('ifNil%3A'),
  3699. category: 'testing',
  3700. fn: function (aBlock){
  3701. var self=this;
  3702. return smalltalk.send(self, "_ifNil_ifNotNil_", [aBlock, (function(){return nil;})]);
  3703. return self;},
  3704. args: ["aBlock"],
  3705. source: unescape('ifNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifNil%3A%20aBlock%20ifNotNil%3A%20%5B%5D'),
  3706. messageSends: ["ifNil:ifNotNil:"],
  3707. referencedClasses: []
  3708. }),
  3709. smalltalk.UndefinedObject);
  3710. smalltalk.addMethod(
  3711. unescape('_ifNotNil_'),
  3712. smalltalk.method({
  3713. selector: unescape('ifNotNil%3A'),
  3714. category: 'testing',
  3715. fn: function (aBlock){
  3716. var self=this;
  3717. return self;
  3718. return self;},
  3719. args: ["aBlock"],
  3720. source: unescape('ifNotNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself'),
  3721. messageSends: [],
  3722. referencedClasses: []
  3723. }),
  3724. smalltalk.UndefinedObject);
  3725. smalltalk.addMethod(
  3726. unescape('_ifNil_ifNotNil_'),
  3727. smalltalk.method({
  3728. selector: unescape('ifNil%3AifNotNil%3A'),
  3729. category: 'testing',
  3730. fn: function (aBlock, anotherBlock){
  3731. var self=this;
  3732. return smalltalk.send(aBlock, "_value", []);
  3733. return self;},
  3734. args: ["aBlock", "anotherBlock"],
  3735. source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  3736. messageSends: ["value"],
  3737. referencedClasses: []
  3738. }),
  3739. smalltalk.UndefinedObject);
  3740. smalltalk.addMethod(
  3741. unescape('_ifNotNil_ifNil_'),
  3742. smalltalk.method({
  3743. selector: unescape('ifNotNil%3AifNil%3A'),
  3744. category: 'testing',
  3745. fn: function (aBlock, anotherBlock){
  3746. var self=this;
  3747. return smalltalk.send(anotherBlock, "_value", []);
  3748. return self;},
  3749. args: ["aBlock", "anotherBlock"],
  3750. source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EanotherBlock%20value'),
  3751. messageSends: ["value"],
  3752. referencedClasses: []
  3753. }),
  3754. smalltalk.UndefinedObject);
  3755. smalltalk.addMethod(
  3756. unescape('_isNil'),
  3757. smalltalk.method({
  3758. selector: unescape('isNil'),
  3759. category: 'testing',
  3760. fn: function (){
  3761. var self=this;
  3762. return true;
  3763. return self;},
  3764. args: [],
  3765. source: unescape('isNil%0A%09%5Etrue'),
  3766. messageSends: [],
  3767. referencedClasses: []
  3768. }),
  3769. smalltalk.UndefinedObject);
  3770. smalltalk.addMethod(
  3771. unescape('_notNil'),
  3772. smalltalk.method({
  3773. selector: unescape('notNil'),
  3774. category: 'testing',
  3775. fn: function (){
  3776. var self=this;
  3777. return false;
  3778. return self;},
  3779. args: [],
  3780. source: unescape('notNil%0A%09%5Efalse'),
  3781. messageSends: [],
  3782. referencedClasses: []
  3783. }),
  3784. smalltalk.UndefinedObject);
  3785. smalltalk.addMethod(
  3786. unescape('_printString'),
  3787. smalltalk.method({
  3788. selector: unescape('printString'),
  3789. category: 'printing',
  3790. fn: function (){
  3791. var self=this;
  3792. return "nil";
  3793. return self;},
  3794. args: [],
  3795. source: unescape('printString%0A%20%20%20%20%5E%27nil%27'),
  3796. messageSends: [],
  3797. referencedClasses: []
  3798. }),
  3799. smalltalk.UndefinedObject);
  3800. smalltalk.addMethod(
  3801. unescape('_subclass_instanceVariableNames_package_'),
  3802. smalltalk.method({
  3803. selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
  3804. category: 'class creation',
  3805. fn: function (aString, aString2, aString3){
  3806. var self=this;
  3807. return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
  3808. return self;},
  3809. args: ["aString", "aString2", "aString3"],
  3810. 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'),
  3811. messageSends: ["superclass:subclass:instanceVariableNames:package:", "new"],
  3812. referencedClasses: [smalltalk.nil]
  3813. }),
  3814. smalltalk.UndefinedObject);
  3815. smalltalk.addMethod(
  3816. unescape('_new'),
  3817. smalltalk.method({
  3818. selector: unescape('new'),
  3819. category: 'instance creation',
  3820. fn: function (){
  3821. var self=this;
  3822. smalltalk.send(self, "_error_", ["You cannot create new instances of UndefinedObject. Use nil"]);
  3823. return self;},
  3824. args: [],
  3825. source: unescape('new%0A%09%20%20%20%20self%20error%3A%20%27You%20cannot%20create%20new%20instances%20of%20UndefinedObject.%20Use%20nil%27'),
  3826. messageSends: ["error:"],
  3827. referencedClasses: []
  3828. }),
  3829. smalltalk.UndefinedObject.klass);
  3830. smalltalk.addClass('Collection', smalltalk.Object, [], 'Kernel');
  3831. smalltalk.addMethod(
  3832. unescape('_size'),
  3833. smalltalk.method({
  3834. selector: unescape('size'),
  3835. category: 'accessing',
  3836. fn: function (){
  3837. var self=this;
  3838. smalltalk.send(self, "_subclassResponsibility", []);
  3839. return self;},
  3840. args: [],
  3841. source: unescape('size%0A%09self%20subclassResponsibility'),
  3842. messageSends: ["subclassResponsibility"],
  3843. referencedClasses: []
  3844. }),
  3845. smalltalk.Collection);
  3846. smalltalk.addMethod(
  3847. unescape('_readStream'),
  3848. smalltalk.method({
  3849. selector: unescape('readStream'),
  3850. category: 'accessing',
  3851. fn: function (){
  3852. var self=this;
  3853. return smalltalk.send(self, "_stream", []);
  3854. return self;},
  3855. args: [],
  3856. source: unescape('readStream%0A%09%5Eself%20stream'),
  3857. messageSends: ["stream"],
  3858. referencedClasses: []
  3859. }),
  3860. smalltalk.Collection);
  3861. smalltalk.addMethod(
  3862. unescape('_writeStream'),
  3863. smalltalk.method({
  3864. selector: unescape('writeStream'),
  3865. category: 'accessing',
  3866. fn: function (){
  3867. var self=this;
  3868. return smalltalk.send(self, "_stream", []);
  3869. return self;},
  3870. args: [],
  3871. source: unescape('writeStream%0A%09%5Eself%20stream'),
  3872. messageSends: ["stream"],
  3873. referencedClasses: []
  3874. }),
  3875. smalltalk.Collection);
  3876. smalltalk.addMethod(
  3877. unescape('_stream'),
  3878. smalltalk.method({
  3879. selector: unescape('stream'),
  3880. category: 'accessing',
  3881. fn: function (){
  3882. var self=this;
  3883. return smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [self]);
  3884. return self;},
  3885. args: [],
  3886. source: unescape('stream%0A%09%5Eself%20streamClass%20on%3A%20self'),
  3887. messageSends: ["on:", "streamClass"],
  3888. referencedClasses: []
  3889. }),
  3890. smalltalk.Collection);
  3891. smalltalk.addMethod(
  3892. unescape('_streamClass'),
  3893. smalltalk.method({
  3894. selector: unescape('streamClass'),
  3895. category: 'accessing',
  3896. fn: function (){
  3897. var self=this;
  3898. return smalltalk.send(smalltalk.send(self, "_class", []), "_streamClass", []);
  3899. return self;},
  3900. args: [],
  3901. source: unescape('streamClass%0A%09%5Eself%20class%20streamClass'),
  3902. messageSends: ["streamClass", "class"],
  3903. referencedClasses: []
  3904. }),
  3905. smalltalk.Collection);
  3906. smalltalk.addMethod(
  3907. unescape('_add_'),
  3908. smalltalk.method({
  3909. selector: unescape('add%3A'),
  3910. category: 'adding/removing',
  3911. fn: function (anObject){
  3912. var self=this;
  3913. smalltalk.send(self, "_subclassResponsibility", []);
  3914. return self;},
  3915. args: ["anObject"],
  3916. source: unescape('add%3A%20anObject%0A%09self%20subclassResponsibility'),
  3917. messageSends: ["subclassResponsibility"],
  3918. referencedClasses: []
  3919. }),
  3920. smalltalk.Collection);
  3921. smalltalk.addMethod(
  3922. unescape('_addAll_'),
  3923. smalltalk.method({
  3924. selector: unescape('addAll%3A'),
  3925. category: 'adding/removing',
  3926. fn: function (aCollection){
  3927. var self=this;
  3928. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_add_", [each]);})]);
  3929. return aCollection;
  3930. return self;},
  3931. args: ["aCollection"],
  3932. 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'),
  3933. messageSends: ["do:", "add:"],
  3934. referencedClasses: []
  3935. }),
  3936. smalltalk.Collection);
  3937. smalltalk.addMethod(
  3938. unescape('__comma'),
  3939. smalltalk.method({
  3940. selector: unescape('%2C'),
  3941. category: 'copying',
  3942. fn: function (aCollection){
  3943. var self=this;
  3944. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  3945. return self;},
  3946. args: ["aCollection"],
  3947. source: unescape('%2C%20aCollection%0A%09%5Eself%20copy%20%0A%09%20%20%20%20addAll%3A%20aCollection%3B%20%0A%09%20%20%20%20yourself'),
  3948. messageSends: ["addAll:", "yourself", "copy"],
  3949. referencedClasses: []
  3950. }),
  3951. smalltalk.Collection);
  3952. smalltalk.addMethod(
  3953. unescape('_copyWith_'),
  3954. smalltalk.method({
  3955. selector: unescape('copyWith%3A'),
  3956. category: 'copying',
  3957. fn: function (anObject){
  3958. var self=this;
  3959. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  3960. return self;},
  3961. args: ["anObject"],
  3962. source: unescape('copyWith%3A%20anObject%0A%09%5Eself%20copy%20add%3A%20anObject%3B%20yourself'),
  3963. messageSends: ["add:", "yourself", "copy"],
  3964. referencedClasses: []
  3965. }),
  3966. smalltalk.Collection);
  3967. smalltalk.addMethod(
  3968. unescape('_copyWithAll_'),
  3969. smalltalk.method({
  3970. selector: unescape('copyWithAll%3A'),
  3971. category: 'copying',
  3972. fn: function (aCollection){
  3973. var self=this;
  3974. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  3975. return self;},
  3976. args: ["aCollection"],
  3977. source: unescape('copyWithAll%3A%20aCollection%0A%09%5Eself%20copy%20addAll%3A%20aCollection%3B%20yourself'),
  3978. messageSends: ["addAll:", "yourself", "copy"],
  3979. referencedClasses: []
  3980. }),
  3981. smalltalk.Collection);
  3982. smalltalk.addMethod(
  3983. unescape('_asArray'),
  3984. smalltalk.method({
  3985. selector: unescape('asArray'),
  3986. category: 'converting',
  3987. fn: function (){
  3988. var self=this;
  3989. var array=nil;
  3990. var index=nil;
  3991. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  3992. index=(0);
  3993. 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]);})]);
  3994. return array;
  3995. return self;},
  3996. args: [],
  3997. 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'),
  3998. messageSends: ["new", "do:", unescape("+"), "at:put:"],
  3999. referencedClasses: [smalltalk.Array]
  4000. }),
  4001. smalltalk.Collection);
  4002. smalltalk.addMethod(
  4003. unescape('_do_'),
  4004. smalltalk.method({
  4005. selector: unescape('do%3A'),
  4006. category: 'enumerating',
  4007. fn: function (aBlock){
  4008. var self=this;
  4009. for(var i=0;i<self.length;i++){aBlock(self[i]);};
  4010. return self;},
  4011. args: ["aBlock"],
  4012. source: unescape('do%3A%20aBlock%0A%09%3Cfor%28var%20i%3D0%3Bi%3Cself.length%3Bi++%29%7BaBlock%28self%5Bi%5D%29%3B%7D%3E'),
  4013. messageSends: [],
  4014. referencedClasses: []
  4015. }),
  4016. smalltalk.Collection);
  4017. smalltalk.addMethod(
  4018. unescape('_collect_'),
  4019. smalltalk.method({
  4020. selector: unescape('collect%3A'),
  4021. category: 'enumerating',
  4022. fn: function (aBlock){
  4023. var self=this;
  4024. var newCollection=nil;
  4025. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  4026. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(aBlock, "_value_", [each])]);})]);
  4027. return newCollection;
  4028. return self;},
  4029. args: ["aBlock"],
  4030. 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'),
  4031. messageSends: ["new", "class", "do:", "add:", "value:"],
  4032. referencedClasses: []
  4033. }),
  4034. smalltalk.Collection);
  4035. smalltalk.addMethod(
  4036. unescape('_detect_'),
  4037. smalltalk.method({
  4038. selector: unescape('detect%3A'),
  4039. category: 'enumerating',
  4040. fn: function (aBlock){
  4041. var self=this;
  4042. return smalltalk.send(self, "_detect_ifNone_", [aBlock, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4043. return self;},
  4044. args: ["aBlock"],
  4045. source: unescape('detect%3A%20aBlock%0A%09%5Eself%20detect%3A%20aBlock%20ifNone%3A%20%5Bself%20errorNotFound%5D'),
  4046. messageSends: ["detect:ifNone:", "errorNotFound"],
  4047. referencedClasses: []
  4048. }),
  4049. smalltalk.Collection);
  4050. smalltalk.addMethod(
  4051. unescape('_detect_ifNone_'),
  4052. smalltalk.method({
  4053. selector: unescape('detect%3AifNone%3A'),
  4054. category: 'enumerating',
  4055. fn: function (aBlock, anotherBlock){
  4056. var self=this;
  4057. for(var i = 0; i < self.length; i++)
  4058. if(aBlock(self[i]))
  4059. return self[i];
  4060. return anotherBlock();
  4061. ;
  4062. return self;},
  4063. args: ["aBlock", "anotherBlock"],
  4064. 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'),
  4065. messageSends: [],
  4066. referencedClasses: []
  4067. }),
  4068. smalltalk.Collection);
  4069. smalltalk.addMethod(
  4070. unescape('_do_separatedBy_'),
  4071. smalltalk.method({
  4072. selector: unescape('do%3AseparatedBy%3A'),
  4073. category: 'enumerating',
  4074. fn: function (aBlock, anotherBlock){
  4075. var self=this;
  4076. var first=nil;
  4077. first=true;
  4078. 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]);})]);
  4079. return self;},
  4080. args: ["aBlock", "anotherBlock"],
  4081. 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'),
  4082. messageSends: ["do:", "ifTrue:ifFalse:", "value", "value:"],
  4083. referencedClasses: []
  4084. }),
  4085. smalltalk.Collection);
  4086. smalltalk.addMethod(
  4087. unescape('_inject_into_'),
  4088. smalltalk.method({
  4089. selector: unescape('inject%3Ainto%3A'),
  4090. category: 'enumerating',
  4091. fn: function (anObject, aBlock){
  4092. var self=this;
  4093. var result=nil;
  4094. result=anObject;
  4095. smalltalk.send(self, "_do_", [(function(each){return result=smalltalk.send(aBlock, "_value_value_", [result, each]);})]);
  4096. return result;
  4097. return self;},
  4098. args: ["anObject", "aBlock"],
  4099. 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'),
  4100. messageSends: ["do:", "value:value:"],
  4101. referencedClasses: []
  4102. }),
  4103. smalltalk.Collection);
  4104. smalltalk.addMethod(
  4105. unescape('_reject_'),
  4106. smalltalk.method({
  4107. selector: unescape('reject%3A'),
  4108. category: 'enumerating',
  4109. fn: function (aBlock){
  4110. var self=this;
  4111. return smalltalk.send(self, "_select_", [(function(each){return smalltalk.send(smalltalk.send(aBlock, "_value_", [each]), "__eq", [false]);})]);
  4112. return self;},
  4113. args: ["aBlock"],
  4114. 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'),
  4115. messageSends: ["select:", unescape("%3D"), "value:"],
  4116. referencedClasses: []
  4117. }),
  4118. smalltalk.Collection);
  4119. smalltalk.addMethod(
  4120. unescape('_select_'),
  4121. smalltalk.method({
  4122. selector: unescape('select%3A'),
  4123. category: 'enumerating',
  4124. fn: function (aBlock){
  4125. var self=this;
  4126. var stream=nil;
  4127. stream=smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_new", []), "_writeStream", []);
  4128. 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]);})]));})]);
  4129. return smalltalk.send(stream, "_contents", []);
  4130. return self;},
  4131. args: ["aBlock"],
  4132. 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'),
  4133. messageSends: ["writeStream", "new", "class", "do:", "ifTrue:", "value:", "nextPut:", "contents"],
  4134. referencedClasses: []
  4135. }),
  4136. smalltalk.Collection);
  4137. smalltalk.addMethod(
  4138. unescape('_errorNotFound'),
  4139. smalltalk.method({
  4140. selector: unescape('errorNotFound'),
  4141. category: 'error handling',
  4142. fn: function (){
  4143. var self=this;
  4144. smalltalk.send(self, "_error_", ["Object is not in the collection"]);
  4145. return self;},
  4146. args: [],
  4147. source: unescape('errorNotFound%0A%09self%20error%3A%20%27Object%20is%20not%20in%20the%20collection%27'),
  4148. messageSends: ["error:"],
  4149. referencedClasses: []
  4150. }),
  4151. smalltalk.Collection);
  4152. smalltalk.addMethod(
  4153. unescape('_includes_'),
  4154. smalltalk.method({
  4155. selector: unescape('includes%3A'),
  4156. category: 'testing',
  4157. fn: function (anObject){
  4158. var self=this;
  4159. var i = self.length;
  4160. while (i--) {
  4161. if (smalltalk.send(self[i], "__eq", [anObject])) {return true;}
  4162. }
  4163. return false
  4164. ;
  4165. return self;},
  4166. args: ["anObject"],
  4167. 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'),
  4168. messageSends: [],
  4169. referencedClasses: []
  4170. }),
  4171. smalltalk.Collection);
  4172. smalltalk.addMethod(
  4173. unescape('_notEmpty'),
  4174. smalltalk.method({
  4175. selector: unescape('notEmpty'),
  4176. category: 'testing',
  4177. fn: function (){
  4178. var self=this;
  4179. return smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_not", []);
  4180. return self;},
  4181. args: [],
  4182. source: unescape('notEmpty%0A%09%5Eself%20isEmpty%20not'),
  4183. messageSends: ["not", "isEmpty"],
  4184. referencedClasses: []
  4185. }),
  4186. smalltalk.Collection);
  4187. smalltalk.addMethod(
  4188. unescape('_isEmpty'),
  4189. smalltalk.method({
  4190. selector: unescape('isEmpty'),
  4191. category: 'testing',
  4192. fn: function (){
  4193. var self=this;
  4194. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  4195. return self;},
  4196. args: [],
  4197. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  4198. messageSends: [unescape("%3D"), "size"],
  4199. referencedClasses: []
  4200. }),
  4201. smalltalk.Collection);
  4202. smalltalk.addMethod(
  4203. unescape('_remove_'),
  4204. smalltalk.method({
  4205. selector: unescape('remove%3A'),
  4206. category: 'adding/removing',
  4207. fn: function (anObject){
  4208. var self=this;
  4209. smalltalk.send(self, "_subclassResponsibility", []);
  4210. return self;},
  4211. args: ["anObject"],
  4212. source: unescape('remove%3A%20anObject%0A%20%20%20%20self%20subclassResponsibility'),
  4213. messageSends: ["subclassResponsibility"],
  4214. referencedClasses: []
  4215. }),
  4216. smalltalk.Collection);
  4217. smalltalk.addMethod(
  4218. unescape('_asSet'),
  4219. smalltalk.method({
  4220. selector: unescape('asSet'),
  4221. category: 'converting',
  4222. fn: function (){
  4223. var self=this;
  4224. return smalltalk.send((smalltalk.Set || Set), "_withAll_", [self]);
  4225. return self;},
  4226. args: [],
  4227. source: unescape('asSet%0A%09%5ESet%20withAll%3A%20self'),
  4228. messageSends: ["withAll:"],
  4229. referencedClasses: [smalltalk.nil]
  4230. }),
  4231. smalltalk.Collection);
  4232. smalltalk.addMethod(
  4233. unescape('_ifNotEmpty_'),
  4234. smalltalk.method({
  4235. selector: unescape('ifNotEmpty%3A'),
  4236. category: 'testing',
  4237. fn: function (aBlock){
  4238. var self=this;
  4239. smalltalk.send(smalltalk.send(self, "_notEmpty", []), "_ifTrue_", [aBlock]);
  4240. return self;},
  4241. args: ["aBlock"],
  4242. source: unescape('ifNotEmpty%3A%20aBlock%0A%09self%20notEmpty%20ifTrue%3A%20aBlock.'),
  4243. messageSends: ["ifTrue:", "notEmpty"],
  4244. referencedClasses: []
  4245. }),
  4246. smalltalk.Collection);
  4247. smalltalk.addMethod(
  4248. unescape('_ifEmpty_'),
  4249. smalltalk.method({
  4250. selector: unescape('ifEmpty%3A'),
  4251. category: 'testing',
  4252. fn: function (aBlock){
  4253. var self=this;
  4254. smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_ifTrue_", [aBlock]);
  4255. return self;},
  4256. args: ["aBlock"],
  4257. source: unescape('ifEmpty%3A%20aBlock%0A%09self%20isEmpty%20ifTrue%3A%20aBlock.'),
  4258. messageSends: ["ifTrue:", "isEmpty"],
  4259. referencedClasses: []
  4260. }),
  4261. smalltalk.Collection);
  4262. smalltalk.addMethod(
  4263. unescape('_copyWithoutAll_'),
  4264. smalltalk.method({
  4265. selector: unescape('copyWithoutAll%3A'),
  4266. category: 'copying',
  4267. fn: function (aCollection){
  4268. var self=this;
  4269. return smalltalk.send(self, "_reject_", [(function(each){return smalltalk.send(aCollection, "_includes_", [each]);})]);
  4270. return self;},
  4271. args: ["aCollection"],
  4272. 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'),
  4273. messageSends: ["reject:", "includes:"],
  4274. referencedClasses: []
  4275. }),
  4276. smalltalk.Collection);
  4277. smalltalk.addMethod(
  4278. unescape('_streamClass'),
  4279. smalltalk.method({
  4280. selector: unescape('streamClass'),
  4281. category: 'accessing',
  4282. fn: function (){
  4283. var self=this;
  4284. return (smalltalk.Stream || Stream);
  4285. return self;},
  4286. args: [],
  4287. source: unescape('streamClass%0A%09%20%20%20%20%5EStream'),
  4288. messageSends: [],
  4289. referencedClasses: [smalltalk.nil]
  4290. }),
  4291. smalltalk.Collection.klass);
  4292. smalltalk.addMethod(
  4293. unescape('_with_'),
  4294. smalltalk.method({
  4295. selector: unescape('with%3A'),
  4296. category: 'instance creation',
  4297. fn: function (anObject){
  4298. var self=this;
  4299. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4300. return self;},
  4301. args: ["anObject"],
  4302. source: unescape('with%3A%20anObject%0A%09%20%20%20%20%5Eself%20new%0A%09%09add%3A%20anObject%3B%0A%09%09yourself'),
  4303. messageSends: ["add:", "yourself", "new"],
  4304. referencedClasses: []
  4305. }),
  4306. smalltalk.Collection.klass);
  4307. smalltalk.addMethod(
  4308. unescape('_with_with_'),
  4309. smalltalk.method({
  4310. selector: unescape('with%3Awith%3A'),
  4311. category: 'instance creation',
  4312. fn: function (anObject, anotherObject){
  4313. var self=this;
  4314. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);smalltalk.send($rec, "_add_", [anotherObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4315. return self;},
  4316. args: ["anObject", "anotherObject"],
  4317. 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'),
  4318. messageSends: ["add:", "yourself", "new"],
  4319. referencedClasses: []
  4320. }),
  4321. smalltalk.Collection.klass);
  4322. smalltalk.addMethod(
  4323. unescape('_with_with_with_'),
  4324. smalltalk.method({
  4325. selector: unescape('with%3Awith%3Awith%3A'),
  4326. category: 'instance creation',
  4327. fn: function (firstObject, secondObject, thirdObject){
  4328. var self=this;
  4329. 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", []));
  4330. return self;},
  4331. args: ["firstObject", "secondObject", "thirdObject"],
  4332. 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'),
  4333. messageSends: ["add:", "yourself", "new"],
  4334. referencedClasses: []
  4335. }),
  4336. smalltalk.Collection.klass);
  4337. smalltalk.addMethod(
  4338. unescape('_withAll_'),
  4339. smalltalk.method({
  4340. selector: unescape('withAll%3A'),
  4341. category: 'instance creation',
  4342. fn: function (aCollection){
  4343. var self=this;
  4344. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4345. return self;},
  4346. args: ["aCollection"],
  4347. source: unescape('withAll%3A%20aCollection%0A%09%20%20%20%20%5Eself%20new%0A%09%09addAll%3A%20aCollection%3B%0A%09%09yourself'),
  4348. messageSends: ["addAll:", "yourself", "new"],
  4349. referencedClasses: []
  4350. }),
  4351. smalltalk.Collection.klass);
  4352. smalltalk.addClass('SequenceableCollection', smalltalk.Collection, [], 'Kernel');
  4353. smalltalk.addMethod(
  4354. unescape('_at_'),
  4355. smalltalk.method({
  4356. selector: unescape('at%3A'),
  4357. category: 'accessing',
  4358. fn: function (anIndex){
  4359. var self=this;
  4360. return smalltalk.send(self, "_at_ifAbsent_", [anIndex, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4361. return self;},
  4362. args: ["anIndex"],
  4363. source: unescape('at%3A%20anIndex%0A%09%5Eself%20at%3A%20anIndex%20ifAbsent%3A%20%5B%0A%09%20%20%20%20self%20errorNotFound%5D'),
  4364. messageSends: ["at:ifAbsent:", "errorNotFound"],
  4365. referencedClasses: []
  4366. }),
  4367. smalltalk.SequenceableCollection);
  4368. smalltalk.addMethod(
  4369. unescape('_at_ifAbsent_'),
  4370. smalltalk.method({
  4371. selector: unescape('at%3AifAbsent%3A'),
  4372. category: 'accessing',
  4373. fn: function (anIndex, aBlock){
  4374. var self=this;
  4375. smalltalk.send(self, "_subclassResponsibility", []);
  4376. return self;},
  4377. args: ["anIndex", "aBlock"],
  4378. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%09self%20subclassResponsibility'),
  4379. messageSends: ["subclassResponsibility"],
  4380. referencedClasses: []
  4381. }),
  4382. smalltalk.SequenceableCollection);
  4383. smalltalk.addMethod(
  4384. unescape('_at_put_'),
  4385. smalltalk.method({
  4386. selector: unescape('at%3Aput%3A'),
  4387. category: 'accessing',
  4388. fn: function (anIndex, anObject){
  4389. var self=this;
  4390. smalltalk.send(self, "_subclassResponsibility", []);
  4391. return self;},
  4392. args: ["anIndex", "anObject"],
  4393. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09self%20subclassResponsibility'),
  4394. messageSends: ["subclassResponsibility"],
  4395. referencedClasses: []
  4396. }),
  4397. smalltalk.SequenceableCollection);
  4398. smalltalk.addMethod(
  4399. unescape('_copyFrom_to_'),
  4400. smalltalk.method({
  4401. selector: unescape('copyFrom%3Ato%3A'),
  4402. category: 'copying',
  4403. fn: function (anIndex, anotherIndex){
  4404. var self=this;
  4405. smalltalk.send(self, "_subclassResponsibility", []);
  4406. return self;},
  4407. args: ["anIndex", "anotherIndex"],
  4408. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20subclassResponsibility'),
  4409. messageSends: ["subclassResponsibility"],
  4410. referencedClasses: []
  4411. }),
  4412. smalltalk.SequenceableCollection);
  4413. smalltalk.addMethod(
  4414. unescape('_first'),
  4415. smalltalk.method({
  4416. selector: unescape('first'),
  4417. category: 'accessing',
  4418. fn: function (){
  4419. var self=this;
  4420. return smalltalk.send(self, "_at_", [(1)]);
  4421. return self;},
  4422. args: [],
  4423. source: unescape('first%0A%09%5Eself%20at%3A%201'),
  4424. messageSends: ["at:"],
  4425. referencedClasses: []
  4426. }),
  4427. smalltalk.SequenceableCollection);
  4428. smalltalk.addMethod(
  4429. unescape('_fourth'),
  4430. smalltalk.method({
  4431. selector: unescape('fourth'),
  4432. category: 'accessing',
  4433. fn: function (){
  4434. var self=this;
  4435. return smalltalk.send(self, "_at_", [(4)]);
  4436. return self;},
  4437. args: [],
  4438. source: unescape('fourth%0A%09%5Eself%20at%3A%204'),
  4439. messageSends: ["at:"],
  4440. referencedClasses: []
  4441. }),
  4442. smalltalk.SequenceableCollection);
  4443. smalltalk.addMethod(
  4444. unescape('_last'),
  4445. smalltalk.method({
  4446. selector: unescape('last'),
  4447. category: 'accessing',
  4448. fn: function (){
  4449. var self=this;
  4450. return smalltalk.send(self, "_at_", [smalltalk.send(self, "_size", [])]);
  4451. return self;},
  4452. args: [],
  4453. source: unescape('last%0A%09%5Eself%20at%3A%20self%20size'),
  4454. messageSends: ["at:", "size"],
  4455. referencedClasses: []
  4456. }),
  4457. smalltalk.SequenceableCollection);
  4458. smalltalk.addMethod(
  4459. unescape('_second'),
  4460. smalltalk.method({
  4461. selector: unescape('second'),
  4462. category: 'accessing',
  4463. fn: function (){
  4464. var self=this;
  4465. return smalltalk.send(self, "_at_", [(2)]);
  4466. return self;},
  4467. args: [],
  4468. source: unescape('second%0A%09%5Eself%20at%3A%202'),
  4469. messageSends: ["at:"],
  4470. referencedClasses: []
  4471. }),
  4472. smalltalk.SequenceableCollection);
  4473. smalltalk.addMethod(
  4474. unescape('_third'),
  4475. smalltalk.method({
  4476. selector: unescape('third'),
  4477. category: 'accessing',
  4478. fn: function (){
  4479. var self=this;
  4480. return smalltalk.send(self, "_at_", [(3)]);
  4481. return self;},
  4482. args: [],
  4483. source: unescape('third%0A%09%5Eself%20at%3A%203'),
  4484. messageSends: ["at:"],
  4485. referencedClasses: []
  4486. }),
  4487. smalltalk.SequenceableCollection);
  4488. smalltalk.addMethod(
  4489. unescape('_removeLast'),
  4490. smalltalk.method({
  4491. selector: unescape('removeLast'),
  4492. category: 'adding',
  4493. fn: function (){
  4494. var self=this;
  4495. smalltalk.send(self, "_remove_", [smalltalk.send(self, "_last", [])]);
  4496. return self;},
  4497. args: [],
  4498. source: unescape('removeLast%0A%09self%20remove%3A%20self%20last'),
  4499. messageSends: ["remove:", "last"],
  4500. referencedClasses: []
  4501. }),
  4502. smalltalk.SequenceableCollection);
  4503. smalltalk.addMethod(
  4504. unescape('_addLast_'),
  4505. smalltalk.method({
  4506. selector: unescape('addLast%3A'),
  4507. category: 'adding',
  4508. fn: function (anObject){
  4509. var self=this;
  4510. smalltalk.send(self, "_add_", [anObject]);
  4511. return self;},
  4512. args: ["anObject"],
  4513. source: unescape('addLast%3A%20anObject%0A%09self%20add%3A%20anObject'),
  4514. messageSends: ["add:"],
  4515. referencedClasses: []
  4516. }),
  4517. smalltalk.SequenceableCollection);
  4518. smalltalk.addMethod(
  4519. unescape('_withIndexDo_'),
  4520. smalltalk.method({
  4521. selector: unescape('withIndexDo%3A'),
  4522. category: 'enumerating',
  4523. fn: function (aBlock){
  4524. var self=this;
  4525. for(var i=0;i<self.length;i++){aBlock(self[i], i+1);};
  4526. return self;},
  4527. args: ["aBlock"],
  4528. 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'),
  4529. messageSends: [],
  4530. referencedClasses: []
  4531. }),
  4532. smalltalk.SequenceableCollection);
  4533. smalltalk.addMethod(
  4534. unescape('_allButFirst'),
  4535. smalltalk.method({
  4536. selector: unescape('allButFirst'),
  4537. category: 'accessing',
  4538. fn: function (){
  4539. var self=this;
  4540. return smalltalk.send(self, "_copyFrom_to_", [(2), smalltalk.send(self, "_size", [])]);
  4541. return self;},
  4542. args: [],
  4543. source: unescape('allButFirst%0A%09%5Eself%20copyFrom%3A%202%20to%3A%20self%20size'),
  4544. messageSends: ["copyFrom:to:", "size"],
  4545. referencedClasses: []
  4546. }),
  4547. smalltalk.SequenceableCollection);
  4548. smalltalk.addMethod(
  4549. unescape('_allButLast'),
  4550. smalltalk.method({
  4551. selector: unescape('allButLast'),
  4552. category: 'accessing',
  4553. fn: function (){
  4554. var self=this;
  4555. return smalltalk.send(self, "_copyFrom_to_", [(1), ((($receiver = smalltalk.send(self, "_size", [])).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]);
  4556. return self;},
  4557. args: [],
  4558. source: unescape('allButLast%0A%09%5Eself%20copyFrom%3A%201%20to%3A%20self%20size%20-%201'),
  4559. messageSends: ["copyFrom:to:", unescape("-"), "size"],
  4560. referencedClasses: []
  4561. }),
  4562. smalltalk.SequenceableCollection);
  4563. smalltalk.addMethod(
  4564. unescape('_indexOf_'),
  4565. smalltalk.method({
  4566. selector: unescape('indexOf%3A'),
  4567. category: 'accessing',
  4568. fn: function (anObject){
  4569. var self=this;
  4570. return smalltalk.send(self, "_indexOf_ifAbsent_", [anObject, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4571. return self;},
  4572. args: ["anObject"],
  4573. source: unescape('indexOf%3A%20anObject%0A%09%5Eself%20indexOf%3A%20anObject%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  4574. messageSends: ["indexOf:ifAbsent:", "errorNotFound"],
  4575. referencedClasses: []
  4576. }),
  4577. smalltalk.SequenceableCollection);
  4578. smalltalk.addMethod(
  4579. unescape('_indexOf_ifAbsent_'),
  4580. smalltalk.method({
  4581. selector: unescape('indexOf%3AifAbsent%3A'),
  4582. category: 'accessing',
  4583. fn: function (anObject, aBlock){
  4584. var self=this;
  4585. for(var i=0;i<self.length;i++){
  4586. if(self[i].__eq(anObject)) {return i+1}
  4587. }
  4588. return aBlock();
  4589. ;
  4590. return self;},
  4591. args: ["anObject", "aBlock"],
  4592. 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'),
  4593. messageSends: [],
  4594. referencedClasses: []
  4595. }),
  4596. smalltalk.SequenceableCollection);
  4597. smalltalk.addMethod(
  4598. unescape('_indexOf_startingAt_ifAbsent_'),
  4599. smalltalk.method({
  4600. selector: unescape('indexOf%3AstartingAt%3AifAbsent%3A'),
  4601. category: 'accessing',
  4602. fn: function (anObject, start, aBlock){
  4603. var self=this;
  4604. for(var i=start-1;i<self.length;i++){
  4605. if(self[i].__eq(anObject)) {return i+1}
  4606. }
  4607. return aBlock();
  4608. ;
  4609. return self;},
  4610. args: ["anObject", "start", "aBlock"],
  4611. 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'),
  4612. messageSends: [],
  4613. referencedClasses: []
  4614. }),
  4615. smalltalk.SequenceableCollection);
  4616. smalltalk.addMethod(
  4617. unescape('_indexOf_startingAt_'),
  4618. smalltalk.method({
  4619. selector: unescape('indexOf%3AstartingAt%3A'),
  4620. category: 'accessing',
  4621. fn: function (anObject, start){
  4622. var self=this;
  4623. return smalltalk.send(self, "_indexOf_startingAt_ifAbsent_", [anObject, start, (function(){return (0);})]);
  4624. return self;},
  4625. args: ["anObject", "start"],
  4626. 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'),
  4627. messageSends: ["indexOf:startingAt:ifAbsent:"],
  4628. referencedClasses: []
  4629. }),
  4630. smalltalk.SequenceableCollection);
  4631. smalltalk.addMethod(
  4632. unescape('_reversed'),
  4633. smalltalk.method({
  4634. selector: unescape('reversed'),
  4635. category: 'converting',
  4636. fn: function (){
  4637. var self=this;
  4638. smalltalk.send(self, "_subclassResponsibility", []);
  4639. return self;},
  4640. args: [],
  4641. source: unescape('reversed%0A%09self%20subclassResponsibility'),
  4642. messageSends: ["subclassResponsibility"],
  4643. referencedClasses: []
  4644. }),
  4645. smalltalk.SequenceableCollection);
  4646. smalltalk.addClass('String', smalltalk.SequenceableCollection, [], 'Kernel');
  4647. smalltalk.addMethod(
  4648. unescape('__eq'),
  4649. smalltalk.method({
  4650. selector: unescape('%3D'),
  4651. category: 'comparing',
  4652. fn: function (aString){
  4653. var self=this;
  4654. 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}})})();})]));
  4655. return String(self) == aString;
  4656. return self;
  4657. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  4658. args: ["aString"],
  4659. 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'),
  4660. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  4661. referencedClasses: []
  4662. }),
  4663. smalltalk.String);
  4664. smalltalk.addMethod(
  4665. unescape('_size'),
  4666. smalltalk.method({
  4667. selector: unescape('size'),
  4668. category: 'accessing',
  4669. fn: function (){
  4670. var self=this;
  4671. return self.length;
  4672. return self;},
  4673. args: [],
  4674. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  4675. messageSends: [],
  4676. referencedClasses: []
  4677. }),
  4678. smalltalk.String);
  4679. smalltalk.addMethod(
  4680. unescape('_at_'),
  4681. smalltalk.method({
  4682. selector: unescape('at%3A'),
  4683. category: 'accessing',
  4684. fn: function (anIndex){
  4685. var self=this;
  4686. return self[anIndex - 1];
  4687. return self;},
  4688. args: ["anIndex"],
  4689. source: unescape('at%3A%20anIndex%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%3E'),
  4690. messageSends: [],
  4691. referencedClasses: []
  4692. }),
  4693. smalltalk.String);
  4694. smalltalk.addMethod(
  4695. unescape('_at_put_'),
  4696. smalltalk.method({
  4697. selector: unescape('at%3Aput%3A'),
  4698. category: 'accessing',
  4699. fn: function (anIndex, anObject){
  4700. var self=this;
  4701. smalltalk.send(self, "_errorReadOnly", []);
  4702. return self;},
  4703. args: ["anIndex", "anObject"],
  4704. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  4705. messageSends: ["errorReadOnly"],
  4706. referencedClasses: []
  4707. }),
  4708. smalltalk.String);
  4709. smalltalk.addMethod(
  4710. unescape('_at_ifAbsent_'),
  4711. smalltalk.method({
  4712. selector: unescape('at%3AifAbsent%3A'),
  4713. category: 'accessing',
  4714. fn: function (anIndex, aBlock){
  4715. var self=this;
  4716. (($receiver = smalltalk.send(self, "_at_", [anIndex])) == nil || $receiver == undefined) ? (function(){return aBlock;})() : $receiver;
  4717. return self;},
  4718. args: ["anIndex", "aBlock"],
  4719. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%20%20%20%20%09%28self%20at%3A%20anIndex%29%20ifNil%3A%20%5BaBlock%5D'),
  4720. messageSends: ["ifNil:", "at:"],
  4721. referencedClasses: []
  4722. }),
  4723. smalltalk.String);
  4724. smalltalk.addMethod(
  4725. unescape('_escaped'),
  4726. smalltalk.method({
  4727. selector: unescape('escaped'),
  4728. category: 'accessing',
  4729. fn: function (){
  4730. var self=this;
  4731. return escape(self);
  4732. return self;},
  4733. args: [],
  4734. source: unescape('escaped%0A%09%3Creturn%20escape%28self%29%3E'),
  4735. messageSends: [],
  4736. referencedClasses: []
  4737. }),
  4738. smalltalk.String);
  4739. smalltalk.addMethod(
  4740. unescape('_unescaped'),
  4741. smalltalk.method({
  4742. selector: unescape('unescaped'),
  4743. category: 'accessing',
  4744. fn: function (){
  4745. var self=this;
  4746. return unescape(self);
  4747. return self;},
  4748. args: [],
  4749. source: unescape('unescaped%0A%09%3Creturn%20unescape%28self%29%3E'),
  4750. messageSends: [],
  4751. referencedClasses: []
  4752. }),
  4753. smalltalk.String);
  4754. smalltalk.addMethod(
  4755. unescape('_add_'),
  4756. smalltalk.method({
  4757. selector: unescape('add%3A'),
  4758. category: 'adding',
  4759. fn: function (anObject){
  4760. var self=this;
  4761. smalltalk.send(self, "_errorReadOnly", []);
  4762. return self;},
  4763. args: ["anObject"],
  4764. source: unescape('add%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  4765. messageSends: ["errorReadOnly"],
  4766. referencedClasses: []
  4767. }),
  4768. smalltalk.String);
  4769. smalltalk.addMethod(
  4770. unescape('__comma'),
  4771. smalltalk.method({
  4772. selector: unescape('%2C'),
  4773. category: 'copying',
  4774. fn: function (aString){
  4775. var self=this;
  4776. return self + aString;
  4777. return self;},
  4778. args: ["aString"],
  4779. source: unescape('%2C%20aString%0A%09%3Creturn%20self%20+%20aString%3E'),
  4780. messageSends: [],
  4781. referencedClasses: []
  4782. }),
  4783. smalltalk.String);
  4784. smalltalk.addMethod(
  4785. unescape('_copyFrom_to_'),
  4786. smalltalk.method({
  4787. selector: unescape('copyFrom%3Ato%3A'),
  4788. category: 'copying',
  4789. fn: function (anIndex, anotherIndex){
  4790. var self=this;
  4791. return self.substring(anIndex - 1, anotherIndex);
  4792. return self;},
  4793. args: ["anIndex", "anotherIndex"],
  4794. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09%3Creturn%20self.substring%28anIndex%20-%201%2C%20anotherIndex%29%3E'),
  4795. messageSends: [],
  4796. referencedClasses: []
  4797. }),
  4798. smalltalk.String);
  4799. smalltalk.addMethod(
  4800. unescape('_shallowCopy'),
  4801. smalltalk.method({
  4802. selector: unescape('shallowCopy'),
  4803. category: 'copying',
  4804. fn: function (){
  4805. var self=this;
  4806. return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [self]);
  4807. return self;},
  4808. args: [],
  4809. source: unescape('shallowCopy%0A%20%20%20%20%09%5Eself%20class%20fromString%3A%20self'),
  4810. messageSends: ["fromString:", "class"],
  4811. referencedClasses: []
  4812. }),
  4813. smalltalk.String);
  4814. smalltalk.addMethod(
  4815. unescape('_deepCopy'),
  4816. smalltalk.method({
  4817. selector: unescape('deepCopy'),
  4818. category: 'copying',
  4819. fn: function (){
  4820. var self=this;
  4821. return smalltalk.send(self, "_shallowCopy", []);
  4822. return self;},
  4823. args: [],
  4824. source: unescape('deepCopy%0A%20%20%20%20%09%5Eself%20shallowCopy'),
  4825. messageSends: ["shallowCopy"],
  4826. referencedClasses: []
  4827. }),
  4828. smalltalk.String);
  4829. smalltalk.addMethod(
  4830. unescape('_asSelector'),
  4831. smalltalk.method({
  4832. selector: unescape('asSelector'),
  4833. category: 'converting',
  4834. fn: function (){
  4835. var self=this;
  4836. var selector=nil;
  4837. selector=smalltalk.send("_", "__comma", [self]);
  4838. selector=smalltalk.send(selector, "_replace_with_", [":", "_"]);
  4839. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B+%5D"), "_plus"]);
  4840. selector=smalltalk.send(selector, "_replace_with_", [unescape("-"), "_minus"]);
  4841. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B*%5D"), "_star"]);
  4842. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B/%5D"), "_slash"]);
  4843. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3E"), "_gt"]);
  4844. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3C"), "_lt"]);
  4845. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3D"), "_eq"]);
  4846. selector=smalltalk.send(selector, "_replace_with_", [unescape("%2C"), "_comma"]);
  4847. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B@%5D"), "_at"]);
  4848. return selector;
  4849. return self;},
  4850. args: [],
  4851. 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'),
  4852. messageSends: [unescape("%2C"), "replace:with:"],
  4853. referencedClasses: []
  4854. }),
  4855. smalltalk.String);
  4856. smalltalk.addMethod(
  4857. unescape('_asJavascript'),
  4858. smalltalk.method({
  4859. selector: unescape('asJavascript'),
  4860. category: 'converting',
  4861. fn: function (){
  4862. var self=this;
  4863. if(self.search(/^[a-zA-Z0-9_:.$ ]*$/) == -1)
  4864. return "unescape(\"" + escape(self) + "\")";
  4865. else
  4866. return "\"" + self + "\"";
  4867. ;
  4868. return self;},
  4869. args: [],
  4870. 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'),
  4871. messageSends: [],
  4872. referencedClasses: []
  4873. }),
  4874. smalltalk.String);
  4875. smalltalk.addMethod(
  4876. unescape('_replace_with_'),
  4877. smalltalk.method({
  4878. selector: unescape('replace%3Awith%3A'),
  4879. category: 'regular expressions',
  4880. fn: function (aString, anotherString){
  4881. var self=this;
  4882. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [aString, "g"]), anotherString]);
  4883. return self;},
  4884. args: ["aString", "anotherString"],
  4885. 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'),
  4886. messageSends: ["replaceRegexp:with:", "fromString:flag:"],
  4887. referencedClasses: [smalltalk.RegularExpression]
  4888. }),
  4889. smalltalk.String);
  4890. smalltalk.addMethod(
  4891. unescape('_replaceRegexp_with_'),
  4892. smalltalk.method({
  4893. selector: unescape('replaceRegexp%3Awith%3A'),
  4894. category: 'regular expressions',
  4895. fn: function (aRegexp, aString){
  4896. var self=this;
  4897. return self.replace(aRegexp, aString);
  4898. return self;},
  4899. args: ["aRegexp", "aString"],
  4900. source: unescape('replaceRegexp%3A%20aRegexp%20with%3A%20aString%0A%09%3Creturn%20self.replace%28aRegexp%2C%20aString%29%3E'),
  4901. messageSends: [],
  4902. referencedClasses: []
  4903. }),
  4904. smalltalk.String);
  4905. smalltalk.addMethod(
  4906. unescape('_tokenize_'),
  4907. smalltalk.method({
  4908. selector: unescape('tokenize%3A'),
  4909. category: 'converting',
  4910. fn: function (aString){
  4911. var self=this;
  4912. return self.split(aString);
  4913. return self;},
  4914. args: ["aString"],
  4915. source: unescape('tokenize%3A%20aString%0A%09%3Creturn%20self.split%28aString%29%3E'),
  4916. messageSends: [],
  4917. referencedClasses: []
  4918. }),
  4919. smalltalk.String);
  4920. smalltalk.addMethod(
  4921. unescape('_match_'),
  4922. smalltalk.method({
  4923. selector: unescape('match%3A'),
  4924. category: 'regular expressions',
  4925. fn: function (aRegexp){
  4926. var self=this;
  4927. return self.search(aRegexp) != -1;
  4928. return self;},
  4929. args: ["aRegexp"],
  4930. source: unescape('match%3A%20aRegexp%0A%09%3Creturn%20self.search%28aRegexp%29%20%21%3D%20-1%3E'),
  4931. messageSends: [],
  4932. referencedClasses: []
  4933. }),
  4934. smalltalk.String);
  4935. smalltalk.addMethod(
  4936. unescape('_asString'),
  4937. smalltalk.method({
  4938. selector: unescape('asString'),
  4939. category: 'converting',
  4940. fn: function (){
  4941. var self=this;
  4942. return self;
  4943. return self;},
  4944. args: [],
  4945. source: unescape('asString%0A%20%20%20%20%09%5Eself'),
  4946. messageSends: [],
  4947. referencedClasses: []
  4948. }),
  4949. smalltalk.String);
  4950. smalltalk.addMethod(
  4951. unescape('_asNumber'),
  4952. smalltalk.method({
  4953. selector: unescape('asNumber'),
  4954. category: 'converting',
  4955. fn: function (){
  4956. var self=this;
  4957. return Number(self);
  4958. return self;},
  4959. args: [],
  4960. source: unescape('asNumber%0A%09%3Creturn%20Number%28self%29%3E'),
  4961. messageSends: [],
  4962. referencedClasses: []
  4963. }),
  4964. smalltalk.String);
  4965. smalltalk.addMethod(
  4966. unescape('_errorReadOnly'),
  4967. smalltalk.method({
  4968. selector: unescape('errorReadOnly'),
  4969. category: 'error handling',
  4970. fn: function (){
  4971. var self=this;
  4972. smalltalk.send(self, "_error_", [unescape("Object%20is%20read-only")]);
  4973. return self;},
  4974. args: [],
  4975. source: unescape('errorReadOnly%0A%20%20%20%20%09self%20error%3A%20%27Object%20is%20read-only%27'),
  4976. messageSends: ["error:"],
  4977. referencedClasses: []
  4978. }),
  4979. smalltalk.String);
  4980. smalltalk.addMethod(
  4981. unescape('_printString'),
  4982. smalltalk.method({
  4983. selector: unescape('printString'),
  4984. category: 'printing',
  4985. fn: function (){
  4986. var self=this;
  4987. return smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [self]), "__comma", [unescape("%27")]);
  4988. return self;},
  4989. args: [],
  4990. source: unescape('printString%0A%20%20%20%20%09%5E%27%27%27%27%2C%20self%2C%20%27%27%27%27'),
  4991. messageSends: [unescape("%2C")],
  4992. referencedClasses: []
  4993. }),
  4994. smalltalk.String);
  4995. smalltalk.addMethod(
  4996. unescape('_printNl'),
  4997. smalltalk.method({
  4998. selector: unescape('printNl'),
  4999. category: 'printing',
  5000. fn: function (){
  5001. var self=this;
  5002. console.log(self);
  5003. return self;},
  5004. args: [],
  5005. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  5006. messageSends: [],
  5007. referencedClasses: []
  5008. }),
  5009. smalltalk.String);
  5010. smalltalk.addMethod(
  5011. unescape('_isString'),
  5012. smalltalk.method({
  5013. selector: unescape('isString'),
  5014. category: 'testing',
  5015. fn: function (){
  5016. var self=this;
  5017. return true;
  5018. return self;},
  5019. args: [],
  5020. source: unescape('isString%0A%20%20%20%20%09%5Etrue'),
  5021. messageSends: [],
  5022. referencedClasses: []
  5023. }),
  5024. smalltalk.String);
  5025. smalltalk.addMethod(
  5026. unescape('__gt'),
  5027. smalltalk.method({
  5028. selector: unescape('%3E'),
  5029. category: 'comparing',
  5030. fn: function (aString){
  5031. var self=this;
  5032. return String(self) > aString;
  5033. return self;},
  5034. args: ["aString"],
  5035. source: unescape('%3E%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%20aString%3E'),
  5036. messageSends: [],
  5037. referencedClasses: []
  5038. }),
  5039. smalltalk.String);
  5040. smalltalk.addMethod(
  5041. unescape('__lt'),
  5042. smalltalk.method({
  5043. selector: unescape('%3C'),
  5044. category: 'comparing',
  5045. fn: function (aString){
  5046. var self=this;
  5047. return String(self) < aString;
  5048. return self;},
  5049. args: ["aString"],
  5050. source: unescape('%3C%20aString%0A%09%3Creturn%20String%28self%29%20%3C%20aString%3E'),
  5051. messageSends: [],
  5052. referencedClasses: []
  5053. }),
  5054. smalltalk.String);
  5055. smalltalk.addMethod(
  5056. unescape('__gt_eq'),
  5057. smalltalk.method({
  5058. selector: unescape('%3E%3D'),
  5059. category: 'comparing',
  5060. fn: function (aString){
  5061. var self=this;
  5062. return String(self) >= aString;
  5063. return self;},
  5064. args: ["aString"],
  5065. source: unescape('%3E%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%3D%20aString%3E'),
  5066. messageSends: [],
  5067. referencedClasses: []
  5068. }),
  5069. smalltalk.String);
  5070. smalltalk.addMethod(
  5071. unescape('__lt_eq'),
  5072. smalltalk.method({
  5073. selector: unescape('%3C%3D'),
  5074. category: 'comparing',
  5075. fn: function (aString){
  5076. var self=this;
  5077. return String(self) <= aString;
  5078. return self;},
  5079. args: ["aString"],
  5080. source: unescape('%3C%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3C%3D%20aString%3E'),
  5081. messageSends: [],
  5082. referencedClasses: []
  5083. }),
  5084. smalltalk.String);
  5085. smalltalk.addMethod(
  5086. unescape('_remove_'),
  5087. smalltalk.method({
  5088. selector: unescape('remove%3A'),
  5089. category: 'adding',
  5090. fn: function (anObject){
  5091. var self=this;
  5092. smalltalk.send(self, "_errorReadOnly", []);
  5093. return self;},
  5094. args: ["anObject"],
  5095. source: unescape('remove%3A%20anObject%0A%09self%20errorReadOnly'),
  5096. messageSends: ["errorReadOnly"],
  5097. referencedClasses: []
  5098. }),
  5099. smalltalk.String);
  5100. smalltalk.addMethod(
  5101. unescape('_asJSONObject'),
  5102. smalltalk.method({
  5103. selector: unescape('asJSONObject'),
  5104. category: 'converting',
  5105. fn: function (){
  5106. var self=this;
  5107. return self;
  5108. return self;},
  5109. args: [],
  5110. source: unescape('asJSONObject%0A%09%5Eself'),
  5111. messageSends: [],
  5112. referencedClasses: []
  5113. }),
  5114. smalltalk.String);
  5115. smalltalk.addMethod(
  5116. unescape('_trimLeft_'),
  5117. smalltalk.method({
  5118. selector: unescape('trimLeft%3A'),
  5119. category: 'regular expressions',
  5120. fn: function (separators){
  5121. var self=this;
  5122. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [smalltalk.send(smalltalk.send(unescape("%5E%5B"), "__comma", [separators]), "__comma", [unescape("%5D+")]), "g"]), ""]);
  5123. return self;},
  5124. args: ["separators"],
  5125. 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'),
  5126. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  5127. referencedClasses: [smalltalk.RegularExpression]
  5128. }),
  5129. smalltalk.String);
  5130. smalltalk.addMethod(
  5131. unescape('_trimRight_'),
  5132. smalltalk.method({
  5133. selector: unescape('trimRight%3A'),
  5134. category: 'regular expressions',
  5135. fn: function (separators){
  5136. var self=this;
  5137. 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"]), ""]);
  5138. return self;},
  5139. args: ["separators"],
  5140. 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'),
  5141. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  5142. referencedClasses: [smalltalk.RegularExpression]
  5143. }),
  5144. smalltalk.String);
  5145. smalltalk.addMethod(
  5146. unescape('_trimLeft'),
  5147. smalltalk.method({
  5148. selector: unescape('trimLeft'),
  5149. category: 'regular expressions',
  5150. fn: function (){
  5151. var self=this;
  5152. return smalltalk.send(self, "_trimLeft_", [unescape("%5Cs")]);
  5153. return self;},
  5154. args: [],
  5155. source: unescape('trimLeft%0A%09%5Eself%20trimLeft%3A%20%27%5Cs%27'),
  5156. messageSends: ["trimLeft:"],
  5157. referencedClasses: []
  5158. }),
  5159. smalltalk.String);
  5160. smalltalk.addMethod(
  5161. unescape('_trimRight'),
  5162. smalltalk.method({
  5163. selector: unescape('trimRight'),
  5164. category: 'regular expressions',
  5165. fn: function (){
  5166. var self=this;
  5167. return smalltalk.send(self, "_trimRight_", [unescape("%5Cs")]);
  5168. return self;},
  5169. args: [],
  5170. source: unescape('trimRight%0A%09%5Eself%20trimRight%3A%20%27%5Cs%27'),
  5171. messageSends: ["trimRight:"],
  5172. referencedClasses: []
  5173. }),
  5174. smalltalk.String);
  5175. smalltalk.addMethod(
  5176. unescape('_trimBoth'),
  5177. smalltalk.method({
  5178. selector: unescape('trimBoth'),
  5179. category: 'regular expressions',
  5180. fn: function (){
  5181. var self=this;
  5182. return smalltalk.send(self, "_trimBoth_", [unescape("%5Cs")]);
  5183. return self;},
  5184. args: [],
  5185. source: unescape('trimBoth%0A%09%5Eself%20trimBoth%3A%20%27%5Cs%27'),
  5186. messageSends: ["trimBoth:"],
  5187. referencedClasses: []
  5188. }),
  5189. smalltalk.String);
  5190. smalltalk.addMethod(
  5191. unescape('_trimBoth_'),
  5192. smalltalk.method({
  5193. selector: unescape('trimBoth%3A'),
  5194. category: 'regular expressions',
  5195. fn: function (separators){
  5196. var self=this;
  5197. return smalltalk.send(smalltalk.send(self, "_trimLeft_", [separators]), "_trimRight_", [separators]);
  5198. return self;},
  5199. args: ["separators"],
  5200. source: unescape('trimBoth%3A%20separators%0A%0A%20%20%20%20%09%5E%28self%20trimLeft%3A%20separators%29%20trimRight%3A%20separators'),
  5201. messageSends: ["trimRight:", "trimLeft:"],
  5202. referencedClasses: []
  5203. }),
  5204. smalltalk.String);
  5205. smalltalk.addMethod(
  5206. unescape('_asLowercase'),
  5207. smalltalk.method({
  5208. selector: unescape('asLowercase'),
  5209. category: 'converting',
  5210. fn: function (){
  5211. var self=this;
  5212. return self.toLowerCase();
  5213. return self;},
  5214. args: [],
  5215. source: unescape('asLowercase%0A%09%3Creturn%20self.toLowerCase%28%29%3E'),
  5216. messageSends: [],
  5217. referencedClasses: []
  5218. }),
  5219. smalltalk.String);
  5220. smalltalk.addMethod(
  5221. unescape('_asUppercase'),
  5222. smalltalk.method({
  5223. selector: unescape('asUppercase'),
  5224. category: 'converting',
  5225. fn: function (){
  5226. var self=this;
  5227. return self.toUpperCase();
  5228. return self;},
  5229. args: [],
  5230. source: unescape('asUppercase%0A%09%3Creturn%20self.toUpperCase%28%29%3E'),
  5231. messageSends: [],
  5232. referencedClasses: []
  5233. }),
  5234. smalltalk.String);
  5235. smalltalk.addMethod(
  5236. unescape('_join_'),
  5237. smalltalk.method({
  5238. selector: unescape('join%3A'),
  5239. category: 'split join',
  5240. fn: function (aCollection){
  5241. var self=this;
  5242. 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]);})]);})]);
  5243. return self;},
  5244. args: ["aCollection"],
  5245. 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'),
  5246. messageSends: ["streamContents:", "do:separatedBy:", "nextPutAll:", "asString"],
  5247. referencedClasses: [smalltalk.String]
  5248. }),
  5249. smalltalk.String);
  5250. smalltalk.addMethod(
  5251. unescape('_includesSubString_'),
  5252. smalltalk.method({
  5253. selector: unescape('includesSubString%3A'),
  5254. category: 'testing',
  5255. fn: function (subString){
  5256. var self=this;
  5257. return self.indexOf(subString) != -1 ;
  5258. return self;},
  5259. args: ["subString"],
  5260. source: unescape('includesSubString%3A%20subString%0A%09%3C%20return%20self.indexOf%28subString%29%20%21%3D%20-1%20%3E'),
  5261. messageSends: [],
  5262. referencedClasses: []
  5263. }),
  5264. smalltalk.String);
  5265. smalltalk.addMethod(
  5266. unescape('_asciiValue'),
  5267. smalltalk.method({
  5268. selector: unescape('asciiValue'),
  5269. category: 'accessing',
  5270. fn: function (){
  5271. var self=this;
  5272. return self.charCodeAt(0);;
  5273. return self;},
  5274. args: [],
  5275. source: unescape('asciiValue%0A%09%3Creturn%20self.charCodeAt%280%29%3B%3E'),
  5276. messageSends: [],
  5277. referencedClasses: []
  5278. }),
  5279. smalltalk.String);
  5280. smalltalk.addMethod(
  5281. unescape('_lineIndicesDo_'),
  5282. smalltalk.method({
  5283. selector: unescape('lineIndicesDo%3A'),
  5284. category: 'split join',
  5285. fn: function (aBlock){
  5286. var self=this;
  5287. try{var cr=nil;
  5288. var lf=nil;
  5289. var start=nil;
  5290. var sz=nil;
  5291. var nextLF=nil;
  5292. var nextCR=nil;
  5293. start=(1);
  5294. sz=smalltalk.send(self, "_size", []);
  5295. cr=smalltalk.send((smalltalk.String || String), "_cr", []);
  5296. nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, (1)]);
  5297. lf=smalltalk.send((smalltalk.String || String), "_lf", []);
  5298. nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, (1)]);
  5299. (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]);})]));})]));})()}})();
  5300. return self;
  5301. } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineIndicesDo_'){return e.fn()} throw(e)}},
  5302. args: ["aBlock"],
  5303. 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'),
  5304. messageSends: ["size", "cr", "indexOf:startingAt:", "lf", "whileTrue:", unescape("%3C%3D"), "ifTrue:", "and:", unescape("%3D"), "value:value:value:", "ifTrue:ifFalse:", "or:", unescape("%3C"), unescape("-"), unescape("+")],
  5305. referencedClasses: [smalltalk.String]
  5306. }),
  5307. smalltalk.String);
  5308. smalltalk.addMethod(
  5309. unescape('_linesDo_'),
  5310. smalltalk.method({
  5311. selector: unescape('linesDo%3A'),
  5312. category: 'split join',
  5313. fn: function (aBlock){
  5314. var self=this;
  5315. smalltalk.send(self, "_lineIndicesDo_", [(function(start, endWithoutDelimiters, end){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])]);})]);
  5316. return self;},
  5317. args: ["aBlock"],
  5318. 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'),
  5319. messageSends: ["lineIndicesDo:", "value:", "copyFrom:to:"],
  5320. referencedClasses: []
  5321. }),
  5322. smalltalk.String);
  5323. smalltalk.addMethod(
  5324. unescape('_lines'),
  5325. smalltalk.method({
  5326. selector: unescape('lines'),
  5327. category: 'split join',
  5328. fn: function (){
  5329. var self=this;
  5330. var lines=nil;
  5331. lines=smalltalk.send((smalltalk.Array || Array), "_new", []);
  5332. smalltalk.send(self, "_linesDo_", [(function(aLine){return smalltalk.send(lines, "_add_", [aLine]);})]);
  5333. return lines;
  5334. return self;},
  5335. args: [],
  5336. 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'),
  5337. messageSends: ["new", "linesDo:", "add:"],
  5338. referencedClasses: [smalltalk.Array]
  5339. }),
  5340. smalltalk.String);
  5341. smalltalk.addMethod(
  5342. unescape('_lineNumber_'),
  5343. smalltalk.method({
  5344. selector: unescape('lineNumber%3A'),
  5345. category: 'split join',
  5346. fn: function (anIndex){
  5347. var self=this;
  5348. try{var lineCount=nil;
  5349. lineCount=(0);
  5350. 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])}})})();})]));})]);
  5351. (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return nil}})})();
  5352. return self;
  5353. } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineNumber_'){return e.fn()} throw(e)}},
  5354. args: ["anIndex"],
  5355. 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'),
  5356. messageSends: ["lineIndicesDo:", "ifTrue:", unescape("%3D"), unescape("+"), "copyFrom:to:"],
  5357. referencedClasses: []
  5358. }),
  5359. smalltalk.String);
  5360. smalltalk.addMethod(
  5361. unescape('_reversed'),
  5362. smalltalk.method({
  5363. selector: unescape('reversed'),
  5364. category: 'converting',
  5365. fn: function (){
  5366. var self=this;
  5367. return self.split("").reverse().join("");
  5368. return self;},
  5369. args: [],
  5370. source: unescape('reversed%0A%09%3Creturn%20self.split%28%22%22%29.reverse%28%29.join%28%22%22%29%3E'),
  5371. messageSends: [],
  5372. referencedClasses: []
  5373. }),
  5374. smalltalk.String);
  5375. smalltalk.addMethod(
  5376. unescape('__eq_eq'),
  5377. smalltalk.method({
  5378. selector: unescape('%3D%3D'),
  5379. category: 'comparing',
  5380. fn: function (aString){
  5381. var self=this;
  5382. 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}})})();})]));
  5383. return String(self) === String(aString);
  5384. return self;
  5385. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  5386. args: ["aString"],
  5387. 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'),
  5388. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  5389. referencedClasses: []
  5390. }),
  5391. smalltalk.String);
  5392. smalltalk.addMethod(
  5393. unescape('_asJavaScriptSelector'),
  5394. smalltalk.method({
  5395. selector: unescape('asJavaScriptSelector'),
  5396. category: 'converting',
  5397. fn: function (){
  5398. var self=this;
  5399. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_asSelector", []), "_replace_with_", [unescape("%5E_"), ""]), "_replace_with_", [unescape("_.*"), ""]);
  5400. return self;},
  5401. args: [],
  5402. 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.'),
  5403. messageSends: ["replace:with:", "asSelector"],
  5404. referencedClasses: []
  5405. }),
  5406. smalltalk.String);
  5407. smalltalk.addMethod(
  5408. unescape('_streamClass'),
  5409. smalltalk.method({
  5410. selector: unescape('streamClass'),
  5411. category: 'accessing',
  5412. fn: function (){
  5413. var self=this;
  5414. return (smalltalk.StringStream || StringStream);
  5415. return self;},
  5416. args: [],
  5417. source: unescape('streamClass%0A%09%20%20%20%20%5EStringStream'),
  5418. messageSends: [],
  5419. referencedClasses: [smalltalk.nil]
  5420. }),
  5421. smalltalk.String.klass);
  5422. smalltalk.addMethod(
  5423. unescape('_fromString_'),
  5424. smalltalk.method({
  5425. selector: unescape('fromString%3A'),
  5426. category: 'instance creation',
  5427. fn: function (aString){
  5428. var self=this;
  5429. return new self.fn(aString);
  5430. return self;},
  5431. args: ["aString"],
  5432. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%3Creturn%20new%20self.fn%28aString%29%3E'),
  5433. messageSends: [],
  5434. referencedClasses: []
  5435. }),
  5436. smalltalk.String.klass);
  5437. smalltalk.addMethod(
  5438. unescape('_cr'),
  5439. smalltalk.method({
  5440. selector: unescape('cr'),
  5441. category: 'accessing',
  5442. fn: function (){
  5443. var self=this;
  5444. return '\r';
  5445. return self;},
  5446. args: [],
  5447. source: unescape('cr%0A%09%3Creturn%20%27%5Cr%27%3E'),
  5448. messageSends: [],
  5449. referencedClasses: []
  5450. }),
  5451. smalltalk.String.klass);
  5452. smalltalk.addMethod(
  5453. unescape('_lf'),
  5454. smalltalk.method({
  5455. selector: unescape('lf'),
  5456. category: 'accessing',
  5457. fn: function (){
  5458. var self=this;
  5459. return '\n';
  5460. return self;},
  5461. args: [],
  5462. source: unescape('lf%0A%09%3Creturn%20%27%5Cn%27%3E'),
  5463. messageSends: [],
  5464. referencedClasses: []
  5465. }),
  5466. smalltalk.String.klass);
  5467. smalltalk.addMethod(
  5468. unescape('_space'),
  5469. smalltalk.method({
  5470. selector: unescape('space'),
  5471. category: 'accessing',
  5472. fn: function (){
  5473. var self=this;
  5474. return ' ';
  5475. return self;},
  5476. args: [],
  5477. source: unescape('space%0A%09%3Creturn%20%27%20%27%3E'),
  5478. messageSends: [],
  5479. referencedClasses: []
  5480. }),
  5481. smalltalk.String.klass);
  5482. smalltalk.addMethod(
  5483. unescape('_tab'),
  5484. smalltalk.method({
  5485. selector: unescape('tab'),
  5486. category: 'accessing',
  5487. fn: function (){
  5488. var self=this;
  5489. return '\t';
  5490. return self;},
  5491. args: [],
  5492. source: unescape('tab%0A%09%3Creturn%20%27%5Ct%27%3E'),
  5493. messageSends: [],
  5494. referencedClasses: []
  5495. }),
  5496. smalltalk.String.klass);
  5497. smalltalk.addMethod(
  5498. unescape('_crlf'),
  5499. smalltalk.method({
  5500. selector: unescape('crlf'),
  5501. category: 'accessing',
  5502. fn: function (){
  5503. var self=this;
  5504. return '\r\n';
  5505. return self;},
  5506. args: [],
  5507. source: unescape('crlf%0A%09%3Creturn%20%27%5Cr%5Cn%27%3E'),
  5508. messageSends: [],
  5509. referencedClasses: []
  5510. }),
  5511. smalltalk.String.klass);
  5512. smalltalk.addMethod(
  5513. unescape('_streamContents_'),
  5514. smalltalk.method({
  5515. selector: unescape('streamContents%3A'),
  5516. category: 'instance creation',
  5517. fn: function (blockWithArg){
  5518. var self=this;
  5519. var stream=nil;
  5520. stream=smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [smalltalk.send((smalltalk.String || String), "_new", [])]);
  5521. smalltalk.send(blockWithArg, "_value_", [stream]);
  5522. return smalltalk.send(stream, "_contents", []);
  5523. return self;},
  5524. args: ["blockWithArg"],
  5525. 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'),
  5526. messageSends: ["on:", "streamClass", "new", "value:", "contents"],
  5527. referencedClasses: [smalltalk.String]
  5528. }),
  5529. smalltalk.String.klass);
  5530. smalltalk.addMethod(
  5531. unescape('_value_'),
  5532. smalltalk.method({
  5533. selector: unescape('value%3A'),
  5534. category: 'instance creation',
  5535. fn: function (aUTFCharCode){
  5536. var self=this;
  5537. return String.fromCharCode(aUTFCharCode);;
  5538. return self;},
  5539. args: ["aUTFCharCode"],
  5540. source: unescape('value%3A%20aUTFCharCode%0A%0A%09%3Creturn%20String.fromCharCode%28aUTFCharCode%29%3B%3E'),
  5541. messageSends: [],
  5542. referencedClasses: []
  5543. }),
  5544. smalltalk.String.klass);
  5545. smalltalk.addClass('Array', smalltalk.SequenceableCollection, [], 'Kernel');
  5546. smalltalk.addMethod(
  5547. unescape('_size'),
  5548. smalltalk.method({
  5549. selector: unescape('size'),
  5550. category: 'accessing',
  5551. fn: function (){
  5552. var self=this;
  5553. return self.length;
  5554. return self;},
  5555. args: [],
  5556. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  5557. messageSends: [],
  5558. referencedClasses: []
  5559. }),
  5560. smalltalk.Array);
  5561. smalltalk.addMethod(
  5562. unescape('_at_put_'),
  5563. smalltalk.method({
  5564. selector: unescape('at%3Aput%3A'),
  5565. category: 'accessing',
  5566. fn: function (anIndex, anObject){
  5567. var self=this;
  5568. return self[anIndex - 1] = anObject;
  5569. return self;},
  5570. args: ["anIndex", "anObject"],
  5571. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%20%3D%20anObject%3E'),
  5572. messageSends: [],
  5573. referencedClasses: []
  5574. }),
  5575. smalltalk.Array);
  5576. smalltalk.addMethod(
  5577. unescape('_at_ifAbsent_'),
  5578. smalltalk.method({
  5579. selector: unescape('at%3AifAbsent%3A'),
  5580. category: 'accessing',
  5581. fn: function (anIndex, aBlock){
  5582. var self=this;
  5583. var value = self[anIndex - 1];
  5584. if(value === undefined) {
  5585. return aBlock();
  5586. } else {
  5587. return value;
  5588. }
  5589. ;
  5590. return self;},
  5591. args: ["anIndex", "aBlock"],
  5592. 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'),
  5593. messageSends: [],
  5594. referencedClasses: []
  5595. }),
  5596. smalltalk.Array);
  5597. smalltalk.addMethod(
  5598. unescape('_add_'),
  5599. smalltalk.method({
  5600. selector: unescape('add%3A'),
  5601. category: 'adding/removing',
  5602. fn: function (anObject){
  5603. var self=this;
  5604. self.push(anObject); return anObject;;
  5605. return self;},
  5606. args: ["anObject"],
  5607. source: unescape('add%3A%20anObject%0A%09%3Cself.push%28anObject%29%3B%20return%20anObject%3B%3E'),
  5608. messageSends: [],
  5609. referencedClasses: []
  5610. }),
  5611. smalltalk.Array);
  5612. smalltalk.addMethod(
  5613. unescape('_shallowCopy'),
  5614. smalltalk.method({
  5615. selector: unescape('shallowCopy'),
  5616. category: 'copying',
  5617. fn: function (){
  5618. var self=this;
  5619. var newCollection=nil;
  5620. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5621. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [each]);})]);
  5622. return newCollection;
  5623. return self;},
  5624. args: [],
  5625. 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'),
  5626. messageSends: ["new", "class", "do:", "add:"],
  5627. referencedClasses: []
  5628. }),
  5629. smalltalk.Array);
  5630. smalltalk.addMethod(
  5631. unescape('_deepCopy'),
  5632. smalltalk.method({
  5633. selector: unescape('deepCopy'),
  5634. category: 'copying',
  5635. fn: function (){
  5636. var self=this;
  5637. var newCollection=nil;
  5638. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5639. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(each, "_deepCopy", [])]);})]);
  5640. return newCollection;
  5641. return self;},
  5642. args: [],
  5643. 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'),
  5644. messageSends: ["new", "class", "do:", "add:", "deepCopy"],
  5645. referencedClasses: []
  5646. }),
  5647. smalltalk.Array);
  5648. smalltalk.addMethod(
  5649. unescape('_copyFrom_to_'),
  5650. smalltalk.method({
  5651. selector: unescape('copyFrom%3Ato%3A'),
  5652. category: 'copying',
  5653. fn: function (anIndex, anotherIndex){
  5654. var self=this;
  5655. var array=nil;
  5656. array=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5657. smalltalk.send(anIndex, "_to_do_", [anotherIndex, (function(each){return smalltalk.send(array, "_add_", [smalltalk.send(self, "_at_", [each])]);})]);
  5658. return array;
  5659. return self;},
  5660. args: ["anIndex", "anotherIndex"],
  5661. 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'),
  5662. messageSends: ["new", "class", "to:do:", "add:", "at:"],
  5663. referencedClasses: []
  5664. }),
  5665. smalltalk.Array);
  5666. smalltalk.addMethod(
  5667. unescape('_join_'),
  5668. smalltalk.method({
  5669. selector: unescape('join%3A'),
  5670. category: 'enumerating',
  5671. fn: function (aString){
  5672. var self=this;
  5673. return self.join(aString);
  5674. return self;},
  5675. args: ["aString"],
  5676. source: unescape('join%3A%20aString%0A%09%3Creturn%20self.join%28aString%29%3E'),
  5677. messageSends: [],
  5678. referencedClasses: []
  5679. }),
  5680. smalltalk.Array);
  5681. smalltalk.addMethod(
  5682. unescape('_asJavascript'),
  5683. smalltalk.method({
  5684. selector: unescape('asJavascript'),
  5685. category: 'converting',
  5686. fn: function (){
  5687. var self=this;
  5688. 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")]);
  5689. return self;},
  5690. args: [],
  5691. 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'),
  5692. messageSends: [unescape("%2C"), "join:", "collect:", "asJavascript"],
  5693. referencedClasses: []
  5694. }),
  5695. smalltalk.Array);
  5696. smalltalk.addMethod(
  5697. unescape('_sort'),
  5698. smalltalk.method({
  5699. selector: unescape('sort'),
  5700. category: 'enumerating',
  5701. fn: function (){
  5702. var self=this;
  5703. return smalltalk.send(self, "_basicPerform_", ["sort"]);
  5704. return self;},
  5705. args: [],
  5706. source: unescape('sort%0A%20%20%20%20%5Eself%20basicPerform%3A%20%27sort%27'),
  5707. messageSends: ["basicPerform:"],
  5708. referencedClasses: []
  5709. }),
  5710. smalltalk.Array);
  5711. smalltalk.addMethod(
  5712. unescape('_sort_'),
  5713. smalltalk.method({
  5714. selector: unescape('sort%3A'),
  5715. category: 'enumerating',
  5716. fn: function (aBlock){
  5717. var self=this;
  5718. return self.sort(function(a, b) {
  5719. if(aBlock(a,b)) {return -1} else {return 1}
  5720. })
  5721. ;
  5722. return self;},
  5723. args: ["aBlock"],
  5724. 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'),
  5725. messageSends: [],
  5726. referencedClasses: []
  5727. }),
  5728. smalltalk.Array);
  5729. smalltalk.addMethod(
  5730. unescape('_remove_'),
  5731. smalltalk.method({
  5732. selector: unescape('remove%3A'),
  5733. category: 'adding/removing',
  5734. fn: function (anObject){
  5735. var self=this;
  5736. for(var i=0;i<self.length;i++) {
  5737. if(self[i] == anObject) {
  5738. self.splice(i,1);
  5739. break;
  5740. }
  5741. }
  5742. ;
  5743. return self;},
  5744. args: ["anObject"],
  5745. 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'),
  5746. messageSends: [],
  5747. referencedClasses: []
  5748. }),
  5749. smalltalk.Array);
  5750. smalltalk.addMethod(
  5751. unescape('_sorted'),
  5752. smalltalk.method({
  5753. selector: unescape('sorted'),
  5754. category: 'enumerating',
  5755. fn: function (){
  5756. var self=this;
  5757. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort", []);
  5758. return self;},
  5759. args: [],
  5760. source: unescape('sorted%0A%09%5Eself%20copy%20sort'),
  5761. messageSends: ["sort", "copy"],
  5762. referencedClasses: []
  5763. }),
  5764. smalltalk.Array);
  5765. smalltalk.addMethod(
  5766. unescape('_sorted_'),
  5767. smalltalk.method({
  5768. selector: unescape('sorted%3A'),
  5769. category: 'enumerating',
  5770. fn: function (aBlock){
  5771. var self=this;
  5772. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort_", [aBlock]);
  5773. return self;},
  5774. args: ["aBlock"],
  5775. source: unescape('sorted%3A%20aBlock%0A%09%5Eself%20copy%20sort%3A%20aBlock'),
  5776. messageSends: ["sort:", "copy"],
  5777. referencedClasses: []
  5778. }),
  5779. smalltalk.Array);
  5780. smalltalk.addMethod(
  5781. unescape('_asJSONObject'),
  5782. smalltalk.method({
  5783. selector: unescape('asJSONObject'),
  5784. category: 'converting',
  5785. fn: function (){
  5786. var self=this;
  5787. return smalltalk.send(self, "_collect_", [(function(each){return smalltalk.send(each, "_asJSONObject", []);})]);
  5788. return self;},
  5789. args: [],
  5790. source: unescape('asJSONObject%0A%09%5Eself%20collect%3A%20%5B%3Aeach%20%7C%20each%20asJSONObject%5D'),
  5791. messageSends: ["collect:", "asJSONObject"],
  5792. referencedClasses: []
  5793. }),
  5794. smalltalk.Array);
  5795. smalltalk.addMethod(
  5796. unescape('_removeFrom_to_'),
  5797. smalltalk.method({
  5798. selector: unescape('removeFrom%3Ato%3A'),
  5799. category: 'adding/removing',
  5800. fn: function (aNumber, anotherNumber){
  5801. var self=this;
  5802. self.splice(aNumber - 1,anotherNumber - 1);
  5803. return self;},
  5804. args: ["aNumber", "anotherNumber"],
  5805. source: unescape('removeFrom%3A%20aNumber%20to%3A%20anotherNumber%0A%09%3Cself.splice%28aNumber%20-%201%2CanotherNumber%20-%201%29%3E'),
  5806. messageSends: [],
  5807. referencedClasses: []
  5808. }),
  5809. smalltalk.Array);
  5810. smalltalk.addMethod(
  5811. unescape('_printString'),
  5812. smalltalk.method({
  5813. selector: unescape('printString'),
  5814. category: 'enumerating',
  5815. fn: function (){
  5816. var self=this;
  5817. var str=nil;
  5818. str=smalltalk.send("", "_writeStream", []);
  5819. smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.SequenceableCollection), "__comma", [unescape("%20%28")])]);
  5820. smalltalk.send(self, "_do_separatedBy_", [(function(each){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(each, "_printString", [])]);}), (function(){return smalltalk.send(str, "_nextPutAll_", [" "]);})]);
  5821. smalltalk.send(str, "_nextPutAll_", [unescape("%29")]);
  5822. return smalltalk.send(str, "_contents", []);
  5823. return self;},
  5824. args: [],
  5825. 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'),
  5826. messageSends: ["writeStream", "nextPutAll:", unescape("%2C"), "printString", "do:separatedBy:", "contents"],
  5827. referencedClasses: []
  5828. }),
  5829. smalltalk.Array);
  5830. smalltalk.addMethod(
  5831. unescape('_reversed'),
  5832. smalltalk.method({
  5833. selector: unescape('reversed'),
  5834. category: 'converting',
  5835. fn: function (){
  5836. var self=this;
  5837. return self._copy().reverse();
  5838. return self;},
  5839. args: [],
  5840. source: unescape('reversed%0A%09%3Creturn%20self._copy%28%29.reverse%28%29%3E'),
  5841. messageSends: [],
  5842. referencedClasses: []
  5843. }),
  5844. smalltalk.Array);
  5845. smalltalk.addMethod(
  5846. unescape('__eq'),
  5847. smalltalk.method({
  5848. selector: unescape('%3D'),
  5849. category: 'comparing',
  5850. fn: function (aCollection){
  5851. var self=this;
  5852. 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}})})();})]));
  5853. 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}})})();})]));})]);
  5854. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return true}})})();
  5855. return self;
  5856. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  5857. args: ["aCollection"],
  5858. 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'),
  5859. messageSends: ["ifFalse:", "and:", unescape("%3D"), "class", "size", "withIndexDo:", "at:"],
  5860. referencedClasses: []
  5861. }),
  5862. smalltalk.Array);
  5863. smalltalk.addClass('RegularExpression', smalltalk.Object, [], 'Kernel');
  5864. smalltalk.addMethod(
  5865. unescape('_compile_'),
  5866. smalltalk.method({
  5867. selector: unescape('compile%3A'),
  5868. category: 'evaluating',
  5869. fn: function (aString){
  5870. var self=this;
  5871. return self.compile(aString);
  5872. return self;},
  5873. args: ["aString"],
  5874. source: unescape('compile%3A%20aString%0A%09%3Creturn%20self.compile%28aString%29%3E'),
  5875. messageSends: [],
  5876. referencedClasses: []
  5877. }),
  5878. smalltalk.RegularExpression);
  5879. smalltalk.addMethod(
  5880. unescape('_exec_'),
  5881. smalltalk.method({
  5882. selector: unescape('exec%3A'),
  5883. category: 'evaluating',
  5884. fn: function (aString){
  5885. var self=this;
  5886. return self.exec(aString) || nil;
  5887. return self;},
  5888. args: ["aString"],
  5889. source: unescape('exec%3A%20aString%0A%09%3Creturn%20self.exec%28aString%29%20%7C%7C%20nil%3E'),
  5890. messageSends: [],
  5891. referencedClasses: []
  5892. }),
  5893. smalltalk.RegularExpression);
  5894. smalltalk.addMethod(
  5895. unescape('_test_'),
  5896. smalltalk.method({
  5897. selector: unescape('test%3A'),
  5898. category: 'evaluating',
  5899. fn: function (aString){
  5900. var self=this;
  5901. return self.test(aString);
  5902. return self;},
  5903. args: ["aString"],
  5904. source: unescape('test%3A%20aString%0A%09%3Creturn%20self.test%28aString%29%3E'),
  5905. messageSends: [],
  5906. referencedClasses: []
  5907. }),
  5908. smalltalk.RegularExpression);
  5909. smalltalk.addMethod(
  5910. unescape('_fromString_flag_'),
  5911. smalltalk.method({
  5912. selector: unescape('fromString%3Aflag%3A'),
  5913. category: 'instance creation',
  5914. fn: function (aString, anotherString){
  5915. var self=this;
  5916. return new RegExp(aString, anotherString);
  5917. return self;},
  5918. args: ["aString", "anotherString"],
  5919. source: unescape('fromString%3A%20aString%20flag%3A%20anotherString%0A%09%3Creturn%20new%20RegExp%28aString%2C%20anotherString%29%3E'),
  5920. messageSends: [],
  5921. referencedClasses: []
  5922. }),
  5923. smalltalk.RegularExpression.klass);
  5924. smalltalk.addMethod(
  5925. unescape('_fromString_'),
  5926. smalltalk.method({
  5927. selector: unescape('fromString%3A'),
  5928. category: 'instance creation',
  5929. fn: function (aString){
  5930. var self=this;
  5931. return smalltalk.send(self, "_fromString_flag_", [aString, ""]);
  5932. return self;},
  5933. args: ["aString"],
  5934. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%5Eself%20fromString%3A%20aString%20flag%3A%20%27%27'),
  5935. messageSends: ["fromString:flag:"],
  5936. referencedClasses: []
  5937. }),
  5938. smalltalk.RegularExpression.klass);
  5939. smalltalk.addClass('Error', smalltalk.Object, ['messageText'], 'Kernel');
  5940. smalltalk.addMethod(
  5941. unescape('_messageText'),
  5942. smalltalk.method({
  5943. selector: unescape('messageText'),
  5944. category: 'accessing',
  5945. fn: function (){
  5946. var self=this;
  5947. return self['@messageText'];
  5948. return self;},
  5949. args: [],
  5950. source: unescape('messageText%0A%09%5EmessageText'),
  5951. messageSends: [],
  5952. referencedClasses: []
  5953. }),
  5954. smalltalk.Error);
  5955. smalltalk.addMethod(
  5956. unescape('_messageText_'),
  5957. smalltalk.method({
  5958. selector: unescape('messageText%3A'),
  5959. category: 'accessing',
  5960. fn: function (aString){
  5961. var self=this;
  5962. self['@messageText']=aString;
  5963. return self;},
  5964. args: ["aString"],
  5965. source: unescape('messageText%3A%20aString%0A%09messageText%20%3A%3D%20aString'),
  5966. messageSends: [],
  5967. referencedClasses: []
  5968. }),
  5969. smalltalk.Error);
  5970. smalltalk.addMethod(
  5971. unescape('_signal'),
  5972. smalltalk.method({
  5973. selector: unescape('signal'),
  5974. category: 'signaling',
  5975. fn: function (){
  5976. var self=this;
  5977. self.context = smalltalk.getThisContext(); self.smalltalkError = true; throw(self);
  5978. return self;},
  5979. args: [],
  5980. source: unescape('signal%0A%09%3Cself.context%20%3D%20smalltalk.getThisContext%28%29%3B%20self.smalltalkError%20%3D%20true%3B%20throw%28self%29%3E'),
  5981. messageSends: [],
  5982. referencedClasses: []
  5983. }),
  5984. smalltalk.Error);
  5985. smalltalk.addMethod(
  5986. unescape('_context'),
  5987. smalltalk.method({
  5988. selector: unescape('context'),
  5989. category: 'accessing',
  5990. fn: function (){
  5991. var self=this;
  5992. return self.context;
  5993. return self;},
  5994. args: [],
  5995. source: unescape('context%0A%09%3Creturn%20self.context%3E'),
  5996. messageSends: [],
  5997. referencedClasses: []
  5998. }),
  5999. smalltalk.Error);
  6000. smalltalk.addMethod(
  6001. unescape('_signal_'),
  6002. smalltalk.method({
  6003. selector: unescape('signal%3A'),
  6004. category: 'instance creation',
  6005. fn: function (aString){
  6006. var self=this;
  6007. return (function($rec){smalltalk.send($rec, "_messageText_", [aString]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send(self, "_new", []));
  6008. return self;},
  6009. args: ["aString"],
  6010. source: unescape('signal%3A%20aString%0A%09%20%20%20%20%5Eself%20new%0A%09%09messageText%3A%20aString%3B%0A%09%09signal'),
  6011. messageSends: ["messageText:", "signal", "new"],
  6012. referencedClasses: []
  6013. }),
  6014. smalltalk.Error.klass);
  6015. smalltalk.addClass('MethodContext', smalltalk.Object, [], 'Kernel');
  6016. smalltalk.addMethod(
  6017. unescape('_receiver'),
  6018. smalltalk.method({
  6019. selector: unescape('receiver'),
  6020. category: 'accessing',
  6021. fn: function (){
  6022. var self=this;
  6023. return self.receiver;
  6024. return self;},
  6025. args: [],
  6026. source: unescape('receiver%0A%09%3Creturn%20self.receiver%3E'),
  6027. messageSends: [],
  6028. referencedClasses: []
  6029. }),
  6030. smalltalk.MethodContext);
  6031. smalltalk.addMethod(
  6032. unescape('_selector'),
  6033. smalltalk.method({
  6034. selector: unescape('selector'),
  6035. category: 'accessing',
  6036. fn: function (){
  6037. var self=this;
  6038. return smalltalk.convertSelector(self.selector);
  6039. return self;},
  6040. args: [],
  6041. source: unescape('selector%0A%09%3Creturn%20smalltalk.convertSelector%28self.selector%29%3E'),
  6042. messageSends: [],
  6043. referencedClasses: []
  6044. }),
  6045. smalltalk.MethodContext);
  6046. smalltalk.addMethod(
  6047. unescape('_home'),
  6048. smalltalk.method({
  6049. selector: unescape('home'),
  6050. category: 'accessing',
  6051. fn: function (){
  6052. var self=this;
  6053. return self.homeContext;
  6054. return self;},
  6055. args: [],
  6056. source: unescape('home%0A%09%3Creturn%20self.homeContext%3E'),
  6057. messageSends: [],
  6058. referencedClasses: []
  6059. }),
  6060. smalltalk.MethodContext);
  6061. smalltalk.addMethod(
  6062. unescape('_temps'),
  6063. smalltalk.method({
  6064. selector: unescape('temps'),
  6065. category: 'accessing',
  6066. fn: function (){
  6067. var self=this;
  6068. return self.temps;
  6069. return self;},
  6070. args: [],
  6071. source: unescape('temps%0A%09%3Creturn%20self.temps%3E'),
  6072. messageSends: [],
  6073. referencedClasses: []
  6074. }),
  6075. smalltalk.MethodContext);
  6076. smalltalk.addMethod(
  6077. unescape('_printString'),
  6078. smalltalk.method({
  6079. selector: unescape('printString'),
  6080. category: 'accessing',
  6081. fn: function (){
  6082. var self=this;
  6083. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.Object), "__comma", [unescape("%28")]), "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", [unescape("%29")]);
  6084. return self;},
  6085. args: [],
  6086. source: unescape('printString%0A%09%5Esuper%20printString%2C%20%27%28%27%2C%20self%20asString%2C%20%27%29%27'),
  6087. messageSends: [unescape("%2C"), "printString", "asString"],
  6088. referencedClasses: []
  6089. }),
  6090. smalltalk.MethodContext);
  6091. smalltalk.addMethod(
  6092. unescape('_asString'),
  6093. smalltalk.method({
  6094. selector: unescape('asString'),
  6095. category: 'accessing',
  6096. fn: function (){
  6097. var self=this;
  6098. 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", [])]);
  6099. return self;},
  6100. args: [],
  6101. source: unescape('asString%0A%09%5Eself%20receiver%20class%20printString%2C%20%27%20%3E%3E%20%27%2C%20self%20selector'),
  6102. messageSends: [unescape("%2C"), "printString", "class", "receiver", "selector"],
  6103. referencedClasses: []
  6104. }),
  6105. smalltalk.MethodContext);
  6106. smalltalk.addClass('Association', smalltalk.Object, ['key', 'value'], 'Kernel');
  6107. smalltalk.addMethod(
  6108. unescape('__eq'),
  6109. smalltalk.method({
  6110. selector: unescape('%3D'),
  6111. category: 'comparing',
  6112. fn: function (anAssociation){
  6113. var self=this;
  6114. 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", [])]);})]);})]);
  6115. return self;},
  6116. args: ["anAssociation"],
  6117. 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'),
  6118. messageSends: ["and:", unescape("%3D"), "class", "key", "value"],
  6119. referencedClasses: []
  6120. }),
  6121. smalltalk.Association);
  6122. smalltalk.addMethod(
  6123. unescape('_key_'),
  6124. smalltalk.method({
  6125. selector: unescape('key%3A'),
  6126. category: 'accessing',
  6127. fn: function (aKey){
  6128. var self=this;
  6129. self['@key']=aKey;
  6130. return self;},
  6131. args: ["aKey"],
  6132. source: unescape('key%3A%20aKey%0A%09key%20%3A%3D%20aKey'),
  6133. messageSends: [],
  6134. referencedClasses: []
  6135. }),
  6136. smalltalk.Association);
  6137. smalltalk.addMethod(
  6138. unescape('_key'),
  6139. smalltalk.method({
  6140. selector: unescape('key'),
  6141. category: 'accessing',
  6142. fn: function (){
  6143. var self=this;
  6144. return self['@key'];
  6145. return self;},
  6146. args: [],
  6147. source: unescape('key%0A%09%5Ekey'),
  6148. messageSends: [],
  6149. referencedClasses: []
  6150. }),
  6151. smalltalk.Association);
  6152. smalltalk.addMethod(
  6153. unescape('_value_'),
  6154. smalltalk.method({
  6155. selector: unescape('value%3A'),
  6156. category: 'accessing',
  6157. fn: function (aValue){
  6158. var self=this;
  6159. self['@value']=aValue;
  6160. return self;},
  6161. args: ["aValue"],
  6162. source: unescape('value%3A%20aValue%0A%09value%20%3A%3D%20aValue'),
  6163. messageSends: [],
  6164. referencedClasses: []
  6165. }),
  6166. smalltalk.Association);
  6167. smalltalk.addMethod(
  6168. unescape('_value'),
  6169. smalltalk.method({
  6170. selector: unescape('value'),
  6171. category: 'accessing',
  6172. fn: function (){
  6173. var self=this;
  6174. return self['@value'];
  6175. return self;},
  6176. args: [],
  6177. source: unescape('value%0A%09%5Evalue'),
  6178. messageSends: [],
  6179. referencedClasses: []
  6180. }),
  6181. smalltalk.Association);
  6182. smalltalk.addMethod(
  6183. unescape('_key_value_'),
  6184. smalltalk.method({
  6185. selector: unescape('key%3Avalue%3A'),
  6186. category: 'instance creation',
  6187. fn: function (aKey, aValue){
  6188. var self=this;
  6189. return (function($rec){smalltalk.send($rec, "_key_", [aKey]);smalltalk.send($rec, "_value_", [aValue]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  6190. return self;},
  6191. args: ["aKey", "aValue"],
  6192. 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'),
  6193. messageSends: ["key:", "value:", "yourself", "new"],
  6194. referencedClasses: []
  6195. }),
  6196. smalltalk.Association.klass);
  6197. smalltalk.addClass('Dictionary', smalltalk.Collection, ['keys'], 'Kernel');
  6198. smalltalk.addMethod(
  6199. unescape('__eq'),
  6200. smalltalk.method({
  6201. selector: unescape('%3D'),
  6202. category: 'comparing',
  6203. fn: function (aDictionary){
  6204. var self=this;
  6205. 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}})})();})]));
  6206. ((($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}})})();})]));
  6207. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return smalltalk.send(smalltalk.send(self, "_associations", []), "__eq", [smalltalk.send(aDictionary, "_associations", [])])}})})();
  6208. return self;
  6209. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  6210. args: ["aDictionary"],
  6211. 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'),
  6212. messageSends: ["ifFalse:", unescape("%3D"), "class", "size", "associations"],
  6213. referencedClasses: []
  6214. }),
  6215. smalltalk.Dictionary);
  6216. smalltalk.addMethod(
  6217. unescape('_shallowCopy'),
  6218. smalltalk.method({
  6219. selector: unescape('shallowCopy'),
  6220. category: 'copying',
  6221. fn: function (){
  6222. var self=this;
  6223. var copy=nil;
  6224. copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6225. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(copy, "_at_put_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  6226. return copy;
  6227. return self;},
  6228. args: [],
  6229. 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'),
  6230. messageSends: ["new", "class", "associationsDo:", "at:put:", "key", "value"],
  6231. referencedClasses: []
  6232. }),
  6233. smalltalk.Dictionary);
  6234. smalltalk.addMethod(
  6235. unescape('_initialize'),
  6236. smalltalk.method({
  6237. selector: unescape('initialize'),
  6238. category: 'initialization',
  6239. fn: function (){
  6240. var self=this;
  6241. smalltalk.send(self, "_initialize", [], smalltalk.Collection);
  6242. self['@keys']=[];
  6243. return self;},
  6244. args: [],
  6245. source: unescape('initialize%0A%20%20%20%20%09super%20initialize.%0A%20%20%20%20%09keys%20%3A%3D%20%23%28%29'),
  6246. messageSends: ["initialize"],
  6247. referencedClasses: []
  6248. }),
  6249. smalltalk.Dictionary);
  6250. smalltalk.addMethod(
  6251. unescape('_size'),
  6252. smalltalk.method({
  6253. selector: unescape('size'),
  6254. category: 'accessing',
  6255. fn: function (){
  6256. var self=this;
  6257. return smalltalk.send(self['@keys'], "_size", []);
  6258. return self;},
  6259. args: [],
  6260. source: unescape('size%0A%09%5Ekeys%20size'),
  6261. messageSends: ["size"],
  6262. referencedClasses: []
  6263. }),
  6264. smalltalk.Dictionary);
  6265. smalltalk.addMethod(
  6266. unescape('_associations'),
  6267. smalltalk.method({
  6268. selector: unescape('associations'),
  6269. category: 'accessing',
  6270. fn: function (){
  6271. var self=this;
  6272. var associations=nil;
  6273. associations=[];
  6274. 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])])]);})]);
  6275. return associations;
  6276. return self;},
  6277. args: [],
  6278. source: unescape('associations%0A%09%7C%20associations%20%7C%0A%09associations%20%3A%3D%20%23%28%29.%0A%09keys%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20associations%20add%3A%20%28Association%20key%3A%20each%20value%3A%20%28self%20at%3A%20each%29%29%5D.%0A%09%5Eassociations'),
  6279. messageSends: ["do:", "add:", "key:value:", "at:"],
  6280. referencedClasses: [smalltalk.Association]
  6281. }),
  6282. smalltalk.Dictionary);
  6283. smalltalk.addMethod(
  6284. unescape('_keys'),
  6285. smalltalk.method({
  6286. selector: unescape('keys'),
  6287. category: 'accessing',
  6288. fn: function (){
  6289. var self=this;
  6290. return smalltalk.send(self['@keys'], "_copy", []);
  6291. return self;},
  6292. args: [],
  6293. source: unescape('keys%0A%09%5Ekeys%20copy'),
  6294. messageSends: ["copy"],
  6295. referencedClasses: []
  6296. }),
  6297. smalltalk.Dictionary);
  6298. smalltalk.addMethod(
  6299. unescape('_values'),
  6300. smalltalk.method({
  6301. selector: unescape('values'),
  6302. category: 'accessing',
  6303. fn: function (){
  6304. var self=this;
  6305. return smalltalk.send(self['@keys'], "_collect_", [(function(each){return smalltalk.send(self, "_at_", [each]);})]);
  6306. return self;},
  6307. args: [],
  6308. source: unescape('values%0A%20%20%20%20%09%5Ekeys%20collect%3A%20%5B%3Aeach%20%7C%20self%20at%3A%20each%5D'),
  6309. messageSends: ["collect:", "at:"],
  6310. referencedClasses: []
  6311. }),
  6312. smalltalk.Dictionary);
  6313. smalltalk.addMethod(
  6314. unescape('_at_put_'),
  6315. smalltalk.method({
  6316. selector: unescape('at%3Aput%3A'),
  6317. category: 'accessing',
  6318. fn: function (aKey, aValue){
  6319. var self=this;
  6320. ((($receiver = smalltalk.send(self['@keys'], "_includes_", [aKey])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@keys'], "_add_", [aKey]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self['@keys'], "_add_", [aKey]);})]));
  6321. return smalltalk.send(self, "_basicAt_put_", [aKey, aValue]);
  6322. return self;},
  6323. args: ["aKey", "aValue"],
  6324. source: unescape('at%3A%20aKey%20put%3A%20aValue%0A%09%28keys%20includes%3A%20aKey%29%20ifFalse%3A%20%5Bkeys%20add%3A%20aKey%5D.%0A%09%5Eself%20basicAt%3A%20aKey%20put%3A%20aValue'),
  6325. messageSends: ["ifFalse:", "includes:", "add:", "basicAt:put:"],
  6326. referencedClasses: []
  6327. }),
  6328. smalltalk.Dictionary);
  6329. smalltalk.addMethod(
  6330. unescape('_at_ifAbsent_'),
  6331. smalltalk.method({
  6332. selector: unescape('at%3AifAbsent%3A'),
  6333. category: 'accessing',
  6334. fn: function (aKey, aBlock){
  6335. var self=this;
  6336. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_keys", []), "_includes_", [aKey]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_basicAt_", [aKey]);}), aBlock]);
  6337. return self;},
  6338. args: ["aKey", "aBlock"],
  6339. source: unescape('at%3A%20aKey%20ifAbsent%3A%20aBlock%0A%09%5E%28self%20keys%20includes%3A%20aKey%29%0A%09%09ifTrue%3A%20%5Bself%20basicAt%3A%20aKey%5D%0A%09%09ifFalse%3A%20aBlock'),
  6340. messageSends: ["ifTrue:ifFalse:", "includes:", "keys", "basicAt:"],
  6341. referencedClasses: []
  6342. }),
  6343. smalltalk.Dictionary);
  6344. smalltalk.addMethod(
  6345. unescape('_at_ifAbsentPut_'),
  6346. smalltalk.method({
  6347. selector: unescape('at%3AifAbsentPut%3A'),
  6348. category: 'accessing',
  6349. fn: function (aKey, aBlock){
  6350. var self=this;
  6351. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_at_put_", [aKey, smalltalk.send(aBlock, "_value", [])]);})]);
  6352. return self;},
  6353. args: ["aKey", "aBlock"],
  6354. 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'),
  6355. messageSends: ["at:ifAbsent:", "at:put:", "value"],
  6356. referencedClasses: []
  6357. }),
  6358. smalltalk.Dictionary);
  6359. smalltalk.addMethod(
  6360. unescape('_at_ifPresent_'),
  6361. smalltalk.method({
  6362. selector: unescape('at%3AifPresent%3A'),
  6363. category: 'accessing',
  6364. fn: function (aKey, aBlock){
  6365. var self=this;
  6366. return (($receiver = smalltalk.send(self, "_basicAt_", [aKey])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})() : nil;
  6367. return self;},
  6368. args: ["aKey", "aBlock"],
  6369. 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'),
  6370. messageSends: ["ifNotNil:", "basicAt:", "value:", "at:"],
  6371. referencedClasses: []
  6372. }),
  6373. smalltalk.Dictionary);
  6374. smalltalk.addMethod(
  6375. unescape('_at_ifPresent_ifAbsent_'),
  6376. smalltalk.method({
  6377. selector: unescape('at%3AifPresent%3AifAbsent%3A'),
  6378. category: 'accessing',
  6379. fn: function (aKey, aBlock, anotherBlock){
  6380. var self=this;
  6381. return smalltalk.send(smalltalk.send(self, "_basicAt_", [aKey]), "_ifNil_ifNotNil_", [anotherBlock, (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})]);
  6382. return self;},
  6383. args: ["aKey", "aBlock", "anotherBlock"],
  6384. 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'),
  6385. messageSends: ["ifNil:ifNotNil:", "basicAt:", "value:", "at:"],
  6386. referencedClasses: []
  6387. }),
  6388. smalltalk.Dictionary);
  6389. smalltalk.addMethod(
  6390. unescape('_add_'),
  6391. smalltalk.method({
  6392. selector: unescape('add%3A'),
  6393. category: 'adding/removing',
  6394. fn: function (anAssociation){
  6395. var self=this;
  6396. smalltalk.send(self, "_at_put_", [smalltalk.send(anAssociation, "_key", []), smalltalk.send(anAssociation, "_value", [])]);
  6397. return self;},
  6398. args: ["anAssociation"],
  6399. source: unescape('add%3A%20anAssociation%0A%20%20%20%20%09self%20at%3A%20anAssociation%20key%20put%3A%20anAssociation%20value'),
  6400. messageSends: ["at:put:", "key", "value"],
  6401. referencedClasses: []
  6402. }),
  6403. smalltalk.Dictionary);
  6404. smalltalk.addMethod(
  6405. unescape('_addAll_'),
  6406. smalltalk.method({
  6407. selector: unescape('addAll%3A'),
  6408. category: 'adding/removing',
  6409. fn: function (aDictionary){
  6410. var self=this;
  6411. smalltalk.send(self, "_addAll_", [smalltalk.send(aDictionary, "_associations", [])], smalltalk.Collection);
  6412. return aDictionary;
  6413. return self;},
  6414. args: ["aDictionary"],
  6415. source: unescape('addAll%3A%20aDictionary%0A%20%20%20%20%09super%20addAll%3A%20aDictionary%20associations.%0A%20%20%20%20%09%5EaDictionary'),
  6416. messageSends: ["addAll:", "associations"],
  6417. referencedClasses: []
  6418. }),
  6419. smalltalk.Dictionary);
  6420. smalltalk.addMethod(
  6421. unescape('__comma'),
  6422. smalltalk.method({
  6423. selector: unescape('%2C'),
  6424. category: 'copying',
  6425. fn: function (aCollection){
  6426. var self=this;
  6427. smalltalk.send(self, "_shouldNotImplement", []);
  6428. return self;},
  6429. args: ["aCollection"],
  6430. source: unescape('%2C%20aCollection%0A%09self%20shouldNotImplement'),
  6431. messageSends: ["shouldNotImplement"],
  6432. referencedClasses: []
  6433. }),
  6434. smalltalk.Dictionary);
  6435. smalltalk.addMethod(
  6436. unescape('_copyFrom_to_'),
  6437. smalltalk.method({
  6438. selector: unescape('copyFrom%3Ato%3A'),
  6439. category: 'copying',
  6440. fn: function (anIndex, anotherIndex){
  6441. var self=this;
  6442. smalltalk.send(self, "_shouldNotImplement", []);
  6443. return self;},
  6444. args: ["anIndex", "anotherIndex"],
  6445. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20shouldNotImplement'),
  6446. messageSends: ["shouldNotImplement"],
  6447. referencedClasses: []
  6448. }),
  6449. smalltalk.Dictionary);
  6450. smalltalk.addMethod(
  6451. unescape('_associationsDo_'),
  6452. smalltalk.method({
  6453. selector: unescape('associationsDo%3A'),
  6454. category: 'enumerating',
  6455. fn: function (aBlock){
  6456. var self=this;
  6457. smalltalk.send(smalltalk.send(self, "_associations", []), "_do_", [aBlock]);
  6458. return self;},
  6459. args: ["aBlock"],
  6460. source: unescape('associationsDo%3A%20aBlock%0A%20%20%20%20%09self%20associations%20do%3A%20aBlock'),
  6461. messageSends: ["do:", "associations"],
  6462. referencedClasses: []
  6463. }),
  6464. smalltalk.Dictionary);
  6465. smalltalk.addMethod(
  6466. unescape('_keysAndValuesDo_'),
  6467. smalltalk.method({
  6468. selector: unescape('keysAndValuesDo%3A'),
  6469. category: 'enumerating',
  6470. fn: function (aBlock){
  6471. var self=this;
  6472. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(aBlock, "_value_value_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  6473. return self;},
  6474. args: ["aBlock"],
  6475. 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'),
  6476. messageSends: ["associationsDo:", "value:value:", "key", "value"],
  6477. referencedClasses: []
  6478. }),
  6479. smalltalk.Dictionary);
  6480. smalltalk.addMethod(
  6481. unescape('_do_'),
  6482. smalltalk.method({
  6483. selector: unescape('do%3A'),
  6484. category: 'enumerating',
  6485. fn: function (aBlock){
  6486. var self=this;
  6487. smalltalk.send(smalltalk.send(self, "_values", []), "_do_", [aBlock]);
  6488. return self;},
  6489. args: ["aBlock"],
  6490. source: unescape('do%3A%20aBlock%0A%20%20%20%20%09self%20values%20do%3A%20aBlock'),
  6491. messageSends: ["do:", "values"],
  6492. referencedClasses: []
  6493. }),
  6494. smalltalk.Dictionary);
  6495. smalltalk.addMethod(
  6496. unescape('_select_'),
  6497. smalltalk.method({
  6498. selector: unescape('select%3A'),
  6499. category: 'enumerating',
  6500. fn: function (aBlock){
  6501. var self=this;
  6502. var newDict=nil;
  6503. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6504. 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]);})]));})]);
  6505. return newDict;
  6506. return self;},
  6507. args: ["aBlock"],
  6508. 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'),
  6509. messageSends: ["new", "class", "keysAndValuesDo:", "ifTrue:", "value:", "at:put:"],
  6510. referencedClasses: []
  6511. }),
  6512. smalltalk.Dictionary);
  6513. smalltalk.addMethod(
  6514. unescape('_collect_'),
  6515. smalltalk.method({
  6516. selector: unescape('collect%3A'),
  6517. category: 'enumerating',
  6518. fn: function (aBlock){
  6519. var self=this;
  6520. var newDict=nil;
  6521. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6522. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(newDict, "_at_put_", [key, smalltalk.send(aBlock, "_value_", [value])]);})]);
  6523. return newDict;
  6524. return self;},
  6525. args: ["aBlock"],
  6526. 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'),
  6527. messageSends: ["new", "class", "keysAndValuesDo:", "at:put:", "value:"],
  6528. referencedClasses: []
  6529. }),
  6530. smalltalk.Dictionary);
  6531. smalltalk.addMethod(
  6532. unescape('_detect_ifNone_'),
  6533. smalltalk.method({
  6534. selector: unescape('detect%3AifNone%3A'),
  6535. category: 'enumerating',
  6536. fn: function (aBlock, anotherBlock){
  6537. var self=this;
  6538. return smalltalk.send(smalltalk.send(self, "_values", []), "_detect_ifNone_", [aBlock, anotherBlock]);
  6539. return self;},
  6540. args: ["aBlock", "anotherBlock"],
  6541. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eself%20values%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  6542. messageSends: ["detect:ifNone:", "values"],
  6543. referencedClasses: []
  6544. }),
  6545. smalltalk.Dictionary);
  6546. smalltalk.addMethod(
  6547. unescape('_includes_'),
  6548. smalltalk.method({
  6549. selector: unescape('includes%3A'),
  6550. category: 'enumerating',
  6551. fn: function (anObject){
  6552. var self=this;
  6553. return smalltalk.send(smalltalk.send(self, "_values", []), "_includes_", [anObject]);
  6554. return self;},
  6555. args: ["anObject"],
  6556. source: unescape('includes%3A%20anObject%0A%09%5Eself%20values%20includes%3A%20anObject'),
  6557. messageSends: ["includes:", "values"],
  6558. referencedClasses: []
  6559. }),
  6560. smalltalk.Dictionary);
  6561. smalltalk.addMethod(
  6562. unescape('_remove_'),
  6563. smalltalk.method({
  6564. selector: unescape('remove%3A'),
  6565. category: 'adding/removing',
  6566. fn: function (aKey){
  6567. var self=this;
  6568. smalltalk.send(self, "_removeKey_", [aKey]);
  6569. return self;},
  6570. args: ["aKey"],
  6571. source: unescape('remove%3A%20aKey%0A%20%20%20%20self%20removeKey%3A%20aKey'),
  6572. messageSends: ["removeKey:"],
  6573. referencedClasses: []
  6574. }),
  6575. smalltalk.Dictionary);
  6576. smalltalk.addMethod(
  6577. unescape('_removeKey_'),
  6578. smalltalk.method({
  6579. selector: unescape('removeKey%3A'),
  6580. category: 'adding/removing',
  6581. fn: function (aKey){
  6582. var self=this;
  6583. smalltalk.send(self['@keys'], "_remove_", [aKey]);
  6584. return self;},
  6585. args: ["aKey"],
  6586. source: unescape('removeKey%3A%20aKey%0A%20%20%20%20keys%20remove%3A%20aKey'),
  6587. messageSends: ["remove:"],
  6588. referencedClasses: []
  6589. }),
  6590. smalltalk.Dictionary);
  6591. smalltalk.addMethod(
  6592. unescape('_at_'),
  6593. smalltalk.method({
  6594. selector: unescape('at%3A'),
  6595. category: 'accessing',
  6596. fn: function (aKey){
  6597. var self=this;
  6598. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  6599. return self;},
  6600. args: ["aKey"],
  6601. source: unescape('at%3A%20aKey%0A%09%5Eself%20at%3A%20aKey%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  6602. messageSends: ["at:ifAbsent:", "errorNotFound"],
  6603. referencedClasses: []
  6604. }),
  6605. smalltalk.Dictionary);
  6606. smalltalk.addMethod(
  6607. unescape('_asJSONObject'),
  6608. smalltalk.method({
  6609. selector: unescape('asJSONObject'),
  6610. category: 'converting',
  6611. fn: function (){
  6612. var self=this;
  6613. var object=nil;
  6614. object=smalltalk.send((smalltalk.Object || Object), "_new", []);
  6615. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(object, "_basicAt_put_", [key, smalltalk.send(value, "_asJSONObject", [])]);})]);
  6616. return object;
  6617. return self;},
  6618. args: [],
  6619. source: unescape('asJSONObject%0A%09%7C%20object%20%7C%0A%09object%20%3A%3D%20Object%20new.%0A%09self%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09object%20basicAt%3A%20key%20put%3A%20value%20asJSONObject%5D.%0A%09%5Eobject'),
  6620. messageSends: ["new", "keysAndValuesDo:", "basicAt:put:", "asJSONObject"],
  6621. referencedClasses: [smalltalk.Object]
  6622. }),
  6623. smalltalk.Dictionary);
  6624. smalltalk.addMethod(
  6625. unescape('_printString'),
  6626. smalltalk.method({
  6627. selector: unescape('printString'),
  6628. category: 'printing',
  6629. fn: function (){
  6630. var self=this;
  6631. 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")]);})]);
  6632. return self;},
  6633. args: [],
  6634. source: unescape('printString%0A%09%5E%20String%20streamContents%3A%20%5B%3AaStream%7C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09aStream%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09nextPutAll%3A%20super%20printString%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09nextPutAll%3A%20%27%28%27.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09self%20associations%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09do%3A%20%5B%3AanAssociation%7C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09aStream%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09nextPutAll%3A%20anAssociation%20key%20printString%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09nextPutAll%3A%20%27%20-%3E%20%27%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09nextPutAll%3A%20anAssociation%20value%20printString%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09separatedBy%3A%20%5BaStream%20nextPutAll%3A%20%27%20%2C%20%27%5D.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09aStream%20nextPutAll%3A%20%27%29%27.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5D'),
  6635. messageSends: ["streamContents:", "nextPutAll:", "printString", "do:separatedBy:", "associations", "key", "value"],
  6636. referencedClasses: [smalltalk.String]
  6637. }),
  6638. smalltalk.Dictionary);
  6639. smalltalk.addMethod(
  6640. unescape('_fromPairs_'),
  6641. smalltalk.method({
  6642. selector: unescape('fromPairs%3A'),
  6643. category: 'instance creation',
  6644. fn: function (aCollection){
  6645. var self=this;
  6646. var dict=nil;
  6647. dict=smalltalk.send(self, "_new", []);
  6648. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(dict, "_add_", [each]);})]);
  6649. return dict;
  6650. return self;},
  6651. args: ["aCollection"],
  6652. 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'),
  6653. messageSends: ["new", "do:", "add:"],
  6654. referencedClasses: []
  6655. }),
  6656. smalltalk.Dictionary.klass);
  6657. smalltalk.addClass('ClassBuilder', smalltalk.Object, [], 'Kernel');
  6658. smalltalk.addMethod(
  6659. unescape('_superclass_subclass_'),
  6660. smalltalk.method({
  6661. selector: unescape('superclass%3Asubclass%3A'),
  6662. category: 'class creation',
  6663. fn: function (aClass, aString){
  6664. var self=this;
  6665. return smalltalk.send(self, "_superclass_subclass_instanceVariableNames_package_", [aClass, aString, "", nil]);
  6666. return self;},
  6667. args: ["aClass", "aString"],
  6668. 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'),
  6669. messageSends: ["superclass:subclass:instanceVariableNames:package:"],
  6670. referencedClasses: []
  6671. }),
  6672. smalltalk.ClassBuilder);
  6673. smalltalk.addMethod(
  6674. unescape('_class_instanceVariableNames_'),
  6675. smalltalk.method({
  6676. selector: unescape('class%3AinstanceVariableNames%3A'),
  6677. category: 'class creation',
  6678. fn: function (aClass, aString){
  6679. var self=this;
  6680. ((($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"])]);})]));
  6681. smalltalk.send(aClass, "_basicAt_put_", ["iVarNames", smalltalk.send(self, "_instanceVariableNamesFor_", [aString])]);
  6682. smalltalk.send(self, "_setupClass_", [aClass]);
  6683. return self;},
  6684. args: ["aClass", "aString"],
  6685. 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'),
  6686. messageSends: ["ifFalse:", "isMetaclass", "error:", unescape("%2C"), "name", "basicAt:put:", "instanceVariableNamesFor:", "setupClass:"],
  6687. referencedClasses: []
  6688. }),
  6689. smalltalk.ClassBuilder);
  6690. smalltalk.addMethod(
  6691. unescape('_instanceVariableNamesFor_'),
  6692. smalltalk.method({
  6693. selector: unescape('instanceVariableNamesFor%3A'),
  6694. category: 'private',
  6695. fn: function (aString){
  6696. var self=this;
  6697. return smalltalk.send(smalltalk.send(aString, "_tokenize_", [" "]), "_reject_", [(function(each){return smalltalk.send(each, "_isEmpty", []);})]);
  6698. return self;},
  6699. args: ["aString"],
  6700. 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'),
  6701. messageSends: ["reject:", "tokenize:", "isEmpty"],
  6702. referencedClasses: []
  6703. }),
  6704. smalltalk.ClassBuilder);
  6705. smalltalk.addMethod(
  6706. unescape('_addSubclassOf_named_instanceVariableNames_'),
  6707. smalltalk.method({
  6708. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3A'),
  6709. category: 'private',
  6710. fn: function (aClass, aString, aCollection){
  6711. var self=this;
  6712. smalltalk.addClass(aString, aClass, aCollection);
  6713. return smalltalk[aString];
  6714. return self;},
  6715. args: ["aClass", "aString", "aCollection"],
  6716. 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'),
  6717. messageSends: [],
  6718. referencedClasses: []
  6719. }),
  6720. smalltalk.ClassBuilder);
  6721. smalltalk.addMethod(
  6722. unescape('_setupClass_'),
  6723. smalltalk.method({
  6724. selector: unescape('setupClass%3A'),
  6725. category: 'private',
  6726. fn: function (aClass){
  6727. var self=this;
  6728. smalltalk.init(aClass);;
  6729. return self;},
  6730. args: ["aClass"],
  6731. source: unescape('setupClass%3A%20aClass%0A%09%3Csmalltalk.init%28aClass%29%3B%3E'),
  6732. messageSends: [],
  6733. referencedClasses: []
  6734. }),
  6735. smalltalk.ClassBuilder);
  6736. smalltalk.addMethod(
  6737. unescape('_superclass_subclass_instanceVariableNames_package_'),
  6738. smalltalk.method({
  6739. selector: unescape('superclass%3Asubclass%3AinstanceVariableNames%3Apackage%3A'),
  6740. category: 'class creation',
  6741. fn: function (aClass, aString, aString2, aString3){
  6742. var self=this;
  6743. var newClass=nil;
  6744. newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [aClass, aString, smalltalk.send(self, "_instanceVariableNamesFor_", [aString2]), (($receiver = aString3) == nil || $receiver == undefined) ? (function(){return "unclassified";})() : $receiver]);
  6745. smalltalk.send(self, "_setupClass_", [newClass]);
  6746. return newClass;
  6747. return self;},
  6748. args: ["aClass", "aString", "aString2", "aString3"],
  6749. 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'),
  6750. messageSends: ["addSubclassOf:named:instanceVariableNames:package:", "instanceVariableNamesFor:", "ifNil:", "setupClass:"],
  6751. referencedClasses: []
  6752. }),
  6753. smalltalk.ClassBuilder);
  6754. smalltalk.addMethod(
  6755. unescape('_addSubclassOf_named_instanceVariableNames_package_'),
  6756. smalltalk.method({
  6757. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3Apackage%3A'),
  6758. category: 'private',
  6759. fn: function (aClass, aString, aCollection, packageName){
  6760. var self=this;
  6761. smalltalk.addClass(aString, aClass, aCollection, packageName);
  6762. return smalltalk[aString];
  6763. return self;},
  6764. args: ["aClass", "aString", "aCollection", "packageName"],
  6765. 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'),
  6766. messageSends: [],
  6767. referencedClasses: []
  6768. }),
  6769. smalltalk.ClassBuilder);
  6770. smalltalk.addClass('ClassCategoryReader', smalltalk.Object, ['class', 'category', 'chunkParser'], 'Kernel');
  6771. smalltalk.addMethod(
  6772. unescape('_initialize'),
  6773. smalltalk.method({
  6774. selector: unescape('initialize'),
  6775. category: 'initialization',
  6776. fn: function (){
  6777. var self=this;
  6778. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  6779. self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []);
  6780. return self;},
  6781. args: [],
  6782. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  6783. messageSends: ["initialize", "new"],
  6784. referencedClasses: [smalltalk.nil]
  6785. }),
  6786. smalltalk.ClassCategoryReader);
  6787. smalltalk.addMethod(
  6788. unescape('_class_category_'),
  6789. smalltalk.method({
  6790. selector: unescape('class%3Acategory%3A'),
  6791. category: 'accessing',
  6792. fn: function (aClass, aString){
  6793. var self=this;
  6794. self['@class']=aClass;
  6795. self['@category']=aString;
  6796. return self;},
  6797. args: ["aClass", "aString"],
  6798. source: unescape('class%3A%20aClass%20category%3A%20aString%0A%09class%20%3A%3D%20aClass.%0A%09category%20%3A%3D%20aString'),
  6799. messageSends: [],
  6800. referencedClasses: []
  6801. }),
  6802. smalltalk.ClassCategoryReader);
  6803. smalltalk.addMethod(
  6804. unescape('_scanFrom_'),
  6805. smalltalk.method({
  6806. selector: unescape('scanFrom%3A'),
  6807. category: 'fileIn',
  6808. fn: function (aChunkParser){
  6809. var self=this;
  6810. var chunk=nil;
  6811. (function(){while(!(function(){chunk=smalltalk.send(aChunkParser, "_nextChunk", []);return smalltalk.send(chunk, "_isEmpty", []);})()) {(function(){return smalltalk.send(self, "_compileMethod_", [chunk]);})()}})();
  6812. return self;},
  6813. args: ["aChunkParser"],
  6814. 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'),
  6815. messageSends: ["whileFalse:", "nextChunk", "isEmpty", "compileMethod:"],
  6816. referencedClasses: []
  6817. }),
  6818. smalltalk.ClassCategoryReader);
  6819. smalltalk.addMethod(
  6820. unescape('_compileMethod_'),
  6821. smalltalk.method({
  6822. selector: unescape('compileMethod%3A'),
  6823. category: 'private',
  6824. fn: function (aString){
  6825. var self=this;
  6826. var method=nil;
  6827. method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self['@class']]);
  6828. smalltalk.send(method, "_category_", [self['@category']]);
  6829. smalltalk.send(self['@class'], "_addCompiledMethod_", [method]);
  6830. return self;},
  6831. args: ["aString"],
  6832. 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'),
  6833. messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
  6834. referencedClasses: [smalltalk.nil]
  6835. }),
  6836. smalltalk.ClassCategoryReader);
  6837. smalltalk.addClass('Stream', smalltalk.Object, ['collection', 'position', 'streamSize'], 'Kernel');
  6838. smalltalk.addMethod(
  6839. unescape('_collection'),
  6840. smalltalk.method({
  6841. selector: unescape('collection'),
  6842. category: 'accessing',
  6843. fn: function (){
  6844. var self=this;
  6845. return self['@collection'];
  6846. return self;},
  6847. args: [],
  6848. source: unescape('collection%0A%09%5Ecollection'),
  6849. messageSends: [],
  6850. referencedClasses: []
  6851. }),
  6852. smalltalk.Stream);
  6853. smalltalk.addMethod(
  6854. unescape('_setCollection_'),
  6855. smalltalk.method({
  6856. selector: unescape('setCollection%3A'),
  6857. category: 'accessing',
  6858. fn: function (aCollection){
  6859. var self=this;
  6860. self['@collection']=aCollection;
  6861. return self;},
  6862. args: ["aCollection"],
  6863. source: unescape('setCollection%3A%20aCollection%0A%09collection%20%3A%3D%20aCollection'),
  6864. messageSends: [],
  6865. referencedClasses: []
  6866. }),
  6867. smalltalk.Stream);
  6868. smalltalk.addMethod(
  6869. unescape('_position'),
  6870. smalltalk.method({
  6871. selector: unescape('position'),
  6872. category: 'accessing',
  6873. fn: function (){
  6874. var self=this;
  6875. return (($receiver = self['@position']) == nil || $receiver == undefined) ? (function(){return self['@position']=(0);})() : $receiver;
  6876. return self;},
  6877. args: [],
  6878. source: unescape('position%0A%09%5Eposition%20ifNil%3A%20%5Bposition%20%3A%3D%200%5D'),
  6879. messageSends: ["ifNil:"],
  6880. referencedClasses: []
  6881. }),
  6882. smalltalk.Stream);
  6883. smalltalk.addMethod(
  6884. unescape('_position_'),
  6885. smalltalk.method({
  6886. selector: unescape('position%3A'),
  6887. category: 'accessing',
  6888. fn: function (anInteger){
  6889. var self=this;
  6890. self['@position']=anInteger;
  6891. return self;},
  6892. args: ["anInteger"],
  6893. source: unescape('position%3A%20anInteger%0A%09position%20%3A%3D%20anInteger'),
  6894. messageSends: [],
  6895. referencedClasses: []
  6896. }),
  6897. smalltalk.Stream);
  6898. smalltalk.addMethod(
  6899. unescape('_streamSize'),
  6900. smalltalk.method({
  6901. selector: unescape('streamSize'),
  6902. category: 'accessing',
  6903. fn: function (){
  6904. var self=this;
  6905. return self['@streamSize'];
  6906. return self;},
  6907. args: [],
  6908. source: unescape('streamSize%0A%09%5EstreamSize'),
  6909. messageSends: [],
  6910. referencedClasses: []
  6911. }),
  6912. smalltalk.Stream);
  6913. smalltalk.addMethod(
  6914. unescape('_setStreamSize_'),
  6915. smalltalk.method({
  6916. selector: unescape('setStreamSize%3A'),
  6917. category: 'accessing',
  6918. fn: function (anInteger){
  6919. var self=this;
  6920. self['@streamSize']=anInteger;
  6921. return self;},
  6922. args: ["anInteger"],
  6923. source: unescape('setStreamSize%3A%20anInteger%0A%09streamSize%20%3A%3D%20anInteger'),
  6924. messageSends: [],
  6925. referencedClasses: []
  6926. }),
  6927. smalltalk.Stream);
  6928. smalltalk.addMethod(
  6929. unescape('_contents'),
  6930. smalltalk.method({
  6931. selector: unescape('contents'),
  6932. category: 'accessing',
  6933. fn: function (){
  6934. var self=this;
  6935. return smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_streamSize", [])]);
  6936. return self;},
  6937. args: [],
  6938. 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'),
  6939. messageSends: ["copyFrom:to:", "collection", "streamSize"],
  6940. referencedClasses: []
  6941. }),
  6942. smalltalk.Stream);
  6943. smalltalk.addMethod(
  6944. unescape('_size'),
  6945. smalltalk.method({
  6946. selector: unescape('size'),
  6947. category: 'accessing',
  6948. fn: function (){
  6949. var self=this;
  6950. return smalltalk.send(self, "_streamSize", []);
  6951. return self;},
  6952. args: [],
  6953. source: unescape('size%0A%09%5Eself%20streamSize'),
  6954. messageSends: ["streamSize"],
  6955. referencedClasses: []
  6956. }),
  6957. smalltalk.Stream);
  6958. smalltalk.addMethod(
  6959. unescape('_reset'),
  6960. smalltalk.method({
  6961. selector: unescape('reset'),
  6962. category: 'actions',
  6963. fn: function (){
  6964. var self=this;
  6965. smalltalk.send(self, "_position_", [(0)]);
  6966. return self;},
  6967. args: [],
  6968. source: unescape('reset%0A%09self%20position%3A%200'),
  6969. messageSends: ["position:"],
  6970. referencedClasses: []
  6971. }),
  6972. smalltalk.Stream);
  6973. smalltalk.addMethod(
  6974. unescape('_close'),
  6975. smalltalk.method({
  6976. selector: unescape('close'),
  6977. category: 'actions',
  6978. fn: function (){
  6979. var self=this;
  6980. return self;},
  6981. args: [],
  6982. source: unescape('close'),
  6983. messageSends: [],
  6984. referencedClasses: []
  6985. }),
  6986. smalltalk.Stream);
  6987. smalltalk.addMethod(
  6988. unescape('_flush'),
  6989. smalltalk.method({
  6990. selector: unescape('flush'),
  6991. category: 'actions',
  6992. fn: function (){
  6993. var self=this;
  6994. return self;},
  6995. args: [],
  6996. source: unescape('flush'),
  6997. messageSends: [],
  6998. referencedClasses: []
  6999. }),
  7000. smalltalk.Stream);
  7001. smalltalk.addMethod(
  7002. unescape('_resetContents'),
  7003. smalltalk.method({
  7004. selector: unescape('resetContents'),
  7005. category: 'actions',
  7006. fn: function (){
  7007. var self=this;
  7008. smalltalk.send(self, "_reset", []);
  7009. smalltalk.send(self, "_setStreamSize_", [(0)]);
  7010. return self;},
  7011. args: [],
  7012. source: unescape('resetContents%0A%09self%20reset.%0A%09self%20setStreamSize%3A%200'),
  7013. messageSends: ["reset", "setStreamSize:"],
  7014. referencedClasses: []
  7015. }),
  7016. smalltalk.Stream);
  7017. smalltalk.addMethod(
  7018. unescape('_do_'),
  7019. smalltalk.method({
  7020. selector: unescape('do%3A'),
  7021. category: 'enumerating',
  7022. fn: function (aBlock){
  7023. var self=this;
  7024. (function(){while(!(function(){return smalltalk.send(self, "_atEnd", []);})()) {(function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_next", [])]);})()}})();
  7025. return self;},
  7026. args: ["aBlock"],
  7027. source: unescape('do%3A%20aBlock%0A%09%5Bself%20atEnd%5D%20whileFalse%3A%20%5BaBlock%20value%3A%20self%20next%5D'),
  7028. messageSends: ["whileFalse:", "atEnd", "value:", "next"],
  7029. referencedClasses: []
  7030. }),
  7031. smalltalk.Stream);
  7032. smalltalk.addMethod(
  7033. unescape('_setToEnd'),
  7034. smalltalk.method({
  7035. selector: unescape('setToEnd'),
  7036. category: 'positioning',
  7037. fn: function (){
  7038. var self=this;
  7039. smalltalk.send(self, "_position_", [smalltalk.send(self, "_size", [])]);
  7040. return self;},
  7041. args: [],
  7042. source: unescape('setToEnd%0A%09self%20position%3A%20self%20size'),
  7043. messageSends: ["position:", "size"],
  7044. referencedClasses: []
  7045. }),
  7046. smalltalk.Stream);
  7047. smalltalk.addMethod(
  7048. unescape('_skip_'),
  7049. smalltalk.method({
  7050. selector: unescape('skip%3A'),
  7051. category: 'positioning',
  7052. fn: function (anInteger){
  7053. var self=this;
  7054. 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)])]);
  7055. return self;},
  7056. args: ["anInteger"],
  7057. source: unescape('skip%3A%20anInteger%0A%09self%20position%3A%20%28%28self%20position%20+%20anInteger%29%20min%3A%20self%20size%20max%3A%200%29'),
  7058. messageSends: ["position:", "min:max:", unescape("+"), "position", "size"],
  7059. referencedClasses: []
  7060. }),
  7061. smalltalk.Stream);
  7062. smalltalk.addMethod(
  7063. unescape('_next'),
  7064. smalltalk.method({
  7065. selector: unescape('next'),
  7066. category: 'reading',
  7067. fn: function (){
  7068. var self=this;
  7069. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
  7070. return smalltalk.send(self['@collection'], "_at_", [smalltalk.send(self, "_position", [])]);
  7071. return self;},
  7072. args: [],
  7073. source: unescape('next%0A%09self%20position%3A%20self%20position%20+%201.%20%0A%09%5Ecollection%20at%3A%20self%20position'),
  7074. messageSends: ["position:", unescape("+"), "position", "at:"],
  7075. referencedClasses: []
  7076. }),
  7077. smalltalk.Stream);
  7078. smalltalk.addMethod(
  7079. unescape('_next_'),
  7080. smalltalk.method({
  7081. selector: unescape('next%3A'),
  7082. category: 'reading',
  7083. fn: function (anInteger){
  7084. var self=this;
  7085. var tempCollection=nil;
  7086. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  7087. 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", [])]);})]));})]);
  7088. return tempCollection;
  7089. return self;},
  7090. args: ["anInteger"],
  7091. 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'),
  7092. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", "add:", "next"],
  7093. referencedClasses: []
  7094. }),
  7095. smalltalk.Stream);
  7096. smalltalk.addMethod(
  7097. unescape('_nextPut_'),
  7098. smalltalk.method({
  7099. selector: unescape('nextPut%3A'),
  7100. category: 'writing',
  7101. fn: function (anObject){
  7102. var self=this;
  7103. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
  7104. smalltalk.send(smalltalk.send(self, "_collection", []), "_at_put_", [smalltalk.send(self, "_position", []), anObject]);
  7105. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  7106. return self;},
  7107. args: ["anObject"],
  7108. 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'),
  7109. messageSends: ["position:", unescape("+"), "position", "at:put:", "collection", "setStreamSize:", "max:", "streamSize"],
  7110. referencedClasses: []
  7111. }),
  7112. smalltalk.Stream);
  7113. smalltalk.addMethod(
  7114. unescape('_nextPutAll_'),
  7115. smalltalk.method({
  7116. selector: unescape('nextPutAll%3A'),
  7117. category: 'writing',
  7118. fn: function (aCollection){
  7119. var self=this;
  7120. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_nextPut_", [each]);})]);
  7121. return self;},
  7122. args: ["aCollection"],
  7123. source: unescape('nextPutAll%3A%20aCollection%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20self%20nextPut%3A%20each%5D'),
  7124. messageSends: ["do:", "nextPut:"],
  7125. referencedClasses: []
  7126. }),
  7127. smalltalk.Stream);
  7128. smalltalk.addMethod(
  7129. unescape('_peek'),
  7130. smalltalk.method({
  7131. selector: unescape('peek'),
  7132. category: 'reading',
  7133. fn: function (){
  7134. var self=this;
  7135. 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)]))]);})]));
  7136. return self;},
  7137. args: [],
  7138. 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'),
  7139. messageSends: ["ifFalse:", "atEnd", "at:", "collection", unescape("+"), "position"],
  7140. referencedClasses: []
  7141. }),
  7142. smalltalk.Stream);
  7143. smalltalk.addMethod(
  7144. unescape('_atEnd'),
  7145. smalltalk.method({
  7146. selector: unescape('atEnd'),
  7147. category: 'testing',
  7148. fn: function (){
  7149. var self=this;
  7150. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [smalltalk.send(self, "_size", [])]);
  7151. return self;},
  7152. args: [],
  7153. source: unescape('atEnd%0A%09%5Eself%20position%20%3D%20self%20size'),
  7154. messageSends: [unescape("%3D"), "position", "size"],
  7155. referencedClasses: []
  7156. }),
  7157. smalltalk.Stream);
  7158. smalltalk.addMethod(
  7159. unescape('_atStart'),
  7160. smalltalk.method({
  7161. selector: unescape('atStart'),
  7162. category: 'testing',
  7163. fn: function (){
  7164. var self=this;
  7165. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [(0)]);
  7166. return self;},
  7167. args: [],
  7168. source: unescape('atStart%0A%09%5Eself%20position%20%3D%200'),
  7169. messageSends: [unescape("%3D"), "position"],
  7170. referencedClasses: []
  7171. }),
  7172. smalltalk.Stream);
  7173. smalltalk.addMethod(
  7174. unescape('_isEmpty'),
  7175. smalltalk.method({
  7176. selector: unescape('isEmpty'),
  7177. category: 'testing',
  7178. fn: function (){
  7179. var self=this;
  7180. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  7181. return self;},
  7182. args: [],
  7183. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  7184. messageSends: [unescape("%3D"), "size"],
  7185. referencedClasses: []
  7186. }),
  7187. smalltalk.Stream);
  7188. smalltalk.addMethod(
  7189. unescape('_on_'),
  7190. smalltalk.method({
  7191. selector: unescape('on%3A'),
  7192. category: 'instance creation',
  7193. fn: function (aCollection){
  7194. var self=this;
  7195. 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", []));
  7196. return self;},
  7197. args: ["aCollection"],
  7198. 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'),
  7199. messageSends: ["setCollection:", "setStreamSize:", "size", "yourself", "new"],
  7200. referencedClasses: []
  7201. }),
  7202. smalltalk.Stream.klass);
  7203. smalltalk.addClass('StringStream', smalltalk.Stream, [], 'Kernel');
  7204. smalltalk.addMethod(
  7205. unescape('_next_'),
  7206. smalltalk.method({
  7207. selector: unescape('next%3A'),
  7208. category: 'reading',
  7209. fn: function (anInteger){
  7210. var self=this;
  7211. var tempCollection=nil;
  7212. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  7213. 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", [])]);})]));})]);
  7214. return tempCollection;
  7215. return self;},
  7216. args: ["anInteger"],
  7217. 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'),
  7218. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", unescape("%2C"), "next"],
  7219. referencedClasses: []
  7220. }),
  7221. smalltalk.StringStream);
  7222. smalltalk.addMethod(
  7223. unescape('_nextPut_'),
  7224. smalltalk.method({
  7225. selector: unescape('nextPut%3A'),
  7226. category: 'writing',
  7227. fn: function (aString){
  7228. var self=this;
  7229. smalltalk.send(self, "_nextPutAll_", [aString]);
  7230. return self;},
  7231. args: ["aString"],
  7232. source: unescape('nextPut%3A%20aString%0A%09self%20nextPutAll%3A%20aString'),
  7233. messageSends: ["nextPutAll:"],
  7234. referencedClasses: []
  7235. }),
  7236. smalltalk.StringStream);
  7237. smalltalk.addMethod(
  7238. unescape('_nextPutAll_'),
  7239. smalltalk.method({
  7240. selector: unescape('nextPutAll%3A'),
  7241. category: 'writing',
  7242. fn: function (aString){
  7243. var self=this;
  7244. 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", [])])])]);
  7245. 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", [])]))]);
  7246. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  7247. return self;},
  7248. args: ["aString"],
  7249. 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'),
  7250. messageSends: ["setCollection:", unescape("%2C"), "copyFrom:to:", "collection", "position", unescape("+"), "size", "position:", "setStreamSize:", "max:", "streamSize"],
  7251. referencedClasses: []
  7252. }),
  7253. smalltalk.StringStream);
  7254. smalltalk.addMethod(
  7255. unescape('_cr'),
  7256. smalltalk.method({
  7257. selector: unescape('cr'),
  7258. category: 'writing',
  7259. fn: function (){
  7260. var self=this;
  7261. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  7262. return self;},
  7263. args: [],
  7264. source: unescape('cr%0A%09%5Eself%20nextPutAll%3A%20String%20cr'),
  7265. messageSends: ["nextPutAll:", "cr"],
  7266. referencedClasses: [smalltalk.String]
  7267. }),
  7268. smalltalk.StringStream);
  7269. smalltalk.addMethod(
  7270. unescape('_crlf'),
  7271. smalltalk.method({
  7272. selector: unescape('crlf'),
  7273. category: 'writing',
  7274. fn: function (){
  7275. var self=this;
  7276. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_crlf", [])]);
  7277. return self;},
  7278. args: [],
  7279. source: unescape('crlf%0A%09%5Eself%20nextPutAll%3A%20String%20crlf'),
  7280. messageSends: ["nextPutAll:", "crlf"],
  7281. referencedClasses: [smalltalk.String]
  7282. }),
  7283. smalltalk.StringStream);
  7284. smalltalk.addMethod(
  7285. unescape('_lf'),
  7286. smalltalk.method({
  7287. selector: unescape('lf'),
  7288. category: 'writing',
  7289. fn: function (){
  7290. var self=this;
  7291. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_lf", [])]);
  7292. return self;},
  7293. args: [],
  7294. source: unescape('lf%0A%09%5Eself%20nextPutAll%3A%20String%20lf'),
  7295. messageSends: ["nextPutAll:", "lf"],
  7296. referencedClasses: [smalltalk.String]
  7297. }),
  7298. smalltalk.StringStream);
  7299. smalltalk.addMethod(
  7300. unescape('_space'),
  7301. smalltalk.method({
  7302. selector: unescape('space'),
  7303. category: 'writing',
  7304. fn: function (){
  7305. var self=this;
  7306. smalltalk.send(self, "_nextPut_", [" "]);
  7307. return self;},
  7308. args: [],
  7309. source: unescape('space%0A%09self%20nextPut%3A%20%27%20%27'),
  7310. messageSends: ["nextPut:"],
  7311. referencedClasses: []
  7312. }),
  7313. smalltalk.StringStream);
  7314. smalltalk.addClass('ClassCommentReader', smalltalk.Object, ['class', 'chunkParser'], 'Kernel');
  7315. smalltalk.addMethod(
  7316. unescape('_class_'),
  7317. smalltalk.method({
  7318. selector: unescape('class%3A'),
  7319. category: 'accessing',
  7320. fn: function (aClass){
  7321. var self=this;
  7322. self['@class']=aClass;
  7323. return self;},
  7324. args: ["aClass"],
  7325. source: unescape('class%3A%20aClass%0A%09class%20%3A%3D%20aClass'),
  7326. messageSends: [],
  7327. referencedClasses: []
  7328. }),
  7329. smalltalk.ClassCommentReader);
  7330. smalltalk.addMethod(
  7331. unescape('_scanFrom_'),
  7332. smalltalk.method({
  7333. selector: unescape('scanFrom%3A'),
  7334. category: 'fileIn',
  7335. fn: function (aChunkParser){
  7336. var self=this;
  7337. var chunk=nil;
  7338. chunk=smalltalk.send(aChunkParser, "_nextChunk", []);
  7339. ((($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]);})]));
  7340. return self;},
  7341. args: ["aChunkParser"],
  7342. 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.'),
  7343. messageSends: ["nextChunk", "ifFalse:", "isEmpty", "setComment:"],
  7344. referencedClasses: []
  7345. }),
  7346. smalltalk.ClassCommentReader);
  7347. smalltalk.addMethod(
  7348. unescape('_initialize'),
  7349. smalltalk.method({
  7350. selector: unescape('initialize'),
  7351. category: 'initialization',
  7352. fn: function (){
  7353. var self=this;
  7354. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  7355. self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []);
  7356. return self;},
  7357. args: [],
  7358. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  7359. messageSends: ["initialize", "new"],
  7360. referencedClasses: [smalltalk.nil]
  7361. }),
  7362. smalltalk.ClassCommentReader);
  7363. smalltalk.addMethod(
  7364. unescape('_setComment_'),
  7365. smalltalk.method({
  7366. selector: unescape('setComment%3A'),
  7367. category: 'private',
  7368. fn: function (aString){
  7369. var self=this;
  7370. smalltalk.send(self['@class'], "_comment_", [aString]);
  7371. return self;},
  7372. args: ["aString"],
  7373. source: unescape('setComment%3A%20aString%0A%20%20%20%20class%20comment%3A%20aString'),
  7374. messageSends: ["comment:"],
  7375. referencedClasses: []
  7376. }),
  7377. smalltalk.ClassCommentReader);
  7378. smalltalk.addClass('Random', smalltalk.Object, [], 'Kernel');
  7379. smalltalk.addMethod(
  7380. unescape('_next'),
  7381. smalltalk.method({
  7382. selector: unescape('next'),
  7383. category: 'accessing',
  7384. fn: function (){
  7385. var self=this;
  7386. return Math.random();
  7387. return self;},
  7388. args: [],
  7389. source: unescape('next%0A%09%3Creturn%20Math.random%28%29%3E'),
  7390. messageSends: [],
  7391. referencedClasses: []
  7392. }),
  7393. smalltalk.Random);
  7394. smalltalk.addMethod(
  7395. unescape('_next_'),
  7396. smalltalk.method({
  7397. selector: unescape('next%3A'),
  7398. category: 'accessing',
  7399. fn: function (anInteger){
  7400. var self=this;
  7401. return smalltalk.send(smalltalk.send((1), "_to_", [anInteger]), "_collect_", [(function(each){return smalltalk.send(self, "_next", []);})]);
  7402. return self;},
  7403. args: ["anInteger"],
  7404. 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'),
  7405. messageSends: ["collect:", "to:", "next"],
  7406. referencedClasses: []
  7407. }),
  7408. smalltalk.Random);
  7409. smalltalk.addClass('Point', smalltalk.Object, ['x', 'y'], 'Kernel');
  7410. smalltalk.addMethod(
  7411. unescape('_x'),
  7412. smalltalk.method({
  7413. selector: unescape('x'),
  7414. category: 'accessing',
  7415. fn: function (){
  7416. var self=this;
  7417. return self['@x'];
  7418. return self;},
  7419. args: [],
  7420. source: unescape('x%0A%09%5Ex'),
  7421. messageSends: [],
  7422. referencedClasses: []
  7423. }),
  7424. smalltalk.Point);
  7425. smalltalk.addMethod(
  7426. unescape('_y'),
  7427. smalltalk.method({
  7428. selector: unescape('y'),
  7429. category: 'accessing',
  7430. fn: function (){
  7431. var self=this;
  7432. return self['@y'];
  7433. return self;},
  7434. args: [],
  7435. source: unescape('y%0A%09%5Ey'),
  7436. messageSends: [],
  7437. referencedClasses: []
  7438. }),
  7439. smalltalk.Point);
  7440. smalltalk.addMethod(
  7441. unescape('_y_'),
  7442. smalltalk.method({
  7443. selector: unescape('y%3A'),
  7444. category: 'accessing',
  7445. fn: function (aNumber){
  7446. var self=this;
  7447. self['@y']=aNumber;
  7448. return self;},
  7449. args: ["aNumber"],
  7450. source: unescape('y%3A%20aNumber%0A%09y%20%3A%3D%20aNumber'),
  7451. messageSends: [],
  7452. referencedClasses: []
  7453. }),
  7454. smalltalk.Point);
  7455. smalltalk.addMethod(
  7456. unescape('_x_'),
  7457. smalltalk.method({
  7458. selector: unescape('x%3A'),
  7459. category: 'accessing',
  7460. fn: function (aNumber){
  7461. var self=this;
  7462. self['@x']=aNumber;
  7463. return self;},
  7464. args: ["aNumber"],
  7465. source: unescape('x%3A%20aNumber%0A%09x%20%3A%3D%20aNumber'),
  7466. messageSends: [],
  7467. referencedClasses: []
  7468. }),
  7469. smalltalk.Point);
  7470. smalltalk.addMethod(
  7471. unescape('__star'),
  7472. smalltalk.method({
  7473. selector: unescape('*'),
  7474. category: 'arithmetic',
  7475. fn: function (aPoint){
  7476. var self=this;
  7477. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver *smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__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", [])]))]);
  7478. return self;},
  7479. args: ["aPoint"],
  7480. source: unescape('*%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20*%20aPoint%20asPoint%20x%20y%3A%20self%20y%20*%20aPoint%20asPoint%20y'),
  7481. messageSends: ["x:y:", unescape("*"), "x", "asPoint", "y"],
  7482. referencedClasses: [smalltalk.Point]
  7483. }),
  7484. smalltalk.Point);
  7485. smalltalk.addMethod(
  7486. unescape('__plus'),
  7487. smalltalk.method({
  7488. selector: unescape('+'),
  7489. category: 'arithmetic',
  7490. fn: function (aPoint){
  7491. var self=this;
  7492. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__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", [])]))]);
  7493. return self;},
  7494. args: ["aPoint"],
  7495. source: unescape('+%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20+%20aPoint%20asPoint%20x%20y%3A%20self%20y%20+%20aPoint%20asPoint%20y'),
  7496. messageSends: ["x:y:", unescape("+"), "x", "asPoint", "y"],
  7497. referencedClasses: [smalltalk.Point]
  7498. }),
  7499. smalltalk.Point);
  7500. smalltalk.addMethod(
  7501. unescape('__minus'),
  7502. smalltalk.method({
  7503. selector: unescape('-'),
  7504. category: 'arithmetic',
  7505. fn: function (aPoint){
  7506. var self=this;
  7507. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver -smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__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", [])]))]);
  7508. return self;},
  7509. args: ["aPoint"],
  7510. source: unescape('-%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20-%20aPoint%20asPoint%20x%20y%3A%20self%20y%20-%20aPoint%20asPoint%20y'),
  7511. messageSends: ["x:y:", unescape("-"), "x", "asPoint", "y"],
  7512. referencedClasses: [smalltalk.Point]
  7513. }),
  7514. smalltalk.Point);
  7515. smalltalk.addMethod(
  7516. unescape('__slash'),
  7517. smalltalk.method({
  7518. selector: unescape('/'),
  7519. category: 'arithmetic',
  7520. fn: function (aPoint){
  7521. var self=this;
  7522. 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", [])]))]);
  7523. return self;},
  7524. args: ["aPoint"],
  7525. source: unescape('/%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20/%20aPoint%20asPoint%20x%20y%3A%20self%20y%20/%20aPoint%20asPoint%20y'),
  7526. messageSends: ["x:y:", unescape("/"), "x", "asPoint", "y"],
  7527. referencedClasses: [smalltalk.Point]
  7528. }),
  7529. smalltalk.Point);
  7530. smalltalk.addMethod(
  7531. unescape('_asPoint'),
  7532. smalltalk.method({
  7533. selector: unescape('asPoint'),
  7534. category: 'converting',
  7535. fn: function (){
  7536. var self=this;
  7537. return self;
  7538. return self;},
  7539. args: [],
  7540. source: unescape('asPoint%0A%09%5Eself'),
  7541. messageSends: [],
  7542. referencedClasses: []
  7543. }),
  7544. smalltalk.Point);
  7545. smalltalk.addMethod(
  7546. unescape('__eq'),
  7547. smalltalk.method({
  7548. selector: unescape('%3D'),
  7549. category: 'arithmetic',
  7550. fn: function (aPoint){
  7551. var self=this;
  7552. 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", [])])]);})]);
  7553. return self;},
  7554. args: ["aPoint"],
  7555. 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'),
  7556. messageSends: ["and:", unescape("%3D"), "class", unescape("%26"), "x", "y"],
  7557. referencedClasses: []
  7558. }),
  7559. smalltalk.Point);
  7560. smalltalk.addMethod(
  7561. unescape('_x_y_'),
  7562. smalltalk.method({
  7563. selector: unescape('x%3Ay%3A'),
  7564. category: 'instance creation',
  7565. fn: function (aNumber, anotherNumber){
  7566. var self=this;
  7567. return (function($rec){smalltalk.send($rec, "_x_", [aNumber]);smalltalk.send($rec, "_y_", [anotherNumber]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  7568. return self;},
  7569. args: ["aNumber", "anotherNumber"],
  7570. 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'),
  7571. messageSends: ["x:", "y:", "yourself", "new"],
  7572. referencedClasses: []
  7573. }),
  7574. smalltalk.Point.klass);
  7575. smalltalk.addClass('Message', smalltalk.Object, ['selector', 'arguments'], 'Kernel');
  7576. smalltalk.addMethod(
  7577. unescape('_selector'),
  7578. smalltalk.method({
  7579. selector: unescape('selector'),
  7580. category: 'accessing',
  7581. fn: function (){
  7582. var self=this;
  7583. return self['@selector'];
  7584. return self;},
  7585. args: [],
  7586. source: unescape('selector%0A%09%5Eselector'),
  7587. messageSends: [],
  7588. referencedClasses: []
  7589. }),
  7590. smalltalk.Message);
  7591. smalltalk.addMethod(
  7592. unescape('_selector_'),
  7593. smalltalk.method({
  7594. selector: unescape('selector%3A'),
  7595. category: 'accessing',
  7596. fn: function (aString){
  7597. var self=this;
  7598. self['@selector']=aString;
  7599. return self;},
  7600. args: ["aString"],
  7601. source: unescape('selector%3A%20aString%0A%09selector%20%3A%3D%20aString'),
  7602. messageSends: [],
  7603. referencedClasses: []
  7604. }),
  7605. smalltalk.Message);
  7606. smalltalk.addMethod(
  7607. unescape('_arguments_'),
  7608. smalltalk.method({
  7609. selector: unescape('arguments%3A'),
  7610. category: 'accessing',
  7611. fn: function (anArray){
  7612. var self=this;
  7613. self['@arguments']=anArray;
  7614. return self;},
  7615. args: ["anArray"],
  7616. source: unescape('arguments%3A%20anArray%0A%09arguments%20%3A%3D%20anArray'),
  7617. messageSends: [],
  7618. referencedClasses: []
  7619. }),
  7620. smalltalk.Message);
  7621. smalltalk.addMethod(
  7622. unescape('_arguments'),
  7623. smalltalk.method({
  7624. selector: unescape('arguments'),
  7625. category: 'accessing',
  7626. fn: function (){
  7627. var self=this;
  7628. return self['@arguments'];
  7629. return self;},
  7630. args: [],
  7631. source: unescape('arguments%0A%09%5Earguments'),
  7632. messageSends: [],
  7633. referencedClasses: []
  7634. }),
  7635. smalltalk.Message);
  7636. smalltalk.addMethod(
  7637. unescape('_printString'),
  7638. smalltalk.method({
  7639. selector: unescape('printString'),
  7640. category: 'printing',
  7641. fn: function (){
  7642. var self=this;
  7643. 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);})]);
  7644. return self;},
  7645. args: [],
  7646. 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'),
  7647. messageSends: ["streamContents:", "nextPutAll:", "printString"],
  7648. referencedClasses: [smalltalk.String]
  7649. }),
  7650. smalltalk.Message);
  7651. smalltalk.addMethod(
  7652. unescape('_selector_arguments_'),
  7653. smalltalk.method({
  7654. selector: unescape('selector%3Aarguments%3A'),
  7655. category: 'instance creation',
  7656. fn: function (aString, anArray){
  7657. var self=this;
  7658. return (function($rec){smalltalk.send($rec, "_selector_", [aString]);smalltalk.send($rec, "_arguments_", [anArray]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  7659. return self;},
  7660. args: ["aString", "anArray"],
  7661. 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'),
  7662. messageSends: ["selector:", "arguments:", "yourself", "new"],
  7663. referencedClasses: []
  7664. }),
  7665. smalltalk.Message.klass);
  7666. smalltalk.addClass('MessageNotUnderstood', smalltalk.Error, ['message', 'receiver'], 'Kernel');
  7667. smalltalk.addMethod(
  7668. unescape('_message'),
  7669. smalltalk.method({
  7670. selector: unescape('message'),
  7671. category: 'accessing',
  7672. fn: function (){
  7673. var self=this;
  7674. return self['@message'];
  7675. return self;},
  7676. args: [],
  7677. source: unescape('message%0A%09%5Emessage'),
  7678. messageSends: [],
  7679. referencedClasses: []
  7680. }),
  7681. smalltalk.MessageNotUnderstood);
  7682. smalltalk.addMethod(
  7683. unescape('_message_'),
  7684. smalltalk.method({
  7685. selector: unescape('message%3A'),
  7686. category: 'accessing',
  7687. fn: function (aMessage){
  7688. var self=this;
  7689. self['@message']=aMessage;
  7690. return self;},
  7691. args: ["aMessage"],
  7692. source: unescape('message%3A%20aMessage%0A%09message%20%3A%3D%20aMessage'),
  7693. messageSends: [],
  7694. referencedClasses: []
  7695. }),
  7696. smalltalk.MessageNotUnderstood);
  7697. smalltalk.addMethod(
  7698. unescape('_receiver'),
  7699. smalltalk.method({
  7700. selector: unescape('receiver'),
  7701. category: 'accessing',
  7702. fn: function (){
  7703. var self=this;
  7704. return self['@receiver'];
  7705. return self;},
  7706. args: [],
  7707. source: unescape('receiver%0A%09%5Ereceiver'),
  7708. messageSends: [],
  7709. referencedClasses: []
  7710. }),
  7711. smalltalk.MessageNotUnderstood);
  7712. smalltalk.addMethod(
  7713. unescape('_receiver_'),
  7714. smalltalk.method({
  7715. selector: unescape('receiver%3A'),
  7716. category: 'accessing',
  7717. fn: function (anObject){
  7718. var self=this;
  7719. self['@receiver']=anObject;
  7720. return self;},
  7721. args: ["anObject"],
  7722. source: unescape('receiver%3A%20anObject%0A%09receiver%20%3A%3D%20anObject'),
  7723. messageSends: [],
  7724. referencedClasses: []
  7725. }),
  7726. smalltalk.MessageNotUnderstood);
  7727. smalltalk.addMethod(
  7728. unescape('_messageText'),
  7729. smalltalk.method({
  7730. selector: unescape('messageText'),
  7731. category: 'accessing',
  7732. fn: function (){
  7733. var self=this;
  7734. 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", [])]);
  7735. return self;},
  7736. args: [],
  7737. source: unescape('messageText%0A%09%5Eself%20receiver%20asString%2C%20%27%20does%20not%20understand%20%23%27%2C%20self%20message%20selector'),
  7738. messageSends: [unescape("%2C"), "asString", "receiver", "selector", "message"],
  7739. referencedClasses: []
  7740. }),
  7741. smalltalk.MessageNotUnderstood);
  7742. smalltalk.addClass('ErrorHandler', smalltalk.Object, [], 'Kernel');
  7743. smalltalk.addMethod(
  7744. unescape('_handleError_'),
  7745. smalltalk.method({
  7746. selector: unescape('handleError%3A'),
  7747. category: 'error handling',
  7748. fn: function (anError){
  7749. var self=this;
  7750. (($receiver = smalltalk.send(anError, "_context", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logErrorContext_", [smalltalk.send(anError, "_context", [])]);})() : nil;
  7751. smalltalk.send(self, "_logError_", [anError]);
  7752. return self;},
  7753. args: ["anError"],
  7754. source: unescape('handleError%3A%20anError%0A%09anError%20context%20ifNotNil%3A%20%5Bself%20logErrorContext%3A%20anError%20context%5D.%0A%09self%20logError%3A%20anError'),
  7755. messageSends: ["ifNotNil:", "context", "logErrorContext:", "logError:"],
  7756. referencedClasses: []
  7757. }),
  7758. smalltalk.ErrorHandler);
  7759. smalltalk.addMethod(
  7760. unescape('_logContext_'),
  7761. smalltalk.method({
  7762. selector: unescape('logContext%3A'),
  7763. category: 'private',
  7764. fn: function (aContext){
  7765. var self=this;
  7766. (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logContext_", [smalltalk.send(aContext, "_home", [])]);})() : nil;
  7767. smalltalk.send(self, "_log_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aContext, "_receiver", []), "_asString", []), "__comma", [unescape("%3E%3E")]), "__comma", [smalltalk.send(aContext, "_selector", [])])]);
  7768. return self;},
  7769. args: ["aContext"],
  7770. 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'),
  7771. messageSends: ["ifNotNil:", "home", "logContext:", "log:", unescape("%2C"), "asString", "receiver", "selector"],
  7772. referencedClasses: []
  7773. }),
  7774. smalltalk.ErrorHandler);
  7775. smalltalk.addMethod(
  7776. unescape('_logErrorContext_'),
  7777. smalltalk.method({
  7778. selector: unescape('logErrorContext%3A'),
  7779. category: 'private',
  7780. fn: function (aContext){
  7781. var self=this;
  7782. (($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;
  7783. return self;},
  7784. args: ["aContext"],
  7785. 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'),
  7786. messageSends: ["ifNotNil:", "home", "logContext:"],
  7787. referencedClasses: []
  7788. }),
  7789. smalltalk.ErrorHandler);
  7790. smalltalk.addMethod(
  7791. unescape('_logError_'),
  7792. smalltalk.method({
  7793. selector: unescape('logError%3A'),
  7794. category: 'private',
  7795. fn: function (anError){
  7796. var self=this;
  7797. smalltalk.send(self, "_log_", [smalltalk.send(anError, "_messageText", [])]);
  7798. return self;},
  7799. args: ["anError"],
  7800. source: unescape('logError%3A%20anError%0A%09self%20log%3A%20anError%20messageText'),
  7801. messageSends: ["log:", "messageText"],
  7802. referencedClasses: []
  7803. }),
  7804. smalltalk.ErrorHandler);
  7805. smalltalk.addMethod(
  7806. unescape('_log_'),
  7807. smalltalk.method({
  7808. selector: unescape('log%3A'),
  7809. category: 'private',
  7810. fn: function (aString){
  7811. var self=this;
  7812. smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [aString]);
  7813. return self;},
  7814. args: ["aString"],
  7815. source: unescape('log%3A%20aString%0A%09console%20log%3A%20aString'),
  7816. messageSends: ["log:"],
  7817. referencedClasses: []
  7818. }),
  7819. smalltalk.ErrorHandler);
  7820. smalltalk.ErrorHandler.klass.iVarNames = ['current'];
  7821. smalltalk.addMethod(
  7822. unescape('_current'),
  7823. smalltalk.method({
  7824. selector: unescape('current'),
  7825. category: 'accessing',
  7826. fn: function (){
  7827. var self=this;
  7828. return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", []);})() : $receiver;
  7829. return self;},
  7830. args: [],
  7831. source: unescape('current%0A%09%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20self%20new%5D'),
  7832. messageSends: ["ifNil:", "new"],
  7833. referencedClasses: []
  7834. }),
  7835. smalltalk.ErrorHandler.klass);
  7836. smalltalk.addMethod(
  7837. unescape('_initialize'),
  7838. smalltalk.method({
  7839. selector: unescape('initialize'),
  7840. category: 'initialization',
  7841. fn: function (){
  7842. var self=this;
  7843. smalltalk.send(self, "_register", []);
  7844. return self;},
  7845. args: [],
  7846. source: unescape('initialize%0A%09self%20register'),
  7847. messageSends: ["register"],
  7848. referencedClasses: []
  7849. }),
  7850. smalltalk.ErrorHandler.klass);
  7851. smalltalk.addMethod(
  7852. unescape('_register'),
  7853. smalltalk.method({
  7854. selector: unescape('register'),
  7855. category: 'initialization',
  7856. fn: function (){
  7857. var self=this;
  7858. smalltalk.send((smalltalk.ErrorHandler || ErrorHandler), "_setCurrent_", [smalltalk.send(self, "_new", [])]);
  7859. return self;},
  7860. args: [],
  7861. source: unescape('register%0A%09ErrorHandler%20setCurrent%3A%20self%20new'),
  7862. messageSends: ["setCurrent:", "new"],
  7863. referencedClasses: [smalltalk.ErrorHandler]
  7864. }),
  7865. smalltalk.ErrorHandler.klass);
  7866. smalltalk.addMethod(
  7867. unescape('_setCurrent_'),
  7868. smalltalk.method({
  7869. selector: unescape('setCurrent%3A'),
  7870. category: 'accessing',
  7871. fn: function (anHandler){
  7872. var self=this;
  7873. self['@current']=anHandler;
  7874. return self;},
  7875. args: ["anHandler"],
  7876. source: unescape('setCurrent%3A%20anHandler%0A%09current%20%3A%3D%20anHandler'),
  7877. messageSends: [],
  7878. referencedClasses: []
  7879. }),
  7880. smalltalk.ErrorHandler.klass);
  7881. smalltalk.addClass('JSObjectProxy', smalltalk.Object, ['jsObject'], 'Kernel');
  7882. smalltalk.addMethod(
  7883. unescape('_jsObject_'),
  7884. smalltalk.method({
  7885. selector: unescape('jsObject%3A'),
  7886. category: 'accessing',
  7887. fn: function (aJSObject){
  7888. var self=this;
  7889. self['@jsObject']=aJSObject;
  7890. return self;},
  7891. args: ["aJSObject"],
  7892. source: unescape('jsObject%3A%20aJSObject%0A%09jsObject%20%3A%3D%20aJSObject'),
  7893. messageSends: [],
  7894. referencedClasses: []
  7895. }),
  7896. smalltalk.JSObjectProxy);
  7897. smalltalk.addMethod(
  7898. unescape('_jsObject'),
  7899. smalltalk.method({
  7900. selector: unescape('jsObject'),
  7901. category: 'accessing',
  7902. fn: function (){
  7903. var self=this;
  7904. return self['@jsObject'];
  7905. return self;},
  7906. args: [],
  7907. source: unescape('jsObject%0A%09%5EjsObject'),
  7908. messageSends: [],
  7909. referencedClasses: []
  7910. }),
  7911. smalltalk.JSObjectProxy);
  7912. smalltalk.addMethod(
  7913. unescape('_printString'),
  7914. smalltalk.method({
  7915. selector: unescape('printString'),
  7916. category: 'proxy',
  7917. fn: function (){
  7918. var self=this;
  7919. return smalltalk.send(smalltalk.send(self, "_jsObject", []), "_toString", []);
  7920. return self;},
  7921. args: [],
  7922. source: unescape('printString%0A%09%5Eself%20jsObject%20toString'),
  7923. messageSends: ["toString", "jsObject"],
  7924. referencedClasses: []
  7925. }),
  7926. smalltalk.JSObjectProxy);
  7927. smalltalk.addMethod(
  7928. unescape('_inspectOn_'),
  7929. smalltalk.method({
  7930. selector: unescape('inspectOn%3A'),
  7931. category: 'proxy',
  7932. fn: function (anInspector){
  7933. var self=this;
  7934. var variables=nil;
  7935. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  7936. smalltalk.send(variables, "_at_put_", [unescape("%23self"), smalltalk.send(self, "_jsObject", [])]);
  7937. smalltalk.send(anInspector, "_setLabel_", [smalltalk.send(self, "_printString", [])]);
  7938. for(var i in self['@jsObject']) {
  7939. variables._at_put_(i, self['@jsObject'][i]);
  7940. };
  7941. smalltalk.send(anInspector, "_setVariables_", [variables]);
  7942. return self;},
  7943. args: ["anInspector"],
  7944. 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'),
  7945. messageSends: ["new", "at:put:", "jsObject", "setLabel:", "printString", "setVariables:"],
  7946. referencedClasses: [smalltalk.Dictionary]
  7947. }),
  7948. smalltalk.JSObjectProxy);
  7949. smalltalk.addMethod(
  7950. unescape('_doesNotUnderstand_'),
  7951. smalltalk.method({
  7952. selector: unescape('doesNotUnderstand%3A'),
  7953. category: 'proxy',
  7954. fn: function (aMessage){
  7955. var self=this;
  7956. var obj=nil;
  7957. var selector=nil;
  7958. var jsSelector=nil;
  7959. var arguments=nil;
  7960. obj=smalltalk.send(self, "_jsObject", []);
  7961. selector=smalltalk.send(aMessage, "_selector", []);
  7962. jsSelector=smalltalk.send(selector, "_asJavaScriptSelector", []);
  7963. arguments=smalltalk.send(aMessage, "_arguments", []);
  7964. if(obj[jsSelector] != undefined) {return smalltalk.send(obj, jsSelector, arguments)};
  7965. smalltalk.send(self, "_doesNotUnderstand_", [aMessage], smalltalk.Object);
  7966. return self;},
  7967. args: ["aMessage"],
  7968. 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'),
  7969. messageSends: ["jsObject", "selector", "asJavaScriptSelector", "arguments", "doesNotUnderstand:"],
  7970. referencedClasses: []
  7971. }),
  7972. smalltalk.JSObjectProxy);
  7973. smalltalk.addMethod(
  7974. unescape('_at_'),
  7975. smalltalk.method({
  7976. selector: unescape('at%3A'),
  7977. category: 'accessing',
  7978. fn: function (aString){
  7979. var self=this;
  7980. return self['@jsObject'][aString];
  7981. return self;},
  7982. args: ["aString"],
  7983. source: unescape('at%3A%20aString%0A%09%3Creturn%20self%5B%27@jsObject%27%5D%5BaString%5D%3E'),
  7984. messageSends: [],
  7985. referencedClasses: []
  7986. }),
  7987. smalltalk.JSObjectProxy);
  7988. smalltalk.addMethod(
  7989. unescape('_at_put_'),
  7990. smalltalk.method({
  7991. selector: unescape('at%3Aput%3A'),
  7992. category: 'accessing',
  7993. fn: function (aString, anObject){
  7994. var self=this;
  7995. self['@jsObject'][aString] = anObject;
  7996. return self;},
  7997. args: ["aString", "anObject"],
  7998. source: unescape('at%3A%20aString%20put%3A%20anObject%0A%09%3Cself%5B%27@jsObject%27%5D%5BaString%5D%20%3D%20anObject%3E'),
  7999. messageSends: [],
  8000. referencedClasses: []
  8001. }),
  8002. smalltalk.JSObjectProxy);
  8003. smalltalk.addMethod(
  8004. unescape('_on_'),
  8005. smalltalk.method({
  8006. selector: unescape('on%3A'),
  8007. category: 'instance creation',
  8008. fn: function (aJSObject){
  8009. var self=this;
  8010. return (function($rec){smalltalk.send($rec, "_jsObject_", [aJSObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  8011. return self;},
  8012. args: ["aJSObject"],
  8013. source: unescape('on%3A%20aJSObject%0A%09%5Eself%20new%0A%09%09jsObject%3A%20aJSObject%3B%0A%09%09yourself'),
  8014. messageSends: ["jsObject:", "yourself", "new"],
  8015. referencedClasses: []
  8016. }),
  8017. smalltalk.JSObjectProxy.klass);
  8018. smalltalk.addClass('Set', smalltalk.Collection, ['elements'], 'Kernel');
  8019. smalltalk.addMethod(
  8020. unescape('_add_'),
  8021. smalltalk.method({
  8022. selector: unescape('add%3A'),
  8023. category: 'adding/removing',
  8024. fn: function (anObject){
  8025. var self=this;
  8026. var found;
  8027. for(var i in self['@elements']) {
  8028. if(anObject == self['@elements'][i]) {
  8029. found = true;
  8030. break;
  8031. }
  8032. }
  8033. if(!found) {self['@elements'].push(anObject)}
  8034. ;
  8035. return self;},
  8036. args: ["anObject"],
  8037. 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'),
  8038. messageSends: [],
  8039. referencedClasses: []
  8040. }),
  8041. smalltalk.Set);
  8042. smalltalk.addMethod(
  8043. unescape('_remove_'),
  8044. smalltalk.method({
  8045. selector: unescape('remove%3A'),
  8046. category: 'adding/removing',
  8047. fn: function (anObject){
  8048. var self=this;
  8049. smalltalk.send(self['@elements'], "_remove_", [anObject]);
  8050. return self;},
  8051. args: ["anObject"],
  8052. source: unescape('remove%3A%20anObject%0A%09elements%20remove%3A%20anObject'),
  8053. messageSends: ["remove:"],
  8054. referencedClasses: []
  8055. }),
  8056. smalltalk.Set);
  8057. smalltalk.addMethod(
  8058. unescape('_initialize'),
  8059. smalltalk.method({
  8060. selector: unescape('initialize'),
  8061. category: 'initialization',
  8062. fn: function (){
  8063. var self=this;
  8064. smalltalk.send(self, "_initialize", [], smalltalk.Collection);
  8065. self['@elements']=[];
  8066. return self;},
  8067. args: [],
  8068. source: unescape('initialize%0A%09super%20initialize.%0A%09elements%20%3A%3D%20%23%28%29'),
  8069. messageSends: ["initialize"],
  8070. referencedClasses: []
  8071. }),
  8072. smalltalk.Set);
  8073. smalltalk.addMethod(
  8074. unescape('_size'),
  8075. smalltalk.method({
  8076. selector: unescape('size'),
  8077. category: 'accessing',
  8078. fn: function (){
  8079. var self=this;
  8080. return smalltalk.send(self['@elements'], "_size", []);
  8081. return self;},
  8082. args: [],
  8083. source: unescape('size%0A%09%5Eelements%20size'),
  8084. messageSends: ["size"],
  8085. referencedClasses: []
  8086. }),
  8087. smalltalk.Set);
  8088. smalltalk.addMethod(
  8089. unescape('_asArray'),
  8090. smalltalk.method({
  8091. selector: unescape('asArray'),
  8092. category: 'converting',
  8093. fn: function (){
  8094. var self=this;
  8095. return smalltalk.send(self['@elements'], "_copy", []);
  8096. return self;},
  8097. args: [],
  8098. source: unescape('asArray%0A%09%5Eelements%20copy'),
  8099. messageSends: ["copy"],
  8100. referencedClasses: []
  8101. }),
  8102. smalltalk.Set);
  8103. smalltalk.addMethod(
  8104. unescape('_detect_ifNone_'),
  8105. smalltalk.method({
  8106. selector: unescape('detect%3AifNone%3A'),
  8107. category: 'enumerating',
  8108. fn: function (aBlock, anotherBlock){
  8109. var self=this;
  8110. return smalltalk.send(self['@elements'], "_detect_ifNone_", [aBlock, anotherBlock]);
  8111. return self;},
  8112. args: ["aBlock", "anotherBlock"],
  8113. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eelements%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  8114. messageSends: ["detect:ifNone:"],
  8115. referencedClasses: []
  8116. }),
  8117. smalltalk.Set);
  8118. smalltalk.addMethod(
  8119. unescape('_do_'),
  8120. smalltalk.method({
  8121. selector: unescape('do%3A'),
  8122. category: 'enumerating',
  8123. fn: function (aBlock){
  8124. var self=this;
  8125. smalltalk.send(self['@elements'], "_do_", [aBlock]);
  8126. return self;},
  8127. args: ["aBlock"],
  8128. source: unescape('do%3A%20aBlock%0A%09elements%20do%3A%20aBlock'),
  8129. messageSends: ["do:"],
  8130. referencedClasses: []
  8131. }),
  8132. smalltalk.Set);
  8133. smalltalk.addMethod(
  8134. unescape('_includes_'),
  8135. smalltalk.method({
  8136. selector: unescape('includes%3A'),
  8137. category: 'testing',
  8138. fn: function (anObject){
  8139. var self=this;
  8140. return smalltalk.send(self['@elements'], "_includes_", [anObject]);
  8141. return self;},
  8142. args: ["anObject"],
  8143. source: unescape('includes%3A%20anObject%0A%09%5Eelements%20includes%3A%20anObject'),
  8144. messageSends: ["includes:"],
  8145. referencedClasses: []
  8146. }),
  8147. smalltalk.Set);
  8148. smalltalk.addMethod(
  8149. unescape('__eq'),
  8150. smalltalk.method({
  8151. selector: unescape('%3D'),
  8152. category: 'comparing',
  8153. fn: function (aCollection){
  8154. var self=this;
  8155. 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", [])]);})]);
  8156. return self;},
  8157. args: ["aCollection"],
  8158. 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'),
  8159. messageSends: ["and:", unescape("%3D"), "class", "asArray"],
  8160. referencedClasses: []
  8161. }),
  8162. smalltalk.Set);
  8163. smalltalk.addClass('Transcript', smalltalk.Object, ['textarea'], 'Kernel');
  8164. smalltalk.Transcript.klass.iVarNames = ['current'];
  8165. smalltalk.addMethod(
  8166. unescape('_open'),
  8167. smalltalk.method({
  8168. selector: unescape('open'),
  8169. category: 'instance creation',
  8170. fn: function (){
  8171. var self=this;
  8172. smalltalk.send(smalltalk.send(self, "_current", []), "_open", []);
  8173. return self;},
  8174. args: [],
  8175. source: unescape('open%0A%20%20%20%20self%20current%20open'),
  8176. messageSends: ["open", "current"],
  8177. referencedClasses: []
  8178. }),
  8179. smalltalk.Transcript.klass);
  8180. smalltalk.addMethod(
  8181. unescape('_new'),
  8182. smalltalk.method({
  8183. selector: unescape('new'),
  8184. category: 'instance creation',
  8185. fn: function (){
  8186. var self=this;
  8187. smalltalk.send(self, "_shouldNotImplement", []);
  8188. return self;},
  8189. args: [],
  8190. source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'),
  8191. messageSends: ["shouldNotImplement"],
  8192. referencedClasses: []
  8193. }),
  8194. smalltalk.Transcript.klass);
  8195. smalltalk.addMethod(
  8196. unescape('_current'),
  8197. smalltalk.method({
  8198. selector: unescape('current'),
  8199. category: 'instance creation',
  8200. fn: function (){
  8201. var self=this;
  8202. return self['@current'];
  8203. return self;},
  8204. args: [],
  8205. source: unescape('current%0A%20%20%20%20%5Ecurrent'),
  8206. messageSends: [],
  8207. referencedClasses: []
  8208. }),
  8209. smalltalk.Transcript.klass);
  8210. smalltalk.addMethod(
  8211. unescape('_show_'),
  8212. smalltalk.method({
  8213. selector: unescape('show%3A'),
  8214. category: 'printing',
  8215. fn: function (anObject){
  8216. var self=this;
  8217. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [anObject]);
  8218. return self;},
  8219. args: ["anObject"],
  8220. source: unescape('show%3A%20anObject%0A%20%20%20%20self%20current%20show%3A%20anObject'),
  8221. messageSends: ["show:", "current"],
  8222. referencedClasses: []
  8223. }),
  8224. smalltalk.Transcript.klass);
  8225. smalltalk.addMethod(
  8226. unescape('_cr'),
  8227. smalltalk.method({
  8228. selector: unescape('cr'),
  8229. category: 'printing',
  8230. fn: function (){
  8231. var self=this;
  8232. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  8233. return self;},
  8234. args: [],
  8235. source: unescape('cr%0A%20%20%20%20self%20current%20show%3A%20String%20cr'),
  8236. messageSends: ["show:", "current", "cr"],
  8237. referencedClasses: [smalltalk.String]
  8238. }),
  8239. smalltalk.Transcript.klass);
  8240. smalltalk.addMethod(
  8241. unescape('_clear'),
  8242. smalltalk.method({
  8243. selector: unescape('clear'),
  8244. category: 'printing',
  8245. fn: function (){
  8246. var self=this;
  8247. smalltalk.send(smalltalk.send(self, "_current", []), "_clear", []);
  8248. return self;},
  8249. args: [],
  8250. source: unescape('clear%0A%20%20%20%20self%20current%20clear'),
  8251. messageSends: ["clear", "current"],
  8252. referencedClasses: []
  8253. }),
  8254. smalltalk.Transcript.klass);
  8255. smalltalk.addMethod(
  8256. unescape('_register_'),
  8257. smalltalk.method({
  8258. selector: unescape('register%3A'),
  8259. category: 'instance creation',
  8260. fn: function (aTranscript){
  8261. var self=this;
  8262. self['@current']=aTranscript;
  8263. return self;},
  8264. args: ["aTranscript"],
  8265. source: unescape('register%3A%20aTranscript%0A%09current%20%3A%3D%20aTranscript'),
  8266. messageSends: [],
  8267. referencedClasses: []
  8268. }),
  8269. smalltalk.Transcript.klass);
  8270. smalltalk.addClass('ConsoleTranscript', smalltalk.Object, ['textarea'], 'Kernel');
  8271. smalltalk.addMethod(
  8272. unescape('_clear'),
  8273. smalltalk.method({
  8274. selector: unescape('clear'),
  8275. category: 'printing',
  8276. fn: function (){
  8277. var self=this;
  8278. return self;},
  8279. args: [],
  8280. source: unescape('clear%0A%09%22no%20op%22'),
  8281. messageSends: [],
  8282. referencedClasses: []
  8283. }),
  8284. smalltalk.ConsoleTranscript);
  8285. smalltalk.addMethod(
  8286. unescape('_cr'),
  8287. smalltalk.method({
  8288. selector: unescape('cr'),
  8289. category: 'printing',
  8290. fn: function (){
  8291. var self=this;
  8292. return self;},
  8293. args: [],
  8294. source: unescape('cr%0A%09%22no%20op%22'),
  8295. messageSends: [],
  8296. referencedClasses: []
  8297. }),
  8298. smalltalk.ConsoleTranscript);
  8299. smalltalk.addMethod(
  8300. unescape('_show_'),
  8301. smalltalk.method({
  8302. selector: unescape('show%3A'),
  8303. category: 'printing',
  8304. fn: function (anObject){
  8305. var self=this;
  8306. console.log(String(anObject._asString()));
  8307. return self;},
  8308. args: ["anObject"],
  8309. source: unescape('show%3A%20anObject%0A%09%3Cconsole.log%28String%28anObject._asString%28%29%29%29%3E'),
  8310. messageSends: [],
  8311. referencedClasses: []
  8312. }),
  8313. smalltalk.ConsoleTranscript);
  8314. smalltalk.addMethod(
  8315. unescape('_open'),
  8316. smalltalk.method({
  8317. selector: unescape('open'),
  8318. category: 'actions',
  8319. fn: function (){
  8320. var self=this;
  8321. return self;},
  8322. args: [],
  8323. source: unescape('open'),
  8324. messageSends: [],
  8325. referencedClasses: []
  8326. }),
  8327. smalltalk.ConsoleTranscript);
  8328. smalltalk.addMethod(
  8329. unescape('_initialize'),
  8330. smalltalk.method({
  8331. selector: unescape('initialize'),
  8332. category: 'initialization',
  8333. fn: function (){
  8334. var self=this;
  8335. smalltalk.send((smalltalk.Transcript || Transcript), "_register_", [smalltalk.send(self, "_new", [])]);
  8336. return self;},
  8337. args: [],
  8338. source: unescape('initialize%0A%09Transcript%20register%3A%20self%20new'),
  8339. messageSends: ["register:", "new"],
  8340. referencedClasses: [smalltalk.Transcript]
  8341. }),
  8342. smalltalk.ConsoleTranscript.klass);