Kernel.js 182 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427
  1. smalltalk.addClass('Object', smalltalk.nil, [], 'Kernel');
  2. smalltalk.addMethod(
  3. '__eq',
  4. smalltalk.method({
  5. selector: '=',
  6. category: 'comparing',
  7. fn: function (anObject){
  8. var self=this;
  9. return self == anObject;
  10. return self;},
  11. source: unescape('%3D%20anObject%0A%09%3Creturn%20self%20%3D%3D%20anObject%3E'),
  12. messageSends: [],
  13. referencedClasses: []
  14. }),
  15. smalltalk.Object);
  16. smalltalk.addMethod(
  17. '_~_eq',
  18. smalltalk.method({
  19. selector: '~=',
  20. category: 'comparing',
  21. fn: function (anObject){
  22. var self=this;
  23. return smalltalk.send(smalltalk.send(self, "__eq", [anObject]), "__eq_eq", [false]);
  24. return self;},
  25. source: unescape('%7E%3D%20anObject%0A%09%5E%28self%20%3D%20anObject%29%20%3D%3D%20false'),
  26. messageSends: [unescape("%3D%3D"), unescape("%3D")],
  27. referencedClasses: []
  28. }),
  29. smalltalk.Object);
  30. smalltalk.addMethod(
  31. '_initialize',
  32. smalltalk.method({
  33. selector: 'initialize',
  34. category: 'initialization',
  35. fn: function (){
  36. var self=this;
  37. return self;},
  38. source: unescape('initialize'),
  39. messageSends: [],
  40. referencedClasses: []
  41. }),
  42. smalltalk.Object);
  43. smalltalk.addMethod(
  44. '_yourself',
  45. smalltalk.method({
  46. selector: 'yourself',
  47. category: 'accessing',
  48. fn: function (){
  49. var self=this;
  50. return self;
  51. return self;},
  52. source: unescape('yourself%0A%09%5Eself'),
  53. messageSends: [],
  54. referencedClasses: []
  55. }),
  56. smalltalk.Object);
  57. smalltalk.addMethod(
  58. '_class',
  59. smalltalk.method({
  60. selector: 'class',
  61. category: 'accessing',
  62. fn: function (){
  63. var self=this;
  64. return self.klass;
  65. return self;},
  66. source: unescape('class%0A%09%3Creturn%20self.klass%3E'),
  67. messageSends: [],
  68. referencedClasses: []
  69. }),
  70. smalltalk.Object);
  71. smalltalk.addMethod(
  72. '_size',
  73. smalltalk.method({
  74. selector: 'size',
  75. category: 'accessing',
  76. fn: function (){
  77. var self=this;
  78. smalltalk.send(self, "_error_", ["Object not indexable"]);
  79. return self;},
  80. source: unescape('size%0A%09self%20error%3A%20%27Object%20not%20indexable%27'),
  81. messageSends: ["error:"],
  82. referencedClasses: []
  83. }),
  84. smalltalk.Object);
  85. smalltalk.addMethod(
  86. '_copy',
  87. smalltalk.method({
  88. selector: 'copy',
  89. category: 'copying',
  90. fn: function (){
  91. var self=this;
  92. return smalltalk.send(smalltalk.send(self, "_shallowCopy", []), "_postCopy", []);
  93. return self;},
  94. source: unescape('copy%0A%09%5Eself%20shallowCopy%20postCopy'),
  95. messageSends: ["postCopy", "shallowCopy"],
  96. referencedClasses: []
  97. }),
  98. smalltalk.Object);
  99. smalltalk.addMethod(
  100. '_shallowCopy',
  101. smalltalk.method({
  102. selector: 'shallowCopy',
  103. category: 'copying',
  104. fn: function (){
  105. var self=this;
  106. var copy = self.klass._new();
  107. for(var i in self) {
  108. if(/^@.+/.test(i)) {
  109. copy[i] = self[i];
  110. }
  111. }
  112. return copy;
  113. ;
  114. return self;},
  115. 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'),
  116. messageSends: [],
  117. referencedClasses: []
  118. }),
  119. smalltalk.Object);
  120. smalltalk.addMethod(
  121. '_deepCopy',
  122. smalltalk.method({
  123. selector: 'deepCopy',
  124. category: 'copying',
  125. fn: function (){
  126. var self=this;
  127. var copy = self.klass._new();
  128. for(var i in self) {
  129. if(/^@.+/.test(i)) {
  130. copy[i] = self[i]._deepCopy();
  131. }
  132. }
  133. return copy;
  134. ;
  135. return self;},
  136. 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'),
  137. messageSends: [],
  138. referencedClasses: []
  139. }),
  140. smalltalk.Object);
  141. smalltalk.addMethod(
  142. '_postCopy',
  143. smalltalk.method({
  144. selector: 'postCopy',
  145. category: 'copying',
  146. fn: function (){
  147. var self=this;
  148. return self;},
  149. source: unescape('postCopy'),
  150. messageSends: [],
  151. referencedClasses: []
  152. }),
  153. smalltalk.Object);
  154. smalltalk.addMethod(
  155. '__minus_gt',
  156. smalltalk.method({
  157. selector: '->',
  158. category: 'converting',
  159. fn: function (anObject){
  160. var self=this;
  161. return smalltalk.send(smalltalk.Association, "_key_value_", [self, anObject]);
  162. return self;},
  163. source: unescape('-%3E%20anObject%0A%09%5EAssociation%20key%3A%20self%20value%3A%20anObject'),
  164. messageSends: ["key:value:"],
  165. referencedClasses: [smalltalk.nil]
  166. }),
  167. smalltalk.Object);
  168. smalltalk.addMethod(
  169. '_asString',
  170. smalltalk.method({
  171. selector: 'asString',
  172. category: 'converting',
  173. fn: function (){
  174. var self=this;
  175. return smalltalk.send(self, "_printString", []);
  176. return self;},
  177. source: unescape('asString%0A%09%5Eself%20printString'),
  178. messageSends: ["printString"],
  179. referencedClasses: []
  180. }),
  181. smalltalk.Object);
  182. smalltalk.addMethod(
  183. '_asJavascript',
  184. smalltalk.method({
  185. selector: 'asJavascript',
  186. category: 'converting',
  187. fn: function (){
  188. var self=this;
  189. return smalltalk.send(self, "_asString", []);
  190. return self;},
  191. source: unescape('asJavascript%0A%09%5Eself%20asString'),
  192. messageSends: ["asString"],
  193. referencedClasses: []
  194. }),
  195. smalltalk.Object);
  196. smalltalk.addMethod(
  197. '_perform_',
  198. smalltalk.method({
  199. selector: 'perform:',
  200. category: 'message handling',
  201. fn: function (aSymbol){
  202. var self=this;
  203. return smalltalk.send(self, "_perform_withArguments_", [aSymbol, []]);
  204. return self;},
  205. source: unescape('perform%3A%20aSymbol%0A%09%5Eself%20perform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
  206. messageSends: ["perform:withArguments:"],
  207. referencedClasses: []
  208. }),
  209. smalltalk.Object);
  210. smalltalk.addMethod(
  211. '_perform_withArguments_',
  212. smalltalk.method({
  213. selector: 'perform:withArguments:',
  214. category: 'message handling',
  215. fn: function (aSymbol, aCollection){
  216. var self=this;
  217. return smalltalk.send(self, "_basicPerform_withArguments_", [smalltalk.send(aSymbol, "_asSelector", []), aCollection]);
  218. return self;},
  219. source: unescape('perform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%5Eself%20basicPerform%3A%20aSymbol%20asSelector%20withArguments%3A%20aCollection'),
  220. messageSends: ["basicPerform:withArguments:", "asSelector"],
  221. referencedClasses: []
  222. }),
  223. smalltalk.Object);
  224. smalltalk.addMethod(
  225. '_instVarAt_',
  226. smalltalk.method({
  227. selector: 'instVarAt:',
  228. category: 'accessing',
  229. fn: function (aString){
  230. var self=this;
  231. return self['@'+aString];
  232. return self;},
  233. source: unescape('instVarAt%3A%20aString%0A%09%3Creturn%20self%5B%27@%27+aString%5D%3E'),
  234. messageSends: [],
  235. referencedClasses: []
  236. }),
  237. smalltalk.Object);
  238. smalltalk.addMethod(
  239. '_instVarAt_put_',
  240. smalltalk.method({
  241. selector: 'instVarAt:put:',
  242. category: 'accessing',
  243. fn: function (aString, anObject){
  244. var self=this;
  245. self['@' + aString] = anObject;
  246. return self;},
  247. source: unescape('instVarAt%3A%20aString%20put%3A%20anObject%0A%09%3Cself%5B%27@%27%20+%20aString%5D%20%3D%20anObject%3E'),
  248. messageSends: [],
  249. referencedClasses: []
  250. }),
  251. smalltalk.Object);
  252. smalltalk.addMethod(
  253. '_basicAt_',
  254. smalltalk.method({
  255. selector: 'basicAt:',
  256. category: 'accessing',
  257. fn: function (aString){
  258. var self=this;
  259. return self[aString];
  260. return self;},
  261. source: unescape('basicAt%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
  262. messageSends: [],
  263. referencedClasses: []
  264. }),
  265. smalltalk.Object);
  266. smalltalk.addMethod(
  267. '_basicAt_put_',
  268. smalltalk.method({
  269. selector: 'basicAt:put:',
  270. category: 'accessing',
  271. fn: function (aString, anObject){
  272. var self=this;
  273. return self[aString] = anObject;
  274. return self;},
  275. source: unescape('basicAt%3A%20aString%20put%3A%20anObject%0A%09%3Creturn%20self%5BaString%5D%20%3D%20anObject%3E'),
  276. messageSends: [],
  277. referencedClasses: []
  278. }),
  279. smalltalk.Object);
  280. smalltalk.addMethod(
  281. '_error_',
  282. smalltalk.method({
  283. selector: 'error:',
  284. category: 'error handling',
  285. fn: function (aString){
  286. var self=this;
  287. smalltalk.send(smalltalk.Error, "_signal_", [aString]);
  288. return self;},
  289. source: unescape('error%3A%20aString%0A%09Error%20signal%3A%20aString'),
  290. messageSends: ["signal:"],
  291. referencedClasses: [smalltalk.Error]
  292. }),
  293. smalltalk.Object);
  294. smalltalk.addMethod(
  295. '_subclassResponsibility',
  296. smalltalk.method({
  297. selector: 'subclassResponsibility',
  298. category: 'error handling',
  299. fn: function (){
  300. var self=this;
  301. smalltalk.send(self, "_error_", ["This method is a responsibility of a subclass"]);
  302. return self;},
  303. source: unescape('subclassResponsibility%0A%09self%20error%3A%20%27This%20method%20is%20a%20responsibility%20of%20a%20subclass%27'),
  304. messageSends: ["error:"],
  305. referencedClasses: []
  306. }),
  307. smalltalk.Object);
  308. smalltalk.addMethod(
  309. '_shouldNotImplement',
  310. smalltalk.method({
  311. selector: 'shouldNotImplement',
  312. category: 'error handling',
  313. fn: function (){
  314. var self=this;
  315. smalltalk.send(self, "_error_", [smalltalk.send("This method should not be implemented in ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])])]);
  316. return self;},
  317. source: unescape('shouldNotImplement%0A%09self%20error%3A%20%27This%20method%20should%20not%20be%20implemented%20in%20%27%2C%20self%20class%20name'),
  318. messageSends: ["error:", unescape("%2C"), "name", "class"],
  319. referencedClasses: []
  320. }),
  321. smalltalk.Object);
  322. smalltalk.addMethod(
  323. '_try_catch_',
  324. smalltalk.method({
  325. selector: 'try:catch:',
  326. category: 'error handling',
  327. fn: function (aBlock, anotherBlock){
  328. var self=this;
  329. try{aBlock()} catch(e) {anotherBlock(e)};
  330. return self;},
  331. source: unescape('try%3A%20aBlock%20catch%3A%20anotherBlock%0A%09%3Ctry%7BaBlock%28%29%7D%20catch%28e%29%20%7BanotherBlock%28e%29%7D%3E'),
  332. messageSends: [],
  333. referencedClasses: []
  334. }),
  335. smalltalk.Object);
  336. smalltalk.addMethod(
  337. '_printString',
  338. smalltalk.method({
  339. selector: 'printString',
  340. category: 'printing',
  341. fn: function (){
  342. var self=this;
  343. return smalltalk.send("a ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])]);
  344. return self;},
  345. source: unescape('printString%0A%09%5E%27a%20%27%2C%20self%20class%20name'),
  346. messageSends: [unescape("%2C"), "name", "class"],
  347. referencedClasses: []
  348. }),
  349. smalltalk.Object);
  350. smalltalk.addMethod(
  351. '_printNl',
  352. smalltalk.method({
  353. selector: 'printNl',
  354. category: 'printing',
  355. fn: function (){
  356. var self=this;
  357. console.log(self);
  358. return self;},
  359. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  360. messageSends: [],
  361. referencedClasses: []
  362. }),
  363. smalltalk.Object);
  364. smalltalk.addMethod(
  365. '_isKindOf_',
  366. smalltalk.method({
  367. selector: 'isKindOf:',
  368. category: 'testing',
  369. fn: function (aClass){
  370. var self=this;
  371. return smalltalk.send(smalltalk.send(self, "_isMemberOf_", [aClass]), "_ifTrue_ifFalse_", [(function(){return true;}), (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})]);
  372. return self;},
  373. 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'),
  374. messageSends: ["ifTrue:ifFalse:", "isMemberOf:", "inheritsFrom:", "class"],
  375. referencedClasses: []
  376. }),
  377. smalltalk.Object);
  378. smalltalk.addMethod(
  379. '_isMemberOf_',
  380. smalltalk.method({
  381. selector: 'isMemberOf:',
  382. category: 'testing',
  383. fn: function (aClass){
  384. var self=this;
  385. return smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [aClass]);
  386. return self;},
  387. source: unescape('isMemberOf%3A%20aClass%0A%09%5Eself%20class%20%3D%20aClass'),
  388. messageSends: [unescape("%3D"), "class"],
  389. referencedClasses: []
  390. }),
  391. smalltalk.Object);
  392. smalltalk.addMethod(
  393. '_ifNil_',
  394. smalltalk.method({
  395. selector: 'ifNil:',
  396. category: 'testing',
  397. fn: function (aBlock){
  398. var self=this;
  399. return self;
  400. return self;},
  401. source: unescape('ifNil%3A%20aBlock%0A%09%5Eself'),
  402. messageSends: [],
  403. referencedClasses: []
  404. }),
  405. smalltalk.Object);
  406. smalltalk.addMethod(
  407. '_ifNil_ifNotNil_',
  408. smalltalk.method({
  409. selector: 'ifNil:ifNotNil:',
  410. category: 'testing',
  411. fn: function (aBlock, anotherBlock){
  412. var self=this;
  413. return smalltalk.send(anotherBlock, "_value", []);
  414. return self;},
  415. source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%5EanotherBlock%20value'),
  416. messageSends: ["value"],
  417. referencedClasses: []
  418. }),
  419. smalltalk.Object);
  420. smalltalk.addMethod(
  421. '_ifNotNil_',
  422. smalltalk.method({
  423. selector: 'ifNotNil:',
  424. category: 'testing',
  425. fn: function (aBlock){
  426. var self=this;
  427. return smalltalk.send(aBlock, "_value", []);
  428. return self;},
  429. source: unescape('ifNotNil%3A%20aBlock%0A%09%5EaBlock%20value'),
  430. messageSends: ["value"],
  431. referencedClasses: []
  432. }),
  433. smalltalk.Object);
  434. smalltalk.addMethod(
  435. '_ifNotNil_ifNil_',
  436. smalltalk.method({
  437. selector: 'ifNotNil:ifNil:',
  438. category: 'testing',
  439. fn: function (aBlock, anotherBlock){
  440. var self=this;
  441. return smalltalk.send(aBlock, "_value", []);
  442. return self;},
  443. source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%5EaBlock%20value'),
  444. messageSends: ["value"],
  445. referencedClasses: []
  446. }),
  447. smalltalk.Object);
  448. smalltalk.addMethod(
  449. '_isNil',
  450. smalltalk.method({
  451. selector: 'isNil',
  452. category: 'testing',
  453. fn: function (){
  454. var self=this;
  455. return false;
  456. return self;},
  457. source: unescape('isNil%0A%09%5Efalse'),
  458. messageSends: [],
  459. referencedClasses: []
  460. }),
  461. smalltalk.Object);
  462. smalltalk.addMethod(
  463. '_notNil',
  464. smalltalk.method({
  465. selector: 'notNil',
  466. category: 'testing',
  467. fn: function (){
  468. var self=this;
  469. return smalltalk.send(smalltalk.send(self, "_isNil", []), "_not", []);
  470. return self;},
  471. source: unescape('notNil%0A%09%5Eself%20isNil%20not'),
  472. messageSends: ["not", "isNil"],
  473. referencedClasses: []
  474. }),
  475. smalltalk.Object);
  476. smalltalk.addMethod(
  477. '_isClass',
  478. smalltalk.method({
  479. selector: 'isClass',
  480. category: 'testing',
  481. fn: function (){
  482. var self=this;
  483. return false;
  484. return self;},
  485. source: unescape('isClass%0A%09%5Efalse'),
  486. messageSends: [],
  487. referencedClasses: []
  488. }),
  489. smalltalk.Object);
  490. smalltalk.addMethod(
  491. '_isMetaclass',
  492. smalltalk.method({
  493. selector: 'isMetaclass',
  494. category: 'testing',
  495. fn: function (){
  496. var self=this;
  497. return false;
  498. return self;},
  499. source: unescape('isMetaclass%0A%09%5Efalse'),
  500. messageSends: [],
  501. referencedClasses: []
  502. }),
  503. smalltalk.Object);
  504. smalltalk.addMethod(
  505. '_isNumber',
  506. smalltalk.method({
  507. selector: 'isNumber',
  508. category: 'testing',
  509. fn: function (){
  510. var self=this;
  511. return false;
  512. return self;},
  513. source: unescape('isNumber%0A%09%5Efalse'),
  514. messageSends: [],
  515. referencedClasses: []
  516. }),
  517. smalltalk.Object);
  518. smalltalk.addMethod(
  519. '_isString',
  520. smalltalk.method({
  521. selector: 'isString',
  522. category: 'testing',
  523. fn: function (){
  524. var self=this;
  525. return false;
  526. return self;},
  527. source: unescape('isString%0A%09%5Efalse'),
  528. messageSends: [],
  529. referencedClasses: []
  530. }),
  531. smalltalk.Object);
  532. smalltalk.addMethod(
  533. '_isParseFailure',
  534. smalltalk.method({
  535. selector: 'isParseFailure',
  536. category: 'testing',
  537. fn: function (){
  538. var self=this;
  539. return false;
  540. return self;},
  541. source: unescape('isParseFailure%0A%09%5Efalse'),
  542. messageSends: [],
  543. referencedClasses: []
  544. }),
  545. smalltalk.Object);
  546. smalltalk.addMethod(
  547. '_basicPerform_',
  548. smalltalk.method({
  549. selector: 'basicPerform:',
  550. category: 'message handling',
  551. fn: function (aSymbol){
  552. var self=this;
  553. return smalltalk.send(self, "_basicPerform_withArguments_", [aSymbol, []]);
  554. return self;},
  555. source: unescape('basicPerform%3A%20aSymbol%20%0A%09%5Eself%20basicPerform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
  556. messageSends: ["basicPerform:withArguments:"],
  557. referencedClasses: []
  558. }),
  559. smalltalk.Object);
  560. smalltalk.addMethod(
  561. '_basicPerform_withArguments_',
  562. smalltalk.method({
  563. selector: 'basicPerform:withArguments:',
  564. category: 'message handling',
  565. fn: function (aSymbol, aCollection){
  566. var self=this;
  567. return self[aSymbol].apply(self, aCollection);;
  568. return self;},
  569. source: unescape('basicPerform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%3Creturn%20self%5BaSymbol%5D.apply%28self%2C%20aCollection%29%3B%3E'),
  570. messageSends: [],
  571. referencedClasses: []
  572. }),
  573. smalltalk.Object);
  574. smalltalk.addMethod(
  575. '_basicDelete_',
  576. smalltalk.method({
  577. selector: 'basicDelete:',
  578. category: 'accessing',
  579. fn: function (aString){
  580. var self=this;
  581. delete self[aString];
  582. return self;},
  583. source: unescape('basicDelete%3A%20aString%0A%20%20%20%20%3Cdelete%20self%5BaString%5D%3E'),
  584. messageSends: [],
  585. referencedClasses: []
  586. }),
  587. smalltalk.Object);
  588. smalltalk.addMethod(
  589. '_doesNotUnderstand_',
  590. smalltalk.method({
  591. selector: 'doesNotUnderstand:',
  592. category: 'error handling',
  593. fn: function (aMessage){
  594. var self=this;
  595. (function($rec){smalltalk.send($rec, "_receiver_", [self]);smalltalk.send($rec, "_message_", [aMessage]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send(smalltalk.MessageNotUnderstood, "_new", []));
  596. return self;},
  597. source: unescape('doesNotUnderstand%3A%20aMessage%0A%09MessageNotUnderstood%20new%0A%09%09receiver%3A%20self%3B%0A%09%09message%3A%20aMessage%3B%0A%09%09signal'),
  598. messageSends: ["receiver:", "message:", "signal", "new"],
  599. referencedClasses: [smalltalk.nil]
  600. }),
  601. smalltalk.Object);
  602. smalltalk.addMethod(
  603. '_asJSON',
  604. smalltalk.method({
  605. selector: 'asJSON',
  606. category: 'converting',
  607. fn: function (){
  608. var self=this;
  609. return JSON.stringify(self._asJSONObject());
  610. return self;},
  611. source: unescape('asJSON%0A%09%3Creturn%20JSON.stringify%28self._asJSONObject%28%29%29%3E'),
  612. messageSends: [],
  613. referencedClasses: []
  614. }),
  615. smalltalk.Object);
  616. smalltalk.addMethod(
  617. '_asJSONObject',
  618. smalltalk.method({
  619. selector: 'asJSONObject',
  620. category: 'converting',
  621. fn: function (){
  622. var self=this;
  623. var object=nil;
  624. object=smalltalk.send(smalltalk.Object, "_new", []);
  625. 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", [])]);})]);
  626. return object;
  627. return self;},
  628. 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'),
  629. messageSends: ["new", "do:", "instanceVariableNames", "class", "basicAt:put:", "asJSONObject", "instVarAt:"],
  630. referencedClasses: [smalltalk.Object]
  631. }),
  632. smalltalk.Object);
  633. smalltalk.addMethod(
  634. '_initialize',
  635. smalltalk.method({
  636. selector: 'initialize',
  637. category: 'initialization',
  638. fn: function (){
  639. var self=this;
  640. return self;},
  641. source: unescape('initialize%0A%09%22no%20op%22'),
  642. messageSends: [],
  643. referencedClasses: []
  644. }),
  645. smalltalk.Object.klass);
  646. smalltalk.addClass('Smalltalk', smalltalk.Object, [], 'Kernel');
  647. smalltalk.addMethod(
  648. '_classes',
  649. smalltalk.method({
  650. selector: 'classes',
  651. category: 'accessing',
  652. fn: function (){
  653. var self=this;
  654. return self.classes();
  655. return self;},
  656. source: unescape('classes%0A%09%3Creturn%20self.classes%28%29%3E'),
  657. messageSends: [],
  658. referencedClasses: []
  659. }),
  660. smalltalk.Smalltalk);
  661. smalltalk.addMethod(
  662. '_debugMode',
  663. smalltalk.method({
  664. selector: 'debugMode',
  665. category: 'accessing',
  666. fn: function (){
  667. var self=this;
  668. return self.debugMode;
  669. return self;},
  670. source: unescape('debugMode%0A%09%3Creturn%20self.debugMode%3E'),
  671. messageSends: [],
  672. referencedClasses: []
  673. }),
  674. smalltalk.Smalltalk);
  675. smalltalk.addMethod(
  676. '_debugMode_',
  677. smalltalk.method({
  678. selector: 'debugMode:',
  679. category: 'accessing',
  680. fn: function (aBoolean){
  681. var self=this;
  682. self.debugMode = aBoolean;
  683. return self;},
  684. source: unescape('debugMode%3A%20aBoolean%0A%09%3Cself.debugMode%20%3D%20aBoolean%3E'),
  685. messageSends: [],
  686. referencedClasses: []
  687. }),
  688. smalltalk.Smalltalk);
  689. smalltalk.addMethod(
  690. '_readJSON_',
  691. smalltalk.method({
  692. selector: 'readJSON:',
  693. category: 'accessing',
  694. fn: function (anObject){
  695. var self=this;
  696. return self.readJSObject(anObject);
  697. return self;},
  698. source: unescape('readJSON%3A%20anObject%0A%09%3Creturn%20self.readJSObject%28anObject%29%3E'),
  699. messageSends: [],
  700. referencedClasses: []
  701. }),
  702. smalltalk.Smalltalk);
  703. smalltalk.addMethod(
  704. '_at_',
  705. smalltalk.method({
  706. selector: 'at:',
  707. category: 'accessing',
  708. fn: function (aString){
  709. var self=this;
  710. return self[aString];
  711. return self;},
  712. source: unescape('at%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
  713. messageSends: [],
  714. referencedClasses: []
  715. }),
  716. smalltalk.Smalltalk);
  717. smalltalk.Smalltalk.klass.iVarNames = ['current'];
  718. smalltalk.addMethod(
  719. '_current',
  720. smalltalk.method({
  721. selector: 'current',
  722. category: 'accessing',
  723. fn: function (){
  724. var self=this;
  725. return smalltalk;
  726. return self;},
  727. source: unescape('current%0A%09%3Creturn%20smalltalk%3E'),
  728. messageSends: [],
  729. referencedClasses: []
  730. }),
  731. smalltalk.Smalltalk.klass);
  732. smalltalk.addClass('Behavior', smalltalk.Object, [], 'Kernel');
  733. smalltalk.addMethod(
  734. '_new',
  735. smalltalk.method({
  736. selector: 'new',
  737. category: 'instance creation',
  738. fn: function (){
  739. var self=this;
  740. return smalltalk.send(smalltalk.send(self, "_basicNew", []), "_initialize", []);
  741. return self;},
  742. source: unescape('new%0A%09%5Eself%20basicNew%20initialize'),
  743. messageSends: ["initialize", "basicNew"],
  744. referencedClasses: []
  745. }),
  746. smalltalk.Behavior);
  747. smalltalk.addMethod(
  748. '_basicNew',
  749. smalltalk.method({
  750. selector: 'basicNew',
  751. category: 'instance creation',
  752. fn: function (){
  753. var self=this;
  754. return new self.fn();
  755. return self;},
  756. source: unescape('basicNew%0A%09%3Creturn%20new%20self.fn%28%29%3E'),
  757. messageSends: [],
  758. referencedClasses: []
  759. }),
  760. smalltalk.Behavior);
  761. smalltalk.addMethod(
  762. '_name',
  763. smalltalk.method({
  764. selector: 'name',
  765. category: 'accessing',
  766. fn: function (){
  767. var self=this;
  768. return self.className || nil;
  769. return self;},
  770. source: unescape('name%0A%09%3Creturn%20self.className%20%7C%7C%20nil%3E'),
  771. messageSends: [],
  772. referencedClasses: []
  773. }),
  774. smalltalk.Behavior);
  775. smalltalk.addMethod(
  776. '_superclass',
  777. smalltalk.method({
  778. selector: 'superclass',
  779. category: 'accessing',
  780. fn: function (){
  781. var self=this;
  782. return self.superclass || nil;
  783. return self;},
  784. source: unescape('superclass%0A%09%3Creturn%20self.superclass%20%7C%7C%20nil%3E'),
  785. messageSends: [],
  786. referencedClasses: []
  787. }),
  788. smalltalk.Behavior);
  789. smalltalk.addMethod(
  790. '_subclasses',
  791. smalltalk.method({
  792. selector: 'subclasses',
  793. category: 'accessing',
  794. fn: function (){
  795. var self=this;
  796. return smalltalk.subclasses(self);
  797. return self;},
  798. source: unescape('subclasses%0A%09%3Creturn%20smalltalk.subclasses%28self%29%3E'),
  799. messageSends: [],
  800. referencedClasses: []
  801. }),
  802. smalltalk.Behavior);
  803. smalltalk.addMethod(
  804. '_allSubclasses',
  805. smalltalk.method({
  806. selector: 'allSubclasses',
  807. category: 'accessing',
  808. fn: function (){
  809. var self=this;
  810. var result=nil;
  811. result=smalltalk.send(self, "_subclasses", []);
  812. smalltalk.send(smalltalk.send(self, "_subclasses", []), "_do_", [(function(each){return smalltalk.send(result, "_addAll_", [smalltalk.send(each, "_allSubclasses", [])]);})]);
  813. return result;
  814. return self;},
  815. 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'),
  816. messageSends: ["subclasses", "do:", "addAll:", "allSubclasses"],
  817. referencedClasses: []
  818. }),
  819. smalltalk.Behavior);
  820. smalltalk.addMethod(
  821. '_withAllSubclasses',
  822. smalltalk.method({
  823. selector: 'withAllSubclasses',
  824. category: 'accessing',
  825. fn: function (){
  826. var self=this;
  827. return (function($rec){smalltalk.send($rec, "_addAll_", [smalltalk.send(self, "_allSubclasses", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(smalltalk.Array, "_with_", [self]));
  828. return self;},
  829. source: unescape('withAllSubclasses%0A%09%5E%28Array%20with%3A%20self%29%20addAll%3A%20self%20allSubclasses%3B%20yourself'),
  830. messageSends: ["addAll:", "allSubclasses", "yourself", "with:"],
  831. referencedClasses: [smalltalk.Array]
  832. }),
  833. smalltalk.Behavior);
  834. smalltalk.addMethod(
  835. '_prototype',
  836. smalltalk.method({
  837. selector: 'prototype',
  838. category: 'accessing',
  839. fn: function (){
  840. var self=this;
  841. return self.fn.prototype;
  842. return self;},
  843. source: unescape('prototype%0A%09%3Creturn%20self.fn.prototype%3E'),
  844. messageSends: [],
  845. referencedClasses: []
  846. }),
  847. smalltalk.Behavior);
  848. smalltalk.addMethod(
  849. '_methodDictionary',
  850. smalltalk.method({
  851. selector: 'methodDictionary',
  852. category: 'accessing',
  853. fn: function (){
  854. var self=this;
  855. var dict = smalltalk.Dictionary._new();
  856. var methods = self.fn.prototype.methods;
  857. for(var i in methods) {
  858. if(methods[i].selector) {
  859. dict._at_put_(methods[i].selector, methods[i]);
  860. }
  861. };
  862. return dict;
  863. return self;},
  864. 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'),
  865. messageSends: [],
  866. referencedClasses: []
  867. }),
  868. smalltalk.Behavior);
  869. smalltalk.addMethod(
  870. '_methodsFor_',
  871. smalltalk.method({
  872. selector: 'methodsFor:',
  873. category: 'accessing',
  874. fn: function (aString){
  875. var self=this;
  876. return (function($rec){smalltalk.send($rec, "_class_category_", [self, aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(smalltalk.ClassCategoryReader, "_new", []));
  877. return self;},
  878. 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'),
  879. messageSends: ["class:category:", "yourself", "new"],
  880. referencedClasses: [smalltalk.nil]
  881. }),
  882. smalltalk.Behavior);
  883. smalltalk.addMethod(
  884. '_addCompiledMethod_',
  885. smalltalk.method({
  886. selector: 'addCompiledMethod:',
  887. category: 'accessing',
  888. fn: function (aMethod){
  889. var self=this;
  890. self.fn.prototype[aMethod.selector._asSelector()] = aMethod.fn;
  891. self.fn.prototype.methods[aMethod.selector] = aMethod;
  892. aMethod.methodClass = self;
  893. return self;},
  894. source: unescape('addCompiledMethod%3A%20aMethod%0A%09%3Cself.fn.prototype%5BaMethod.selector._asSelector%28%29%5D%20%3D%20aMethod.fn%3B%0A%09self.fn.prototype.methods%5BaMethod.selector%5D%20%3D%20aMethod%3B%0A%09aMethod.methodClass%20%3D%20self%3E'),
  895. messageSends: [],
  896. referencedClasses: []
  897. }),
  898. smalltalk.Behavior);
  899. smalltalk.addMethod(
  900. '_instanceVariableNames',
  901. smalltalk.method({
  902. selector: 'instanceVariableNames',
  903. category: 'accessing',
  904. fn: function (){
  905. var self=this;
  906. return self.iVarNames;
  907. return self;},
  908. source: unescape('instanceVariableNames%0A%09%3Creturn%20self.iVarNames%3E'),
  909. messageSends: [],
  910. referencedClasses: []
  911. }),
  912. smalltalk.Behavior);
  913. smalltalk.addMethod(
  914. '_comment',
  915. smalltalk.method({
  916. selector: 'comment',
  917. category: 'accessing',
  918. fn: function (){
  919. var self=this;
  920. return smalltalk.send(smalltalk.send(self, "_basicAt_", ["comment"]), "_ifNil_", [(function(){return "";})]);
  921. return self;},
  922. source: unescape('comment%0A%20%20%20%20%5E%28self%20basicAt%3A%20%27comment%27%29%20ifNil%3A%20%5B%27%27%5D'),
  923. messageSends: ["ifNil:", "basicAt:"],
  924. referencedClasses: []
  925. }),
  926. smalltalk.Behavior);
  927. smalltalk.addMethod(
  928. '_comment_',
  929. smalltalk.method({
  930. selector: 'comment:',
  931. category: 'accessing',
  932. fn: function (aString){
  933. var self=this;
  934. smalltalk.send(self, "_basicAt_put_", ["comment", aString]);
  935. return self;},
  936. source: unescape('comment%3A%20aString%0A%20%20%20%20self%20basicAt%3A%20%27comment%27%20put%3A%20aString'),
  937. messageSends: ["basicAt:put:"],
  938. referencedClasses: []
  939. }),
  940. smalltalk.Behavior);
  941. smalltalk.addMethod(
  942. '_commentStamp',
  943. smalltalk.method({
  944. selector: 'commentStamp',
  945. category: 'accessing',
  946. fn: function (){
  947. var self=this;
  948. return (function($rec){smalltalk.send($rec, "_class_", [self]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(smalltalk.ClassCommentReader, "_new", []));
  949. return self;},
  950. source: unescape('commentStamp%0A%20%20%20%20%5EClassCommentReader%20new%0A%09class%3A%20self%3B%0A%09yourself'),
  951. messageSends: ["class:", "yourself", "new"],
  952. referencedClasses: [smalltalk.nil]
  953. }),
  954. smalltalk.Behavior);
  955. smalltalk.addMethod(
  956. '_removeCompiledMethod_',
  957. smalltalk.method({
  958. selector: 'removeCompiledMethod:',
  959. category: 'accessing',
  960. fn: function (aMethod){
  961. var self=this;
  962. delete self.fn.prototype[aMethod.selector._asSelector()];
  963. delete self.fn.prototype.methods[aMethod.selector];
  964. return self;},
  965. 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%3E'),
  966. messageSends: [],
  967. referencedClasses: []
  968. }),
  969. smalltalk.Behavior);
  970. smalltalk.addMethod(
  971. '_inheritsFrom_',
  972. smalltalk.method({
  973. selector: 'inheritsFrom:',
  974. category: 'instance creation',
  975. fn: function (aClass){
  976. var self=this;
  977. return smalltalk.send(smalltalk.send(aClass, "_allSubclasses", []), "_includes_", [self]);
  978. return self;},
  979. source: unescape('inheritsFrom%3A%20aClass%0A%09%5EaClass%20allSubclasses%20includes%3A%20self'),
  980. messageSends: ["includes:", "allSubclasses"],
  981. referencedClasses: []
  982. }),
  983. smalltalk.Behavior);
  984. smalltalk.addMethod(
  985. '_protocols',
  986. smalltalk.method({
  987. selector: 'protocols',
  988. category: 'accessing',
  989. fn: function (){
  990. var self=this;
  991. var protocols=nil;
  992. protocols=smalltalk.send(smalltalk.Array, "_new", []);
  993. smalltalk.send(smalltalk.send(self, "_methodDictionary", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(protocols, "_includes_", [smalltalk.send(each, "_category", [])]), "_ifFalse_", [(function(){return smalltalk.send(protocols, "_add_", [smalltalk.send(each, "_category", [])]);})]);})]);
  994. return smalltalk.send(protocols, "_sort", []);
  995. return self;},
  996. 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'),
  997. messageSends: ["new", "do:", "methodDictionary", "ifFalse:", "includes:", "category", "add:", "sort"],
  998. referencedClasses: [smalltalk.Array]
  999. }),
  1000. smalltalk.Behavior);
  1001. smalltalk.addMethod(
  1002. '_protocolsDo_',
  1003. smalltalk.method({
  1004. selector: 'protocolsDo:',
  1005. category: 'accessing',
  1006. fn: function (aBlock){
  1007. var self=this;
  1008. var methodsByCategory=nil;
  1009. methodsByCategory=smalltalk.send(smalltalk.Dictionary, "_new", []);
  1010. 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, "_new", []);})]), "_add_", [m]);})]);
  1011. smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(category){return smalltalk.send(aBlock, "_value_value_", [category, smalltalk.send(methodsByCategory, "_at_", [category])]);})]);
  1012. return self;},
  1013. 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'),
  1014. messageSends: ["new", "do:", "values", "methodDictionary", "add:", "at:ifAbsentPut:", "category", "protocols", "value:value:", "at:"],
  1015. referencedClasses: [smalltalk.nil,smalltalk.Array]
  1016. }),
  1017. smalltalk.Behavior);
  1018. smalltalk.addClass('Class', smalltalk.Behavior, [], 'Kernel');
  1019. smalltalk.addMethod(
  1020. '_category',
  1021. smalltalk.method({
  1022. selector: 'category',
  1023. category: 'accessing',
  1024. fn: function (){
  1025. var self=this;
  1026. return self.category;
  1027. return self;},
  1028. source: unescape('category%0A%09%3Creturn%20self.category%3E'),
  1029. messageSends: [],
  1030. referencedClasses: []
  1031. }),
  1032. smalltalk.Class);
  1033. smalltalk.addMethod(
  1034. '_category_',
  1035. smalltalk.method({
  1036. selector: 'category:',
  1037. category: 'accessing',
  1038. fn: function (aString){
  1039. var self=this;
  1040. self.category = aString;
  1041. return self;},
  1042. source: unescape('category%3A%20aString%0A%09%3Cself.category%20%3D%20aString%3E'),
  1043. messageSends: [],
  1044. referencedClasses: []
  1045. }),
  1046. smalltalk.Class);
  1047. smalltalk.addMethod(
  1048. '_subclass_instanceVariableNames_',
  1049. smalltalk.method({
  1050. selector: 'subclass:instanceVariableNames:',
  1051. category: 'class creation',
  1052. fn: function (aString, anotherString){
  1053. var self=this;
  1054. return smalltalk.send(self, "_subclass_instanceVariableNames_category_", [aString, anotherString, nil]);
  1055. return self;},
  1056. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%20category%3A%20nil'),
  1057. messageSends: ["subclass:instanceVariableNames:category:"],
  1058. referencedClasses: []
  1059. }),
  1060. smalltalk.Class);
  1061. smalltalk.addMethod(
  1062. '_subclass_instanceVariableNames_category_',
  1063. smalltalk.method({
  1064. selector: 'subclass:instanceVariableNames:category:',
  1065. category: 'class creation',
  1066. fn: function (aString, aString2, aString3){
  1067. var self=this;
  1068. return smalltalk.send(smalltalk.send(smalltalk.ClassBuilder, "_new", []), "_superclass_subclass_instanceVariableNames_category_", [self, aString, aString2, aString3]);
  1069. return self;},
  1070. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20category%3A%20aString3%0A%09%5EClassBuilder%20new%0A%09%20%20%20%20superclass%3A%20self%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20category%3A%20aString3'),
  1071. messageSends: ["superclass:subclass:instanceVariableNames:category:", "new"],
  1072. referencedClasses: [smalltalk.nil]
  1073. }),
  1074. smalltalk.Class);
  1075. smalltalk.addMethod(
  1076. '_isClass',
  1077. smalltalk.method({
  1078. selector: 'isClass',
  1079. category: 'testing',
  1080. fn: function (){
  1081. var self=this;
  1082. return true;
  1083. return self;},
  1084. source: unescape('isClass%0A%09%5Etrue'),
  1085. messageSends: [],
  1086. referencedClasses: []
  1087. }),
  1088. smalltalk.Class);
  1089. smalltalk.addMethod(
  1090. '_printString',
  1091. smalltalk.method({
  1092. selector: 'printString',
  1093. category: 'printing',
  1094. fn: function (){
  1095. var self=this;
  1096. return smalltalk.send(self, "_name", []);
  1097. return self;},
  1098. source: unescape('printString%0A%09%5Eself%20name'),
  1099. messageSends: ["name"],
  1100. referencedClasses: []
  1101. }),
  1102. smalltalk.Class);
  1103. smalltalk.addMethod(
  1104. '_rename_',
  1105. smalltalk.method({
  1106. selector: 'rename:',
  1107. category: 'accessing',
  1108. fn: function (aString){
  1109. var self=this;
  1110. smalltalk[aString] = self;
  1111. delete smalltalk[self.className];
  1112. self.className = aString;
  1113. ;
  1114. return self;},
  1115. 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'),
  1116. messageSends: [],
  1117. referencedClasses: []
  1118. }),
  1119. smalltalk.Class);
  1120. smalltalk.addClass('Metaclass', smalltalk.Behavior, [], 'Kernel');
  1121. smalltalk.addMethod(
  1122. '_instanceClass',
  1123. smalltalk.method({
  1124. selector: 'instanceClass',
  1125. category: 'accessing',
  1126. fn: function (){
  1127. var self=this;
  1128. return self.instanceClass;
  1129. return self;},
  1130. source: unescape('instanceClass%0A%09%3Creturn%20self.instanceClass%3E'),
  1131. messageSends: [],
  1132. referencedClasses: []
  1133. }),
  1134. smalltalk.Metaclass);
  1135. smalltalk.addMethod(
  1136. '_instanceVariableNames_',
  1137. smalltalk.method({
  1138. selector: 'instanceVariableNames:',
  1139. category: 'accessing',
  1140. fn: function (aCollection){
  1141. var self=this;
  1142. smalltalk.send(smalltalk.send(smalltalk.ClassBuilder, "_new", []), "_class_instanceVariableNames_", [self, aCollection]);
  1143. return self;},
  1144. source: unescape('instanceVariableNames%3A%20aCollection%0A%09ClassBuilder%20new%0A%09%20%20%20%20class%3A%20self%20instanceVariableNames%3A%20aCollection'),
  1145. messageSends: ["class:instanceVariableNames:", "new"],
  1146. referencedClasses: [smalltalk.nil]
  1147. }),
  1148. smalltalk.Metaclass);
  1149. smalltalk.addMethod(
  1150. '_isMetaclass',
  1151. smalltalk.method({
  1152. selector: 'isMetaclass',
  1153. category: 'testing',
  1154. fn: function (){
  1155. var self=this;
  1156. return true;
  1157. return self;},
  1158. source: unescape('isMetaclass%0A%09%5Etrue'),
  1159. messageSends: [],
  1160. referencedClasses: []
  1161. }),
  1162. smalltalk.Metaclass);
  1163. smalltalk.addMethod(
  1164. '_printString',
  1165. smalltalk.method({
  1166. selector: 'printString',
  1167. category: 'printing',
  1168. fn: function (){
  1169. var self=this;
  1170. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_instanceClass", []), "_name", []), "__comma", [" class"]);
  1171. return self;},
  1172. source: unescape('printString%0A%09%5Eself%20instanceClass%20name%2C%20%27%20class%27'),
  1173. messageSends: [unescape("%2C"), "name", "instanceClass"],
  1174. referencedClasses: []
  1175. }),
  1176. smalltalk.Metaclass);
  1177. smalltalk.addClass('CompiledMethod', smalltalk.Object, [], 'Kernel');
  1178. smalltalk.addMethod(
  1179. '_source',
  1180. smalltalk.method({
  1181. selector: 'source',
  1182. category: 'accessing',
  1183. fn: function (){
  1184. var self=this;
  1185. return smalltalk.send(smalltalk.send(self, "_basicAt_", ["source"]), "_ifNil_", [(function(){return "";})]);
  1186. return self;},
  1187. source: unescape('source%0A%09%5E%28self%20basicAt%3A%20%27source%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1188. messageSends: ["ifNil:", "basicAt:"],
  1189. referencedClasses: []
  1190. }),
  1191. smalltalk.CompiledMethod);
  1192. smalltalk.addMethod(
  1193. '_source_',
  1194. smalltalk.method({
  1195. selector: 'source:',
  1196. category: 'accessing',
  1197. fn: function (aString){
  1198. var self=this;
  1199. smalltalk.send(self, "_basicAt_put_", ["source", aString]);
  1200. return self;},
  1201. source: unescape('source%3A%20aString%0A%09self%20basicAt%3A%20%27source%27%20put%3A%20aString'),
  1202. messageSends: ["basicAt:put:"],
  1203. referencedClasses: []
  1204. }),
  1205. smalltalk.CompiledMethod);
  1206. smalltalk.addMethod(
  1207. '_category',
  1208. smalltalk.method({
  1209. selector: 'category',
  1210. category: 'accessing',
  1211. fn: function (){
  1212. var self=this;
  1213. return smalltalk.send(smalltalk.send(self, "_basicAt_", ["category"]), "_ifNil_", [(function(){return "";})]);
  1214. return self;},
  1215. source: unescape('category%0A%09%5E%28self%20basicAt%3A%20%27category%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1216. messageSends: ["ifNil:", "basicAt:"],
  1217. referencedClasses: []
  1218. }),
  1219. smalltalk.CompiledMethod);
  1220. smalltalk.addMethod(
  1221. '_category_',
  1222. smalltalk.method({
  1223. selector: 'category:',
  1224. category: 'accessing',
  1225. fn: function (aString){
  1226. var self=this;
  1227. smalltalk.send(self, "_basicAt_put_", ["category", aString]);
  1228. return self;},
  1229. source: unescape('category%3A%20aString%0A%09self%20basicAt%3A%20%27category%27%20put%3A%20aString'),
  1230. messageSends: ["basicAt:put:"],
  1231. referencedClasses: []
  1232. }),
  1233. smalltalk.CompiledMethod);
  1234. smalltalk.addMethod(
  1235. '_selector',
  1236. smalltalk.method({
  1237. selector: 'selector',
  1238. category: 'accessing',
  1239. fn: function (){
  1240. var self=this;
  1241. return smalltalk.send(self, "_basicAt_", ["selector"]);
  1242. return self;},
  1243. source: unescape('selector%0A%09%5Eself%20basicAt%3A%20%27selector%27'),
  1244. messageSends: ["basicAt:"],
  1245. referencedClasses: []
  1246. }),
  1247. smalltalk.CompiledMethod);
  1248. smalltalk.addMethod(
  1249. '_selector_',
  1250. smalltalk.method({
  1251. selector: 'selector:',
  1252. category: 'accessing',
  1253. fn: function (aString){
  1254. var self=this;
  1255. smalltalk.send(self, "_basicAt_put_", ["selector", aString]);
  1256. return self;},
  1257. source: unescape('selector%3A%20aString%0A%09self%20basicAt%3A%20%27selector%27%20put%3A%20aString'),
  1258. messageSends: ["basicAt:put:"],
  1259. referencedClasses: []
  1260. }),
  1261. smalltalk.CompiledMethod);
  1262. smalltalk.addMethod(
  1263. '_fn',
  1264. smalltalk.method({
  1265. selector: 'fn',
  1266. category: 'accessing',
  1267. fn: function (){
  1268. var self=this;
  1269. return smalltalk.send(self, "_basicAt_", ["fn"]);
  1270. return self;},
  1271. source: unescape('fn%0A%09%5Eself%20basicAt%3A%20%27fn%27'),
  1272. messageSends: ["basicAt:"],
  1273. referencedClasses: []
  1274. }),
  1275. smalltalk.CompiledMethod);
  1276. smalltalk.addMethod(
  1277. '_fn_',
  1278. smalltalk.method({
  1279. selector: 'fn:',
  1280. category: 'accessing',
  1281. fn: function (aBlock){
  1282. var self=this;
  1283. smalltalk.send(self, "_basicAt_put_", ["fn", aBlock]);
  1284. return self;},
  1285. source: unescape('fn%3A%20aBlock%0A%09self%20basicAt%3A%20%27fn%27%20put%3A%20aBlock'),
  1286. messageSends: ["basicAt:put:"],
  1287. referencedClasses: []
  1288. }),
  1289. smalltalk.CompiledMethod);
  1290. smalltalk.addMethod(
  1291. '_messageSends',
  1292. smalltalk.method({
  1293. selector: 'messageSends',
  1294. category: 'accessing',
  1295. fn: function (){
  1296. var self=this;
  1297. return smalltalk.send(self, "_basicAt_", ["messageSends"]);
  1298. return self;},
  1299. source: unescape('messageSends%0A%09%5Eself%20basicAt%3A%20%27messageSends%27'),
  1300. messageSends: ["basicAt:"],
  1301. referencedClasses: []
  1302. }),
  1303. smalltalk.CompiledMethod);
  1304. smalltalk.addMethod(
  1305. '_methodClass',
  1306. smalltalk.method({
  1307. selector: 'methodClass',
  1308. category: 'accessing',
  1309. fn: function (){
  1310. var self=this;
  1311. return smalltalk.send(self, "_basicAt_", ["methodClass"]);
  1312. return self;},
  1313. source: unescape('methodClass%0A%09%5Eself%20basicAt%3A%20%27methodClass%27'),
  1314. messageSends: ["basicAt:"],
  1315. referencedClasses: []
  1316. }),
  1317. smalltalk.CompiledMethod);
  1318. smalltalk.addMethod(
  1319. '_referencedClasses',
  1320. smalltalk.method({
  1321. selector: 'referencedClasses',
  1322. category: 'accessing',
  1323. fn: function (){
  1324. var self=this;
  1325. return smalltalk.send(self, "_basicAt_", ["referencedClasses"]);
  1326. return self;},
  1327. source: unescape('referencedClasses%0A%09%5Eself%20basicAt%3A%20%27referencedClasses%27'),
  1328. messageSends: ["basicAt:"],
  1329. referencedClasses: []
  1330. }),
  1331. smalltalk.CompiledMethod);
  1332. smalltalk.addClass('Number', smalltalk.Object, [], 'Kernel');
  1333. smalltalk.addMethod(
  1334. '__eq',
  1335. smalltalk.method({
  1336. selector: '=',
  1337. category: 'comparing',
  1338. fn: function (aNumber){
  1339. var self=this;
  1340. return Number(self) == aNumber;
  1341. return self;},
  1342. source: unescape('%3D%20aNumber%0A%09%3Creturn%20Number%28self%29%20%3D%3D%20aNumber%3E'),
  1343. messageSends: [],
  1344. referencedClasses: []
  1345. }),
  1346. smalltalk.Number);
  1347. smalltalk.addMethod(
  1348. '__gt',
  1349. smalltalk.method({
  1350. selector: '>',
  1351. category: 'comparing',
  1352. fn: function (aNumber){
  1353. var self=this;
  1354. return self > aNumber;
  1355. return self;},
  1356. source: unescape('%3E%20aNumber%0A%09%3Creturn%20self%20%3E%3E%20aNumber%3E'),
  1357. messageSends: [],
  1358. referencedClasses: []
  1359. }),
  1360. smalltalk.Number);
  1361. smalltalk.addMethod(
  1362. '__lt',
  1363. smalltalk.method({
  1364. selector: '<',
  1365. category: 'comparing',
  1366. fn: function (aNumber){
  1367. var self=this;
  1368. return self < aNumber;
  1369. return self;},
  1370. source: unescape('%3C%20aNumber%0A%09%3Creturn%20self%20%3C%20aNumber%3E'),
  1371. messageSends: [],
  1372. referencedClasses: []
  1373. }),
  1374. smalltalk.Number);
  1375. smalltalk.addMethod(
  1376. '__gt_eq',
  1377. smalltalk.method({
  1378. selector: '>=',
  1379. category: 'comparing',
  1380. fn: function (aNumber){
  1381. var self=this;
  1382. return self >= aNumber;
  1383. return self;},
  1384. source: unescape('%3E%3D%20aNumber%0A%09%3Creturn%20self%20%3E%3E%3D%20aNumber%3E'),
  1385. messageSends: [],
  1386. referencedClasses: []
  1387. }),
  1388. smalltalk.Number);
  1389. smalltalk.addMethod(
  1390. '__lt_eq',
  1391. smalltalk.method({
  1392. selector: '<=',
  1393. category: 'comparing',
  1394. fn: function (aNumber){
  1395. var self=this;
  1396. return self <= aNumber;
  1397. return self;},
  1398. source: unescape('%3C%3D%20aNumber%0A%09%3Creturn%20self%20%3C%3D%20aNumber%3E'),
  1399. messageSends: [],
  1400. referencedClasses: []
  1401. }),
  1402. smalltalk.Number);
  1403. smalltalk.addMethod(
  1404. '__plus',
  1405. smalltalk.method({
  1406. selector: '+',
  1407. category: 'arithmetic',
  1408. fn: function (aNumber){
  1409. var self=this;
  1410. return self + aNumber;
  1411. return self;},
  1412. source: unescape('+%20aNumber%0A%09%3Creturn%20self%20+%20aNumber%3E'),
  1413. messageSends: [],
  1414. referencedClasses: []
  1415. }),
  1416. smalltalk.Number);
  1417. smalltalk.addMethod(
  1418. '__minus',
  1419. smalltalk.method({
  1420. selector: '-',
  1421. category: 'arithmetic',
  1422. fn: function (aNumber){
  1423. var self=this;
  1424. return self - aNumber;
  1425. return self;},
  1426. source: unescape('-%20aNumber%0A%09%3Creturn%20self%20-%20aNumber%3E'),
  1427. messageSends: [],
  1428. referencedClasses: []
  1429. }),
  1430. smalltalk.Number);
  1431. smalltalk.addMethod(
  1432. '__star',
  1433. smalltalk.method({
  1434. selector: '*',
  1435. category: 'arithmetic',
  1436. fn: function (aNumber){
  1437. var self=this;
  1438. return self * aNumber;
  1439. return self;},
  1440. source: unescape('*%20aNumber%0A%09%3Creturn%20self%20*%20aNumber%3E'),
  1441. messageSends: [],
  1442. referencedClasses: []
  1443. }),
  1444. smalltalk.Number);
  1445. smalltalk.addMethod(
  1446. '__slash',
  1447. smalltalk.method({
  1448. selector: '/',
  1449. category: 'arithmetic',
  1450. fn: function (aNumber){
  1451. var self=this;
  1452. return self / aNumber;
  1453. return self;},
  1454. source: unescape('/%20aNumber%0A%09%3Creturn%20self%20/%20aNumber%3E'),
  1455. messageSends: [],
  1456. referencedClasses: []
  1457. }),
  1458. smalltalk.Number);
  1459. smalltalk.addMethod(
  1460. '_max_',
  1461. smalltalk.method({
  1462. selector: 'max:',
  1463. category: 'arithmetic',
  1464. fn: function (aNumber){
  1465. var self=this;
  1466. return Math.max(self, aNumber);;
  1467. return self;},
  1468. source: unescape('max%3A%20aNumber%0A%09%3Creturn%20Math.max%28self%2C%20aNumber%29%3B%3E'),
  1469. messageSends: [],
  1470. referencedClasses: []
  1471. }),
  1472. smalltalk.Number);
  1473. smalltalk.addMethod(
  1474. '_min_',
  1475. smalltalk.method({
  1476. selector: 'min:',
  1477. category: 'arithmetic',
  1478. fn: function (aNumber){
  1479. var self=this;
  1480. return Math.min(self, aNumber);;
  1481. return self;},
  1482. source: unescape('min%3A%20aNumber%0A%09%3Creturn%20Math.min%28self%2C%20aNumber%29%3B%3E'),
  1483. messageSends: [],
  1484. referencedClasses: []
  1485. }),
  1486. smalltalk.Number);
  1487. smalltalk.addMethod(
  1488. '_rounded',
  1489. smalltalk.method({
  1490. selector: 'rounded',
  1491. category: 'converting',
  1492. fn: function (){
  1493. var self=this;
  1494. return Math.round(self);;
  1495. return self;},
  1496. source: unescape('rounded%0A%09%3Creturn%20Math.round%28self%29%3B%3E'),
  1497. messageSends: [],
  1498. referencedClasses: []
  1499. }),
  1500. smalltalk.Number);
  1501. smalltalk.addMethod(
  1502. '_truncated',
  1503. smalltalk.method({
  1504. selector: 'truncated',
  1505. category: 'converting',
  1506. fn: function (){
  1507. var self=this;
  1508. return Math.floor(self);;
  1509. return self;},
  1510. source: unescape('truncated%0A%09%3Creturn%20Math.floor%28self%29%3B%3E'),
  1511. messageSends: [],
  1512. referencedClasses: []
  1513. }),
  1514. smalltalk.Number);
  1515. smalltalk.addMethod(
  1516. '_to_',
  1517. smalltalk.method({
  1518. selector: 'to:',
  1519. category: 'converting',
  1520. fn: function (aNumber){
  1521. var self=this;
  1522. var array=nil;
  1523. var first=nil;
  1524. var last=nil;
  1525. var count=nil;
  1526. first=smalltalk.send(self, "_truncated", []);
  1527. last=smalltalk.send(smalltalk.send(aNumber, "_truncated", []), "__plus", [(1)]);
  1528. count=(1);
  1529. smalltalk.send(smalltalk.send(first, "__lt_eq", [last]), "_ifFalse_", [(function(){return smalltalk.send(self, "_error_", ["Wrong interval"]);})]);
  1530. array=smalltalk.send(smalltalk.Array, "_new", []);
  1531. smalltalk.send(smalltalk.send(last, "__minus", [first]), "_timesRepeat_", [(function(){smalltalk.send(array, "_at_put_", [count, first]);count=smalltalk.send(count, "__plus", [(1)]);return first=smalltalk.send(first, "__plus", [(1)]);})]);
  1532. return array;
  1533. return self;},
  1534. 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%09%28first%20%3C%3D%20last%29%20ifFalse%3A%20%5Bself%20error%3A%20%27Wrong%20interval%27%5D.%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'),
  1535. messageSends: ["truncated", unescape("+"), "ifFalse:", unescape("%3C%3D"), "error:", "new", "timesRepeat:", unescape("-"), "at:put:"],
  1536. referencedClasses: [smalltalk.Array]
  1537. }),
  1538. smalltalk.Number);
  1539. smalltalk.addMethod(
  1540. '_timesRepeat_',
  1541. smalltalk.method({
  1542. selector: 'timesRepeat:',
  1543. category: 'enumerating',
  1544. fn: function (aBlock){
  1545. var self=this;
  1546. var integer=nil;
  1547. var count=nil;
  1548. integer=smalltalk.send(self, "_truncated", []);
  1549. count=(1);
  1550. smalltalk.send((function(){return smalltalk.send(count, "__gt", [self]);}), "_whileFalse_", [(function(){smalltalk.send(aBlock, "_value", []);return count=smalltalk.send(count, "__plus", [(1)]);})]);
  1551. return self;},
  1552. 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'),
  1553. messageSends: ["truncated", "whileFalse:", unescape("%3E"), "value", unescape("+")],
  1554. referencedClasses: []
  1555. }),
  1556. smalltalk.Number);
  1557. smalltalk.addMethod(
  1558. '_to_do_',
  1559. smalltalk.method({
  1560. selector: 'to:do:',
  1561. category: 'enumerating',
  1562. fn: function (aNumber, aBlock){
  1563. var self=this;
  1564. return smalltalk.send(smalltalk.send(self, "_to_", [aNumber]), "_do_", [aBlock]);
  1565. return self;},
  1566. source: unescape('to%3A%20aNumber%20do%3A%20aBlock%0A%09%5E%28self%20to%3A%20aNumber%29%20do%3A%20aBlock'),
  1567. messageSends: ["do:", "to:"],
  1568. referencedClasses: []
  1569. }),
  1570. smalltalk.Number);
  1571. smalltalk.addMethod(
  1572. '_asString',
  1573. smalltalk.method({
  1574. selector: 'asString',
  1575. category: 'converting',
  1576. fn: function (){
  1577. var self=this;
  1578. return smalltalk.send(self, "_printString", []);
  1579. return self;},
  1580. source: unescape('asString%0A%09%5Eself%20printString'),
  1581. messageSends: ["printString"],
  1582. referencedClasses: []
  1583. }),
  1584. smalltalk.Number);
  1585. smalltalk.addMethod(
  1586. '_asJavascript',
  1587. smalltalk.method({
  1588. selector: 'asJavascript',
  1589. category: 'converting',
  1590. fn: function (){
  1591. var self=this;
  1592. return smalltalk.send(smalltalk.send(unescape("%28"), "__comma", [smalltalk.send(self, "_printString", [])]), "__comma", [unescape("%29")]);
  1593. return self;},
  1594. source: unescape('asJavascript%0A%09%5E%27%28%27%2C%20self%20printString%2C%20%27%29%27'),
  1595. messageSends: [unescape("%2C"), "printString"],
  1596. referencedClasses: []
  1597. }),
  1598. smalltalk.Number);
  1599. smalltalk.addMethod(
  1600. '_printString',
  1601. smalltalk.method({
  1602. selector: 'printString',
  1603. category: 'printing',
  1604. fn: function (){
  1605. var self=this;
  1606. return String(self);
  1607. return self;},
  1608. source: unescape('printString%0A%09%3Creturn%20String%28self%29%3E'),
  1609. messageSends: [],
  1610. referencedClasses: []
  1611. }),
  1612. smalltalk.Number);
  1613. smalltalk.addMethod(
  1614. '_isNumber',
  1615. smalltalk.method({
  1616. selector: 'isNumber',
  1617. category: 'testing',
  1618. fn: function (){
  1619. var self=this;
  1620. return true;
  1621. return self;},
  1622. source: unescape('isNumber%0A%09%5Etrue'),
  1623. messageSends: [],
  1624. referencedClasses: []
  1625. }),
  1626. smalltalk.Number);
  1627. smalltalk.addMethod(
  1628. '_atRandom',
  1629. smalltalk.method({
  1630. selector: 'atRandom',
  1631. category: 'converting',
  1632. fn: function (){
  1633. var self=this;
  1634. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.Random, "_new", []), "_next", []), "__star", [self]), "_truncated", []), "__plus", [(1)]);
  1635. return self;},
  1636. source: unescape('atRandom%0A%20%20%20%20%5E%28Random%20new%20next%20*%20self%29%20truncated%20+%201'),
  1637. messageSends: [unescape("+"), "truncated", unescape("*"), "next", "new"],
  1638. referencedClasses: [smalltalk.nil]
  1639. }),
  1640. smalltalk.Number);
  1641. smalltalk.addMethod(
  1642. '__at',
  1643. smalltalk.method({
  1644. selector: '@',
  1645. category: 'converting',
  1646. fn: function (aNumber){
  1647. var self=this;
  1648. return smalltalk.send(smalltalk.Point, "_x_y_", [self, aNumber]);
  1649. return self;},
  1650. source: unescape('@%20aNumber%0A%09%5EPoint%20x%3A%20self%20y%3A%20aNumber'),
  1651. messageSends: ["x:y:"],
  1652. referencedClasses: [smalltalk.nil]
  1653. }),
  1654. smalltalk.Number);
  1655. smalltalk.addMethod(
  1656. '_asPoint',
  1657. smalltalk.method({
  1658. selector: 'asPoint',
  1659. category: 'converting',
  1660. fn: function (){
  1661. var self=this;
  1662. return smalltalk.send(smalltalk.Point, "_x_y_", [self, self]);
  1663. return self;},
  1664. source: unescape('asPoint%0A%09%5EPoint%20x%3A%20self%20y%3A%20self'),
  1665. messageSends: ["x:y:"],
  1666. referencedClasses: [smalltalk.nil]
  1667. }),
  1668. smalltalk.Number);
  1669. smalltalk.addMethod(
  1670. '_clearInterval',
  1671. smalltalk.method({
  1672. selector: 'clearInterval',
  1673. category: 'timeouts/intervals',
  1674. fn: function (){
  1675. var self=this;
  1676. clearInterval(Number(self));
  1677. return self;},
  1678. source: unescape('clearInterval%0A%09%3CclearInterval%28Number%28self%29%29%3E'),
  1679. messageSends: [],
  1680. referencedClasses: []
  1681. }),
  1682. smalltalk.Number);
  1683. smalltalk.addMethod(
  1684. '_asJSONObject',
  1685. smalltalk.method({
  1686. selector: 'asJSONObject',
  1687. category: 'converting',
  1688. fn: function (){
  1689. var self=this;
  1690. return self;
  1691. return self;},
  1692. source: unescape('asJSONObject%0A%09%5Eself'),
  1693. messageSends: [],
  1694. referencedClasses: []
  1695. }),
  1696. smalltalk.Number);
  1697. smalltalk.addMethod(
  1698. '_clearTimeout',
  1699. smalltalk.method({
  1700. selector: 'clearTimeout',
  1701. category: 'timeouts/intervals',
  1702. fn: function (){
  1703. var self=this;
  1704. clearTimeout(Number(self));
  1705. return self;},
  1706. source: unescape('clearTimeout%0A%09%3CclearTimeout%28Number%28self%29%29%3E'),
  1707. messageSends: [],
  1708. referencedClasses: []
  1709. }),
  1710. smalltalk.Number);
  1711. smalltalk.addMethod(
  1712. '_pi',
  1713. smalltalk.method({
  1714. selector: 'pi',
  1715. category: 'instance creation',
  1716. fn: function (){
  1717. var self=this;
  1718. return Math.PI;
  1719. return self;},
  1720. source: unescape('pi%0A%09%3Creturn%20Math.PI%3E'),
  1721. messageSends: [],
  1722. referencedClasses: []
  1723. }),
  1724. smalltalk.Number.klass);
  1725. smalltalk.addClass('BlockClosure', smalltalk.Object, [], 'Kernel');
  1726. smalltalk.addMethod(
  1727. '_compiledSource',
  1728. smalltalk.method({
  1729. selector: 'compiledSource',
  1730. category: 'accessing',
  1731. fn: function (){
  1732. var self=this;
  1733. return self.toString();
  1734. return self;},
  1735. source: unescape('compiledSource%0A%09%3Creturn%20self.toString%28%29%3E'),
  1736. messageSends: [],
  1737. referencedClasses: []
  1738. }),
  1739. smalltalk.BlockClosure);
  1740. smalltalk.addMethod(
  1741. '_whileTrue_',
  1742. smalltalk.method({
  1743. selector: 'whileTrue:',
  1744. category: 'controlling',
  1745. fn: function (aBlock){
  1746. var self=this;
  1747. while(self()) {aBlock()};
  1748. return self;},
  1749. source: unescape('whileTrue%3A%20aBlock%0A%09%3Cwhile%28self%28%29%29%20%7BaBlock%28%29%7D%3E'),
  1750. messageSends: [],
  1751. referencedClasses: []
  1752. }),
  1753. smalltalk.BlockClosure);
  1754. smalltalk.addMethod(
  1755. '_whileFalse_',
  1756. smalltalk.method({
  1757. selector: 'whileFalse:',
  1758. category: 'controlling',
  1759. fn: function (aBlock){
  1760. var self=this;
  1761. while(!self()) {aBlock()};
  1762. return self;},
  1763. source: unescape('whileFalse%3A%20aBlock%0A%09%3Cwhile%28%21self%28%29%29%20%7BaBlock%28%29%7D%3E'),
  1764. messageSends: [],
  1765. referencedClasses: []
  1766. }),
  1767. smalltalk.BlockClosure);
  1768. smalltalk.addMethod(
  1769. '_value',
  1770. smalltalk.method({
  1771. selector: 'value',
  1772. category: 'evaluating',
  1773. fn: function (){
  1774. var self=this;
  1775. return self();;
  1776. return self;},
  1777. source: unescape('value%0A%09%3Creturn%20self%28%29%3B%3E'),
  1778. messageSends: [],
  1779. referencedClasses: []
  1780. }),
  1781. smalltalk.BlockClosure);
  1782. smalltalk.addMethod(
  1783. '_value_',
  1784. smalltalk.method({
  1785. selector: 'value:',
  1786. category: 'evaluating',
  1787. fn: function (anArg){
  1788. var self=this;
  1789. return self(anArg);;
  1790. return self;},
  1791. source: unescape('value%3A%20anArg%0A%09%3Creturn%20self%28anArg%29%3B%3E'),
  1792. messageSends: [],
  1793. referencedClasses: []
  1794. }),
  1795. smalltalk.BlockClosure);
  1796. smalltalk.addMethod(
  1797. '_value_value_',
  1798. smalltalk.method({
  1799. selector: 'value:value:',
  1800. category: 'evaluating',
  1801. fn: function (firstArg, secondArg){
  1802. var self=this;
  1803. return self(firstArg, secondArg);;
  1804. return self;},
  1805. source: unescape('value%3A%20firstArg%20value%3A%20secondArg%0A%09%3Creturn%20self%28firstArg%2C%20secondArg%29%3B%3E'),
  1806. messageSends: [],
  1807. referencedClasses: []
  1808. }),
  1809. smalltalk.BlockClosure);
  1810. smalltalk.addMethod(
  1811. '_value_value_value_',
  1812. smalltalk.method({
  1813. selector: 'value:value:value:',
  1814. category: 'evaluating',
  1815. fn: function (firstArg, secondArg, thirdArg){
  1816. var self=this;
  1817. return self(firstArg, secondArg, thirdArg);;
  1818. return self;},
  1819. source: unescape('value%3A%20firstArg%20value%3A%20secondArg%20value%3A%20thirdArg%0A%09%3Creturn%20self%28firstArg%2C%20secondArg%2C%20thirdArg%29%3B%3E'),
  1820. messageSends: [],
  1821. referencedClasses: []
  1822. }),
  1823. smalltalk.BlockClosure);
  1824. smalltalk.addMethod(
  1825. '_valueWithPossibleArguments_',
  1826. smalltalk.method({
  1827. selector: 'valueWithPossibleArguments:',
  1828. category: 'evaluating',
  1829. fn: function (aCollection){
  1830. var self=this;
  1831. return self.apply(null, aCollection);;
  1832. return self;},
  1833. source: unescape('valueWithPossibleArguments%3A%20aCollection%0A%09%3Creturn%20self.apply%28null%2C%20aCollection%29%3B%3E'),
  1834. messageSends: [],
  1835. referencedClasses: []
  1836. }),
  1837. smalltalk.BlockClosure);
  1838. smalltalk.addMethod(
  1839. '_on_do_',
  1840. smalltalk.method({
  1841. selector: 'on:do:',
  1842. category: 'error handling',
  1843. fn: function (anErrorClass, aBlock){
  1844. var self=this;
  1845. smalltalk.send(self, "_try_catch_", [self, (function(error){return smalltalk.send(smalltalk.send(error, "_isKindOf_", [anErrorClass]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(aBlock, "_value_", [error]);}), (function(){return smalltalk.send(error, "_signal", []);})]);})]);
  1846. return self;},
  1847. 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'),
  1848. messageSends: ["try:catch:", "ifTrue:ifFalse:", "isKindOf:", "value:", "signal"],
  1849. referencedClasses: []
  1850. }),
  1851. smalltalk.BlockClosure);
  1852. smalltalk.addMethod(
  1853. '_valueWithTimeout_',
  1854. smalltalk.method({
  1855. selector: 'valueWithTimeout:',
  1856. category: 'timeout/interval',
  1857. fn: function (aNumber){
  1858. var self=this;
  1859. return setTimeout(self, aNumber);
  1860. return self;},
  1861. source: unescape('valueWithTimeout%3A%20aNumber%0A%09%3Creturn%20setTimeout%28self%2C%20aNumber%29%3E'),
  1862. messageSends: [],
  1863. referencedClasses: []
  1864. }),
  1865. smalltalk.BlockClosure);
  1866. smalltalk.addMethod(
  1867. '_valueWithInterval_',
  1868. smalltalk.method({
  1869. selector: 'valueWithInterval:',
  1870. category: 'timeout/interval',
  1871. fn: function (aNumber){
  1872. var self=this;
  1873. return setInterval(self, aNumber);
  1874. return self;},
  1875. source: unescape('valueWithInterval%3A%20aNumber%0A%09%3Creturn%20setInterval%28self%2C%20aNumber%29%3E'),
  1876. messageSends: [],
  1877. referencedClasses: []
  1878. }),
  1879. smalltalk.BlockClosure);
  1880. smalltalk.addClass('Boolean', smalltalk.Object, [], 'Kernel');
  1881. smalltalk.addMethod(
  1882. '__eq',
  1883. smalltalk.method({
  1884. selector: '=',
  1885. category: 'comparing',
  1886. fn: function (aBoolean){
  1887. var self=this;
  1888. return Boolean(self == true) == aBoolean;
  1889. return self;},
  1890. source: unescape('%3D%20aBoolean%0A%09%3Creturn%20Boolean%28self%20%3D%3D%20true%29%20%3D%3D%20aBoolean%3E'),
  1891. messageSends: [],
  1892. referencedClasses: []
  1893. }),
  1894. smalltalk.Boolean);
  1895. smalltalk.addMethod(
  1896. '_shallowCopy',
  1897. smalltalk.method({
  1898. selector: 'shallowCopy',
  1899. category: 'copying',
  1900. fn: function (){
  1901. var self=this;
  1902. return self;
  1903. return self;},
  1904. source: unescape('shallowCopy%0A%09%5Eself'),
  1905. messageSends: [],
  1906. referencedClasses: []
  1907. }),
  1908. smalltalk.Boolean);
  1909. smalltalk.addMethod(
  1910. '_deepCopy',
  1911. smalltalk.method({
  1912. selector: 'deepCopy',
  1913. category: 'copying',
  1914. fn: function (){
  1915. var self=this;
  1916. return self;
  1917. return self;},
  1918. source: unescape('deepCopy%0A%09%5Eself'),
  1919. messageSends: [],
  1920. referencedClasses: []
  1921. }),
  1922. smalltalk.Boolean);
  1923. smalltalk.addMethod(
  1924. '_ifTrue_',
  1925. smalltalk.method({
  1926. selector: 'ifTrue:',
  1927. category: 'controlling',
  1928. fn: function (aBlock){
  1929. var self=this;
  1930. return smalltalk.send(self, "_ifTrue_ifFalse_", [aBlock, (function(){return nil;})]);
  1931. return self;},
  1932. source: unescape('ifTrue%3A%20aBlock%0A%09%5Eself%20ifTrue%3A%20aBlock%20ifFalse%3A%20%5B%5D'),
  1933. messageSends: ["ifTrue:ifFalse:"],
  1934. referencedClasses: []
  1935. }),
  1936. smalltalk.Boolean);
  1937. smalltalk.addMethod(
  1938. '_ifFalse_',
  1939. smalltalk.method({
  1940. selector: 'ifFalse:',
  1941. category: 'controlling',
  1942. fn: function (aBlock){
  1943. var self=this;
  1944. return smalltalk.send(self, "_ifTrue_ifFalse_", [(function(){return nil;}), aBlock]);
  1945. return self;},
  1946. source: unescape('ifFalse%3A%20aBlock%0A%09%5Eself%20ifTrue%3A%20%5B%5D%20ifFalse%3A%20aBlock'),
  1947. messageSends: ["ifTrue:ifFalse:"],
  1948. referencedClasses: []
  1949. }),
  1950. smalltalk.Boolean);
  1951. smalltalk.addMethod(
  1952. '_ifFalse_ifTrue_',
  1953. smalltalk.method({
  1954. selector: 'ifFalse:ifTrue:',
  1955. category: 'controlling',
  1956. fn: function (aBlock, anotherBlock){
  1957. var self=this;
  1958. return smalltalk.send(self, "_ifTrue_ifFalse_", [anotherBlock, aBlock]);
  1959. return self;},
  1960. source: unescape('ifFalse%3A%20aBlock%20ifTrue%3A%20anotherBlock%0A%09%5Eself%20ifTrue%3A%20anotherBlock%20ifFalse%3A%20aBlock'),
  1961. messageSends: ["ifTrue:ifFalse:"],
  1962. referencedClasses: []
  1963. }),
  1964. smalltalk.Boolean);
  1965. smalltalk.addMethod(
  1966. '_ifTrue_ifFalse_',
  1967. smalltalk.method({
  1968. selector: 'ifTrue:ifFalse:',
  1969. category: 'controlling',
  1970. fn: function (aBlock, anotherBlock){
  1971. var self=this;
  1972. if(self == true) {
  1973. return aBlock();
  1974. } else {
  1975. return anotherBlock();
  1976. }
  1977. ;
  1978. return self;},
  1979. source: unescape('ifTrue%3A%20aBlock%20ifFalse%3A%20anotherBlock%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'),
  1980. messageSends: [],
  1981. referencedClasses: []
  1982. }),
  1983. smalltalk.Boolean);
  1984. smalltalk.addMethod(
  1985. '_and_',
  1986. smalltalk.method({
  1987. selector: 'and:',
  1988. category: 'controlling',
  1989. fn: function (aBlock){
  1990. var self=this;
  1991. return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [aBlock, (function(){return false;})]);
  1992. return self;},
  1993. 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'),
  1994. messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
  1995. referencedClasses: []
  1996. }),
  1997. smalltalk.Boolean);
  1998. smalltalk.addMethod(
  1999. '_or_',
  2000. smalltalk.method({
  2001. selector: 'or:',
  2002. category: 'controlling',
  2003. fn: function (aBlock){
  2004. var self=this;
  2005. return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [(function(){return true;}), aBlock]);
  2006. return self;},
  2007. 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'),
  2008. messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
  2009. referencedClasses: []
  2010. }),
  2011. smalltalk.Boolean);
  2012. smalltalk.addMethod(
  2013. '_not',
  2014. smalltalk.method({
  2015. selector: 'not',
  2016. category: 'controlling',
  2017. fn: function (){
  2018. var self=this;
  2019. return smalltalk.send(self, "__eq", [false]);
  2020. return self;},
  2021. source: unescape('not%0A%09%5Eself%20%3D%20false'),
  2022. messageSends: [unescape("%3D")],
  2023. referencedClasses: []
  2024. }),
  2025. smalltalk.Boolean);
  2026. smalltalk.addMethod(
  2027. '_printString',
  2028. smalltalk.method({
  2029. selector: 'printString',
  2030. category: 'printing',
  2031. fn: function (){
  2032. var self=this;
  2033. return self.toString();
  2034. return self;},
  2035. source: unescape('printString%0A%09%3Creturn%20self.toString%28%29%3E'),
  2036. messageSends: [],
  2037. referencedClasses: []
  2038. }),
  2039. smalltalk.Boolean);
  2040. smalltalk.addMethod(
  2041. '_asJSONObject',
  2042. smalltalk.method({
  2043. selector: 'asJSONObject',
  2044. category: 'comparing',
  2045. fn: function (){
  2046. var self=this;
  2047. return self;
  2048. return self;},
  2049. source: unescape('asJSONObject%0A%09%5Eself'),
  2050. messageSends: [],
  2051. referencedClasses: []
  2052. }),
  2053. smalltalk.Boolean);
  2054. smalltalk.addClass('Date', smalltalk.Object, [], 'Kernel');
  2055. smalltalk.Date.comment=unescape('The%20Date%20class%20is%20used%20to%20work%20with%20dates%20and%20times.')
  2056. smalltalk.addMethod(
  2057. '_year',
  2058. smalltalk.method({
  2059. selector: 'year',
  2060. category: 'accessing',
  2061. fn: function (){
  2062. var self=this;
  2063. return self.getFullYear();
  2064. return self;},
  2065. source: unescape('year%0A%09%3Creturn%20self.getFullYear%28%29%3E'),
  2066. messageSends: [],
  2067. referencedClasses: []
  2068. }),
  2069. smalltalk.Date);
  2070. smalltalk.addMethod(
  2071. '_month',
  2072. smalltalk.method({
  2073. selector: 'month',
  2074. category: 'accessing',
  2075. fn: function (){
  2076. var self=this;
  2077. return self.getMonth() + 1;
  2078. return self;},
  2079. source: unescape('month%0A%09%3Creturn%20self.getMonth%28%29%20+%201%3E'),
  2080. messageSends: [],
  2081. referencedClasses: []
  2082. }),
  2083. smalltalk.Date);
  2084. smalltalk.addMethod(
  2085. '_month_',
  2086. smalltalk.method({
  2087. selector: 'month:',
  2088. category: 'accessing',
  2089. fn: function (aNumber){
  2090. var self=this;
  2091. self.setMonth(aNumber - 1);
  2092. return self;},
  2093. source: unescape('month%3A%20aNumber%0A%09%3Cself.setMonth%28aNumber%20-%201%29%3E'),
  2094. messageSends: [],
  2095. referencedClasses: []
  2096. }),
  2097. smalltalk.Date);
  2098. smalltalk.addMethod(
  2099. '_day',
  2100. smalltalk.method({
  2101. selector: 'day',
  2102. category: 'accessing',
  2103. fn: function (){
  2104. var self=this;
  2105. return smalltalk.send(self, "_dayOfWeek", []);
  2106. return self;},
  2107. source: unescape('day%0A%09%5Eself%20dayOfWeek'),
  2108. messageSends: ["dayOfWeek"],
  2109. referencedClasses: []
  2110. }),
  2111. smalltalk.Date);
  2112. smalltalk.addMethod(
  2113. '_dayOfWeek',
  2114. smalltalk.method({
  2115. selector: 'dayOfWeek',
  2116. category: 'accessing',
  2117. fn: function (){
  2118. var self=this;
  2119. return self.getDay() + 1;
  2120. return self;},
  2121. source: unescape('dayOfWeek%0A%09%3Creturn%20self.getDay%28%29%20+%201%3E'),
  2122. messageSends: [],
  2123. referencedClasses: []
  2124. }),
  2125. smalltalk.Date);
  2126. smalltalk.addMethod(
  2127. '_dayOfWeek_',
  2128. smalltalk.method({
  2129. selector: 'dayOfWeek:',
  2130. category: 'accessing',
  2131. fn: function (aNumber){
  2132. var self=this;
  2133. return self.setDay(aNumber - 1);
  2134. return self;},
  2135. source: unescape('dayOfWeek%3A%20aNumber%0A%09%3Creturn%20self.setDay%28aNumber%20-%201%29%3E'),
  2136. messageSends: [],
  2137. referencedClasses: []
  2138. }),
  2139. smalltalk.Date);
  2140. smalltalk.addMethod(
  2141. '_day_',
  2142. smalltalk.method({
  2143. selector: 'day:',
  2144. category: 'accessing',
  2145. fn: function (aNumber){
  2146. var self=this;
  2147. smalltalk.send(self, "_day_", [aNumber]);
  2148. return self;},
  2149. source: unescape('day%3A%20aNumber%0A%09self%20day%3A%20aNumber'),
  2150. messageSends: ["day:"],
  2151. referencedClasses: []
  2152. }),
  2153. smalltalk.Date);
  2154. smalltalk.addMethod(
  2155. '_year_',
  2156. smalltalk.method({
  2157. selector: 'year:',
  2158. category: 'accessing',
  2159. fn: function (aNumber){
  2160. var self=this;
  2161. self.setFullYear(aNumber);
  2162. return self;},
  2163. source: unescape('year%3A%20aNumber%0A%09%3Cself.setFullYear%28aNumber%29%3E'),
  2164. messageSends: [],
  2165. referencedClasses: []
  2166. }),
  2167. smalltalk.Date);
  2168. smalltalk.addMethod(
  2169. '_dayOfMonth',
  2170. smalltalk.method({
  2171. selector: 'dayOfMonth',
  2172. category: 'accessing',
  2173. fn: function (){
  2174. var self=this;
  2175. return self.getDate();
  2176. return self;},
  2177. source: unescape('dayOfMonth%0A%09%3Creturn%20self.getDate%28%29%3E'),
  2178. messageSends: [],
  2179. referencedClasses: []
  2180. }),
  2181. smalltalk.Date);
  2182. smalltalk.addMethod(
  2183. '_dayOfMonth_',
  2184. smalltalk.method({
  2185. selector: 'dayOfMonth:',
  2186. category: 'accessing',
  2187. fn: function (aNumber){
  2188. var self=this;
  2189. self.setDate(aNumber);
  2190. return self;},
  2191. source: unescape('dayOfMonth%3A%20aNumber%0A%09%3Cself.setDate%28aNumber%29%3E'),
  2192. messageSends: [],
  2193. referencedClasses: []
  2194. }),
  2195. smalltalk.Date);
  2196. smalltalk.addMethod(
  2197. '_asString',
  2198. smalltalk.method({
  2199. selector: 'asString',
  2200. category: 'converting',
  2201. fn: function (){
  2202. var self=this;
  2203. return self.toString();
  2204. return self;},
  2205. source: unescape('asString%0A%09%3Creturn%20self.toString%28%29%3E'),
  2206. messageSends: [],
  2207. referencedClasses: []
  2208. }),
  2209. smalltalk.Date);
  2210. smalltalk.addMethod(
  2211. '_printString',
  2212. smalltalk.method({
  2213. selector: 'printString',
  2214. category: 'printing',
  2215. fn: function (){
  2216. var self=this;
  2217. return smalltalk.send(self, "_asString", []);
  2218. return self;},
  2219. source: unescape('printString%0A%09%5Eself%20asString'),
  2220. messageSends: ["asString"],
  2221. referencedClasses: []
  2222. }),
  2223. smalltalk.Date);
  2224. smalltalk.addMethod(
  2225. '_asMilliseconds',
  2226. smalltalk.method({
  2227. selector: 'asMilliseconds',
  2228. category: 'converting',
  2229. fn: function (){
  2230. var self=this;
  2231. return smalltalk.send(self, "_time", []);
  2232. return self;},
  2233. source: unescape('asMilliseconds%0A%09%5Eself%20time'),
  2234. messageSends: ["time"],
  2235. referencedClasses: []
  2236. }),
  2237. smalltalk.Date);
  2238. smalltalk.addMethod(
  2239. '_time',
  2240. smalltalk.method({
  2241. selector: 'time',
  2242. category: 'accessing',
  2243. fn: function (){
  2244. var self=this;
  2245. return self.getTime();
  2246. return self;},
  2247. source: unescape('time%0A%09%3Creturn%20self.getTime%28%29%3E'),
  2248. messageSends: [],
  2249. referencedClasses: []
  2250. }),
  2251. smalltalk.Date);
  2252. smalltalk.addMethod(
  2253. '_time_',
  2254. smalltalk.method({
  2255. selector: 'time:',
  2256. category: 'accessing',
  2257. fn: function (aNumber){
  2258. var self=this;
  2259. self.setTime(aNumber);
  2260. return self;},
  2261. source: unescape('time%3A%20aNumber%0A%09%3Cself.setTime%28aNumber%29%3E'),
  2262. messageSends: [],
  2263. referencedClasses: []
  2264. }),
  2265. smalltalk.Date);
  2266. smalltalk.addMethod(
  2267. '_asDateString',
  2268. smalltalk.method({
  2269. selector: 'asDateString',
  2270. category: 'converting',
  2271. fn: function (){
  2272. var self=this;
  2273. return self.toDateString();
  2274. return self;},
  2275. source: unescape('asDateString%0A%09%3Creturn%20self.toDateString%28%29%3E'),
  2276. messageSends: [],
  2277. referencedClasses: []
  2278. }),
  2279. smalltalk.Date);
  2280. smalltalk.addMethod(
  2281. '_asTimeString',
  2282. smalltalk.method({
  2283. selector: 'asTimeString',
  2284. category: 'converting',
  2285. fn: function (){
  2286. var self=this;
  2287. return self.toTimeString();
  2288. return self;},
  2289. source: unescape('asTimeString%0A%09%3Creturn%20self.toTimeString%28%29%3E'),
  2290. messageSends: [],
  2291. referencedClasses: []
  2292. }),
  2293. smalltalk.Date);
  2294. smalltalk.addMethod(
  2295. '_asLocaleString',
  2296. smalltalk.method({
  2297. selector: 'asLocaleString',
  2298. category: 'converting',
  2299. fn: function (){
  2300. var self=this;
  2301. return self.toLocaleString();
  2302. return self;},
  2303. source: unescape('asLocaleString%0A%09%3Creturn%20self.toLocaleString%28%29%3E'),
  2304. messageSends: [],
  2305. referencedClasses: []
  2306. }),
  2307. smalltalk.Date);
  2308. smalltalk.addMethod(
  2309. '_asNumber',
  2310. smalltalk.method({
  2311. selector: 'asNumber',
  2312. category: 'converting',
  2313. fn: function (){
  2314. var self=this;
  2315. return smalltalk.send(self, "_asMilliseconds", []);
  2316. return self;},
  2317. source: unescape('asNumber%0A%09%5Eself%20asMilliseconds'),
  2318. messageSends: ["asMilliseconds"],
  2319. referencedClasses: []
  2320. }),
  2321. smalltalk.Date);
  2322. smalltalk.addMethod(
  2323. '_hours_',
  2324. smalltalk.method({
  2325. selector: 'hours:',
  2326. category: 'accessing',
  2327. fn: function (aNumber){
  2328. var self=this;
  2329. self.setHours(aNumber);
  2330. return self;},
  2331. source: unescape('hours%3A%20aNumber%0A%09%3Cself.setHours%28aNumber%29%3E'),
  2332. messageSends: [],
  2333. referencedClasses: []
  2334. }),
  2335. smalltalk.Date);
  2336. smalltalk.addMethod(
  2337. '_minutes_',
  2338. smalltalk.method({
  2339. selector: 'minutes:',
  2340. category: 'accessing',
  2341. fn: function (aNumber){
  2342. var self=this;
  2343. self.setMinutes(aNumber);
  2344. return self;},
  2345. source: unescape('minutes%3A%20aNumber%0A%09%3Cself.setMinutes%28aNumber%29%3E'),
  2346. messageSends: [],
  2347. referencedClasses: []
  2348. }),
  2349. smalltalk.Date);
  2350. smalltalk.addMethod(
  2351. '_seconds_',
  2352. smalltalk.method({
  2353. selector: 'seconds:',
  2354. category: 'accessing',
  2355. fn: function (aNumber){
  2356. var self=this;
  2357. self.setSeconds(aNumber);
  2358. return self;},
  2359. source: unescape('seconds%3A%20aNumber%0A%09%3Cself.setSeconds%28aNumber%29%3E'),
  2360. messageSends: [],
  2361. referencedClasses: []
  2362. }),
  2363. smalltalk.Date);
  2364. smalltalk.addMethod(
  2365. '_milliseconds_',
  2366. smalltalk.method({
  2367. selector: 'milliseconds:',
  2368. category: 'accessing',
  2369. fn: function (aNumber){
  2370. var self=this;
  2371. self.setMilliseconds(aNumber);
  2372. return self;},
  2373. source: unescape('milliseconds%3A%20aNumber%0A%09%3Cself.setMilliseconds%28aNumber%29%3E'),
  2374. messageSends: [],
  2375. referencedClasses: []
  2376. }),
  2377. smalltalk.Date);
  2378. smalltalk.addMethod(
  2379. '_hours',
  2380. smalltalk.method({
  2381. selector: 'hours',
  2382. category: 'accessing',
  2383. fn: function (){
  2384. var self=this;
  2385. return self.getHours();
  2386. return self;},
  2387. source: unescape('hours%0A%09%3Creturn%20self.getHours%28%29%3E'),
  2388. messageSends: [],
  2389. referencedClasses: []
  2390. }),
  2391. smalltalk.Date);
  2392. smalltalk.addMethod(
  2393. '_minutes',
  2394. smalltalk.method({
  2395. selector: 'minutes',
  2396. category: 'accessing',
  2397. fn: function (){
  2398. var self=this;
  2399. return self.getMinutes();
  2400. return self;},
  2401. source: unescape('minutes%0A%09%3Creturn%20self.getMinutes%28%29%3E'),
  2402. messageSends: [],
  2403. referencedClasses: []
  2404. }),
  2405. smalltalk.Date);
  2406. smalltalk.addMethod(
  2407. '_seconds',
  2408. smalltalk.method({
  2409. selector: 'seconds',
  2410. category: 'accessing',
  2411. fn: function (){
  2412. var self=this;
  2413. return self.getSeconds();
  2414. return self;},
  2415. source: unescape('seconds%0A%09%3Creturn%20self.getSeconds%28%29%3E'),
  2416. messageSends: [],
  2417. referencedClasses: []
  2418. }),
  2419. smalltalk.Date);
  2420. smalltalk.addMethod(
  2421. '_milliseconds',
  2422. smalltalk.method({
  2423. selector: 'milliseconds',
  2424. category: 'accessing',
  2425. fn: function (){
  2426. var self=this;
  2427. return self.getMilliseconds();
  2428. return self;},
  2429. source: unescape('milliseconds%0A%09%3Creturn%20self.getMilliseconds%28%29%3E'),
  2430. messageSends: [],
  2431. referencedClasses: []
  2432. }),
  2433. smalltalk.Date);
  2434. smalltalk.addMethod(
  2435. '__lt',
  2436. smalltalk.method({
  2437. selector: '<',
  2438. category: 'comparing',
  2439. fn: function (aDate){
  2440. var self=this;
  2441. return self < aDate;
  2442. return self;},
  2443. source: unescape('%3C%20aDate%0A%09%3Creturn%20self%20%3C%20aDate%3E'),
  2444. messageSends: [],
  2445. referencedClasses: []
  2446. }),
  2447. smalltalk.Date);
  2448. smalltalk.addMethod(
  2449. '__gt',
  2450. smalltalk.method({
  2451. selector: '>',
  2452. category: 'comparing',
  2453. fn: function (aDate){
  2454. var self=this;
  2455. return self > aDate;
  2456. return self;},
  2457. source: unescape('%3E%20aDate%0A%09%3Creturn%20self%20%3E%3E%20aDate%3E'),
  2458. messageSends: [],
  2459. referencedClasses: []
  2460. }),
  2461. smalltalk.Date);
  2462. smalltalk.addMethod(
  2463. '__lt_eq',
  2464. smalltalk.method({
  2465. selector: '<=',
  2466. category: 'comparing',
  2467. fn: function (aDate){
  2468. var self=this;
  2469. self <= aDate;
  2470. return self;},
  2471. source: unescape('%3C%3D%20aDate%0A%09%3Cself%20%3C%3D%20aDate%3E'),
  2472. messageSends: [],
  2473. referencedClasses: []
  2474. }),
  2475. smalltalk.Date);
  2476. smalltalk.addMethod(
  2477. '__gt_eq',
  2478. smalltalk.method({
  2479. selector: '>=',
  2480. category: 'comparing',
  2481. fn: function (aDate){
  2482. var self=this;
  2483. self >= aDate;
  2484. return self;},
  2485. source: unescape('%3E%3D%20aDate%0A%09%3Cself%20%3E%3E%3D%20aDate%3E'),
  2486. messageSends: [],
  2487. referencedClasses: []
  2488. }),
  2489. smalltalk.Date);
  2490. smalltalk.addMethod(
  2491. '__minus',
  2492. smalltalk.method({
  2493. selector: '-',
  2494. category: 'arithmetic',
  2495. fn: function (aDate){
  2496. var self=this;
  2497. return self - aDate;
  2498. return self;},
  2499. source: unescape('-%20aDate%0A%09%3Creturn%20self%20-%20aDate%3E'),
  2500. messageSends: [],
  2501. referencedClasses: []
  2502. }),
  2503. smalltalk.Date);
  2504. smalltalk.addMethod(
  2505. '__plus',
  2506. smalltalk.method({
  2507. selector: '+',
  2508. category: 'arithmetic',
  2509. fn: function (aDate){
  2510. var self=this;
  2511. return self + aDate;
  2512. return self;},
  2513. source: unescape('+%20aDate%0A%09%3Creturn%20self%20+%20aDate%3E'),
  2514. messageSends: [],
  2515. referencedClasses: []
  2516. }),
  2517. smalltalk.Date);
  2518. smalltalk.addMethod(
  2519. '_asJSONObject',
  2520. smalltalk.method({
  2521. selector: 'asJSONObject',
  2522. category: 'converting',
  2523. fn: function (){
  2524. var self=this;
  2525. return self;
  2526. return self;},
  2527. source: unescape('asJSONObject%0A%09%5Eself'),
  2528. messageSends: [],
  2529. referencedClasses: []
  2530. }),
  2531. smalltalk.Date);
  2532. smalltalk.addMethod(
  2533. '_new_',
  2534. smalltalk.method({
  2535. selector: 'new:',
  2536. category: 'instance creation',
  2537. fn: function (anObject){
  2538. var self=this;
  2539. return new Date(anObject);
  2540. return self;},
  2541. source: unescape('new%3A%20anObject%0A%09%3Creturn%20new%20Date%28anObject%29%3E'),
  2542. messageSends: [],
  2543. referencedClasses: []
  2544. }),
  2545. smalltalk.Date.klass);
  2546. smalltalk.addMethod(
  2547. '_fromString_',
  2548. smalltalk.method({
  2549. selector: 'fromString:',
  2550. category: 'instance creation',
  2551. fn: function (aString){
  2552. var self=this;
  2553. return smalltalk.send(self, "_new_", [aString]);
  2554. return self;},
  2555. 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'),
  2556. messageSends: ["new:"],
  2557. referencedClasses: []
  2558. }),
  2559. smalltalk.Date.klass);
  2560. smalltalk.addMethod(
  2561. '_fromSeconds_',
  2562. smalltalk.method({
  2563. selector: 'fromSeconds:',
  2564. category: 'instance creation',
  2565. fn: function (aNumber){
  2566. var self=this;
  2567. return smalltalk.send(self, "_fromMilliseconds_", [smalltalk.send(aNumber, "__star", [(1000)])]);
  2568. return self;},
  2569. source: unescape('fromSeconds%3A%20aNumber%0A%09%5Eself%20fromMilliseconds%3A%20aNumber%20*%201000'),
  2570. messageSends: ["fromMilliseconds:", unescape("*")],
  2571. referencedClasses: []
  2572. }),
  2573. smalltalk.Date.klass);
  2574. smalltalk.addMethod(
  2575. '_fromMilliseconds_',
  2576. smalltalk.method({
  2577. selector: 'fromMilliseconds:',
  2578. category: 'instance creation',
  2579. fn: function (aNumber){
  2580. var self=this;
  2581. return smalltalk.send(self, "_new_", [aNumber]);
  2582. return self;},
  2583. source: unescape('fromMilliseconds%3A%20aNumber%0A%09%5Eself%20new%3A%20aNumber'),
  2584. messageSends: ["new:"],
  2585. referencedClasses: []
  2586. }),
  2587. smalltalk.Date.klass);
  2588. smalltalk.addMethod(
  2589. '_today',
  2590. smalltalk.method({
  2591. selector: 'today',
  2592. category: 'instance creation',
  2593. fn: function (){
  2594. var self=this;
  2595. return smalltalk.send(self, "_new", []);
  2596. return self;},
  2597. source: unescape('today%0A%09%5Eself%20new'),
  2598. messageSends: ["new"],
  2599. referencedClasses: []
  2600. }),
  2601. smalltalk.Date.klass);
  2602. smalltalk.addMethod(
  2603. '_now',
  2604. smalltalk.method({
  2605. selector: 'now',
  2606. category: 'instance creation',
  2607. fn: function (){
  2608. var self=this;
  2609. return smalltalk.send(self, "_today", []);
  2610. return self;},
  2611. source: unescape('now%0A%09%5Eself%20today'),
  2612. messageSends: ["today"],
  2613. referencedClasses: []
  2614. }),
  2615. smalltalk.Date.klass);
  2616. smalltalk.addMethod(
  2617. '_millisecondsToRun_',
  2618. smalltalk.method({
  2619. selector: 'millisecondsToRun:',
  2620. category: 'instance creation',
  2621. fn: function (aBlock){
  2622. var self=this;
  2623. var t=nil;
  2624. t=smalltalk.send(smalltalk.Date, "_now", []);
  2625. smalltalk.send(aBlock, "_value", []);
  2626. return smalltalk.send(smalltalk.send(smalltalk.Date, "_now", []), "__minus", [t]);
  2627. return self;},
  2628. 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'),
  2629. messageSends: ["now", "value", unescape("-")],
  2630. referencedClasses: [smalltalk.Date]
  2631. }),
  2632. smalltalk.Date.klass);
  2633. smalltalk.addClass('UndefinedObject', smalltalk.Object, [], 'Kernel');
  2634. smalltalk.addMethod(
  2635. '_subclass_instanceVariableNames_',
  2636. smalltalk.method({
  2637. selector: 'subclass:instanceVariableNames:',
  2638. category: 'class creation',
  2639. fn: function (aString, anotherString){
  2640. var self=this;
  2641. return smalltalk.send(self, "_subclass_instanceVariableNames_category_", [aString, anotherString, nil]);
  2642. return self;},
  2643. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%20category%3A%20nil'),
  2644. messageSends: ["subclass:instanceVariableNames:category:"],
  2645. referencedClasses: []
  2646. }),
  2647. smalltalk.UndefinedObject);
  2648. smalltalk.addMethod(
  2649. '_subclass_instanceVariableNames_category_',
  2650. smalltalk.method({
  2651. selector: 'subclass:instanceVariableNames:category:',
  2652. category: 'class creation',
  2653. fn: function (aString, aString2, aString3){
  2654. var self=this;
  2655. return smalltalk.send(smalltalk.send(smalltalk.ClassBuilder, "_new", []), "_superclass_subclass_instanceVariableNames_category_", [self, aString, aString2, aString3]);
  2656. return self;},
  2657. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20category%3A%20aString3%0A%09%5EClassBuilder%20new%0A%09%20%20%20%20superclass%3A%20self%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20category%3A%20aString3'),
  2658. messageSends: ["superclass:subclass:instanceVariableNames:category:", "new"],
  2659. referencedClasses: [smalltalk.nil]
  2660. }),
  2661. smalltalk.UndefinedObject);
  2662. smalltalk.addMethod(
  2663. '_shallowCopy',
  2664. smalltalk.method({
  2665. selector: 'shallowCopy',
  2666. category: 'copying',
  2667. fn: function (){
  2668. var self=this;
  2669. return self;
  2670. return self;},
  2671. source: unescape('shallowCopy%0A%09%5Eself'),
  2672. messageSends: [],
  2673. referencedClasses: []
  2674. }),
  2675. smalltalk.UndefinedObject);
  2676. smalltalk.addMethod(
  2677. '_deepCopy',
  2678. smalltalk.method({
  2679. selector: 'deepCopy',
  2680. category: 'copying',
  2681. fn: function (){
  2682. var self=this;
  2683. return self;
  2684. return self;},
  2685. source: unescape('deepCopy%0A%09%5Eself'),
  2686. messageSends: [],
  2687. referencedClasses: []
  2688. }),
  2689. smalltalk.UndefinedObject);
  2690. smalltalk.addMethod(
  2691. '_ifNil_',
  2692. smalltalk.method({
  2693. selector: 'ifNil:',
  2694. category: 'testing',
  2695. fn: function (aBlock){
  2696. var self=this;
  2697. return smalltalk.send(self, "_ifNil_ifNotNil_", [aBlock, (function(){return nil;})]);
  2698. return self;},
  2699. source: unescape('ifNil%3A%20aBlock%0A%09%5Eself%20ifNil%3A%20aBlock%20ifNotNil%3A%20%5B%5D'),
  2700. messageSends: ["ifNil:ifNotNil:"],
  2701. referencedClasses: []
  2702. }),
  2703. smalltalk.UndefinedObject);
  2704. smalltalk.addMethod(
  2705. '_ifNotNil_',
  2706. smalltalk.method({
  2707. selector: 'ifNotNil:',
  2708. category: 'testing',
  2709. fn: function (aBlock){
  2710. var self=this;
  2711. return self;
  2712. return self;},
  2713. source: unescape('ifNotNil%3A%20aBlock%0A%09%5Eself'),
  2714. messageSends: [],
  2715. referencedClasses: []
  2716. }),
  2717. smalltalk.UndefinedObject);
  2718. smalltalk.addMethod(
  2719. '_ifNil_ifNotNil_',
  2720. smalltalk.method({
  2721. selector: 'ifNil:ifNotNil:',
  2722. category: 'testing',
  2723. fn: function (aBlock, anotherBlock){
  2724. var self=this;
  2725. return smalltalk.send(aBlock, "_value", []);
  2726. return self;},
  2727. source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%5EaBlock%20value'),
  2728. messageSends: ["value"],
  2729. referencedClasses: []
  2730. }),
  2731. smalltalk.UndefinedObject);
  2732. smalltalk.addMethod(
  2733. '_ifNotNil_ifNil_',
  2734. smalltalk.method({
  2735. selector: 'ifNotNil:ifNil:',
  2736. category: 'testing',
  2737. fn: function (aBlock, anotherBlock){
  2738. var self=this;
  2739. return smalltalk.send(anotherBlock, "_value", []);
  2740. return self;},
  2741. source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%5EanotherBlock%20value'),
  2742. messageSends: ["value"],
  2743. referencedClasses: []
  2744. }),
  2745. smalltalk.UndefinedObject);
  2746. smalltalk.addMethod(
  2747. '_isNil',
  2748. smalltalk.method({
  2749. selector: 'isNil',
  2750. category: 'testing',
  2751. fn: function (){
  2752. var self=this;
  2753. return true;
  2754. return self;},
  2755. source: unescape('isNil%0A%09%5Etrue'),
  2756. messageSends: [],
  2757. referencedClasses: []
  2758. }),
  2759. smalltalk.UndefinedObject);
  2760. smalltalk.addMethod(
  2761. '_notNil',
  2762. smalltalk.method({
  2763. selector: 'notNil',
  2764. category: 'testing',
  2765. fn: function (){
  2766. var self=this;
  2767. return false;
  2768. return self;},
  2769. source: unescape('notNil%0A%09%5Efalse'),
  2770. messageSends: [],
  2771. referencedClasses: []
  2772. }),
  2773. smalltalk.UndefinedObject);
  2774. smalltalk.addMethod(
  2775. '_printString',
  2776. smalltalk.method({
  2777. selector: 'printString',
  2778. category: 'printing',
  2779. fn: function (){
  2780. var self=this;
  2781. return "nil";
  2782. return self;},
  2783. source: unescape('printString%0A%20%20%20%20%5E%27nil%27'),
  2784. messageSends: [],
  2785. referencedClasses: []
  2786. }),
  2787. smalltalk.UndefinedObject);
  2788. smalltalk.addMethod(
  2789. '_new',
  2790. smalltalk.method({
  2791. selector: 'new',
  2792. category: 'instance creation',
  2793. fn: function (){
  2794. var self=this;
  2795. smalltalk.send(self, "_error_", ["You cannot create new instances of UndefinedObject. Use nil"]);
  2796. return self;},
  2797. source: unescape('new%0A%09%20%20%20%20self%20error%3A%20%27You%20cannot%20create%20new%20instances%20of%20UndefinedObject.%20Use%20nil%27'),
  2798. messageSends: ["error:"],
  2799. referencedClasses: []
  2800. }),
  2801. smalltalk.UndefinedObject.klass);
  2802. smalltalk.addClass('Collection', smalltalk.Object, [], 'Kernel');
  2803. smalltalk.addMethod(
  2804. '_size',
  2805. smalltalk.method({
  2806. selector: 'size',
  2807. category: 'accessing',
  2808. fn: function (){
  2809. var self=this;
  2810. smalltalk.send(self, "_subclassResponsibility", []);
  2811. return self;},
  2812. source: unescape('size%0A%09self%20subclassResponsibility'),
  2813. messageSends: ["subclassResponsibility"],
  2814. referencedClasses: []
  2815. }),
  2816. smalltalk.Collection);
  2817. smalltalk.addMethod(
  2818. '_readStream',
  2819. smalltalk.method({
  2820. selector: 'readStream',
  2821. category: 'accessing',
  2822. fn: function (){
  2823. var self=this;
  2824. return smalltalk.send(self, "_stream", []);
  2825. return self;},
  2826. source: unescape('readStream%0A%09%5Eself%20stream'),
  2827. messageSends: ["stream"],
  2828. referencedClasses: []
  2829. }),
  2830. smalltalk.Collection);
  2831. smalltalk.addMethod(
  2832. '_writeStream',
  2833. smalltalk.method({
  2834. selector: 'writeStream',
  2835. category: 'accessing',
  2836. fn: function (){
  2837. var self=this;
  2838. return smalltalk.send(self, "_stream", []);
  2839. return self;},
  2840. source: unescape('writeStream%0A%09%5Eself%20stream'),
  2841. messageSends: ["stream"],
  2842. referencedClasses: []
  2843. }),
  2844. smalltalk.Collection);
  2845. smalltalk.addMethod(
  2846. '_stream',
  2847. smalltalk.method({
  2848. selector: 'stream',
  2849. category: 'accessing',
  2850. fn: function (){
  2851. var self=this;
  2852. return smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [self]);
  2853. return self;},
  2854. source: unescape('stream%0A%09%5Eself%20streamClass%20on%3A%20self'),
  2855. messageSends: ["on:", "streamClass"],
  2856. referencedClasses: []
  2857. }),
  2858. smalltalk.Collection);
  2859. smalltalk.addMethod(
  2860. '_streamClass',
  2861. smalltalk.method({
  2862. selector: 'streamClass',
  2863. category: 'accessing',
  2864. fn: function (){
  2865. var self=this;
  2866. return smalltalk.send(smalltalk.send(self, "_class", []), "_streamClass", []);
  2867. return self;},
  2868. source: unescape('streamClass%0A%09%5Eself%20class%20streamClass'),
  2869. messageSends: ["streamClass", "class"],
  2870. referencedClasses: []
  2871. }),
  2872. smalltalk.Collection);
  2873. smalltalk.addMethod(
  2874. '_add_',
  2875. smalltalk.method({
  2876. selector: 'add:',
  2877. category: 'adding/removing',
  2878. fn: function (anObject){
  2879. var self=this;
  2880. smalltalk.send(self, "_subclassResponsibility", []);
  2881. return self;},
  2882. source: unescape('add%3A%20anObject%0A%09self%20subclassResponsibility'),
  2883. messageSends: ["subclassResponsibility"],
  2884. referencedClasses: []
  2885. }),
  2886. smalltalk.Collection);
  2887. smalltalk.addMethod(
  2888. '_addAll_',
  2889. smalltalk.method({
  2890. selector: 'addAll:',
  2891. category: 'adding/removing',
  2892. fn: function (aCollection){
  2893. var self=this;
  2894. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_add_", [each]);})]);
  2895. return aCollection;
  2896. return self;},
  2897. 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'),
  2898. messageSends: ["do:", "add:"],
  2899. referencedClasses: []
  2900. }),
  2901. smalltalk.Collection);
  2902. smalltalk.addMethod(
  2903. '__comma',
  2904. smalltalk.method({
  2905. selector: ',',
  2906. category: 'copying',
  2907. fn: function (aCollection){
  2908. var self=this;
  2909. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  2910. return self;},
  2911. 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'),
  2912. messageSends: ["addAll:", "yourself", "copy"],
  2913. referencedClasses: []
  2914. }),
  2915. smalltalk.Collection);
  2916. smalltalk.addMethod(
  2917. '_copyWith_',
  2918. smalltalk.method({
  2919. selector: 'copyWith:',
  2920. category: 'copying',
  2921. fn: function (anObject){
  2922. var self=this;
  2923. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  2924. return self;},
  2925. source: unescape('copyWith%3A%20anObject%0A%09%5Eself%20copy%20add%3A%20anObject%3B%20yourself'),
  2926. messageSends: ["add:", "yourself", "copy"],
  2927. referencedClasses: []
  2928. }),
  2929. smalltalk.Collection);
  2930. smalltalk.addMethod(
  2931. '_copyWithAll_',
  2932. smalltalk.method({
  2933. selector: 'copyWithAll:',
  2934. category: 'copying',
  2935. fn: function (aCollection){
  2936. var self=this;
  2937. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  2938. return self;},
  2939. source: unescape('copyWithAll%3A%20aCollection%0A%09%5Eself%20copy%20addAll%3A%20aCollection%3B%20yourself'),
  2940. messageSends: ["addAll:", "yourself", "copy"],
  2941. referencedClasses: []
  2942. }),
  2943. smalltalk.Collection);
  2944. smalltalk.addMethod(
  2945. '_asArray',
  2946. smalltalk.method({
  2947. selector: 'asArray',
  2948. category: 'converting',
  2949. fn: function (){
  2950. var self=this;
  2951. var array=nil;
  2952. var index=nil;
  2953. array=smalltalk.send(smalltalk.Array, "_new", []);
  2954. index=(0);
  2955. smalltalk.send(self, "_do_", [(function(each){index=smalltalk.send(index, "__plus", [(1)]);return smalltalk.send(array, "_at_put_", [index, each]);})]);
  2956. return array;
  2957. return self;},
  2958. 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'),
  2959. messageSends: ["new", "do:", unescape("+"), "at:put:"],
  2960. referencedClasses: [smalltalk.Array]
  2961. }),
  2962. smalltalk.Collection);
  2963. smalltalk.addMethod(
  2964. '_do_',
  2965. smalltalk.method({
  2966. selector: 'do:',
  2967. category: 'enumerating',
  2968. fn: function (aBlock){
  2969. var self=this;
  2970. for(var i=0;i<self.length;i++){aBlock(self[i]);};
  2971. return self;},
  2972. source: unescape('do%3A%20aBlock%0A%09%3Cfor%28var%20i%3D0%3Bi%3Cself.length%3Bi++%29%7BaBlock%28self%5Bi%5D%29%3B%7D%3E'),
  2973. messageSends: [],
  2974. referencedClasses: []
  2975. }),
  2976. smalltalk.Collection);
  2977. smalltalk.addMethod(
  2978. '_collect_',
  2979. smalltalk.method({
  2980. selector: 'collect:',
  2981. category: 'enumerating',
  2982. fn: function (aBlock){
  2983. var self=this;
  2984. var newCollection=nil;
  2985. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  2986. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(aBlock, "_value_", [each])]);})]);
  2987. return newCollection;
  2988. return self;},
  2989. 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'),
  2990. messageSends: ["new", "class", "do:", "add:", "value:"],
  2991. referencedClasses: []
  2992. }),
  2993. smalltalk.Collection);
  2994. smalltalk.addMethod(
  2995. '_detect_',
  2996. smalltalk.method({
  2997. selector: 'detect:',
  2998. category: 'enumerating',
  2999. fn: function (aBlock){
  3000. var self=this;
  3001. return smalltalk.send(self, "_detect_ifNone_", [aBlock, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  3002. return self;},
  3003. source: unescape('detect%3A%20aBlock%0A%09%5Eself%20detect%3A%20aBlock%20ifNone%3A%20%5Bself%20errorNotFound%5D'),
  3004. messageSends: ["detect:ifNone:", "errorNotFound"],
  3005. referencedClasses: []
  3006. }),
  3007. smalltalk.Collection);
  3008. smalltalk.addMethod(
  3009. '_detect_ifNone_',
  3010. smalltalk.method({
  3011. selector: 'detect:ifNone:',
  3012. category: 'enumerating',
  3013. fn: function (aBlock, anotherBlock){
  3014. var self=this;
  3015. for(var i = 0; i < self.length; i++)
  3016. if(aBlock(self[i]))
  3017. return self[i];
  3018. return anotherBlock();
  3019. ;
  3020. return self;},
  3021. 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'),
  3022. messageSends: [],
  3023. referencedClasses: []
  3024. }),
  3025. smalltalk.Collection);
  3026. smalltalk.addMethod(
  3027. '_do_separatedBy_',
  3028. smalltalk.method({
  3029. selector: 'do:separatedBy:',
  3030. category: 'enumerating',
  3031. fn: function (aBlock, anotherBlock){
  3032. var self=this;
  3033. var first=nil;
  3034. first=true;
  3035. smalltalk.send(self, "_do_", [(function(each){smalltalk.send(first, "_ifTrue_ifFalse_", [(function(){return first=false;}), (function(){return smalltalk.send(anotherBlock, "_value", []);})]);return smalltalk.send(aBlock, "_value_", [each]);})]);
  3036. return self;},
  3037. 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'),
  3038. messageSends: ["do:", "ifTrue:ifFalse:", "value", "value:"],
  3039. referencedClasses: []
  3040. }),
  3041. smalltalk.Collection);
  3042. smalltalk.addMethod(
  3043. '_inject_into_',
  3044. smalltalk.method({
  3045. selector: 'inject:into:',
  3046. category: 'enumerating',
  3047. fn: function (anObject, aBlock){
  3048. var self=this;
  3049. var result=nil;
  3050. result=anObject;
  3051. smalltalk.send(self, "_do_", [(function(each){return result=smalltalk.send(aBlock, "_value_value_", [result, each]);})]);
  3052. return result;
  3053. return self;},
  3054. 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'),
  3055. messageSends: ["do:", "value:value:"],
  3056. referencedClasses: []
  3057. }),
  3058. smalltalk.Collection);
  3059. smalltalk.addMethod(
  3060. '_reject_',
  3061. smalltalk.method({
  3062. selector: 'reject:',
  3063. category: 'enumerating',
  3064. fn: function (aBlock){
  3065. var self=this;
  3066. return smalltalk.send(self, "_select_", [(function(each){return smalltalk.send(smalltalk.send(aBlock, "_value_", [each]), "__eq", [false]);})]);
  3067. return self;},
  3068. 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'),
  3069. messageSends: ["select:", unescape("%3D"), "value:"],
  3070. referencedClasses: []
  3071. }),
  3072. smalltalk.Collection);
  3073. smalltalk.addMethod(
  3074. '_select_',
  3075. smalltalk.method({
  3076. selector: 'select:',
  3077. category: 'enumerating',
  3078. fn: function (aBlock){
  3079. var self=this;
  3080. var stream=nil;
  3081. stream=smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_new", []), "_writeStream", []);
  3082. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(smalltalk.send(aBlock, "_value_", [each]), "_ifTrue_", [(function(){return smalltalk.send(stream, "_nextPut_", [each]);})]);})]);
  3083. return smalltalk.send(stream, "_contents", []);
  3084. return self;},
  3085. 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'),
  3086. messageSends: ["writeStream", "new", "class", "do:", "ifTrue:", "value:", "nextPut:", "contents"],
  3087. referencedClasses: []
  3088. }),
  3089. smalltalk.Collection);
  3090. smalltalk.addMethod(
  3091. '_errorNotFound',
  3092. smalltalk.method({
  3093. selector: 'errorNotFound',
  3094. category: 'error handling',
  3095. fn: function (){
  3096. var self=this;
  3097. smalltalk.send(self, "_error_", ["Object is not in the collection"]);
  3098. return self;},
  3099. source: unescape('errorNotFound%0A%09self%20error%3A%20%27Object%20is%20not%20in%20the%20collection%27'),
  3100. messageSends: ["error:"],
  3101. referencedClasses: []
  3102. }),
  3103. smalltalk.Collection);
  3104. smalltalk.addMethod(
  3105. '_includes_',
  3106. smalltalk.method({
  3107. selector: 'includes:',
  3108. category: 'testing',
  3109. fn: function (anObject){
  3110. var self=this;
  3111. var i = self.length;
  3112. while (i--) {
  3113. if (smalltalk.send(self[i], "__eq", [anObject])) {return true;}
  3114. }
  3115. return false
  3116. ;
  3117. return self;},
  3118. 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'),
  3119. messageSends: [],
  3120. referencedClasses: []
  3121. }),
  3122. smalltalk.Collection);
  3123. smalltalk.addMethod(
  3124. '_notEmpty',
  3125. smalltalk.method({
  3126. selector: 'notEmpty',
  3127. category: 'testing',
  3128. fn: function (){
  3129. var self=this;
  3130. return smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_not", []);
  3131. return self;},
  3132. source: unescape('notEmpty%0A%09%5Eself%20isEmpty%20not'),
  3133. messageSends: ["not", "isEmpty"],
  3134. referencedClasses: []
  3135. }),
  3136. smalltalk.Collection);
  3137. smalltalk.addMethod(
  3138. '_isEmpty',
  3139. smalltalk.method({
  3140. selector: 'isEmpty',
  3141. category: 'testing',
  3142. fn: function (){
  3143. var self=this;
  3144. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  3145. return self;},
  3146. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  3147. messageSends: [unescape("%3D"), "size"],
  3148. referencedClasses: []
  3149. }),
  3150. smalltalk.Collection);
  3151. smalltalk.addMethod(
  3152. '_remove_',
  3153. smalltalk.method({
  3154. selector: 'remove:',
  3155. category: 'adding/removing',
  3156. fn: function (anObject){
  3157. var self=this;
  3158. smalltalk.send(self, "_subclassResponsibility", []);
  3159. return self;},
  3160. source: unescape('remove%3A%20anObject%0A%20%20%20%20self%20subclassResponsibility'),
  3161. messageSends: ["subclassResponsibility"],
  3162. referencedClasses: []
  3163. }),
  3164. smalltalk.Collection);
  3165. smalltalk.addMethod(
  3166. '_streamClass',
  3167. smalltalk.method({
  3168. selector: 'streamClass',
  3169. category: 'accessing',
  3170. fn: function (){
  3171. var self=this;
  3172. return smalltalk.Stream;
  3173. return self;},
  3174. source: unescape('streamClass%0A%09%20%20%20%20%5EStream'),
  3175. messageSends: [],
  3176. referencedClasses: [smalltalk.nil]
  3177. }),
  3178. smalltalk.Collection.klass);
  3179. smalltalk.addMethod(
  3180. '_with_',
  3181. smalltalk.method({
  3182. selector: 'with:',
  3183. category: 'instance creation',
  3184. fn: function (anObject){
  3185. var self=this;
  3186. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  3187. return self;},
  3188. source: unescape('with%3A%20anObject%0A%09%20%20%20%20%5Eself%20new%0A%09%09add%3A%20anObject%3B%0A%09%09yourself'),
  3189. messageSends: ["add:", "yourself", "new"],
  3190. referencedClasses: []
  3191. }),
  3192. smalltalk.Collection.klass);
  3193. smalltalk.addMethod(
  3194. '_with_with_',
  3195. smalltalk.method({
  3196. selector: 'with:with:',
  3197. category: 'instance creation',
  3198. fn: function (anObject, anotherObject){
  3199. var self=this;
  3200. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);smalltalk.send($rec, "_add_", [anotherObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  3201. return self;},
  3202. 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'),
  3203. messageSends: ["add:", "yourself", "new"],
  3204. referencedClasses: []
  3205. }),
  3206. smalltalk.Collection.klass);
  3207. smalltalk.addMethod(
  3208. '_with_with_with_',
  3209. smalltalk.method({
  3210. selector: 'with:with:with:',
  3211. category: 'instance creation',
  3212. fn: function (firstObject, secondObject, thirdObject){
  3213. var self=this;
  3214. 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", []));
  3215. return self;},
  3216. 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'),
  3217. messageSends: ["add:", "yourself", "new"],
  3218. referencedClasses: []
  3219. }),
  3220. smalltalk.Collection.klass);
  3221. smalltalk.addMethod(
  3222. '_withAll_',
  3223. smalltalk.method({
  3224. selector: 'withAll:',
  3225. category: 'instance creation',
  3226. fn: function (aCollection){
  3227. var self=this;
  3228. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  3229. return self;},
  3230. source: unescape('withAll%3A%20aCollection%0A%09%20%20%20%20%5Eself%20new%0A%09%09addAll%3A%20aCollection%3B%0A%09%09yourself'),
  3231. messageSends: ["addAll:", "yourself", "new"],
  3232. referencedClasses: []
  3233. }),
  3234. smalltalk.Collection.klass);
  3235. smalltalk.addClass('SequenceableCollection', smalltalk.Collection, [], 'Kernel');
  3236. smalltalk.addMethod(
  3237. '_at_',
  3238. smalltalk.method({
  3239. selector: 'at:',
  3240. category: 'accessing',
  3241. fn: function (anIndex){
  3242. var self=this;
  3243. return smalltalk.send(self, "_at_ifAbsent_", [anIndex, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  3244. return self;},
  3245. source: unescape('at%3A%20anIndex%0A%09%5Eself%20at%3A%20anIndex%20ifAbsent%3A%20%5B%0A%09%20%20%20%20self%20errorNotFound%5D'),
  3246. messageSends: ["at:ifAbsent:", "errorNotFound"],
  3247. referencedClasses: []
  3248. }),
  3249. smalltalk.SequenceableCollection);
  3250. smalltalk.addMethod(
  3251. '_at_ifAbsent_',
  3252. smalltalk.method({
  3253. selector: 'at:ifAbsent:',
  3254. category: 'accessing',
  3255. fn: function (anIndex, aBlock){
  3256. var self=this;
  3257. smalltalk.send(self, "_subclassResponsibility", []);
  3258. return self;},
  3259. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%09self%20subclassResponsibility'),
  3260. messageSends: ["subclassResponsibility"],
  3261. referencedClasses: []
  3262. }),
  3263. smalltalk.SequenceableCollection);
  3264. smalltalk.addMethod(
  3265. '_at_put_',
  3266. smalltalk.method({
  3267. selector: 'at:put:',
  3268. category: 'accessing',
  3269. fn: function (anIndex, anObject){
  3270. var self=this;
  3271. smalltalk.send(self, "_subclassResponsibility", []);
  3272. return self;},
  3273. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09self%20subclassResponsibility'),
  3274. messageSends: ["subclassResponsibility"],
  3275. referencedClasses: []
  3276. }),
  3277. smalltalk.SequenceableCollection);
  3278. smalltalk.addMethod(
  3279. '_copyFrom_to_',
  3280. smalltalk.method({
  3281. selector: 'copyFrom:to:',
  3282. category: 'copying',
  3283. fn: function (anIndex, anotherIndex){
  3284. var self=this;
  3285. smalltalk.send(self, "_subclassResponsibility", []);
  3286. return self;},
  3287. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20subclassResponsibility'),
  3288. messageSends: ["subclassResponsibility"],
  3289. referencedClasses: []
  3290. }),
  3291. smalltalk.SequenceableCollection);
  3292. smalltalk.addMethod(
  3293. '_first',
  3294. smalltalk.method({
  3295. selector: 'first',
  3296. category: 'accessing',
  3297. fn: function (){
  3298. var self=this;
  3299. return smalltalk.send(self, "_at_", [(1)]);
  3300. return self;},
  3301. source: unescape('first%0A%09%5Eself%20at%3A%201'),
  3302. messageSends: ["at:"],
  3303. referencedClasses: []
  3304. }),
  3305. smalltalk.SequenceableCollection);
  3306. smalltalk.addMethod(
  3307. '_fourth',
  3308. smalltalk.method({
  3309. selector: 'fourth',
  3310. category: 'accessing',
  3311. fn: function (){
  3312. var self=this;
  3313. return smalltalk.send(self, "_at_", [(4)]);
  3314. return self;},
  3315. source: unescape('fourth%0A%09%5Eself%20at%3A%204'),
  3316. messageSends: ["at:"],
  3317. referencedClasses: []
  3318. }),
  3319. smalltalk.SequenceableCollection);
  3320. smalltalk.addMethod(
  3321. '_last',
  3322. smalltalk.method({
  3323. selector: 'last',
  3324. category: 'accessing',
  3325. fn: function (){
  3326. var self=this;
  3327. return smalltalk.send(self, "_at_", [smalltalk.send(self, "_size", [])]);
  3328. return self;},
  3329. source: unescape('last%0A%09%5Eself%20at%3A%20self%20size'),
  3330. messageSends: ["at:", "size"],
  3331. referencedClasses: []
  3332. }),
  3333. smalltalk.SequenceableCollection);
  3334. smalltalk.addMethod(
  3335. '_second',
  3336. smalltalk.method({
  3337. selector: 'second',
  3338. category: 'accessing',
  3339. fn: function (){
  3340. var self=this;
  3341. return smalltalk.send(self, "_at_", [(2)]);
  3342. return self;},
  3343. source: unescape('second%0A%09%5Eself%20at%3A%202'),
  3344. messageSends: ["at:"],
  3345. referencedClasses: []
  3346. }),
  3347. smalltalk.SequenceableCollection);
  3348. smalltalk.addMethod(
  3349. '_third',
  3350. smalltalk.method({
  3351. selector: 'third',
  3352. category: 'accessing',
  3353. fn: function (){
  3354. var self=this;
  3355. return smalltalk.send(self, "_at_", [(3)]);
  3356. return self;},
  3357. source: unescape('third%0A%09%5Eself%20at%3A%203'),
  3358. messageSends: ["at:"],
  3359. referencedClasses: []
  3360. }),
  3361. smalltalk.SequenceableCollection);
  3362. smalltalk.addMethod(
  3363. '_removeLast',
  3364. smalltalk.method({
  3365. selector: 'removeLast',
  3366. category: 'adding',
  3367. fn: function (){
  3368. var self=this;
  3369. smalltalk.send(self, "_remove_", [smalltalk.send(self, "_last", [])]);
  3370. return self;},
  3371. source: unescape('removeLast%0A%09self%20remove%3A%20self%20last'),
  3372. messageSends: ["remove:", "last"],
  3373. referencedClasses: []
  3374. }),
  3375. smalltalk.SequenceableCollection);
  3376. smalltalk.addMethod(
  3377. '_addLast_',
  3378. smalltalk.method({
  3379. selector: 'addLast:',
  3380. category: 'adding',
  3381. fn: function (anObject){
  3382. var self=this;
  3383. smalltalk.send(self, "_add_", [anObject]);
  3384. return self;},
  3385. source: unescape('addLast%3A%20anObject%0A%09self%20add%3A%20anObject'),
  3386. messageSends: ["add:"],
  3387. referencedClasses: []
  3388. }),
  3389. smalltalk.SequenceableCollection);
  3390. smalltalk.addMethod(
  3391. '_withIndexDo_',
  3392. smalltalk.method({
  3393. selector: 'withIndexDo:',
  3394. category: 'enumerating',
  3395. fn: function (aBlock){
  3396. var self=this;
  3397. for(var i=0;i<self.length;i++){aBlock(self[i], i+1);};
  3398. return self;},
  3399. 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'),
  3400. messageSends: [],
  3401. referencedClasses: []
  3402. }),
  3403. smalltalk.SequenceableCollection);
  3404. smalltalk.addMethod(
  3405. '_allButFirst',
  3406. smalltalk.method({
  3407. selector: 'allButFirst',
  3408. category: 'accessing',
  3409. fn: function (){
  3410. var self=this;
  3411. return smalltalk.send(self, "_copyFrom_to_", [(2), smalltalk.send(self, "_size", [])]);
  3412. return self;},
  3413. source: unescape('allButFirst%0A%09%5Eself%20copyFrom%3A%202%20to%3A%20self%20size'),
  3414. messageSends: ["copyFrom:to:", "size"],
  3415. referencedClasses: []
  3416. }),
  3417. smalltalk.SequenceableCollection);
  3418. smalltalk.addMethod(
  3419. '_allButLast',
  3420. smalltalk.method({
  3421. selector: 'allButLast',
  3422. category: 'accessing',
  3423. fn: function (){
  3424. var self=this;
  3425. return smalltalk.send(self, "_copyFrom_to_", [(1), smalltalk.send(smalltalk.send(self, "_size", []), "__minus", [(1)])]);
  3426. return self;},
  3427. source: unescape('allButLast%0A%09%5Eself%20copyFrom%3A%201%20to%3A%20self%20size%20-%201'),
  3428. messageSends: ["copyFrom:to:", unescape("-"), "size"],
  3429. referencedClasses: []
  3430. }),
  3431. smalltalk.SequenceableCollection);
  3432. smalltalk.addMethod(
  3433. '_indexOf_',
  3434. smalltalk.method({
  3435. selector: 'indexOf:',
  3436. category: 'accessing',
  3437. fn: function (anObject){
  3438. var self=this;
  3439. return smalltalk.send(self, "_indexOf_ifAbsent_", [anObject, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  3440. return self;},
  3441. source: unescape('indexOf%3A%20anObject%0A%09%5Eself%20indexOf%3A%20anObject%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  3442. messageSends: ["indexOf:ifAbsent:", "errorNotFound"],
  3443. referencedClasses: []
  3444. }),
  3445. smalltalk.SequenceableCollection);
  3446. smalltalk.addMethod(
  3447. '_indexOf_ifAbsent_',
  3448. smalltalk.method({
  3449. selector: 'indexOf:ifAbsent:',
  3450. category: 'accessing',
  3451. fn: function (anObject, aBlock){
  3452. var self=this;
  3453. for(var i=0;i<self.length;i++){
  3454. if(self[i].__eq(anObject)) {return i+1}
  3455. }
  3456. return aBlock();
  3457. ;
  3458. return self;},
  3459. 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'),
  3460. messageSends: [],
  3461. referencedClasses: []
  3462. }),
  3463. smalltalk.SequenceableCollection);
  3464. smalltalk.addClass('String', smalltalk.SequenceableCollection, [], 'Kernel');
  3465. smalltalk.addMethod(
  3466. '__eq',
  3467. smalltalk.method({
  3468. selector: '=',
  3469. category: 'comparing',
  3470. fn: function (aString){
  3471. var self=this;
  3472. return String(self) == aString;
  3473. return self;},
  3474. source: unescape('%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3D%3D%20aString%3E'),
  3475. messageSends: [],
  3476. referencedClasses: []
  3477. }),
  3478. smalltalk.String);
  3479. smalltalk.addMethod(
  3480. '_size',
  3481. smalltalk.method({
  3482. selector: 'size',
  3483. category: 'accessing',
  3484. fn: function (){
  3485. var self=this;
  3486. return self.length;
  3487. return self;},
  3488. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  3489. messageSends: [],
  3490. referencedClasses: []
  3491. }),
  3492. smalltalk.String);
  3493. smalltalk.addMethod(
  3494. '_at_',
  3495. smalltalk.method({
  3496. selector: 'at:',
  3497. category: 'accessing',
  3498. fn: function (anIndex){
  3499. var self=this;
  3500. return self[anIndex - 1];
  3501. return self;},
  3502. source: unescape('at%3A%20anIndex%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%3E'),
  3503. messageSends: [],
  3504. referencedClasses: []
  3505. }),
  3506. smalltalk.String);
  3507. smalltalk.addMethod(
  3508. '_at_put_',
  3509. smalltalk.method({
  3510. selector: 'at:put:',
  3511. category: 'accessing',
  3512. fn: function (anIndex, anObject){
  3513. var self=this;
  3514. smalltalk.send(self, "_errorReadOnly", []);
  3515. return self;},
  3516. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  3517. messageSends: ["errorReadOnly"],
  3518. referencedClasses: []
  3519. }),
  3520. smalltalk.String);
  3521. smalltalk.addMethod(
  3522. '_at_ifAbsent_',
  3523. smalltalk.method({
  3524. selector: 'at:ifAbsent:',
  3525. category: 'accessing',
  3526. fn: function (anIndex, aBlock){
  3527. var self=this;
  3528. smalltalk.send(smalltalk.send(self, "_at_", [anIndex]), "_ifNil_", [(function(){return aBlock;})]);
  3529. return self;},
  3530. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%20%20%20%20%09%28self%20at%3A%20anIndex%29%20ifNil%3A%20%5BaBlock%5D'),
  3531. messageSends: ["ifNil:", "at:"],
  3532. referencedClasses: []
  3533. }),
  3534. smalltalk.String);
  3535. smalltalk.addMethod(
  3536. '_escaped',
  3537. smalltalk.method({
  3538. selector: 'escaped',
  3539. category: 'accessing',
  3540. fn: function (){
  3541. var self=this;
  3542. return escape(self);
  3543. return self;},
  3544. source: unescape('escaped%0A%09%3Creturn%20escape%28self%29%3E'),
  3545. messageSends: [],
  3546. referencedClasses: []
  3547. }),
  3548. smalltalk.String);
  3549. smalltalk.addMethod(
  3550. '_unescaped',
  3551. smalltalk.method({
  3552. selector: 'unescaped',
  3553. category: 'accessing',
  3554. fn: function (){
  3555. var self=this;
  3556. return unescape(self);
  3557. return self;},
  3558. source: unescape('unescaped%0A%09%3Creturn%20unescape%28self%29%3E'),
  3559. messageSends: [],
  3560. referencedClasses: []
  3561. }),
  3562. smalltalk.String);
  3563. smalltalk.addMethod(
  3564. '_add_',
  3565. smalltalk.method({
  3566. selector: 'add:',
  3567. category: 'adding',
  3568. fn: function (anObject){
  3569. var self=this;
  3570. smalltalk.send(self, "_errorReadOnly", []);
  3571. return self;},
  3572. source: unescape('add%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  3573. messageSends: ["errorReadOnly"],
  3574. referencedClasses: []
  3575. }),
  3576. smalltalk.String);
  3577. smalltalk.addMethod(
  3578. '__comma',
  3579. smalltalk.method({
  3580. selector: ',',
  3581. category: 'copying',
  3582. fn: function (aString){
  3583. var self=this;
  3584. return self + aString;
  3585. return self;},
  3586. source: unescape('%2C%20aString%0A%09%3Creturn%20self%20+%20aString%3E'),
  3587. messageSends: [],
  3588. referencedClasses: []
  3589. }),
  3590. smalltalk.String);
  3591. smalltalk.addMethod(
  3592. '_copyFrom_to_',
  3593. smalltalk.method({
  3594. selector: 'copyFrom:to:',
  3595. category: 'copying',
  3596. fn: function (anIndex, anotherIndex){
  3597. var self=this;
  3598. return self.substring(anIndex - 1, anotherIndex);
  3599. return self;},
  3600. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09%3Creturn%20self.substring%28anIndex%20-%201%2C%20anotherIndex%29%3E'),
  3601. messageSends: [],
  3602. referencedClasses: []
  3603. }),
  3604. smalltalk.String);
  3605. smalltalk.addMethod(
  3606. '_shallowCopy',
  3607. smalltalk.method({
  3608. selector: 'shallowCopy',
  3609. category: 'copying',
  3610. fn: function (){
  3611. var self=this;
  3612. return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [self]);
  3613. return self;},
  3614. source: unescape('shallowCopy%0A%20%20%20%20%09%5Eself%20class%20fromString%3A%20self'),
  3615. messageSends: ["fromString:", "class"],
  3616. referencedClasses: []
  3617. }),
  3618. smalltalk.String);
  3619. smalltalk.addMethod(
  3620. '_deepCopy',
  3621. smalltalk.method({
  3622. selector: 'deepCopy',
  3623. category: 'copying',
  3624. fn: function (){
  3625. var self=this;
  3626. return smalltalk.send(self, "_shallowCopy", []);
  3627. return self;},
  3628. source: unescape('deepCopy%0A%20%20%20%20%09%5Eself%20shallowCopy'),
  3629. messageSends: ["shallowCopy"],
  3630. referencedClasses: []
  3631. }),
  3632. smalltalk.String);
  3633. smalltalk.addMethod(
  3634. '_asSelector',
  3635. smalltalk.method({
  3636. selector: 'asSelector',
  3637. category: 'converting',
  3638. fn: function (){
  3639. var self=this;
  3640. var selector=nil;
  3641. selector=smalltalk.send("_", "__comma", [self]);
  3642. selector=smalltalk.send(selector, "_replace_with_", [":", "_"]);
  3643. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B+%5D"), "_plus"]);
  3644. selector=smalltalk.send(selector, "_replace_with_", [unescape("-"), "_minus"]);
  3645. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B*%5D"), "_star"]);
  3646. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B/%5D"), "_slash"]);
  3647. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3E"), "_gt"]);
  3648. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3C"), "_lt"]);
  3649. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3D"), "_eq"]);
  3650. selector=smalltalk.send(selector, "_replace_with_", [unescape("%2C"), "_comma"]);
  3651. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B@%5D"), "_at"]);
  3652. return selector;
  3653. return self;},
  3654. 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'),
  3655. messageSends: [unescape("%2C"), "replace:with:"],
  3656. referencedClasses: []
  3657. }),
  3658. smalltalk.String);
  3659. smalltalk.addMethod(
  3660. '_asJavascript',
  3661. smalltalk.method({
  3662. selector: 'asJavascript',
  3663. category: 'converting',
  3664. fn: function (){
  3665. var self=this;
  3666. if(self.search(/^[a-zA-Z0-9_:.$ ]*$/) == -1)
  3667. return "unescape(\"" + escape(self) + "\")";
  3668. else
  3669. return "\"" + self + "\"";
  3670. ;
  3671. return self;},
  3672. 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'),
  3673. messageSends: [],
  3674. referencedClasses: []
  3675. }),
  3676. smalltalk.String);
  3677. smalltalk.addMethod(
  3678. '_replace_with_',
  3679. smalltalk.method({
  3680. selector: 'replace:with:',
  3681. category: 'regular expressions',
  3682. fn: function (aString, anotherString){
  3683. var self=this;
  3684. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send(smalltalk.RegularExpression, "_fromString_flag_", [aString, "g"]), anotherString]);
  3685. return self;},
  3686. 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'),
  3687. messageSends: ["replaceRegexp:with:", "fromString:flag:"],
  3688. referencedClasses: [smalltalk.RegularExpression]
  3689. }),
  3690. smalltalk.String);
  3691. smalltalk.addMethod(
  3692. '_replaceRegexp_with_',
  3693. smalltalk.method({
  3694. selector: 'replaceRegexp:with:',
  3695. category: 'regular expressions',
  3696. fn: function (aRegexp, aString){
  3697. var self=this;
  3698. return self.replace(aRegexp, aString);
  3699. return self;},
  3700. source: unescape('replaceRegexp%3A%20aRegexp%20with%3A%20aString%0A%09%3Creturn%20self.replace%28aRegexp%2C%20aString%29%3E'),
  3701. messageSends: [],
  3702. referencedClasses: []
  3703. }),
  3704. smalltalk.String);
  3705. smalltalk.addMethod(
  3706. '_tokenize_',
  3707. smalltalk.method({
  3708. selector: 'tokenize:',
  3709. category: 'converting',
  3710. fn: function (aString){
  3711. var self=this;
  3712. return self.split(aString);
  3713. return self;},
  3714. source: unescape('tokenize%3A%20aString%0A%09%3Creturn%20self.split%28aString%29%3E'),
  3715. messageSends: [],
  3716. referencedClasses: []
  3717. }),
  3718. smalltalk.String);
  3719. smalltalk.addMethod(
  3720. '_match_',
  3721. smalltalk.method({
  3722. selector: 'match:',
  3723. category: 'regular expressions',
  3724. fn: function (aRegexp){
  3725. var self=this;
  3726. return self.search(aRegexp) != -1;
  3727. return self;},
  3728. source: unescape('match%3A%20aRegexp%0A%09%3Creturn%20self.search%28aRegexp%29%20%21%3D%20-1%3E'),
  3729. messageSends: [],
  3730. referencedClasses: []
  3731. }),
  3732. smalltalk.String);
  3733. smalltalk.addMethod(
  3734. '_asString',
  3735. smalltalk.method({
  3736. selector: 'asString',
  3737. category: 'converting',
  3738. fn: function (){
  3739. var self=this;
  3740. return self;
  3741. return self;},
  3742. source: unescape('asString%0A%20%20%20%20%09%5Eself'),
  3743. messageSends: [],
  3744. referencedClasses: []
  3745. }),
  3746. smalltalk.String);
  3747. smalltalk.addMethod(
  3748. '_asNumber',
  3749. smalltalk.method({
  3750. selector: 'asNumber',
  3751. category: 'converting',
  3752. fn: function (){
  3753. var self=this;
  3754. return Number(self);
  3755. return self;},
  3756. source: unescape('asNumber%0A%09%3Creturn%20Number%28self%29%3E'),
  3757. messageSends: [],
  3758. referencedClasses: []
  3759. }),
  3760. smalltalk.String);
  3761. smalltalk.addMethod(
  3762. '_asParser',
  3763. smalltalk.method({
  3764. selector: 'asParser',
  3765. category: 'converting',
  3766. fn: function (){
  3767. var self=this;
  3768. return smalltalk.send(smalltalk.send(smalltalk.PPStringParser, "_new", []), "_string_", [self]);
  3769. return self;},
  3770. source: unescape('asParser%0A%20%20%20%20%09%5EPPStringParser%20new%20string%3A%20self'),
  3771. messageSends: ["string:", "new"],
  3772. referencedClasses: [smalltalk.nil]
  3773. }),
  3774. smalltalk.String);
  3775. smalltalk.addMethod(
  3776. '_asChoiceParser',
  3777. smalltalk.method({
  3778. selector: 'asChoiceParser',
  3779. category: 'converting',
  3780. fn: function (){
  3781. var self=this;
  3782. return smalltalk.send(smalltalk.PPChoiceParser, "_withAll_", [smalltalk.send(smalltalk.send(self, "_asArray", []), "_collect_", [(function(each){return smalltalk.send(each, "_asParser", []);})])]);
  3783. return self;},
  3784. source: unescape('asChoiceParser%0A%20%20%20%20%09%5EPPChoiceParser%20withAll%3A%20%28self%20asArray%20collect%3A%20%5B%3Aeach%20%7C%20each%20asParser%5D%29'),
  3785. messageSends: ["withAll:", "collect:", "asArray", "asParser"],
  3786. referencedClasses: [smalltalk.nil]
  3787. }),
  3788. smalltalk.String);
  3789. smalltalk.addMethod(
  3790. '_asCharacterParser',
  3791. smalltalk.method({
  3792. selector: 'asCharacterParser',
  3793. category: 'converting',
  3794. fn: function (){
  3795. var self=this;
  3796. return smalltalk.send(smalltalk.send(smalltalk.PPCharacterParser, "_new", []), "_string_", [self]);
  3797. return self;},
  3798. source: unescape('asCharacterParser%0A%20%20%20%20%09%5EPPCharacterParser%20new%20string%3A%20self'),
  3799. messageSends: ["string:", "new"],
  3800. referencedClasses: [smalltalk.nil]
  3801. }),
  3802. smalltalk.String);
  3803. smalltalk.addMethod(
  3804. '_errorReadOnly',
  3805. smalltalk.method({
  3806. selector: 'errorReadOnly',
  3807. category: 'error handling',
  3808. fn: function (){
  3809. var self=this;
  3810. smalltalk.send(self, "_error_", [unescape("Object%20is%20read-only")]);
  3811. return self;},
  3812. source: unescape('errorReadOnly%0A%20%20%20%20%09self%20error%3A%20%27Object%20is%20read-only%27'),
  3813. messageSends: ["error:"],
  3814. referencedClasses: []
  3815. }),
  3816. smalltalk.String);
  3817. smalltalk.addMethod(
  3818. '_printString',
  3819. smalltalk.method({
  3820. selector: 'printString',
  3821. category: 'printing',
  3822. fn: function (){
  3823. var self=this;
  3824. return smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [self]), "__comma", [unescape("%27")]);
  3825. return self;},
  3826. source: unescape('printString%0A%20%20%20%20%09%5E%27%27%27%27%2C%20self%2C%20%27%27%27%27'),
  3827. messageSends: [unescape("%2C")],
  3828. referencedClasses: []
  3829. }),
  3830. smalltalk.String);
  3831. smalltalk.addMethod(
  3832. '_printNl',
  3833. smalltalk.method({
  3834. selector: 'printNl',
  3835. category: 'printing',
  3836. fn: function (){
  3837. var self=this;
  3838. console.log(self);
  3839. return self;},
  3840. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  3841. messageSends: [],
  3842. referencedClasses: []
  3843. }),
  3844. smalltalk.String);
  3845. smalltalk.addMethod(
  3846. '_isString',
  3847. smalltalk.method({
  3848. selector: 'isString',
  3849. category: 'testing',
  3850. fn: function (){
  3851. var self=this;
  3852. return true;
  3853. return self;},
  3854. source: unescape('isString%0A%20%20%20%20%09%5Etrue'),
  3855. messageSends: [],
  3856. referencedClasses: []
  3857. }),
  3858. smalltalk.String);
  3859. smalltalk.addMethod(
  3860. '__gt',
  3861. smalltalk.method({
  3862. selector: '>',
  3863. category: 'comparing',
  3864. fn: function (aString){
  3865. var self=this;
  3866. return String(self) > aString;
  3867. return self;},
  3868. source: unescape('%3E%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%20aString%3E'),
  3869. messageSends: [],
  3870. referencedClasses: []
  3871. }),
  3872. smalltalk.String);
  3873. smalltalk.addMethod(
  3874. '__lt',
  3875. smalltalk.method({
  3876. selector: '<',
  3877. category: 'comparing',
  3878. fn: function (aString){
  3879. var self=this;
  3880. return String(self) < aString;
  3881. return self;},
  3882. source: unescape('%3C%20aString%0A%09%3Creturn%20String%28self%29%20%3C%20aString%3E'),
  3883. messageSends: [],
  3884. referencedClasses: []
  3885. }),
  3886. smalltalk.String);
  3887. smalltalk.addMethod(
  3888. '__gt_eq',
  3889. smalltalk.method({
  3890. selector: '>=',
  3891. category: 'comparing',
  3892. fn: function (aString){
  3893. var self=this;
  3894. return String(self) >= aString;
  3895. return self;},
  3896. source: unescape('%3E%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%3D%20aString%3E'),
  3897. messageSends: [],
  3898. referencedClasses: []
  3899. }),
  3900. smalltalk.String);
  3901. smalltalk.addMethod(
  3902. '__lt_eq',
  3903. smalltalk.method({
  3904. selector: '<=',
  3905. category: 'comparing',
  3906. fn: function (aString){
  3907. var self=this;
  3908. return String(self) <= aString;
  3909. return self;},
  3910. source: unescape('%3C%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3C%3D%20aString%3E'),
  3911. messageSends: [],
  3912. referencedClasses: []
  3913. }),
  3914. smalltalk.String);
  3915. smalltalk.addMethod(
  3916. '_remove_',
  3917. smalltalk.method({
  3918. selector: 'remove:',
  3919. category: 'adding',
  3920. fn: function (anObject){
  3921. var self=this;
  3922. smalltalk.send(self, "_errorReadOnly", []);
  3923. return self;},
  3924. source: unescape('remove%3A%20anObject%0A%09self%20errorReadOnly'),
  3925. messageSends: ["errorReadOnly"],
  3926. referencedClasses: []
  3927. }),
  3928. smalltalk.String);
  3929. smalltalk.addMethod(
  3930. '_asJSONObject',
  3931. smalltalk.method({
  3932. selector: 'asJSONObject',
  3933. category: 'converting',
  3934. fn: function (){
  3935. var self=this;
  3936. return self;
  3937. return self;},
  3938. source: unescape('asJSONObject%0A%09%5Eself'),
  3939. messageSends: [],
  3940. referencedClasses: []
  3941. }),
  3942. smalltalk.String);
  3943. smalltalk.addMethod(
  3944. '_trimLeft_',
  3945. smalltalk.method({
  3946. selector: 'trimLeft:',
  3947. category: 'regular expressions',
  3948. fn: function (separators){
  3949. var self=this;
  3950. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send(smalltalk.RegularExpression, "_fromString_flag_", [smalltalk.send(smalltalk.send(unescape("%5E%5B"), "__comma", [separators]), "__comma", [unescape("%5D+")]), "g"]), ""]);
  3951. return self;},
  3952. 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'),
  3953. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  3954. referencedClasses: [smalltalk.RegularExpression]
  3955. }),
  3956. smalltalk.String);
  3957. smalltalk.addMethod(
  3958. '_trimRight_',
  3959. smalltalk.method({
  3960. selector: 'trimRight:',
  3961. category: 'regular expressions',
  3962. fn: function (separators){
  3963. var self=this;
  3964. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send(smalltalk.RegularExpression, "_fromString_flag_", [smalltalk.send(smalltalk.send(unescape("%5B"), "__comma", [separators]), "__comma", [unescape("%5D+%24")]), "g"]), ""]);
  3965. return self;},
  3966. 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'),
  3967. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  3968. referencedClasses: [smalltalk.RegularExpression]
  3969. }),
  3970. smalltalk.String);
  3971. smalltalk.addMethod(
  3972. '_trimLeft',
  3973. smalltalk.method({
  3974. selector: 'trimLeft',
  3975. category: 'regular expressions',
  3976. fn: function (){
  3977. var self=this;
  3978. return smalltalk.send(self, "_trimLeft_", [unescape("%5Cs")]);
  3979. return self;},
  3980. source: unescape('trimLeft%0A%09%5Eself%20trimLeft%3A%20%27%5Cs%27'),
  3981. messageSends: ["trimLeft:"],
  3982. referencedClasses: []
  3983. }),
  3984. smalltalk.String);
  3985. smalltalk.addMethod(
  3986. '_trimRight',
  3987. smalltalk.method({
  3988. selector: 'trimRight',
  3989. category: 'regular expressions',
  3990. fn: function (){
  3991. var self=this;
  3992. return smalltalk.send(self, "_trimRight_", [unescape("%5Cs")]);
  3993. return self;},
  3994. source: unescape('trimRight%0A%09%5Eself%20trimRight%3A%20%27%5Cs%27'),
  3995. messageSends: ["trimRight:"],
  3996. referencedClasses: []
  3997. }),
  3998. smalltalk.String);
  3999. smalltalk.addMethod(
  4000. '_trimBoth',
  4001. smalltalk.method({
  4002. selector: 'trimBoth',
  4003. category: 'regular expressions',
  4004. fn: function (){
  4005. var self=this;
  4006. return smalltalk.send(self, "_trimBoth_", [unescape("%5Cs")]);
  4007. return self;},
  4008. source: unescape('trimBoth%0A%09%5Eself%20trimBoth%3A%20%27%5Cs%27'),
  4009. messageSends: ["trimBoth:"],
  4010. referencedClasses: []
  4011. }),
  4012. smalltalk.String);
  4013. smalltalk.addMethod(
  4014. '_trimBoth_',
  4015. smalltalk.method({
  4016. selector: 'trimBoth:',
  4017. category: 'regular expressions',
  4018. fn: function (separators){
  4019. var self=this;
  4020. return smalltalk.send(smalltalk.send(self, "_trimLeft_", [separators]), "_trimRight_", [separators]);
  4021. return self;},
  4022. source: unescape('trimBoth%3A%20separators%0A%0A%20%20%20%20%09%5E%28self%20trimLeft%3A%20separators%29%20trimRight%3A%20separators'),
  4023. messageSends: ["trimRight:", "trimLeft:"],
  4024. referencedClasses: []
  4025. }),
  4026. smalltalk.String);
  4027. smalltalk.addMethod(
  4028. '_streamClass',
  4029. smalltalk.method({
  4030. selector: 'streamClass',
  4031. category: 'accessing',
  4032. fn: function (){
  4033. var self=this;
  4034. return smalltalk.StringStream;
  4035. return self;},
  4036. source: unescape('streamClass%0A%09%20%20%20%20%5EStringStream'),
  4037. messageSends: [],
  4038. referencedClasses: [smalltalk.nil]
  4039. }),
  4040. smalltalk.String.klass);
  4041. smalltalk.addMethod(
  4042. '_fromString_',
  4043. smalltalk.method({
  4044. selector: 'fromString:',
  4045. category: 'instance creation',
  4046. fn: function (aString){
  4047. var self=this;
  4048. return new self.fn(aString);
  4049. return self;},
  4050. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%3Creturn%20new%20self.fn%28aString%29%3E'),
  4051. messageSends: [],
  4052. referencedClasses: []
  4053. }),
  4054. smalltalk.String.klass);
  4055. smalltalk.addMethod(
  4056. '_cr',
  4057. smalltalk.method({
  4058. selector: 'cr',
  4059. category: 'accessing',
  4060. fn: function (){
  4061. var self=this;
  4062. return '\r';
  4063. return self;},
  4064. source: unescape('cr%0A%09%3Creturn%20%27%5Cr%27%3E'),
  4065. messageSends: [],
  4066. referencedClasses: []
  4067. }),
  4068. smalltalk.String.klass);
  4069. smalltalk.addMethod(
  4070. '_lf',
  4071. smalltalk.method({
  4072. selector: 'lf',
  4073. category: 'accessing',
  4074. fn: function (){
  4075. var self=this;
  4076. return '\n';
  4077. return self;},
  4078. source: unescape('lf%0A%09%3Creturn%20%27%5Cn%27%3E'),
  4079. messageSends: [],
  4080. referencedClasses: []
  4081. }),
  4082. smalltalk.String.klass);
  4083. smalltalk.addMethod(
  4084. '_space',
  4085. smalltalk.method({
  4086. selector: 'space',
  4087. category: 'accessing',
  4088. fn: function (){
  4089. var self=this;
  4090. return ' ';
  4091. return self;},
  4092. source: unescape('space%0A%09%3Creturn%20%27%20%27%3E'),
  4093. messageSends: [],
  4094. referencedClasses: []
  4095. }),
  4096. smalltalk.String.klass);
  4097. smalltalk.addMethod(
  4098. '_tab',
  4099. smalltalk.method({
  4100. selector: 'tab',
  4101. category: 'accessing',
  4102. fn: function (){
  4103. var self=this;
  4104. return '\t';
  4105. return self;},
  4106. source: unescape('tab%0A%09%3Creturn%20%27%5Ct%27%3E'),
  4107. messageSends: [],
  4108. referencedClasses: []
  4109. }),
  4110. smalltalk.String.klass);
  4111. smalltalk.addMethod(
  4112. '_crlf',
  4113. smalltalk.method({
  4114. selector: 'crlf',
  4115. category: 'accessing',
  4116. fn: function (){
  4117. var self=this;
  4118. return '\r\n';
  4119. return self;},
  4120. source: unescape('crlf%0A%09%3Creturn%20%27%5Cr%5Cn%27%3E'),
  4121. messageSends: [],
  4122. referencedClasses: []
  4123. }),
  4124. smalltalk.String.klass);
  4125. smalltalk.addClass('Array', smalltalk.SequenceableCollection, [], 'Kernel');
  4126. smalltalk.addMethod(
  4127. '_size',
  4128. smalltalk.method({
  4129. selector: 'size',
  4130. category: 'accessing',
  4131. fn: function (){
  4132. var self=this;
  4133. return self.length;
  4134. return self;},
  4135. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  4136. messageSends: [],
  4137. referencedClasses: []
  4138. }),
  4139. smalltalk.Array);
  4140. smalltalk.addMethod(
  4141. '_at_put_',
  4142. smalltalk.method({
  4143. selector: 'at:put:',
  4144. category: 'accessing',
  4145. fn: function (anIndex, anObject){
  4146. var self=this;
  4147. return self[anIndex - 1] = anObject;
  4148. return self;},
  4149. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%20%3D%20anObject%3E'),
  4150. messageSends: [],
  4151. referencedClasses: []
  4152. }),
  4153. smalltalk.Array);
  4154. smalltalk.addMethod(
  4155. '_at_ifAbsent_',
  4156. smalltalk.method({
  4157. selector: 'at:ifAbsent:',
  4158. category: 'accessing',
  4159. fn: function (anIndex, aBlock){
  4160. var self=this;
  4161. var value = self[anIndex - 1];
  4162. if(value === undefined) {
  4163. return aBlock();
  4164. } else {
  4165. return value;
  4166. }
  4167. ;
  4168. return self;},
  4169. 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'),
  4170. messageSends: [],
  4171. referencedClasses: []
  4172. }),
  4173. smalltalk.Array);
  4174. smalltalk.addMethod(
  4175. '_add_',
  4176. smalltalk.method({
  4177. selector: 'add:',
  4178. category: 'adding/removing',
  4179. fn: function (anObject){
  4180. var self=this;
  4181. self.push(anObject); return anObject;;
  4182. return self;},
  4183. source: unescape('add%3A%20anObject%0A%09%3Cself.push%28anObject%29%3B%20return%20anObject%3B%3E'),
  4184. messageSends: [],
  4185. referencedClasses: []
  4186. }),
  4187. smalltalk.Array);
  4188. smalltalk.addMethod(
  4189. '_shallowCopy',
  4190. smalltalk.method({
  4191. selector: 'shallowCopy',
  4192. category: 'copying',
  4193. fn: function (){
  4194. var self=this;
  4195. var newCollection=nil;
  4196. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  4197. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [each]);})]);
  4198. return newCollection;
  4199. return self;},
  4200. 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'),
  4201. messageSends: ["new", "class", "do:", "add:"],
  4202. referencedClasses: []
  4203. }),
  4204. smalltalk.Array);
  4205. smalltalk.addMethod(
  4206. '_deepCopy',
  4207. smalltalk.method({
  4208. selector: 'deepCopy',
  4209. category: 'copying',
  4210. fn: function (){
  4211. var self=this;
  4212. var newCollection=nil;
  4213. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  4214. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(each, "_deepCopy", [])]);})]);
  4215. return newCollection;
  4216. return self;},
  4217. 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'),
  4218. messageSends: ["new", "class", "do:", "add:", "deepCopy"],
  4219. referencedClasses: []
  4220. }),
  4221. smalltalk.Array);
  4222. smalltalk.addMethod(
  4223. '_copyFrom_to_',
  4224. smalltalk.method({
  4225. selector: 'copyFrom:to:',
  4226. category: 'copying',
  4227. fn: function (anIndex, anotherIndex){
  4228. var self=this;
  4229. var array=nil;
  4230. array=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  4231. smalltalk.send(anIndex, "_to_do_", [anotherIndex, (function(each){return smalltalk.send(array, "_add_", [smalltalk.send(self, "_at_", [each])]);})]);
  4232. return array;
  4233. return self;},
  4234. 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'),
  4235. messageSends: ["new", "class", "to:do:", "add:", "at:"],
  4236. referencedClasses: []
  4237. }),
  4238. smalltalk.Array);
  4239. smalltalk.addMethod(
  4240. '_join_',
  4241. smalltalk.method({
  4242. selector: 'join:',
  4243. category: 'enumerating',
  4244. fn: function (aString){
  4245. var self=this;
  4246. return self.join(aString);
  4247. return self;},
  4248. source: unescape('join%3A%20aString%0A%09%3Creturn%20self.join%28aString%29%3E'),
  4249. messageSends: [],
  4250. referencedClasses: []
  4251. }),
  4252. smalltalk.Array);
  4253. smalltalk.addMethod(
  4254. '_asJavascript',
  4255. smalltalk.method({
  4256. selector: 'asJavascript',
  4257. category: 'converting',
  4258. fn: function (){
  4259. var self=this;
  4260. 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")]);
  4261. return self;},
  4262. 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'),
  4263. messageSends: [unescape("%2C"), "join:", "collect:", "asJavascript"],
  4264. referencedClasses: []
  4265. }),
  4266. smalltalk.Array);
  4267. smalltalk.addMethod(
  4268. '_sort',
  4269. smalltalk.method({
  4270. selector: 'sort',
  4271. category: 'enumerating',
  4272. fn: function (){
  4273. var self=this;
  4274. return smalltalk.send(self, "_basicPerform_", ["sort"]);
  4275. return self;},
  4276. source: unescape('sort%0A%20%20%20%20%5Eself%20basicPerform%3A%20%27sort%27'),
  4277. messageSends: ["basicPerform:"],
  4278. referencedClasses: []
  4279. }),
  4280. smalltalk.Array);
  4281. smalltalk.addMethod(
  4282. '_sort_',
  4283. smalltalk.method({
  4284. selector: 'sort:',
  4285. category: 'enumerating',
  4286. fn: function (aBlock){
  4287. var self=this;
  4288. return self.sort(function(a, b) {
  4289. if(aBlock(a,b)) {return 1} else {return -1}
  4290. })
  4291. ;
  4292. return self;},
  4293. 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%201%7D%20else%20%7Breturn%20-1%7D%0A%09%09%7D%29%0A%09%3E'),
  4294. messageSends: [],
  4295. referencedClasses: []
  4296. }),
  4297. smalltalk.Array);
  4298. smalltalk.addMethod(
  4299. '_remove_',
  4300. smalltalk.method({
  4301. selector: 'remove:',
  4302. category: 'adding/removing',
  4303. fn: function (anObject){
  4304. var self=this;
  4305. for(var i=0;i<self.length;i++) {
  4306. if(self[i] == anObject) {
  4307. self.splice(i,1);
  4308. break;
  4309. }
  4310. }
  4311. ;
  4312. return self;},
  4313. 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'),
  4314. messageSends: [],
  4315. referencedClasses: []
  4316. }),
  4317. smalltalk.Array);
  4318. smalltalk.addMethod(
  4319. '_sorted',
  4320. smalltalk.method({
  4321. selector: 'sorted',
  4322. category: 'enumerating',
  4323. fn: function (){
  4324. var self=this;
  4325. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort", []);
  4326. return self;},
  4327. source: unescape('sorted%0A%09%5Eself%20copy%20sort'),
  4328. messageSends: ["sort", "copy"],
  4329. referencedClasses: []
  4330. }),
  4331. smalltalk.Array);
  4332. smalltalk.addMethod(
  4333. '_sorted_',
  4334. smalltalk.method({
  4335. selector: 'sorted:',
  4336. category: 'enumerating',
  4337. fn: function (aBlock){
  4338. var self=this;
  4339. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sorted_", [aBlock]);
  4340. return self;},
  4341. source: unescape('sorted%3A%20aBlock%0A%09%5Eself%20copy%20sorted%3A%20aBlock'),
  4342. messageSends: ["sorted:", "copy"],
  4343. referencedClasses: []
  4344. }),
  4345. smalltalk.Array);
  4346. smalltalk.addMethod(
  4347. '_asJSONObject',
  4348. smalltalk.method({
  4349. selector: 'asJSONObject',
  4350. category: 'converting',
  4351. fn: function (){
  4352. var self=this;
  4353. return smalltalk.send(self, "_collect_", [(function(each){return smalltalk.send(each, "_asJSONObject", []);})]);
  4354. return self;},
  4355. source: unescape('asJSONObject%0A%09%5Eself%20collect%3A%20%5B%3Aeach%20%7C%20each%20asJSONObject%5D'),
  4356. messageSends: ["collect:", "asJSONObject"],
  4357. referencedClasses: []
  4358. }),
  4359. smalltalk.Array);
  4360. smalltalk.addMethod(
  4361. '_removeFrom_to_',
  4362. smalltalk.method({
  4363. selector: 'removeFrom:to:',
  4364. category: 'adding/removing',
  4365. fn: function (aNumber, anotherNumber){
  4366. var self=this;
  4367. self.splice(aNumber - 1,anotherNumber - 1);
  4368. return self;},
  4369. source: unescape('removeFrom%3A%20aNumber%20to%3A%20anotherNumber%0A%09%3Cself.splice%28aNumber%20-%201%2CanotherNumber%20-%201%29%3E'),
  4370. messageSends: [],
  4371. referencedClasses: []
  4372. }),
  4373. smalltalk.Array);
  4374. smalltalk.addClass('RegularExpression', smalltalk.Object, [], 'Kernel');
  4375. smalltalk.addMethod(
  4376. '_compile_',
  4377. smalltalk.method({
  4378. selector: 'compile:',
  4379. category: 'evaluating',
  4380. fn: function (aString){
  4381. var self=this;
  4382. return self.compile(aString);
  4383. return self;},
  4384. source: unescape('compile%3A%20aString%0A%09%3Creturn%20self.compile%28aString%29%3E'),
  4385. messageSends: [],
  4386. referencedClasses: []
  4387. }),
  4388. smalltalk.RegularExpression);
  4389. smalltalk.addMethod(
  4390. '_exec_',
  4391. smalltalk.method({
  4392. selector: 'exec:',
  4393. category: 'evaluating',
  4394. fn: function (aString){
  4395. var self=this;
  4396. return self.exec(aString);
  4397. return self;},
  4398. source: unescape('exec%3A%20aString%0A%09%3Creturn%20self.exec%28aString%29%3E'),
  4399. messageSends: [],
  4400. referencedClasses: []
  4401. }),
  4402. smalltalk.RegularExpression);
  4403. smalltalk.addMethod(
  4404. '_test_',
  4405. smalltalk.method({
  4406. selector: 'test:',
  4407. category: 'evaluating',
  4408. fn: function (aString){
  4409. var self=this;
  4410. return self.test(aString);
  4411. return self;},
  4412. source: unescape('test%3A%20aString%0A%09%3Creturn%20self.test%28aString%29%3E'),
  4413. messageSends: [],
  4414. referencedClasses: []
  4415. }),
  4416. smalltalk.RegularExpression);
  4417. smalltalk.addMethod(
  4418. '_fromString_flag_',
  4419. smalltalk.method({
  4420. selector: 'fromString:flag:',
  4421. category: 'instance creation',
  4422. fn: function (aString, anotherString){
  4423. var self=this;
  4424. return new RegExp(aString, anotherString);
  4425. return self;},
  4426. source: unescape('fromString%3A%20aString%20flag%3A%20anotherString%0A%09%3Creturn%20new%20RegExp%28aString%2C%20anotherString%29%3E'),
  4427. messageSends: [],
  4428. referencedClasses: []
  4429. }),
  4430. smalltalk.RegularExpression.klass);
  4431. smalltalk.addMethod(
  4432. '_fromString_',
  4433. smalltalk.method({
  4434. selector: 'fromString:',
  4435. category: 'instance creation',
  4436. fn: function (aString){
  4437. var self=this;
  4438. return smalltalk.send(self, "_fromString_flag_", [aString, ""]);
  4439. return self;},
  4440. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%5Eself%20fromString%3A%20aString%20flag%3A%20%27%27'),
  4441. messageSends: ["fromString:flag:"],
  4442. referencedClasses: []
  4443. }),
  4444. smalltalk.RegularExpression.klass);
  4445. smalltalk.addClass('Error', smalltalk.Object, ['messageText'], 'Kernel');
  4446. smalltalk.addMethod(
  4447. '_messageText',
  4448. smalltalk.method({
  4449. selector: 'messageText',
  4450. category: 'accessing',
  4451. fn: function (){
  4452. var self=this;
  4453. return self['@messageText'];
  4454. return self;},
  4455. source: unescape('messageText%0A%09%5EmessageText'),
  4456. messageSends: [],
  4457. referencedClasses: []
  4458. }),
  4459. smalltalk.Error);
  4460. smalltalk.addMethod(
  4461. '_messageText_',
  4462. smalltalk.method({
  4463. selector: 'messageText:',
  4464. category: 'accessing',
  4465. fn: function (aString){
  4466. var self=this;
  4467. self['@messageText']=aString;
  4468. return self;},
  4469. source: unescape('messageText%3A%20aString%0A%09messageText%20%3A%3D%20aString'),
  4470. messageSends: [],
  4471. referencedClasses: []
  4472. }),
  4473. smalltalk.Error);
  4474. smalltalk.addMethod(
  4475. '_signal',
  4476. smalltalk.method({
  4477. selector: 'signal',
  4478. category: 'signaling',
  4479. fn: function (){
  4480. var self=this;
  4481. console.log(self._messageText()); throw(self);
  4482. return self;},
  4483. source: unescape('signal%0A%09%3Cconsole.log%28self._messageText%28%29%29%3B%20throw%28self%29%3E'),
  4484. messageSends: [],
  4485. referencedClasses: []
  4486. }),
  4487. smalltalk.Error);
  4488. smalltalk.addMethod(
  4489. '_signal_',
  4490. smalltalk.method({
  4491. selector: 'signal:',
  4492. category: 'instance creation',
  4493. fn: function (aString){
  4494. var self=this;
  4495. return (function($rec){smalltalk.send($rec, "_messageText_", [aString]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send(self, "_new", []));
  4496. return self;},
  4497. source: unescape('signal%3A%20aString%0A%09%20%20%20%20%5Eself%20new%0A%09%09messageText%3A%20aString%3B%0A%09%09signal'),
  4498. messageSends: ["messageText:", "signal", "new"],
  4499. referencedClasses: []
  4500. }),
  4501. smalltalk.Error.klass);
  4502. smalltalk.addClass('Association', smalltalk.Object, ['key', 'value'], 'Kernel');
  4503. smalltalk.addMethod(
  4504. '__eq',
  4505. smalltalk.method({
  4506. selector: '=',
  4507. category: 'comparing',
  4508. fn: function (anAssociation){
  4509. var self=this;
  4510. 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", [])]);})]);})]);
  4511. return self;},
  4512. 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'),
  4513. messageSends: ["and:", unescape("%3D"), "class", "key", "value"],
  4514. referencedClasses: []
  4515. }),
  4516. smalltalk.Association);
  4517. smalltalk.addMethod(
  4518. '_key_',
  4519. smalltalk.method({
  4520. selector: 'key:',
  4521. category: 'accessing',
  4522. fn: function (aKey){
  4523. var self=this;
  4524. self['@key']=aKey;
  4525. return self;},
  4526. source: unescape('key%3A%20aKey%0A%09key%20%3A%3D%20aKey'),
  4527. messageSends: [],
  4528. referencedClasses: []
  4529. }),
  4530. smalltalk.Association);
  4531. smalltalk.addMethod(
  4532. '_key',
  4533. smalltalk.method({
  4534. selector: 'key',
  4535. category: 'accessing',
  4536. fn: function (){
  4537. var self=this;
  4538. return self['@key'];
  4539. return self;},
  4540. source: unescape('key%0A%09%5Ekey'),
  4541. messageSends: [],
  4542. referencedClasses: []
  4543. }),
  4544. smalltalk.Association);
  4545. smalltalk.addMethod(
  4546. '_value_',
  4547. smalltalk.method({
  4548. selector: 'value:',
  4549. category: 'accessing',
  4550. fn: function (aValue){
  4551. var self=this;
  4552. self['@value']=aValue;
  4553. return self;},
  4554. source: unescape('value%3A%20aValue%0A%09value%20%3A%3D%20aValue'),
  4555. messageSends: [],
  4556. referencedClasses: []
  4557. }),
  4558. smalltalk.Association);
  4559. smalltalk.addMethod(
  4560. '_value',
  4561. smalltalk.method({
  4562. selector: 'value',
  4563. category: 'accessing',
  4564. fn: function (){
  4565. var self=this;
  4566. return self['@value'];
  4567. return self;},
  4568. source: unescape('value%0A%09%5Evalue'),
  4569. messageSends: [],
  4570. referencedClasses: []
  4571. }),
  4572. smalltalk.Association);
  4573. smalltalk.addMethod(
  4574. '_key_value_',
  4575. smalltalk.method({
  4576. selector: 'key:value:',
  4577. category: 'instance creation',
  4578. fn: function (aKey, aValue){
  4579. var self=this;
  4580. return (function($rec){smalltalk.send($rec, "_key_", [aKey]);smalltalk.send($rec, "_value_", [aValue]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4581. return self;},
  4582. 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'),
  4583. messageSends: ["key:", "value:", "yourself", "new"],
  4584. referencedClasses: []
  4585. }),
  4586. smalltalk.Association.klass);
  4587. smalltalk.addClass('Dictionary', smalltalk.Collection, ['keys'], 'Kernel');
  4588. smalltalk.addMethod(
  4589. '__eq',
  4590. smalltalk.method({
  4591. selector: '=',
  4592. category: 'comparing',
  4593. fn: function (aDictionary){
  4594. var self=this;
  4595. try{smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aDictionary, "_class", [])]), "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]);
  4596. smalltalk.send(self, "_associationsDo_", [(function(assoc){return smalltalk.send(smalltalk.send(smalltalk.send(aDictionary, "_at_ifAbsent_", [smalltalk.send(assoc, "_key", []), (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]), "__eq", [smalltalk.send(assoc, "_value", [])]), "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]);})]);
  4597. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return true}})})();
  4598. return self;
  4599. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  4600. source: unescape('%3D%20aDictionary%0A%09self%20class%20%3D%20aDictionary%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09self%20associationsDo%3A%20%5B%3Aassoc%20%7C%0A%09%20%20%20%20%28aDictionary%20at%3A%20assoc%20key%20ifAbsent%3A%20%5B%5Efalse%5D%29%20%3D%20assoc%20value%20%0A%09%09ifFalse%3A%20%5B%5Efalse%5D%5D.%0A%09%5Etrue'),
  4601. messageSends: ["ifFalse:", unescape("%3D"), "class", "associationsDo:", "at:ifAbsent:", "key", "value"],
  4602. referencedClasses: []
  4603. }),
  4604. smalltalk.Dictionary);
  4605. smalltalk.addMethod(
  4606. '_shallowCopy',
  4607. smalltalk.method({
  4608. selector: 'shallowCopy',
  4609. category: 'copying',
  4610. fn: function (){
  4611. var self=this;
  4612. var copy=nil;
  4613. copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  4614. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(copy, "_at_put_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  4615. return copy;
  4616. return self;},
  4617. 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'),
  4618. messageSends: ["new", "class", "associationsDo:", "at:put:", "key", "value"],
  4619. referencedClasses: []
  4620. }),
  4621. smalltalk.Dictionary);
  4622. smalltalk.addMethod(
  4623. '_initialize',
  4624. smalltalk.method({
  4625. selector: 'initialize',
  4626. category: 'initialization',
  4627. fn: function (){
  4628. var self=this;
  4629. smalltalk.send(self, "_initialize", [], smalltalk.Collection);
  4630. self['@keys']=[];
  4631. return self;},
  4632. source: unescape('initialize%0A%20%20%20%20%09super%20initialize.%0A%20%20%20%20%09keys%20%3A%3D%20%23%28%29'),
  4633. messageSends: ["initialize"],
  4634. referencedClasses: []
  4635. }),
  4636. smalltalk.Dictionary);
  4637. smalltalk.addMethod(
  4638. '_size',
  4639. smalltalk.method({
  4640. selector: 'size',
  4641. category: 'accessing',
  4642. fn: function (){
  4643. var self=this;
  4644. return smalltalk.send(self['@keys'], "_size", []);
  4645. return self;},
  4646. source: unescape('size%0A%09%5Ekeys%20size'),
  4647. messageSends: ["size"],
  4648. referencedClasses: []
  4649. }),
  4650. smalltalk.Dictionary);
  4651. smalltalk.addMethod(
  4652. '_associations',
  4653. smalltalk.method({
  4654. selector: 'associations',
  4655. category: 'accessing',
  4656. fn: function (){
  4657. var self=this;
  4658. var associations=nil;
  4659. associations=[];
  4660. smalltalk.send(self['@keys'], "_do_", [(function(each){return smalltalk.send(associations, "_add_", [smalltalk.send(smalltalk.Association, "_key_value_", [each, smalltalk.send(self, "_at_", [each])])]);})]);
  4661. return associations;
  4662. return self;},
  4663. 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'),
  4664. messageSends: ["do:", "add:", "key:value:", "at:"],
  4665. referencedClasses: [smalltalk.Association]
  4666. }),
  4667. smalltalk.Dictionary);
  4668. smalltalk.addMethod(
  4669. '_keys',
  4670. smalltalk.method({
  4671. selector: 'keys',
  4672. category: 'accessing',
  4673. fn: function (){
  4674. var self=this;
  4675. return smalltalk.send(self['@keys'], "_copy", []);
  4676. return self;},
  4677. source: unescape('keys%0A%09%5Ekeys%20copy'),
  4678. messageSends: ["copy"],
  4679. referencedClasses: []
  4680. }),
  4681. smalltalk.Dictionary);
  4682. smalltalk.addMethod(
  4683. '_values',
  4684. smalltalk.method({
  4685. selector: 'values',
  4686. category: 'accessing',
  4687. fn: function (){
  4688. var self=this;
  4689. return smalltalk.send(self['@keys'], "_collect_", [(function(each){return smalltalk.send(self, "_at_", [each]);})]);
  4690. return self;},
  4691. source: unescape('values%0A%20%20%20%20%09%5Ekeys%20collect%3A%20%5B%3Aeach%20%7C%20self%20at%3A%20each%5D'),
  4692. messageSends: ["collect:", "at:"],
  4693. referencedClasses: []
  4694. }),
  4695. smalltalk.Dictionary);
  4696. smalltalk.addMethod(
  4697. '_at_put_',
  4698. smalltalk.method({
  4699. selector: 'at:put:',
  4700. category: 'accessing',
  4701. fn: function (aKey, aValue){
  4702. var self=this;
  4703. smalltalk.send(smalltalk.send(self['@keys'], "_includes_", [aKey]), "_ifFalse_", [(function(){return smalltalk.send(self['@keys'], "_add_", [aKey]);})]);
  4704. return smalltalk.send(self, "_basicAt_put_", [aKey, aValue]);
  4705. return self;},
  4706. 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'),
  4707. messageSends: ["ifFalse:", "includes:", "add:", "basicAt:put:"],
  4708. referencedClasses: []
  4709. }),
  4710. smalltalk.Dictionary);
  4711. smalltalk.addMethod(
  4712. '_at_ifAbsent_',
  4713. smalltalk.method({
  4714. selector: 'at:ifAbsent:',
  4715. category: 'accessing',
  4716. fn: function (aKey, aBlock){
  4717. var self=this;
  4718. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_keys", []), "_includes_", [aKey]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_basicAt_", [aKey]);}), aBlock]);
  4719. return self;},
  4720. 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'),
  4721. messageSends: ["ifTrue:ifFalse:", "includes:", "keys", "basicAt:"],
  4722. referencedClasses: []
  4723. }),
  4724. smalltalk.Dictionary);
  4725. smalltalk.addMethod(
  4726. '_at_ifAbsentPut_',
  4727. smalltalk.method({
  4728. selector: 'at:ifAbsentPut:',
  4729. category: 'accessing',
  4730. fn: function (aKey, aBlock){
  4731. var self=this;
  4732. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_at_put_", [aKey, smalltalk.send(aBlock, "_value", [])]);})]);
  4733. return self;},
  4734. 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'),
  4735. messageSends: ["at:ifAbsent:", "at:put:", "value"],
  4736. referencedClasses: []
  4737. }),
  4738. smalltalk.Dictionary);
  4739. smalltalk.addMethod(
  4740. '_at_ifPresent_',
  4741. smalltalk.method({
  4742. selector: 'at:ifPresent:',
  4743. category: 'accessing',
  4744. fn: function (aKey, aBlock){
  4745. var self=this;
  4746. return smalltalk.send(smalltalk.send(self, "_basicAt_", [aKey]), "_ifNotNil_", [(function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})]);
  4747. return self;},
  4748. 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'),
  4749. messageSends: ["ifNotNil:", "basicAt:", "value:", "at:"],
  4750. referencedClasses: []
  4751. }),
  4752. smalltalk.Dictionary);
  4753. smalltalk.addMethod(
  4754. '_at_ifPresent_ifAbsent_',
  4755. smalltalk.method({
  4756. selector: 'at:ifPresent:ifAbsent:',
  4757. category: 'accessing',
  4758. fn: function (aKey, aBlock, anotherBlock){
  4759. var self=this;
  4760. return smalltalk.send(smalltalk.send(self, "_basicAt_", [aKey]), "_ifNil_ifNotNil_", [anotherBlock, (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})]);
  4761. return self;},
  4762. 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'),
  4763. messageSends: ["ifNil:ifNotNil:", "basicAt:", "value:", "at:"],
  4764. referencedClasses: []
  4765. }),
  4766. smalltalk.Dictionary);
  4767. smalltalk.addMethod(
  4768. '_add_',
  4769. smalltalk.method({
  4770. selector: 'add:',
  4771. category: 'adding/removing',
  4772. fn: function (anAssociation){
  4773. var self=this;
  4774. smalltalk.send(self, "_at_put_", [smalltalk.send(anAssociation, "_key", []), smalltalk.send(anAssociation, "_value", [])]);
  4775. return self;},
  4776. source: unescape('add%3A%20anAssociation%0A%20%20%20%20%09self%20at%3A%20anAssociation%20key%20put%3A%20anAssociation%20value'),
  4777. messageSends: ["at:put:", "key", "value"],
  4778. referencedClasses: []
  4779. }),
  4780. smalltalk.Dictionary);
  4781. smalltalk.addMethod(
  4782. '_addAll_',
  4783. smalltalk.method({
  4784. selector: 'addAll:',
  4785. category: 'adding/removing',
  4786. fn: function (aDictionary){
  4787. var self=this;
  4788. smalltalk.send(self, "_addAll_", [smalltalk.send(aDictionary, "_associations", [])], smalltalk.Collection);
  4789. return aDictionary;
  4790. return self;},
  4791. source: unescape('addAll%3A%20aDictionary%0A%20%20%20%20%09super%20addAll%3A%20aDictionary%20associations.%0A%20%20%20%20%09%5EaDictionary'),
  4792. messageSends: ["addAll:", "associations"],
  4793. referencedClasses: []
  4794. }),
  4795. smalltalk.Dictionary);
  4796. smalltalk.addMethod(
  4797. '__comma',
  4798. smalltalk.method({
  4799. selector: ',',
  4800. category: 'copying',
  4801. fn: function (aCollection){
  4802. var self=this;
  4803. smalltalk.send(self, "_shouldNotImplement", []);
  4804. return self;},
  4805. source: unescape('%2C%20aCollection%0A%09self%20shouldNotImplement'),
  4806. messageSends: ["shouldNotImplement"],
  4807. referencedClasses: []
  4808. }),
  4809. smalltalk.Dictionary);
  4810. smalltalk.addMethod(
  4811. '_copyFrom_to_',
  4812. smalltalk.method({
  4813. selector: 'copyFrom:to:',
  4814. category: 'copying',
  4815. fn: function (anIndex, anotherIndex){
  4816. var self=this;
  4817. smalltalk.send(self, "_shouldNotImplement", []);
  4818. return self;},
  4819. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20shouldNotImplement'),
  4820. messageSends: ["shouldNotImplement"],
  4821. referencedClasses: []
  4822. }),
  4823. smalltalk.Dictionary);
  4824. smalltalk.addMethod(
  4825. '_associationsDo_',
  4826. smalltalk.method({
  4827. selector: 'associationsDo:',
  4828. category: 'enumerating',
  4829. fn: function (aBlock){
  4830. var self=this;
  4831. smalltalk.send(smalltalk.send(self, "_associations", []), "_do_", [aBlock]);
  4832. return self;},
  4833. source: unescape('associationsDo%3A%20aBlock%0A%20%20%20%20%09self%20associations%20do%3A%20aBlock'),
  4834. messageSends: ["do:", "associations"],
  4835. referencedClasses: []
  4836. }),
  4837. smalltalk.Dictionary);
  4838. smalltalk.addMethod(
  4839. '_keysAndValuesDo_',
  4840. smalltalk.method({
  4841. selector: 'keysAndValuesDo:',
  4842. category: 'enumerating',
  4843. fn: function (aBlock){
  4844. var self=this;
  4845. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(aBlock, "_value_value_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  4846. return self;},
  4847. 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'),
  4848. messageSends: ["associationsDo:", "value:value:", "key", "value"],
  4849. referencedClasses: []
  4850. }),
  4851. smalltalk.Dictionary);
  4852. smalltalk.addMethod(
  4853. '_do_',
  4854. smalltalk.method({
  4855. selector: 'do:',
  4856. category: 'enumerating',
  4857. fn: function (aBlock){
  4858. var self=this;
  4859. smalltalk.send(smalltalk.send(self, "_values", []), "_do_", [aBlock]);
  4860. return self;},
  4861. source: unescape('do%3A%20aBlock%0A%20%20%20%20%09self%20values%20do%3A%20aBlock'),
  4862. messageSends: ["do:", "values"],
  4863. referencedClasses: []
  4864. }),
  4865. smalltalk.Dictionary);
  4866. smalltalk.addMethod(
  4867. '_select_',
  4868. smalltalk.method({
  4869. selector: 'select:',
  4870. category: 'enumerating',
  4871. fn: function (aBlock){
  4872. var self=this;
  4873. var newDict=nil;
  4874. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  4875. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(smalltalk.send(aBlock, "_value_", [value]), "_ifTrue_", [(function(){return smalltalk.send(newDict, "_at_put_", [key, value]);})]);})]);
  4876. return newDict;
  4877. return self;},
  4878. 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'),
  4879. messageSends: ["new", "class", "keysAndValuesDo:", "ifTrue:", "value:", "at:put:"],
  4880. referencedClasses: []
  4881. }),
  4882. smalltalk.Dictionary);
  4883. smalltalk.addMethod(
  4884. '_collect_',
  4885. smalltalk.method({
  4886. selector: 'collect:',
  4887. category: 'enumerating',
  4888. fn: function (aBlock){
  4889. var self=this;
  4890. var newDict=nil;
  4891. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  4892. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(newDict, "_at_put_", [key, smalltalk.send(aBlock, "_value_", [value])]);})]);
  4893. return newDict;
  4894. return self;},
  4895. 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'),
  4896. messageSends: ["new", "class", "keysAndValuesDo:", "at:put:", "value:"],
  4897. referencedClasses: []
  4898. }),
  4899. smalltalk.Dictionary);
  4900. smalltalk.addMethod(
  4901. '_detect_ifNone_',
  4902. smalltalk.method({
  4903. selector: 'detect:ifNone:',
  4904. category: 'enumerating',
  4905. fn: function (aBlock, anotherBlock){
  4906. var self=this;
  4907. return smalltalk.send(smalltalk.send(self, "_values", []), "_detect_ifNone_", [aBlock, anotherBlock]);
  4908. return self;},
  4909. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eself%20values%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  4910. messageSends: ["detect:ifNone:", "values"],
  4911. referencedClasses: []
  4912. }),
  4913. smalltalk.Dictionary);
  4914. smalltalk.addMethod(
  4915. '_includes_',
  4916. smalltalk.method({
  4917. selector: 'includes:',
  4918. category: 'enumerating',
  4919. fn: function (anObject){
  4920. var self=this;
  4921. return smalltalk.send(smalltalk.send(self, "_values", []), "_includes_", [anObject]);
  4922. return self;},
  4923. source: unescape('includes%3A%20anObject%0A%09%5Eself%20values%20includes%3A%20anObject'),
  4924. messageSends: ["includes:", "values"],
  4925. referencedClasses: []
  4926. }),
  4927. smalltalk.Dictionary);
  4928. smalltalk.addMethod(
  4929. '_remove_',
  4930. smalltalk.method({
  4931. selector: 'remove:',
  4932. category: 'adding/removing',
  4933. fn: function (aKey){
  4934. var self=this;
  4935. smalltalk.send(self, "_removeKey_", [aKey]);
  4936. return self;},
  4937. source: unescape('remove%3A%20aKey%0A%20%20%20%20self%20removeKey%3A%20aKey'),
  4938. messageSends: ["removeKey:"],
  4939. referencedClasses: []
  4940. }),
  4941. smalltalk.Dictionary);
  4942. smalltalk.addMethod(
  4943. '_removeKey_',
  4944. smalltalk.method({
  4945. selector: 'removeKey:',
  4946. category: 'adding/removing',
  4947. fn: function (aKey){
  4948. var self=this;
  4949. smalltalk.send(self['@keys'], "_remove_", [aKey]);
  4950. return self;},
  4951. source: unescape('removeKey%3A%20aKey%0A%20%20%20%20keys%20remove%3A%20aKey'),
  4952. messageSends: ["remove:"],
  4953. referencedClasses: []
  4954. }),
  4955. smalltalk.Dictionary);
  4956. smalltalk.addMethod(
  4957. '_at_',
  4958. smalltalk.method({
  4959. selector: 'at:',
  4960. category: 'accessing',
  4961. fn: function (aKey){
  4962. var self=this;
  4963. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4964. return self;},
  4965. source: unescape('at%3A%20aKey%0A%09%5Eself%20at%3A%20aKey%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  4966. messageSends: ["at:ifAbsent:", "errorNotFound"],
  4967. referencedClasses: []
  4968. }),
  4969. smalltalk.Dictionary);
  4970. smalltalk.addMethod(
  4971. '_asJSONObject',
  4972. smalltalk.method({
  4973. selector: 'asJSONObject',
  4974. category: 'converting',
  4975. fn: function (){
  4976. var self=this;
  4977. var object=nil;
  4978. object=smalltalk.send(smalltalk.Object, "_new", []);
  4979. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(object, "_basicAt_put_", [key, smalltalk.send(value, "_asJSONObject", [])]);})]);
  4980. return object;
  4981. return self;},
  4982. 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'),
  4983. messageSends: ["new", "keysAndValuesDo:", "basicAt:put:", "asJSONObject"],
  4984. referencedClasses: [smalltalk.Object]
  4985. }),
  4986. smalltalk.Dictionary);
  4987. smalltalk.addClass('ClassBuilder', smalltalk.Object, [], 'Kernel');
  4988. smalltalk.addMethod(
  4989. '_superclass_subclass_',
  4990. smalltalk.method({
  4991. selector: 'superclass:subclass:',
  4992. category: 'class creation',
  4993. fn: function (aClass, aString){
  4994. var self=this;
  4995. smalltalk.send(self, "_superclass_subclass_instanceVariableNames_category_", [aClass, aString, "", nil]);
  4996. return self;},
  4997. source: unescape('superclass%3A%20aClass%20subclass%3A%20aString%0A%09self%20superclass%3A%20aClass%20subclass%3A%20aString%20instanceVariableNames%3A%20%27%27%20category%3A%20nil'),
  4998. messageSends: ["superclass:subclass:instanceVariableNames:category:"],
  4999. referencedClasses: []
  5000. }),
  5001. smalltalk.ClassBuilder);
  5002. smalltalk.addMethod(
  5003. '_superclass_subclass_instanceVariableNames_category_',
  5004. smalltalk.method({
  5005. selector: 'superclass:subclass:instanceVariableNames:category:',
  5006. category: 'class creation',
  5007. fn: function (aClass, aString, aString2, aString3){
  5008. var self=this;
  5009. var newClass=nil;
  5010. newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_", [aClass, aString, smalltalk.send(self, "_instanceVariableNamesFor_", [aString2])]);
  5011. smalltalk.send(self, "_setupClass_", [newClass]);
  5012. smalltalk.send(newClass, "_category_", [smalltalk.send(aString3, "_ifNil_", [(function(){return "unclassified";})])]);
  5013. return self;},
  5014. source: unescape('superclass%3A%20aClass%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20category%3A%20aString3%0A%09%7C%20newClass%20%7C%0A%09newClass%20%3A%3D%20self%20addSubclassOf%3A%20aClass%20named%3A%20aString%20instanceVariableNames%3A%20%28self%20instanceVariableNamesFor%3A%20aString2%29.%0A%09self%20setupClass%3A%20newClass.%0A%09newClass%20category%3A%20%28aString3%20ifNil%3A%20%5B%27unclassified%27%5D%29'),
  5015. messageSends: ["addSubclassOf:named:instanceVariableNames:", "instanceVariableNamesFor:", "setupClass:", "category:", "ifNil:"],
  5016. referencedClasses: []
  5017. }),
  5018. smalltalk.ClassBuilder);
  5019. smalltalk.addMethod(
  5020. '_class_instanceVariableNames_',
  5021. smalltalk.method({
  5022. selector: 'class:instanceVariableNames:',
  5023. category: 'class creation',
  5024. fn: function (aClass, aString){
  5025. var self=this;
  5026. smalltalk.send(smalltalk.send(aClass, "_isMetaclass", []), "_ifFalse_", [(function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_name", []), "__comma", [" is not a metaclass"])]);})]);
  5027. smalltalk.send(aClass, "_basicAt_put_", ["iVarNames", smalltalk.send(self, "_instanceVariableNamesFor_", [aString])]);
  5028. smalltalk.send(self, "_setupClass_", [aClass]);
  5029. return self;},
  5030. 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'),
  5031. messageSends: ["ifFalse:", "isMetaclass", "error:", unescape("%2C"), "name", "basicAt:put:", "instanceVariableNamesFor:", "setupClass:"],
  5032. referencedClasses: []
  5033. }),
  5034. smalltalk.ClassBuilder);
  5035. smalltalk.addMethod(
  5036. '_instanceVariableNamesFor_',
  5037. smalltalk.method({
  5038. selector: 'instanceVariableNamesFor:',
  5039. category: 'private',
  5040. fn: function (aString){
  5041. var self=this;
  5042. return smalltalk.send(smalltalk.send(aString, "_tokenize_", [" "]), "_reject_", [(function(each){return smalltalk.send(each, "_isEmpty", []);})]);
  5043. return self;},
  5044. 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'),
  5045. messageSends: ["reject:", "tokenize:", "isEmpty"],
  5046. referencedClasses: []
  5047. }),
  5048. smalltalk.ClassBuilder);
  5049. smalltalk.addMethod(
  5050. '_addSubclassOf_named_instanceVariableNames_',
  5051. smalltalk.method({
  5052. selector: 'addSubclassOf:named:instanceVariableNames:',
  5053. category: 'private',
  5054. fn: function (aClass, aString, aCollection){
  5055. var self=this;
  5056. smalltalk.addClass(aString, aClass, aCollection);
  5057. return smalltalk[aString];
  5058. return self;},
  5059. 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'),
  5060. messageSends: [],
  5061. referencedClasses: []
  5062. }),
  5063. smalltalk.ClassBuilder);
  5064. smalltalk.addMethod(
  5065. '_setupClass_',
  5066. smalltalk.method({
  5067. selector: 'setupClass:',
  5068. category: 'private',
  5069. fn: function (aClass){
  5070. var self=this;
  5071. smalltalk.init(aClass);;
  5072. return self;},
  5073. source: unescape('setupClass%3A%20aClass%0A%09%3Csmalltalk.init%28aClass%29%3B%3E'),
  5074. messageSends: [],
  5075. referencedClasses: []
  5076. }),
  5077. smalltalk.ClassBuilder);
  5078. smalltalk.addClass('ClassCategoryReader', smalltalk.Object, ['class', 'category', 'chunkParser'], 'Kernel');
  5079. smalltalk.addMethod(
  5080. '_initialize',
  5081. smalltalk.method({
  5082. selector: 'initialize',
  5083. category: 'initialization',
  5084. fn: function (){
  5085. var self=this;
  5086. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  5087. self['@chunkParser']=smalltalk.send(smalltalk.ChunkParser, "_new", []);
  5088. return self;},
  5089. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  5090. messageSends: ["initialize", "new"],
  5091. referencedClasses: [smalltalk.nil]
  5092. }),
  5093. smalltalk.ClassCategoryReader);
  5094. smalltalk.addMethod(
  5095. '_class_category_',
  5096. smalltalk.method({
  5097. selector: 'class:category:',
  5098. category: 'accessing',
  5099. fn: function (aClass, aString){
  5100. var self=this;
  5101. self['@class']=aClass;
  5102. self['@category']=aString;
  5103. return self;},
  5104. source: unescape('class%3A%20aClass%20category%3A%20aString%0A%09class%20%3A%3D%20aClass.%0A%09category%20%3A%3D%20aString'),
  5105. messageSends: [],
  5106. referencedClasses: []
  5107. }),
  5108. smalltalk.ClassCategoryReader);
  5109. smalltalk.addMethod(
  5110. '_scanFrom_',
  5111. smalltalk.method({
  5112. selector: 'scanFrom:',
  5113. category: 'fileIn',
  5114. fn: function (aStream){
  5115. var self=this;
  5116. var nextChunk=nil;
  5117. nextChunk=smalltalk.send(smalltalk.send(smalltalk.send(self['@chunkParser'], "_emptyChunk", []), "__slash", [smalltalk.send(self['@chunkParser'], "_chunk", [])]), "_parse_", [aStream]);
  5118. smalltalk.send(smalltalk.send(nextChunk, "_isEmptyChunk", []), "_ifFalse_", [(function(){smalltalk.send(self, "_compileMethod_", [smalltalk.send(nextChunk, "_contents", [])]);return smalltalk.send(self, "_scanFrom_", [aStream]);})]);
  5119. return self;},
  5120. source: unescape('scanFrom%3A%20aStream%0A%09%7C%20nextChunk%20%7C%0A%09nextChunk%20%3A%3D%20%28chunkParser%20emptyChunk%20/%20chunkParser%20chunk%29%20parse%3A%20aStream.%0A%09nextChunk%20isEmptyChunk%20ifFalse%3A%20%5B%0A%09%20%20%20%20self%20compileMethod%3A%20nextChunk%20contents.%0A%09%20%20%20%20self%20scanFrom%3A%20aStream%5D.'),
  5121. messageSends: ["parse:", unescape("/"), "emptyChunk", "chunk", "ifFalse:", "isEmptyChunk", "compileMethod:", "contents", "scanFrom:"],
  5122. referencedClasses: []
  5123. }),
  5124. smalltalk.ClassCategoryReader);
  5125. smalltalk.addMethod(
  5126. '_compileMethod_',
  5127. smalltalk.method({
  5128. selector: 'compileMethod:',
  5129. category: 'private',
  5130. fn: function (aString){
  5131. var self=this;
  5132. var method=nil;
  5133. method=smalltalk.send(smalltalk.send(smalltalk.Compiler, "_new", []), "_load_forClass_", [aString, self['@class']]);
  5134. smalltalk.send(method, "_category_", [self['@category']]);
  5135. smalltalk.send(self['@class'], "_addCompiledMethod_", [method]);
  5136. return self;},
  5137. 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'),
  5138. messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
  5139. referencedClasses: [smalltalk.nil]
  5140. }),
  5141. smalltalk.ClassCategoryReader);
  5142. smalltalk.addClass('Stream', smalltalk.Object, ['collection', 'position', 'streamSize'], 'Kernel');
  5143. smalltalk.addMethod(
  5144. '_collection',
  5145. smalltalk.method({
  5146. selector: 'collection',
  5147. category: 'accessing',
  5148. fn: function (){
  5149. var self=this;
  5150. return self['@collection'];
  5151. return self;},
  5152. source: unescape('collection%0A%09%5Ecollection'),
  5153. messageSends: [],
  5154. referencedClasses: []
  5155. }),
  5156. smalltalk.Stream);
  5157. smalltalk.addMethod(
  5158. '_setCollection_',
  5159. smalltalk.method({
  5160. selector: 'setCollection:',
  5161. category: 'accessing',
  5162. fn: function (aCollection){
  5163. var self=this;
  5164. self['@collection']=aCollection;
  5165. return self;},
  5166. source: unescape('setCollection%3A%20aCollection%0A%09collection%20%3A%3D%20aCollection'),
  5167. messageSends: [],
  5168. referencedClasses: []
  5169. }),
  5170. smalltalk.Stream);
  5171. smalltalk.addMethod(
  5172. '_position',
  5173. smalltalk.method({
  5174. selector: 'position',
  5175. category: 'accessing',
  5176. fn: function (){
  5177. var self=this;
  5178. return smalltalk.send(self['@position'], "_ifNil_", [(function(){return self['@position']=(0);})]);
  5179. return self;},
  5180. source: unescape('position%0A%09%5Eposition%20ifNil%3A%20%5Bposition%20%3A%3D%200%5D'),
  5181. messageSends: ["ifNil:"],
  5182. referencedClasses: []
  5183. }),
  5184. smalltalk.Stream);
  5185. smalltalk.addMethod(
  5186. '_position_',
  5187. smalltalk.method({
  5188. selector: 'position:',
  5189. category: 'accessing',
  5190. fn: function (anInteger){
  5191. var self=this;
  5192. self['@position']=anInteger;
  5193. return self;},
  5194. source: unescape('position%3A%20anInteger%0A%09position%20%3A%3D%20anInteger'),
  5195. messageSends: [],
  5196. referencedClasses: []
  5197. }),
  5198. smalltalk.Stream);
  5199. smalltalk.addMethod(
  5200. '_streamSize',
  5201. smalltalk.method({
  5202. selector: 'streamSize',
  5203. category: 'accessing',
  5204. fn: function (){
  5205. var self=this;
  5206. return self['@streamSize'];
  5207. return self;},
  5208. source: unescape('streamSize%0A%09%5EstreamSize'),
  5209. messageSends: [],
  5210. referencedClasses: []
  5211. }),
  5212. smalltalk.Stream);
  5213. smalltalk.addMethod(
  5214. '_setStreamSize_',
  5215. smalltalk.method({
  5216. selector: 'setStreamSize:',
  5217. category: 'accessing',
  5218. fn: function (anInteger){
  5219. var self=this;
  5220. self['@streamSize']=anInteger;
  5221. return self;},
  5222. source: unescape('setStreamSize%3A%20anInteger%0A%09streamSize%20%3A%3D%20anInteger'),
  5223. messageSends: [],
  5224. referencedClasses: []
  5225. }),
  5226. smalltalk.Stream);
  5227. smalltalk.addMethod(
  5228. '_contents',
  5229. smalltalk.method({
  5230. selector: 'contents',
  5231. category: 'accessing',
  5232. fn: function (){
  5233. var self=this;
  5234. return smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_streamSize", [])]);
  5235. return self;},
  5236. 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'),
  5237. messageSends: ["copyFrom:to:", "collection", "streamSize"],
  5238. referencedClasses: []
  5239. }),
  5240. smalltalk.Stream);
  5241. smalltalk.addMethod(
  5242. '_size',
  5243. smalltalk.method({
  5244. selector: 'size',
  5245. category: 'accessing',
  5246. fn: function (){
  5247. var self=this;
  5248. return smalltalk.send(self, "_streamSize", []);
  5249. return self;},
  5250. source: unescape('size%0A%09%5Eself%20streamSize'),
  5251. messageSends: ["streamSize"],
  5252. referencedClasses: []
  5253. }),
  5254. smalltalk.Stream);
  5255. smalltalk.addMethod(
  5256. '_reset',
  5257. smalltalk.method({
  5258. selector: 'reset',
  5259. category: 'actions',
  5260. fn: function (){
  5261. var self=this;
  5262. smalltalk.send(self, "_position_", [(0)]);
  5263. return self;},
  5264. source: unescape('reset%0A%09self%20position%3A%200'),
  5265. messageSends: ["position:"],
  5266. referencedClasses: []
  5267. }),
  5268. smalltalk.Stream);
  5269. smalltalk.addMethod(
  5270. '_close',
  5271. smalltalk.method({
  5272. selector: 'close',
  5273. category: 'actions',
  5274. fn: function (){
  5275. var self=this;
  5276. return self;},
  5277. source: unescape('close'),
  5278. messageSends: [],
  5279. referencedClasses: []
  5280. }),
  5281. smalltalk.Stream);
  5282. smalltalk.addMethod(
  5283. '_flush',
  5284. smalltalk.method({
  5285. selector: 'flush',
  5286. category: 'actions',
  5287. fn: function (){
  5288. var self=this;
  5289. return self;},
  5290. source: unescape('flush'),
  5291. messageSends: [],
  5292. referencedClasses: []
  5293. }),
  5294. smalltalk.Stream);
  5295. smalltalk.addMethod(
  5296. '_resetContents',
  5297. smalltalk.method({
  5298. selector: 'resetContents',
  5299. category: 'actions',
  5300. fn: function (){
  5301. var self=this;
  5302. smalltalk.send(self, "_reset", []);
  5303. smalltalk.send(self, "_setStreamSize_", [(0)]);
  5304. return self;},
  5305. source: unescape('resetContents%0A%09self%20reset.%0A%09self%20setStreamSize%3A%200'),
  5306. messageSends: ["reset", "setStreamSize:"],
  5307. referencedClasses: []
  5308. }),
  5309. smalltalk.Stream);
  5310. smalltalk.addMethod(
  5311. '_do_',
  5312. smalltalk.method({
  5313. selector: 'do:',
  5314. category: 'enumerating',
  5315. fn: function (aBlock){
  5316. var self=this;
  5317. smalltalk.send((function(){return smalltalk.send(self, "_atEnd", []);}), "_whileFalse_", [(function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_next", [])]);})]);
  5318. return self;},
  5319. source: unescape('do%3A%20aBlock%0A%09%5Bself%20atEnd%5D%20whileFalse%3A%20%5BaBlock%20value%3A%20self%20next%5D'),
  5320. messageSends: ["whileFalse:", "atEnd", "value:", "next"],
  5321. referencedClasses: []
  5322. }),
  5323. smalltalk.Stream);
  5324. smalltalk.addMethod(
  5325. '_setToEnd',
  5326. smalltalk.method({
  5327. selector: 'setToEnd',
  5328. category: 'positioning',
  5329. fn: function (){
  5330. var self=this;
  5331. smalltalk.send(self, "_position_", [smalltalk.send(self, "_size", [])]);
  5332. return self;},
  5333. source: unescape('setToEnd%0A%09self%20position%3A%20self%20size'),
  5334. messageSends: ["position:", "size"],
  5335. referencedClasses: []
  5336. }),
  5337. smalltalk.Stream);
  5338. smalltalk.addMethod(
  5339. '_skip_',
  5340. smalltalk.method({
  5341. selector: 'skip:',
  5342. category: 'positioning',
  5343. fn: function (anInteger){
  5344. var self=this;
  5345. smalltalk.send(self, "_position_", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_position", []), "__plus", [anInteger]), "_min_max_", [smalltalk.send(self, "_size", []), (0)])]);
  5346. return self;},
  5347. source: unescape('skip%3A%20anInteger%0A%09self%20position%3A%20%28%28self%20position%20+%20anInteger%29%20min%3A%20self%20size%20max%3A%200%29'),
  5348. messageSends: ["position:", "min:max:", unescape("+"), "position", "size"],
  5349. referencedClasses: []
  5350. }),
  5351. smalltalk.Stream);
  5352. smalltalk.addMethod(
  5353. '_next',
  5354. smalltalk.method({
  5355. selector: 'next',
  5356. category: 'reading',
  5357. fn: function (){
  5358. var self=this;
  5359. smalltalk.send(self, "_position_", [smalltalk.send(smalltalk.send(self, "_position", []), "__plus", [(1)])]);
  5360. return smalltalk.send(self['@collection'], "_at_", [smalltalk.send(self, "_position", [])]);
  5361. return self;},
  5362. source: unescape('next%0A%09self%20position%3A%20self%20position%20+%201.%20%0A%09%5Ecollection%20at%3A%20self%20position'),
  5363. messageSends: ["position:", unescape("+"), "position", "at:"],
  5364. referencedClasses: []
  5365. }),
  5366. smalltalk.Stream);
  5367. smalltalk.addMethod(
  5368. '_next_',
  5369. smalltalk.method({
  5370. selector: 'next:',
  5371. category: 'reading',
  5372. fn: function (anInteger){
  5373. var self=this;
  5374. var tempCollection=nil;
  5375. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  5376. smalltalk.send(anInteger, "_timesRepeat_", [(function(){return smalltalk.send(smalltalk.send(self, "_atEnd", []), "_ifFalse_", [(function(){return smalltalk.send(tempCollection, "_add_", [smalltalk.send(self, "_next", [])]);})]);})]);
  5377. return tempCollection;
  5378. return self;},
  5379. 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'),
  5380. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", "add:", "next"],
  5381. referencedClasses: []
  5382. }),
  5383. smalltalk.Stream);
  5384. smalltalk.addMethod(
  5385. '_nextPut_',
  5386. smalltalk.method({
  5387. selector: 'nextPut:',
  5388. category: 'writing',
  5389. fn: function (anObject){
  5390. var self=this;
  5391. smalltalk.send(self, "_position_", [smalltalk.send(smalltalk.send(self, "_position", []), "__plus", [(1)])]);
  5392. smalltalk.send(smalltalk.send(self, "_collection", []), "_at_put_", [smalltalk.send(self, "_position", []), anObject]);
  5393. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  5394. return self;},
  5395. 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'),
  5396. messageSends: ["position:", unescape("+"), "position", "at:put:", "collection", "setStreamSize:", "max:", "streamSize"],
  5397. referencedClasses: []
  5398. }),
  5399. smalltalk.Stream);
  5400. smalltalk.addMethod(
  5401. '_nextPutAll_',
  5402. smalltalk.method({
  5403. selector: 'nextPutAll:',
  5404. category: 'writing',
  5405. fn: function (aCollection){
  5406. var self=this;
  5407. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_nextPut_", [each]);})]);
  5408. return self;},
  5409. source: unescape('nextPutAll%3A%20aCollection%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20self%20nextPut%3A%20each%5D'),
  5410. messageSends: ["do:", "nextPut:"],
  5411. referencedClasses: []
  5412. }),
  5413. smalltalk.Stream);
  5414. smalltalk.addMethod(
  5415. '_peek',
  5416. smalltalk.method({
  5417. selector: 'peek',
  5418. category: 'reading',
  5419. fn: function (){
  5420. var self=this;
  5421. return smalltalk.send(smalltalk.send(self, "_atEnd", []), "_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(self, "_collection", []), "_at_", [smalltalk.send(smalltalk.send(self, "_position", []), "__plus", [(1)])]);})]);
  5422. return self;},
  5423. 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'),
  5424. messageSends: ["ifFalse:", "atEnd", "at:", "collection", unescape("+"), "position"],
  5425. referencedClasses: []
  5426. }),
  5427. smalltalk.Stream);
  5428. smalltalk.addMethod(
  5429. '_atEnd',
  5430. smalltalk.method({
  5431. selector: 'atEnd',
  5432. category: 'testing',
  5433. fn: function (){
  5434. var self=this;
  5435. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [smalltalk.send(self, "_size", [])]);
  5436. return self;},
  5437. source: unescape('atEnd%0A%09%5Eself%20position%20%3D%20self%20size'),
  5438. messageSends: [unescape("%3D"), "position", "size"],
  5439. referencedClasses: []
  5440. }),
  5441. smalltalk.Stream);
  5442. smalltalk.addMethod(
  5443. '_atStart',
  5444. smalltalk.method({
  5445. selector: 'atStart',
  5446. category: 'testing',
  5447. fn: function (){
  5448. var self=this;
  5449. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [(0)]);
  5450. return self;},
  5451. source: unescape('atStart%0A%09%5Eself%20position%20%3D%200'),
  5452. messageSends: [unescape("%3D"), "position"],
  5453. referencedClasses: []
  5454. }),
  5455. smalltalk.Stream);
  5456. smalltalk.addMethod(
  5457. '_isEmpty',
  5458. smalltalk.method({
  5459. selector: 'isEmpty',
  5460. category: 'testing',
  5461. fn: function (){
  5462. var self=this;
  5463. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  5464. return self;},
  5465. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  5466. messageSends: [unescape("%3D"), "size"],
  5467. referencedClasses: []
  5468. }),
  5469. smalltalk.Stream);
  5470. smalltalk.addMethod(
  5471. '_on_',
  5472. smalltalk.method({
  5473. selector: 'on:',
  5474. category: 'instance creation',
  5475. fn: function (aCollection){
  5476. var self=this;
  5477. 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", []));
  5478. return self;},
  5479. 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'),
  5480. messageSends: ["setCollection:", "setStreamSize:", "size", "yourself", "new"],
  5481. referencedClasses: []
  5482. }),
  5483. smalltalk.Stream.klass);
  5484. smalltalk.addClass('StringStream', smalltalk.Stream, [], 'Kernel');
  5485. smalltalk.addMethod(
  5486. '_next_',
  5487. smalltalk.method({
  5488. selector: 'next:',
  5489. category: 'reading',
  5490. fn: function (anInteger){
  5491. var self=this;
  5492. var tempCollection=nil;
  5493. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  5494. smalltalk.send(anInteger, "_timesRepeat_", [(function(){return smalltalk.send(smalltalk.send(self, "_atEnd", []), "_ifFalse_", [(function(){return tempCollection=smalltalk.send(tempCollection, "__comma", [smalltalk.send(self, "_next", [])]);})]);})]);
  5495. return tempCollection;
  5496. return self;},
  5497. 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'),
  5498. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", unescape("%2C"), "next"],
  5499. referencedClasses: []
  5500. }),
  5501. smalltalk.StringStream);
  5502. smalltalk.addMethod(
  5503. '_nextPut_',
  5504. smalltalk.method({
  5505. selector: 'nextPut:',
  5506. category: 'writing',
  5507. fn: function (aString){
  5508. var self=this;
  5509. smalltalk.send(self, "_nextPutAll_", [aString]);
  5510. return self;},
  5511. source: unescape('nextPut%3A%20aString%0A%09self%20nextPutAll%3A%20aString'),
  5512. messageSends: ["nextPutAll:"],
  5513. referencedClasses: []
  5514. }),
  5515. smalltalk.StringStream);
  5516. smalltalk.addMethod(
  5517. '_nextPutAll_',
  5518. smalltalk.method({
  5519. selector: 'nextPutAll:',
  5520. category: 'writing',
  5521. fn: function (aString){
  5522. var self=this;
  5523. 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_", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_position", []), "__plus", [(1)]), "__plus", [smalltalk.send(aString, "_size", [])]), smalltalk.send(smalltalk.send(self, "_collection", []), "_size", [])])])]);
  5524. smalltalk.send(self, "_position_", [smalltalk.send(smalltalk.send(self, "_position", []), "__plus", [smalltalk.send(aString, "_size", [])])]);
  5525. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  5526. return self;},
  5527. 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'),
  5528. messageSends: ["setCollection:", unescape("%2C"), "copyFrom:to:", "collection", "position", unescape("+"), "size", "position:", "setStreamSize:", "max:", "streamSize"],
  5529. referencedClasses: []
  5530. }),
  5531. smalltalk.StringStream);
  5532. smalltalk.addMethod(
  5533. '_cr',
  5534. smalltalk.method({
  5535. selector: 'cr',
  5536. category: 'writing',
  5537. fn: function (){
  5538. var self=this;
  5539. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send(smalltalk.String, "_cr", [])]);
  5540. return self;},
  5541. source: unescape('cr%0A%09%5Eself%20nextPutAll%3A%20String%20cr'),
  5542. messageSends: ["nextPutAll:", "cr"],
  5543. referencedClasses: [smalltalk.String]
  5544. }),
  5545. smalltalk.StringStream);
  5546. smalltalk.addMethod(
  5547. '_crlf',
  5548. smalltalk.method({
  5549. selector: 'crlf',
  5550. category: 'writing',
  5551. fn: function (){
  5552. var self=this;
  5553. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send(smalltalk.String, "_crlf", [])]);
  5554. return self;},
  5555. source: unescape('crlf%0A%09%5Eself%20nextPutAll%3A%20String%20crlf'),
  5556. messageSends: ["nextPutAll:", "crlf"],
  5557. referencedClasses: [smalltalk.String]
  5558. }),
  5559. smalltalk.StringStream);
  5560. smalltalk.addMethod(
  5561. '_lf',
  5562. smalltalk.method({
  5563. selector: 'lf',
  5564. category: 'writing',
  5565. fn: function (){
  5566. var self=this;
  5567. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send(smalltalk.String, "_lf", [])]);
  5568. return self;},
  5569. source: unescape('lf%0A%09%5Eself%20nextPutAll%3A%20String%20lf'),
  5570. messageSends: ["nextPutAll:", "lf"],
  5571. referencedClasses: [smalltalk.String]
  5572. }),
  5573. smalltalk.StringStream);
  5574. smalltalk.addClass('ClassCommentReader', smalltalk.Object, ['class', 'chunkParser'], 'Kernel');
  5575. smalltalk.addMethod(
  5576. '_class_',
  5577. smalltalk.method({
  5578. selector: 'class:',
  5579. category: 'accessing',
  5580. fn: function (aClass){
  5581. var self=this;
  5582. self['@class']=aClass;
  5583. return self;},
  5584. source: unescape('class%3A%20aClass%0A%09class%20%3A%3D%20aClass'),
  5585. messageSends: [],
  5586. referencedClasses: []
  5587. }),
  5588. smalltalk.ClassCommentReader);
  5589. smalltalk.addMethod(
  5590. '_scanFrom_',
  5591. smalltalk.method({
  5592. selector: 'scanFrom:',
  5593. category: 'fileIn',
  5594. fn: function (aStream){
  5595. var self=this;
  5596. var nextChunk=nil;
  5597. nextChunk=smalltalk.send(smalltalk.send(smalltalk.send(self['@chunkParser'], "_emptyChunk", []), "__slash", [smalltalk.send(self['@chunkParser'], "_chunk", [])]), "_parse_", [aStream]);
  5598. smalltalk.send(smalltalk.send(nextChunk, "_isEmptyChunk", []), "_ifFalse_", [(function(){return smalltalk.send(self, "_setComment_", [smalltalk.send(nextChunk, "_contents", [])]);})]);
  5599. return self;},
  5600. source: unescape('scanFrom%3A%20aStream%0A%09%7C%20nextChunk%20%7C%0A%09nextChunk%20%3A%3D%20%28chunkParser%20emptyChunk%20/%20chunkParser%20chunk%29%20parse%3A%20aStream.%0A%09nextChunk%20isEmptyChunk%20ifFalse%3A%20%5B%0A%09%20%20%20%20self%20setComment%3A%20nextChunk%20contents%5D.'),
  5601. messageSends: ["parse:", unescape("/"), "emptyChunk", "chunk", "ifFalse:", "isEmptyChunk", "setComment:", "contents"],
  5602. referencedClasses: []
  5603. }),
  5604. smalltalk.ClassCommentReader);
  5605. smalltalk.addMethod(
  5606. '_initialize',
  5607. smalltalk.method({
  5608. selector: 'initialize',
  5609. category: 'initialization',
  5610. fn: function (){
  5611. var self=this;
  5612. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  5613. self['@chunkParser']=smalltalk.send(smalltalk.ChunkParser, "_new", []);
  5614. return self;},
  5615. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  5616. messageSends: ["initialize", "new"],
  5617. referencedClasses: [smalltalk.nil]
  5618. }),
  5619. smalltalk.ClassCommentReader);
  5620. smalltalk.addMethod(
  5621. '_setComment_',
  5622. smalltalk.method({
  5623. selector: 'setComment:',
  5624. category: 'private',
  5625. fn: function (aString){
  5626. var self=this;
  5627. smalltalk.send(self['@class'], "_comment_", [aString]);
  5628. return self;},
  5629. source: unescape('setComment%3A%20aString%0A%20%20%20%20class%20comment%3A%20aString'),
  5630. messageSends: ["comment:"],
  5631. referencedClasses: []
  5632. }),
  5633. smalltalk.ClassCommentReader);
  5634. smalltalk.addClass('Random', smalltalk.Object, [], 'Kernel');
  5635. smalltalk.addMethod(
  5636. '_next',
  5637. smalltalk.method({
  5638. selector: 'next',
  5639. category: 'accessing',
  5640. fn: function (){
  5641. var self=this;
  5642. return Math.random();
  5643. return self;},
  5644. source: unescape('next%0A%09%3Creturn%20Math.random%28%29%3E'),
  5645. messageSends: [],
  5646. referencedClasses: []
  5647. }),
  5648. smalltalk.Random);
  5649. smalltalk.addMethod(
  5650. '_next_',
  5651. smalltalk.method({
  5652. selector: 'next:',
  5653. category: 'accessing',
  5654. fn: function (anInteger){
  5655. var self=this;
  5656. return smalltalk.send((1), "_to_collect_", [anInteger, (function(each){return smalltalk.send(self, "_next", []);})]);
  5657. return self;},
  5658. source: unescape('next%3A%20anInteger%0A%20%20%20%20%5E1%20to%3A%20anInteger%20collect%3A%20%5B%3Aeach%20%7C%20self%20next%5D'),
  5659. messageSends: ["to:collect:", "next"],
  5660. referencedClasses: []
  5661. }),
  5662. smalltalk.Random);
  5663. smalltalk.addClass('Point', smalltalk.Object, ['x', 'y'], 'Kernel');
  5664. smalltalk.addMethod(
  5665. '_x',
  5666. smalltalk.method({
  5667. selector: 'x',
  5668. category: 'accessing',
  5669. fn: function (){
  5670. var self=this;
  5671. return self['@x'];
  5672. return self;},
  5673. source: unescape('x%0A%09%5Ex'),
  5674. messageSends: [],
  5675. referencedClasses: []
  5676. }),
  5677. smalltalk.Point);
  5678. smalltalk.addMethod(
  5679. '_y',
  5680. smalltalk.method({
  5681. selector: 'y',
  5682. category: 'accessing',
  5683. fn: function (){
  5684. var self=this;
  5685. return self['@y'];
  5686. return self;},
  5687. source: unescape('y%0A%09%5Ey'),
  5688. messageSends: [],
  5689. referencedClasses: []
  5690. }),
  5691. smalltalk.Point);
  5692. smalltalk.addMethod(
  5693. '_y_',
  5694. smalltalk.method({
  5695. selector: 'y:',
  5696. category: 'accessing',
  5697. fn: function (aNumber){
  5698. var self=this;
  5699. self['@y']=aNumber;
  5700. return self;},
  5701. source: unescape('y%3A%20aNumber%0A%09y%20%3A%3D%20aNumber'),
  5702. messageSends: [],
  5703. referencedClasses: []
  5704. }),
  5705. smalltalk.Point);
  5706. smalltalk.addMethod(
  5707. '_x_',
  5708. smalltalk.method({
  5709. selector: 'x:',
  5710. category: 'accessing',
  5711. fn: function (aNumber){
  5712. var self=this;
  5713. self['@x']=aNumber;
  5714. return self;},
  5715. source: unescape('x%3A%20aNumber%0A%09x%20%3A%3D%20aNumber'),
  5716. messageSends: [],
  5717. referencedClasses: []
  5718. }),
  5719. smalltalk.Point);
  5720. smalltalk.addMethod(
  5721. '__star',
  5722. smalltalk.method({
  5723. selector: '*',
  5724. category: 'arithmetic',
  5725. fn: function (aPoint){
  5726. var self=this;
  5727. return smalltalk.send(smalltalk.Point, "_x_y_", [smalltalk.send(smalltalk.send(self, "_x", []), "__star", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])]), smalltalk.send(smalltalk.send(self, "_y", []), "__star", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])])]);
  5728. return self;},
  5729. source: unescape('*%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20*%20aPoint%20asPoint%20x%20y%3A%20self%20y%20*%20aPoint%20asPoint%20y'),
  5730. messageSends: ["x:y:", unescape("*"), "x", "asPoint", "y"],
  5731. referencedClasses: [smalltalk.Point]
  5732. }),
  5733. smalltalk.Point);
  5734. smalltalk.addMethod(
  5735. '__plus',
  5736. smalltalk.method({
  5737. selector: '+',
  5738. category: 'arithmetic',
  5739. fn: function (aPoint){
  5740. var self=this;
  5741. return smalltalk.send(smalltalk.Point, "_x_y_", [smalltalk.send(smalltalk.send(self, "_x", []), "__plus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])]), smalltalk.send(smalltalk.send(self, "_y", []), "__plus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])])]);
  5742. return self;},
  5743. source: unescape('+%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20+%20aPoint%20asPoint%20x%20y%3A%20self%20y%20+%20aPoint%20asPoint%20y'),
  5744. messageSends: ["x:y:", unescape("+"), "x", "asPoint", "y"],
  5745. referencedClasses: [smalltalk.Point]
  5746. }),
  5747. smalltalk.Point);
  5748. smalltalk.addMethod(
  5749. '__minus',
  5750. smalltalk.method({
  5751. selector: '-',
  5752. category: 'arithmetic',
  5753. fn: function (aPoint){
  5754. var self=this;
  5755. return smalltalk.send(smalltalk.Point, "_x_y_", [smalltalk.send(smalltalk.send(self, "_x", []), "__minus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])]), smalltalk.send(smalltalk.send(self, "_y", []), "__minus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])])]);
  5756. return self;},
  5757. source: unescape('-%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20-%20aPoint%20asPoint%20x%20y%3A%20self%20y%20-%20aPoint%20asPoint%20y'),
  5758. messageSends: ["x:y:", unescape("-"), "x", "asPoint", "y"],
  5759. referencedClasses: [smalltalk.Point]
  5760. }),
  5761. smalltalk.Point);
  5762. smalltalk.addMethod(
  5763. '__slash',
  5764. smalltalk.method({
  5765. selector: '/',
  5766. category: 'arithmetic',
  5767. fn: function (aPoint){
  5768. var self=this;
  5769. return smalltalk.send(smalltalk.Point, "_x_y_", [smalltalk.send(smalltalk.send(self, "_x", []), "__slash", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])]), smalltalk.send(smalltalk.send(self, "_y", []), "__slash", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])])]);
  5770. return self;},
  5771. source: unescape('/%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20/%20aPoint%20asPoint%20x%20y%3A%20self%20y%20/%20aPoint%20asPoint%20y'),
  5772. messageSends: ["x:y:", unescape("/"), "x", "asPoint", "y"],
  5773. referencedClasses: [smalltalk.Point]
  5774. }),
  5775. smalltalk.Point);
  5776. smalltalk.addMethod(
  5777. '_asPoint',
  5778. smalltalk.method({
  5779. selector: 'asPoint',
  5780. category: 'converting',
  5781. fn: function (){
  5782. var self=this;
  5783. return self;
  5784. return self;},
  5785. source: unescape('asPoint%0A%09%5Eself'),
  5786. messageSends: [],
  5787. referencedClasses: []
  5788. }),
  5789. smalltalk.Point);
  5790. smalltalk.addMethod(
  5791. '_x_y_',
  5792. smalltalk.method({
  5793. selector: 'x:y:',
  5794. category: 'instance creation',
  5795. fn: function (aNumber, anotherNumber){
  5796. var self=this;
  5797. return (function($rec){smalltalk.send($rec, "_x_", [aNumber]);smalltalk.send($rec, "_y_", [anotherNumber]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  5798. return self;},
  5799. 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'),
  5800. messageSends: ["x:", "y:", "yourself", "new"],
  5801. referencedClasses: []
  5802. }),
  5803. smalltalk.Point.klass);
  5804. smalltalk.addClass('Message', smalltalk.Object, ['selector', 'arguments'], 'Kernel');
  5805. smalltalk.addMethod(
  5806. '_selector',
  5807. smalltalk.method({
  5808. selector: 'selector',
  5809. category: 'accessing',
  5810. fn: function (){
  5811. var self=this;
  5812. return self['@selector'];
  5813. return self;},
  5814. source: unescape('selector%0A%09%5Eselector'),
  5815. messageSends: [],
  5816. referencedClasses: []
  5817. }),
  5818. smalltalk.Message);
  5819. smalltalk.addMethod(
  5820. '_selector_',
  5821. smalltalk.method({
  5822. selector: 'selector:',
  5823. category: 'accessing',
  5824. fn: function (aString){
  5825. var self=this;
  5826. self['@selector']=aString;
  5827. return self;},
  5828. source: unescape('selector%3A%20aString%0A%09selector%20%3A%3D%20aString'),
  5829. messageSends: [],
  5830. referencedClasses: []
  5831. }),
  5832. smalltalk.Message);
  5833. smalltalk.addMethod(
  5834. '_arguments_',
  5835. smalltalk.method({
  5836. selector: 'arguments:',
  5837. category: 'accessing',
  5838. fn: function (anArray){
  5839. var self=this;
  5840. self['@arguments']=anArray;
  5841. return self;},
  5842. source: unescape('arguments%3A%20anArray%0A%09arguments%20%3A%3D%20anArray'),
  5843. messageSends: [],
  5844. referencedClasses: []
  5845. }),
  5846. smalltalk.Message);
  5847. smalltalk.addMethod(
  5848. '_arguments',
  5849. smalltalk.method({
  5850. selector: 'arguments',
  5851. category: 'accessing',
  5852. fn: function (){
  5853. var self=this;
  5854. return self['@arguments'];
  5855. return self;},
  5856. source: unescape('arguments%0A%09%5Earguments'),
  5857. messageSends: [],
  5858. referencedClasses: []
  5859. }),
  5860. smalltalk.Message);
  5861. smalltalk.addMethod(
  5862. '_selector_arguments_',
  5863. smalltalk.method({
  5864. selector: 'selector:arguments:',
  5865. category: 'instance creation',
  5866. fn: function (aString, anArray){
  5867. var self=this;
  5868. return (function($rec){smalltalk.send($rec, "_selector_", [aString]);smalltalk.send($rec, "_arguments_", [anArray]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  5869. return self;},
  5870. 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'),
  5871. messageSends: ["selector:", "arguments:", "yourself", "new"],
  5872. referencedClasses: []
  5873. }),
  5874. smalltalk.Message.klass);
  5875. smalltalk.addClass('MessageNotUnderstood', smalltalk.Error, ['message', 'receiver'], 'Kernel');
  5876. smalltalk.addMethod(
  5877. '_message',
  5878. smalltalk.method({
  5879. selector: 'message',
  5880. category: 'accessing',
  5881. fn: function (){
  5882. var self=this;
  5883. return self['@message'];
  5884. return self;},
  5885. source: unescape('message%0A%09%5Emessage'),
  5886. messageSends: [],
  5887. referencedClasses: []
  5888. }),
  5889. smalltalk.MessageNotUnderstood);
  5890. smalltalk.addMethod(
  5891. '_message_',
  5892. smalltalk.method({
  5893. selector: 'message:',
  5894. category: 'accessing',
  5895. fn: function (aMessage){
  5896. var self=this;
  5897. self['@message']=aMessage;
  5898. return self;},
  5899. source: unescape('message%3A%20aMessage%0A%09message%20%3A%3D%20aMessage'),
  5900. messageSends: [],
  5901. referencedClasses: []
  5902. }),
  5903. smalltalk.MessageNotUnderstood);
  5904. smalltalk.addMethod(
  5905. '_receiver',
  5906. smalltalk.method({
  5907. selector: 'receiver',
  5908. category: 'accessing',
  5909. fn: function (){
  5910. var self=this;
  5911. return self['@receiver'];
  5912. return self;},
  5913. source: unescape('receiver%0A%09%5Ereceiver'),
  5914. messageSends: [],
  5915. referencedClasses: []
  5916. }),
  5917. smalltalk.MessageNotUnderstood);
  5918. smalltalk.addMethod(
  5919. '_receiver_',
  5920. smalltalk.method({
  5921. selector: 'receiver:',
  5922. category: 'accessing',
  5923. fn: function (anObject){
  5924. var self=this;
  5925. self['@receiver']=anObject;
  5926. return self;},
  5927. source: unescape('receiver%3A%20anObject%0A%09receiver%20%3A%3D%20anObject'),
  5928. messageSends: [],
  5929. referencedClasses: []
  5930. }),
  5931. smalltalk.MessageNotUnderstood);
  5932. smalltalk.addMethod(
  5933. '_messageText',
  5934. smalltalk.method({
  5935. selector: 'messageText',
  5936. category: 'accessing',
  5937. fn: function (){
  5938. var self=this;
  5939. 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", [])]);
  5940. return self;},
  5941. source: unescape('messageText%0A%09%5Eself%20receiver%20asString%2C%20%27%20does%20not%20understand%20%23%27%2C%20self%20message%20selector'),
  5942. messageSends: [unescape("%2C"), "asString", "receiver", "selector", "message"],
  5943. referencedClasses: []
  5944. }),
  5945. smalltalk.MessageNotUnderstood);