Kernel.js 305 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130
  1. smalltalk.addClass('Object', smalltalk.nil, [], 'Kernel');
  2. smalltalk.addMethod(
  3. unescape('__eq'),
  4. smalltalk.method({
  5. selector: unescape('%3D'),
  6. category: 'comparing',
  7. fn: function (anObject){
  8. var self=this;
  9. return smalltalk.send(self, "__eq_eq", [anObject]);
  10. return self;},
  11. args: ["anObject"],
  12. source: unescape('%3D%20anObject%0A%09%5Eself%20%3D%3D%20anObject'),
  13. messageSends: [unescape("%3D%3D")],
  14. referencedClasses: []
  15. }),
  16. smalltalk.Object);
  17. smalltalk.addMethod(
  18. unescape('_%7E_eq'),
  19. smalltalk.method({
  20. selector: unescape('%7E%3D'),
  21. category: 'comparing',
  22. fn: function (anObject){
  23. var self=this;
  24. return smalltalk.send(smalltalk.send(self, "__eq", [anObject]), "__eq", [false]);
  25. return self;},
  26. args: ["anObject"],
  27. source: unescape('%7E%3D%20anObject%0A%09%5E%28self%20%3D%20anObject%29%20%3D%20false'),
  28. messageSends: [unescape("%3D")],
  29. referencedClasses: []
  30. }),
  31. smalltalk.Object);
  32. smalltalk.addMethod(
  33. unescape('_initialize'),
  34. smalltalk.method({
  35. selector: unescape('initialize'),
  36. category: 'initialization',
  37. fn: function (){
  38. var self=this;
  39. return self;},
  40. args: [],
  41. source: unescape('initialize'),
  42. messageSends: [],
  43. referencedClasses: []
  44. }),
  45. smalltalk.Object);
  46. smalltalk.addMethod(
  47. unescape('_yourself'),
  48. smalltalk.method({
  49. selector: unescape('yourself'),
  50. category: 'accessing',
  51. fn: function (){
  52. var self=this;
  53. return self;
  54. return self;},
  55. args: [],
  56. source: unescape('yourself%0A%09%5Eself'),
  57. messageSends: [],
  58. referencedClasses: []
  59. }),
  60. smalltalk.Object);
  61. smalltalk.addMethod(
  62. unescape('_class'),
  63. smalltalk.method({
  64. selector: unescape('class'),
  65. category: 'accessing',
  66. fn: function (){
  67. var self=this;
  68. return self.klass;
  69. return self;},
  70. args: [],
  71. source: unescape('class%0A%09%3Creturn%20self.klass%3E'),
  72. messageSends: [],
  73. referencedClasses: []
  74. }),
  75. smalltalk.Object);
  76. smalltalk.addMethod(
  77. unescape('_size'),
  78. smalltalk.method({
  79. selector: unescape('size'),
  80. category: 'accessing',
  81. fn: function (){
  82. var self=this;
  83. smalltalk.send(self, "_error_", ["Object not indexable"]);
  84. return self;},
  85. args: [],
  86. source: unescape('size%0A%09self%20error%3A%20%27Object%20not%20indexable%27'),
  87. messageSends: ["error:"],
  88. referencedClasses: []
  89. }),
  90. smalltalk.Object);
  91. smalltalk.addMethod(
  92. unescape('_copy'),
  93. smalltalk.method({
  94. selector: unescape('copy'),
  95. category: 'copying',
  96. fn: function (){
  97. var self=this;
  98. return smalltalk.send(smalltalk.send(self, "_shallowCopy", []), "_postCopy", []);
  99. return self;},
  100. args: [],
  101. source: unescape('copy%0A%09%5Eself%20shallowCopy%20postCopy'),
  102. messageSends: ["postCopy", "shallowCopy"],
  103. referencedClasses: []
  104. }),
  105. smalltalk.Object);
  106. smalltalk.addMethod(
  107. unescape('_shallowCopy'),
  108. smalltalk.method({
  109. selector: unescape('shallowCopy'),
  110. category: 'copying',
  111. fn: function (){
  112. var self=this;
  113. var copy = self.klass._new();
  114. for(var i in self) {
  115. if(/^@.+/.test(i)) {
  116. copy[i] = self[i];
  117. }
  118. }
  119. return copy;
  120. ;
  121. return self;},
  122. args: [],
  123. source: unescape('shallowCopy%0A%09%3C%0A%09%20%20%20%20var%20copy%20%3D%20self.klass._new%28%29%3B%0A%09%20%20%20%20for%28var%20i%20in%20self%29%20%7B%0A%09%09if%28/%5E@.+/.test%28i%29%29%20%7B%0A%09%09%20%20%20%20copy%5Bi%5D%20%3D%20self%5Bi%5D%3B%0A%09%09%7D%0A%09%20%20%20%20%7D%0A%09%20%20%20%20return%20copy%3B%0A%09%3E'),
  124. messageSends: [],
  125. referencedClasses: []
  126. }),
  127. smalltalk.Object);
  128. smalltalk.addMethod(
  129. unescape('_deepCopy'),
  130. smalltalk.method({
  131. selector: unescape('deepCopy'),
  132. category: 'copying',
  133. fn: function (){
  134. var self=this;
  135. var copy = self.klass._new();
  136. for(var i in self) {
  137. if(/^@.+/.test(i)) {
  138. copy[i] = self[i]._deepCopy();
  139. }
  140. }
  141. return copy;
  142. ;
  143. return self;},
  144. args: [],
  145. source: unescape('deepCopy%0A%09%3C%20%20%20%20%0A%09%20%20%20%20var%20copy%20%3D%20self.klass._new%28%29%3B%0A%09%20%20%20%20for%28var%20i%20in%20self%29%20%7B%0A%09%09if%28/%5E@.+/.test%28i%29%29%20%7B%0A%09%09%20%20%20%20copy%5Bi%5D%20%3D%20self%5Bi%5D._deepCopy%28%29%3B%0A%09%09%7D%0A%09%20%20%20%20%7D%0A%09%20%20%20%20return%20copy%3B%0A%09%3E'),
  146. messageSends: [],
  147. referencedClasses: []
  148. }),
  149. smalltalk.Object);
  150. smalltalk.addMethod(
  151. unescape('_postCopy'),
  152. smalltalk.method({
  153. selector: unescape('postCopy'),
  154. category: 'copying',
  155. fn: function (){
  156. var self=this;
  157. return self;},
  158. args: [],
  159. source: unescape('postCopy'),
  160. messageSends: [],
  161. referencedClasses: []
  162. }),
  163. smalltalk.Object);
  164. smalltalk.addMethod(
  165. unescape('__minus_gt'),
  166. smalltalk.method({
  167. selector: unescape('-%3E'),
  168. category: 'converting',
  169. fn: function (anObject){
  170. var self=this;
  171. return smalltalk.send((smalltalk.Association || Association), "_key_value_", [self, anObject]);
  172. return self;},
  173. args: ["anObject"],
  174. source: unescape('-%3E%20anObject%0A%09%5EAssociation%20key%3A%20self%20value%3A%20anObject'),
  175. messageSends: ["key:value:"],
  176. referencedClasses: [smalltalk.nil]
  177. }),
  178. smalltalk.Object);
  179. smalltalk.addMethod(
  180. unescape('_asString'),
  181. smalltalk.method({
  182. selector: unescape('asString'),
  183. category: 'converting',
  184. fn: function (){
  185. var self=this;
  186. return smalltalk.send(self, "_printString", []);
  187. return self;},
  188. args: [],
  189. source: unescape('asString%0A%09%5Eself%20printString'),
  190. messageSends: ["printString"],
  191. referencedClasses: []
  192. }),
  193. smalltalk.Object);
  194. smalltalk.addMethod(
  195. unescape('_asJavascript'),
  196. smalltalk.method({
  197. selector: unescape('asJavascript'),
  198. category: 'converting',
  199. fn: function (){
  200. var self=this;
  201. return smalltalk.send(self, "_asString", []);
  202. return self;},
  203. args: [],
  204. source: unescape('asJavascript%0A%09%5Eself%20asString'),
  205. messageSends: ["asString"],
  206. referencedClasses: []
  207. }),
  208. smalltalk.Object);
  209. smalltalk.addMethod(
  210. unescape('_perform_'),
  211. smalltalk.method({
  212. selector: unescape('perform%3A'),
  213. category: 'message handling',
  214. fn: function (aSymbol){
  215. var self=this;
  216. return smalltalk.send(self, "_perform_withArguments_", [aSymbol, []]);
  217. return self;},
  218. args: ["aSymbol"],
  219. source: unescape('perform%3A%20aSymbol%0A%09%5Eself%20perform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
  220. messageSends: ["perform:withArguments:"],
  221. referencedClasses: []
  222. }),
  223. smalltalk.Object);
  224. smalltalk.addMethod(
  225. unescape('_perform_withArguments_'),
  226. smalltalk.method({
  227. selector: unescape('perform%3AwithArguments%3A'),
  228. category: 'message handling',
  229. fn: function (aSymbol, aCollection){
  230. var self=this;
  231. return smalltalk.send(self, "_basicPerform_withArguments_", [smalltalk.send(aSymbol, "_asSelector", []), aCollection]);
  232. return self;},
  233. args: ["aSymbol", "aCollection"],
  234. source: unescape('perform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%5Eself%20basicPerform%3A%20aSymbol%20asSelector%20withArguments%3A%20aCollection'),
  235. messageSends: ["basicPerform:withArguments:", "asSelector"],
  236. referencedClasses: []
  237. }),
  238. smalltalk.Object);
  239. smalltalk.addMethod(
  240. unescape('_instVarAt_'),
  241. smalltalk.method({
  242. selector: unescape('instVarAt%3A'),
  243. category: 'accessing',
  244. fn: function (aString){
  245. var self=this;
  246. return self['@'+aString];
  247. return self;},
  248. args: ["aString"],
  249. source: unescape('instVarAt%3A%20aString%0A%09%3Creturn%20self%5B%27@%27+aString%5D%3E'),
  250. messageSends: [],
  251. referencedClasses: []
  252. }),
  253. smalltalk.Object);
  254. smalltalk.addMethod(
  255. unescape('_instVarAt_put_'),
  256. smalltalk.method({
  257. selector: unescape('instVarAt%3Aput%3A'),
  258. category: 'accessing',
  259. fn: function (aString, anObject){
  260. var self=this;
  261. self['@' + aString] = anObject;
  262. return self;},
  263. args: ["aString", "anObject"],
  264. source: unescape('instVarAt%3A%20aString%20put%3A%20anObject%0A%09%3Cself%5B%27@%27%20+%20aString%5D%20%3D%20anObject%3E'),
  265. messageSends: [],
  266. referencedClasses: []
  267. }),
  268. smalltalk.Object);
  269. smalltalk.addMethod(
  270. unescape('_basicAt_'),
  271. smalltalk.method({
  272. selector: unescape('basicAt%3A'),
  273. category: 'accessing',
  274. fn: function (aString){
  275. var self=this;
  276. return self[aString];
  277. return self;},
  278. args: ["aString"],
  279. source: unescape('basicAt%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
  280. messageSends: [],
  281. referencedClasses: []
  282. }),
  283. smalltalk.Object);
  284. smalltalk.addMethod(
  285. unescape('_basicAt_put_'),
  286. smalltalk.method({
  287. selector: unescape('basicAt%3Aput%3A'),
  288. category: 'accessing',
  289. fn: function (aString, anObject){
  290. var self=this;
  291. return self[aString] = anObject;
  292. return self;},
  293. args: ["aString", "anObject"],
  294. source: unescape('basicAt%3A%20aString%20put%3A%20anObject%0A%09%3Creturn%20self%5BaString%5D%20%3D%20anObject%3E'),
  295. messageSends: [],
  296. referencedClasses: []
  297. }),
  298. smalltalk.Object);
  299. smalltalk.addMethod(
  300. unescape('_error_'),
  301. smalltalk.method({
  302. selector: unescape('error%3A'),
  303. category: 'error handling',
  304. fn: function (aString){
  305. var self=this;
  306. smalltalk.send((smalltalk.Error || Error), "_signal_", [aString]);
  307. return self;},
  308. args: ["aString"],
  309. source: unescape('error%3A%20aString%0A%09Error%20signal%3A%20aString'),
  310. messageSends: ["signal:"],
  311. referencedClasses: [smalltalk.Error]
  312. }),
  313. smalltalk.Object);
  314. smalltalk.addMethod(
  315. unescape('_subclassResponsibility'),
  316. smalltalk.method({
  317. selector: unescape('subclassResponsibility'),
  318. category: 'error handling',
  319. fn: function (){
  320. var self=this;
  321. smalltalk.send(self, "_error_", ["This method is a responsibility of a subclass"]);
  322. return self;},
  323. args: [],
  324. source: unescape('subclassResponsibility%0A%09self%20error%3A%20%27This%20method%20is%20a%20responsibility%20of%20a%20subclass%27'),
  325. messageSends: ["error:"],
  326. referencedClasses: []
  327. }),
  328. smalltalk.Object);
  329. smalltalk.addMethod(
  330. unescape('_shouldNotImplement'),
  331. smalltalk.method({
  332. selector: unescape('shouldNotImplement'),
  333. category: 'error handling',
  334. fn: function (){
  335. var self=this;
  336. smalltalk.send(self, "_error_", [smalltalk.send("This method should not be implemented in ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])])]);
  337. return self;},
  338. args: [],
  339. source: unescape('shouldNotImplement%0A%09self%20error%3A%20%27This%20method%20should%20not%20be%20implemented%20in%20%27%2C%20self%20class%20name'),
  340. messageSends: ["error:", unescape("%2C"), "name", "class"],
  341. referencedClasses: []
  342. }),
  343. smalltalk.Object);
  344. smalltalk.addMethod(
  345. unescape('_try_catch_'),
  346. smalltalk.method({
  347. selector: unescape('try%3Acatch%3A'),
  348. category: 'error handling',
  349. fn: function (aBlock, anotherBlock){
  350. var self=this;
  351. try{aBlock()} catch(e) {anotherBlock(e)};
  352. return self;},
  353. args: ["aBlock", "anotherBlock"],
  354. source: unescape('try%3A%20aBlock%20catch%3A%20anotherBlock%0A%09%3Ctry%7BaBlock%28%29%7D%20catch%28e%29%20%7BanotherBlock%28e%29%7D%3E'),
  355. messageSends: [],
  356. referencedClasses: []
  357. }),
  358. smalltalk.Object);
  359. smalltalk.addMethod(
  360. unescape('_printString'),
  361. smalltalk.method({
  362. selector: unescape('printString'),
  363. category: 'printing',
  364. fn: function (){
  365. var self=this;
  366. return smalltalk.send("a ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])]);
  367. return self;},
  368. args: [],
  369. source: unescape('printString%0A%09%5E%27a%20%27%2C%20self%20class%20name'),
  370. messageSends: [unescape("%2C"), "name", "class"],
  371. referencedClasses: []
  372. }),
  373. smalltalk.Object);
  374. smalltalk.addMethod(
  375. unescape('_printNl'),
  376. smalltalk.method({
  377. selector: unescape('printNl'),
  378. category: 'printing',
  379. fn: function (){
  380. var self=this;
  381. console.log(self);
  382. return self;},
  383. args: [],
  384. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  385. messageSends: [],
  386. referencedClasses: []
  387. }),
  388. smalltalk.Object);
  389. smalltalk.addMethod(
  390. unescape('_isKindOf_'),
  391. smalltalk.method({
  392. selector: unescape('isKindOf%3A'),
  393. category: 'testing',
  394. fn: function (aClass){
  395. var self=this;
  396. return ((($receiver = smalltalk.send(self, "_isMemberOf_", [aClass])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return true;})() : (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return true;}), (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})]));
  397. return self;},
  398. args: ["aClass"],
  399. source: unescape('isKindOf%3A%20aClass%0A%09%5E%28self%20isMemberOf%3A%20aClass%29%0A%09%20%20%20%20ifTrue%3A%20%5Btrue%5D%0A%09%20%20%20%20ifFalse%3A%20%5Bself%20class%20inheritsFrom%3A%20aClass%5D'),
  400. messageSends: ["ifTrue:ifFalse:", "isMemberOf:", "inheritsFrom:", "class"],
  401. referencedClasses: []
  402. }),
  403. smalltalk.Object);
  404. smalltalk.addMethod(
  405. unescape('_isMemberOf_'),
  406. smalltalk.method({
  407. selector: unescape('isMemberOf%3A'),
  408. category: 'testing',
  409. fn: function (aClass){
  410. var self=this;
  411. return smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [aClass]);
  412. return self;},
  413. args: ["aClass"],
  414. source: unescape('isMemberOf%3A%20aClass%0A%09%5Eself%20class%20%3D%20aClass'),
  415. messageSends: [unescape("%3D"), "class"],
  416. referencedClasses: []
  417. }),
  418. smalltalk.Object);
  419. smalltalk.addMethod(
  420. unescape('_ifNil_'),
  421. smalltalk.method({
  422. selector: unescape('ifNil%3A'),
  423. category: 'testing',
  424. fn: function (aBlock){
  425. var self=this;
  426. return self;
  427. return self;},
  428. args: ["aBlock"],
  429. source: unescape('ifNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself'),
  430. messageSends: [],
  431. referencedClasses: []
  432. }),
  433. smalltalk.Object);
  434. smalltalk.addMethod(
  435. unescape('_ifNil_ifNotNil_'),
  436. smalltalk.method({
  437. selector: unescape('ifNil%3AifNotNil%3A'),
  438. category: 'testing',
  439. fn: function (aBlock, anotherBlock){
  440. var self=this;
  441. return smalltalk.send(anotherBlock, "_value", []);
  442. return self;},
  443. args: ["aBlock", "anotherBlock"],
  444. source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EanotherBlock%20value'),
  445. messageSends: ["value"],
  446. referencedClasses: []
  447. }),
  448. smalltalk.Object);
  449. smalltalk.addMethod(
  450. unescape('_ifNotNil_'),
  451. smalltalk.method({
  452. selector: unescape('ifNotNil%3A'),
  453. category: 'testing',
  454. fn: function (aBlock){
  455. var self=this;
  456. return smalltalk.send(aBlock, "_value", []);
  457. return self;},
  458. args: ["aBlock"],
  459. source: unescape('ifNotNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  460. messageSends: ["value"],
  461. referencedClasses: []
  462. }),
  463. smalltalk.Object);
  464. smalltalk.addMethod(
  465. unescape('_ifNotNil_ifNil_'),
  466. smalltalk.method({
  467. selector: unescape('ifNotNil%3AifNil%3A'),
  468. category: 'testing',
  469. fn: function (aBlock, anotherBlock){
  470. var self=this;
  471. return smalltalk.send(aBlock, "_value", []);
  472. return self;},
  473. args: ["aBlock", "anotherBlock"],
  474. source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  475. messageSends: ["value"],
  476. referencedClasses: []
  477. }),
  478. smalltalk.Object);
  479. smalltalk.addMethod(
  480. unescape('_isNil'),
  481. smalltalk.method({
  482. selector: unescape('isNil'),
  483. category: 'testing',
  484. fn: function (){
  485. var self=this;
  486. return false;
  487. return self;},
  488. args: [],
  489. source: unescape('isNil%0A%09%5Efalse'),
  490. messageSends: [],
  491. referencedClasses: []
  492. }),
  493. smalltalk.Object);
  494. smalltalk.addMethod(
  495. unescape('_notNil'),
  496. smalltalk.method({
  497. selector: unescape('notNil'),
  498. category: 'testing',
  499. fn: function (){
  500. var self=this;
  501. return smalltalk.send(smalltalk.send(self, "_isNil", []), "_not", []);
  502. return self;},
  503. args: [],
  504. source: unescape('notNil%0A%09%5Eself%20isNil%20not'),
  505. messageSends: ["not", "isNil"],
  506. referencedClasses: []
  507. }),
  508. smalltalk.Object);
  509. smalltalk.addMethod(
  510. unescape('_isClass'),
  511. smalltalk.method({
  512. selector: unescape('isClass'),
  513. category: 'testing',
  514. fn: function (){
  515. var self=this;
  516. return false;
  517. return self;},
  518. args: [],
  519. source: unescape('isClass%0A%09%5Efalse'),
  520. messageSends: [],
  521. referencedClasses: []
  522. }),
  523. smalltalk.Object);
  524. smalltalk.addMethod(
  525. unescape('_isMetaclass'),
  526. smalltalk.method({
  527. selector: unescape('isMetaclass'),
  528. category: 'testing',
  529. fn: function (){
  530. var self=this;
  531. return false;
  532. return self;},
  533. args: [],
  534. source: unescape('isMetaclass%0A%09%5Efalse'),
  535. messageSends: [],
  536. referencedClasses: []
  537. }),
  538. smalltalk.Object);
  539. smalltalk.addMethod(
  540. unescape('_isNumber'),
  541. smalltalk.method({
  542. selector: unescape('isNumber'),
  543. category: 'testing',
  544. fn: function (){
  545. var self=this;
  546. return false;
  547. return self;},
  548. args: [],
  549. source: unescape('isNumber%0A%09%5Efalse'),
  550. messageSends: [],
  551. referencedClasses: []
  552. }),
  553. smalltalk.Object);
  554. smalltalk.addMethod(
  555. unescape('_isString'),
  556. smalltalk.method({
  557. selector: unescape('isString'),
  558. category: 'testing',
  559. fn: function (){
  560. var self=this;
  561. return false;
  562. return self;},
  563. args: [],
  564. source: unescape('isString%0A%09%5Efalse'),
  565. messageSends: [],
  566. referencedClasses: []
  567. }),
  568. smalltalk.Object);
  569. smalltalk.addMethod(
  570. unescape('_isParseFailure'),
  571. smalltalk.method({
  572. selector: unescape('isParseFailure'),
  573. category: 'testing',
  574. fn: function (){
  575. var self=this;
  576. return false;
  577. return self;},
  578. args: [],
  579. source: unescape('isParseFailure%0A%09%5Efalse'),
  580. messageSends: [],
  581. referencedClasses: []
  582. }),
  583. smalltalk.Object);
  584. smalltalk.addMethod(
  585. unescape('_basicPerform_'),
  586. smalltalk.method({
  587. selector: unescape('basicPerform%3A'),
  588. category: 'message handling',
  589. fn: function (aSymbol){
  590. var self=this;
  591. return smalltalk.send(self, "_basicPerform_withArguments_", [aSymbol, []]);
  592. return self;},
  593. args: ["aSymbol"],
  594. source: unescape('basicPerform%3A%20aSymbol%20%0A%09%5Eself%20basicPerform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
  595. messageSends: ["basicPerform:withArguments:"],
  596. referencedClasses: []
  597. }),
  598. smalltalk.Object);
  599. smalltalk.addMethod(
  600. unescape('_basicPerform_withArguments_'),
  601. smalltalk.method({
  602. selector: unescape('basicPerform%3AwithArguments%3A'),
  603. category: 'message handling',
  604. fn: function (aSymbol, aCollection){
  605. var self=this;
  606. return self[aSymbol].apply(self, aCollection);;
  607. return self;},
  608. args: ["aSymbol", "aCollection"],
  609. source: unescape('basicPerform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%3Creturn%20self%5BaSymbol%5D.apply%28self%2C%20aCollection%29%3B%3E'),
  610. messageSends: [],
  611. referencedClasses: []
  612. }),
  613. smalltalk.Object);
  614. smalltalk.addMethod(
  615. unescape('_basicDelete_'),
  616. smalltalk.method({
  617. selector: unescape('basicDelete%3A'),
  618. category: 'accessing',
  619. fn: function (aString){
  620. var self=this;
  621. delete self[aString];
  622. return self;},
  623. args: ["aString"],
  624. source: unescape('basicDelete%3A%20aString%0A%20%20%20%20%3Cdelete%20self%5BaString%5D%3E'),
  625. messageSends: [],
  626. referencedClasses: []
  627. }),
  628. smalltalk.Object);
  629. smalltalk.addMethod(
  630. unescape('_doesNotUnderstand_'),
  631. smalltalk.method({
  632. selector: unescape('doesNotUnderstand%3A'),
  633. category: 'error handling',
  634. fn: function (aMessage){
  635. var self=this;
  636. (function($rec){smalltalk.send($rec, "_receiver_", [self]);smalltalk.send($rec, "_message_", [aMessage]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send((smalltalk.MessageNotUnderstood || MessageNotUnderstood), "_new", []));
  637. return self;},
  638. args: ["aMessage"],
  639. source: unescape('doesNotUnderstand%3A%20aMessage%0A%09MessageNotUnderstood%20new%0A%09%09receiver%3A%20self%3B%0A%09%09message%3A%20aMessage%3B%0A%09%09signal'),
  640. messageSends: ["receiver:", "message:", "signal", "new"],
  641. referencedClasses: [smalltalk.nil]
  642. }),
  643. smalltalk.Object);
  644. smalltalk.addMethod(
  645. unescape('_asJSON'),
  646. smalltalk.method({
  647. selector: unescape('asJSON'),
  648. category: 'converting',
  649. fn: function (){
  650. var self=this;
  651. return JSON.stringify(self._asJSONObject());
  652. return self;},
  653. args: [],
  654. source: unescape('asJSON%0A%09%3Creturn%20JSON.stringify%28self._asJSONObject%28%29%29%3E'),
  655. messageSends: [],
  656. referencedClasses: []
  657. }),
  658. smalltalk.Object);
  659. smalltalk.addMethod(
  660. unescape('_asJSONObject'),
  661. smalltalk.method({
  662. selector: unescape('asJSONObject'),
  663. category: 'converting',
  664. fn: function (){
  665. var self=this;
  666. var object=nil;
  667. object=smalltalk.send((smalltalk.Object || Object), "_new", []);
  668. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_instanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(object, "_basicAt_put_", [each, smalltalk.send(smalltalk.send(self, "_instVarAt_", [each]), "_asJSONObject", [])]);})]);
  669. return object;
  670. return self;},
  671. args: [],
  672. source: unescape('asJSONObject%0A%09%7C%20object%20%7C%0A%09object%20%3A%3D%20Object%20new.%0A%09self%20class%20instanceVariableNames%20do%3A%20%5B%3Aeach%20%7C%0A%09%09object%20basicAt%3A%20each%20put%3A%20%28self%20instVarAt%3A%20each%29%20asJSONObject%5D.%0A%09%5Eobject'),
  673. messageSends: ["new", "do:", "instanceVariableNames", "class", "basicAt:put:", "asJSONObject", "instVarAt:"],
  674. referencedClasses: [smalltalk.Object]
  675. }),
  676. smalltalk.Object);
  677. smalltalk.addMethod(
  678. unescape('_halt'),
  679. smalltalk.method({
  680. selector: unescape('halt'),
  681. category: 'error handling',
  682. fn: function (){
  683. var self=this;
  684. smalltalk.send(self, "_error_", ["Halt encountered"]);
  685. return self;},
  686. args: [],
  687. source: unescape('halt%0A%09self%20error%3A%20%27Halt%20encountered%27'),
  688. messageSends: ["error:"],
  689. referencedClasses: []
  690. }),
  691. smalltalk.Object);
  692. smalltalk.addMethod(
  693. unescape('_log_block_'),
  694. smalltalk.method({
  695. selector: unescape('log%3Ablock%3A'),
  696. category: 'printing',
  697. fn: function (aString, aBlock){
  698. var self=this;
  699. var result=nil;
  700. smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [smalltalk.send(smalltalk.send(aString, "__comma", [" time: "]), "__comma", [smalltalk.send(smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [(function(){return result=smalltalk.send(aBlock, "_value", []);})]), "_printString", [])])]);
  701. return result;
  702. return self;},
  703. args: ["aString", "aBlock"],
  704. source: unescape('log%3A%20aString%20block%3A%20aBlock%0A%0A%09%7C%20result%20%7C%0A%09console%20log%3A%20%20aString%2C%20%20%27%20time%3A%20%27%2C%20%28Date%20millisecondsToRun%3A%20%5Bresult%20%3A%3D%20aBlock%20value%5D%29%20printString.%0A%09%5Eresult'),
  705. messageSends: ["log:", unescape("%2C"), "printString", "millisecondsToRun:", "value"],
  706. referencedClasses: [smalltalk.Date]
  707. }),
  708. smalltalk.Object);
  709. smalltalk.addMethod(
  710. unescape('__eq_eq'),
  711. smalltalk.method({
  712. selector: unescape('%3D%3D'),
  713. category: 'comparing',
  714. fn: function (anObject){
  715. var self=this;
  716. return self === anObject;
  717. return self;},
  718. args: ["anObject"],
  719. source: unescape('%3D%3D%20anObject%0A%09%3Creturn%20self%20%3D%3D%3D%20anObject%3E'),
  720. messageSends: [],
  721. referencedClasses: []
  722. }),
  723. smalltalk.Object);
  724. smalltalk.addMethod(
  725. unescape('_%7E%7E'),
  726. smalltalk.method({
  727. selector: unescape('%7E%7E'),
  728. category: 'comparing',
  729. fn: function (anObject){
  730. var self=this;
  731. return smalltalk.send(smalltalk.send(self, "__eq_eq", [anObject]), "__eq", [false]);
  732. return self;},
  733. args: ["anObject"],
  734. source: unescape('%7E%7E%20anObject%0A%09%5E%28self%20%3D%3D%20anObject%29%20%3D%20false'),
  735. messageSends: [unescape("%3D"), unescape("%3D%3D")],
  736. referencedClasses: []
  737. }),
  738. smalltalk.Object);
  739. smalltalk.addMethod(
  740. unescape('_deprecatedAPI'),
  741. smalltalk.method({
  742. selector: unescape('deprecatedAPI'),
  743. category: 'error handling',
  744. fn: function (){
  745. var self=this;
  746. smalltalk.send((typeof console == 'undefined' ? nil : console), "_warn_", [smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.getThisContext()), "_home", []), "_asString", []), "__comma", [unescape("%20is%20deprecated%21")])]);
  747. return self;},
  748. args: [],
  749. source: unescape('deprecatedAPI%0A%09%22Just%20a%20simple%20way%20to%20deprecate%20methods.%0A%09%23deprecatedAPI%20is%20in%20the%20%27error%20handling%27%20protocol%20even%20if%20it%20doesn%27t%20throw%20an%20error%2C%0A%09but%20it%20could%20in%20the%20future.%22%0A%09console%20warn%3A%20thisContext%20home%20asString%2C%20%27%20is%20deprecated%21%27'),
  750. messageSends: ["warn:", unescape("%2C"), "asString", "home"],
  751. referencedClasses: []
  752. }),
  753. smalltalk.Object);
  754. smalltalk.addMethod(
  755. unescape('_initialize'),
  756. smalltalk.method({
  757. selector: unescape('initialize'),
  758. category: 'initialization',
  759. fn: function (){
  760. var self=this;
  761. return self;},
  762. args: [],
  763. source: unescape('initialize%0A%09%22no%20op%22'),
  764. messageSends: [],
  765. referencedClasses: []
  766. }),
  767. smalltalk.Object.klass);
  768. smalltalk.addClass('Smalltalk', smalltalk.Object, [], 'Kernel');
  769. smalltalk.addMethod(
  770. unescape('_classes'),
  771. smalltalk.method({
  772. selector: unescape('classes'),
  773. category: 'accessing',
  774. fn: function (){
  775. var self=this;
  776. return self.classes();
  777. return self;},
  778. args: [],
  779. source: unescape('classes%0A%09%3Creturn%20self.classes%28%29%3E'),
  780. messageSends: [],
  781. referencedClasses: []
  782. }),
  783. smalltalk.Smalltalk);
  784. smalltalk.addMethod(
  785. unescape('_readJSON_'),
  786. smalltalk.method({
  787. selector: unescape('readJSON%3A'),
  788. category: 'accessing',
  789. fn: function (anObject){
  790. var self=this;
  791. return self.readJSObject(anObject);
  792. return self;},
  793. args: ["anObject"],
  794. source: unescape('readJSON%3A%20anObject%0A%09%3Creturn%20self.readJSObject%28anObject%29%3E'),
  795. messageSends: [],
  796. referencedClasses: []
  797. }),
  798. smalltalk.Smalltalk);
  799. smalltalk.addMethod(
  800. unescape('_at_'),
  801. smalltalk.method({
  802. selector: unescape('at%3A'),
  803. category: 'accessing',
  804. fn: function (aString){
  805. var self=this;
  806. return self[aString];
  807. return self;},
  808. args: ["aString"],
  809. source: unescape('at%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
  810. messageSends: [],
  811. referencedClasses: []
  812. }),
  813. smalltalk.Smalltalk);
  814. smalltalk.addMethod(
  815. unescape('_removeClass_'),
  816. smalltalk.method({
  817. selector: unescape('removeClass%3A'),
  818. category: 'classes',
  819. fn: function (aClass){
  820. var self=this;
  821. ((($receiver = smalltalk.send(aClass, "_isMetaclass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_asString", []), "__comma", [unescape("%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21")])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_asString", []), "__comma", [unescape("%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21")])]);})]));
  822. smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(aClass, "_removeCompiledMethod_", [each]);})]);
  823. smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(aClass, "_class", []), "_removeCompiledMethod_", [each]);})]);
  824. smalltalk.send(self, "_basicDelete_", [smalltalk.send(aClass, "_name", [])]);
  825. return self;},
  826. args: ["aClass"],
  827. source: unescape('removeClass%3A%20aClass%0A%09aClass%20isMetaclass%20ifTrue%3A%20%5Bself%20error%3A%20aClass%20asString%2C%20%27%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21%27%5D.%0A%09aClass%20methodDictionary%20values%20do%3A%20%5B%3Aeach%20%7C%0A%09%09aClass%20removeCompiledMethod%3A%20each%5D.%0A%09aClass%20class%20methodDictionary%20values%20do%3A%20%5B%3Aeach%20%7C%0A%09%09aClass%20class%20removeCompiledMethod%3A%20each%5D.%0A%09self%20basicDelete%3A%20aClass%20name'),
  828. messageSends: ["ifTrue:", "isMetaclass", "error:", unescape("%2C"), "asString", "do:", "values", "methodDictionary", "removeCompiledMethod:", "class", "basicDelete:", "name"],
  829. referencedClasses: []
  830. }),
  831. smalltalk.Smalltalk);
  832. smalltalk.addMethod(
  833. unescape('_basicParse_'),
  834. smalltalk.method({
  835. selector: unescape('basicParse%3A'),
  836. category: 'accessing',
  837. fn: function (aString){
  838. var self=this;
  839. return smalltalk.parser.parse(aString);
  840. return self;},
  841. args: ["aString"],
  842. source: unescape('basicParse%3A%20aString%0A%09%3Creturn%20smalltalk.parser.parse%28aString%29%3E'),
  843. messageSends: [],
  844. referencedClasses: []
  845. }),
  846. smalltalk.Smalltalk);
  847. smalltalk.addMethod(
  848. unescape('_parse_'),
  849. smalltalk.method({
  850. selector: unescape('parse%3A'),
  851. category: 'accessing',
  852. fn: function (aString){
  853. var self=this;
  854. var result=nil;
  855. smalltalk.send(self, "_try_catch_", [(function(){return result=smalltalk.send(self, "_basicParse_", [aString]);}), (function(ex){return smalltalk.send(smalltalk.send(self, "_parseError_parsing_", [ex, aString]), "_signal", []);})]);
  856. return result;
  857. return self;},
  858. args: ["aString"],
  859. source: unescape('parse%3A%20aString%0A%09%7C%20result%20%7C%20%0A%09self%20try%3A%20%5Bresult%20%3A%3D%20self%20basicParse%3A%20aString%5D%20catch%3A%20%5B%3Aex%20%7C%20%28self%20parseError%3A%20ex%20parsing%3A%20aString%29%20signal%5D.%0A%09%5Eresult'),
  860. messageSends: ["try:catch:", "basicParse:", "signal", "parseError:parsing:"],
  861. referencedClasses: []
  862. }),
  863. smalltalk.Smalltalk);
  864. smalltalk.addMethod(
  865. unescape('_parseError_parsing_'),
  866. smalltalk.method({
  867. selector: unescape('parseError%3Aparsing%3A'),
  868. category: 'accessing',
  869. fn: function (anException, aString){
  870. var self=this;
  871. var row=nil;
  872. var col=nil;
  873. var message=nil;
  874. var lines=nil;
  875. var badLine=nil;
  876. var code=nil;
  877. row = anException.line;
  878. col = anException.column;
  879. message = anException.message;;
  880. lines=smalltalk.send(aString, "_lines", []);
  881. badLine=smalltalk.send(lines, "_at_", [row]);
  882. badLine=smalltalk.send(smalltalk.send(smalltalk.send(badLine, "_copyFrom_to_", [(1), ((($receiver = col).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]), "__comma", [unescape("%20%3D%3D%3D%3E")]), "__comma", [smalltalk.send(badLine, "_copyFrom_to_", [col, smalltalk.send(badLine, "_size", [])])]);
  883. smalltalk.send(lines, "_at_put_", [row, badLine]);
  884. code=smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(s){return smalltalk.send(lines, "_withIndexDo_", [(function(l, i){return smalltalk.send(s, "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(i, "_asString", []), "__comma", [": "]), "__comma", [l]), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])])]);})]);})]);
  885. return smalltalk.send(smalltalk.send((smalltalk.Error || Error), "_new", []), "_messageText_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("Parse error on line ", "__comma", [row]), "__comma", [" column "]), "__comma", [col]), "__comma", [" : "]), "__comma", [message]), "__comma", [unescape("%20Below%20is%20code%20with%20line%20numbers%20and%20%3D%3D%3D%3E%20marker%20inserted%3A")]), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])]), "__comma", [code])]);
  886. return self;},
  887. args: ["anException", "aString"],
  888. source: unescape('parseError%3A%20anException%20parsing%3A%20aString%0A%09%7C%20row%20col%20message%20lines%20badLine%20code%20%7C%0A%09%3Crow%20%3D%20anException.line%3B%0A%09col%20%3D%20anException.column%3B%0A%09message%20%3D%20anException.message%3B%3E.%0A%09lines%20%3A%3D%20aString%20lines.%0A%09badLine%20%3A%3D%20lines%20at%3A%20row.%0A%09badLine%20%3A%3D%20%28badLine%20copyFrom%3A%201%20to%3A%20col%20-%201%29%2C%20%27%20%3D%3D%3D%3E%27%2C%20%28badLine%20copyFrom%3A%20%20col%20to%3A%20badLine%20size%29.%0A%09lines%20at%3A%20row%20put%3A%20badLine.%0A%09code%20%3A%3D%20String%20streamContents%3A%20%5B%3As%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20lines%20withIndexDo%3A%20%5B%3Al%20%3Ai%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20s%20nextPutAll%3A%20i%20asString%2C%20%27%3A%20%27%2C%20l%2C%20String%20lf%5D%5D.%0A%09%5E%20Error%20new%20messageText%3A%20%28%27Parse%20error%20on%20line%20%27%20%2C%20row%20%2C%20%27%20column%20%27%20%2C%20col%20%2C%20%27%20%3A%20%27%20%2C%20message%20%2C%20%27%20Below%20is%20code%20with%20line%20numbers%20and%20%3D%3D%3D%3E%20marker%20inserted%3A%27%20%2C%20String%20lf%2C%20code%29'),
  889. messageSends: ["lines", "at:", unescape("%2C"), "copyFrom:to:", unescape("-"), "size", "at:put:", "streamContents:", "withIndexDo:", "nextPutAll:", "asString", "lf", "messageText:", "new"],
  890. referencedClasses: [smalltalk.String,smalltalk.Error]
  891. }),
  892. smalltalk.Smalltalk);
  893. smalltalk.addMethod(
  894. unescape('_packages'),
  895. smalltalk.method({
  896. selector: unescape('packages'),
  897. category: 'packages',
  898. fn: function (){
  899. var self=this;
  900. return self.packages.all();
  901. return self;},
  902. args: [],
  903. source: unescape('packages%0A%09%22Return%20all%20Package%20instances%20in%20the%20system.%22%0A%0A%09%3Creturn%20self.packages.all%28%29%3E'),
  904. messageSends: [],
  905. referencedClasses: []
  906. }),
  907. smalltalk.Smalltalk);
  908. smalltalk.addMethod(
  909. unescape('_packageAt_'),
  910. smalltalk.method({
  911. selector: unescape('packageAt%3A'),
  912. category: 'packages',
  913. fn: function (packageName){
  914. var self=this;
  915. return self.packages[packageName];
  916. return self;},
  917. args: ["packageName"],
  918. source: unescape('packageAt%3A%20packageName%0A%20%20%20%20%20%20%20%3Creturn%20self.packages%5BpackageName%5D%3E'),
  919. messageSends: [],
  920. referencedClasses: []
  921. }),
  922. smalltalk.Smalltalk);
  923. smalltalk.addMethod(
  924. unescape('_packageAt_ifAbsent_'),
  925. smalltalk.method({
  926. selector: unescape('packageAt%3AifAbsent%3A'),
  927. category: 'packages',
  928. fn: function (packageName, aBlock){
  929. var self=this;
  930. return smalltalk.send(smalltalk.send(self, "_packageAt_", [packageName]), "_ifNil_", [aBlock]);
  931. return self;},
  932. args: ["packageName", "aBlock"],
  933. source: unescape('packageAt%3A%20packageName%20ifAbsent%3A%20aBlock%0A%20%20%20%20%20%20%20%5E%28self%20packageAt%3A%20packageName%29%20ifNil%3A%20aBlock'),
  934. messageSends: ["ifNil:", "packageAt:"],
  935. referencedClasses: []
  936. }),
  937. smalltalk.Smalltalk);
  938. smalltalk.addMethod(
  939. unescape('_createPackage_'),
  940. smalltalk.method({
  941. selector: unescape('createPackage%3A'),
  942. category: 'private',
  943. fn: function (packageName){
  944. var self=this;
  945. return smalltalk.addPackage(packageName);
  946. return self;},
  947. args: ["packageName"],
  948. source: unescape('createPackage%3A%20packageName%0A%09%22Create%20and%20bind%20a%20new%20package%20with%20given%20name%20and%20return%20it.%22%0A%0A%20%20%20%20%20%20%20%3Creturn%20smalltalk.addPackage%28packageName%29%3E'),
  949. messageSends: [],
  950. referencedClasses: []
  951. }),
  952. smalltalk.Smalltalk);
  953. smalltalk.addMethod(
  954. unescape('_deletePackage_'),
  955. smalltalk.method({
  956. selector: unescape('deletePackage%3A'),
  957. category: 'private',
  958. fn: function (packageName){
  959. var self=this;
  960. delete smalltalk.packages[packageName];
  961. return self;},
  962. args: ["packageName"],
  963. source: unescape('deletePackage%3A%20packageName%0A%09%22Deletes%20a%20package%20by%20deleting%20its%20binding%2C%20but%20does%20not%20check%20if%20it%20contains%20classes%20etc.%0A%09To%20remove%20a%20package%2C%20use%20%23removePackage%20instead.%22%0A%0A%20%20%20%20%20%20%20%3Cdelete%20smalltalk.packages%5BpackageName%5D%3E'),
  964. messageSends: [],
  965. referencedClasses: []
  966. }),
  967. smalltalk.Smalltalk);
  968. smalltalk.addMethod(
  969. unescape('_removePackage_'),
  970. smalltalk.method({
  971. selector: unescape('removePackage%3A'),
  972. category: 'packages',
  973. fn: function (packageName){
  974. var self=this;
  975. var pkg=nil;
  976. pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]);
  977. smalltalk.send(smalltalk.send(pkg, "_classes", []), "_do_", [(function(each){return smalltalk.send(self, "_removeClass_", [each]);})]);
  978. smalltalk.send(self, "_deletePackage_", [packageName]);
  979. return self;},
  980. args: ["packageName"],
  981. source: unescape('removePackage%3A%20packageName%0A%09%22Removes%20a%20package%20and%20all%20its%20classes.%22%0A%0A%09%7C%20pkg%20%7C%0A%09pkg%20%3A%3D%20self%20packageAt%3A%20packageName%20ifAbsent%3A%20%5Bself%20error%3A%20%27Missing%20package%3A%20%27%2C%20packageName%5D.%0A%09pkg%20classes%20do%3A%20%5B%3Aeach%20%7C%0A%20%20%20%20%20%20%20%20%09self%20removeClass%3A%20each%5D.%0A%09self%20deletePackage%3A%20packageName'),
  982. messageSends: ["packageAt:ifAbsent:", "error:", unescape("%2C"), "do:", "classes", "removeClass:", "deletePackage:"],
  983. referencedClasses: []
  984. }),
  985. smalltalk.Smalltalk);
  986. smalltalk.addMethod(
  987. unescape('_renamePackage_to_'),
  988. smalltalk.method({
  989. selector: unescape('renamePackage%3Ato%3A'),
  990. category: 'packages',
  991. fn: function (packageName, newName){
  992. var self=this;
  993. var pkg=nil;
  994. pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]);
  995. (($receiver = smalltalk.send(self, "_packageAt_", [newName])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Already exists a package called: ", "__comma", [newName])]);})() : nil;
  996. smalltalk.packages[newName] = smalltalk.packages[packageName];
  997. smalltalk.send(pkg, "_name_", [newName]);
  998. smalltalk.send(self, "_deletePackage_", [packageName]);
  999. return self;},
  1000. args: ["packageName", "newName"],
  1001. source: unescape('renamePackage%3A%20packageName%20to%3A%20newName%0A%09%22Rename%20a%20package.%22%0A%0A%09%7C%20pkg%20%7C%0A%09pkg%20%3A%3D%20self%20packageAt%3A%20packageName%20ifAbsent%3A%20%5Bself%20error%3A%20%27Missing%20package%3A%20%27%2C%20packageName%5D.%0A%09%28self%20packageAt%3A%20newName%29%20ifNotNil%3A%20%5Bself%20error%3A%20%27Already%20exists%20a%20package%20called%3A%20%27%2C%20newName%5D.%0A%09%3Csmalltalk.packages%5BnewName%5D%20%3D%20smalltalk.packages%5BpackageName%5D%3E.%0A%09pkg%20name%3A%20newName.%0A%09self%20deletePackage%3A%20packageName.'),
  1002. messageSends: ["packageAt:ifAbsent:", "error:", unescape("%2C"), "ifNotNil:", "packageAt:", "name:", "deletePackage:"],
  1003. referencedClasses: []
  1004. }),
  1005. smalltalk.Smalltalk);
  1006. smalltalk.addMethod(
  1007. unescape('_reservedWords'),
  1008. smalltalk.method({
  1009. selector: unescape('reservedWords'),
  1010. category: 'accessing',
  1011. fn: function (){
  1012. var self=this;
  1013. return self.reservedWords;
  1014. return self;},
  1015. args: [],
  1016. source: unescape('reservedWords%0A%09%22JavaScript%20reserved%20words%22%0A%09%3Creturn%20self.reservedWords%3E'),
  1017. messageSends: [],
  1018. referencedClasses: []
  1019. }),
  1020. smalltalk.Smalltalk);
  1021. smalltalk.Smalltalk.klass.iVarNames = ['current'];
  1022. smalltalk.addMethod(
  1023. unescape('_current'),
  1024. smalltalk.method({
  1025. selector: unescape('current'),
  1026. category: 'accessing',
  1027. fn: function (){
  1028. var self=this;
  1029. return smalltalk;
  1030. return self;},
  1031. args: [],
  1032. source: unescape('current%0A%09%3Creturn%20smalltalk%3E'),
  1033. messageSends: [],
  1034. referencedClasses: []
  1035. }),
  1036. smalltalk.Smalltalk.klass);
  1037. smalltalk.addClass('Package', smalltalk.Object, ['commitPathJs', 'commitPathSt'], 'Kernel');
  1038. smalltalk.Package.comment=unescape('A%20Package%20is%20similar%20to%20a%20%22class%20category%22%20typically%20found%20in%20other%20Smalltalks%20like%20Pharo%20or%20Squeak.%20Amber%20does%20not%20have%20class%20categories%20anymore%2C%20it%20had%20in%20the%20beginning%20but%20now%20each%20class%20in%20the%20system%20knows%20which%20package%20it%20belongs%20to.%0A%0AA%20Package%20has%20a%20name%2C%20an%20Array%20of%20%22requires%22%2C%20a%20comment%20and%20a%20Dictionary%20with%20other%20optional%20key%20value%20attributes.%20A%20Package%20can%20also%20be%20queried%20for%20its%20classes%2C%20but%20it%20will%20then%20resort%20to%20a%20reverse%20scan%20of%20all%20classes%20to%20find%20them.%0APackages%20are%20manipulated%20through%20%22Smalltalk%20current%22%2C%20like%20for%20example%20finding%20one%20based%20on%20a%20name%3A%0A%0A%09Smalltalk%20current%20packageAt%3A%20%27Kernel%27%0A%0A...but%20you%20can%20also%20use%3A%0A%0A%09Package%20named%3A%20%27Kernel%27%0A%0AA%20Package%20differs%20slightly%20from%20a%20Monticello%20package%20which%20can%20span%20multiple%20class%20categories%20using%20a%20naming%20convention%20based%20on%20hyphenation.%20But%20just%20as%20in%20Monticello%20a%20Package%20supports%20%22class%20extensions%22%20so%20a%20Package%0Acan%20define%20behaviors%20in%20foreign%20classes%20using%20a%20naming%20convention%20for%20method%20categories%20where%20the%20category%20starts%20with%20an%20asterisk%20and%20then%20the%20name%20of%20the%20owning%20package%20follows.%20This%20can%20easily%20be%20seen%20in%20for%20example%20class%0AString%20where%20the%20method%20category%20%22*IDE%22%20defines%20%23inspectOn%3A%20which%20thus%20is%20a%20method%20belonging%20to%20the%20IDE%20package.')
  1039. smalltalk.addMethod(
  1040. unescape('_name'),
  1041. smalltalk.method({
  1042. selector: unescape('name'),
  1043. category: 'accessing',
  1044. fn: function (){
  1045. var self=this;
  1046. return self.pkgName || nil;
  1047. return self;},
  1048. args: [],
  1049. source: unescape('name%0A%09%3Creturn%20self.pkgName%20%7C%7C%20nil%3E'),
  1050. messageSends: [],
  1051. referencedClasses: []
  1052. }),
  1053. smalltalk.Package);
  1054. smalltalk.addMethod(
  1055. unescape('_requires'),
  1056. smalltalk.method({
  1057. selector: unescape('requires'),
  1058. category: 'accessing',
  1059. fn: function (){
  1060. var self=this;
  1061. return self.requires || nil;
  1062. return self;},
  1063. args: [],
  1064. source: unescape('requires%0A%09%3Creturn%20self.requires%20%7C%7C%20nil%3E'),
  1065. messageSends: [],
  1066. referencedClasses: []
  1067. }),
  1068. smalltalk.Package);
  1069. smalltalk.addMethod(
  1070. unescape('_name_'),
  1071. smalltalk.method({
  1072. selector: unescape('name%3A'),
  1073. category: 'accessing',
  1074. fn: function (aString){
  1075. var self=this;
  1076. self.pkgName = aString;
  1077. return self;},
  1078. args: ["aString"],
  1079. source: unescape('name%3A%20aString%0A%09%3Cself.pkgName%20%3D%20aString%3E'),
  1080. messageSends: [],
  1081. referencedClasses: []
  1082. }),
  1083. smalltalk.Package);
  1084. smalltalk.addMethod(
  1085. unescape('_classes'),
  1086. smalltalk.method({
  1087. selector: unescape('classes'),
  1088. category: 'classes',
  1089. fn: function (){
  1090. var self=this;
  1091. return smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_select_", [(function(c){return smalltalk.send(smalltalk.send(c, "_package", []), "__eq_eq", [self]);})]);
  1092. return self;},
  1093. args: [],
  1094. source: unescape('classes%0A%09%22We%20need%20to%20do%20a%20reverse%20scan.%22%0A%09%5ESmalltalk%20current%20classes%20select%3A%20%5B%3Ac%20%7C%20c%20package%20%3D%3D%20self%5D'),
  1095. messageSends: ["select:", "classes", "current", unescape("%3D%3D"), "package"],
  1096. referencedClasses: [smalltalk.Smalltalk]
  1097. }),
  1098. smalltalk.Package);
  1099. smalltalk.addMethod(
  1100. unescape('_printString'),
  1101. smalltalk.method({
  1102. selector: unescape('printString'),
  1103. category: 'printing',
  1104. fn: function (){
  1105. var self=this;
  1106. return smalltalk.send(self, "_name", []);
  1107. return self;},
  1108. args: [],
  1109. source: unescape('printString%0A%09%5Eself%20name'),
  1110. messageSends: ["name"],
  1111. referencedClasses: []
  1112. }),
  1113. smalltalk.Package);
  1114. smalltalk.addMethod(
  1115. unescape('_commitPathJs'),
  1116. smalltalk.method({
  1117. selector: unescape('commitPathJs'),
  1118. category: 'accessing',
  1119. fn: function (){
  1120. var self=this;
  1121. return (($receiver = self['@commitPathJs']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_defaultCommitPathJs", []);})() : $receiver;
  1122. return self;},
  1123. args: [],
  1124. source: unescape('commitPathJs%0A%09%5E%20commitPathJs%20ifNil%3A%20%5Bself%20class%20defaultCommitPathJs%5D'),
  1125. messageSends: ["ifNil:", "defaultCommitPathJs", "class"],
  1126. referencedClasses: []
  1127. }),
  1128. smalltalk.Package);
  1129. smalltalk.addMethod(
  1130. unescape('_commitPathSt'),
  1131. smalltalk.method({
  1132. selector: unescape('commitPathSt'),
  1133. category: 'accessing',
  1134. fn: function (){
  1135. var self=this;
  1136. return (($receiver = self['@commitPathSt']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_defaultCommitPathSt", []);})() : $receiver;
  1137. return self;},
  1138. args: [],
  1139. source: unescape('commitPathSt%0A%09%5E%20commitPathSt%20ifNil%3A%20%5Bself%20class%20defaultCommitPathSt%5D'),
  1140. messageSends: ["ifNil:", "defaultCommitPathSt", "class"],
  1141. referencedClasses: []
  1142. }),
  1143. smalltalk.Package);
  1144. smalltalk.addMethod(
  1145. unescape('_commitPathJs_'),
  1146. smalltalk.method({
  1147. selector: unescape('commitPathJs%3A'),
  1148. category: 'accessing',
  1149. fn: function (aString){
  1150. var self=this;
  1151. self['@commitPathJs']=aString;
  1152. return self;},
  1153. args: ["aString"],
  1154. source: unescape('commitPathJs%3A%20aString%0A%09commitPathJs%A0%3A%3D%20aString'),
  1155. messageSends: [],
  1156. referencedClasses: []
  1157. }),
  1158. smalltalk.Package);
  1159. smalltalk.addMethod(
  1160. unescape('_commitPathSt_'),
  1161. smalltalk.method({
  1162. selector: unescape('commitPathSt%3A'),
  1163. category: 'accessing',
  1164. fn: function (aString){
  1165. var self=this;
  1166. self['@commitPathSt']=aString;
  1167. return self;},
  1168. args: ["aString"],
  1169. source: unescape('commitPathSt%3A%20aString%0A%09commitPathSt%A0%3A%3D%20aString'),
  1170. messageSends: [],
  1171. referencedClasses: []
  1172. }),
  1173. smalltalk.Package);
  1174. smalltalk.Package.klass.iVarNames = ['defaultCommitPathJs','defaultCommitPathSt'];
  1175. smalltalk.addMethod(
  1176. unescape('_named_'),
  1177. smalltalk.method({
  1178. selector: unescape('named%3A'),
  1179. category: 'accessing',
  1180. fn: function (aPackageName){
  1181. var self=this;
  1182. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_", [aPackageName]);
  1183. return self;},
  1184. args: ["aPackageName"],
  1185. source: unescape('named%3A%20aPackageName%0A%0A%09%5ESmalltalk%20current%20packageAt%3A%20aPackageName'),
  1186. messageSends: ["packageAt:", "current"],
  1187. referencedClasses: [smalltalk.Smalltalk]
  1188. }),
  1189. smalltalk.Package.klass);
  1190. smalltalk.addMethod(
  1191. unescape('_named_ifAbsent_'),
  1192. smalltalk.method({
  1193. selector: unescape('named%3AifAbsent%3A'),
  1194. category: 'accessing',
  1195. fn: function (aPackageName, aBlock){
  1196. var self=this;
  1197. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_ifAbsent_", [aPackageName, aBlock]);
  1198. return self;},
  1199. args: ["aPackageName", "aBlock"],
  1200. source: unescape('named%3A%20aPackageName%20ifAbsent%3A%20aBlock%0A%0A%09%5ESmalltalk%20current%20packageAt%3A%20aPackageName%20ifAbsent%3A%20aBlock'),
  1201. messageSends: ["packageAt:ifAbsent:", "current"],
  1202. referencedClasses: [smalltalk.Smalltalk]
  1203. }),
  1204. smalltalk.Package.klass);
  1205. smalltalk.addMethod(
  1206. unescape('_defaultCommitPathSt'),
  1207. smalltalk.method({
  1208. selector: unescape('defaultCommitPathSt'),
  1209. category: 'accessing',
  1210. fn: function (){
  1211. var self=this;
  1212. return (($receiver = self['@defaultCommitPathSt']) == nil || $receiver == undefined) ? (function(){return self['@defaultCommitPathSt']="st";})() : $receiver;
  1213. return self;},
  1214. args: [],
  1215. source: unescape('defaultCommitPathSt%0A%09%5E%20defaultCommitPathSt%20ifNil%3A%20%5B%20defaultCommitPathSt%20%3A%3D%20%27st%27%5D%20'),
  1216. messageSends: ["ifNil:"],
  1217. referencedClasses: []
  1218. }),
  1219. smalltalk.Package.klass);
  1220. smalltalk.addMethod(
  1221. unescape('_defaultCommitPathJs'),
  1222. smalltalk.method({
  1223. selector: unescape('defaultCommitPathJs'),
  1224. category: 'accessing',
  1225. fn: function (){
  1226. var self=this;
  1227. return (($receiver = self['@defaultCommitPathJs']) == nil || $receiver == undefined) ? (function(){return self['@defaultCommitPathJs']="js";})() : $receiver;
  1228. return self;},
  1229. args: [],
  1230. source: unescape('defaultCommitPathJs%0A%09%5E%20defaultCommitPathJs%20ifNil%3A%20%5B%20defaultCommitPathJs%20%3A%3D%20%27js%27%5D%20'),
  1231. messageSends: ["ifNil:"],
  1232. referencedClasses: []
  1233. }),
  1234. smalltalk.Package.klass);
  1235. smalltalk.addMethod(
  1236. unescape('_defaultCommitPathSt_'),
  1237. smalltalk.method({
  1238. selector: unescape('defaultCommitPathSt%3A'),
  1239. category: 'accessing',
  1240. fn: function (aString){
  1241. var self=this;
  1242. self['@defaultCommitPathSt']=aString;
  1243. return self;},
  1244. args: ["aString"],
  1245. source: unescape('defaultCommitPathSt%3A%20aString%0A%09defaultCommitPathSt%20%3A%3D%20aString'),
  1246. messageSends: [],
  1247. referencedClasses: []
  1248. }),
  1249. smalltalk.Package.klass);
  1250. smalltalk.addMethod(
  1251. unescape('_defaultCommitPathJs_'),
  1252. smalltalk.method({
  1253. selector: unescape('defaultCommitPathJs%3A'),
  1254. category: 'accessing',
  1255. fn: function (aString){
  1256. var self=this;
  1257. self['@defaultCommitPathJs']=aString;
  1258. return self;},
  1259. args: ["aString"],
  1260. source: unescape('defaultCommitPathJs%3A%20aString%0A%09defaultCommitPathJs%20%3A%3D%20aString'),
  1261. messageSends: [],
  1262. referencedClasses: []
  1263. }),
  1264. smalltalk.Package.klass);
  1265. smalltalk.addMethod(
  1266. unescape('_resetCommitPaths'),
  1267. smalltalk.method({
  1268. selector: unescape('resetCommitPaths'),
  1269. category: 'reset',
  1270. fn: function (){
  1271. var self=this;
  1272. self['@defaultCommitPathJs']=nil;
  1273. self['@defaultCommitPathSt']=nil;
  1274. return self;},
  1275. args: [],
  1276. source: unescape('resetCommitPaths%0A%09defaultCommitPathJs%20%3A%3D%20nil.%0A%09defaultCommitPathSt%20%3A%3D%20nil.'),
  1277. messageSends: [],
  1278. referencedClasses: []
  1279. }),
  1280. smalltalk.Package.klass);
  1281. smalltalk.addClass('Behavior', smalltalk.Object, [], 'Kernel');
  1282. smalltalk.addMethod(
  1283. unescape('_new'),
  1284. smalltalk.method({
  1285. selector: unescape('new'),
  1286. category: 'instance creation',
  1287. fn: function (){
  1288. var self=this;
  1289. return smalltalk.send(smalltalk.send(self, "_basicNew", []), "_initialize", []);
  1290. return self;},
  1291. args: [],
  1292. source: unescape('new%0A%09%5Eself%20basicNew%20initialize'),
  1293. messageSends: ["initialize", "basicNew"],
  1294. referencedClasses: []
  1295. }),
  1296. smalltalk.Behavior);
  1297. smalltalk.addMethod(
  1298. unescape('_basicNew'),
  1299. smalltalk.method({
  1300. selector: unescape('basicNew'),
  1301. category: 'instance creation',
  1302. fn: function (){
  1303. var self=this;
  1304. return new self.fn();
  1305. return self;},
  1306. args: [],
  1307. source: unescape('basicNew%0A%09%3Creturn%20new%20self.fn%28%29%3E'),
  1308. messageSends: [],
  1309. referencedClasses: []
  1310. }),
  1311. smalltalk.Behavior);
  1312. smalltalk.addMethod(
  1313. unescape('_name'),
  1314. smalltalk.method({
  1315. selector: unescape('name'),
  1316. category: 'accessing',
  1317. fn: function (){
  1318. var self=this;
  1319. return self.className || nil;
  1320. return self;},
  1321. args: [],
  1322. source: unescape('name%0A%09%3Creturn%20self.className%20%7C%7C%20nil%3E'),
  1323. messageSends: [],
  1324. referencedClasses: []
  1325. }),
  1326. smalltalk.Behavior);
  1327. smalltalk.addMethod(
  1328. unescape('_superclass'),
  1329. smalltalk.method({
  1330. selector: unescape('superclass'),
  1331. category: 'accessing',
  1332. fn: function (){
  1333. var self=this;
  1334. return self.superclass || nil;
  1335. return self;},
  1336. args: [],
  1337. source: unescape('superclass%0A%09%3Creturn%20self.superclass%20%7C%7C%20nil%3E'),
  1338. messageSends: [],
  1339. referencedClasses: []
  1340. }),
  1341. smalltalk.Behavior);
  1342. smalltalk.addMethod(
  1343. unescape('_subclasses'),
  1344. smalltalk.method({
  1345. selector: unescape('subclasses'),
  1346. category: 'accessing',
  1347. fn: function (){
  1348. var self=this;
  1349. return smalltalk.subclasses(self);
  1350. return self;},
  1351. args: [],
  1352. source: unescape('subclasses%0A%09%3Creturn%20smalltalk.subclasses%28self%29%3E'),
  1353. messageSends: [],
  1354. referencedClasses: []
  1355. }),
  1356. smalltalk.Behavior);
  1357. smalltalk.addMethod(
  1358. unescape('_allSubclasses'),
  1359. smalltalk.method({
  1360. selector: unescape('allSubclasses'),
  1361. category: 'accessing',
  1362. fn: function (){
  1363. var self=this;
  1364. var result=nil;
  1365. result=smalltalk.send(self, "_subclasses", []);
  1366. smalltalk.send(smalltalk.send(self, "_subclasses", []), "_do_", [(function(each){return smalltalk.send(result, "_addAll_", [smalltalk.send(each, "_allSubclasses", [])]);})]);
  1367. return result;
  1368. return self;},
  1369. args: [],
  1370. 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'),
  1371. messageSends: ["subclasses", "do:", "addAll:", "allSubclasses"],
  1372. referencedClasses: []
  1373. }),
  1374. smalltalk.Behavior);
  1375. smalltalk.addMethod(
  1376. unescape('_withAllSubclasses'),
  1377. smalltalk.method({
  1378. selector: unescape('withAllSubclasses'),
  1379. category: 'accessing',
  1380. fn: function (){
  1381. var self=this;
  1382. return (function($rec){smalltalk.send($rec, "_addAll_", [smalltalk.send(self, "_allSubclasses", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.Array || Array), "_with_", [self]));
  1383. return self;},
  1384. args: [],
  1385. source: unescape('withAllSubclasses%0A%09%5E%28Array%20with%3A%20self%29%20addAll%3A%20self%20allSubclasses%3B%20yourself'),
  1386. messageSends: ["addAll:", "allSubclasses", "yourself", "with:"],
  1387. referencedClasses: [smalltalk.Array]
  1388. }),
  1389. smalltalk.Behavior);
  1390. smalltalk.addMethod(
  1391. unescape('_prototype'),
  1392. smalltalk.method({
  1393. selector: unescape('prototype'),
  1394. category: 'accessing',
  1395. fn: function (){
  1396. var self=this;
  1397. return self.fn.prototype;
  1398. return self;},
  1399. args: [],
  1400. source: unescape('prototype%0A%09%3Creturn%20self.fn.prototype%3E'),
  1401. messageSends: [],
  1402. referencedClasses: []
  1403. }),
  1404. smalltalk.Behavior);
  1405. smalltalk.addMethod(
  1406. unescape('_methodDictionary'),
  1407. smalltalk.method({
  1408. selector: unescape('methodDictionary'),
  1409. category: 'accessing',
  1410. fn: function (){
  1411. var self=this;
  1412. var dict = smalltalk.Dictionary._new();
  1413. var methods = self.fn.prototype.methods;
  1414. for(var i in methods) {
  1415. if(methods[i].selector) {
  1416. dict._at_put_(methods[i].selector, methods[i]);
  1417. }
  1418. };
  1419. return dict;
  1420. return self;},
  1421. args: [],
  1422. 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'),
  1423. messageSends: [],
  1424. referencedClasses: []
  1425. }),
  1426. smalltalk.Behavior);
  1427. smalltalk.addMethod(
  1428. unescape('_methodsFor_'),
  1429. smalltalk.method({
  1430. selector: unescape('methodsFor%3A'),
  1431. category: 'accessing',
  1432. fn: function (aString){
  1433. var self=this;
  1434. return (function($rec){smalltalk.send($rec, "_class_category_", [self, aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.ClassCategoryReader || ClassCategoryReader), "_new", []));
  1435. return self;},
  1436. args: ["aString"],
  1437. 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'),
  1438. messageSends: ["class:category:", "yourself", "new"],
  1439. referencedClasses: [smalltalk.nil]
  1440. }),
  1441. smalltalk.Behavior);
  1442. smalltalk.addMethod(
  1443. unescape('_addCompiledMethod_'),
  1444. smalltalk.method({
  1445. selector: unescape('addCompiledMethod%3A'),
  1446. category: 'accessing',
  1447. fn: function (aMethod){
  1448. var self=this;
  1449. smalltalk.addMethod(aMethod.selector._asSelector(), aMethod, self);
  1450. return self;},
  1451. args: ["aMethod"],
  1452. source: unescape('addCompiledMethod%3A%20aMethod%0A%09%3Csmalltalk.addMethod%28aMethod.selector._asSelector%28%29%2C%20aMethod%2C%20self%29%3E'),
  1453. messageSends: [],
  1454. referencedClasses: []
  1455. }),
  1456. smalltalk.Behavior);
  1457. smalltalk.addMethod(
  1458. unescape('_instanceVariableNames'),
  1459. smalltalk.method({
  1460. selector: unescape('instanceVariableNames'),
  1461. category: 'accessing',
  1462. fn: function (){
  1463. var self=this;
  1464. return self.iVarNames;
  1465. return self;},
  1466. args: [],
  1467. source: unescape('instanceVariableNames%0A%09%3Creturn%20self.iVarNames%3E'),
  1468. messageSends: [],
  1469. referencedClasses: []
  1470. }),
  1471. smalltalk.Behavior);
  1472. smalltalk.addMethod(
  1473. unescape('_comment'),
  1474. smalltalk.method({
  1475. selector: unescape('comment'),
  1476. category: 'accessing',
  1477. fn: function (){
  1478. var self=this;
  1479. return (($receiver = smalltalk.send(self, "_basicAt_", ["comment"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  1480. return self;},
  1481. args: [],
  1482. source: unescape('comment%0A%20%20%20%20%5E%28self%20basicAt%3A%20%27comment%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1483. messageSends: ["ifNil:", "basicAt:"],
  1484. referencedClasses: []
  1485. }),
  1486. smalltalk.Behavior);
  1487. smalltalk.addMethod(
  1488. unescape('_comment_'),
  1489. smalltalk.method({
  1490. selector: unescape('comment%3A'),
  1491. category: 'accessing',
  1492. fn: function (aString){
  1493. var self=this;
  1494. smalltalk.send(self, "_basicAt_put_", ["comment", aString]);
  1495. return self;},
  1496. args: ["aString"],
  1497. source: unescape('comment%3A%20aString%0A%20%20%20%20self%20basicAt%3A%20%27comment%27%20put%3A%20aString'),
  1498. messageSends: ["basicAt:put:"],
  1499. referencedClasses: []
  1500. }),
  1501. smalltalk.Behavior);
  1502. smalltalk.addMethod(
  1503. unescape('_commentStamp'),
  1504. smalltalk.method({
  1505. selector: unescape('commentStamp'),
  1506. category: 'accessing',
  1507. fn: function (){
  1508. var self=this;
  1509. return (function($rec){smalltalk.send($rec, "_class_", [self]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.ClassCommentReader || ClassCommentReader), "_new", []));
  1510. return self;},
  1511. args: [],
  1512. source: unescape('commentStamp%0A%20%20%20%20%5EClassCommentReader%20new%0A%09class%3A%20self%3B%0A%09yourself'),
  1513. messageSends: ["class:", "yourself", "new"],
  1514. referencedClasses: [smalltalk.nil]
  1515. }),
  1516. smalltalk.Behavior);
  1517. smalltalk.addMethod(
  1518. unescape('_removeCompiledMethod_'),
  1519. smalltalk.method({
  1520. selector: unescape('removeCompiledMethod%3A'),
  1521. category: 'accessing',
  1522. fn: function (aMethod){
  1523. var self=this;
  1524. delete self.fn.prototype[aMethod.selector._asSelector()];
  1525. delete self.fn.prototype.methods[aMethod.selector];
  1526. smalltalk.init(self);;
  1527. return self;},
  1528. args: ["aMethod"],
  1529. source: unescape('removeCompiledMethod%3A%20aMethod%0A%09%3Cdelete%20self.fn.prototype%5BaMethod.selector._asSelector%28%29%5D%3B%0A%09delete%20self.fn.prototype.methods%5BaMethod.selector%5D%3B%0A%09smalltalk.init%28self%29%3B%3E'),
  1530. messageSends: [],
  1531. referencedClasses: []
  1532. }),
  1533. smalltalk.Behavior);
  1534. smalltalk.addMethod(
  1535. unescape('_inheritsFrom_'),
  1536. smalltalk.method({
  1537. selector: unescape('inheritsFrom%3A'),
  1538. category: 'instance creation',
  1539. fn: function (aClass){
  1540. var self=this;
  1541. return smalltalk.send(smalltalk.send(aClass, "_allSubclasses", []), "_includes_", [self]);
  1542. return self;},
  1543. args: ["aClass"],
  1544. source: unescape('inheritsFrom%3A%20aClass%0A%09%5EaClass%20allSubclasses%20includes%3A%20self'),
  1545. messageSends: ["includes:", "allSubclasses"],
  1546. referencedClasses: []
  1547. }),
  1548. smalltalk.Behavior);
  1549. smalltalk.addMethod(
  1550. unescape('_protocols'),
  1551. smalltalk.method({
  1552. selector: unescape('protocols'),
  1553. category: 'accessing',
  1554. fn: function (){
  1555. var self=this;
  1556. var protocols=nil;
  1557. protocols=smalltalk.send((smalltalk.Array || Array), "_new", []);
  1558. smalltalk.send(smalltalk.send(self, "_methodDictionary", []), "_do_", [(function(each){return ((($receiver = smalltalk.send(protocols, "_includes_", [smalltalk.send(each, "_category", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(protocols, "_add_", [smalltalk.send(each, "_category", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(protocols, "_add_", [smalltalk.send(each, "_category", [])]);})]));})]);
  1559. return smalltalk.send(protocols, "_sort", []);
  1560. return self;},
  1561. args: [],
  1562. 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'),
  1563. messageSends: ["new", "do:", "methodDictionary", "ifFalse:", "includes:", "category", "add:", "sort"],
  1564. referencedClasses: [smalltalk.Array]
  1565. }),
  1566. smalltalk.Behavior);
  1567. smalltalk.addMethod(
  1568. unescape('_protocolsDo_'),
  1569. smalltalk.method({
  1570. selector: unescape('protocolsDo%3A'),
  1571. category: 'accessing',
  1572. fn: function (aBlock){
  1573. var self=this;
  1574. var methodsByCategory=nil;
  1575. methodsByCategory=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  1576. smalltalk.send(smalltalk.send(smalltalk.send(self, "_methodDictionary", []), "_values", []), "_do_", [(function(m){return smalltalk.send(smalltalk.send(methodsByCategory, "_at_ifAbsentPut_", [smalltalk.send(m, "_category", []), (function(){return smalltalk.send((smalltalk.Array || Array), "_new", []);})]), "_add_", [m]);})]);
  1577. smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(category){return smalltalk.send(aBlock, "_value_value_", [category, smalltalk.send(methodsByCategory, "_at_", [category])]);})]);
  1578. return self;},
  1579. args: ["aBlock"],
  1580. 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'),
  1581. messageSends: ["new", "do:", "values", "methodDictionary", "add:", "at:ifAbsentPut:", "category", "protocols", "value:value:", "at:"],
  1582. referencedClasses: [smalltalk.nil,smalltalk.Array]
  1583. }),
  1584. smalltalk.Behavior);
  1585. smalltalk.addMethod(
  1586. unescape('_allInstanceVariableNames'),
  1587. smalltalk.method({
  1588. selector: unescape('allInstanceVariableNames'),
  1589. category: 'accessing',
  1590. fn: function (){
  1591. var self=this;
  1592. var result=nil;
  1593. result=smalltalk.send(smalltalk.send(self, "_instanceVariableNames", []), "_copy", []);
  1594. (($receiver = smalltalk.send(self, "_superclass", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(result, "_addAll_", [smalltalk.send(smalltalk.send(self, "_superclass", []), "_allInstanceVariableNames", [])]);})() : nil;
  1595. return result;
  1596. return self;},
  1597. args: [],
  1598. source: unescape('allInstanceVariableNames%0A%09%7C%20result%20%7C%0A%09result%20%3A%3D%20self%20instanceVariableNames%20copy.%0A%09self%20superclass%20ifNotNil%3A%20%5B%0A%09%20%20%20%20result%20addAll%3A%20self%20superclass%20allInstanceVariableNames%5D.%0A%09%5Eresult'),
  1599. messageSends: ["copy", "instanceVariableNames", "ifNotNil:", "superclass", "addAll:", "allInstanceVariableNames"],
  1600. referencedClasses: []
  1601. }),
  1602. smalltalk.Behavior);
  1603. smalltalk.addMethod(
  1604. unescape('_methodAt_'),
  1605. smalltalk.method({
  1606. selector: unescape('methodAt%3A'),
  1607. category: 'accessing',
  1608. fn: function (aString){
  1609. var self=this;
  1610. return smalltalk.methods(self)[aString];
  1611. return self;},
  1612. args: ["aString"],
  1613. source: unescape('methodAt%3A%20aString%0A%09%3Creturn%20smalltalk.methods%28self%29%5BaString%5D%3E'),
  1614. messageSends: [],
  1615. referencedClasses: []
  1616. }),
  1617. smalltalk.Behavior);
  1618. smalltalk.addMethod(
  1619. unescape('_methodsFor_stamp_'),
  1620. smalltalk.method({
  1621. selector: unescape('methodsFor%3Astamp%3A'),
  1622. category: 'accessing',
  1623. fn: function (aString, aStamp){
  1624. var self=this;
  1625. return smalltalk.send(self, "_methodsFor_", [aString]);
  1626. return self;},
  1627. args: ["aString", "aStamp"],
  1628. source: unescape('methodsFor%3A%20aString%20stamp%3A%20aStamp%0A%09%22Added%20for%20compatibility%2C%20right%20now%20ignores%20stamp.%22%0A%09%5Eself%20methodsFor%3A%20aString'),
  1629. messageSends: ["methodsFor:"],
  1630. referencedClasses: []
  1631. }),
  1632. smalltalk.Behavior);
  1633. smalltalk.addMethod(
  1634. unescape('_commentStamp_prior_'),
  1635. smalltalk.method({
  1636. selector: unescape('commentStamp%3Aprior%3A'),
  1637. category: 'accessing',
  1638. fn: function (aStamp, prior){
  1639. var self=this;
  1640. return smalltalk.send(self, "_commentStamp", []);
  1641. return self;},
  1642. args: ["aStamp", "prior"],
  1643. source: unescape('commentStamp%3A%20aStamp%20prior%3A%20prior%0A%20%20%20%20%20%20%20%20%5Eself%20commentStamp'),
  1644. messageSends: ["commentStamp"],
  1645. referencedClasses: []
  1646. }),
  1647. smalltalk.Behavior);
  1648. smalltalk.addMethod(
  1649. unescape('_compile_'),
  1650. smalltalk.method({
  1651. selector: unescape('compile%3A'),
  1652. category: 'compiling',
  1653. fn: function (aString){
  1654. var self=this;
  1655. smalltalk.send(self, "_compile_category_", [aString, ""]);
  1656. return self;},
  1657. args: ["aString"],
  1658. source: unescape('compile%3A%20aString%0A%09self%20compile%3A%20aString%20category%3A%20%27%27'),
  1659. messageSends: ["compile:category:"],
  1660. referencedClasses: []
  1661. }),
  1662. smalltalk.Behavior);
  1663. smalltalk.addMethod(
  1664. unescape('_compile_category_'),
  1665. smalltalk.method({
  1666. selector: unescape('compile%3Acategory%3A'),
  1667. category: 'compiling',
  1668. fn: function (aString, anotherString){
  1669. var self=this;
  1670. var method=nil;
  1671. method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self]);
  1672. smalltalk.send(method, "_category_", [anotherString]);
  1673. smalltalk.send(self, "_addCompiledMethod_", [method]);
  1674. return self;},
  1675. args: ["aString", "anotherString"],
  1676. source: unescape('compile%3A%20aString%20category%3A%20anotherString%0A%09%7C%20method%20%7C%0A%09method%20%3A%3D%20Compiler%20new%20load%3A%20aString%20forClass%3A%20self.%0A%09method%20category%3A%20anotherString.%0A%09self%20addCompiledMethod%3A%20method'),
  1677. messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
  1678. referencedClasses: [smalltalk.nil]
  1679. }),
  1680. smalltalk.Behavior);
  1681. smalltalk.addClass('Class', smalltalk.Behavior, [], 'Kernel');
  1682. smalltalk.addMethod(
  1683. unescape('_category'),
  1684. smalltalk.method({
  1685. selector: unescape('category'),
  1686. category: 'accessing',
  1687. fn: function (){
  1688. var self=this;
  1689. return (($receiver = smalltalk.send(self, "_package", [])) == nil || $receiver == undefined) ? (function(){return "Unclassified";})() : (function(){return smalltalk.send(smalltalk.send(self, "_package", []), "_name", []);})();
  1690. return self;},
  1691. args: [],
  1692. source: unescape('category%0A%09%5Eself%20package%20ifNil%3A%20%5B%27Unclassified%27%5D%20ifNotNil%3A%20%5Bself%20package%20name%5D'),
  1693. messageSends: ["ifNil:ifNotNil:", "package", "name"],
  1694. referencedClasses: []
  1695. }),
  1696. smalltalk.Class);
  1697. smalltalk.addMethod(
  1698. unescape('_subclass_instanceVariableNames_'),
  1699. smalltalk.method({
  1700. selector: unescape('subclass%3AinstanceVariableNames%3A'),
  1701. category: 'class creation',
  1702. fn: function (aString, anotherString){
  1703. var self=this;
  1704. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
  1705. return self;},
  1706. args: ["aString", "anotherString"],
  1707. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%0A%09%22Kept%20for%20compatibility.%22%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%20package%3A%20nil'),
  1708. messageSends: ["subclass:instanceVariableNames:package:"],
  1709. referencedClasses: []
  1710. }),
  1711. smalltalk.Class);
  1712. smalltalk.addMethod(
  1713. unescape('_subclass_instanceVariableNames_category_'),
  1714. smalltalk.method({
  1715. selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
  1716. category: 'class creation',
  1717. fn: function (aString, aString2, aString3){
  1718. var self=this;
  1719. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  1720. return self;},
  1721. args: ["aString", "aString2", "aString3"],
  1722. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20category%3A%20aString3%0A%09%22Kept%20for%20compatibility.%22%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  1723. messageSends: ["subclass:instanceVariableNames:package:"],
  1724. referencedClasses: []
  1725. }),
  1726. smalltalk.Class);
  1727. smalltalk.addMethod(
  1728. unescape('_isClass'),
  1729. smalltalk.method({
  1730. selector: unescape('isClass'),
  1731. category: 'testing',
  1732. fn: function (){
  1733. var self=this;
  1734. return true;
  1735. return self;},
  1736. args: [],
  1737. source: unescape('isClass%0A%09%5Etrue'),
  1738. messageSends: [],
  1739. referencedClasses: []
  1740. }),
  1741. smalltalk.Class);
  1742. smalltalk.addMethod(
  1743. unescape('_printString'),
  1744. smalltalk.method({
  1745. selector: unescape('printString'),
  1746. category: 'printing',
  1747. fn: function (){
  1748. var self=this;
  1749. return smalltalk.send(self, "_name", []);
  1750. return self;},
  1751. args: [],
  1752. source: unescape('printString%0A%09%5Eself%20name'),
  1753. messageSends: ["name"],
  1754. referencedClasses: []
  1755. }),
  1756. smalltalk.Class);
  1757. smalltalk.addMethod(
  1758. unescape('_rename_'),
  1759. smalltalk.method({
  1760. selector: unescape('rename%3A'),
  1761. category: 'accessing',
  1762. fn: function (aString){
  1763. var self=this;
  1764. smalltalk[aString] = self;
  1765. delete smalltalk[self.className];
  1766. self.className = aString;
  1767. ;
  1768. return self;},
  1769. args: ["aString"],
  1770. 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'),
  1771. messageSends: [],
  1772. referencedClasses: []
  1773. }),
  1774. smalltalk.Class);
  1775. smalltalk.addMethod(
  1776. unescape('_subclass_instanceVariableNames_classVariableNames_poolDictionaries_category_'),
  1777. smalltalk.method({
  1778. selector: unescape('subclass%3AinstanceVariableNames%3AclassVariableNames%3ApoolDictionaries%3Acategory%3A'),
  1779. category: 'class creation',
  1780. fn: function (aString, aString2, classVars, pools, aString3){
  1781. var self=this;
  1782. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  1783. return self;},
  1784. args: ["aString", "aString2", "classVars", "pools", "aString3"],
  1785. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20classVariableNames%3A%20classVars%20poolDictionaries%3A%20pools%20category%3A%20aString3%0A%09%22Just%20ignore%20class%20variables%20and%20pools.%20Added%20for%20compatibility.%22%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  1786. messageSends: ["subclass:instanceVariableNames:package:"],
  1787. referencedClasses: []
  1788. }),
  1789. smalltalk.Class);
  1790. smalltalk.addMethod(
  1791. unescape('_package'),
  1792. smalltalk.method({
  1793. selector: unescape('package'),
  1794. category: 'accessing',
  1795. fn: function (){
  1796. var self=this;
  1797. return self.pkg;
  1798. return self;},
  1799. args: [],
  1800. source: unescape('package%0A%09%3Creturn%20self.pkg%3E'),
  1801. messageSends: [],
  1802. referencedClasses: []
  1803. }),
  1804. smalltalk.Class);
  1805. smalltalk.addMethod(
  1806. unescape('_package_'),
  1807. smalltalk.method({
  1808. selector: unescape('package%3A'),
  1809. category: 'accessing',
  1810. fn: function (aPackage){
  1811. var self=this;
  1812. self.pkg = aPackage;
  1813. return self;},
  1814. args: ["aPackage"],
  1815. source: unescape('package%3A%20aPackage%0A%09%3Cself.pkg%20%3D%20aPackage%3E'),
  1816. messageSends: [],
  1817. referencedClasses: []
  1818. }),
  1819. smalltalk.Class);
  1820. smalltalk.addMethod(
  1821. unescape('_subclass_instanceVariableNames_package_'),
  1822. smalltalk.method({
  1823. selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
  1824. category: 'class creation',
  1825. fn: function (aString, aString2, aString3){
  1826. var self=this;
  1827. return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
  1828. return self;},
  1829. args: ["aString", "aString2", "aString3"],
  1830. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3%0A%09%5EClassBuilder%20new%0A%09%20%20%20%20superclass%3A%20self%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  1831. messageSends: ["superclass:subclass:instanceVariableNames:package:", "new"],
  1832. referencedClasses: [smalltalk.nil]
  1833. }),
  1834. smalltalk.Class);
  1835. smalltalk.addClass('Metaclass', smalltalk.Behavior, [], 'Kernel');
  1836. smalltalk.addMethod(
  1837. unescape('_instanceClass'),
  1838. smalltalk.method({
  1839. selector: unescape('instanceClass'),
  1840. category: 'accessing',
  1841. fn: function (){
  1842. var self=this;
  1843. return self.instanceClass;
  1844. return self;},
  1845. args: [],
  1846. source: unescape('instanceClass%0A%09%3Creturn%20self.instanceClass%3E'),
  1847. messageSends: [],
  1848. referencedClasses: []
  1849. }),
  1850. smalltalk.Metaclass);
  1851. smalltalk.addMethod(
  1852. unescape('_instanceVariableNames_'),
  1853. smalltalk.method({
  1854. selector: unescape('instanceVariableNames%3A'),
  1855. category: 'accessing',
  1856. fn: function (aCollection){
  1857. var self=this;
  1858. smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_class_instanceVariableNames_", [self, aCollection]);
  1859. return self;},
  1860. args: ["aCollection"],
  1861. source: unescape('instanceVariableNames%3A%20aCollection%0A%09ClassBuilder%20new%0A%09%20%20%20%20class%3A%20self%20instanceVariableNames%3A%20aCollection'),
  1862. messageSends: ["class:instanceVariableNames:", "new"],
  1863. referencedClasses: [smalltalk.nil]
  1864. }),
  1865. smalltalk.Metaclass);
  1866. smalltalk.addMethod(
  1867. unescape('_isMetaclass'),
  1868. smalltalk.method({
  1869. selector: unescape('isMetaclass'),
  1870. category: 'testing',
  1871. fn: function (){
  1872. var self=this;
  1873. return true;
  1874. return self;},
  1875. args: [],
  1876. source: unescape('isMetaclass%0A%09%5Etrue'),
  1877. messageSends: [],
  1878. referencedClasses: []
  1879. }),
  1880. smalltalk.Metaclass);
  1881. smalltalk.addMethod(
  1882. unescape('_printString'),
  1883. smalltalk.method({
  1884. selector: unescape('printString'),
  1885. category: 'printing',
  1886. fn: function (){
  1887. var self=this;
  1888. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_instanceClass", []), "_name", []), "__comma", [" class"]);
  1889. return self;},
  1890. args: [],
  1891. source: unescape('printString%0A%09%5Eself%20instanceClass%20name%2C%20%27%20class%27'),
  1892. messageSends: [unescape("%2C"), "name", "instanceClass"],
  1893. referencedClasses: []
  1894. }),
  1895. smalltalk.Metaclass);
  1896. smalltalk.addClass('CompiledMethod', smalltalk.Object, [], 'Kernel');
  1897. smalltalk.addMethod(
  1898. unescape('_source'),
  1899. smalltalk.method({
  1900. selector: unescape('source'),
  1901. category: 'accessing',
  1902. fn: function (){
  1903. var self=this;
  1904. return (($receiver = smalltalk.send(self, "_basicAt_", ["source"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  1905. return self;},
  1906. args: [],
  1907. source: unescape('source%0A%09%5E%28self%20basicAt%3A%20%27source%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1908. messageSends: ["ifNil:", "basicAt:"],
  1909. referencedClasses: []
  1910. }),
  1911. smalltalk.CompiledMethod);
  1912. smalltalk.addMethod(
  1913. unescape('_source_'),
  1914. smalltalk.method({
  1915. selector: unescape('source%3A'),
  1916. category: 'accessing',
  1917. fn: function (aString){
  1918. var self=this;
  1919. smalltalk.send(self, "_basicAt_put_", ["source", aString]);
  1920. return self;},
  1921. args: ["aString"],
  1922. source: unescape('source%3A%20aString%0A%09self%20basicAt%3A%20%27source%27%20put%3A%20aString'),
  1923. messageSends: ["basicAt:put:"],
  1924. referencedClasses: []
  1925. }),
  1926. smalltalk.CompiledMethod);
  1927. smalltalk.addMethod(
  1928. unescape('_category'),
  1929. smalltalk.method({
  1930. selector: unescape('category'),
  1931. category: 'accessing',
  1932. fn: function (){
  1933. var self=this;
  1934. return (($receiver = smalltalk.send(self, "_basicAt_", ["category"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  1935. return self;},
  1936. args: [],
  1937. source: unescape('category%0A%09%5E%28self%20basicAt%3A%20%27category%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1938. messageSends: ["ifNil:", "basicAt:"],
  1939. referencedClasses: []
  1940. }),
  1941. smalltalk.CompiledMethod);
  1942. smalltalk.addMethod(
  1943. unescape('_category_'),
  1944. smalltalk.method({
  1945. selector: unescape('category%3A'),
  1946. category: 'accessing',
  1947. fn: function (aString){
  1948. var self=this;
  1949. smalltalk.send(self, "_basicAt_put_", ["category", aString]);
  1950. return self;},
  1951. args: ["aString"],
  1952. source: unescape('category%3A%20aString%0A%09self%20basicAt%3A%20%27category%27%20put%3A%20aString'),
  1953. messageSends: ["basicAt:put:"],
  1954. referencedClasses: []
  1955. }),
  1956. smalltalk.CompiledMethod);
  1957. smalltalk.addMethod(
  1958. unescape('_selector'),
  1959. smalltalk.method({
  1960. selector: unescape('selector'),
  1961. category: 'accessing',
  1962. fn: function (){
  1963. var self=this;
  1964. return smalltalk.send(self, "_basicAt_", ["selector"]);
  1965. return self;},
  1966. args: [],
  1967. source: unescape('selector%0A%09%5Eself%20basicAt%3A%20%27selector%27'),
  1968. messageSends: ["basicAt:"],
  1969. referencedClasses: []
  1970. }),
  1971. smalltalk.CompiledMethod);
  1972. smalltalk.addMethod(
  1973. unescape('_selector_'),
  1974. smalltalk.method({
  1975. selector: unescape('selector%3A'),
  1976. category: 'accessing',
  1977. fn: function (aString){
  1978. var self=this;
  1979. smalltalk.send(self, "_basicAt_put_", ["selector", aString]);
  1980. return self;},
  1981. args: ["aString"],
  1982. source: unescape('selector%3A%20aString%0A%09self%20basicAt%3A%20%27selector%27%20put%3A%20aString'),
  1983. messageSends: ["basicAt:put:"],
  1984. referencedClasses: []
  1985. }),
  1986. smalltalk.CompiledMethod);
  1987. smalltalk.addMethod(
  1988. unescape('_fn'),
  1989. smalltalk.method({
  1990. selector: unescape('fn'),
  1991. category: 'accessing',
  1992. fn: function (){
  1993. var self=this;
  1994. return smalltalk.send(self, "_basicAt_", ["fn"]);
  1995. return self;},
  1996. args: [],
  1997. source: unescape('fn%0A%09%5Eself%20basicAt%3A%20%27fn%27'),
  1998. messageSends: ["basicAt:"],
  1999. referencedClasses: []
  2000. }),
  2001. smalltalk.CompiledMethod);
  2002. smalltalk.addMethod(
  2003. unescape('_fn_'),
  2004. smalltalk.method({
  2005. selector: unescape('fn%3A'),
  2006. category: 'accessing',
  2007. fn: function (aBlock){
  2008. var self=this;
  2009. smalltalk.send(self, "_basicAt_put_", ["fn", aBlock]);
  2010. return self;},
  2011. args: ["aBlock"],
  2012. source: unescape('fn%3A%20aBlock%0A%09self%20basicAt%3A%20%27fn%27%20put%3A%20aBlock'),
  2013. messageSends: ["basicAt:put:"],
  2014. referencedClasses: []
  2015. }),
  2016. smalltalk.CompiledMethod);
  2017. smalltalk.addMethod(
  2018. unescape('_messageSends'),
  2019. smalltalk.method({
  2020. selector: unescape('messageSends'),
  2021. category: 'accessing',
  2022. fn: function (){
  2023. var self=this;
  2024. return smalltalk.send(self, "_basicAt_", ["messageSends"]);
  2025. return self;},
  2026. args: [],
  2027. source: unescape('messageSends%0A%09%5Eself%20basicAt%3A%20%27messageSends%27'),
  2028. messageSends: ["basicAt:"],
  2029. referencedClasses: []
  2030. }),
  2031. smalltalk.CompiledMethod);
  2032. smalltalk.addMethod(
  2033. unescape('_methodClass'),
  2034. smalltalk.method({
  2035. selector: unescape('methodClass'),
  2036. category: 'accessing',
  2037. fn: function (){
  2038. var self=this;
  2039. return smalltalk.send(self, "_basicAt_", ["methodClass"]);
  2040. return self;},
  2041. args: [],
  2042. source: unescape('methodClass%0A%09%5Eself%20basicAt%3A%20%27methodClass%27'),
  2043. messageSends: ["basicAt:"],
  2044. referencedClasses: []
  2045. }),
  2046. smalltalk.CompiledMethod);
  2047. smalltalk.addMethod(
  2048. unescape('_referencedClasses'),
  2049. smalltalk.method({
  2050. selector: unescape('referencedClasses'),
  2051. category: 'accessing',
  2052. fn: function (){
  2053. var self=this;
  2054. return smalltalk.send(self, "_basicAt_", ["referencedClasses"]);
  2055. return self;},
  2056. args: [],
  2057. source: unescape('referencedClasses%0A%09%5Eself%20basicAt%3A%20%27referencedClasses%27'),
  2058. messageSends: ["basicAt:"],
  2059. referencedClasses: []
  2060. }),
  2061. smalltalk.CompiledMethod);
  2062. smalltalk.addMethod(
  2063. unescape('_arguments'),
  2064. smalltalk.method({
  2065. selector: unescape('arguments'),
  2066. category: 'accessing',
  2067. fn: function (){
  2068. var self=this;
  2069. return self.args || [];
  2070. return self;},
  2071. args: [],
  2072. source: unescape('arguments%0A%09%3Creturn%20self.args%20%7C%7C%20%5B%5D%3E'),
  2073. messageSends: [],
  2074. referencedClasses: []
  2075. }),
  2076. smalltalk.CompiledMethod);
  2077. smalltalk.addClass('Number', smalltalk.Object, [], 'Kernel');
  2078. smalltalk.addMethod(
  2079. unescape('__eq'),
  2080. smalltalk.method({
  2081. selector: unescape('%3D'),
  2082. category: 'comparing',
  2083. fn: function (aNumber){
  2084. var self=this;
  2085. try{((($receiver = smalltalk.send(smalltalk.send(aNumber, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  2086. return Number(self) == aNumber;
  2087. return self;
  2088. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  2089. args: ["aNumber"],
  2090. source: unescape('%3D%20aNumber%0A%09aNumber%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%20%0A%09%3Creturn%20Number%28self%29%20%3D%3D%20aNumber%3E'),
  2091. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  2092. referencedClasses: []
  2093. }),
  2094. smalltalk.Number);
  2095. smalltalk.addMethod(
  2096. unescape('__gt'),
  2097. smalltalk.method({
  2098. selector: unescape('%3E'),
  2099. category: 'comparing',
  2100. fn: function (aNumber){
  2101. var self=this;
  2102. return self > aNumber;
  2103. return self;},
  2104. args: ["aNumber"],
  2105. source: unescape('%3E%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3E%3E%20aNumber%3E'),
  2106. messageSends: [],
  2107. referencedClasses: []
  2108. }),
  2109. smalltalk.Number);
  2110. smalltalk.addMethod(
  2111. unescape('__lt'),
  2112. smalltalk.method({
  2113. selector: unescape('%3C'),
  2114. category: 'comparing',
  2115. fn: function (aNumber){
  2116. var self=this;
  2117. return self < aNumber;
  2118. return self;},
  2119. args: ["aNumber"],
  2120. source: unescape('%3C%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3C%20aNumber%3E'),
  2121. messageSends: [],
  2122. referencedClasses: []
  2123. }),
  2124. smalltalk.Number);
  2125. smalltalk.addMethod(
  2126. unescape('__gt_eq'),
  2127. smalltalk.method({
  2128. selector: unescape('%3E%3D'),
  2129. category: 'comparing',
  2130. fn: function (aNumber){
  2131. var self=this;
  2132. return self >= aNumber;
  2133. return self;},
  2134. args: ["aNumber"],
  2135. source: unescape('%3E%3D%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3E%3E%3D%20aNumber%3E'),
  2136. messageSends: [],
  2137. referencedClasses: []
  2138. }),
  2139. smalltalk.Number);
  2140. smalltalk.addMethod(
  2141. unescape('__lt_eq'),
  2142. smalltalk.method({
  2143. selector: unescape('%3C%3D'),
  2144. category: 'comparing',
  2145. fn: function (aNumber){
  2146. var self=this;
  2147. return self <= aNumber;
  2148. return self;},
  2149. args: ["aNumber"],
  2150. source: unescape('%3C%3D%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3C%3D%20aNumber%3E'),
  2151. messageSends: [],
  2152. referencedClasses: []
  2153. }),
  2154. smalltalk.Number);
  2155. smalltalk.addMethod(
  2156. unescape('__plus'),
  2157. smalltalk.method({
  2158. selector: unescape('+'),
  2159. category: 'arithmetic',
  2160. fn: function (aNumber){
  2161. var self=this;
  2162. return self + aNumber;
  2163. return self;},
  2164. args: ["aNumber"],
  2165. source: unescape('+%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20+%20aNumber%3E'),
  2166. messageSends: [],
  2167. referencedClasses: []
  2168. }),
  2169. smalltalk.Number);
  2170. smalltalk.addMethod(
  2171. unescape('__minus'),
  2172. smalltalk.method({
  2173. selector: unescape('-'),
  2174. category: 'arithmetic',
  2175. fn: function (aNumber){
  2176. var self=this;
  2177. return self - aNumber;
  2178. return self;},
  2179. args: ["aNumber"],
  2180. source: unescape('-%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20-%20aNumber%3E'),
  2181. messageSends: [],
  2182. referencedClasses: []
  2183. }),
  2184. smalltalk.Number);
  2185. smalltalk.addMethod(
  2186. unescape('__star'),
  2187. smalltalk.method({
  2188. selector: unescape('*'),
  2189. category: 'arithmetic',
  2190. fn: function (aNumber){
  2191. var self=this;
  2192. return self * aNumber;
  2193. return self;},
  2194. args: ["aNumber"],
  2195. source: unescape('*%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20*%20aNumber%3E'),
  2196. messageSends: [],
  2197. referencedClasses: []
  2198. }),
  2199. smalltalk.Number);
  2200. smalltalk.addMethod(
  2201. unescape('__slash'),
  2202. smalltalk.method({
  2203. selector: unescape('/'),
  2204. category: 'arithmetic',
  2205. fn: function (aNumber){
  2206. var self=this;
  2207. return self / aNumber;
  2208. return self;},
  2209. args: ["aNumber"],
  2210. source: unescape('/%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20/%20aNumber%3E'),
  2211. messageSends: [],
  2212. referencedClasses: []
  2213. }),
  2214. smalltalk.Number);
  2215. smalltalk.addMethod(
  2216. unescape('_max_'),
  2217. smalltalk.method({
  2218. selector: unescape('max%3A'),
  2219. category: 'arithmetic',
  2220. fn: function (aNumber){
  2221. var self=this;
  2222. return Math.max(self, aNumber);;
  2223. return self;},
  2224. args: ["aNumber"],
  2225. source: unescape('max%3A%20aNumber%0A%09%3Creturn%20Math.max%28self%2C%20aNumber%29%3B%3E'),
  2226. messageSends: [],
  2227. referencedClasses: []
  2228. }),
  2229. smalltalk.Number);
  2230. smalltalk.addMethod(
  2231. unescape('_min_'),
  2232. smalltalk.method({
  2233. selector: unescape('min%3A'),
  2234. category: 'arithmetic',
  2235. fn: function (aNumber){
  2236. var self=this;
  2237. return Math.min(self, aNumber);;
  2238. return self;},
  2239. args: ["aNumber"],
  2240. source: unescape('min%3A%20aNumber%0A%09%3Creturn%20Math.min%28self%2C%20aNumber%29%3B%3E'),
  2241. messageSends: [],
  2242. referencedClasses: []
  2243. }),
  2244. smalltalk.Number);
  2245. smalltalk.addMethod(
  2246. unescape('_rounded'),
  2247. smalltalk.method({
  2248. selector: unescape('rounded'),
  2249. category: 'converting',
  2250. fn: function (){
  2251. var self=this;
  2252. return Math.round(self);;
  2253. return self;},
  2254. args: [],
  2255. source: unescape('rounded%0A%09%3Creturn%20Math.round%28self%29%3B%3E'),
  2256. messageSends: [],
  2257. referencedClasses: []
  2258. }),
  2259. smalltalk.Number);
  2260. smalltalk.addMethod(
  2261. unescape('_truncated'),
  2262. smalltalk.method({
  2263. selector: unescape('truncated'),
  2264. category: 'converting',
  2265. fn: function (){
  2266. var self=this;
  2267. var result=nil;
  2268. ((($receiver = self >= (0)).klass === smalltalk.Boolean) ? ($receiver ? (function(){return result = Math.floor(self);;})() : (function(){return result = (Math.floor(self * (-1)) * (-1));;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return result = Math.floor(self);;}), (function(){return result = (Math.floor(self * (-1)) * (-1));;})]));
  2269. return result;
  2270. return self;},
  2271. args: [],
  2272. source: unescape('truncated%0A%7Cresult%7C%0A%0A%20%20%20%20self%20%3E%3D%200%20%0A%20%20%20%20%20%20%20%20ifTrue%3A%20%5B%3Cresult%20%3D%20Math.floor%28self%29%3B%3E%5D%0A%20%20%20%20%20%20%20%20ifFalse%3A%20%5B%3Cresult%20%3D%20%28Math.floor%28self%20*%20%28-1%29%29%20*%20%28-1%29%29%3B%3E%5D.%0A%0A%20%20%20%20%5E%20result'),
  2273. messageSends: ["ifTrue:ifFalse:", unescape("%3E%3D")],
  2274. referencedClasses: []
  2275. }),
  2276. smalltalk.Number);
  2277. smalltalk.addMethod(
  2278. unescape('_to_'),
  2279. smalltalk.method({
  2280. selector: unescape('to%3A'),
  2281. category: 'converting',
  2282. fn: function (aNumber){
  2283. var self=this;
  2284. var array=nil;
  2285. var first=nil;
  2286. var last=nil;
  2287. var count=nil;
  2288. first=smalltalk.send(self, "_truncated", []);
  2289. last=((($receiver = smalltalk.send(aNumber, "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));
  2290. count=(1);
  2291. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2292. smalltalk.send(((($receiver = last).klass === smalltalk.Number) ? $receiver -first : smalltalk.send($receiver, "__minus", [first])), "_timesRepeat_", [(function(){smalltalk.send(array, "_at_put_", [count, first]);count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return first=((($receiver = first).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})]);
  2293. return array;
  2294. return self;},
  2295. args: ["aNumber"],
  2296. source: unescape('to%3A%20aNumber%0A%09%7C%20array%20first%20last%20count%20%7C%0A%09first%20%3A%3D%20self%20truncated.%0A%09last%20%3A%3D%20aNumber%20truncated%20+%201.%0A%09count%20%3A%3D%201.%0A%09array%20%3A%3D%20Array%20new.%0A%09%28last%20-%20first%29%20timesRepeat%3A%20%5B%0A%09%20%20%20%20array%20at%3A%20count%20put%3A%20first.%0A%09%20%20%20%20count%20%3A%3D%20count%20+%201.%0A%09%20%20%20%20first%20%3A%3D%20first%20+%201%5D.%0A%09%5Earray'),
  2297. messageSends: ["truncated", unescape("+"), "new", "timesRepeat:", unescape("-"), "at:put:"],
  2298. referencedClasses: [smalltalk.Array]
  2299. }),
  2300. smalltalk.Number);
  2301. smalltalk.addMethod(
  2302. unescape('_timesRepeat_'),
  2303. smalltalk.method({
  2304. selector: unescape('timesRepeat%3A'),
  2305. category: 'enumerating',
  2306. fn: function (aBlock){
  2307. var self=this;
  2308. var integer=nil;
  2309. var count=nil;
  2310. integer=smalltalk.send(self, "_truncated", []);
  2311. count=(1);
  2312. (function(){while(!(function(){return ((($receiver = count).klass === smalltalk.Number) ? $receiver >self : smalltalk.send($receiver, "__gt", [self]));})()) {(function(){smalltalk.send(aBlock, "_value", []);return count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})()}})();
  2313. return self;},
  2314. args: ["aBlock"],
  2315. 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'),
  2316. messageSends: ["truncated", "whileFalse:", unescape("%3E"), "value", unescape("+")],
  2317. referencedClasses: []
  2318. }),
  2319. smalltalk.Number);
  2320. smalltalk.addMethod(
  2321. unescape('_to_do_'),
  2322. smalltalk.method({
  2323. selector: unescape('to%3Ado%3A'),
  2324. category: 'enumerating',
  2325. fn: function (stop, aBlock){
  2326. var self=this;
  2327. var nextValue=nil;
  2328. nextValue=self;
  2329. (function(){while((function(){return ((($receiver = nextValue).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [nextValue]);return nextValue=((($receiver = nextValue).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})()}})();
  2330. return self;},
  2331. args: ["stop", "aBlock"],
  2332. source: unescape('to%3A%20stop%20do%3A%20aBlock%0A%09%22Evaluate%20aBlock%20for%20each%20number%20from%20self%20to%20aNumber.%22%0A%09%7C%20nextValue%20%7C%0A%09nextValue%20%3A%3D%20self.%0A%09%5BnextValue%20%3C%3D%20stop%5D%0A%09%09whileTrue%3A%20%0A%09%09%09%5BaBlock%20value%3A%20nextValue.%0A%09%09%09nextValue%20%3A%3D%20nextValue%20+%201%5D'),
  2333. messageSends: ["whileTrue:", unescape("%3C%3D"), "value:", unescape("+")],
  2334. referencedClasses: []
  2335. }),
  2336. smalltalk.Number);
  2337. smalltalk.addMethod(
  2338. unescape('_asString'),
  2339. smalltalk.method({
  2340. selector: unescape('asString'),
  2341. category: 'converting',
  2342. fn: function (){
  2343. var self=this;
  2344. return smalltalk.send(self, "_printString", []);
  2345. return self;},
  2346. args: [],
  2347. source: unescape('asString%0A%09%5Eself%20printString'),
  2348. messageSends: ["printString"],
  2349. referencedClasses: []
  2350. }),
  2351. smalltalk.Number);
  2352. smalltalk.addMethod(
  2353. unescape('_asJavascript'),
  2354. smalltalk.method({
  2355. selector: unescape('asJavascript'),
  2356. category: 'converting',
  2357. fn: function (){
  2358. var self=this;
  2359. return smalltalk.send(smalltalk.send(unescape("%28"), "__comma", [smalltalk.send(self, "_printString", [])]), "__comma", [unescape("%29")]);
  2360. return self;},
  2361. args: [],
  2362. source: unescape('asJavascript%0A%09%5E%27%28%27%2C%20self%20printString%2C%20%27%29%27'),
  2363. messageSends: [unescape("%2C"), "printString"],
  2364. referencedClasses: []
  2365. }),
  2366. smalltalk.Number);
  2367. smalltalk.addMethod(
  2368. unescape('_printString'),
  2369. smalltalk.method({
  2370. selector: unescape('printString'),
  2371. category: 'printing',
  2372. fn: function (){
  2373. var self=this;
  2374. return String(self);
  2375. return self;},
  2376. args: [],
  2377. source: unescape('printString%0A%09%3Creturn%20String%28self%29%3E'),
  2378. messageSends: [],
  2379. referencedClasses: []
  2380. }),
  2381. smalltalk.Number);
  2382. smalltalk.addMethod(
  2383. unescape('_isNumber'),
  2384. smalltalk.method({
  2385. selector: unescape('isNumber'),
  2386. category: 'testing',
  2387. fn: function (){
  2388. var self=this;
  2389. return true;
  2390. return self;},
  2391. args: [],
  2392. source: unescape('isNumber%0A%09%5Etrue'),
  2393. messageSends: [],
  2394. referencedClasses: []
  2395. }),
  2396. smalltalk.Number);
  2397. smalltalk.addMethod(
  2398. unescape('_atRandom'),
  2399. smalltalk.method({
  2400. selector: unescape('atRandom'),
  2401. category: 'converting',
  2402. fn: function (){
  2403. var self=this;
  2404. return ((($receiver = smalltalk.send(((($receiver = smalltalk.send(smalltalk.send((smalltalk.Random || Random), "_new", []), "_next", [])).klass === smalltalk.Number) ? $receiver *self : smalltalk.send($receiver, "__star", [self])), "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));
  2405. return self;},
  2406. args: [],
  2407. source: unescape('atRandom%0A%20%20%20%20%5E%28Random%20new%20next%20*%20self%29%20truncated%20+%201'),
  2408. messageSends: [unescape("+"), "truncated", unescape("*"), "next", "new"],
  2409. referencedClasses: [smalltalk.nil]
  2410. }),
  2411. smalltalk.Number);
  2412. smalltalk.addMethod(
  2413. unescape('__at'),
  2414. smalltalk.method({
  2415. selector: unescape('@'),
  2416. category: 'converting',
  2417. fn: function (aNumber){
  2418. var self=this;
  2419. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, aNumber]);
  2420. return self;},
  2421. args: ["aNumber"],
  2422. source: unescape('@%20aNumber%0A%09%5EPoint%20x%3A%20self%20y%3A%20aNumber'),
  2423. messageSends: ["x:y:"],
  2424. referencedClasses: [smalltalk.nil]
  2425. }),
  2426. smalltalk.Number);
  2427. smalltalk.addMethod(
  2428. unescape('_asPoint'),
  2429. smalltalk.method({
  2430. selector: unescape('asPoint'),
  2431. category: 'converting',
  2432. fn: function (){
  2433. var self=this;
  2434. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, self]);
  2435. return self;},
  2436. args: [],
  2437. source: unescape('asPoint%0A%09%5EPoint%20x%3A%20self%20y%3A%20self'),
  2438. messageSends: ["x:y:"],
  2439. referencedClasses: [smalltalk.nil]
  2440. }),
  2441. smalltalk.Number);
  2442. smalltalk.addMethod(
  2443. unescape('_clearInterval'),
  2444. smalltalk.method({
  2445. selector: unescape('clearInterval'),
  2446. category: 'timeouts/intervals',
  2447. fn: function (){
  2448. var self=this;
  2449. clearInterval(Number(self));
  2450. return self;},
  2451. args: [],
  2452. source: unescape('clearInterval%0A%09%3CclearInterval%28Number%28self%29%29%3E'),
  2453. messageSends: [],
  2454. referencedClasses: []
  2455. }),
  2456. smalltalk.Number);
  2457. smalltalk.addMethod(
  2458. unescape('_asJSONObject'),
  2459. smalltalk.method({
  2460. selector: unescape('asJSONObject'),
  2461. category: 'converting',
  2462. fn: function (){
  2463. var self=this;
  2464. return self;
  2465. return self;},
  2466. args: [],
  2467. source: unescape('asJSONObject%0A%09%5Eself'),
  2468. messageSends: [],
  2469. referencedClasses: []
  2470. }),
  2471. smalltalk.Number);
  2472. smalltalk.addMethod(
  2473. unescape('_clearTimeout'),
  2474. smalltalk.method({
  2475. selector: unescape('clearTimeout'),
  2476. category: 'timeouts/intervals',
  2477. fn: function (){
  2478. var self=this;
  2479. clearTimeout(Number(self));
  2480. return self;},
  2481. args: [],
  2482. source: unescape('clearTimeout%0A%09%3CclearTimeout%28Number%28self%29%29%3E'),
  2483. messageSends: [],
  2484. referencedClasses: []
  2485. }),
  2486. smalltalk.Number);
  2487. smalltalk.addMethod(
  2488. unescape('_even'),
  2489. smalltalk.method({
  2490. selector: unescape('even'),
  2491. category: 'testing',
  2492. fn: function (){
  2493. var self=this;
  2494. return smalltalk.send((0), "__eq", [smalltalk.send(self, "_\\\\", [(2)])]);
  2495. return self;},
  2496. args: [],
  2497. source: unescape('even%0A%09%5E%200%20%3D%20%28self%20%5C%5C%202%29'),
  2498. messageSends: [unescape("%3D"), unescape("%5C%5C%5C%5C")],
  2499. referencedClasses: []
  2500. }),
  2501. smalltalk.Number);
  2502. smalltalk.addMethod(
  2503. unescape('_odd'),
  2504. smalltalk.method({
  2505. selector: unescape('odd'),
  2506. category: 'testing',
  2507. fn: function (){
  2508. var self=this;
  2509. return smalltalk.send(smalltalk.send(self, "_even", []), "_not", []);
  2510. return self;},
  2511. args: [],
  2512. source: unescape('odd%0A%09%5E%20self%20even%20not'),
  2513. messageSends: ["not", "even"],
  2514. referencedClasses: []
  2515. }),
  2516. smalltalk.Number);
  2517. smalltalk.addMethod(
  2518. unescape('_negated'),
  2519. smalltalk.method({
  2520. selector: unescape('negated'),
  2521. category: 'arithmetic',
  2522. fn: function (){
  2523. var self=this;
  2524. return (0) - self;
  2525. return self;},
  2526. args: [],
  2527. source: unescape('negated%0A%09%5E0%20-%20self'),
  2528. messageSends: [unescape("-")],
  2529. referencedClasses: []
  2530. }),
  2531. smalltalk.Number);
  2532. smalltalk.addMethod(
  2533. unescape('__eq_eq'),
  2534. smalltalk.method({
  2535. selector: unescape('%3D%3D'),
  2536. category: 'comparing',
  2537. fn: function (aNumber){
  2538. var self=this;
  2539. try{((($receiver = smalltalk.send(smalltalk.send(aNumber, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})]));
  2540. return Number(self) === Number(aNumber);
  2541. return self;
  2542. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  2543. args: ["aNumber"],
  2544. source: unescape('%3D%3D%20aNumber%0A%09aNumber%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%20%0A%09%3Creturn%20Number%28self%29%20%3D%3D%3D%20Number%28aNumber%29%3E'),
  2545. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  2546. referencedClasses: []
  2547. }),
  2548. smalltalk.Number);
  2549. smalltalk.addMethod(
  2550. unescape('_printShowingDecimalPlaces_'),
  2551. smalltalk.method({
  2552. selector: unescape('printShowingDecimalPlaces%3A'),
  2553. category: 'printing',
  2554. fn: function (placesDesired){
  2555. var self=this;
  2556. return self.toFixed(placesDesired);
  2557. return self;},
  2558. args: ["placesDesired"],
  2559. source: unescape('printShowingDecimalPlaces%3A%20placesDesired%0A%09%3Creturn%20self.toFixed%28placesDesired%29%3E'),
  2560. messageSends: [],
  2561. referencedClasses: []
  2562. }),
  2563. smalltalk.Number);
  2564. smalltalk.addMethod(
  2565. unescape('_%5C%5C'),
  2566. smalltalk.method({
  2567. selector: unescape('%5C%5C'),
  2568. category: 'arithmetic',
  2569. fn: function (aNumber){
  2570. var self=this;
  2571. return self % aNumber;
  2572. return self;},
  2573. args: ["aNumber"],
  2574. source: unescape('%5C%5C%20aNumber%0A%09%3Creturn%20self%20%25%20aNumber%3E'),
  2575. messageSends: [],
  2576. referencedClasses: []
  2577. }),
  2578. smalltalk.Number);
  2579. smalltalk.addMethod(
  2580. unescape('_to_by_'),
  2581. smalltalk.method({
  2582. selector: unescape('to%3Aby%3A'),
  2583. category: 'converting',
  2584. fn: function (stop, step){
  2585. var self=this;
  2586. var array=nil;
  2587. var value=nil;
  2588. var pos=nil;
  2589. value=self;
  2590. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2591. pos=(1);
  2592. ((($receiver = smalltalk.send(step, "__eq", [(0)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})]));
  2593. ((($receiver = ((($receiver = step).klass === smalltalk.Number) ? $receiver <(0) : smalltalk.send($receiver, "__lt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})() : (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();}), (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(array, "_at_put_", [pos, value]);pos=((($receiver = pos).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})]));
  2594. return array;
  2595. return self;},
  2596. args: ["stop", "step"],
  2597. source: unescape('to%3A%20stop%20by%3A%20step%0A%09%7C%20array%20value%20pos%20%7C%0A%09value%20%3A%3D%20self.%0A%09array%20%3A%3D%20Array%20new.%0A%09pos%20%3A%3D%201.%0A%09step%20%3D%200%20ifTrue%3A%20%5Bself%20error%3A%20%27step%20must%20be%20non-zero%27%5D.%0A%09step%20%3C%200%0A%09%09ifTrue%3A%20%5B%5B%20value%20%3E%3D%20stop%20%5D%20whileTrue%3A%20%5B%0A%09%20%20%20%20%09%09%09array%20at%3A%20pos%20put%3A%20value.%0A%09%20%20%20%20%09%09%09pos%20%3A%3D%20pos%20+%201.%0A%09%20%20%20%20%09%09%09value%20%3A%3D%20value%20+%20step%5D%5D%0A%09%09ifFalse%3A%20%5B%5B%20value%20%3C%3D%20stop%20%5D%20whileTrue%3A%20%5B%0A%09%20%20%20%20%09%09%09array%20at%3A%20pos%20put%3A%20value.%0A%09%20%20%09%09%09pos%20%3A%3D%20pos%20+%201.%0A%09%20%20%20%20%09%09%09value%20%3A%3D%20value%20+%20step%5D%5D.%0A%09%5Earray'),
  2598. messageSends: ["new", "ifTrue:", unescape("%3D"), "error:", "ifTrue:ifFalse:", unescape("%3C"), "whileTrue:", unescape("%3E%3D"), "at:put:", unescape("+"), unescape("%3C%3D")],
  2599. referencedClasses: [smalltalk.Array]
  2600. }),
  2601. smalltalk.Number);
  2602. smalltalk.addMethod(
  2603. unescape('_to_by_do_'),
  2604. smalltalk.method({
  2605. selector: unescape('to%3Aby%3Ado%3A'),
  2606. category: 'converting',
  2607. fn: function (stop, step, aBlock){
  2608. var self=this;
  2609. var value=nil;
  2610. value=self;
  2611. ((($receiver = smalltalk.send(step, "__eq", [(0)])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [unescape("step%20must%20be%20non-zero")]);})]));
  2612. ((($receiver = ((($receiver = step).klass === smalltalk.Number) ? $receiver <(0) : smalltalk.send($receiver, "__lt", [(0)]))).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})() : (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver >=stop : smalltalk.send($receiver, "__gt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();}), (function(){return (function(){while((function(){return ((($receiver = value).klass === smalltalk.Number) ? $receiver <=stop : smalltalk.send($receiver, "__lt_eq", [stop]));})()) {(function(){smalltalk.send(aBlock, "_value_", [value]);return value=((($receiver = value).klass === smalltalk.Number) ? $receiver +step : smalltalk.send($receiver, "__plus", [step]));})()}})();})]));
  2613. return self;},
  2614. args: ["stop", "step", "aBlock"],
  2615. source: unescape('to%3A%20stop%20by%3A%20step%20do%3A%20aBlock%0A%09%7C%20value%20%7C%0A%09value%20%3A%3D%20self.%0A%09step%20%3D%200%20ifTrue%3A%20%5Bself%20error%3A%20%27step%20must%20be%20non-zero%27%5D.%0A%09step%20%3C%200%0A%09%09ifTrue%3A%20%5B%5B%20value%20%3E%3D%20stop%20%5D%20whileTrue%3A%20%5B%0A%09%20%20%20%20%09%09%09aBlock%20value%3A%20value.%0A%09%20%20%20%20%09%09%09value%20%3A%3D%20value%20+%20step%5D%5D%0A%09%09ifFalse%3A%20%5B%5B%20value%20%3C%3D%20stop%20%5D%20whileTrue%3A%20%5B%0A%09%20%20%20%20%09%09%09aBlock%20value%3A%20value.%0A%09%20%20%20%20%09%09%09value%20%3A%3D%20value%20+%20step%5D%5D'),
  2616. messageSends: ["ifTrue:", unescape("%3D"), "error:", "ifTrue:ifFalse:", unescape("%3C"), "whileTrue:", unescape("%3E%3D"), "value:", unescape("+"), unescape("%3C%3D")],
  2617. referencedClasses: []
  2618. }),
  2619. smalltalk.Number);
  2620. smalltalk.addMethod(
  2621. unescape('_deepCopy'),
  2622. smalltalk.method({
  2623. selector: unescape('deepCopy'),
  2624. category: 'copying',
  2625. fn: function (){
  2626. var self=this;
  2627. return smalltalk.send(self, "_copy", []);
  2628. return self;},
  2629. args: [],
  2630. source: unescape('deepCopy%0A%09%5Eself%20copy'),
  2631. messageSends: ["copy"],
  2632. referencedClasses: []
  2633. }),
  2634. smalltalk.Number);
  2635. smalltalk.addMethod(
  2636. unescape('_copy'),
  2637. smalltalk.method({
  2638. selector: unescape('copy'),
  2639. category: 'copying',
  2640. fn: function (){
  2641. var self=this;
  2642. return self;
  2643. return self;},
  2644. args: [],
  2645. source: unescape('copy%0A%09%5Eself'),
  2646. messageSends: [],
  2647. referencedClasses: []
  2648. }),
  2649. smalltalk.Number);
  2650. smalltalk.addMethod(
  2651. unescape('_pi'),
  2652. smalltalk.method({
  2653. selector: unescape('pi'),
  2654. category: 'instance creation',
  2655. fn: function (){
  2656. var self=this;
  2657. return Math.PI;
  2658. return self;},
  2659. args: [],
  2660. source: unescape('pi%0A%09%3Creturn%20Math.PI%3E'),
  2661. messageSends: [],
  2662. referencedClasses: []
  2663. }),
  2664. smalltalk.Number.klass);
  2665. smalltalk.addClass('BlockClosure', smalltalk.Object, [], 'Kernel');
  2666. smalltalk.addMethod(
  2667. unescape('_compiledSource'),
  2668. smalltalk.method({
  2669. selector: unescape('compiledSource'),
  2670. category: 'accessing',
  2671. fn: function (){
  2672. var self=this;
  2673. return self.toString();
  2674. return self;},
  2675. args: [],
  2676. source: unescape('compiledSource%0A%09%3Creturn%20self.toString%28%29%3E'),
  2677. messageSends: [],
  2678. referencedClasses: []
  2679. }),
  2680. smalltalk.BlockClosure);
  2681. smalltalk.addMethod(
  2682. unescape('_whileTrue_'),
  2683. smalltalk.method({
  2684. selector: unescape('whileTrue%3A'),
  2685. category: 'controlling',
  2686. fn: function (aBlock){
  2687. var self=this;
  2688. while(self()) {aBlock()};
  2689. return self;},
  2690. args: ["aBlock"],
  2691. source: unescape('whileTrue%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Cwhile%28self%28%29%29%20%7BaBlock%28%29%7D%3E'),
  2692. messageSends: [],
  2693. referencedClasses: []
  2694. }),
  2695. smalltalk.BlockClosure);
  2696. smalltalk.addMethod(
  2697. unescape('_whileFalse_'),
  2698. smalltalk.method({
  2699. selector: unescape('whileFalse%3A'),
  2700. category: 'controlling',
  2701. fn: function (aBlock){
  2702. var self=this;
  2703. while(!self()) {aBlock()};
  2704. return self;},
  2705. args: ["aBlock"],
  2706. source: unescape('whileFalse%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Cwhile%28%21self%28%29%29%20%7BaBlock%28%29%7D%3E'),
  2707. messageSends: [],
  2708. referencedClasses: []
  2709. }),
  2710. smalltalk.BlockClosure);
  2711. smalltalk.addMethod(
  2712. unescape('_value'),
  2713. smalltalk.method({
  2714. selector: unescape('value'),
  2715. category: 'evaluating',
  2716. fn: function (){
  2717. var self=this;
  2718. return self();;
  2719. return self;},
  2720. args: [],
  2721. source: unescape('value%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28%29%3B%3E'),
  2722. messageSends: [],
  2723. referencedClasses: []
  2724. }),
  2725. smalltalk.BlockClosure);
  2726. smalltalk.addMethod(
  2727. unescape('_value_'),
  2728. smalltalk.method({
  2729. selector: unescape('value%3A'),
  2730. category: 'evaluating',
  2731. fn: function (anArg){
  2732. var self=this;
  2733. return self(anArg);;
  2734. return self;},
  2735. args: ["anArg"],
  2736. source: unescape('value%3A%20anArg%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28anArg%29%3B%3E'),
  2737. messageSends: [],
  2738. referencedClasses: []
  2739. }),
  2740. smalltalk.BlockClosure);
  2741. smalltalk.addMethod(
  2742. unescape('_value_value_'),
  2743. smalltalk.method({
  2744. selector: unescape('value%3Avalue%3A'),
  2745. category: 'evaluating',
  2746. fn: function (firstArg, secondArg){
  2747. var self=this;
  2748. return self(firstArg, secondArg);;
  2749. return self;},
  2750. args: ["firstArg", "secondArg"],
  2751. source: unescape('value%3A%20firstArg%20value%3A%20secondArg%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28firstArg%2C%20secondArg%29%3B%3E'),
  2752. messageSends: [],
  2753. referencedClasses: []
  2754. }),
  2755. smalltalk.BlockClosure);
  2756. smalltalk.addMethod(
  2757. unescape('_value_value_value_'),
  2758. smalltalk.method({
  2759. selector: unescape('value%3Avalue%3Avalue%3A'),
  2760. category: 'evaluating',
  2761. fn: function (firstArg, secondArg, thirdArg){
  2762. var self=this;
  2763. return self(firstArg, secondArg, thirdArg);;
  2764. return self;},
  2765. args: ["firstArg", "secondArg", "thirdArg"],
  2766. source: unescape('value%3A%20firstArg%20value%3A%20secondArg%20value%3A%20thirdArg%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28firstArg%2C%20secondArg%2C%20thirdArg%29%3B%3E'),
  2767. messageSends: [],
  2768. referencedClasses: []
  2769. }),
  2770. smalltalk.BlockClosure);
  2771. smalltalk.addMethod(
  2772. unescape('_valueWithPossibleArguments_'),
  2773. smalltalk.method({
  2774. selector: unescape('valueWithPossibleArguments%3A'),
  2775. category: 'evaluating',
  2776. fn: function (aCollection){
  2777. var self=this;
  2778. return self.apply(null, aCollection);;
  2779. return self;},
  2780. args: ["aCollection"],
  2781. source: unescape('valueWithPossibleArguments%3A%20aCollection%0A%09%3Creturn%20self.apply%28null%2C%20aCollection%29%3B%3E'),
  2782. messageSends: [],
  2783. referencedClasses: []
  2784. }),
  2785. smalltalk.BlockClosure);
  2786. smalltalk.addMethod(
  2787. unescape('_on_do_'),
  2788. smalltalk.method({
  2789. selector: unescape('on%3Ado%3A'),
  2790. category: 'error handling',
  2791. fn: function (anErrorClass, aBlock){
  2792. var self=this;
  2793. smalltalk.send(self, "_try_catch_", [self, (function(error){return ((($receiver = smalltalk.send(error, "_isKindOf_", [anErrorClass])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(aBlock, "_value_", [error]);})() : (function(){return smalltalk.send(error, "_signal", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(aBlock, "_value_", [error]);}), (function(){return smalltalk.send(error, "_signal", []);})]));})]);
  2794. return self;},
  2795. args: ["anErrorClass", "aBlock"],
  2796. 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'),
  2797. messageSends: ["try:catch:", "ifTrue:ifFalse:", "isKindOf:", "value:", "signal"],
  2798. referencedClasses: []
  2799. }),
  2800. smalltalk.BlockClosure);
  2801. smalltalk.addMethod(
  2802. unescape('_valueWithTimeout_'),
  2803. smalltalk.method({
  2804. selector: unescape('valueWithTimeout%3A'),
  2805. category: 'timeout/interval',
  2806. fn: function (aNumber){
  2807. var self=this;
  2808. return setTimeout(self, aNumber);
  2809. return self;},
  2810. args: ["aNumber"],
  2811. source: unescape('valueWithTimeout%3A%20aNumber%0A%09%3Creturn%20setTimeout%28self%2C%20aNumber%29%3E'),
  2812. messageSends: [],
  2813. referencedClasses: []
  2814. }),
  2815. smalltalk.BlockClosure);
  2816. smalltalk.addMethod(
  2817. unescape('_valueWithInterval_'),
  2818. smalltalk.method({
  2819. selector: unescape('valueWithInterval%3A'),
  2820. category: 'timeout/interval',
  2821. fn: function (aNumber){
  2822. var self=this;
  2823. return setInterval(self, aNumber);
  2824. return self;},
  2825. args: ["aNumber"],
  2826. source: unescape('valueWithInterval%3A%20aNumber%0A%09%3Creturn%20setInterval%28self%2C%20aNumber%29%3E'),
  2827. messageSends: [],
  2828. referencedClasses: []
  2829. }),
  2830. smalltalk.BlockClosure);
  2831. smalltalk.addMethod(
  2832. unescape('_whileFalse'),
  2833. smalltalk.method({
  2834. selector: unescape('whileFalse'),
  2835. category: 'controlling',
  2836. fn: function (){
  2837. var self=this;
  2838. smalltalk.send(self, "_whileFalse_", [(function(){return nil;})]);
  2839. return self;},
  2840. args: [],
  2841. source: unescape('whileFalse%0A%09%22inlined%20in%20the%20Compiler%22%0A%09self%20whileFalse%3A%20%5B%5D'),
  2842. messageSends: ["whileFalse:"],
  2843. referencedClasses: []
  2844. }),
  2845. smalltalk.BlockClosure);
  2846. smalltalk.addMethod(
  2847. unescape('_whileTrue'),
  2848. smalltalk.method({
  2849. selector: unescape('whileTrue'),
  2850. category: 'controlling',
  2851. fn: function (){
  2852. var self=this;
  2853. smalltalk.send(self, "_whileTrue_", [(function(){return nil;})]);
  2854. return self;},
  2855. args: [],
  2856. source: unescape('whileTrue%0A%09%22inlined%20in%20the%20Compiler%22%0A%09self%20whileTrue%3A%20%5B%5D'),
  2857. messageSends: ["whileTrue:"],
  2858. referencedClasses: []
  2859. }),
  2860. smalltalk.BlockClosure);
  2861. smalltalk.addMethod(
  2862. unescape('_new'),
  2863. smalltalk.method({
  2864. selector: unescape('new'),
  2865. category: 'evaluating',
  2866. fn: function (){
  2867. var self=this;
  2868. return new self();
  2869. return self;},
  2870. args: [],
  2871. source: unescape('new%0A%09%22Use%20the%20receiver%20as%20a%20JS%20constructor.%20%0A%09*Do%20not*%20use%20this%20method%20to%20instanciate%20Smalltalk%20objects%21%22%0A%09%3Creturn%20new%20self%28%29%3E'),
  2872. messageSends: [],
  2873. referencedClasses: []
  2874. }),
  2875. smalltalk.BlockClosure);
  2876. smalltalk.addMethod(
  2877. unescape('_applyTo_arguments_'),
  2878. smalltalk.method({
  2879. selector: unescape('applyTo%3Aarguments%3A'),
  2880. category: 'evaluating',
  2881. fn: function (anObject, aCollection){
  2882. var self=this;
  2883. return self.apply(anObject, aCollection);
  2884. return self;},
  2885. args: ["anObject", "aCollection"],
  2886. source: unescape('applyTo%3A%20anObject%20arguments%3A%20aCollection%0A%09%3Creturn%20self.apply%28anObject%2C%20aCollection%29%3E'),
  2887. messageSends: [],
  2888. referencedClasses: []
  2889. }),
  2890. smalltalk.BlockClosure);
  2891. smalltalk.addMethod(
  2892. unescape('_timeToRun'),
  2893. smalltalk.method({
  2894. selector: unescape('timeToRun'),
  2895. category: 'evaluating',
  2896. fn: function (){
  2897. var self=this;
  2898. return smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [self]);
  2899. return self;},
  2900. args: [],
  2901. source: unescape('timeToRun%0A%09%22Answer%20the%20number%20of%20milliseconds%20taken%20to%20execute%20this%20block.%22%0A%0A%09%5E%20Date%20millisecondsToRun%3A%20self'),
  2902. messageSends: ["millisecondsToRun:"],
  2903. referencedClasses: [smalltalk.Date]
  2904. }),
  2905. smalltalk.BlockClosure);
  2906. smalltalk.addClass('Boolean', smalltalk.Object, [], 'Kernel');
  2907. smalltalk.addMethod(
  2908. unescape('__eq'),
  2909. smalltalk.method({
  2910. selector: unescape('%3D'),
  2911. category: 'comparing',
  2912. fn: function (aBoolean){
  2913. var self=this;
  2914. try{((($receiver = smalltalk.send(smalltalk.send(aBoolean, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  2915. return Boolean(self == true) == aBoolean;
  2916. return self;
  2917. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  2918. args: ["aBoolean"],
  2919. source: unescape('%3D%20aBoolean%0A%09aBoolean%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%3Creturn%20Boolean%28self%20%3D%3D%20true%29%20%3D%3D%20aBoolean%3E'),
  2920. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  2921. referencedClasses: []
  2922. }),
  2923. smalltalk.Boolean);
  2924. smalltalk.addMethod(
  2925. unescape('_shallowCopy'),
  2926. smalltalk.method({
  2927. selector: unescape('shallowCopy'),
  2928. category: 'copying',
  2929. fn: function (){
  2930. var self=this;
  2931. return self;
  2932. return self;},
  2933. args: [],
  2934. source: unescape('shallowCopy%0A%09%5Eself'),
  2935. messageSends: [],
  2936. referencedClasses: []
  2937. }),
  2938. smalltalk.Boolean);
  2939. smalltalk.addMethod(
  2940. unescape('_deepCopy'),
  2941. smalltalk.method({
  2942. selector: unescape('deepCopy'),
  2943. category: 'copying',
  2944. fn: function (){
  2945. var self=this;
  2946. return self;
  2947. return self;},
  2948. args: [],
  2949. source: unescape('deepCopy%0A%09%5Eself'),
  2950. messageSends: [],
  2951. referencedClasses: []
  2952. }),
  2953. smalltalk.Boolean);
  2954. smalltalk.addMethod(
  2955. unescape('_ifTrue_'),
  2956. smalltalk.method({
  2957. selector: unescape('ifTrue%3A'),
  2958. category: 'controlling',
  2959. fn: function (aBlock){
  2960. var self=this;
  2961. return smalltalk.send(self, "_ifTrue_ifFalse_", [aBlock, (function(){return nil;})]);
  2962. return self;},
  2963. args: ["aBlock"],
  2964. source: unescape('ifTrue%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20aBlock%20ifFalse%3A%20%5B%5D'),
  2965. messageSends: ["ifTrue:ifFalse:"],
  2966. referencedClasses: []
  2967. }),
  2968. smalltalk.Boolean);
  2969. smalltalk.addMethod(
  2970. unescape('_ifFalse_'),
  2971. smalltalk.method({
  2972. selector: unescape('ifFalse%3A'),
  2973. category: 'controlling',
  2974. fn: function (aBlock){
  2975. var self=this;
  2976. return smalltalk.send(self, "_ifTrue_ifFalse_", [(function(){return nil;}), aBlock]);
  2977. return self;},
  2978. args: ["aBlock"],
  2979. source: unescape('ifFalse%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20%5B%5D%20ifFalse%3A%20aBlock'),
  2980. messageSends: ["ifTrue:ifFalse:"],
  2981. referencedClasses: []
  2982. }),
  2983. smalltalk.Boolean);
  2984. smalltalk.addMethod(
  2985. unescape('_ifFalse_ifTrue_'),
  2986. smalltalk.method({
  2987. selector: unescape('ifFalse%3AifTrue%3A'),
  2988. category: 'controlling',
  2989. fn: function (aBlock, anotherBlock){
  2990. var self=this;
  2991. return smalltalk.send(self, "_ifTrue_ifFalse_", [anotherBlock, aBlock]);
  2992. return self;},
  2993. args: ["aBlock", "anotherBlock"],
  2994. source: unescape('ifFalse%3A%20aBlock%20ifTrue%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20anotherBlock%20ifFalse%3A%20aBlock'),
  2995. messageSends: ["ifTrue:ifFalse:"],
  2996. referencedClasses: []
  2997. }),
  2998. smalltalk.Boolean);
  2999. smalltalk.addMethod(
  3000. unescape('_ifTrue_ifFalse_'),
  3001. smalltalk.method({
  3002. selector: unescape('ifTrue%3AifFalse%3A'),
  3003. category: 'controlling',
  3004. fn: function (aBlock, anotherBlock){
  3005. var self=this;
  3006. if(self == true) {
  3007. return aBlock();
  3008. } else {
  3009. return anotherBlock();
  3010. }
  3011. ;
  3012. return self;},
  3013. args: ["aBlock", "anotherBlock"],
  3014. source: unescape('ifTrue%3A%20aBlock%20ifFalse%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3C%0A%09%20%20%20%20if%28self%20%3D%3D%20true%29%20%7B%0A%09%09return%20aBlock%28%29%3B%0A%09%20%20%20%20%7D%20else%20%7B%0A%09%09return%20anotherBlock%28%29%3B%0A%09%20%20%20%20%7D%0A%09%3E'),
  3015. messageSends: [],
  3016. referencedClasses: []
  3017. }),
  3018. smalltalk.Boolean);
  3019. smalltalk.addMethod(
  3020. unescape('_and_'),
  3021. smalltalk.method({
  3022. selector: unescape('and%3A'),
  3023. category: 'controlling',
  3024. fn: function (aBlock){
  3025. var self=this;
  3026. return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [aBlock, (function(){return false;})]);
  3027. return self;},
  3028. args: ["aBlock"],
  3029. 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'),
  3030. messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
  3031. referencedClasses: []
  3032. }),
  3033. smalltalk.Boolean);
  3034. smalltalk.addMethod(
  3035. unescape('_or_'),
  3036. smalltalk.method({
  3037. selector: unescape('or%3A'),
  3038. category: 'controlling',
  3039. fn: function (aBlock){
  3040. var self=this;
  3041. return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [(function(){return true;}), aBlock]);
  3042. return self;},
  3043. args: ["aBlock"],
  3044. 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'),
  3045. messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
  3046. referencedClasses: []
  3047. }),
  3048. smalltalk.Boolean);
  3049. smalltalk.addMethod(
  3050. unescape('_not'),
  3051. smalltalk.method({
  3052. selector: unescape('not'),
  3053. category: 'controlling',
  3054. fn: function (){
  3055. var self=this;
  3056. return smalltalk.send(self, "__eq", [false]);
  3057. return self;},
  3058. args: [],
  3059. source: unescape('not%0A%09%5Eself%20%3D%20false'),
  3060. messageSends: [unescape("%3D")],
  3061. referencedClasses: []
  3062. }),
  3063. smalltalk.Boolean);
  3064. smalltalk.addMethod(
  3065. unescape('_printString'),
  3066. smalltalk.method({
  3067. selector: unescape('printString'),
  3068. category: 'printing',
  3069. fn: function (){
  3070. var self=this;
  3071. return self.toString();
  3072. return self;},
  3073. args: [],
  3074. source: unescape('printString%0A%09%3Creturn%20self.toString%28%29%3E'),
  3075. messageSends: [],
  3076. referencedClasses: []
  3077. }),
  3078. smalltalk.Boolean);
  3079. smalltalk.addMethod(
  3080. unescape('_asJSONObject'),
  3081. smalltalk.method({
  3082. selector: unescape('asJSONObject'),
  3083. category: 'converting',
  3084. fn: function (){
  3085. var self=this;
  3086. return self;
  3087. return self;},
  3088. args: [],
  3089. source: unescape('asJSONObject%0A%09%5Eself'),
  3090. messageSends: [],
  3091. referencedClasses: []
  3092. }),
  3093. smalltalk.Boolean);
  3094. smalltalk.addMethod(
  3095. unescape('_%26'),
  3096. smalltalk.method({
  3097. selector: unescape('%26'),
  3098. category: 'controlling',
  3099. fn: function (aBoolean){
  3100. var self=this;
  3101. if(self == true) {
  3102. return aBoolean;
  3103. } else {
  3104. return false;
  3105. }
  3106. ;
  3107. return self;},
  3108. args: ["aBoolean"],
  3109. source: unescape('%26%20aBoolean%0A%09%3C%0A%09%20%20%20%20if%28self%20%3D%3D%20true%29%20%7B%0A%09%09return%20aBoolean%3B%0A%09%20%20%20%20%7D%20else%20%7B%0A%09%09return%20false%3B%0A%09%20%20%20%20%7D%0A%09%3E'),
  3110. messageSends: [],
  3111. referencedClasses: []
  3112. }),
  3113. smalltalk.Boolean);
  3114. smalltalk.addMethod(
  3115. unescape('_%7C'),
  3116. smalltalk.method({
  3117. selector: unescape('%7C'),
  3118. category: 'controlling',
  3119. fn: function (aBoolean){
  3120. var self=this;
  3121. if(self == true) {
  3122. return true;
  3123. } else {
  3124. return aBoolean;
  3125. }
  3126. ;
  3127. return self;},
  3128. args: ["aBoolean"],
  3129. source: unescape('%7C%20aBoolean%0A%09%3C%0A%09%20%20%20%20if%28self%20%3D%3D%20true%29%20%7B%0A%09%09return%20true%3B%0A%09%20%20%20%20%7D%20else%20%7B%0A%09%09return%20aBoolean%3B%0A%09%20%20%20%20%7D%0A%09%3E'),
  3130. messageSends: [],
  3131. referencedClasses: []
  3132. }),
  3133. smalltalk.Boolean);
  3134. smalltalk.addMethod(
  3135. unescape('__eq_eq'),
  3136. smalltalk.method({
  3137. selector: unescape('%3D%3D'),
  3138. category: 'comparing',
  3139. fn: function (aBoolean){
  3140. var self=this;
  3141. try{((($receiver = smalltalk.send(smalltalk.send(aBoolean, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})]));
  3142. return Boolean(self == true) === Boolean(aBoolean == true);
  3143. return self;
  3144. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  3145. args: ["aBoolean"],
  3146. source: unescape('%3D%3D%20aBoolean%0A%09aBoolean%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%3Creturn%20Boolean%28self%20%3D%3D%20true%29%20%3D%3D%3D%20Boolean%28aBoolean%20%3D%3D%20true%29%3E'),
  3147. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  3148. referencedClasses: []
  3149. }),
  3150. smalltalk.Boolean);
  3151. smalltalk.addClass('Date', smalltalk.Object, [], 'Kernel');
  3152. smalltalk.Date.comment=unescape('The%20Date%20class%20is%20used%20to%20work%20with%20dates%20and%20times.')
  3153. smalltalk.addMethod(
  3154. unescape('_year'),
  3155. smalltalk.method({
  3156. selector: unescape('year'),
  3157. category: 'accessing',
  3158. fn: function (){
  3159. var self=this;
  3160. return self.getFullYear();
  3161. return self;},
  3162. args: [],
  3163. source: unescape('year%0A%09%3Creturn%20self.getFullYear%28%29%3E'),
  3164. messageSends: [],
  3165. referencedClasses: []
  3166. }),
  3167. smalltalk.Date);
  3168. smalltalk.addMethod(
  3169. unescape('_month'),
  3170. smalltalk.method({
  3171. selector: unescape('month'),
  3172. category: 'accessing',
  3173. fn: function (){
  3174. var self=this;
  3175. return self.getMonth() + 1;
  3176. return self;},
  3177. args: [],
  3178. source: unescape('month%0A%09%3Creturn%20self.getMonth%28%29%20+%201%3E'),
  3179. messageSends: [],
  3180. referencedClasses: []
  3181. }),
  3182. smalltalk.Date);
  3183. smalltalk.addMethod(
  3184. unescape('_month_'),
  3185. smalltalk.method({
  3186. selector: unescape('month%3A'),
  3187. category: 'accessing',
  3188. fn: function (aNumber){
  3189. var self=this;
  3190. self.setMonth(aNumber - 1);
  3191. return self;},
  3192. args: ["aNumber"],
  3193. source: unescape('month%3A%20aNumber%0A%09%3Cself.setMonth%28aNumber%20-%201%29%3E'),
  3194. messageSends: [],
  3195. referencedClasses: []
  3196. }),
  3197. smalltalk.Date);
  3198. smalltalk.addMethod(
  3199. unescape('_day'),
  3200. smalltalk.method({
  3201. selector: unescape('day'),
  3202. category: 'accessing',
  3203. fn: function (){
  3204. var self=this;
  3205. return smalltalk.send(self, "_dayOfWeek", []);
  3206. return self;},
  3207. args: [],
  3208. source: unescape('day%0A%09%5Eself%20dayOfWeek'),
  3209. messageSends: ["dayOfWeek"],
  3210. referencedClasses: []
  3211. }),
  3212. smalltalk.Date);
  3213. smalltalk.addMethod(
  3214. unescape('_dayOfWeek'),
  3215. smalltalk.method({
  3216. selector: unescape('dayOfWeek'),
  3217. category: 'accessing',
  3218. fn: function (){
  3219. var self=this;
  3220. return self.getDay() + 1;
  3221. return self;},
  3222. args: [],
  3223. source: unescape('dayOfWeek%0A%09%3Creturn%20self.getDay%28%29%20+%201%3E'),
  3224. messageSends: [],
  3225. referencedClasses: []
  3226. }),
  3227. smalltalk.Date);
  3228. smalltalk.addMethod(
  3229. unescape('_dayOfWeek_'),
  3230. smalltalk.method({
  3231. selector: unescape('dayOfWeek%3A'),
  3232. category: 'accessing',
  3233. fn: function (aNumber){
  3234. var self=this;
  3235. return self.setDay(aNumber - 1);
  3236. return self;},
  3237. args: ["aNumber"],
  3238. source: unescape('dayOfWeek%3A%20aNumber%0A%09%3Creturn%20self.setDay%28aNumber%20-%201%29%3E'),
  3239. messageSends: [],
  3240. referencedClasses: []
  3241. }),
  3242. smalltalk.Date);
  3243. smalltalk.addMethod(
  3244. unescape('_day_'),
  3245. smalltalk.method({
  3246. selector: unescape('day%3A'),
  3247. category: 'accessing',
  3248. fn: function (aNumber){
  3249. var self=this;
  3250. smalltalk.send(self, "_day_", [aNumber]);
  3251. return self;},
  3252. args: ["aNumber"],
  3253. source: unescape('day%3A%20aNumber%0A%09self%20day%3A%20aNumber'),
  3254. messageSends: ["day:"],
  3255. referencedClasses: []
  3256. }),
  3257. smalltalk.Date);
  3258. smalltalk.addMethod(
  3259. unescape('_year_'),
  3260. smalltalk.method({
  3261. selector: unescape('year%3A'),
  3262. category: 'accessing',
  3263. fn: function (aNumber){
  3264. var self=this;
  3265. self.setFullYear(aNumber);
  3266. return self;},
  3267. args: ["aNumber"],
  3268. source: unescape('year%3A%20aNumber%0A%09%3Cself.setFullYear%28aNumber%29%3E'),
  3269. messageSends: [],
  3270. referencedClasses: []
  3271. }),
  3272. smalltalk.Date);
  3273. smalltalk.addMethod(
  3274. unescape('_dayOfMonth'),
  3275. smalltalk.method({
  3276. selector: unescape('dayOfMonth'),
  3277. category: 'accessing',
  3278. fn: function (){
  3279. var self=this;
  3280. return self.getDate();
  3281. return self;},
  3282. args: [],
  3283. source: unescape('dayOfMonth%0A%09%3Creturn%20self.getDate%28%29%3E'),
  3284. messageSends: [],
  3285. referencedClasses: []
  3286. }),
  3287. smalltalk.Date);
  3288. smalltalk.addMethod(
  3289. unescape('_dayOfMonth_'),
  3290. smalltalk.method({
  3291. selector: unescape('dayOfMonth%3A'),
  3292. category: 'accessing',
  3293. fn: function (aNumber){
  3294. var self=this;
  3295. self.setDate(aNumber);
  3296. return self;},
  3297. args: ["aNumber"],
  3298. source: unescape('dayOfMonth%3A%20aNumber%0A%09%3Cself.setDate%28aNumber%29%3E'),
  3299. messageSends: [],
  3300. referencedClasses: []
  3301. }),
  3302. smalltalk.Date);
  3303. smalltalk.addMethod(
  3304. unescape('_asString'),
  3305. smalltalk.method({
  3306. selector: unescape('asString'),
  3307. category: 'converting',
  3308. fn: function (){
  3309. var self=this;
  3310. return self.toString();
  3311. return self;},
  3312. args: [],
  3313. source: unescape('asString%0A%09%3Creturn%20self.toString%28%29%3E'),
  3314. messageSends: [],
  3315. referencedClasses: []
  3316. }),
  3317. smalltalk.Date);
  3318. smalltalk.addMethod(
  3319. unescape('_printString'),
  3320. smalltalk.method({
  3321. selector: unescape('printString'),
  3322. category: 'printing',
  3323. fn: function (){
  3324. var self=this;
  3325. return smalltalk.send(self, "_asString", []);
  3326. return self;},
  3327. args: [],
  3328. source: unescape('printString%0A%09%5Eself%20asString'),
  3329. messageSends: ["asString"],
  3330. referencedClasses: []
  3331. }),
  3332. smalltalk.Date);
  3333. smalltalk.addMethod(
  3334. unescape('_asMilliseconds'),
  3335. smalltalk.method({
  3336. selector: unescape('asMilliseconds'),
  3337. category: 'converting',
  3338. fn: function (){
  3339. var self=this;
  3340. return smalltalk.send(self, "_time", []);
  3341. return self;},
  3342. args: [],
  3343. source: unescape('asMilliseconds%0A%09%5Eself%20time'),
  3344. messageSends: ["time"],
  3345. referencedClasses: []
  3346. }),
  3347. smalltalk.Date);
  3348. smalltalk.addMethod(
  3349. unescape('_time'),
  3350. smalltalk.method({
  3351. selector: unescape('time'),
  3352. category: 'accessing',
  3353. fn: function (){
  3354. var self=this;
  3355. return self.getTime();
  3356. return self;},
  3357. args: [],
  3358. source: unescape('time%0A%09%3Creturn%20self.getTime%28%29%3E'),
  3359. messageSends: [],
  3360. referencedClasses: []
  3361. }),
  3362. smalltalk.Date);
  3363. smalltalk.addMethod(
  3364. unescape('_time_'),
  3365. smalltalk.method({
  3366. selector: unescape('time%3A'),
  3367. category: 'accessing',
  3368. fn: function (aNumber){
  3369. var self=this;
  3370. self.setTime(aNumber);
  3371. return self;},
  3372. args: ["aNumber"],
  3373. source: unescape('time%3A%20aNumber%0A%09%3Cself.setTime%28aNumber%29%3E'),
  3374. messageSends: [],
  3375. referencedClasses: []
  3376. }),
  3377. smalltalk.Date);
  3378. smalltalk.addMethod(
  3379. unescape('_asDateString'),
  3380. smalltalk.method({
  3381. selector: unescape('asDateString'),
  3382. category: 'converting',
  3383. fn: function (){
  3384. var self=this;
  3385. return self.toDateString();
  3386. return self;},
  3387. args: [],
  3388. source: unescape('asDateString%0A%09%3Creturn%20self.toDateString%28%29%3E'),
  3389. messageSends: [],
  3390. referencedClasses: []
  3391. }),
  3392. smalltalk.Date);
  3393. smalltalk.addMethod(
  3394. unescape('_asTimeString'),
  3395. smalltalk.method({
  3396. selector: unescape('asTimeString'),
  3397. category: 'converting',
  3398. fn: function (){
  3399. var self=this;
  3400. return self.toTimeString();
  3401. return self;},
  3402. args: [],
  3403. source: unescape('asTimeString%0A%09%3Creturn%20self.toTimeString%28%29%3E'),
  3404. messageSends: [],
  3405. referencedClasses: []
  3406. }),
  3407. smalltalk.Date);
  3408. smalltalk.addMethod(
  3409. unescape('_asLocaleString'),
  3410. smalltalk.method({
  3411. selector: unescape('asLocaleString'),
  3412. category: 'converting',
  3413. fn: function (){
  3414. var self=this;
  3415. return self.toLocaleString();
  3416. return self;},
  3417. args: [],
  3418. source: unescape('asLocaleString%0A%09%3Creturn%20self.toLocaleString%28%29%3E'),
  3419. messageSends: [],
  3420. referencedClasses: []
  3421. }),
  3422. smalltalk.Date);
  3423. smalltalk.addMethod(
  3424. unescape('_asNumber'),
  3425. smalltalk.method({
  3426. selector: unescape('asNumber'),
  3427. category: 'converting',
  3428. fn: function (){
  3429. var self=this;
  3430. return smalltalk.send(self, "_asMilliseconds", []);
  3431. return self;},
  3432. args: [],
  3433. source: unescape('asNumber%0A%09%5Eself%20asMilliseconds'),
  3434. messageSends: ["asMilliseconds"],
  3435. referencedClasses: []
  3436. }),
  3437. smalltalk.Date);
  3438. smalltalk.addMethod(
  3439. unescape('_hours_'),
  3440. smalltalk.method({
  3441. selector: unescape('hours%3A'),
  3442. category: 'accessing',
  3443. fn: function (aNumber){
  3444. var self=this;
  3445. self.setHours(aNumber);
  3446. return self;},
  3447. args: ["aNumber"],
  3448. source: unescape('hours%3A%20aNumber%0A%09%3Cself.setHours%28aNumber%29%3E'),
  3449. messageSends: [],
  3450. referencedClasses: []
  3451. }),
  3452. smalltalk.Date);
  3453. smalltalk.addMethod(
  3454. unescape('_minutes_'),
  3455. smalltalk.method({
  3456. selector: unescape('minutes%3A'),
  3457. category: 'accessing',
  3458. fn: function (aNumber){
  3459. var self=this;
  3460. self.setMinutes(aNumber);
  3461. return self;},
  3462. args: ["aNumber"],
  3463. source: unescape('minutes%3A%20aNumber%0A%09%3Cself.setMinutes%28aNumber%29%3E'),
  3464. messageSends: [],
  3465. referencedClasses: []
  3466. }),
  3467. smalltalk.Date);
  3468. smalltalk.addMethod(
  3469. unescape('_seconds_'),
  3470. smalltalk.method({
  3471. selector: unescape('seconds%3A'),
  3472. category: 'accessing',
  3473. fn: function (aNumber){
  3474. var self=this;
  3475. self.setSeconds(aNumber);
  3476. return self;},
  3477. args: ["aNumber"],
  3478. source: unescape('seconds%3A%20aNumber%0A%09%3Cself.setSeconds%28aNumber%29%3E'),
  3479. messageSends: [],
  3480. referencedClasses: []
  3481. }),
  3482. smalltalk.Date);
  3483. smalltalk.addMethod(
  3484. unescape('_milliseconds_'),
  3485. smalltalk.method({
  3486. selector: unescape('milliseconds%3A'),
  3487. category: 'accessing',
  3488. fn: function (aNumber){
  3489. var self=this;
  3490. self.setMilliseconds(aNumber);
  3491. return self;},
  3492. args: ["aNumber"],
  3493. source: unescape('milliseconds%3A%20aNumber%0A%09%3Cself.setMilliseconds%28aNumber%29%3E'),
  3494. messageSends: [],
  3495. referencedClasses: []
  3496. }),
  3497. smalltalk.Date);
  3498. smalltalk.addMethod(
  3499. unescape('_hours'),
  3500. smalltalk.method({
  3501. selector: unescape('hours'),
  3502. category: 'accessing',
  3503. fn: function (){
  3504. var self=this;
  3505. return self.getHours();
  3506. return self;},
  3507. args: [],
  3508. source: unescape('hours%0A%09%3Creturn%20self.getHours%28%29%3E'),
  3509. messageSends: [],
  3510. referencedClasses: []
  3511. }),
  3512. smalltalk.Date);
  3513. smalltalk.addMethod(
  3514. unescape('_minutes'),
  3515. smalltalk.method({
  3516. selector: unescape('minutes'),
  3517. category: 'accessing',
  3518. fn: function (){
  3519. var self=this;
  3520. return self.getMinutes();
  3521. return self;},
  3522. args: [],
  3523. source: unescape('minutes%0A%09%3Creturn%20self.getMinutes%28%29%3E'),
  3524. messageSends: [],
  3525. referencedClasses: []
  3526. }),
  3527. smalltalk.Date);
  3528. smalltalk.addMethod(
  3529. unescape('_seconds'),
  3530. smalltalk.method({
  3531. selector: unescape('seconds'),
  3532. category: 'accessing',
  3533. fn: function (){
  3534. var self=this;
  3535. return self.getSeconds();
  3536. return self;},
  3537. args: [],
  3538. source: unescape('seconds%0A%09%3Creturn%20self.getSeconds%28%29%3E'),
  3539. messageSends: [],
  3540. referencedClasses: []
  3541. }),
  3542. smalltalk.Date);
  3543. smalltalk.addMethod(
  3544. unescape('_milliseconds'),
  3545. smalltalk.method({
  3546. selector: unescape('milliseconds'),
  3547. category: 'accessing',
  3548. fn: function (){
  3549. var self=this;
  3550. return self.getMilliseconds();
  3551. return self;},
  3552. args: [],
  3553. source: unescape('milliseconds%0A%09%3Creturn%20self.getMilliseconds%28%29%3E'),
  3554. messageSends: [],
  3555. referencedClasses: []
  3556. }),
  3557. smalltalk.Date);
  3558. smalltalk.addMethod(
  3559. unescape('__lt'),
  3560. smalltalk.method({
  3561. selector: unescape('%3C'),
  3562. category: 'comparing',
  3563. fn: function (aDate){
  3564. var self=this;
  3565. return self < aDate;
  3566. return self;},
  3567. args: ["aDate"],
  3568. source: unescape('%3C%20aDate%0A%09%3Creturn%20self%20%3C%20aDate%3E'),
  3569. messageSends: [],
  3570. referencedClasses: []
  3571. }),
  3572. smalltalk.Date);
  3573. smalltalk.addMethod(
  3574. unescape('__gt'),
  3575. smalltalk.method({
  3576. selector: unescape('%3E'),
  3577. category: 'comparing',
  3578. fn: function (aDate){
  3579. var self=this;
  3580. return self > aDate;
  3581. return self;},
  3582. args: ["aDate"],
  3583. source: unescape('%3E%20aDate%0A%09%3Creturn%20self%20%3E%3E%20aDate%3E'),
  3584. messageSends: [],
  3585. referencedClasses: []
  3586. }),
  3587. smalltalk.Date);
  3588. smalltalk.addMethod(
  3589. unescape('__lt_eq'),
  3590. smalltalk.method({
  3591. selector: unescape('%3C%3D'),
  3592. category: 'comparing',
  3593. fn: function (aDate){
  3594. var self=this;
  3595. return self <= aDate;
  3596. return self;},
  3597. args: ["aDate"],
  3598. source: unescape('%3C%3D%20aDate%0A%09%3Creturn%20self%20%3C%3D%20aDate%3E'),
  3599. messageSends: [],
  3600. referencedClasses: []
  3601. }),
  3602. smalltalk.Date);
  3603. smalltalk.addMethod(
  3604. unescape('__gt_eq'),
  3605. smalltalk.method({
  3606. selector: unescape('%3E%3D'),
  3607. category: 'comparing',
  3608. fn: function (aDate){
  3609. var self=this;
  3610. return self >= aDate;
  3611. return self;},
  3612. args: ["aDate"],
  3613. source: unescape('%3E%3D%20aDate%0A%09%3Creturn%20self%20%3E%3E%3D%20aDate%3E'),
  3614. messageSends: [],
  3615. referencedClasses: []
  3616. }),
  3617. smalltalk.Date);
  3618. smalltalk.addMethod(
  3619. unescape('__minus'),
  3620. smalltalk.method({
  3621. selector: unescape('-'),
  3622. category: 'arithmetic',
  3623. fn: function (aDate){
  3624. var self=this;
  3625. return self - aDate;
  3626. return self;},
  3627. args: ["aDate"],
  3628. source: unescape('-%20aDate%0A%09%3Creturn%20self%20-%20aDate%3E'),
  3629. messageSends: [],
  3630. referencedClasses: []
  3631. }),
  3632. smalltalk.Date);
  3633. smalltalk.addMethod(
  3634. unescape('__plus'),
  3635. smalltalk.method({
  3636. selector: unescape('+'),
  3637. category: 'arithmetic',
  3638. fn: function (aDate){
  3639. var self=this;
  3640. return self + aDate;
  3641. return self;},
  3642. args: ["aDate"],
  3643. source: unescape('+%20aDate%0A%09%3Creturn%20self%20+%20aDate%3E'),
  3644. messageSends: [],
  3645. referencedClasses: []
  3646. }),
  3647. smalltalk.Date);
  3648. smalltalk.addMethod(
  3649. unescape('_asJSONObject'),
  3650. smalltalk.method({
  3651. selector: unescape('asJSONObject'),
  3652. category: 'converting',
  3653. fn: function (){
  3654. var self=this;
  3655. return self;
  3656. return self;},
  3657. args: [],
  3658. source: unescape('asJSONObject%0A%09%5Eself'),
  3659. messageSends: [],
  3660. referencedClasses: []
  3661. }),
  3662. smalltalk.Date);
  3663. smalltalk.addMethod(
  3664. unescape('_new_'),
  3665. smalltalk.method({
  3666. selector: unescape('new%3A'),
  3667. category: 'instance creation',
  3668. fn: function (anObject){
  3669. var self=this;
  3670. return new Date(anObject);
  3671. return self;},
  3672. args: ["anObject"],
  3673. source: unescape('new%3A%20anObject%0A%09%3Creturn%20new%20Date%28anObject%29%3E'),
  3674. messageSends: [],
  3675. referencedClasses: []
  3676. }),
  3677. smalltalk.Date.klass);
  3678. smalltalk.addMethod(
  3679. unescape('_fromString_'),
  3680. smalltalk.method({
  3681. selector: unescape('fromString%3A'),
  3682. category: 'instance creation',
  3683. fn: function (aString){
  3684. var self=this;
  3685. return smalltalk.send(self, "_new_", [aString]);
  3686. return self;},
  3687. args: ["aString"],
  3688. 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'),
  3689. messageSends: ["new:"],
  3690. referencedClasses: []
  3691. }),
  3692. smalltalk.Date.klass);
  3693. smalltalk.addMethod(
  3694. unescape('_fromSeconds_'),
  3695. smalltalk.method({
  3696. selector: unescape('fromSeconds%3A'),
  3697. category: 'instance creation',
  3698. fn: function (aNumber){
  3699. var self=this;
  3700. return smalltalk.send(self, "_fromMilliseconds_", [((($receiver = aNumber).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))]);
  3701. return self;},
  3702. args: ["aNumber"],
  3703. source: unescape('fromSeconds%3A%20aNumber%0A%09%5Eself%20fromMilliseconds%3A%20aNumber%20*%201000'),
  3704. messageSends: ["fromMilliseconds:", unescape("*")],
  3705. referencedClasses: []
  3706. }),
  3707. smalltalk.Date.klass);
  3708. smalltalk.addMethod(
  3709. unescape('_fromMilliseconds_'),
  3710. smalltalk.method({
  3711. selector: unescape('fromMilliseconds%3A'),
  3712. category: 'instance creation',
  3713. fn: function (aNumber){
  3714. var self=this;
  3715. return smalltalk.send(self, "_new_", [aNumber]);
  3716. return self;},
  3717. args: ["aNumber"],
  3718. source: unescape('fromMilliseconds%3A%20aNumber%0A%09%5Eself%20new%3A%20aNumber'),
  3719. messageSends: ["new:"],
  3720. referencedClasses: []
  3721. }),
  3722. smalltalk.Date.klass);
  3723. smalltalk.addMethod(
  3724. unescape('_today'),
  3725. smalltalk.method({
  3726. selector: unescape('today'),
  3727. category: 'instance creation',
  3728. fn: function (){
  3729. var self=this;
  3730. return smalltalk.send(self, "_new", []);
  3731. return self;},
  3732. args: [],
  3733. source: unescape('today%0A%09%5Eself%20new'),
  3734. messageSends: ["new"],
  3735. referencedClasses: []
  3736. }),
  3737. smalltalk.Date.klass);
  3738. smalltalk.addMethod(
  3739. unescape('_now'),
  3740. smalltalk.method({
  3741. selector: unescape('now'),
  3742. category: 'instance creation',
  3743. fn: function (){
  3744. var self=this;
  3745. return smalltalk.send(self, "_today", []);
  3746. return self;},
  3747. args: [],
  3748. source: unescape('now%0A%09%5Eself%20today'),
  3749. messageSends: ["today"],
  3750. referencedClasses: []
  3751. }),
  3752. smalltalk.Date.klass);
  3753. smalltalk.addMethod(
  3754. unescape('_millisecondsToRun_'),
  3755. smalltalk.method({
  3756. selector: unescape('millisecondsToRun%3A'),
  3757. category: 'instance creation',
  3758. fn: function (aBlock){
  3759. var self=this;
  3760. var t=nil;
  3761. t=smalltalk.send((smalltalk.Date || Date), "_now", []);
  3762. smalltalk.send(aBlock, "_value", []);
  3763. return ((($receiver = smalltalk.send((smalltalk.Date || Date), "_now", [])).klass === smalltalk.Number) ? $receiver -t : smalltalk.send($receiver, "__minus", [t]));
  3764. return self;},
  3765. args: ["aBlock"],
  3766. 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'),
  3767. messageSends: ["now", "value", unescape("-")],
  3768. referencedClasses: [smalltalk.Date]
  3769. }),
  3770. smalltalk.Date.klass);
  3771. smalltalk.addClass('UndefinedObject', smalltalk.Object, [], 'Kernel');
  3772. smalltalk.addMethod(
  3773. unescape('_subclass_instanceVariableNames_'),
  3774. smalltalk.method({
  3775. selector: unescape('subclass%3AinstanceVariableNames%3A'),
  3776. category: 'class creation',
  3777. fn: function (aString, anotherString){
  3778. var self=this;
  3779. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
  3780. return self;},
  3781. args: ["aString", "anotherString"],
  3782. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%20package%3A%20nil'),
  3783. messageSends: ["subclass:instanceVariableNames:package:"],
  3784. referencedClasses: []
  3785. }),
  3786. smalltalk.UndefinedObject);
  3787. smalltalk.addMethod(
  3788. unescape('_subclass_instanceVariableNames_category_'),
  3789. smalltalk.method({
  3790. selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
  3791. category: 'class creation',
  3792. fn: function (aString, aString2, aString3){
  3793. var self=this;
  3794. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  3795. return self;},
  3796. args: ["aString", "aString2", "aString3"],
  3797. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20category%3A%20aString3%0A%09%22Kept%20for%20compatibility.%22%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  3798. messageSends: ["subclass:instanceVariableNames:package:"],
  3799. referencedClasses: []
  3800. }),
  3801. smalltalk.UndefinedObject);
  3802. smalltalk.addMethod(
  3803. unescape('_shallowCopy'),
  3804. smalltalk.method({
  3805. selector: unescape('shallowCopy'),
  3806. category: 'copying',
  3807. fn: function (){
  3808. var self=this;
  3809. return self;
  3810. return self;},
  3811. args: [],
  3812. source: unescape('shallowCopy%0A%09%5Eself'),
  3813. messageSends: [],
  3814. referencedClasses: []
  3815. }),
  3816. smalltalk.UndefinedObject);
  3817. smalltalk.addMethod(
  3818. unescape('_deepCopy'),
  3819. smalltalk.method({
  3820. selector: unescape('deepCopy'),
  3821. category: 'copying',
  3822. fn: function (){
  3823. var self=this;
  3824. return self;
  3825. return self;},
  3826. args: [],
  3827. source: unescape('deepCopy%0A%09%5Eself'),
  3828. messageSends: [],
  3829. referencedClasses: []
  3830. }),
  3831. smalltalk.UndefinedObject);
  3832. smalltalk.addMethod(
  3833. unescape('_ifNil_'),
  3834. smalltalk.method({
  3835. selector: unescape('ifNil%3A'),
  3836. category: 'testing',
  3837. fn: function (aBlock){
  3838. var self=this;
  3839. return smalltalk.send(self, "_ifNil_ifNotNil_", [aBlock, (function(){return nil;})]);
  3840. return self;},
  3841. args: ["aBlock"],
  3842. source: unescape('ifNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifNil%3A%20aBlock%20ifNotNil%3A%20%5B%5D'),
  3843. messageSends: ["ifNil:ifNotNil:"],
  3844. referencedClasses: []
  3845. }),
  3846. smalltalk.UndefinedObject);
  3847. smalltalk.addMethod(
  3848. unescape('_ifNotNil_'),
  3849. smalltalk.method({
  3850. selector: unescape('ifNotNil%3A'),
  3851. category: 'testing',
  3852. fn: function (aBlock){
  3853. var self=this;
  3854. return self;
  3855. return self;},
  3856. args: ["aBlock"],
  3857. source: unescape('ifNotNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself'),
  3858. messageSends: [],
  3859. referencedClasses: []
  3860. }),
  3861. smalltalk.UndefinedObject);
  3862. smalltalk.addMethod(
  3863. unescape('_ifNil_ifNotNil_'),
  3864. smalltalk.method({
  3865. selector: unescape('ifNil%3AifNotNil%3A'),
  3866. category: 'testing',
  3867. fn: function (aBlock, anotherBlock){
  3868. var self=this;
  3869. return smalltalk.send(aBlock, "_value", []);
  3870. return self;},
  3871. args: ["aBlock", "anotherBlock"],
  3872. source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  3873. messageSends: ["value"],
  3874. referencedClasses: []
  3875. }),
  3876. smalltalk.UndefinedObject);
  3877. smalltalk.addMethod(
  3878. unescape('_ifNotNil_ifNil_'),
  3879. smalltalk.method({
  3880. selector: unescape('ifNotNil%3AifNil%3A'),
  3881. category: 'testing',
  3882. fn: function (aBlock, anotherBlock){
  3883. var self=this;
  3884. return smalltalk.send(anotherBlock, "_value", []);
  3885. return self;},
  3886. args: ["aBlock", "anotherBlock"],
  3887. source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EanotherBlock%20value'),
  3888. messageSends: ["value"],
  3889. referencedClasses: []
  3890. }),
  3891. smalltalk.UndefinedObject);
  3892. smalltalk.addMethod(
  3893. unescape('_isNil'),
  3894. smalltalk.method({
  3895. selector: unescape('isNil'),
  3896. category: 'testing',
  3897. fn: function (){
  3898. var self=this;
  3899. return true;
  3900. return self;},
  3901. args: [],
  3902. source: unescape('isNil%0A%09%5Etrue'),
  3903. messageSends: [],
  3904. referencedClasses: []
  3905. }),
  3906. smalltalk.UndefinedObject);
  3907. smalltalk.addMethod(
  3908. unescape('_notNil'),
  3909. smalltalk.method({
  3910. selector: unescape('notNil'),
  3911. category: 'testing',
  3912. fn: function (){
  3913. var self=this;
  3914. return false;
  3915. return self;},
  3916. args: [],
  3917. source: unescape('notNil%0A%09%5Efalse'),
  3918. messageSends: [],
  3919. referencedClasses: []
  3920. }),
  3921. smalltalk.UndefinedObject);
  3922. smalltalk.addMethod(
  3923. unescape('_printString'),
  3924. smalltalk.method({
  3925. selector: unescape('printString'),
  3926. category: 'printing',
  3927. fn: function (){
  3928. var self=this;
  3929. return "nil";
  3930. return self;},
  3931. args: [],
  3932. source: unescape('printString%0A%20%20%20%20%5E%27nil%27'),
  3933. messageSends: [],
  3934. referencedClasses: []
  3935. }),
  3936. smalltalk.UndefinedObject);
  3937. smalltalk.addMethod(
  3938. unescape('_subclass_instanceVariableNames_package_'),
  3939. smalltalk.method({
  3940. selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
  3941. category: 'class creation',
  3942. fn: function (aString, aString2, aString3){
  3943. var self=this;
  3944. return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
  3945. return self;},
  3946. args: ["aString", "aString2", "aString3"],
  3947. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3%0A%09%5EClassBuilder%20new%0A%09%20%20%20%20superclass%3A%20self%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  3948. messageSends: ["superclass:subclass:instanceVariableNames:package:", "new"],
  3949. referencedClasses: [smalltalk.nil]
  3950. }),
  3951. smalltalk.UndefinedObject);
  3952. smalltalk.addMethod(
  3953. unescape('_new'),
  3954. smalltalk.method({
  3955. selector: unescape('new'),
  3956. category: 'instance creation',
  3957. fn: function (){
  3958. var self=this;
  3959. smalltalk.send(self, "_error_", ["You cannot create new instances of UndefinedObject. Use nil"]);
  3960. return self;},
  3961. args: [],
  3962. source: unescape('new%0A%09%20%20%20%20self%20error%3A%20%27You%20cannot%20create%20new%20instances%20of%20UndefinedObject.%20Use%20nil%27'),
  3963. messageSends: ["error:"],
  3964. referencedClasses: []
  3965. }),
  3966. smalltalk.UndefinedObject.klass);
  3967. smalltalk.addClass('Collection', smalltalk.Object, [], 'Kernel');
  3968. smalltalk.addMethod(
  3969. unescape('_size'),
  3970. smalltalk.method({
  3971. selector: unescape('size'),
  3972. category: 'accessing',
  3973. fn: function (){
  3974. var self=this;
  3975. smalltalk.send(self, "_subclassResponsibility", []);
  3976. return self;},
  3977. args: [],
  3978. source: unescape('size%0A%09self%20subclassResponsibility'),
  3979. messageSends: ["subclassResponsibility"],
  3980. referencedClasses: []
  3981. }),
  3982. smalltalk.Collection);
  3983. smalltalk.addMethod(
  3984. unescape('_readStream'),
  3985. smalltalk.method({
  3986. selector: unescape('readStream'),
  3987. category: 'accessing',
  3988. fn: function (){
  3989. var self=this;
  3990. return smalltalk.send(self, "_stream", []);
  3991. return self;},
  3992. args: [],
  3993. source: unescape('readStream%0A%09%5Eself%20stream'),
  3994. messageSends: ["stream"],
  3995. referencedClasses: []
  3996. }),
  3997. smalltalk.Collection);
  3998. smalltalk.addMethod(
  3999. unescape('_writeStream'),
  4000. smalltalk.method({
  4001. selector: unescape('writeStream'),
  4002. category: 'accessing',
  4003. fn: function (){
  4004. var self=this;
  4005. return smalltalk.send(self, "_stream", []);
  4006. return self;},
  4007. args: [],
  4008. source: unescape('writeStream%0A%09%5Eself%20stream'),
  4009. messageSends: ["stream"],
  4010. referencedClasses: []
  4011. }),
  4012. smalltalk.Collection);
  4013. smalltalk.addMethod(
  4014. unescape('_stream'),
  4015. smalltalk.method({
  4016. selector: unescape('stream'),
  4017. category: 'accessing',
  4018. fn: function (){
  4019. var self=this;
  4020. return smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [self]);
  4021. return self;},
  4022. args: [],
  4023. source: unescape('stream%0A%09%5Eself%20streamClass%20on%3A%20self'),
  4024. messageSends: ["on:", "streamClass"],
  4025. referencedClasses: []
  4026. }),
  4027. smalltalk.Collection);
  4028. smalltalk.addMethod(
  4029. unescape('_streamClass'),
  4030. smalltalk.method({
  4031. selector: unescape('streamClass'),
  4032. category: 'accessing',
  4033. fn: function (){
  4034. var self=this;
  4035. return smalltalk.send(smalltalk.send(self, "_class", []), "_streamClass", []);
  4036. return self;},
  4037. args: [],
  4038. source: unescape('streamClass%0A%09%5Eself%20class%20streamClass'),
  4039. messageSends: ["streamClass", "class"],
  4040. referencedClasses: []
  4041. }),
  4042. smalltalk.Collection);
  4043. smalltalk.addMethod(
  4044. unescape('_add_'),
  4045. smalltalk.method({
  4046. selector: unescape('add%3A'),
  4047. category: 'adding/removing',
  4048. fn: function (anObject){
  4049. var self=this;
  4050. smalltalk.send(self, "_subclassResponsibility", []);
  4051. return self;},
  4052. args: ["anObject"],
  4053. source: unescape('add%3A%20anObject%0A%09self%20subclassResponsibility'),
  4054. messageSends: ["subclassResponsibility"],
  4055. referencedClasses: []
  4056. }),
  4057. smalltalk.Collection);
  4058. smalltalk.addMethod(
  4059. unescape('_addAll_'),
  4060. smalltalk.method({
  4061. selector: unescape('addAll%3A'),
  4062. category: 'adding/removing',
  4063. fn: function (aCollection){
  4064. var self=this;
  4065. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_add_", [each]);})]);
  4066. return aCollection;
  4067. return self;},
  4068. args: ["aCollection"],
  4069. 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'),
  4070. messageSends: ["do:", "add:"],
  4071. referencedClasses: []
  4072. }),
  4073. smalltalk.Collection);
  4074. smalltalk.addMethod(
  4075. unescape('__comma'),
  4076. smalltalk.method({
  4077. selector: unescape('%2C'),
  4078. category: 'copying',
  4079. fn: function (aCollection){
  4080. var self=this;
  4081. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  4082. return self;},
  4083. args: ["aCollection"],
  4084. 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'),
  4085. messageSends: ["addAll:", "yourself", "copy"],
  4086. referencedClasses: []
  4087. }),
  4088. smalltalk.Collection);
  4089. smalltalk.addMethod(
  4090. unescape('_copyWith_'),
  4091. smalltalk.method({
  4092. selector: unescape('copyWith%3A'),
  4093. category: 'copying',
  4094. fn: function (anObject){
  4095. var self=this;
  4096. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  4097. return self;},
  4098. args: ["anObject"],
  4099. source: unescape('copyWith%3A%20anObject%0A%09%5Eself%20copy%20add%3A%20anObject%3B%20yourself'),
  4100. messageSends: ["add:", "yourself", "copy"],
  4101. referencedClasses: []
  4102. }),
  4103. smalltalk.Collection);
  4104. smalltalk.addMethod(
  4105. unescape('_copyWithAll_'),
  4106. smalltalk.method({
  4107. selector: unescape('copyWithAll%3A'),
  4108. category: 'copying',
  4109. fn: function (aCollection){
  4110. var self=this;
  4111. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  4112. return self;},
  4113. args: ["aCollection"],
  4114. source: unescape('copyWithAll%3A%20aCollection%0A%09%5Eself%20copy%20addAll%3A%20aCollection%3B%20yourself'),
  4115. messageSends: ["addAll:", "yourself", "copy"],
  4116. referencedClasses: []
  4117. }),
  4118. smalltalk.Collection);
  4119. smalltalk.addMethod(
  4120. unescape('_asArray'),
  4121. smalltalk.method({
  4122. selector: unescape('asArray'),
  4123. category: 'converting',
  4124. fn: function (){
  4125. var self=this;
  4126. var array=nil;
  4127. var index=nil;
  4128. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  4129. index=(0);
  4130. smalltalk.send(self, "_do_", [(function(each){index=((($receiver = index).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return smalltalk.send(array, "_at_put_", [index, each]);})]);
  4131. return array;
  4132. return self;},
  4133. args: [],
  4134. 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'),
  4135. messageSends: ["new", "do:", unescape("+"), "at:put:"],
  4136. referencedClasses: [smalltalk.Array]
  4137. }),
  4138. smalltalk.Collection);
  4139. smalltalk.addMethod(
  4140. unescape('_do_'),
  4141. smalltalk.method({
  4142. selector: unescape('do%3A'),
  4143. category: 'enumerating',
  4144. fn: function (aBlock){
  4145. var self=this;
  4146. for(var i=0;i<self.length;i++){aBlock(self[i]);};
  4147. return self;},
  4148. args: ["aBlock"],
  4149. source: unescape('do%3A%20aBlock%0A%09%3Cfor%28var%20i%3D0%3Bi%3Cself.length%3Bi++%29%7BaBlock%28self%5Bi%5D%29%3B%7D%3E'),
  4150. messageSends: [],
  4151. referencedClasses: []
  4152. }),
  4153. smalltalk.Collection);
  4154. smalltalk.addMethod(
  4155. unescape('_collect_'),
  4156. smalltalk.method({
  4157. selector: unescape('collect%3A'),
  4158. category: 'enumerating',
  4159. fn: function (aBlock){
  4160. var self=this;
  4161. var newCollection=nil;
  4162. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  4163. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(aBlock, "_value_", [each])]);})]);
  4164. return newCollection;
  4165. return self;},
  4166. args: ["aBlock"],
  4167. 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'),
  4168. messageSends: ["new", "class", "do:", "add:", "value:"],
  4169. referencedClasses: []
  4170. }),
  4171. smalltalk.Collection);
  4172. smalltalk.addMethod(
  4173. unescape('_detect_'),
  4174. smalltalk.method({
  4175. selector: unescape('detect%3A'),
  4176. category: 'enumerating',
  4177. fn: function (aBlock){
  4178. var self=this;
  4179. return smalltalk.send(self, "_detect_ifNone_", [aBlock, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4180. return self;},
  4181. args: ["aBlock"],
  4182. source: unescape('detect%3A%20aBlock%0A%09%5Eself%20detect%3A%20aBlock%20ifNone%3A%20%5Bself%20errorNotFound%5D'),
  4183. messageSends: ["detect:ifNone:", "errorNotFound"],
  4184. referencedClasses: []
  4185. }),
  4186. smalltalk.Collection);
  4187. smalltalk.addMethod(
  4188. unescape('_detect_ifNone_'),
  4189. smalltalk.method({
  4190. selector: unescape('detect%3AifNone%3A'),
  4191. category: 'enumerating',
  4192. fn: function (aBlock, anotherBlock){
  4193. var self=this;
  4194. for(var i = 0; i < self.length; i++)
  4195. if(aBlock(self[i]))
  4196. return self[i];
  4197. return anotherBlock();
  4198. ;
  4199. return self;},
  4200. args: ["aBlock", "anotherBlock"],
  4201. 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'),
  4202. messageSends: [],
  4203. referencedClasses: []
  4204. }),
  4205. smalltalk.Collection);
  4206. smalltalk.addMethod(
  4207. unescape('_do_separatedBy_'),
  4208. smalltalk.method({
  4209. selector: unescape('do%3AseparatedBy%3A'),
  4210. category: 'enumerating',
  4211. fn: function (aBlock, anotherBlock){
  4212. var self=this;
  4213. var first=nil;
  4214. first=true;
  4215. smalltalk.send(self, "_do_", [(function(each){((($receiver = first).klass === smalltalk.Boolean) ? ($receiver ? (function(){return first=false;})() : (function(){return smalltalk.send(anotherBlock, "_value", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return first=false;}), (function(){return smalltalk.send(anotherBlock, "_value", []);})]));return smalltalk.send(aBlock, "_value_", [each]);})]);
  4216. return self;},
  4217. args: ["aBlock", "anotherBlock"],
  4218. 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'),
  4219. messageSends: ["do:", "ifTrue:ifFalse:", "value", "value:"],
  4220. referencedClasses: []
  4221. }),
  4222. smalltalk.Collection);
  4223. smalltalk.addMethod(
  4224. unescape('_inject_into_'),
  4225. smalltalk.method({
  4226. selector: unescape('inject%3Ainto%3A'),
  4227. category: 'enumerating',
  4228. fn: function (anObject, aBlock){
  4229. var self=this;
  4230. var result=nil;
  4231. result=anObject;
  4232. smalltalk.send(self, "_do_", [(function(each){return result=smalltalk.send(aBlock, "_value_value_", [result, each]);})]);
  4233. return result;
  4234. return self;},
  4235. args: ["anObject", "aBlock"],
  4236. 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'),
  4237. messageSends: ["do:", "value:value:"],
  4238. referencedClasses: []
  4239. }),
  4240. smalltalk.Collection);
  4241. smalltalk.addMethod(
  4242. unescape('_reject_'),
  4243. smalltalk.method({
  4244. selector: unescape('reject%3A'),
  4245. category: 'enumerating',
  4246. fn: function (aBlock){
  4247. var self=this;
  4248. return smalltalk.send(self, "_select_", [(function(each){return smalltalk.send(smalltalk.send(aBlock, "_value_", [each]), "__eq", [false]);})]);
  4249. return self;},
  4250. args: ["aBlock"],
  4251. 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'),
  4252. messageSends: ["select:", unescape("%3D"), "value:"],
  4253. referencedClasses: []
  4254. }),
  4255. smalltalk.Collection);
  4256. smalltalk.addMethod(
  4257. unescape('_select_'),
  4258. smalltalk.method({
  4259. selector: unescape('select%3A'),
  4260. category: 'enumerating',
  4261. fn: function (aBlock){
  4262. var self=this;
  4263. var stream=nil;
  4264. stream=smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_new", []), "_writeStream", []);
  4265. smalltalk.send(self, "_do_", [(function(each){return ((($receiver = smalltalk.send(aBlock, "_value_", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(stream, "_nextPut_", [each]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(stream, "_nextPut_", [each]);})]));})]);
  4266. return smalltalk.send(stream, "_contents", []);
  4267. return self;},
  4268. args: ["aBlock"],
  4269. 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'),
  4270. messageSends: ["writeStream", "new", "class", "do:", "ifTrue:", "value:", "nextPut:", "contents"],
  4271. referencedClasses: []
  4272. }),
  4273. smalltalk.Collection);
  4274. smalltalk.addMethod(
  4275. unescape('_errorNotFound'),
  4276. smalltalk.method({
  4277. selector: unescape('errorNotFound'),
  4278. category: 'error handling',
  4279. fn: function (){
  4280. var self=this;
  4281. smalltalk.send(self, "_error_", ["Object is not in the collection"]);
  4282. return self;},
  4283. args: [],
  4284. source: unescape('errorNotFound%0A%09self%20error%3A%20%27Object%20is%20not%20in%20the%20collection%27'),
  4285. messageSends: ["error:"],
  4286. referencedClasses: []
  4287. }),
  4288. smalltalk.Collection);
  4289. smalltalk.addMethod(
  4290. unescape('_includes_'),
  4291. smalltalk.method({
  4292. selector: unescape('includes%3A'),
  4293. category: 'testing',
  4294. fn: function (anObject){
  4295. var self=this;
  4296. var i = self.length;
  4297. while (i--) {
  4298. if (smalltalk.send(self[i], "__eq", [anObject])) {return true;}
  4299. }
  4300. return false
  4301. ;
  4302. return self;},
  4303. args: ["anObject"],
  4304. 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'),
  4305. messageSends: [],
  4306. referencedClasses: []
  4307. }),
  4308. smalltalk.Collection);
  4309. smalltalk.addMethod(
  4310. unescape('_notEmpty'),
  4311. smalltalk.method({
  4312. selector: unescape('notEmpty'),
  4313. category: 'testing',
  4314. fn: function (){
  4315. var self=this;
  4316. return smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_not", []);
  4317. return self;},
  4318. args: [],
  4319. source: unescape('notEmpty%0A%09%5Eself%20isEmpty%20not'),
  4320. messageSends: ["not", "isEmpty"],
  4321. referencedClasses: []
  4322. }),
  4323. smalltalk.Collection);
  4324. smalltalk.addMethod(
  4325. unescape('_isEmpty'),
  4326. smalltalk.method({
  4327. selector: unescape('isEmpty'),
  4328. category: 'testing',
  4329. fn: function (){
  4330. var self=this;
  4331. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  4332. return self;},
  4333. args: [],
  4334. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  4335. messageSends: [unescape("%3D"), "size"],
  4336. referencedClasses: []
  4337. }),
  4338. smalltalk.Collection);
  4339. smalltalk.addMethod(
  4340. unescape('_remove_'),
  4341. smalltalk.method({
  4342. selector: unescape('remove%3A'),
  4343. category: 'adding/removing',
  4344. fn: function (anObject){
  4345. var self=this;
  4346. smalltalk.send(self, "_subclassResponsibility", []);
  4347. return self;},
  4348. args: ["anObject"],
  4349. source: unescape('remove%3A%20anObject%0A%20%20%20%20self%20subclassResponsibility'),
  4350. messageSends: ["subclassResponsibility"],
  4351. referencedClasses: []
  4352. }),
  4353. smalltalk.Collection);
  4354. smalltalk.addMethod(
  4355. unescape('_asSet'),
  4356. smalltalk.method({
  4357. selector: unescape('asSet'),
  4358. category: 'converting',
  4359. fn: function (){
  4360. var self=this;
  4361. return smalltalk.send((smalltalk.Set || Set), "_withAll_", [self]);
  4362. return self;},
  4363. args: [],
  4364. source: unescape('asSet%0A%09%5ESet%20withAll%3A%20self'),
  4365. messageSends: ["withAll:"],
  4366. referencedClasses: [smalltalk.nil]
  4367. }),
  4368. smalltalk.Collection);
  4369. smalltalk.addMethod(
  4370. unescape('_ifNotEmpty_'),
  4371. smalltalk.method({
  4372. selector: unescape('ifNotEmpty%3A'),
  4373. category: 'testing',
  4374. fn: function (aBlock){
  4375. var self=this;
  4376. smalltalk.send(smalltalk.send(self, "_notEmpty", []), "_ifTrue_", [aBlock]);
  4377. return self;},
  4378. args: ["aBlock"],
  4379. source: unescape('ifNotEmpty%3A%20aBlock%0A%09self%20notEmpty%20ifTrue%3A%20aBlock.'),
  4380. messageSends: ["ifTrue:", "notEmpty"],
  4381. referencedClasses: []
  4382. }),
  4383. smalltalk.Collection);
  4384. smalltalk.addMethod(
  4385. unescape('_ifEmpty_'),
  4386. smalltalk.method({
  4387. selector: unescape('ifEmpty%3A'),
  4388. category: 'testing',
  4389. fn: function (aBlock){
  4390. var self=this;
  4391. smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_ifTrue_", [aBlock]);
  4392. return self;},
  4393. args: ["aBlock"],
  4394. source: unescape('ifEmpty%3A%20aBlock%0A%09self%20isEmpty%20ifTrue%3A%20aBlock.'),
  4395. messageSends: ["ifTrue:", "isEmpty"],
  4396. referencedClasses: []
  4397. }),
  4398. smalltalk.Collection);
  4399. smalltalk.addMethod(
  4400. unescape('_copyWithoutAll_'),
  4401. smalltalk.method({
  4402. selector: unescape('copyWithoutAll%3A'),
  4403. category: 'copying',
  4404. fn: function (aCollection){
  4405. var self=this;
  4406. return smalltalk.send(self, "_reject_", [(function(each){return smalltalk.send(aCollection, "_includes_", [each]);})]);
  4407. return self;},
  4408. args: ["aCollection"],
  4409. source: unescape('copyWithoutAll%3A%20aCollection%0A%09%22Answer%20a%20copy%20of%20the%20receiver%20that%20does%20not%20contain%20any%20elements%20%0A%09equal%20to%20those%20in%20aCollection.%22%0A%0A%09%5E%20self%20reject%3A%20%5B%3Aeach%20%7C%20aCollection%20includes%3A%20each%5D'),
  4410. messageSends: ["reject:", "includes:"],
  4411. referencedClasses: []
  4412. }),
  4413. smalltalk.Collection);
  4414. smalltalk.addMethod(
  4415. unescape('_streamClass'),
  4416. smalltalk.method({
  4417. selector: unescape('streamClass'),
  4418. category: 'accessing',
  4419. fn: function (){
  4420. var self=this;
  4421. return (smalltalk.Stream || Stream);
  4422. return self;},
  4423. args: [],
  4424. source: unescape('streamClass%0A%09%20%20%20%20%5EStream'),
  4425. messageSends: [],
  4426. referencedClasses: [smalltalk.nil]
  4427. }),
  4428. smalltalk.Collection.klass);
  4429. smalltalk.addMethod(
  4430. unescape('_with_'),
  4431. smalltalk.method({
  4432. selector: unescape('with%3A'),
  4433. category: 'instance creation',
  4434. fn: function (anObject){
  4435. var self=this;
  4436. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4437. return self;},
  4438. args: ["anObject"],
  4439. source: unescape('with%3A%20anObject%0A%09%20%20%20%20%5Eself%20new%0A%09%09add%3A%20anObject%3B%0A%09%09yourself'),
  4440. messageSends: ["add:", "yourself", "new"],
  4441. referencedClasses: []
  4442. }),
  4443. smalltalk.Collection.klass);
  4444. smalltalk.addMethod(
  4445. unescape('_with_with_'),
  4446. smalltalk.method({
  4447. selector: unescape('with%3Awith%3A'),
  4448. category: 'instance creation',
  4449. fn: function (anObject, anotherObject){
  4450. var self=this;
  4451. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);smalltalk.send($rec, "_add_", [anotherObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4452. return self;},
  4453. args: ["anObject", "anotherObject"],
  4454. 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'),
  4455. messageSends: ["add:", "yourself", "new"],
  4456. referencedClasses: []
  4457. }),
  4458. smalltalk.Collection.klass);
  4459. smalltalk.addMethod(
  4460. unescape('_with_with_with_'),
  4461. smalltalk.method({
  4462. selector: unescape('with%3Awith%3Awith%3A'),
  4463. category: 'instance creation',
  4464. fn: function (firstObject, secondObject, thirdObject){
  4465. var self=this;
  4466. 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", []));
  4467. return self;},
  4468. args: ["firstObject", "secondObject", "thirdObject"],
  4469. 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'),
  4470. messageSends: ["add:", "yourself", "new"],
  4471. referencedClasses: []
  4472. }),
  4473. smalltalk.Collection.klass);
  4474. smalltalk.addMethod(
  4475. unescape('_withAll_'),
  4476. smalltalk.method({
  4477. selector: unescape('withAll%3A'),
  4478. category: 'instance creation',
  4479. fn: function (aCollection){
  4480. var self=this;
  4481. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4482. return self;},
  4483. args: ["aCollection"],
  4484. source: unescape('withAll%3A%20aCollection%0A%09%20%20%20%20%5Eself%20new%0A%09%09addAll%3A%20aCollection%3B%0A%09%09yourself'),
  4485. messageSends: ["addAll:", "yourself", "new"],
  4486. referencedClasses: []
  4487. }),
  4488. smalltalk.Collection.klass);
  4489. smalltalk.addClass('SequenceableCollection', smalltalk.Collection, [], 'Kernel');
  4490. smalltalk.addMethod(
  4491. unescape('_at_'),
  4492. smalltalk.method({
  4493. selector: unescape('at%3A'),
  4494. category: 'accessing',
  4495. fn: function (anIndex){
  4496. var self=this;
  4497. return smalltalk.send(self, "_at_ifAbsent_", [anIndex, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4498. return self;},
  4499. args: ["anIndex"],
  4500. source: unescape('at%3A%20anIndex%0A%09%5Eself%20at%3A%20anIndex%20ifAbsent%3A%20%5B%0A%09%20%20%20%20self%20errorNotFound%5D'),
  4501. messageSends: ["at:ifAbsent:", "errorNotFound"],
  4502. referencedClasses: []
  4503. }),
  4504. smalltalk.SequenceableCollection);
  4505. smalltalk.addMethod(
  4506. unescape('_at_ifAbsent_'),
  4507. smalltalk.method({
  4508. selector: unescape('at%3AifAbsent%3A'),
  4509. category: 'accessing',
  4510. fn: function (anIndex, aBlock){
  4511. var self=this;
  4512. smalltalk.send(self, "_subclassResponsibility", []);
  4513. return self;},
  4514. args: ["anIndex", "aBlock"],
  4515. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%09self%20subclassResponsibility'),
  4516. messageSends: ["subclassResponsibility"],
  4517. referencedClasses: []
  4518. }),
  4519. smalltalk.SequenceableCollection);
  4520. smalltalk.addMethod(
  4521. unescape('_at_put_'),
  4522. smalltalk.method({
  4523. selector: unescape('at%3Aput%3A'),
  4524. category: 'accessing',
  4525. fn: function (anIndex, anObject){
  4526. var self=this;
  4527. smalltalk.send(self, "_subclassResponsibility", []);
  4528. return self;},
  4529. args: ["anIndex", "anObject"],
  4530. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09self%20subclassResponsibility'),
  4531. messageSends: ["subclassResponsibility"],
  4532. referencedClasses: []
  4533. }),
  4534. smalltalk.SequenceableCollection);
  4535. smalltalk.addMethod(
  4536. unescape('_copyFrom_to_'),
  4537. smalltalk.method({
  4538. selector: unescape('copyFrom%3Ato%3A'),
  4539. category: 'copying',
  4540. fn: function (anIndex, anotherIndex){
  4541. var self=this;
  4542. smalltalk.send(self, "_subclassResponsibility", []);
  4543. return self;},
  4544. args: ["anIndex", "anotherIndex"],
  4545. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20subclassResponsibility'),
  4546. messageSends: ["subclassResponsibility"],
  4547. referencedClasses: []
  4548. }),
  4549. smalltalk.SequenceableCollection);
  4550. smalltalk.addMethod(
  4551. unescape('_first'),
  4552. smalltalk.method({
  4553. selector: unescape('first'),
  4554. category: 'accessing',
  4555. fn: function (){
  4556. var self=this;
  4557. return smalltalk.send(self, "_at_", [(1)]);
  4558. return self;},
  4559. args: [],
  4560. source: unescape('first%0A%09%5Eself%20at%3A%201'),
  4561. messageSends: ["at:"],
  4562. referencedClasses: []
  4563. }),
  4564. smalltalk.SequenceableCollection);
  4565. smalltalk.addMethod(
  4566. unescape('_fourth'),
  4567. smalltalk.method({
  4568. selector: unescape('fourth'),
  4569. category: 'accessing',
  4570. fn: function (){
  4571. var self=this;
  4572. return smalltalk.send(self, "_at_", [(4)]);
  4573. return self;},
  4574. args: [],
  4575. source: unescape('fourth%0A%09%5Eself%20at%3A%204'),
  4576. messageSends: ["at:"],
  4577. referencedClasses: []
  4578. }),
  4579. smalltalk.SequenceableCollection);
  4580. smalltalk.addMethod(
  4581. unescape('_last'),
  4582. smalltalk.method({
  4583. selector: unescape('last'),
  4584. category: 'accessing',
  4585. fn: function (){
  4586. var self=this;
  4587. return smalltalk.send(self, "_at_", [smalltalk.send(self, "_size", [])]);
  4588. return self;},
  4589. args: [],
  4590. source: unescape('last%0A%09%5Eself%20at%3A%20self%20size'),
  4591. messageSends: ["at:", "size"],
  4592. referencedClasses: []
  4593. }),
  4594. smalltalk.SequenceableCollection);
  4595. smalltalk.addMethod(
  4596. unescape('_second'),
  4597. smalltalk.method({
  4598. selector: unescape('second'),
  4599. category: 'accessing',
  4600. fn: function (){
  4601. var self=this;
  4602. return smalltalk.send(self, "_at_", [(2)]);
  4603. return self;},
  4604. args: [],
  4605. source: unescape('second%0A%09%5Eself%20at%3A%202'),
  4606. messageSends: ["at:"],
  4607. referencedClasses: []
  4608. }),
  4609. smalltalk.SequenceableCollection);
  4610. smalltalk.addMethod(
  4611. unescape('_third'),
  4612. smalltalk.method({
  4613. selector: unescape('third'),
  4614. category: 'accessing',
  4615. fn: function (){
  4616. var self=this;
  4617. return smalltalk.send(self, "_at_", [(3)]);
  4618. return self;},
  4619. args: [],
  4620. source: unescape('third%0A%09%5Eself%20at%3A%203'),
  4621. messageSends: ["at:"],
  4622. referencedClasses: []
  4623. }),
  4624. smalltalk.SequenceableCollection);
  4625. smalltalk.addMethod(
  4626. unescape('_removeLast'),
  4627. smalltalk.method({
  4628. selector: unescape('removeLast'),
  4629. category: 'adding',
  4630. fn: function (){
  4631. var self=this;
  4632. smalltalk.send(self, "_remove_", [smalltalk.send(self, "_last", [])]);
  4633. return self;},
  4634. args: [],
  4635. source: unescape('removeLast%0A%09self%20remove%3A%20self%20last'),
  4636. messageSends: ["remove:", "last"],
  4637. referencedClasses: []
  4638. }),
  4639. smalltalk.SequenceableCollection);
  4640. smalltalk.addMethod(
  4641. unescape('_addLast_'),
  4642. smalltalk.method({
  4643. selector: unescape('addLast%3A'),
  4644. category: 'adding',
  4645. fn: function (anObject){
  4646. var self=this;
  4647. smalltalk.send(self, "_add_", [anObject]);
  4648. return self;},
  4649. args: ["anObject"],
  4650. source: unescape('addLast%3A%20anObject%0A%09self%20add%3A%20anObject'),
  4651. messageSends: ["add:"],
  4652. referencedClasses: []
  4653. }),
  4654. smalltalk.SequenceableCollection);
  4655. smalltalk.addMethod(
  4656. unescape('_withIndexDo_'),
  4657. smalltalk.method({
  4658. selector: unescape('withIndexDo%3A'),
  4659. category: 'enumerating',
  4660. fn: function (aBlock){
  4661. var self=this;
  4662. for(var i=0;i<self.length;i++){aBlock(self[i], i+1);};
  4663. return self;},
  4664. args: ["aBlock"],
  4665. 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'),
  4666. messageSends: [],
  4667. referencedClasses: []
  4668. }),
  4669. smalltalk.SequenceableCollection);
  4670. smalltalk.addMethod(
  4671. unescape('_allButFirst'),
  4672. smalltalk.method({
  4673. selector: unescape('allButFirst'),
  4674. category: 'accessing',
  4675. fn: function (){
  4676. var self=this;
  4677. return smalltalk.send(self, "_copyFrom_to_", [(2), smalltalk.send(self, "_size", [])]);
  4678. return self;},
  4679. args: [],
  4680. source: unescape('allButFirst%0A%09%5Eself%20copyFrom%3A%202%20to%3A%20self%20size'),
  4681. messageSends: ["copyFrom:to:", "size"],
  4682. referencedClasses: []
  4683. }),
  4684. smalltalk.SequenceableCollection);
  4685. smalltalk.addMethod(
  4686. unescape('_allButLast'),
  4687. smalltalk.method({
  4688. selector: unescape('allButLast'),
  4689. category: 'accessing',
  4690. fn: function (){
  4691. var self=this;
  4692. return smalltalk.send(self, "_copyFrom_to_", [(1), ((($receiver = smalltalk.send(self, "_size", [])).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]);
  4693. return self;},
  4694. args: [],
  4695. source: unescape('allButLast%0A%09%5Eself%20copyFrom%3A%201%20to%3A%20self%20size%20-%201'),
  4696. messageSends: ["copyFrom:to:", unescape("-"), "size"],
  4697. referencedClasses: []
  4698. }),
  4699. smalltalk.SequenceableCollection);
  4700. smalltalk.addMethod(
  4701. unescape('_indexOf_'),
  4702. smalltalk.method({
  4703. selector: unescape('indexOf%3A'),
  4704. category: 'accessing',
  4705. fn: function (anObject){
  4706. var self=this;
  4707. return smalltalk.send(self, "_indexOf_ifAbsent_", [anObject, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4708. return self;},
  4709. args: ["anObject"],
  4710. source: unescape('indexOf%3A%20anObject%0A%09%5Eself%20indexOf%3A%20anObject%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  4711. messageSends: ["indexOf:ifAbsent:", "errorNotFound"],
  4712. referencedClasses: []
  4713. }),
  4714. smalltalk.SequenceableCollection);
  4715. smalltalk.addMethod(
  4716. unescape('_indexOf_ifAbsent_'),
  4717. smalltalk.method({
  4718. selector: unescape('indexOf%3AifAbsent%3A'),
  4719. category: 'accessing',
  4720. fn: function (anObject, aBlock){
  4721. var self=this;
  4722. for(var i=0;i<self.length;i++){
  4723. if(self[i].__eq(anObject)) {return i+1}
  4724. }
  4725. return aBlock();
  4726. ;
  4727. return self;},
  4728. args: ["anObject", "aBlock"],
  4729. 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'),
  4730. messageSends: [],
  4731. referencedClasses: []
  4732. }),
  4733. smalltalk.SequenceableCollection);
  4734. smalltalk.addMethod(
  4735. unescape('_indexOf_startingAt_ifAbsent_'),
  4736. smalltalk.method({
  4737. selector: unescape('indexOf%3AstartingAt%3AifAbsent%3A'),
  4738. category: 'accessing',
  4739. fn: function (anObject, start, aBlock){
  4740. var self=this;
  4741. for(var i=start-1;i<self.length;i++){
  4742. if(self[i].__eq(anObject)) {return i+1}
  4743. }
  4744. return aBlock();
  4745. ;
  4746. return self;},
  4747. args: ["anObject", "start", "aBlock"],
  4748. source: unescape('indexOf%3A%20anObject%20startingAt%3A%20start%20ifAbsent%3A%20aBlock%0A%09%3C%0A%09%09for%28var%20i%3Dstart-1%3Bi%3Cself.length%3Bi++%29%7B%0A%09%09%09if%28self%5Bi%5D.__eq%28anObject%29%29%20%7Breturn%20i+1%7D%0A%09%09%7D%0A%09%09return%20aBlock%28%29%3B%0A%09%3E'),
  4749. messageSends: [],
  4750. referencedClasses: []
  4751. }),
  4752. smalltalk.SequenceableCollection);
  4753. smalltalk.addMethod(
  4754. unescape('_indexOf_startingAt_'),
  4755. smalltalk.method({
  4756. selector: unescape('indexOf%3AstartingAt%3A'),
  4757. category: 'accessing',
  4758. fn: function (anObject, start){
  4759. var self=this;
  4760. return smalltalk.send(self, "_indexOf_startingAt_ifAbsent_", [anObject, start, (function(){return (0);})]);
  4761. return self;},
  4762. args: ["anObject", "start"],
  4763. source: unescape('indexOf%3A%20anObject%20startingAt%3A%20start%0A%09%22Answer%20the%20index%20of%20the%20first%20occurence%20of%20anElement%20after%20start%0A%09within%20the%20receiver.%20If%20the%20receiver%20does%20not%20contain%20anElement%2C%20%0A%09answer%200.%22%0A%09%5Eself%20indexOf%3A%20anObject%20startingAt%3A%20start%20ifAbsent%3A%20%5B0%5D'),
  4764. messageSends: ["indexOf:startingAt:ifAbsent:"],
  4765. referencedClasses: []
  4766. }),
  4767. smalltalk.SequenceableCollection);
  4768. smalltalk.addMethod(
  4769. unescape('_reversed'),
  4770. smalltalk.method({
  4771. selector: unescape('reversed'),
  4772. category: 'converting',
  4773. fn: function (){
  4774. var self=this;
  4775. smalltalk.send(self, "_subclassResponsibility", []);
  4776. return self;},
  4777. args: [],
  4778. source: unescape('reversed%0A%09self%20subclassResponsibility'),
  4779. messageSends: ["subclassResponsibility"],
  4780. referencedClasses: []
  4781. }),
  4782. smalltalk.SequenceableCollection);
  4783. smalltalk.addMethod(
  4784. unescape('_atRandom'),
  4785. smalltalk.method({
  4786. selector: unescape('atRandom'),
  4787. category: 'accessing',
  4788. fn: function (){
  4789. var self=this;
  4790. return smalltalk.send(self, "_at_", [smalltalk.send(smalltalk.send(self, "_size", []), "_atRandom", [])]);
  4791. return self;},
  4792. args: [],
  4793. source: unescape('atRandom%0A%09%5E%20self%20at%3A%20self%20size%20atRandom'),
  4794. messageSends: ["at:", "atRandom", "size"],
  4795. referencedClasses: []
  4796. }),
  4797. smalltalk.SequenceableCollection);
  4798. smalltalk.addClass('String', smalltalk.SequenceableCollection, [], 'Kernel');
  4799. smalltalk.addMethod(
  4800. unescape('__eq'),
  4801. smalltalk.method({
  4802. selector: unescape('%3D'),
  4803. category: 'comparing',
  4804. fn: function (aString){
  4805. var self=this;
  4806. try{((($receiver = smalltalk.send(smalltalk.send(aString, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  4807. return String(self) == aString;
  4808. return self;
  4809. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  4810. args: ["aString"],
  4811. source: unescape('%3D%20aString%0A%09aString%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%3Creturn%20String%28self%29%20%3D%3D%20aString%3E'),
  4812. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  4813. referencedClasses: []
  4814. }),
  4815. smalltalk.String);
  4816. smalltalk.addMethod(
  4817. unescape('_size'),
  4818. smalltalk.method({
  4819. selector: unescape('size'),
  4820. category: 'accessing',
  4821. fn: function (){
  4822. var self=this;
  4823. return self.length;
  4824. return self;},
  4825. args: [],
  4826. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  4827. messageSends: [],
  4828. referencedClasses: []
  4829. }),
  4830. smalltalk.String);
  4831. smalltalk.addMethod(
  4832. unescape('_at_'),
  4833. smalltalk.method({
  4834. selector: unescape('at%3A'),
  4835. category: 'accessing',
  4836. fn: function (anIndex){
  4837. var self=this;
  4838. return self[anIndex - 1];
  4839. return self;},
  4840. args: ["anIndex"],
  4841. source: unescape('at%3A%20anIndex%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%3E'),
  4842. messageSends: [],
  4843. referencedClasses: []
  4844. }),
  4845. smalltalk.String);
  4846. smalltalk.addMethod(
  4847. unescape('_at_put_'),
  4848. smalltalk.method({
  4849. selector: unescape('at%3Aput%3A'),
  4850. category: 'accessing',
  4851. fn: function (anIndex, anObject){
  4852. var self=this;
  4853. smalltalk.send(self, "_errorReadOnly", []);
  4854. return self;},
  4855. args: ["anIndex", "anObject"],
  4856. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  4857. messageSends: ["errorReadOnly"],
  4858. referencedClasses: []
  4859. }),
  4860. smalltalk.String);
  4861. smalltalk.addMethod(
  4862. unescape('_at_ifAbsent_'),
  4863. smalltalk.method({
  4864. selector: unescape('at%3AifAbsent%3A'),
  4865. category: 'accessing',
  4866. fn: function (anIndex, aBlock){
  4867. var self=this;
  4868. (($receiver = smalltalk.send(self, "_at_", [anIndex])) == nil || $receiver == undefined) ? (function(){return aBlock;})() : $receiver;
  4869. return self;},
  4870. args: ["anIndex", "aBlock"],
  4871. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%20%20%20%20%09%28self%20at%3A%20anIndex%29%20ifNil%3A%20%5BaBlock%5D'),
  4872. messageSends: ["ifNil:", "at:"],
  4873. referencedClasses: []
  4874. }),
  4875. smalltalk.String);
  4876. smalltalk.addMethod(
  4877. unescape('_escaped'),
  4878. smalltalk.method({
  4879. selector: unescape('escaped'),
  4880. category: 'accessing',
  4881. fn: function (){
  4882. var self=this;
  4883. return escape(self);
  4884. return self;},
  4885. args: [],
  4886. source: unescape('escaped%0A%09%3Creturn%20escape%28self%29%3E'),
  4887. messageSends: [],
  4888. referencedClasses: []
  4889. }),
  4890. smalltalk.String);
  4891. smalltalk.addMethod(
  4892. unescape('_unescaped'),
  4893. smalltalk.method({
  4894. selector: unescape('unescaped'),
  4895. category: 'accessing',
  4896. fn: function (){
  4897. var self=this;
  4898. return unescape(self);
  4899. return self;},
  4900. args: [],
  4901. source: unescape('unescaped%0A%09%3Creturn%20unescape%28self%29%3E'),
  4902. messageSends: [],
  4903. referencedClasses: []
  4904. }),
  4905. smalltalk.String);
  4906. smalltalk.addMethod(
  4907. unescape('_add_'),
  4908. smalltalk.method({
  4909. selector: unescape('add%3A'),
  4910. category: 'adding',
  4911. fn: function (anObject){
  4912. var self=this;
  4913. smalltalk.send(self, "_errorReadOnly", []);
  4914. return self;},
  4915. args: ["anObject"],
  4916. source: unescape('add%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  4917. messageSends: ["errorReadOnly"],
  4918. referencedClasses: []
  4919. }),
  4920. smalltalk.String);
  4921. smalltalk.addMethod(
  4922. unescape('__comma'),
  4923. smalltalk.method({
  4924. selector: unescape('%2C'),
  4925. category: 'copying',
  4926. fn: function (aString){
  4927. var self=this;
  4928. return self + aString;
  4929. return self;},
  4930. args: ["aString"],
  4931. source: unescape('%2C%20aString%0A%09%3Creturn%20self%20+%20aString%3E'),
  4932. messageSends: [],
  4933. referencedClasses: []
  4934. }),
  4935. smalltalk.String);
  4936. smalltalk.addMethod(
  4937. unescape('_copyFrom_to_'),
  4938. smalltalk.method({
  4939. selector: unescape('copyFrom%3Ato%3A'),
  4940. category: 'copying',
  4941. fn: function (anIndex, anotherIndex){
  4942. var self=this;
  4943. return self.substring(anIndex - 1, anotherIndex);
  4944. return self;},
  4945. args: ["anIndex", "anotherIndex"],
  4946. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09%3Creturn%20self.substring%28anIndex%20-%201%2C%20anotherIndex%29%3E'),
  4947. messageSends: [],
  4948. referencedClasses: []
  4949. }),
  4950. smalltalk.String);
  4951. smalltalk.addMethod(
  4952. unescape('_shallowCopy'),
  4953. smalltalk.method({
  4954. selector: unescape('shallowCopy'),
  4955. category: 'copying',
  4956. fn: function (){
  4957. var self=this;
  4958. return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [self]);
  4959. return self;},
  4960. args: [],
  4961. source: unescape('shallowCopy%0A%20%20%20%20%09%5Eself%20class%20fromString%3A%20self'),
  4962. messageSends: ["fromString:", "class"],
  4963. referencedClasses: []
  4964. }),
  4965. smalltalk.String);
  4966. smalltalk.addMethod(
  4967. unescape('_deepCopy'),
  4968. smalltalk.method({
  4969. selector: unescape('deepCopy'),
  4970. category: 'copying',
  4971. fn: function (){
  4972. var self=this;
  4973. return smalltalk.send(self, "_shallowCopy", []);
  4974. return self;},
  4975. args: [],
  4976. source: unescape('deepCopy%0A%20%20%20%20%09%5Eself%20shallowCopy'),
  4977. messageSends: ["shallowCopy"],
  4978. referencedClasses: []
  4979. }),
  4980. smalltalk.String);
  4981. smalltalk.addMethod(
  4982. unescape('_asSelector'),
  4983. smalltalk.method({
  4984. selector: unescape('asSelector'),
  4985. category: 'converting',
  4986. fn: function (){
  4987. var self=this;
  4988. var selector=nil;
  4989. selector=smalltalk.send("_", "__comma", [self]);
  4990. selector=smalltalk.send(selector, "_replace_with_", [":", "_"]);
  4991. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B+%5D"), "_plus"]);
  4992. selector=smalltalk.send(selector, "_replace_with_", [unescape("-"), "_minus"]);
  4993. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B*%5D"), "_star"]);
  4994. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B/%5D"), "_slash"]);
  4995. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3E"), "_gt"]);
  4996. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3C"), "_lt"]);
  4997. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3D"), "_eq"]);
  4998. selector=smalltalk.send(selector, "_replace_with_", [unescape("%2C"), "_comma"]);
  4999. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B@%5D"), "_at"]);
  5000. return selector;
  5001. return self;},
  5002. args: [],
  5003. 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'),
  5004. messageSends: [unescape("%2C"), "replace:with:"],
  5005. referencedClasses: []
  5006. }),
  5007. smalltalk.String);
  5008. smalltalk.addMethod(
  5009. unescape('_asJavascript'),
  5010. smalltalk.method({
  5011. selector: unescape('asJavascript'),
  5012. category: 'converting',
  5013. fn: function (){
  5014. var self=this;
  5015. if(self.search(/^[a-zA-Z0-9_:.$ ]*$/) == -1)
  5016. return "unescape(\"" + escape(self) + "\")";
  5017. else
  5018. return "\"" + self + "\"";
  5019. ;
  5020. return self;},
  5021. args: [],
  5022. 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'),
  5023. messageSends: [],
  5024. referencedClasses: []
  5025. }),
  5026. smalltalk.String);
  5027. smalltalk.addMethod(
  5028. unescape('_replace_with_'),
  5029. smalltalk.method({
  5030. selector: unescape('replace%3Awith%3A'),
  5031. category: 'regular expressions',
  5032. fn: function (aString, anotherString){
  5033. var self=this;
  5034. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [aString, "g"]), anotherString]);
  5035. return self;},
  5036. args: ["aString", "anotherString"],
  5037. 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'),
  5038. messageSends: ["replaceRegexp:with:", "fromString:flag:"],
  5039. referencedClasses: [smalltalk.RegularExpression]
  5040. }),
  5041. smalltalk.String);
  5042. smalltalk.addMethod(
  5043. unescape('_replaceRegexp_with_'),
  5044. smalltalk.method({
  5045. selector: unescape('replaceRegexp%3Awith%3A'),
  5046. category: 'regular expressions',
  5047. fn: function (aRegexp, aString){
  5048. var self=this;
  5049. return self.replace(aRegexp, aString);
  5050. return self;},
  5051. args: ["aRegexp", "aString"],
  5052. source: unescape('replaceRegexp%3A%20aRegexp%20with%3A%20aString%0A%09%3Creturn%20self.replace%28aRegexp%2C%20aString%29%3E'),
  5053. messageSends: [],
  5054. referencedClasses: []
  5055. }),
  5056. smalltalk.String);
  5057. smalltalk.addMethod(
  5058. unescape('_tokenize_'),
  5059. smalltalk.method({
  5060. selector: unescape('tokenize%3A'),
  5061. category: 'converting',
  5062. fn: function (aString){
  5063. var self=this;
  5064. return self.split(aString);
  5065. return self;},
  5066. args: ["aString"],
  5067. source: unescape('tokenize%3A%20aString%0A%09%3Creturn%20self.split%28aString%29%3E'),
  5068. messageSends: [],
  5069. referencedClasses: []
  5070. }),
  5071. smalltalk.String);
  5072. smalltalk.addMethod(
  5073. unescape('_match_'),
  5074. smalltalk.method({
  5075. selector: unescape('match%3A'),
  5076. category: 'regular expressions',
  5077. fn: function (aRegexp){
  5078. var self=this;
  5079. return self.search(aRegexp) != -1;
  5080. return self;},
  5081. args: ["aRegexp"],
  5082. source: unescape('match%3A%20aRegexp%0A%09%3Creturn%20self.search%28aRegexp%29%20%21%3D%20-1%3E'),
  5083. messageSends: [],
  5084. referencedClasses: []
  5085. }),
  5086. smalltalk.String);
  5087. smalltalk.addMethod(
  5088. unescape('_asString'),
  5089. smalltalk.method({
  5090. selector: unescape('asString'),
  5091. category: 'converting',
  5092. fn: function (){
  5093. var self=this;
  5094. return self;
  5095. return self;},
  5096. args: [],
  5097. source: unescape('asString%0A%20%20%20%20%09%5Eself'),
  5098. messageSends: [],
  5099. referencedClasses: []
  5100. }),
  5101. smalltalk.String);
  5102. smalltalk.addMethod(
  5103. unescape('_asNumber'),
  5104. smalltalk.method({
  5105. selector: unescape('asNumber'),
  5106. category: 'converting',
  5107. fn: function (){
  5108. var self=this;
  5109. return Number(self);
  5110. return self;},
  5111. args: [],
  5112. source: unescape('asNumber%0A%09%3Creturn%20Number%28self%29%3E'),
  5113. messageSends: [],
  5114. referencedClasses: []
  5115. }),
  5116. smalltalk.String);
  5117. smalltalk.addMethod(
  5118. unescape('_errorReadOnly'),
  5119. smalltalk.method({
  5120. selector: unescape('errorReadOnly'),
  5121. category: 'error handling',
  5122. fn: function (){
  5123. var self=this;
  5124. smalltalk.send(self, "_error_", [unescape("Object%20is%20read-only")]);
  5125. return self;},
  5126. args: [],
  5127. source: unescape('errorReadOnly%0A%20%20%20%20%09self%20error%3A%20%27Object%20is%20read-only%27'),
  5128. messageSends: ["error:"],
  5129. referencedClasses: []
  5130. }),
  5131. smalltalk.String);
  5132. smalltalk.addMethod(
  5133. unescape('_printString'),
  5134. smalltalk.method({
  5135. selector: unescape('printString'),
  5136. category: 'printing',
  5137. fn: function (){
  5138. var self=this;
  5139. return smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [self]), "__comma", [unescape("%27")]);
  5140. return self;},
  5141. args: [],
  5142. source: unescape('printString%0A%20%20%20%20%09%5E%27%27%27%27%2C%20self%2C%20%27%27%27%27'),
  5143. messageSends: [unescape("%2C")],
  5144. referencedClasses: []
  5145. }),
  5146. smalltalk.String);
  5147. smalltalk.addMethod(
  5148. unescape('_printNl'),
  5149. smalltalk.method({
  5150. selector: unescape('printNl'),
  5151. category: 'printing',
  5152. fn: function (){
  5153. var self=this;
  5154. console.log(self);
  5155. return self;},
  5156. args: [],
  5157. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  5158. messageSends: [],
  5159. referencedClasses: []
  5160. }),
  5161. smalltalk.String);
  5162. smalltalk.addMethod(
  5163. unescape('_isString'),
  5164. smalltalk.method({
  5165. selector: unescape('isString'),
  5166. category: 'testing',
  5167. fn: function (){
  5168. var self=this;
  5169. return true;
  5170. return self;},
  5171. args: [],
  5172. source: unescape('isString%0A%20%20%20%20%09%5Etrue'),
  5173. messageSends: [],
  5174. referencedClasses: []
  5175. }),
  5176. smalltalk.String);
  5177. smalltalk.addMethod(
  5178. unescape('__gt'),
  5179. smalltalk.method({
  5180. selector: unescape('%3E'),
  5181. category: 'comparing',
  5182. fn: function (aString){
  5183. var self=this;
  5184. return String(self) > aString;
  5185. return self;},
  5186. args: ["aString"],
  5187. source: unescape('%3E%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%20aString%3E'),
  5188. messageSends: [],
  5189. referencedClasses: []
  5190. }),
  5191. smalltalk.String);
  5192. smalltalk.addMethod(
  5193. unescape('__lt'),
  5194. smalltalk.method({
  5195. selector: unescape('%3C'),
  5196. category: 'comparing',
  5197. fn: function (aString){
  5198. var self=this;
  5199. return String(self) < aString;
  5200. return self;},
  5201. args: ["aString"],
  5202. source: unescape('%3C%20aString%0A%09%3Creturn%20String%28self%29%20%3C%20aString%3E'),
  5203. messageSends: [],
  5204. referencedClasses: []
  5205. }),
  5206. smalltalk.String);
  5207. smalltalk.addMethod(
  5208. unescape('__gt_eq'),
  5209. smalltalk.method({
  5210. selector: unescape('%3E%3D'),
  5211. category: 'comparing',
  5212. fn: function (aString){
  5213. var self=this;
  5214. return String(self) >= aString;
  5215. return self;},
  5216. args: ["aString"],
  5217. source: unescape('%3E%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%3D%20aString%3E'),
  5218. messageSends: [],
  5219. referencedClasses: []
  5220. }),
  5221. smalltalk.String);
  5222. smalltalk.addMethod(
  5223. unescape('__lt_eq'),
  5224. smalltalk.method({
  5225. selector: unescape('%3C%3D'),
  5226. category: 'comparing',
  5227. fn: function (aString){
  5228. var self=this;
  5229. return String(self) <= aString;
  5230. return self;},
  5231. args: ["aString"],
  5232. source: unescape('%3C%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3C%3D%20aString%3E'),
  5233. messageSends: [],
  5234. referencedClasses: []
  5235. }),
  5236. smalltalk.String);
  5237. smalltalk.addMethod(
  5238. unescape('_remove_'),
  5239. smalltalk.method({
  5240. selector: unescape('remove%3A'),
  5241. category: 'adding',
  5242. fn: function (anObject){
  5243. var self=this;
  5244. smalltalk.send(self, "_errorReadOnly", []);
  5245. return self;},
  5246. args: ["anObject"],
  5247. source: unescape('remove%3A%20anObject%0A%09self%20errorReadOnly'),
  5248. messageSends: ["errorReadOnly"],
  5249. referencedClasses: []
  5250. }),
  5251. smalltalk.String);
  5252. smalltalk.addMethod(
  5253. unescape('_asJSONObject'),
  5254. smalltalk.method({
  5255. selector: unescape('asJSONObject'),
  5256. category: 'converting',
  5257. fn: function (){
  5258. var self=this;
  5259. return self;
  5260. return self;},
  5261. args: [],
  5262. source: unescape('asJSONObject%0A%09%5Eself'),
  5263. messageSends: [],
  5264. referencedClasses: []
  5265. }),
  5266. smalltalk.String);
  5267. smalltalk.addMethod(
  5268. unescape('_trimLeft_'),
  5269. smalltalk.method({
  5270. selector: unescape('trimLeft%3A'),
  5271. category: 'regular expressions',
  5272. fn: function (separators){
  5273. var self=this;
  5274. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [smalltalk.send(smalltalk.send(unescape("%5E%5B"), "__comma", [separators]), "__comma", [unescape("%5D+")]), "g"]), ""]);
  5275. return self;},
  5276. args: ["separators"],
  5277. 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'),
  5278. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  5279. referencedClasses: [smalltalk.RegularExpression]
  5280. }),
  5281. smalltalk.String);
  5282. smalltalk.addMethod(
  5283. unescape('_trimRight_'),
  5284. smalltalk.method({
  5285. selector: unescape('trimRight%3A'),
  5286. category: 'regular expressions',
  5287. fn: function (separators){
  5288. var self=this;
  5289. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [smalltalk.send(smalltalk.send(unescape("%5B"), "__comma", [separators]), "__comma", [unescape("%5D+%24")]), "g"]), ""]);
  5290. return self;},
  5291. args: ["separators"],
  5292. 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'),
  5293. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  5294. referencedClasses: [smalltalk.RegularExpression]
  5295. }),
  5296. smalltalk.String);
  5297. smalltalk.addMethod(
  5298. unescape('_trimLeft'),
  5299. smalltalk.method({
  5300. selector: unescape('trimLeft'),
  5301. category: 'regular expressions',
  5302. fn: function (){
  5303. var self=this;
  5304. return smalltalk.send(self, "_trimLeft_", [unescape("%5Cs")]);
  5305. return self;},
  5306. args: [],
  5307. source: unescape('trimLeft%0A%09%5Eself%20trimLeft%3A%20%27%5Cs%27'),
  5308. messageSends: ["trimLeft:"],
  5309. referencedClasses: []
  5310. }),
  5311. smalltalk.String);
  5312. smalltalk.addMethod(
  5313. unescape('_trimRight'),
  5314. smalltalk.method({
  5315. selector: unescape('trimRight'),
  5316. category: 'regular expressions',
  5317. fn: function (){
  5318. var self=this;
  5319. return smalltalk.send(self, "_trimRight_", [unescape("%5Cs")]);
  5320. return self;},
  5321. args: [],
  5322. source: unescape('trimRight%0A%09%5Eself%20trimRight%3A%20%27%5Cs%27'),
  5323. messageSends: ["trimRight:"],
  5324. referencedClasses: []
  5325. }),
  5326. smalltalk.String);
  5327. smalltalk.addMethod(
  5328. unescape('_trimBoth'),
  5329. smalltalk.method({
  5330. selector: unescape('trimBoth'),
  5331. category: 'regular expressions',
  5332. fn: function (){
  5333. var self=this;
  5334. return smalltalk.send(self, "_trimBoth_", [unescape("%5Cs")]);
  5335. return self;},
  5336. args: [],
  5337. source: unescape('trimBoth%0A%09%5Eself%20trimBoth%3A%20%27%5Cs%27'),
  5338. messageSends: ["trimBoth:"],
  5339. referencedClasses: []
  5340. }),
  5341. smalltalk.String);
  5342. smalltalk.addMethod(
  5343. unescape('_trimBoth_'),
  5344. smalltalk.method({
  5345. selector: unescape('trimBoth%3A'),
  5346. category: 'regular expressions',
  5347. fn: function (separators){
  5348. var self=this;
  5349. return smalltalk.send(smalltalk.send(self, "_trimLeft_", [separators]), "_trimRight_", [separators]);
  5350. return self;},
  5351. args: ["separators"],
  5352. source: unescape('trimBoth%3A%20separators%0A%0A%20%20%20%20%09%5E%28self%20trimLeft%3A%20separators%29%20trimRight%3A%20separators'),
  5353. messageSends: ["trimRight:", "trimLeft:"],
  5354. referencedClasses: []
  5355. }),
  5356. smalltalk.String);
  5357. smalltalk.addMethod(
  5358. unescape('_asLowercase'),
  5359. smalltalk.method({
  5360. selector: unescape('asLowercase'),
  5361. category: 'converting',
  5362. fn: function (){
  5363. var self=this;
  5364. return self.toLowerCase();
  5365. return self;},
  5366. args: [],
  5367. source: unescape('asLowercase%0A%09%3Creturn%20self.toLowerCase%28%29%3E'),
  5368. messageSends: [],
  5369. referencedClasses: []
  5370. }),
  5371. smalltalk.String);
  5372. smalltalk.addMethod(
  5373. unescape('_asUppercase'),
  5374. smalltalk.method({
  5375. selector: unescape('asUppercase'),
  5376. category: 'converting',
  5377. fn: function (){
  5378. var self=this;
  5379. return self.toUpperCase();
  5380. return self;},
  5381. args: [],
  5382. source: unescape('asUppercase%0A%09%3Creturn%20self.toUpperCase%28%29%3E'),
  5383. messageSends: [],
  5384. referencedClasses: []
  5385. }),
  5386. smalltalk.String);
  5387. smalltalk.addMethod(
  5388. unescape('_join_'),
  5389. smalltalk.method({
  5390. selector: unescape('join%3A'),
  5391. category: 'split join',
  5392. fn: function (aCollection){
  5393. var self=this;
  5394. return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(stream){return smalltalk.send(aCollection, "_do_separatedBy_", [(function(each){return smalltalk.send(stream, "_nextPutAll_", [smalltalk.send(each, "_asString", [])]);}), (function(){return smalltalk.send(stream, "_nextPutAll_", [self]);})]);})]);
  5395. return self;},
  5396. args: ["aCollection"],
  5397. source: unescape('join%3A%20aCollection%20%0A%09%5E%20String%0A%09%09streamContents%3A%20%5B%3Astream%20%7C%20aCollection%0A%09%09%09%09do%3A%20%5B%3Aeach%20%7C%20stream%20nextPutAll%3A%20each%20asString%5D%20%0A%09%09%09%09separatedBy%3A%20%5Bstream%20nextPutAll%3A%20self%5D%5D'),
  5398. messageSends: ["streamContents:", "do:separatedBy:", "nextPutAll:", "asString"],
  5399. referencedClasses: [smalltalk.String]
  5400. }),
  5401. smalltalk.String);
  5402. smalltalk.addMethod(
  5403. unescape('_includesSubString_'),
  5404. smalltalk.method({
  5405. selector: unescape('includesSubString%3A'),
  5406. category: 'testing',
  5407. fn: function (subString){
  5408. var self=this;
  5409. return self.indexOf(subString) != -1 ;
  5410. return self;},
  5411. args: ["subString"],
  5412. source: unescape('includesSubString%3A%20subString%0A%09%3C%20return%20self.indexOf%28subString%29%20%21%3D%20-1%20%3E'),
  5413. messageSends: [],
  5414. referencedClasses: []
  5415. }),
  5416. smalltalk.String);
  5417. smalltalk.addMethod(
  5418. unescape('_asciiValue'),
  5419. smalltalk.method({
  5420. selector: unescape('asciiValue'),
  5421. category: 'accessing',
  5422. fn: function (){
  5423. var self=this;
  5424. return self.charCodeAt(0);;
  5425. return self;},
  5426. args: [],
  5427. source: unescape('asciiValue%0A%09%3Creturn%20self.charCodeAt%280%29%3B%3E'),
  5428. messageSends: [],
  5429. referencedClasses: []
  5430. }),
  5431. smalltalk.String);
  5432. smalltalk.addMethod(
  5433. unescape('_lineIndicesDo_'),
  5434. smalltalk.method({
  5435. selector: unescape('lineIndicesDo%3A'),
  5436. category: 'split join',
  5437. fn: function (aBlock){
  5438. var self=this;
  5439. try{var cr=nil;
  5440. var lf=nil;
  5441. var start=nil;
  5442. var sz=nil;
  5443. var nextLF=nil;
  5444. var nextCR=nil;
  5445. start=(1);
  5446. sz=smalltalk.send(self, "_size", []);
  5447. cr=smalltalk.send((smalltalk.String || String), "_cr", []);
  5448. nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, (1)]);
  5449. lf=smalltalk.send((smalltalk.String || String), "_lf", []);
  5450. nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, (1)]);
  5451. (function(){while((function(){return ((($receiver = start).klass === smalltalk.Number) ? $receiver <=sz : smalltalk.send($receiver, "__lt_eq", [sz]));})()) {(function(){((($receiver = smalltalk.send(smalltalk.send(nextLF, "__eq", [(0)]), "_and_", [(function(){return smalltalk.send(nextCR, "__eq", [(0)]);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, sz, sz]);return (function(){throw({name: 'stReturn', selector: '_lineIndicesDo_', fn: function(){return self}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, sz, sz]);return (function(){throw({name: 'stReturn', selector: '_lineIndicesDo_', fn: function(){return self}})})();})]));return ((($receiver = smalltalk.send(smalltalk.send(nextCR, "__eq", [(0)]), "_or_", [(function(){return smalltalk.send((0) < nextLF, "_and_", [(function(){return ((($receiver = nextLF).klass === smalltalk.Number) ? $receiver <nextCR : smalltalk.send($receiver, "__lt", [nextCR]));})]);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextLF).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);})() : (function(){return ((($receiver = smalltalk.send((1) + nextCR, "__eq", [nextLF])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);})() : (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);start=(1) + nextCR;return nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);}), (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);start=(1) + nextCR;return nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextLF).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);}), (function(){return ((($receiver = smalltalk.send((1) + nextCR, "__eq", [nextLF])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);})() : (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);start=(1) + nextCR;return nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);}), (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);start=(1) + nextCR;return nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);})]));})]));})()}})();
  5452. return self;
  5453. } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineIndicesDo_'){return e.fn()} throw(e)}},
  5454. args: ["aBlock"],
  5455. source: unescape('lineIndicesDo%3A%20aBlock%0A%09%22execute%20aBlock%20with%203%20arguments%20for%20each%20line%3A%0A%09-%20start%20index%20of%20line%0A%09-%20end%20index%20of%20line%20without%20line%20delimiter%0A%09-%20end%20index%20of%20line%20including%20line%20delimiter%28s%29%20CR%2C%20LF%20or%20CRLF%22%0A%09%0A%09%7C%20cr%20lf%20start%20sz%20nextLF%20nextCR%20%7C%0A%09start%20%3A%3D%201.%0A%09sz%20%3A%3D%20self%20size.%0A%09cr%20%3A%3D%20String%20cr.%0A%09nextCR%20%3A%3D%20self%20indexOf%3A%20cr%20startingAt%3A%201.%0A%09lf%20%3A%3D%20String%20lf.%0A%09nextLF%20%3A%3D%20self%20indexOf%3A%20lf%20startingAt%3A%201.%0A%09%5B%20start%20%3C%3D%20sz%20%5D%20whileTrue%3A%20%5B%0A%09%09%28nextLF%20%3D%200%20and%3A%20%5B%20nextCR%20%3D%200%20%5D%29%0A%09%09%09ifTrue%3A%20%5B%20%22No%20more%20CR%2C%20nor%20LF%2C%20the%20string%20is%20over%22%0A%09%09%09%09%09aBlock%20value%3A%20start%20value%3A%20sz%20value%3A%20sz.%0A%09%09%09%09%09%5Eself%20%5D.%0A%09%09%28nextCR%20%3D%200%20or%3A%20%5B%200%20%3C%20nextLF%20and%3A%20%5B%20nextLF%20%3C%20nextCR%20%5D%20%5D%29%0A%09%09%09ifTrue%3A%20%5B%20%22Found%20a%20LF%22%0A%09%09%09%09%09aBlock%20value%3A%20start%20value%3A%20nextLF%20-%201%20value%3A%20nextLF.%0A%09%09%09%09%09start%20%3A%3D%201%20+%20nextLF.%0A%09%09%09%09%09nextLF%20%3A%3D%20self%20indexOf%3A%20lf%20startingAt%3A%20start%20%5D%0A%09%09%09ifFalse%3A%20%5B%201%20+%20nextCR%20%3D%20nextLF%0A%09%09%09%09ifTrue%3A%20%5B%20%22Found%20a%20CR-LF%20pair%22%0A%09%09%09%09%09aBlock%20value%3A%20start%20value%3A%20nextCR%20-%201%20value%3A%20nextLF.%0A%09%09%09%09%09start%20%3A%3D%201%20+%20nextLF.%0A%09%09%09%09%09nextCR%20%3A%3D%20self%20indexOf%3A%20cr%20startingAt%3A%20start.%0A%09%09%09%09%09nextLF%20%3A%3D%20self%20indexOf%3A%20lf%20startingAt%3A%20start%20%5D%0A%09%09%09%09ifFalse%3A%20%5B%20%22Found%20a%20CR%22%0A%09%09%09%09%09aBlock%20value%3A%20start%20value%3A%20nextCR%20-%201%20value%3A%20nextCR.%0A%09%09%09%09%09start%20%3A%3D%201%20+%20nextCR.%0A%09%09%09%09%09nextCR%20%3A%3D%20self%20indexOf%3A%20cr%20startingAt%3A%20start%20%5D%5D%5D'),
  5456. messageSends: ["size", "cr", "indexOf:startingAt:", "lf", "whileTrue:", unescape("%3C%3D"), "ifTrue:", "and:", unescape("%3D"), "value:value:value:", "ifTrue:ifFalse:", "or:", unescape("%3C"), unescape("-"), unescape("+")],
  5457. referencedClasses: [smalltalk.String]
  5458. }),
  5459. smalltalk.String);
  5460. smalltalk.addMethod(
  5461. unescape('_linesDo_'),
  5462. smalltalk.method({
  5463. selector: unescape('linesDo%3A'),
  5464. category: 'split join',
  5465. fn: function (aBlock){
  5466. var self=this;
  5467. smalltalk.send(self, "_lineIndicesDo_", [(function(start, endWithoutDelimiters, end){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])]);})]);
  5468. return self;},
  5469. args: ["aBlock"],
  5470. source: unescape('linesDo%3A%20aBlock%0A%09%22Execute%20aBlock%20with%20each%20line%20in%20this%20string.%20The%20terminating%20line%0A%09delimiters%20CR%2C%20LF%20or%20CRLF%20pairs%20are%20not%20included%20in%20what%20is%20passed%20to%20aBlock%22%0A%0A%09self%20lineIndicesDo%3A%20%5B%3Astart%20%3AendWithoutDelimiters%20%3Aend%20%7C%0A%09%09aBlock%20value%3A%20%28self%20copyFrom%3A%20start%20to%3A%20endWithoutDelimiters%29%5D'),
  5471. messageSends: ["lineIndicesDo:", "value:", "copyFrom:to:"],
  5472. referencedClasses: []
  5473. }),
  5474. smalltalk.String);
  5475. smalltalk.addMethod(
  5476. unescape('_lines'),
  5477. smalltalk.method({
  5478. selector: unescape('lines'),
  5479. category: 'split join',
  5480. fn: function (){
  5481. var self=this;
  5482. var lines=nil;
  5483. lines=smalltalk.send((smalltalk.Array || Array), "_new", []);
  5484. smalltalk.send(self, "_linesDo_", [(function(aLine){return smalltalk.send(lines, "_add_", [aLine]);})]);
  5485. return lines;
  5486. return self;},
  5487. args: [],
  5488. source: unescape('lines%0A%09%22Answer%20an%20array%20of%20lines%20composing%20this%20receiver%20without%20the%20line%20ending%20delimiters.%22%0A%0A%09%7C%20lines%20%7C%0A%09lines%20%3A%3D%20Array%20new.%0A%09self%20linesDo%3A%20%5B%3AaLine%20%7C%20lines%20add%3A%20aLine%5D.%0A%09%5Elines'),
  5489. messageSends: ["new", "linesDo:", "add:"],
  5490. referencedClasses: [smalltalk.Array]
  5491. }),
  5492. smalltalk.String);
  5493. smalltalk.addMethod(
  5494. unescape('_lineNumber_'),
  5495. smalltalk.method({
  5496. selector: unescape('lineNumber%3A'),
  5497. category: 'split join',
  5498. fn: function (anIndex){
  5499. var self=this;
  5500. try{var lineCount=nil;
  5501. lineCount=(0);
  5502. smalltalk.send(self, "_lineIndicesDo_", [(function(start, endWithoutDelimiters, end){return ((($receiver = smalltalk.send(lineCount=((($receiver = lineCount).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])), "__eq", [anIndex])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])}})})();})]));})]);
  5503. (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return nil}})})();
  5504. return self;
  5505. } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineNumber_'){return e.fn()} throw(e)}},
  5506. args: ["anIndex"],
  5507. source: unescape('lineNumber%3A%20anIndex%0A%09%22Answer%20a%20string%20containing%20the%20characters%20in%20the%20given%20line%20number.%22%0A%0A%09%7C%20lineCount%20%7C%0A%09lineCount%20%3A%3D%200.%0A%09self%20lineIndicesDo%3A%20%5B%3Astart%20%3AendWithoutDelimiters%20%3Aend%20%7C%0A%09%09%28lineCount%20%3A%3D%20lineCount%20+%201%29%20%3D%20anIndex%20ifTrue%3A%20%5B%5Eself%20copyFrom%3A%20start%20to%3A%20endWithoutDelimiters%5D%5D.%0A%09%5Enil'),
  5508. messageSends: ["lineIndicesDo:", "ifTrue:", unescape("%3D"), unescape("+"), "copyFrom:to:"],
  5509. referencedClasses: []
  5510. }),
  5511. smalltalk.String);
  5512. smalltalk.addMethod(
  5513. unescape('_reversed'),
  5514. smalltalk.method({
  5515. selector: unescape('reversed'),
  5516. category: 'converting',
  5517. fn: function (){
  5518. var self=this;
  5519. return self.split("").reverse().join("");
  5520. return self;},
  5521. args: [],
  5522. source: unescape('reversed%0A%09%3Creturn%20self.split%28%22%22%29.reverse%28%29.join%28%22%22%29%3E'),
  5523. messageSends: [],
  5524. referencedClasses: []
  5525. }),
  5526. smalltalk.String);
  5527. smalltalk.addMethod(
  5528. unescape('__eq_eq'),
  5529. smalltalk.method({
  5530. selector: unescape('%3D%3D'),
  5531. category: 'comparing',
  5532. fn: function (aString){
  5533. var self=this;
  5534. try{((($receiver = smalltalk.send(smalltalk.send(aString, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})]));
  5535. return String(self) === String(aString);
  5536. return self;
  5537. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  5538. args: ["aString"],
  5539. source: unescape('%3D%3D%20aString%0A%09aString%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%3Creturn%20String%28self%29%20%3D%3D%3D%20String%28aString%29%3E'),
  5540. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  5541. referencedClasses: []
  5542. }),
  5543. smalltalk.String);
  5544. smalltalk.addMethod(
  5545. unescape('_asJavaScriptSelector'),
  5546. smalltalk.method({
  5547. selector: unescape('asJavaScriptSelector'),
  5548. category: 'converting',
  5549. fn: function (){
  5550. var self=this;
  5551. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_asSelector", []), "_replace_with_", [unescape("%5E_"), ""]), "_replace_with_", [unescape("_.*"), ""]);
  5552. return self;},
  5553. args: [],
  5554. source: unescape('asJavaScriptSelector%0A%09%5E%28self%20asSelector%20replace%3A%20%27%5E_%27%20with%3A%20%27%27%29%20replace%3A%20%27_.*%27%20with%3A%20%27%27.'),
  5555. messageSends: ["replace:with:", "asSelector"],
  5556. referencedClasses: []
  5557. }),
  5558. smalltalk.String);
  5559. smalltalk.addMethod(
  5560. unescape('_streamClass'),
  5561. smalltalk.method({
  5562. selector: unescape('streamClass'),
  5563. category: 'accessing',
  5564. fn: function (){
  5565. var self=this;
  5566. return (smalltalk.StringStream || StringStream);
  5567. return self;},
  5568. args: [],
  5569. source: unescape('streamClass%0A%09%20%20%20%20%5EStringStream'),
  5570. messageSends: [],
  5571. referencedClasses: [smalltalk.nil]
  5572. }),
  5573. smalltalk.String.klass);
  5574. smalltalk.addMethod(
  5575. unescape('_fromString_'),
  5576. smalltalk.method({
  5577. selector: unescape('fromString%3A'),
  5578. category: 'instance creation',
  5579. fn: function (aString){
  5580. var self=this;
  5581. return new self.fn(aString);
  5582. return self;},
  5583. args: ["aString"],
  5584. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%3Creturn%20new%20self.fn%28aString%29%3E'),
  5585. messageSends: [],
  5586. referencedClasses: []
  5587. }),
  5588. smalltalk.String.klass);
  5589. smalltalk.addMethod(
  5590. unescape('_cr'),
  5591. smalltalk.method({
  5592. selector: unescape('cr'),
  5593. category: 'accessing',
  5594. fn: function (){
  5595. var self=this;
  5596. return '\r';
  5597. return self;},
  5598. args: [],
  5599. source: unescape('cr%0A%09%3Creturn%20%27%5Cr%27%3E'),
  5600. messageSends: [],
  5601. referencedClasses: []
  5602. }),
  5603. smalltalk.String.klass);
  5604. smalltalk.addMethod(
  5605. unescape('_lf'),
  5606. smalltalk.method({
  5607. selector: unescape('lf'),
  5608. category: 'accessing',
  5609. fn: function (){
  5610. var self=this;
  5611. return '\n';
  5612. return self;},
  5613. args: [],
  5614. source: unescape('lf%0A%09%3Creturn%20%27%5Cn%27%3E'),
  5615. messageSends: [],
  5616. referencedClasses: []
  5617. }),
  5618. smalltalk.String.klass);
  5619. smalltalk.addMethod(
  5620. unescape('_space'),
  5621. smalltalk.method({
  5622. selector: unescape('space'),
  5623. category: 'accessing',
  5624. fn: function (){
  5625. var self=this;
  5626. return ' ';
  5627. return self;},
  5628. args: [],
  5629. source: unescape('space%0A%09%3Creturn%20%27%20%27%3E'),
  5630. messageSends: [],
  5631. referencedClasses: []
  5632. }),
  5633. smalltalk.String.klass);
  5634. smalltalk.addMethod(
  5635. unescape('_tab'),
  5636. smalltalk.method({
  5637. selector: unescape('tab'),
  5638. category: 'accessing',
  5639. fn: function (){
  5640. var self=this;
  5641. return '\t';
  5642. return self;},
  5643. args: [],
  5644. source: unescape('tab%0A%09%3Creturn%20%27%5Ct%27%3E'),
  5645. messageSends: [],
  5646. referencedClasses: []
  5647. }),
  5648. smalltalk.String.klass);
  5649. smalltalk.addMethod(
  5650. unescape('_crlf'),
  5651. smalltalk.method({
  5652. selector: unescape('crlf'),
  5653. category: 'accessing',
  5654. fn: function (){
  5655. var self=this;
  5656. return '\r\n';
  5657. return self;},
  5658. args: [],
  5659. source: unescape('crlf%0A%09%3Creturn%20%27%5Cr%5Cn%27%3E'),
  5660. messageSends: [],
  5661. referencedClasses: []
  5662. }),
  5663. smalltalk.String.klass);
  5664. smalltalk.addMethod(
  5665. unescape('_streamContents_'),
  5666. smalltalk.method({
  5667. selector: unescape('streamContents%3A'),
  5668. category: 'instance creation',
  5669. fn: function (blockWithArg){
  5670. var self=this;
  5671. var stream=nil;
  5672. stream=smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [smalltalk.send((smalltalk.String || String), "_new", [])]);
  5673. smalltalk.send(blockWithArg, "_value_", [stream]);
  5674. return smalltalk.send(stream, "_contents", []);
  5675. return self;},
  5676. args: ["blockWithArg"],
  5677. source: unescape('streamContents%3A%20blockWithArg%0A%09%7Cstream%7C%0A%09stream%20%3A%3D%20%28self%20streamClass%20on%3A%20String%20new%29.%0A%09blockWithArg%20value%3A%20stream.%0A%09%5E%20stream%20contents'),
  5678. messageSends: ["on:", "streamClass", "new", "value:", "contents"],
  5679. referencedClasses: [smalltalk.String]
  5680. }),
  5681. smalltalk.String.klass);
  5682. smalltalk.addMethod(
  5683. unescape('_value_'),
  5684. smalltalk.method({
  5685. selector: unescape('value%3A'),
  5686. category: 'instance creation',
  5687. fn: function (aUTFCharCode){
  5688. var self=this;
  5689. return String.fromCharCode(aUTFCharCode);;
  5690. return self;},
  5691. args: ["aUTFCharCode"],
  5692. source: unescape('value%3A%20aUTFCharCode%0A%0A%09%3Creturn%20String.fromCharCode%28aUTFCharCode%29%3B%3E'),
  5693. messageSends: [],
  5694. referencedClasses: []
  5695. }),
  5696. smalltalk.String.klass);
  5697. smalltalk.addClass('Array', smalltalk.SequenceableCollection, [], 'Kernel');
  5698. smalltalk.addMethod(
  5699. unescape('_size'),
  5700. smalltalk.method({
  5701. selector: unescape('size'),
  5702. category: 'accessing',
  5703. fn: function (){
  5704. var self=this;
  5705. return self.length;
  5706. return self;},
  5707. args: [],
  5708. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  5709. messageSends: [],
  5710. referencedClasses: []
  5711. }),
  5712. smalltalk.Array);
  5713. smalltalk.addMethod(
  5714. unescape('_at_put_'),
  5715. smalltalk.method({
  5716. selector: unescape('at%3Aput%3A'),
  5717. category: 'accessing',
  5718. fn: function (anIndex, anObject){
  5719. var self=this;
  5720. return self[anIndex - 1] = anObject;
  5721. return self;},
  5722. args: ["anIndex", "anObject"],
  5723. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%20%3D%20anObject%3E'),
  5724. messageSends: [],
  5725. referencedClasses: []
  5726. }),
  5727. smalltalk.Array);
  5728. smalltalk.addMethod(
  5729. unescape('_at_ifAbsent_'),
  5730. smalltalk.method({
  5731. selector: unescape('at%3AifAbsent%3A'),
  5732. category: 'accessing',
  5733. fn: function (anIndex, aBlock){
  5734. var self=this;
  5735. var value = self[anIndex - 1];
  5736. if(value === undefined) {
  5737. return aBlock();
  5738. } else {
  5739. return value;
  5740. }
  5741. ;
  5742. return self;},
  5743. args: ["anIndex", "aBlock"],
  5744. 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'),
  5745. messageSends: [],
  5746. referencedClasses: []
  5747. }),
  5748. smalltalk.Array);
  5749. smalltalk.addMethod(
  5750. unescape('_add_'),
  5751. smalltalk.method({
  5752. selector: unescape('add%3A'),
  5753. category: 'adding/removing',
  5754. fn: function (anObject){
  5755. var self=this;
  5756. self.push(anObject); return anObject;;
  5757. return self;},
  5758. args: ["anObject"],
  5759. source: unescape('add%3A%20anObject%0A%09%3Cself.push%28anObject%29%3B%20return%20anObject%3B%3E'),
  5760. messageSends: [],
  5761. referencedClasses: []
  5762. }),
  5763. smalltalk.Array);
  5764. smalltalk.addMethod(
  5765. unescape('_shallowCopy'),
  5766. smalltalk.method({
  5767. selector: unescape('shallowCopy'),
  5768. category: 'copying',
  5769. fn: function (){
  5770. var self=this;
  5771. var newCollection=nil;
  5772. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5773. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [each]);})]);
  5774. return newCollection;
  5775. return self;},
  5776. args: [],
  5777. 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'),
  5778. messageSends: ["new", "class", "do:", "add:"],
  5779. referencedClasses: []
  5780. }),
  5781. smalltalk.Array);
  5782. smalltalk.addMethod(
  5783. unescape('_deepCopy'),
  5784. smalltalk.method({
  5785. selector: unescape('deepCopy'),
  5786. category: 'copying',
  5787. fn: function (){
  5788. var self=this;
  5789. var newCollection=nil;
  5790. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5791. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(each, "_deepCopy", [])]);})]);
  5792. return newCollection;
  5793. return self;},
  5794. args: [],
  5795. 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'),
  5796. messageSends: ["new", "class", "do:", "add:", "deepCopy"],
  5797. referencedClasses: []
  5798. }),
  5799. smalltalk.Array);
  5800. smalltalk.addMethod(
  5801. unescape('_copyFrom_to_'),
  5802. smalltalk.method({
  5803. selector: unescape('copyFrom%3Ato%3A'),
  5804. category: 'copying',
  5805. fn: function (anIndex, anotherIndex){
  5806. var self=this;
  5807. var array=nil;
  5808. array=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5809. smalltalk.send(anIndex, "_to_do_", [anotherIndex, (function(each){return smalltalk.send(array, "_add_", [smalltalk.send(self, "_at_", [each])]);})]);
  5810. return array;
  5811. return self;},
  5812. args: ["anIndex", "anotherIndex"],
  5813. 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'),
  5814. messageSends: ["new", "class", "to:do:", "add:", "at:"],
  5815. referencedClasses: []
  5816. }),
  5817. smalltalk.Array);
  5818. smalltalk.addMethod(
  5819. unescape('_join_'),
  5820. smalltalk.method({
  5821. selector: unescape('join%3A'),
  5822. category: 'enumerating',
  5823. fn: function (aString){
  5824. var self=this;
  5825. return self.join(aString);
  5826. return self;},
  5827. args: ["aString"],
  5828. source: unescape('join%3A%20aString%0A%09%3Creturn%20self.join%28aString%29%3E'),
  5829. messageSends: [],
  5830. referencedClasses: []
  5831. }),
  5832. smalltalk.Array);
  5833. smalltalk.addMethod(
  5834. unescape('_asJavascript'),
  5835. smalltalk.method({
  5836. selector: unescape('asJavascript'),
  5837. category: 'converting',
  5838. fn: function (){
  5839. var self=this;
  5840. 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")]);
  5841. return self;},
  5842. args: [],
  5843. 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'),
  5844. messageSends: [unescape("%2C"), "join:", "collect:", "asJavascript"],
  5845. referencedClasses: []
  5846. }),
  5847. smalltalk.Array);
  5848. smalltalk.addMethod(
  5849. unescape('_sort'),
  5850. smalltalk.method({
  5851. selector: unescape('sort'),
  5852. category: 'enumerating',
  5853. fn: function (){
  5854. var self=this;
  5855. return smalltalk.send(self, "_basicPerform_", ["sort"]);
  5856. return self;},
  5857. args: [],
  5858. source: unescape('sort%0A%20%20%20%20%5Eself%20basicPerform%3A%20%27sort%27'),
  5859. messageSends: ["basicPerform:"],
  5860. referencedClasses: []
  5861. }),
  5862. smalltalk.Array);
  5863. smalltalk.addMethod(
  5864. unescape('_sort_'),
  5865. smalltalk.method({
  5866. selector: unescape('sort%3A'),
  5867. category: 'enumerating',
  5868. fn: function (aBlock){
  5869. var self=this;
  5870. return self.sort(function(a, b) {
  5871. if(aBlock(a,b)) {return -1} else {return 1}
  5872. })
  5873. ;
  5874. return self;},
  5875. args: ["aBlock"],
  5876. source: unescape('sort%3A%20aBlock%0A%09%3C%0A%09%09return%20self.sort%28function%28a%2C%20b%29%20%7B%0A%09%09%09if%28aBlock%28a%2Cb%29%29%20%7Breturn%20-1%7D%20else%20%7Breturn%201%7D%0A%09%09%7D%29%0A%09%3E'),
  5877. messageSends: [],
  5878. referencedClasses: []
  5879. }),
  5880. smalltalk.Array);
  5881. smalltalk.addMethod(
  5882. unescape('_remove_'),
  5883. smalltalk.method({
  5884. selector: unescape('remove%3A'),
  5885. category: 'adding/removing',
  5886. fn: function (anObject){
  5887. var self=this;
  5888. for(var i=0;i<self.length;i++) {
  5889. if(self[i] == anObject) {
  5890. self.splice(i,1);
  5891. break;
  5892. }
  5893. }
  5894. ;
  5895. return self;},
  5896. args: ["anObject"],
  5897. 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'),
  5898. messageSends: [],
  5899. referencedClasses: []
  5900. }),
  5901. smalltalk.Array);
  5902. smalltalk.addMethod(
  5903. unescape('_sorted'),
  5904. smalltalk.method({
  5905. selector: unescape('sorted'),
  5906. category: 'enumerating',
  5907. fn: function (){
  5908. var self=this;
  5909. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort", []);
  5910. return self;},
  5911. args: [],
  5912. source: unescape('sorted%0A%09%5Eself%20copy%20sort'),
  5913. messageSends: ["sort", "copy"],
  5914. referencedClasses: []
  5915. }),
  5916. smalltalk.Array);
  5917. smalltalk.addMethod(
  5918. unescape('_sorted_'),
  5919. smalltalk.method({
  5920. selector: unescape('sorted%3A'),
  5921. category: 'enumerating',
  5922. fn: function (aBlock){
  5923. var self=this;
  5924. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort_", [aBlock]);
  5925. return self;},
  5926. args: ["aBlock"],
  5927. source: unescape('sorted%3A%20aBlock%0A%09%5Eself%20copy%20sort%3A%20aBlock'),
  5928. messageSends: ["sort:", "copy"],
  5929. referencedClasses: []
  5930. }),
  5931. smalltalk.Array);
  5932. smalltalk.addMethod(
  5933. unescape('_asJSONObject'),
  5934. smalltalk.method({
  5935. selector: unescape('asJSONObject'),
  5936. category: 'converting',
  5937. fn: function (){
  5938. var self=this;
  5939. return smalltalk.send(self, "_collect_", [(function(each){return smalltalk.send(each, "_asJSONObject", []);})]);
  5940. return self;},
  5941. args: [],
  5942. source: unescape('asJSONObject%0A%09%5Eself%20collect%3A%20%5B%3Aeach%20%7C%20each%20asJSONObject%5D'),
  5943. messageSends: ["collect:", "asJSONObject"],
  5944. referencedClasses: []
  5945. }),
  5946. smalltalk.Array);
  5947. smalltalk.addMethod(
  5948. unescape('_removeFrom_to_'),
  5949. smalltalk.method({
  5950. selector: unescape('removeFrom%3Ato%3A'),
  5951. category: 'adding/removing',
  5952. fn: function (aNumber, anotherNumber){
  5953. var self=this;
  5954. self.splice(aNumber - 1,anotherNumber - 1);
  5955. return self;},
  5956. args: ["aNumber", "anotherNumber"],
  5957. source: unescape('removeFrom%3A%20aNumber%20to%3A%20anotherNumber%0A%09%3Cself.splice%28aNumber%20-%201%2CanotherNumber%20-%201%29%3E'),
  5958. messageSends: [],
  5959. referencedClasses: []
  5960. }),
  5961. smalltalk.Array);
  5962. smalltalk.addMethod(
  5963. unescape('_printString'),
  5964. smalltalk.method({
  5965. selector: unescape('printString'),
  5966. category: 'enumerating',
  5967. fn: function (){
  5968. var self=this;
  5969. var str=nil;
  5970. str=smalltalk.send("", "_writeStream", []);
  5971. smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.SequenceableCollection), "__comma", [unescape("%20%28")])]);
  5972. smalltalk.send(self, "_do_separatedBy_", [(function(each){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(each, "_printString", [])]);}), (function(){return smalltalk.send(str, "_nextPutAll_", [" "]);})]);
  5973. smalltalk.send(str, "_nextPutAll_", [unescape("%29")]);
  5974. return smalltalk.send(str, "_contents", []);
  5975. return self;},
  5976. args: [],
  5977. source: unescape('printString%0A%09%7C%20str%20%7C%0A%09str%20%3A%3D%20%27%27%20writeStream.%0A%09str%20nextPutAll%3A%20super%20printString%2C%20%27%20%28%27.%0A%09self%20%0A%09%09do%3A%20%5B%3Aeach%20%7C%20str%20nextPutAll%3A%20each%20printString%5D%0A%09%09separatedBy%3A%20%5Bstr%20nextPutAll%3A%20%27%20%27%5D.%0A%09str%20nextPutAll%3A%20%27%29%27.%0A%09%5Estr%20contents'),
  5978. messageSends: ["writeStream", "nextPutAll:", unescape("%2C"), "printString", "do:separatedBy:", "contents"],
  5979. referencedClasses: []
  5980. }),
  5981. smalltalk.Array);
  5982. smalltalk.addMethod(
  5983. unescape('_reversed'),
  5984. smalltalk.method({
  5985. selector: unescape('reversed'),
  5986. category: 'converting',
  5987. fn: function (){
  5988. var self=this;
  5989. return self._copy().reverse();
  5990. return self;},
  5991. args: [],
  5992. source: unescape('reversed%0A%09%3Creturn%20self._copy%28%29.reverse%28%29%3E'),
  5993. messageSends: [],
  5994. referencedClasses: []
  5995. }),
  5996. smalltalk.Array);
  5997. smalltalk.addMethod(
  5998. unescape('__eq'),
  5999. smalltalk.method({
  6000. selector: unescape('%3D'),
  6001. category: 'comparing',
  6002. fn: function (aCollection){
  6003. var self=this;
  6004. try{((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aCollection, "_class", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [smalltalk.send(aCollection, "_size", [])]);})])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  6005. smalltalk.send(self, "_withIndexDo_", [(function(each, i){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_at_", [i]), "__eq", [each])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));})]);
  6006. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return true}})})();
  6007. return self;
  6008. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  6009. args: ["aCollection"],
  6010. source: unescape('%3D%20aCollection%0A%09%28self%20class%20%3D%20aCollection%20class%20and%3A%20%5B%0A%20%20%20%20%20%20%20%20%09self%20size%20%3D%20aCollection%20size%5D%29%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09self%20withIndexDo%3A%20%5B%3Aeach%20%3Ai%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%28aCollection%20at%3A%20i%29%20%3D%20each%20ifFalse%3A%20%5B%5Efalse%5D%5D.%0A%09%5Etrue'),
  6011. messageSends: ["ifFalse:", "and:", unescape("%3D"), "class", "size", "withIndexDo:", "at:"],
  6012. referencedClasses: []
  6013. }),
  6014. smalltalk.Array);
  6015. smalltalk.addClass('RegularExpression', smalltalk.Object, [], 'Kernel');
  6016. smalltalk.addMethod(
  6017. unescape('_compile_'),
  6018. smalltalk.method({
  6019. selector: unescape('compile%3A'),
  6020. category: 'evaluating',
  6021. fn: function (aString){
  6022. var self=this;
  6023. return self.compile(aString);
  6024. return self;},
  6025. args: ["aString"],
  6026. source: unescape('compile%3A%20aString%0A%09%3Creturn%20self.compile%28aString%29%3E'),
  6027. messageSends: [],
  6028. referencedClasses: []
  6029. }),
  6030. smalltalk.RegularExpression);
  6031. smalltalk.addMethod(
  6032. unescape('_exec_'),
  6033. smalltalk.method({
  6034. selector: unescape('exec%3A'),
  6035. category: 'evaluating',
  6036. fn: function (aString){
  6037. var self=this;
  6038. return self.exec(aString) || nil;
  6039. return self;},
  6040. args: ["aString"],
  6041. source: unescape('exec%3A%20aString%0A%09%3Creturn%20self.exec%28aString%29%20%7C%7C%20nil%3E'),
  6042. messageSends: [],
  6043. referencedClasses: []
  6044. }),
  6045. smalltalk.RegularExpression);
  6046. smalltalk.addMethod(
  6047. unescape('_test_'),
  6048. smalltalk.method({
  6049. selector: unescape('test%3A'),
  6050. category: 'evaluating',
  6051. fn: function (aString){
  6052. var self=this;
  6053. return self.test(aString);
  6054. return self;},
  6055. args: ["aString"],
  6056. source: unescape('test%3A%20aString%0A%09%3Creturn%20self.test%28aString%29%3E'),
  6057. messageSends: [],
  6058. referencedClasses: []
  6059. }),
  6060. smalltalk.RegularExpression);
  6061. smalltalk.addMethod(
  6062. unescape('_fromString_flag_'),
  6063. smalltalk.method({
  6064. selector: unescape('fromString%3Aflag%3A'),
  6065. category: 'instance creation',
  6066. fn: function (aString, anotherString){
  6067. var self=this;
  6068. return new RegExp(aString, anotherString);
  6069. return self;},
  6070. args: ["aString", "anotherString"],
  6071. source: unescape('fromString%3A%20aString%20flag%3A%20anotherString%0A%09%3Creturn%20new%20RegExp%28aString%2C%20anotherString%29%3E'),
  6072. messageSends: [],
  6073. referencedClasses: []
  6074. }),
  6075. smalltalk.RegularExpression.klass);
  6076. smalltalk.addMethod(
  6077. unescape('_fromString_'),
  6078. smalltalk.method({
  6079. selector: unescape('fromString%3A'),
  6080. category: 'instance creation',
  6081. fn: function (aString){
  6082. var self=this;
  6083. return smalltalk.send(self, "_fromString_flag_", [aString, ""]);
  6084. return self;},
  6085. args: ["aString"],
  6086. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%5Eself%20fromString%3A%20aString%20flag%3A%20%27%27'),
  6087. messageSends: ["fromString:flag:"],
  6088. referencedClasses: []
  6089. }),
  6090. smalltalk.RegularExpression.klass);
  6091. smalltalk.addClass('Error', smalltalk.Object, ['messageText'], 'Kernel');
  6092. smalltalk.addMethod(
  6093. unescape('_messageText'),
  6094. smalltalk.method({
  6095. selector: unescape('messageText'),
  6096. category: 'accessing',
  6097. fn: function (){
  6098. var self=this;
  6099. return self['@messageText'];
  6100. return self;},
  6101. args: [],
  6102. source: unescape('messageText%0A%09%5EmessageText'),
  6103. messageSends: [],
  6104. referencedClasses: []
  6105. }),
  6106. smalltalk.Error);
  6107. smalltalk.addMethod(
  6108. unescape('_messageText_'),
  6109. smalltalk.method({
  6110. selector: unescape('messageText%3A'),
  6111. category: 'accessing',
  6112. fn: function (aString){
  6113. var self=this;
  6114. self['@messageText']=aString;
  6115. return self;},
  6116. args: ["aString"],
  6117. source: unescape('messageText%3A%20aString%0A%09messageText%20%3A%3D%20aString'),
  6118. messageSends: [],
  6119. referencedClasses: []
  6120. }),
  6121. smalltalk.Error);
  6122. smalltalk.addMethod(
  6123. unescape('_signal'),
  6124. smalltalk.method({
  6125. selector: unescape('signal'),
  6126. category: 'signaling',
  6127. fn: function (){
  6128. var self=this;
  6129. self.context = smalltalk.getThisContext(); self.smalltalkError = true; throw(self);
  6130. return self;},
  6131. args: [],
  6132. source: unescape('signal%0A%09%3Cself.context%20%3D%20smalltalk.getThisContext%28%29%3B%20self.smalltalkError%20%3D%20true%3B%20throw%28self%29%3E'),
  6133. messageSends: [],
  6134. referencedClasses: []
  6135. }),
  6136. smalltalk.Error);
  6137. smalltalk.addMethod(
  6138. unescape('_context'),
  6139. smalltalk.method({
  6140. selector: unescape('context'),
  6141. category: 'accessing',
  6142. fn: function (){
  6143. var self=this;
  6144. return self.context;
  6145. return self;},
  6146. args: [],
  6147. source: unescape('context%0A%09%3Creturn%20self.context%3E'),
  6148. messageSends: [],
  6149. referencedClasses: []
  6150. }),
  6151. smalltalk.Error);
  6152. smalltalk.addMethod(
  6153. unescape('_signal_'),
  6154. smalltalk.method({
  6155. selector: unescape('signal%3A'),
  6156. category: 'instance creation',
  6157. fn: function (aString){
  6158. var self=this;
  6159. return (function($rec){smalltalk.send($rec, "_messageText_", [aString]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send(self, "_new", []));
  6160. return self;},
  6161. args: ["aString"],
  6162. source: unescape('signal%3A%20aString%0A%09%20%20%20%20%5Eself%20new%0A%09%09messageText%3A%20aString%3B%0A%09%09signal'),
  6163. messageSends: ["messageText:", "signal", "new"],
  6164. referencedClasses: []
  6165. }),
  6166. smalltalk.Error.klass);
  6167. smalltalk.addClass('MethodContext', smalltalk.Object, [], 'Kernel');
  6168. smalltalk.addMethod(
  6169. unescape('_receiver'),
  6170. smalltalk.method({
  6171. selector: unescape('receiver'),
  6172. category: 'accessing',
  6173. fn: function (){
  6174. var self=this;
  6175. return self.receiver;
  6176. return self;},
  6177. args: [],
  6178. source: unescape('receiver%0A%09%3Creturn%20self.receiver%3E'),
  6179. messageSends: [],
  6180. referencedClasses: []
  6181. }),
  6182. smalltalk.MethodContext);
  6183. smalltalk.addMethod(
  6184. unescape('_selector'),
  6185. smalltalk.method({
  6186. selector: unescape('selector'),
  6187. category: 'accessing',
  6188. fn: function (){
  6189. var self=this;
  6190. return smalltalk.convertSelector(self.selector);
  6191. return self;},
  6192. args: [],
  6193. source: unescape('selector%0A%09%3Creturn%20smalltalk.convertSelector%28self.selector%29%3E'),
  6194. messageSends: [],
  6195. referencedClasses: []
  6196. }),
  6197. smalltalk.MethodContext);
  6198. smalltalk.addMethod(
  6199. unescape('_home'),
  6200. smalltalk.method({
  6201. selector: unescape('home'),
  6202. category: 'accessing',
  6203. fn: function (){
  6204. var self=this;
  6205. return self.homeContext;
  6206. return self;},
  6207. args: [],
  6208. source: unescape('home%0A%09%3Creturn%20self.homeContext%3E'),
  6209. messageSends: [],
  6210. referencedClasses: []
  6211. }),
  6212. smalltalk.MethodContext);
  6213. smalltalk.addMethod(
  6214. unescape('_temps'),
  6215. smalltalk.method({
  6216. selector: unescape('temps'),
  6217. category: 'accessing',
  6218. fn: function (){
  6219. var self=this;
  6220. return self.temps;
  6221. return self;},
  6222. args: [],
  6223. source: unescape('temps%0A%09%3Creturn%20self.temps%3E'),
  6224. messageSends: [],
  6225. referencedClasses: []
  6226. }),
  6227. smalltalk.MethodContext);
  6228. smalltalk.addMethod(
  6229. unescape('_printString'),
  6230. smalltalk.method({
  6231. selector: unescape('printString'),
  6232. category: 'accessing',
  6233. fn: function (){
  6234. var self=this;
  6235. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.Object), "__comma", [unescape("%28")]), "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", [unescape("%29")]);
  6236. return self;},
  6237. args: [],
  6238. source: unescape('printString%0A%09%5Esuper%20printString%2C%20%27%28%27%2C%20self%20asString%2C%20%27%29%27'),
  6239. messageSends: [unescape("%2C"), "printString", "asString"],
  6240. referencedClasses: []
  6241. }),
  6242. smalltalk.MethodContext);
  6243. smalltalk.addMethod(
  6244. unescape('_asString'),
  6245. smalltalk.method({
  6246. selector: unescape('asString'),
  6247. category: 'accessing',
  6248. fn: function (){
  6249. var self=this;
  6250. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_receiver", []), "_class", []), "_printString", []), "__comma", [unescape("%20%3E%3E%20")]), "__comma", [smalltalk.send(self, "_selector", [])]);
  6251. return self;},
  6252. args: [],
  6253. source: unescape('asString%0A%09%5Eself%20receiver%20class%20printString%2C%20%27%20%3E%3E%20%27%2C%20self%20selector'),
  6254. messageSends: [unescape("%2C"), "printString", "class", "receiver", "selector"],
  6255. referencedClasses: []
  6256. }),
  6257. smalltalk.MethodContext);
  6258. smalltalk.addClass('Association', smalltalk.Object, ['key', 'value'], 'Kernel');
  6259. smalltalk.addMethod(
  6260. unescape('__eq'),
  6261. smalltalk.method({
  6262. selector: unescape('%3D'),
  6263. category: 'comparing',
  6264. fn: function (anAssociation){
  6265. var self=this;
  6266. 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", [])]);})]);})]);
  6267. return self;},
  6268. args: ["anAssociation"],
  6269. 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'),
  6270. messageSends: ["and:", unescape("%3D"), "class", "key", "value"],
  6271. referencedClasses: []
  6272. }),
  6273. smalltalk.Association);
  6274. smalltalk.addMethod(
  6275. unescape('_key_'),
  6276. smalltalk.method({
  6277. selector: unescape('key%3A'),
  6278. category: 'accessing',
  6279. fn: function (aKey){
  6280. var self=this;
  6281. self['@key']=aKey;
  6282. return self;},
  6283. args: ["aKey"],
  6284. source: unescape('key%3A%20aKey%0A%09key%20%3A%3D%20aKey'),
  6285. messageSends: [],
  6286. referencedClasses: []
  6287. }),
  6288. smalltalk.Association);
  6289. smalltalk.addMethod(
  6290. unescape('_key'),
  6291. smalltalk.method({
  6292. selector: unescape('key'),
  6293. category: 'accessing',
  6294. fn: function (){
  6295. var self=this;
  6296. return self['@key'];
  6297. return self;},
  6298. args: [],
  6299. source: unescape('key%0A%09%5Ekey'),
  6300. messageSends: [],
  6301. referencedClasses: []
  6302. }),
  6303. smalltalk.Association);
  6304. smalltalk.addMethod(
  6305. unescape('_value_'),
  6306. smalltalk.method({
  6307. selector: unescape('value%3A'),
  6308. category: 'accessing',
  6309. fn: function (aValue){
  6310. var self=this;
  6311. self['@value']=aValue;
  6312. return self;},
  6313. args: ["aValue"],
  6314. source: unescape('value%3A%20aValue%0A%09value%20%3A%3D%20aValue'),
  6315. messageSends: [],
  6316. referencedClasses: []
  6317. }),
  6318. smalltalk.Association);
  6319. smalltalk.addMethod(
  6320. unescape('_value'),
  6321. smalltalk.method({
  6322. selector: unescape('value'),
  6323. category: 'accessing',
  6324. fn: function (){
  6325. var self=this;
  6326. return self['@value'];
  6327. return self;},
  6328. args: [],
  6329. source: unescape('value%0A%09%5Evalue'),
  6330. messageSends: [],
  6331. referencedClasses: []
  6332. }),
  6333. smalltalk.Association);
  6334. smalltalk.addMethod(
  6335. unescape('_key_value_'),
  6336. smalltalk.method({
  6337. selector: unescape('key%3Avalue%3A'),
  6338. category: 'instance creation',
  6339. fn: function (aKey, aValue){
  6340. var self=this;
  6341. return (function($rec){smalltalk.send($rec, "_key_", [aKey]);smalltalk.send($rec, "_value_", [aValue]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  6342. return self;},
  6343. args: ["aKey", "aValue"],
  6344. 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'),
  6345. messageSends: ["key:", "value:", "yourself", "new"],
  6346. referencedClasses: []
  6347. }),
  6348. smalltalk.Association.klass);
  6349. smalltalk.addClass('Dictionary', smalltalk.Collection, ['keys'], 'Kernel');
  6350. smalltalk.addMethod(
  6351. unescape('__eq'),
  6352. smalltalk.method({
  6353. selector: unescape('%3D'),
  6354. category: 'comparing',
  6355. fn: function (aDictionary){
  6356. var self=this;
  6357. try{((($receiver = smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aDictionary, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  6358. ((($receiver = smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [smalltalk.send(aDictionary, "_size", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  6359. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return smalltalk.send(smalltalk.send(self, "_associations", []), "__eq", [smalltalk.send(aDictionary, "_associations", [])])}})})();
  6360. return self;
  6361. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  6362. args: ["aDictionary"],
  6363. source: unescape('%3D%20aDictionary%0A%09self%20class%20%3D%20aDictionary%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09self%20size%20%3D%20aDictionary%20size%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%5Eself%20associations%20%3D%20aDictionary%20associations'),
  6364. messageSends: ["ifFalse:", unescape("%3D"), "class", "size", "associations"],
  6365. referencedClasses: []
  6366. }),
  6367. smalltalk.Dictionary);
  6368. smalltalk.addMethod(
  6369. unescape('_shallowCopy'),
  6370. smalltalk.method({
  6371. selector: unescape('shallowCopy'),
  6372. category: 'copying',
  6373. fn: function (){
  6374. var self=this;
  6375. var copy=nil;
  6376. copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6377. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(copy, "_at_put_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  6378. return copy;
  6379. return self;},
  6380. args: [],
  6381. 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'),
  6382. messageSends: ["new", "class", "associationsDo:", "at:put:", "key", "value"],
  6383. referencedClasses: []
  6384. }),
  6385. smalltalk.Dictionary);
  6386. smalltalk.addMethod(
  6387. unescape('_initialize'),
  6388. smalltalk.method({
  6389. selector: unescape('initialize'),
  6390. category: 'initialization',
  6391. fn: function (){
  6392. var self=this;
  6393. smalltalk.send(self, "_initialize", [], smalltalk.Collection);
  6394. self['@keys']=[];
  6395. return self;},
  6396. args: [],
  6397. source: unescape('initialize%0A%20%20%20%20%09super%20initialize.%0A%20%20%20%20%09keys%20%3A%3D%20%23%28%29'),
  6398. messageSends: ["initialize"],
  6399. referencedClasses: []
  6400. }),
  6401. smalltalk.Dictionary);
  6402. smalltalk.addMethod(
  6403. unescape('_size'),
  6404. smalltalk.method({
  6405. selector: unescape('size'),
  6406. category: 'accessing',
  6407. fn: function (){
  6408. var self=this;
  6409. return smalltalk.send(self['@keys'], "_size", []);
  6410. return self;},
  6411. args: [],
  6412. source: unescape('size%0A%09%5Ekeys%20size'),
  6413. messageSends: ["size"],
  6414. referencedClasses: []
  6415. }),
  6416. smalltalk.Dictionary);
  6417. smalltalk.addMethod(
  6418. unescape('_associations'),
  6419. smalltalk.method({
  6420. selector: unescape('associations'),
  6421. category: 'accessing',
  6422. fn: function (){
  6423. var self=this;
  6424. var associations=nil;
  6425. associations=[];
  6426. smalltalk.send(self['@keys'], "_do_", [(function(each){return smalltalk.send(associations, "_add_", [smalltalk.send((smalltalk.Association || Association), "_key_value_", [each, smalltalk.send(self, "_at_", [each])])]);})]);
  6427. return associations;
  6428. return self;},
  6429. args: [],
  6430. 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'),
  6431. messageSends: ["do:", "add:", "key:value:", "at:"],
  6432. referencedClasses: [smalltalk.Association]
  6433. }),
  6434. smalltalk.Dictionary);
  6435. smalltalk.addMethod(
  6436. unescape('_keys'),
  6437. smalltalk.method({
  6438. selector: unescape('keys'),
  6439. category: 'accessing',
  6440. fn: function (){
  6441. var self=this;
  6442. return smalltalk.send(self['@keys'], "_copy", []);
  6443. return self;},
  6444. args: [],
  6445. source: unescape('keys%0A%09%5Ekeys%20copy'),
  6446. messageSends: ["copy"],
  6447. referencedClasses: []
  6448. }),
  6449. smalltalk.Dictionary);
  6450. smalltalk.addMethod(
  6451. unescape('_values'),
  6452. smalltalk.method({
  6453. selector: unescape('values'),
  6454. category: 'accessing',
  6455. fn: function (){
  6456. var self=this;
  6457. return smalltalk.send(self['@keys'], "_collect_", [(function(each){return smalltalk.send(self, "_at_", [each]);})]);
  6458. return self;},
  6459. args: [],
  6460. source: unescape('values%0A%20%20%20%20%09%5Ekeys%20collect%3A%20%5B%3Aeach%20%7C%20self%20at%3A%20each%5D'),
  6461. messageSends: ["collect:", "at:"],
  6462. referencedClasses: []
  6463. }),
  6464. smalltalk.Dictionary);
  6465. smalltalk.addMethod(
  6466. unescape('_at_put_'),
  6467. smalltalk.method({
  6468. selector: unescape('at%3Aput%3A'),
  6469. category: 'accessing',
  6470. fn: function (aKey, aValue){
  6471. var self=this;
  6472. ((($receiver = smalltalk.send(self['@keys'], "_includes_", [aKey])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@keys'], "_add_", [aKey]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self['@keys'], "_add_", [aKey]);})]));
  6473. return smalltalk.send(self, "_basicAt_put_", [aKey, aValue]);
  6474. return self;},
  6475. args: ["aKey", "aValue"],
  6476. 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'),
  6477. messageSends: ["ifFalse:", "includes:", "add:", "basicAt:put:"],
  6478. referencedClasses: []
  6479. }),
  6480. smalltalk.Dictionary);
  6481. smalltalk.addMethod(
  6482. unescape('_at_ifAbsent_'),
  6483. smalltalk.method({
  6484. selector: unescape('at%3AifAbsent%3A'),
  6485. category: 'accessing',
  6486. fn: function (aKey, aBlock){
  6487. var self=this;
  6488. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_keys", []), "_includes_", [aKey]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_basicAt_", [aKey]);}), aBlock]);
  6489. return self;},
  6490. args: ["aKey", "aBlock"],
  6491. 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'),
  6492. messageSends: ["ifTrue:ifFalse:", "includes:", "keys", "basicAt:"],
  6493. referencedClasses: []
  6494. }),
  6495. smalltalk.Dictionary);
  6496. smalltalk.addMethod(
  6497. unescape('_at_ifAbsentPut_'),
  6498. smalltalk.method({
  6499. selector: unescape('at%3AifAbsentPut%3A'),
  6500. category: 'accessing',
  6501. fn: function (aKey, aBlock){
  6502. var self=this;
  6503. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_at_put_", [aKey, smalltalk.send(aBlock, "_value", [])]);})]);
  6504. return self;},
  6505. args: ["aKey", "aBlock"],
  6506. 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'),
  6507. messageSends: ["at:ifAbsent:", "at:put:", "value"],
  6508. referencedClasses: []
  6509. }),
  6510. smalltalk.Dictionary);
  6511. smalltalk.addMethod(
  6512. unescape('_at_ifPresent_'),
  6513. smalltalk.method({
  6514. selector: unescape('at%3AifPresent%3A'),
  6515. category: 'accessing',
  6516. fn: function (aKey, aBlock){
  6517. var self=this;
  6518. return (($receiver = smalltalk.send(self, "_basicAt_", [aKey])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})() : nil;
  6519. return self;},
  6520. args: ["aKey", "aBlock"],
  6521. 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'),
  6522. messageSends: ["ifNotNil:", "basicAt:", "value:", "at:"],
  6523. referencedClasses: []
  6524. }),
  6525. smalltalk.Dictionary);
  6526. smalltalk.addMethod(
  6527. unescape('_at_ifPresent_ifAbsent_'),
  6528. smalltalk.method({
  6529. selector: unescape('at%3AifPresent%3AifAbsent%3A'),
  6530. category: 'accessing',
  6531. fn: function (aKey, aBlock, anotherBlock){
  6532. var self=this;
  6533. return smalltalk.send(smalltalk.send(self, "_basicAt_", [aKey]), "_ifNil_ifNotNil_", [anotherBlock, (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})]);
  6534. return self;},
  6535. args: ["aKey", "aBlock", "anotherBlock"],
  6536. 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'),
  6537. messageSends: ["ifNil:ifNotNil:", "basicAt:", "value:", "at:"],
  6538. referencedClasses: []
  6539. }),
  6540. smalltalk.Dictionary);
  6541. smalltalk.addMethod(
  6542. unescape('_add_'),
  6543. smalltalk.method({
  6544. selector: unescape('add%3A'),
  6545. category: 'adding/removing',
  6546. fn: function (anAssociation){
  6547. var self=this;
  6548. smalltalk.send(self, "_at_put_", [smalltalk.send(anAssociation, "_key", []), smalltalk.send(anAssociation, "_value", [])]);
  6549. return self;},
  6550. args: ["anAssociation"],
  6551. source: unescape('add%3A%20anAssociation%0A%20%20%20%20%09self%20at%3A%20anAssociation%20key%20put%3A%20anAssociation%20value'),
  6552. messageSends: ["at:put:", "key", "value"],
  6553. referencedClasses: []
  6554. }),
  6555. smalltalk.Dictionary);
  6556. smalltalk.addMethod(
  6557. unescape('_addAll_'),
  6558. smalltalk.method({
  6559. selector: unescape('addAll%3A'),
  6560. category: 'adding/removing',
  6561. fn: function (aDictionary){
  6562. var self=this;
  6563. smalltalk.send(self, "_addAll_", [smalltalk.send(aDictionary, "_associations", [])], smalltalk.Collection);
  6564. return aDictionary;
  6565. return self;},
  6566. args: ["aDictionary"],
  6567. source: unescape('addAll%3A%20aDictionary%0A%20%20%20%20%09super%20addAll%3A%20aDictionary%20associations.%0A%20%20%20%20%09%5EaDictionary'),
  6568. messageSends: ["addAll:", "associations"],
  6569. referencedClasses: []
  6570. }),
  6571. smalltalk.Dictionary);
  6572. smalltalk.addMethod(
  6573. unescape('__comma'),
  6574. smalltalk.method({
  6575. selector: unescape('%2C'),
  6576. category: 'copying',
  6577. fn: function (aCollection){
  6578. var self=this;
  6579. smalltalk.send(self, "_shouldNotImplement", []);
  6580. return self;},
  6581. args: ["aCollection"],
  6582. source: unescape('%2C%20aCollection%0A%09self%20shouldNotImplement'),
  6583. messageSends: ["shouldNotImplement"],
  6584. referencedClasses: []
  6585. }),
  6586. smalltalk.Dictionary);
  6587. smalltalk.addMethod(
  6588. unescape('_copyFrom_to_'),
  6589. smalltalk.method({
  6590. selector: unescape('copyFrom%3Ato%3A'),
  6591. category: 'copying',
  6592. fn: function (anIndex, anotherIndex){
  6593. var self=this;
  6594. smalltalk.send(self, "_shouldNotImplement", []);
  6595. return self;},
  6596. args: ["anIndex", "anotherIndex"],
  6597. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20shouldNotImplement'),
  6598. messageSends: ["shouldNotImplement"],
  6599. referencedClasses: []
  6600. }),
  6601. smalltalk.Dictionary);
  6602. smalltalk.addMethod(
  6603. unescape('_associationsDo_'),
  6604. smalltalk.method({
  6605. selector: unescape('associationsDo%3A'),
  6606. category: 'enumerating',
  6607. fn: function (aBlock){
  6608. var self=this;
  6609. smalltalk.send(smalltalk.send(self, "_associations", []), "_do_", [aBlock]);
  6610. return self;},
  6611. args: ["aBlock"],
  6612. source: unescape('associationsDo%3A%20aBlock%0A%20%20%20%20%09self%20associations%20do%3A%20aBlock'),
  6613. messageSends: ["do:", "associations"],
  6614. referencedClasses: []
  6615. }),
  6616. smalltalk.Dictionary);
  6617. smalltalk.addMethod(
  6618. unescape('_keysAndValuesDo_'),
  6619. smalltalk.method({
  6620. selector: unescape('keysAndValuesDo%3A'),
  6621. category: 'enumerating',
  6622. fn: function (aBlock){
  6623. var self=this;
  6624. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(aBlock, "_value_value_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  6625. return self;},
  6626. args: ["aBlock"],
  6627. 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'),
  6628. messageSends: ["associationsDo:", "value:value:", "key", "value"],
  6629. referencedClasses: []
  6630. }),
  6631. smalltalk.Dictionary);
  6632. smalltalk.addMethod(
  6633. unescape('_do_'),
  6634. smalltalk.method({
  6635. selector: unescape('do%3A'),
  6636. category: 'enumerating',
  6637. fn: function (aBlock){
  6638. var self=this;
  6639. smalltalk.send(smalltalk.send(self, "_values", []), "_do_", [aBlock]);
  6640. return self;},
  6641. args: ["aBlock"],
  6642. source: unescape('do%3A%20aBlock%0A%20%20%20%20%09self%20values%20do%3A%20aBlock'),
  6643. messageSends: ["do:", "values"],
  6644. referencedClasses: []
  6645. }),
  6646. smalltalk.Dictionary);
  6647. smalltalk.addMethod(
  6648. unescape('_select_'),
  6649. smalltalk.method({
  6650. selector: unescape('select%3A'),
  6651. category: 'enumerating',
  6652. fn: function (aBlock){
  6653. var self=this;
  6654. var newDict=nil;
  6655. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6656. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return ((($receiver = smalltalk.send(aBlock, "_value_", [value])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(newDict, "_at_put_", [key, value]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(newDict, "_at_put_", [key, value]);})]));})]);
  6657. return newDict;
  6658. return self;},
  6659. args: ["aBlock"],
  6660. 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'),
  6661. messageSends: ["new", "class", "keysAndValuesDo:", "ifTrue:", "value:", "at:put:"],
  6662. referencedClasses: []
  6663. }),
  6664. smalltalk.Dictionary);
  6665. smalltalk.addMethod(
  6666. unescape('_collect_'),
  6667. smalltalk.method({
  6668. selector: unescape('collect%3A'),
  6669. category: 'enumerating',
  6670. fn: function (aBlock){
  6671. var self=this;
  6672. var newDict=nil;
  6673. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6674. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(newDict, "_at_put_", [key, smalltalk.send(aBlock, "_value_", [value])]);})]);
  6675. return newDict;
  6676. return self;},
  6677. args: ["aBlock"],
  6678. 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'),
  6679. messageSends: ["new", "class", "keysAndValuesDo:", "at:put:", "value:"],
  6680. referencedClasses: []
  6681. }),
  6682. smalltalk.Dictionary);
  6683. smalltalk.addMethod(
  6684. unescape('_detect_ifNone_'),
  6685. smalltalk.method({
  6686. selector: unescape('detect%3AifNone%3A'),
  6687. category: 'enumerating',
  6688. fn: function (aBlock, anotherBlock){
  6689. var self=this;
  6690. return smalltalk.send(smalltalk.send(self, "_values", []), "_detect_ifNone_", [aBlock, anotherBlock]);
  6691. return self;},
  6692. args: ["aBlock", "anotherBlock"],
  6693. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eself%20values%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  6694. messageSends: ["detect:ifNone:", "values"],
  6695. referencedClasses: []
  6696. }),
  6697. smalltalk.Dictionary);
  6698. smalltalk.addMethod(
  6699. unescape('_includes_'),
  6700. smalltalk.method({
  6701. selector: unescape('includes%3A'),
  6702. category: 'enumerating',
  6703. fn: function (anObject){
  6704. var self=this;
  6705. return smalltalk.send(smalltalk.send(self, "_values", []), "_includes_", [anObject]);
  6706. return self;},
  6707. args: ["anObject"],
  6708. source: unescape('includes%3A%20anObject%0A%09%5Eself%20values%20includes%3A%20anObject'),
  6709. messageSends: ["includes:", "values"],
  6710. referencedClasses: []
  6711. }),
  6712. smalltalk.Dictionary);
  6713. smalltalk.addMethod(
  6714. unescape('_remove_'),
  6715. smalltalk.method({
  6716. selector: unescape('remove%3A'),
  6717. category: 'adding/removing',
  6718. fn: function (aKey){
  6719. var self=this;
  6720. smalltalk.send(self, "_removeKey_", [aKey]);
  6721. return self;},
  6722. args: ["aKey"],
  6723. source: unescape('remove%3A%20aKey%0A%20%20%20%20self%20removeKey%3A%20aKey'),
  6724. messageSends: ["removeKey:"],
  6725. referencedClasses: []
  6726. }),
  6727. smalltalk.Dictionary);
  6728. smalltalk.addMethod(
  6729. unescape('_removeKey_'),
  6730. smalltalk.method({
  6731. selector: unescape('removeKey%3A'),
  6732. category: 'adding/removing',
  6733. fn: function (aKey){
  6734. var self=this;
  6735. smalltalk.send(self['@keys'], "_remove_", [aKey]);
  6736. return self;},
  6737. args: ["aKey"],
  6738. source: unescape('removeKey%3A%20aKey%0A%20%20%20%20keys%20remove%3A%20aKey'),
  6739. messageSends: ["remove:"],
  6740. referencedClasses: []
  6741. }),
  6742. smalltalk.Dictionary);
  6743. smalltalk.addMethod(
  6744. unescape('_at_'),
  6745. smalltalk.method({
  6746. selector: unescape('at%3A'),
  6747. category: 'accessing',
  6748. fn: function (aKey){
  6749. var self=this;
  6750. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  6751. return self;},
  6752. args: ["aKey"],
  6753. source: unescape('at%3A%20aKey%0A%09%5Eself%20at%3A%20aKey%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  6754. messageSends: ["at:ifAbsent:", "errorNotFound"],
  6755. referencedClasses: []
  6756. }),
  6757. smalltalk.Dictionary);
  6758. smalltalk.addMethod(
  6759. unescape('_asJSONObject'),
  6760. smalltalk.method({
  6761. selector: unescape('asJSONObject'),
  6762. category: 'converting',
  6763. fn: function (){
  6764. var self=this;
  6765. var object=nil;
  6766. object=smalltalk.send((smalltalk.Object || Object), "_new", []);
  6767. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(object, "_basicAt_put_", [key, smalltalk.send(value, "_asJSONObject", [])]);})]);
  6768. return object;
  6769. return self;},
  6770. args: [],
  6771. 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'),
  6772. messageSends: ["new", "keysAndValuesDo:", "basicAt:put:", "asJSONObject"],
  6773. referencedClasses: [smalltalk.Object]
  6774. }),
  6775. smalltalk.Dictionary);
  6776. smalltalk.addMethod(
  6777. unescape('_printString'),
  6778. smalltalk.method({
  6779. selector: unescape('printString'),
  6780. category: 'printing',
  6781. fn: function (){
  6782. var self=this;
  6783. return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(aStream){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_printString", [], smalltalk.Collection)]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%28")]);})(aStream);smalltalk.send(smalltalk.send(self, "_associations", []), "_do_separatedBy_", [(function(anAssociation){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(anAssociation, "_key", []), "_printString", [])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%20-%3E%20")]);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(anAssociation, "_value", []), "_printString", [])]);})(aStream);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [unescape("%20%2C%20")]);})]);return smalltalk.send(aStream, "_nextPutAll_", [unescape("%29")]);})]);
  6784. return self;},
  6785. args: [],
  6786. source: unescape('printString%0A%09%5E%20String%20streamContents%3A%20%5B%3AaStream%7C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09aStream%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09nextPutAll%3A%20super%20printString%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09nextPutAll%3A%20%27%28%27.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09self%20associations%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09do%3A%20%5B%3AanAssociation%7C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09aStream%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09nextPutAll%3A%20anAssociation%20key%20printString%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09nextPutAll%3A%20%27%20-%3E%20%27%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09nextPutAll%3A%20anAssociation%20value%20printString%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09separatedBy%3A%20%5BaStream%20nextPutAll%3A%20%27%20%2C%20%27%5D.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09aStream%20nextPutAll%3A%20%27%29%27.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5D'),
  6787. messageSends: ["streamContents:", "nextPutAll:", "printString", "do:separatedBy:", "associations", "key", "value"],
  6788. referencedClasses: [smalltalk.String]
  6789. }),
  6790. smalltalk.Dictionary);
  6791. smalltalk.addMethod(
  6792. unescape('_fromPairs_'),
  6793. smalltalk.method({
  6794. selector: unescape('fromPairs%3A'),
  6795. category: 'instance creation',
  6796. fn: function (aCollection){
  6797. var self=this;
  6798. var dict=nil;
  6799. dict=smalltalk.send(self, "_new", []);
  6800. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(dict, "_add_", [each]);})]);
  6801. return dict;
  6802. return self;},
  6803. args: ["aCollection"],
  6804. source: unescape('fromPairs%3A%20aCollection%0A%09%7C%20dict%20%7C%0A%09dict%20%3A%3D%20self%20new.%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%20dict%20add%3A%20each%5D.%0A%09%5Edict'),
  6805. messageSends: ["new", "do:", "add:"],
  6806. referencedClasses: []
  6807. }),
  6808. smalltalk.Dictionary.klass);
  6809. smalltalk.addClass('ClassBuilder', smalltalk.Object, [], 'Kernel');
  6810. smalltalk.addMethod(
  6811. unescape('_superclass_subclass_'),
  6812. smalltalk.method({
  6813. selector: unescape('superclass%3Asubclass%3A'),
  6814. category: 'class creation',
  6815. fn: function (aClass, aString){
  6816. var self=this;
  6817. return smalltalk.send(self, "_superclass_subclass_instanceVariableNames_package_", [aClass, aString, "", nil]);
  6818. return self;},
  6819. args: ["aClass", "aString"],
  6820. source: unescape('superclass%3A%20aClass%20subclass%3A%20aString%0A%09%5Eself%20superclass%3A%20aClass%20subclass%3A%20aString%20instanceVariableNames%3A%20%27%27%20package%3A%20nil'),
  6821. messageSends: ["superclass:subclass:instanceVariableNames:package:"],
  6822. referencedClasses: []
  6823. }),
  6824. smalltalk.ClassBuilder);
  6825. smalltalk.addMethod(
  6826. unescape('_class_instanceVariableNames_'),
  6827. smalltalk.method({
  6828. selector: unescape('class%3AinstanceVariableNames%3A'),
  6829. category: 'class creation',
  6830. fn: function (aClass, aString){
  6831. var self=this;
  6832. ((($receiver = smalltalk.send(aClass, "_isMetaclass", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_name", []), "__comma", [" is not a metaclass"])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_name", []), "__comma", [" is not a metaclass"])]);})]));
  6833. smalltalk.send(aClass, "_basicAt_put_", ["iVarNames", smalltalk.send(self, "_instanceVariableNamesFor_", [aString])]);
  6834. smalltalk.send(self, "_setupClass_", [aClass]);
  6835. return self;},
  6836. args: ["aClass", "aString"],
  6837. 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'),
  6838. messageSends: ["ifFalse:", "isMetaclass", "error:", unescape("%2C"), "name", "basicAt:put:", "instanceVariableNamesFor:", "setupClass:"],
  6839. referencedClasses: []
  6840. }),
  6841. smalltalk.ClassBuilder);
  6842. smalltalk.addMethod(
  6843. unescape('_instanceVariableNamesFor_'),
  6844. smalltalk.method({
  6845. selector: unescape('instanceVariableNamesFor%3A'),
  6846. category: 'private',
  6847. fn: function (aString){
  6848. var self=this;
  6849. return smalltalk.send(smalltalk.send(aString, "_tokenize_", [" "]), "_reject_", [(function(each){return smalltalk.send(each, "_isEmpty", []);})]);
  6850. return self;},
  6851. args: ["aString"],
  6852. 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'),
  6853. messageSends: ["reject:", "tokenize:", "isEmpty"],
  6854. referencedClasses: []
  6855. }),
  6856. smalltalk.ClassBuilder);
  6857. smalltalk.addMethod(
  6858. unescape('_addSubclassOf_named_instanceVariableNames_'),
  6859. smalltalk.method({
  6860. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3A'),
  6861. category: 'private',
  6862. fn: function (aClass, aString, aCollection){
  6863. var self=this;
  6864. smalltalk.addClass(aString, aClass, aCollection);
  6865. return smalltalk[aString];
  6866. return self;},
  6867. args: ["aClass", "aString", "aCollection"],
  6868. 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'),
  6869. messageSends: [],
  6870. referencedClasses: []
  6871. }),
  6872. smalltalk.ClassBuilder);
  6873. smalltalk.addMethod(
  6874. unescape('_setupClass_'),
  6875. smalltalk.method({
  6876. selector: unescape('setupClass%3A'),
  6877. category: 'private',
  6878. fn: function (aClass){
  6879. var self=this;
  6880. smalltalk.init(aClass);;
  6881. return self;},
  6882. args: ["aClass"],
  6883. source: unescape('setupClass%3A%20aClass%0A%09%3Csmalltalk.init%28aClass%29%3B%3E'),
  6884. messageSends: [],
  6885. referencedClasses: []
  6886. }),
  6887. smalltalk.ClassBuilder);
  6888. smalltalk.addMethod(
  6889. unescape('_superclass_subclass_instanceVariableNames_package_'),
  6890. smalltalk.method({
  6891. selector: unescape('superclass%3Asubclass%3AinstanceVariableNames%3Apackage%3A'),
  6892. category: 'class creation',
  6893. fn: function (aClass, aString, aString2, aString3){
  6894. var self=this;
  6895. var newClass=nil;
  6896. newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [aClass, aString, smalltalk.send(self, "_instanceVariableNamesFor_", [aString2]), (($receiver = aString3) == nil || $receiver == undefined) ? (function(){return "unclassified";})() : $receiver]);
  6897. smalltalk.send(self, "_setupClass_", [newClass]);
  6898. return newClass;
  6899. return self;},
  6900. args: ["aClass", "aString", "aString2", "aString3"],
  6901. source: unescape('superclass%3A%20aClass%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3%0A%09%7C%20newClass%20%7C%0A%09newClass%20%3A%3D%20self%20addSubclassOf%3A%20aClass%0A%09%09%09%09named%3A%20aString%20instanceVariableNames%3A%20%28self%20instanceVariableNamesFor%3A%20aString2%29%0A%09%09%09%09package%3A%20%28aString3%20ifNil%3A%20%5B%27unclassified%27%5D%29.%0A%09self%20setupClass%3A%20newClass.%0A%09%5EnewClass'),
  6902. messageSends: ["addSubclassOf:named:instanceVariableNames:package:", "instanceVariableNamesFor:", "ifNil:", "setupClass:"],
  6903. referencedClasses: []
  6904. }),
  6905. smalltalk.ClassBuilder);
  6906. smalltalk.addMethod(
  6907. unescape('_addSubclassOf_named_instanceVariableNames_package_'),
  6908. smalltalk.method({
  6909. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3Apackage%3A'),
  6910. category: 'private',
  6911. fn: function (aClass, aString, aCollection, packageName){
  6912. var self=this;
  6913. smalltalk.addClass(aString, aClass, aCollection, packageName);
  6914. return smalltalk[aString];
  6915. return self;},
  6916. args: ["aClass", "aString", "aCollection", "packageName"],
  6917. source: unescape('addSubclassOf%3A%20aClass%20named%3A%20aString%20instanceVariableNames%3A%20aCollection%20package%3A%20packageName%0A%09%3Csmalltalk.addClass%28aString%2C%20aClass%2C%20aCollection%2C%20packageName%29%3B%0A%09%20%20%20%20return%20smalltalk%5BaString%5D%3E'),
  6918. messageSends: [],
  6919. referencedClasses: []
  6920. }),
  6921. smalltalk.ClassBuilder);
  6922. smalltalk.addClass('ClassCategoryReader', smalltalk.Object, ['class', 'category', 'chunkParser'], 'Kernel');
  6923. smalltalk.addMethod(
  6924. unescape('_initialize'),
  6925. smalltalk.method({
  6926. selector: unescape('initialize'),
  6927. category: 'initialization',
  6928. fn: function (){
  6929. var self=this;
  6930. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  6931. self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []);
  6932. return self;},
  6933. args: [],
  6934. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  6935. messageSends: ["initialize", "new"],
  6936. referencedClasses: [smalltalk.nil]
  6937. }),
  6938. smalltalk.ClassCategoryReader);
  6939. smalltalk.addMethod(
  6940. unescape('_class_category_'),
  6941. smalltalk.method({
  6942. selector: unescape('class%3Acategory%3A'),
  6943. category: 'accessing',
  6944. fn: function (aClass, aString){
  6945. var self=this;
  6946. self['@class']=aClass;
  6947. self['@category']=aString;
  6948. return self;},
  6949. args: ["aClass", "aString"],
  6950. source: unescape('class%3A%20aClass%20category%3A%20aString%0A%09class%20%3A%3D%20aClass.%0A%09category%20%3A%3D%20aString'),
  6951. messageSends: [],
  6952. referencedClasses: []
  6953. }),
  6954. smalltalk.ClassCategoryReader);
  6955. smalltalk.addMethod(
  6956. unescape('_scanFrom_'),
  6957. smalltalk.method({
  6958. selector: unescape('scanFrom%3A'),
  6959. category: 'fileIn',
  6960. fn: function (aChunkParser){
  6961. var self=this;
  6962. var chunk=nil;
  6963. (function(){while(!(function(){chunk=smalltalk.send(aChunkParser, "_nextChunk", []);return smalltalk.send(chunk, "_isEmpty", []);})()) {(function(){return smalltalk.send(self, "_compileMethod_", [chunk]);})()}})();
  6964. return self;},
  6965. args: ["aChunkParser"],
  6966. source: unescape('scanFrom%3A%20aChunkParser%0A%09%7C%20chunk%20%7C%0A%09%5Bchunk%20%3A%3D%20aChunkParser%20nextChunk.%0A%09chunk%20isEmpty%5D%20whileFalse%3A%20%5B%0A%09%20%20%20%20self%20compileMethod%3A%20chunk%5D'),
  6967. messageSends: ["whileFalse:", "nextChunk", "isEmpty", "compileMethod:"],
  6968. referencedClasses: []
  6969. }),
  6970. smalltalk.ClassCategoryReader);
  6971. smalltalk.addMethod(
  6972. unescape('_compileMethod_'),
  6973. smalltalk.method({
  6974. selector: unescape('compileMethod%3A'),
  6975. category: 'private',
  6976. fn: function (aString){
  6977. var self=this;
  6978. var method=nil;
  6979. method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self['@class']]);
  6980. smalltalk.send(method, "_category_", [self['@category']]);
  6981. smalltalk.send(self['@class'], "_addCompiledMethod_", [method]);
  6982. return self;},
  6983. args: ["aString"],
  6984. 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'),
  6985. messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
  6986. referencedClasses: [smalltalk.nil]
  6987. }),
  6988. smalltalk.ClassCategoryReader);
  6989. smalltalk.addClass('Stream', smalltalk.Object, ['collection', 'position', 'streamSize'], 'Kernel');
  6990. smalltalk.addMethod(
  6991. unescape('_collection'),
  6992. smalltalk.method({
  6993. selector: unescape('collection'),
  6994. category: 'accessing',
  6995. fn: function (){
  6996. var self=this;
  6997. return self['@collection'];
  6998. return self;},
  6999. args: [],
  7000. source: unescape('collection%0A%09%5Ecollection'),
  7001. messageSends: [],
  7002. referencedClasses: []
  7003. }),
  7004. smalltalk.Stream);
  7005. smalltalk.addMethod(
  7006. unescape('_setCollection_'),
  7007. smalltalk.method({
  7008. selector: unescape('setCollection%3A'),
  7009. category: 'accessing',
  7010. fn: function (aCollection){
  7011. var self=this;
  7012. self['@collection']=aCollection;
  7013. return self;},
  7014. args: ["aCollection"],
  7015. source: unescape('setCollection%3A%20aCollection%0A%09collection%20%3A%3D%20aCollection'),
  7016. messageSends: [],
  7017. referencedClasses: []
  7018. }),
  7019. smalltalk.Stream);
  7020. smalltalk.addMethod(
  7021. unescape('_position'),
  7022. smalltalk.method({
  7023. selector: unescape('position'),
  7024. category: 'accessing',
  7025. fn: function (){
  7026. var self=this;
  7027. return (($receiver = self['@position']) == nil || $receiver == undefined) ? (function(){return self['@position']=(0);})() : $receiver;
  7028. return self;},
  7029. args: [],
  7030. source: unescape('position%0A%09%5Eposition%20ifNil%3A%20%5Bposition%20%3A%3D%200%5D'),
  7031. messageSends: ["ifNil:"],
  7032. referencedClasses: []
  7033. }),
  7034. smalltalk.Stream);
  7035. smalltalk.addMethod(
  7036. unescape('_position_'),
  7037. smalltalk.method({
  7038. selector: unescape('position%3A'),
  7039. category: 'accessing',
  7040. fn: function (anInteger){
  7041. var self=this;
  7042. self['@position']=anInteger;
  7043. return self;},
  7044. args: ["anInteger"],
  7045. source: unescape('position%3A%20anInteger%0A%09position%20%3A%3D%20anInteger'),
  7046. messageSends: [],
  7047. referencedClasses: []
  7048. }),
  7049. smalltalk.Stream);
  7050. smalltalk.addMethod(
  7051. unescape('_streamSize'),
  7052. smalltalk.method({
  7053. selector: unescape('streamSize'),
  7054. category: 'accessing',
  7055. fn: function (){
  7056. var self=this;
  7057. return self['@streamSize'];
  7058. return self;},
  7059. args: [],
  7060. source: unescape('streamSize%0A%09%5EstreamSize'),
  7061. messageSends: [],
  7062. referencedClasses: []
  7063. }),
  7064. smalltalk.Stream);
  7065. smalltalk.addMethod(
  7066. unescape('_setStreamSize_'),
  7067. smalltalk.method({
  7068. selector: unescape('setStreamSize%3A'),
  7069. category: 'accessing',
  7070. fn: function (anInteger){
  7071. var self=this;
  7072. self['@streamSize']=anInteger;
  7073. return self;},
  7074. args: ["anInteger"],
  7075. source: unescape('setStreamSize%3A%20anInteger%0A%09streamSize%20%3A%3D%20anInteger'),
  7076. messageSends: [],
  7077. referencedClasses: []
  7078. }),
  7079. smalltalk.Stream);
  7080. smalltalk.addMethod(
  7081. unescape('_contents'),
  7082. smalltalk.method({
  7083. selector: unescape('contents'),
  7084. category: 'accessing',
  7085. fn: function (){
  7086. var self=this;
  7087. return smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_streamSize", [])]);
  7088. return self;},
  7089. args: [],
  7090. 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'),
  7091. messageSends: ["copyFrom:to:", "collection", "streamSize"],
  7092. referencedClasses: []
  7093. }),
  7094. smalltalk.Stream);
  7095. smalltalk.addMethod(
  7096. unescape('_size'),
  7097. smalltalk.method({
  7098. selector: unescape('size'),
  7099. category: 'accessing',
  7100. fn: function (){
  7101. var self=this;
  7102. return smalltalk.send(self, "_streamSize", []);
  7103. return self;},
  7104. args: [],
  7105. source: unescape('size%0A%09%5Eself%20streamSize'),
  7106. messageSends: ["streamSize"],
  7107. referencedClasses: []
  7108. }),
  7109. smalltalk.Stream);
  7110. smalltalk.addMethod(
  7111. unescape('_reset'),
  7112. smalltalk.method({
  7113. selector: unescape('reset'),
  7114. category: 'actions',
  7115. fn: function (){
  7116. var self=this;
  7117. smalltalk.send(self, "_position_", [(0)]);
  7118. return self;},
  7119. args: [],
  7120. source: unescape('reset%0A%09self%20position%3A%200'),
  7121. messageSends: ["position:"],
  7122. referencedClasses: []
  7123. }),
  7124. smalltalk.Stream);
  7125. smalltalk.addMethod(
  7126. unescape('_close'),
  7127. smalltalk.method({
  7128. selector: unescape('close'),
  7129. category: 'actions',
  7130. fn: function (){
  7131. var self=this;
  7132. return self;},
  7133. args: [],
  7134. source: unescape('close'),
  7135. messageSends: [],
  7136. referencedClasses: []
  7137. }),
  7138. smalltalk.Stream);
  7139. smalltalk.addMethod(
  7140. unescape('_flush'),
  7141. smalltalk.method({
  7142. selector: unescape('flush'),
  7143. category: 'actions',
  7144. fn: function (){
  7145. var self=this;
  7146. return self;},
  7147. args: [],
  7148. source: unescape('flush'),
  7149. messageSends: [],
  7150. referencedClasses: []
  7151. }),
  7152. smalltalk.Stream);
  7153. smalltalk.addMethod(
  7154. unescape('_resetContents'),
  7155. smalltalk.method({
  7156. selector: unescape('resetContents'),
  7157. category: 'actions',
  7158. fn: function (){
  7159. var self=this;
  7160. smalltalk.send(self, "_reset", []);
  7161. smalltalk.send(self, "_setStreamSize_", [(0)]);
  7162. return self;},
  7163. args: [],
  7164. source: unescape('resetContents%0A%09self%20reset.%0A%09self%20setStreamSize%3A%200'),
  7165. messageSends: ["reset", "setStreamSize:"],
  7166. referencedClasses: []
  7167. }),
  7168. smalltalk.Stream);
  7169. smalltalk.addMethod(
  7170. unescape('_do_'),
  7171. smalltalk.method({
  7172. selector: unescape('do%3A'),
  7173. category: 'enumerating',
  7174. fn: function (aBlock){
  7175. var self=this;
  7176. (function(){while(!(function(){return smalltalk.send(self, "_atEnd", []);})()) {(function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_next", [])]);})()}})();
  7177. return self;},
  7178. args: ["aBlock"],
  7179. source: unescape('do%3A%20aBlock%0A%09%5Bself%20atEnd%5D%20whileFalse%3A%20%5BaBlock%20value%3A%20self%20next%5D'),
  7180. messageSends: ["whileFalse:", "atEnd", "value:", "next"],
  7181. referencedClasses: []
  7182. }),
  7183. smalltalk.Stream);
  7184. smalltalk.addMethod(
  7185. unescape('_setToEnd'),
  7186. smalltalk.method({
  7187. selector: unescape('setToEnd'),
  7188. category: 'positioning',
  7189. fn: function (){
  7190. var self=this;
  7191. smalltalk.send(self, "_position_", [smalltalk.send(self, "_size", [])]);
  7192. return self;},
  7193. args: [],
  7194. source: unescape('setToEnd%0A%09self%20position%3A%20self%20size'),
  7195. messageSends: ["position:", "size"],
  7196. referencedClasses: []
  7197. }),
  7198. smalltalk.Stream);
  7199. smalltalk.addMethod(
  7200. unescape('_skip_'),
  7201. smalltalk.method({
  7202. selector: unescape('skip%3A'),
  7203. category: 'positioning',
  7204. fn: function (anInteger){
  7205. var self=this;
  7206. smalltalk.send(self, "_position_", [smalltalk.send(((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +anInteger : smalltalk.send($receiver, "__plus", [anInteger])), "_min_max_", [smalltalk.send(self, "_size", []), (0)])]);
  7207. return self;},
  7208. args: ["anInteger"],
  7209. source: unescape('skip%3A%20anInteger%0A%09self%20position%3A%20%28%28self%20position%20+%20anInteger%29%20min%3A%20self%20size%20max%3A%200%29'),
  7210. messageSends: ["position:", "min:max:", unescape("+"), "position", "size"],
  7211. referencedClasses: []
  7212. }),
  7213. smalltalk.Stream);
  7214. smalltalk.addMethod(
  7215. unescape('_next'),
  7216. smalltalk.method({
  7217. selector: unescape('next'),
  7218. category: 'reading',
  7219. fn: function (){
  7220. var self=this;
  7221. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
  7222. return smalltalk.send(self['@collection'], "_at_", [smalltalk.send(self, "_position", [])]);
  7223. return self;},
  7224. args: [],
  7225. source: unescape('next%0A%09self%20position%3A%20self%20position%20+%201.%20%0A%09%5Ecollection%20at%3A%20self%20position'),
  7226. messageSends: ["position:", unescape("+"), "position", "at:"],
  7227. referencedClasses: []
  7228. }),
  7229. smalltalk.Stream);
  7230. smalltalk.addMethod(
  7231. unescape('_next_'),
  7232. smalltalk.method({
  7233. selector: unescape('next%3A'),
  7234. category: 'reading',
  7235. fn: function (anInteger){
  7236. var self=this;
  7237. var tempCollection=nil;
  7238. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  7239. smalltalk.send(anInteger, "_timesRepeat_", [(function(){return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(tempCollection, "_add_", [smalltalk.send(self, "_next", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(tempCollection, "_add_", [smalltalk.send(self, "_next", [])]);})]));})]);
  7240. return tempCollection;
  7241. return self;},
  7242. args: ["anInteger"],
  7243. 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'),
  7244. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", "add:", "next"],
  7245. referencedClasses: []
  7246. }),
  7247. smalltalk.Stream);
  7248. smalltalk.addMethod(
  7249. unescape('_nextPut_'),
  7250. smalltalk.method({
  7251. selector: unescape('nextPut%3A'),
  7252. category: 'writing',
  7253. fn: function (anObject){
  7254. var self=this;
  7255. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
  7256. smalltalk.send(smalltalk.send(self, "_collection", []), "_at_put_", [smalltalk.send(self, "_position", []), anObject]);
  7257. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  7258. return self;},
  7259. args: ["anObject"],
  7260. 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'),
  7261. messageSends: ["position:", unescape("+"), "position", "at:put:", "collection", "setStreamSize:", "max:", "streamSize"],
  7262. referencedClasses: []
  7263. }),
  7264. smalltalk.Stream);
  7265. smalltalk.addMethod(
  7266. unescape('_nextPutAll_'),
  7267. smalltalk.method({
  7268. selector: unescape('nextPutAll%3A'),
  7269. category: 'writing',
  7270. fn: function (aCollection){
  7271. var self=this;
  7272. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_nextPut_", [each]);})]);
  7273. return self;},
  7274. args: ["aCollection"],
  7275. source: unescape('nextPutAll%3A%20aCollection%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20self%20nextPut%3A%20each%5D'),
  7276. messageSends: ["do:", "nextPut:"],
  7277. referencedClasses: []
  7278. }),
  7279. smalltalk.Stream);
  7280. smalltalk.addMethod(
  7281. unescape('_peek'),
  7282. smalltalk.method({
  7283. selector: unescape('peek'),
  7284. category: 'reading',
  7285. fn: function (){
  7286. var self=this;
  7287. return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_collection", []), "_at_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(self, "_collection", []), "_at_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);})]));
  7288. return self;},
  7289. args: [],
  7290. 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'),
  7291. messageSends: ["ifFalse:", "atEnd", "at:", "collection", unescape("+"), "position"],
  7292. referencedClasses: []
  7293. }),
  7294. smalltalk.Stream);
  7295. smalltalk.addMethod(
  7296. unescape('_atEnd'),
  7297. smalltalk.method({
  7298. selector: unescape('atEnd'),
  7299. category: 'testing',
  7300. fn: function (){
  7301. var self=this;
  7302. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [smalltalk.send(self, "_size", [])]);
  7303. return self;},
  7304. args: [],
  7305. source: unescape('atEnd%0A%09%5Eself%20position%20%3D%20self%20size'),
  7306. messageSends: [unescape("%3D"), "position", "size"],
  7307. referencedClasses: []
  7308. }),
  7309. smalltalk.Stream);
  7310. smalltalk.addMethod(
  7311. unescape('_atStart'),
  7312. smalltalk.method({
  7313. selector: unescape('atStart'),
  7314. category: 'testing',
  7315. fn: function (){
  7316. var self=this;
  7317. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [(0)]);
  7318. return self;},
  7319. args: [],
  7320. source: unescape('atStart%0A%09%5Eself%20position%20%3D%200'),
  7321. messageSends: [unescape("%3D"), "position"],
  7322. referencedClasses: []
  7323. }),
  7324. smalltalk.Stream);
  7325. smalltalk.addMethod(
  7326. unescape('_isEmpty'),
  7327. smalltalk.method({
  7328. selector: unescape('isEmpty'),
  7329. category: 'testing',
  7330. fn: function (){
  7331. var self=this;
  7332. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  7333. return self;},
  7334. args: [],
  7335. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  7336. messageSends: [unescape("%3D"), "size"],
  7337. referencedClasses: []
  7338. }),
  7339. smalltalk.Stream);
  7340. smalltalk.addMethod(
  7341. unescape('_on_'),
  7342. smalltalk.method({
  7343. selector: unescape('on%3A'),
  7344. category: 'instance creation',
  7345. fn: function (aCollection){
  7346. var self=this;
  7347. 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", []));
  7348. return self;},
  7349. args: ["aCollection"],
  7350. 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'),
  7351. messageSends: ["setCollection:", "setStreamSize:", "size", "yourself", "new"],
  7352. referencedClasses: []
  7353. }),
  7354. smalltalk.Stream.klass);
  7355. smalltalk.addClass('StringStream', smalltalk.Stream, [], 'Kernel');
  7356. smalltalk.addMethod(
  7357. unescape('_next_'),
  7358. smalltalk.method({
  7359. selector: unescape('next%3A'),
  7360. category: 'reading',
  7361. fn: function (anInteger){
  7362. var self=this;
  7363. var tempCollection=nil;
  7364. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  7365. smalltalk.send(anInteger, "_timesRepeat_", [(function(){return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return tempCollection=smalltalk.send(tempCollection, "__comma", [smalltalk.send(self, "_next", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return tempCollection=smalltalk.send(tempCollection, "__comma", [smalltalk.send(self, "_next", [])]);})]));})]);
  7366. return tempCollection;
  7367. return self;},
  7368. args: ["anInteger"],
  7369. 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'),
  7370. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", unescape("%2C"), "next"],
  7371. referencedClasses: []
  7372. }),
  7373. smalltalk.StringStream);
  7374. smalltalk.addMethod(
  7375. unescape('_nextPut_'),
  7376. smalltalk.method({
  7377. selector: unescape('nextPut%3A'),
  7378. category: 'writing',
  7379. fn: function (aString){
  7380. var self=this;
  7381. smalltalk.send(self, "_nextPutAll_", [aString]);
  7382. return self;},
  7383. args: ["aString"],
  7384. source: unescape('nextPut%3A%20aString%0A%09self%20nextPutAll%3A%20aString'),
  7385. messageSends: ["nextPutAll:"],
  7386. referencedClasses: []
  7387. }),
  7388. smalltalk.StringStream);
  7389. smalltalk.addMethod(
  7390. unescape('_nextPutAll_'),
  7391. smalltalk.method({
  7392. selector: unescape('nextPutAll%3A'),
  7393. category: 'writing',
  7394. fn: function (aString){
  7395. var self=this;
  7396. smalltalk.send(self, "_setCollection_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_position", [])]), "__comma", [aString]), "__comma", [smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [((($receiver = ((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))).klass === smalltalk.Number) ? $receiver +smalltalk.send(aString, "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(aString, "_size", [])])), smalltalk.send(smalltalk.send(self, "_collection", []), "_size", [])])])]);
  7397. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(aString, "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(aString, "_size", [])]))]);
  7398. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  7399. return self;},
  7400. args: ["aString"],
  7401. 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'),
  7402. messageSends: ["setCollection:", unescape("%2C"), "copyFrom:to:", "collection", "position", unescape("+"), "size", "position:", "setStreamSize:", "max:", "streamSize"],
  7403. referencedClasses: []
  7404. }),
  7405. smalltalk.StringStream);
  7406. smalltalk.addMethod(
  7407. unescape('_cr'),
  7408. smalltalk.method({
  7409. selector: unescape('cr'),
  7410. category: 'writing',
  7411. fn: function (){
  7412. var self=this;
  7413. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  7414. return self;},
  7415. args: [],
  7416. source: unescape('cr%0A%09%5Eself%20nextPutAll%3A%20String%20cr'),
  7417. messageSends: ["nextPutAll:", "cr"],
  7418. referencedClasses: [smalltalk.String]
  7419. }),
  7420. smalltalk.StringStream);
  7421. smalltalk.addMethod(
  7422. unescape('_crlf'),
  7423. smalltalk.method({
  7424. selector: unescape('crlf'),
  7425. category: 'writing',
  7426. fn: function (){
  7427. var self=this;
  7428. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_crlf", [])]);
  7429. return self;},
  7430. args: [],
  7431. source: unescape('crlf%0A%09%5Eself%20nextPutAll%3A%20String%20crlf'),
  7432. messageSends: ["nextPutAll:", "crlf"],
  7433. referencedClasses: [smalltalk.String]
  7434. }),
  7435. smalltalk.StringStream);
  7436. smalltalk.addMethod(
  7437. unescape('_lf'),
  7438. smalltalk.method({
  7439. selector: unescape('lf'),
  7440. category: 'writing',
  7441. fn: function (){
  7442. var self=this;
  7443. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_lf", [])]);
  7444. return self;},
  7445. args: [],
  7446. source: unescape('lf%0A%09%5Eself%20nextPutAll%3A%20String%20lf'),
  7447. messageSends: ["nextPutAll:", "lf"],
  7448. referencedClasses: [smalltalk.String]
  7449. }),
  7450. smalltalk.StringStream);
  7451. smalltalk.addMethod(
  7452. unescape('_space'),
  7453. smalltalk.method({
  7454. selector: unescape('space'),
  7455. category: 'writing',
  7456. fn: function (){
  7457. var self=this;
  7458. smalltalk.send(self, "_nextPut_", [" "]);
  7459. return self;},
  7460. args: [],
  7461. source: unescape('space%0A%09self%20nextPut%3A%20%27%20%27'),
  7462. messageSends: ["nextPut:"],
  7463. referencedClasses: []
  7464. }),
  7465. smalltalk.StringStream);
  7466. smalltalk.addClass('ClassCommentReader', smalltalk.Object, ['class', 'chunkParser'], 'Kernel');
  7467. smalltalk.addMethod(
  7468. unescape('_class_'),
  7469. smalltalk.method({
  7470. selector: unescape('class%3A'),
  7471. category: 'accessing',
  7472. fn: function (aClass){
  7473. var self=this;
  7474. self['@class']=aClass;
  7475. return self;},
  7476. args: ["aClass"],
  7477. source: unescape('class%3A%20aClass%0A%09class%20%3A%3D%20aClass'),
  7478. messageSends: [],
  7479. referencedClasses: []
  7480. }),
  7481. smalltalk.ClassCommentReader);
  7482. smalltalk.addMethod(
  7483. unescape('_scanFrom_'),
  7484. smalltalk.method({
  7485. selector: unescape('scanFrom%3A'),
  7486. category: 'fileIn',
  7487. fn: function (aChunkParser){
  7488. var self=this;
  7489. var chunk=nil;
  7490. chunk=smalltalk.send(aChunkParser, "_nextChunk", []);
  7491. ((($receiver = smalltalk.send(chunk, "_isEmpty", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_setComment_", [chunk]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_setComment_", [chunk]);})]));
  7492. return self;},
  7493. args: ["aChunkParser"],
  7494. source: unescape('scanFrom%3A%20aChunkParser%0A%09%7C%20chunk%20%7C%0A%09chunk%20%3A%3D%20aChunkParser%20nextChunk.%0A%09chunk%20isEmpty%20ifFalse%3A%20%5B%0A%09%20%20%20%20self%20setComment%3A%20chunk%5D.'),
  7495. messageSends: ["nextChunk", "ifFalse:", "isEmpty", "setComment:"],
  7496. referencedClasses: []
  7497. }),
  7498. smalltalk.ClassCommentReader);
  7499. smalltalk.addMethod(
  7500. unescape('_initialize'),
  7501. smalltalk.method({
  7502. selector: unescape('initialize'),
  7503. category: 'initialization',
  7504. fn: function (){
  7505. var self=this;
  7506. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  7507. self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []);
  7508. return self;},
  7509. args: [],
  7510. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  7511. messageSends: ["initialize", "new"],
  7512. referencedClasses: [smalltalk.nil]
  7513. }),
  7514. smalltalk.ClassCommentReader);
  7515. smalltalk.addMethod(
  7516. unescape('_setComment_'),
  7517. smalltalk.method({
  7518. selector: unescape('setComment%3A'),
  7519. category: 'private',
  7520. fn: function (aString){
  7521. var self=this;
  7522. smalltalk.send(self['@class'], "_comment_", [aString]);
  7523. return self;},
  7524. args: ["aString"],
  7525. source: unescape('setComment%3A%20aString%0A%20%20%20%20class%20comment%3A%20aString'),
  7526. messageSends: ["comment:"],
  7527. referencedClasses: []
  7528. }),
  7529. smalltalk.ClassCommentReader);
  7530. smalltalk.addClass('Random', smalltalk.Object, [], 'Kernel');
  7531. smalltalk.addMethod(
  7532. unescape('_next'),
  7533. smalltalk.method({
  7534. selector: unescape('next'),
  7535. category: 'accessing',
  7536. fn: function (){
  7537. var self=this;
  7538. return Math.random();
  7539. return self;},
  7540. args: [],
  7541. source: unescape('next%0A%09%3Creturn%20Math.random%28%29%3E'),
  7542. messageSends: [],
  7543. referencedClasses: []
  7544. }),
  7545. smalltalk.Random);
  7546. smalltalk.addMethod(
  7547. unescape('_next_'),
  7548. smalltalk.method({
  7549. selector: unescape('next%3A'),
  7550. category: 'accessing',
  7551. fn: function (anInteger){
  7552. var self=this;
  7553. return smalltalk.send(smalltalk.send((1), "_to_", [anInteger]), "_collect_", [(function(each){return smalltalk.send(self, "_next", []);})]);
  7554. return self;},
  7555. args: ["anInteger"],
  7556. source: unescape('next%3A%20anInteger%0A%20%20%20%20%5E%281%20to%3A%20anInteger%29%20collect%3A%20%5B%3Aeach%20%7C%20self%20next%5D'),
  7557. messageSends: ["collect:", "to:", "next"],
  7558. referencedClasses: []
  7559. }),
  7560. smalltalk.Random);
  7561. smalltalk.addClass('Point', smalltalk.Object, ['x', 'y'], 'Kernel');
  7562. smalltalk.addMethod(
  7563. unescape('_x'),
  7564. smalltalk.method({
  7565. selector: unescape('x'),
  7566. category: 'accessing',
  7567. fn: function (){
  7568. var self=this;
  7569. return self['@x'];
  7570. return self;},
  7571. args: [],
  7572. source: unescape('x%0A%09%5Ex'),
  7573. messageSends: [],
  7574. referencedClasses: []
  7575. }),
  7576. smalltalk.Point);
  7577. smalltalk.addMethod(
  7578. unescape('_y'),
  7579. smalltalk.method({
  7580. selector: unescape('y'),
  7581. category: 'accessing',
  7582. fn: function (){
  7583. var self=this;
  7584. return self['@y'];
  7585. return self;},
  7586. args: [],
  7587. source: unescape('y%0A%09%5Ey'),
  7588. messageSends: [],
  7589. referencedClasses: []
  7590. }),
  7591. smalltalk.Point);
  7592. smalltalk.addMethod(
  7593. unescape('_y_'),
  7594. smalltalk.method({
  7595. selector: unescape('y%3A'),
  7596. category: 'accessing',
  7597. fn: function (aNumber){
  7598. var self=this;
  7599. self['@y']=aNumber;
  7600. return self;},
  7601. args: ["aNumber"],
  7602. source: unescape('y%3A%20aNumber%0A%09y%20%3A%3D%20aNumber'),
  7603. messageSends: [],
  7604. referencedClasses: []
  7605. }),
  7606. smalltalk.Point);
  7607. smalltalk.addMethod(
  7608. unescape('_x_'),
  7609. smalltalk.method({
  7610. selector: unescape('x%3A'),
  7611. category: 'accessing',
  7612. fn: function (aNumber){
  7613. var self=this;
  7614. self['@x']=aNumber;
  7615. return self;},
  7616. args: ["aNumber"],
  7617. source: unescape('x%3A%20aNumber%0A%09x%20%3A%3D%20aNumber'),
  7618. messageSends: [],
  7619. referencedClasses: []
  7620. }),
  7621. smalltalk.Point);
  7622. smalltalk.addMethod(
  7623. unescape('__star'),
  7624. smalltalk.method({
  7625. selector: unescape('*'),
  7626. category: 'arithmetic',
  7627. fn: function (aPoint){
  7628. var self=this;
  7629. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver *smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__star", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver *smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__star", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
  7630. return self;},
  7631. args: ["aPoint"],
  7632. source: unescape('*%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20*%20aPoint%20asPoint%20x%20y%3A%20self%20y%20*%20aPoint%20asPoint%20y'),
  7633. messageSends: ["x:y:", unescape("*"), "x", "asPoint", "y"],
  7634. referencedClasses: [smalltalk.Point]
  7635. }),
  7636. smalltalk.Point);
  7637. smalltalk.addMethod(
  7638. unescape('__plus'),
  7639. smalltalk.method({
  7640. selector: unescape('+'),
  7641. category: 'arithmetic',
  7642. fn: function (aPoint){
  7643. var self=this;
  7644. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
  7645. return self;},
  7646. args: ["aPoint"],
  7647. source: unescape('+%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20+%20aPoint%20asPoint%20x%20y%3A%20self%20y%20+%20aPoint%20asPoint%20y'),
  7648. messageSends: ["x:y:", unescape("+"), "x", "asPoint", "y"],
  7649. referencedClasses: [smalltalk.Point]
  7650. }),
  7651. smalltalk.Point);
  7652. smalltalk.addMethod(
  7653. unescape('__minus'),
  7654. smalltalk.method({
  7655. selector: unescape('-'),
  7656. category: 'arithmetic',
  7657. fn: function (aPoint){
  7658. var self=this;
  7659. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver -smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__minus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver -smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__minus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
  7660. return self;},
  7661. args: ["aPoint"],
  7662. source: unescape('-%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20-%20aPoint%20asPoint%20x%20y%3A%20self%20y%20-%20aPoint%20asPoint%20y'),
  7663. messageSends: ["x:y:", unescape("-"), "x", "asPoint", "y"],
  7664. referencedClasses: [smalltalk.Point]
  7665. }),
  7666. smalltalk.Point);
  7667. smalltalk.addMethod(
  7668. unescape('__slash'),
  7669. smalltalk.method({
  7670. selector: unescape('/'),
  7671. category: 'arithmetic',
  7672. fn: function (aPoint){
  7673. var self=this;
  7674. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver /smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__slash", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver /smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__slash", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
  7675. return self;},
  7676. args: ["aPoint"],
  7677. source: unescape('/%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20/%20aPoint%20asPoint%20x%20y%3A%20self%20y%20/%20aPoint%20asPoint%20y'),
  7678. messageSends: ["x:y:", unescape("/"), "x", "asPoint", "y"],
  7679. referencedClasses: [smalltalk.Point]
  7680. }),
  7681. smalltalk.Point);
  7682. smalltalk.addMethod(
  7683. unescape('_asPoint'),
  7684. smalltalk.method({
  7685. selector: unescape('asPoint'),
  7686. category: 'converting',
  7687. fn: function (){
  7688. var self=this;
  7689. return self;
  7690. return self;},
  7691. args: [],
  7692. source: unescape('asPoint%0A%09%5Eself'),
  7693. messageSends: [],
  7694. referencedClasses: []
  7695. }),
  7696. smalltalk.Point);
  7697. smalltalk.addMethod(
  7698. unescape('__eq'),
  7699. smalltalk.method({
  7700. selector: unescape('%3D'),
  7701. category: 'arithmetic',
  7702. fn: function (aPoint){
  7703. var self=this;
  7704. return smalltalk.send(smalltalk.send(smalltalk.send(aPoint, "_class", []), "__eq", [smalltalk.send(self, "_class", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(aPoint, "_x", []), "__eq", [smalltalk.send(self, "_x", [])]), "_&", [smalltalk.send(smalltalk.send(aPoint, "_y", []), "__eq", [smalltalk.send(self, "_y", [])])]);})]);
  7705. return self;},
  7706. args: ["aPoint"],
  7707. source: unescape('%3D%20aPoint%0A%09%5EaPoint%20class%20%3D%20self%20class%20and%3A%20%5B%0A%09%09%28aPoint%20x%20%3D%20self%20x%29%20%26%20%28aPoint%20y%20%3D%20self%20y%29%5D'),
  7708. messageSends: ["and:", unescape("%3D"), "class", unescape("%26"), "x", "y"],
  7709. referencedClasses: []
  7710. }),
  7711. smalltalk.Point);
  7712. smalltalk.addMethod(
  7713. unescape('_x_y_'),
  7714. smalltalk.method({
  7715. selector: unescape('x%3Ay%3A'),
  7716. category: 'instance creation',
  7717. fn: function (aNumber, anotherNumber){
  7718. var self=this;
  7719. return (function($rec){smalltalk.send($rec, "_x_", [aNumber]);smalltalk.send($rec, "_y_", [anotherNumber]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  7720. return self;},
  7721. args: ["aNumber", "anotherNumber"],
  7722. 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'),
  7723. messageSends: ["x:", "y:", "yourself", "new"],
  7724. referencedClasses: []
  7725. }),
  7726. smalltalk.Point.klass);
  7727. smalltalk.addClass('Message', smalltalk.Object, ['selector', 'arguments'], 'Kernel');
  7728. smalltalk.addMethod(
  7729. unescape('_selector'),
  7730. smalltalk.method({
  7731. selector: unescape('selector'),
  7732. category: 'accessing',
  7733. fn: function (){
  7734. var self=this;
  7735. return self['@selector'];
  7736. return self;},
  7737. args: [],
  7738. source: unescape('selector%0A%09%5Eselector'),
  7739. messageSends: [],
  7740. referencedClasses: []
  7741. }),
  7742. smalltalk.Message);
  7743. smalltalk.addMethod(
  7744. unescape('_selector_'),
  7745. smalltalk.method({
  7746. selector: unescape('selector%3A'),
  7747. category: 'accessing',
  7748. fn: function (aString){
  7749. var self=this;
  7750. self['@selector']=aString;
  7751. return self;},
  7752. args: ["aString"],
  7753. source: unescape('selector%3A%20aString%0A%09selector%20%3A%3D%20aString'),
  7754. messageSends: [],
  7755. referencedClasses: []
  7756. }),
  7757. smalltalk.Message);
  7758. smalltalk.addMethod(
  7759. unescape('_arguments_'),
  7760. smalltalk.method({
  7761. selector: unescape('arguments%3A'),
  7762. category: 'accessing',
  7763. fn: function (anArray){
  7764. var self=this;
  7765. self['@arguments']=anArray;
  7766. return self;},
  7767. args: ["anArray"],
  7768. source: unescape('arguments%3A%20anArray%0A%09arguments%20%3A%3D%20anArray'),
  7769. messageSends: [],
  7770. referencedClasses: []
  7771. }),
  7772. smalltalk.Message);
  7773. smalltalk.addMethod(
  7774. unescape('_arguments'),
  7775. smalltalk.method({
  7776. selector: unescape('arguments'),
  7777. category: 'accessing',
  7778. fn: function (){
  7779. var self=this;
  7780. return self['@arguments'];
  7781. return self;},
  7782. args: [],
  7783. source: unescape('arguments%0A%09%5Earguments'),
  7784. messageSends: [],
  7785. referencedClasses: []
  7786. }),
  7787. smalltalk.Message);
  7788. smalltalk.addMethod(
  7789. unescape('_printString'),
  7790. smalltalk.method({
  7791. selector: unescape('printString'),
  7792. category: 'printing',
  7793. fn: function (){
  7794. var self=this;
  7795. return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(aStream){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_printString", [], smalltalk.Object)]);smalltalk.send($rec, "_nextPutAll_", [unescape("%28")]);smalltalk.send($rec, "_nextPutAll_", [self['@selector']]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%29")]);})(aStream);})]);
  7796. return self;},
  7797. args: [],
  7798. source: unescape('printString%0A%09%5E%20String%20streamContents%3A%20%5B%3AaStream%7C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09%09aStream%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09%09%09nextPutAll%3A%20super%20printString%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09%09%09nextPutAll%3A%20%27%28%27%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09%09%09nextPutAll%3A%20selector%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09%09%09nextPutAll%3A%20%27%29%27%20%09%09%09%09%5D'),
  7799. messageSends: ["streamContents:", "nextPutAll:", "printString"],
  7800. referencedClasses: [smalltalk.String]
  7801. }),
  7802. smalltalk.Message);
  7803. smalltalk.addMethod(
  7804. unescape('_selector_arguments_'),
  7805. smalltalk.method({
  7806. selector: unescape('selector%3Aarguments%3A'),
  7807. category: 'instance creation',
  7808. fn: function (aString, anArray){
  7809. var self=this;
  7810. return (function($rec){smalltalk.send($rec, "_selector_", [aString]);smalltalk.send($rec, "_arguments_", [anArray]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  7811. return self;},
  7812. args: ["aString", "anArray"],
  7813. 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'),
  7814. messageSends: ["selector:", "arguments:", "yourself", "new"],
  7815. referencedClasses: []
  7816. }),
  7817. smalltalk.Message.klass);
  7818. smalltalk.addClass('MessageNotUnderstood', smalltalk.Error, ['message', 'receiver'], 'Kernel');
  7819. smalltalk.addMethod(
  7820. unescape('_message'),
  7821. smalltalk.method({
  7822. selector: unescape('message'),
  7823. category: 'accessing',
  7824. fn: function (){
  7825. var self=this;
  7826. return self['@message'];
  7827. return self;},
  7828. args: [],
  7829. source: unescape('message%0A%09%5Emessage'),
  7830. messageSends: [],
  7831. referencedClasses: []
  7832. }),
  7833. smalltalk.MessageNotUnderstood);
  7834. smalltalk.addMethod(
  7835. unescape('_message_'),
  7836. smalltalk.method({
  7837. selector: unescape('message%3A'),
  7838. category: 'accessing',
  7839. fn: function (aMessage){
  7840. var self=this;
  7841. self['@message']=aMessage;
  7842. return self;},
  7843. args: ["aMessage"],
  7844. source: unescape('message%3A%20aMessage%0A%09message%20%3A%3D%20aMessage'),
  7845. messageSends: [],
  7846. referencedClasses: []
  7847. }),
  7848. smalltalk.MessageNotUnderstood);
  7849. smalltalk.addMethod(
  7850. unescape('_receiver'),
  7851. smalltalk.method({
  7852. selector: unescape('receiver'),
  7853. category: 'accessing',
  7854. fn: function (){
  7855. var self=this;
  7856. return self['@receiver'];
  7857. return self;},
  7858. args: [],
  7859. source: unescape('receiver%0A%09%5Ereceiver'),
  7860. messageSends: [],
  7861. referencedClasses: []
  7862. }),
  7863. smalltalk.MessageNotUnderstood);
  7864. smalltalk.addMethod(
  7865. unescape('_receiver_'),
  7866. smalltalk.method({
  7867. selector: unescape('receiver%3A'),
  7868. category: 'accessing',
  7869. fn: function (anObject){
  7870. var self=this;
  7871. self['@receiver']=anObject;
  7872. return self;},
  7873. args: ["anObject"],
  7874. source: unescape('receiver%3A%20anObject%0A%09receiver%20%3A%3D%20anObject'),
  7875. messageSends: [],
  7876. referencedClasses: []
  7877. }),
  7878. smalltalk.MessageNotUnderstood);
  7879. smalltalk.addMethod(
  7880. unescape('_messageText'),
  7881. smalltalk.method({
  7882. selector: unescape('messageText'),
  7883. category: 'accessing',
  7884. fn: function (){
  7885. var self=this;
  7886. 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", [])]);
  7887. return self;},
  7888. args: [],
  7889. source: unescape('messageText%0A%09%5Eself%20receiver%20asString%2C%20%27%20does%20not%20understand%20%23%27%2C%20self%20message%20selector'),
  7890. messageSends: [unescape("%2C"), "asString", "receiver", "selector", "message"],
  7891. referencedClasses: []
  7892. }),
  7893. smalltalk.MessageNotUnderstood);
  7894. smalltalk.addClass('ErrorHandler', smalltalk.Object, [], 'Kernel');
  7895. smalltalk.addMethod(
  7896. unescape('_handleError_'),
  7897. smalltalk.method({
  7898. selector: unescape('handleError%3A'),
  7899. category: 'error handling',
  7900. fn: function (anError){
  7901. var self=this;
  7902. (($receiver = smalltalk.send(anError, "_context", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logErrorContext_", [smalltalk.send(anError, "_context", [])]);})() : nil;
  7903. smalltalk.send(self, "_logError_", [anError]);
  7904. return self;},
  7905. args: ["anError"],
  7906. source: unescape('handleError%3A%20anError%0A%09anError%20context%20ifNotNil%3A%20%5Bself%20logErrorContext%3A%20anError%20context%5D.%0A%09self%20logError%3A%20anError'),
  7907. messageSends: ["ifNotNil:", "context", "logErrorContext:", "logError:"],
  7908. referencedClasses: []
  7909. }),
  7910. smalltalk.ErrorHandler);
  7911. smalltalk.addMethod(
  7912. unescape('_logContext_'),
  7913. smalltalk.method({
  7914. selector: unescape('logContext%3A'),
  7915. category: 'private',
  7916. fn: function (aContext){
  7917. var self=this;
  7918. (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logContext_", [smalltalk.send(aContext, "_home", [])]);})() : nil;
  7919. smalltalk.send(self, "_log_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aContext, "_receiver", []), "_asString", []), "__comma", [unescape("%3E%3E")]), "__comma", [smalltalk.send(aContext, "_selector", [])])]);
  7920. return self;},
  7921. args: ["aContext"],
  7922. source: unescape('logContext%3A%20aContext%0A%09aContext%20home%20ifNotNil%3A%20%5B%0A%09%09self%20logContext%3A%20aContext%20home%5D.%0A%09self%20log%3A%20aContext%20receiver%20asString%2C%20%27%3E%3E%27%2C%20aContext%20selector'),
  7923. messageSends: ["ifNotNil:", "home", "logContext:", "log:", unescape("%2C"), "asString", "receiver", "selector"],
  7924. referencedClasses: []
  7925. }),
  7926. smalltalk.ErrorHandler);
  7927. smalltalk.addMethod(
  7928. unescape('_logErrorContext_'),
  7929. smalltalk.method({
  7930. selector: unescape('logErrorContext%3A'),
  7931. category: 'private',
  7932. fn: function (aContext){
  7933. var self=this;
  7934. (($receiver = aContext) != nil && $receiver != undefined) ? (function(){return (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logContext_", [smalltalk.send(aContext, "_home", [])]);})() : nil;})() : nil;
  7935. return self;},
  7936. args: ["aContext"],
  7937. source: unescape('logErrorContext%3A%20aContext%0A%09aContext%20ifNotNil%3A%20%5B%0A%09%09aContext%20home%20ifNotNil%3A%20%5B%0A%09%09%09self%20logContext%3A%20aContext%20home%5D%5D'),
  7938. messageSends: ["ifNotNil:", "home", "logContext:"],
  7939. referencedClasses: []
  7940. }),
  7941. smalltalk.ErrorHandler);
  7942. smalltalk.addMethod(
  7943. unescape('_logError_'),
  7944. smalltalk.method({
  7945. selector: unescape('logError%3A'),
  7946. category: 'private',
  7947. fn: function (anError){
  7948. var self=this;
  7949. smalltalk.send(self, "_log_", [smalltalk.send(anError, "_messageText", [])]);
  7950. return self;},
  7951. args: ["anError"],
  7952. source: unescape('logError%3A%20anError%0A%09self%20log%3A%20anError%20messageText'),
  7953. messageSends: ["log:", "messageText"],
  7954. referencedClasses: []
  7955. }),
  7956. smalltalk.ErrorHandler);
  7957. smalltalk.addMethod(
  7958. unescape('_log_'),
  7959. smalltalk.method({
  7960. selector: unescape('log%3A'),
  7961. category: 'private',
  7962. fn: function (aString){
  7963. var self=this;
  7964. smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [aString]);
  7965. return self;},
  7966. args: ["aString"],
  7967. source: unescape('log%3A%20aString%0A%09console%20log%3A%20aString'),
  7968. messageSends: ["log:"],
  7969. referencedClasses: []
  7970. }),
  7971. smalltalk.ErrorHandler);
  7972. smalltalk.ErrorHandler.klass.iVarNames = ['current'];
  7973. smalltalk.addMethod(
  7974. unescape('_current'),
  7975. smalltalk.method({
  7976. selector: unescape('current'),
  7977. category: 'accessing',
  7978. fn: function (){
  7979. var self=this;
  7980. return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", []);})() : $receiver;
  7981. return self;},
  7982. args: [],
  7983. source: unescape('current%0A%09%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20self%20new%5D'),
  7984. messageSends: ["ifNil:", "new"],
  7985. referencedClasses: []
  7986. }),
  7987. smalltalk.ErrorHandler.klass);
  7988. smalltalk.addMethod(
  7989. unescape('_initialize'),
  7990. smalltalk.method({
  7991. selector: unescape('initialize'),
  7992. category: 'initialization',
  7993. fn: function (){
  7994. var self=this;
  7995. smalltalk.send(self, "_register", []);
  7996. return self;},
  7997. args: [],
  7998. source: unescape('initialize%0A%09self%20register'),
  7999. messageSends: ["register"],
  8000. referencedClasses: []
  8001. }),
  8002. smalltalk.ErrorHandler.klass);
  8003. smalltalk.addMethod(
  8004. unescape('_register'),
  8005. smalltalk.method({
  8006. selector: unescape('register'),
  8007. category: 'initialization',
  8008. fn: function (){
  8009. var self=this;
  8010. smalltalk.send((smalltalk.ErrorHandler || ErrorHandler), "_setCurrent_", [smalltalk.send(self, "_new", [])]);
  8011. return self;},
  8012. args: [],
  8013. source: unescape('register%0A%09ErrorHandler%20setCurrent%3A%20self%20new'),
  8014. messageSends: ["setCurrent:", "new"],
  8015. referencedClasses: [smalltalk.ErrorHandler]
  8016. }),
  8017. smalltalk.ErrorHandler.klass);
  8018. smalltalk.addMethod(
  8019. unescape('_setCurrent_'),
  8020. smalltalk.method({
  8021. selector: unescape('setCurrent%3A'),
  8022. category: 'accessing',
  8023. fn: function (anHandler){
  8024. var self=this;
  8025. self['@current']=anHandler;
  8026. return self;},
  8027. args: ["anHandler"],
  8028. source: unescape('setCurrent%3A%20anHandler%0A%09current%20%3A%3D%20anHandler'),
  8029. messageSends: [],
  8030. referencedClasses: []
  8031. }),
  8032. smalltalk.ErrorHandler.klass);
  8033. smalltalk.addClass('JSObjectProxy', smalltalk.Object, ['jsObject'], 'Kernel');
  8034. smalltalk.addMethod(
  8035. unescape('_jsObject_'),
  8036. smalltalk.method({
  8037. selector: unescape('jsObject%3A'),
  8038. category: 'accessing',
  8039. fn: function (aJSObject){
  8040. var self=this;
  8041. self['@jsObject']=aJSObject;
  8042. return self;},
  8043. args: ["aJSObject"],
  8044. source: unescape('jsObject%3A%20aJSObject%0A%09jsObject%20%3A%3D%20aJSObject'),
  8045. messageSends: [],
  8046. referencedClasses: []
  8047. }),
  8048. smalltalk.JSObjectProxy);
  8049. smalltalk.addMethod(
  8050. unescape('_jsObject'),
  8051. smalltalk.method({
  8052. selector: unescape('jsObject'),
  8053. category: 'accessing',
  8054. fn: function (){
  8055. var self=this;
  8056. return self['@jsObject'];
  8057. return self;},
  8058. args: [],
  8059. source: unescape('jsObject%0A%09%5EjsObject'),
  8060. messageSends: [],
  8061. referencedClasses: []
  8062. }),
  8063. smalltalk.JSObjectProxy);
  8064. smalltalk.addMethod(
  8065. unescape('_printString'),
  8066. smalltalk.method({
  8067. selector: unescape('printString'),
  8068. category: 'proxy',
  8069. fn: function (){
  8070. var self=this;
  8071. return smalltalk.send(smalltalk.send(self, "_jsObject", []), "_toString", []);
  8072. return self;},
  8073. args: [],
  8074. source: unescape('printString%0A%09%5Eself%20jsObject%20toString'),
  8075. messageSends: ["toString", "jsObject"],
  8076. referencedClasses: []
  8077. }),
  8078. smalltalk.JSObjectProxy);
  8079. smalltalk.addMethod(
  8080. unescape('_inspectOn_'),
  8081. smalltalk.method({
  8082. selector: unescape('inspectOn%3A'),
  8083. category: 'proxy',
  8084. fn: function (anInspector){
  8085. var self=this;
  8086. var variables=nil;
  8087. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  8088. smalltalk.send(variables, "_at_put_", [unescape("%23self"), smalltalk.send(self, "_jsObject", [])]);
  8089. smalltalk.send(anInspector, "_setLabel_", [smalltalk.send(self, "_printString", [])]);
  8090. for(var i in self['@jsObject']) {
  8091. variables._at_put_(i, self['@jsObject'][i]);
  8092. };
  8093. smalltalk.send(anInspector, "_setVariables_", [variables]);
  8094. return self;},
  8095. args: ["anInspector"],
  8096. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self%20jsObject.%0A%09anInspector%20setLabel%3A%20self%20printString.%0A%09%3Cfor%28var%20i%20in%20self%5B%27@jsObject%27%5D%29%20%7B%0A%09%09variables._at_put_%28i%2C%20self%5B%27@jsObject%27%5D%5Bi%5D%29%3B%0A%09%7D%3E.%0A%09anInspector%20setVariables%3A%20variables'),
  8097. messageSends: ["new", "at:put:", "jsObject", "setLabel:", "printString", "setVariables:"],
  8098. referencedClasses: [smalltalk.Dictionary]
  8099. }),
  8100. smalltalk.JSObjectProxy);
  8101. smalltalk.addMethod(
  8102. unescape('_doesNotUnderstand_'),
  8103. smalltalk.method({
  8104. selector: unescape('doesNotUnderstand%3A'),
  8105. category: 'proxy',
  8106. fn: function (aMessage){
  8107. var self=this;
  8108. var obj=nil;
  8109. var selector=nil;
  8110. var jsSelector=nil;
  8111. var arguments=nil;
  8112. obj=smalltalk.send(self, "_jsObject", []);
  8113. selector=smalltalk.send(aMessage, "_selector", []);
  8114. jsSelector=smalltalk.send(selector, "_asJavaScriptSelector", []);
  8115. arguments=smalltalk.send(aMessage, "_arguments", []);
  8116. if(obj[jsSelector] != undefined) {return smalltalk.send(obj, jsSelector, arguments)};
  8117. smalltalk.send(self, "_doesNotUnderstand_", [aMessage], smalltalk.Object);
  8118. return self;},
  8119. args: ["aMessage"],
  8120. source: unescape('doesNotUnderstand%3A%20aMessage%0A%09%7C%20obj%20selector%20jsSelector%20arguments%20%7C%0A%09obj%20%3A%3D%20self%20jsObject.%0A%09selector%20%3A%3D%20aMessage%20selector.%0A%09jsSelector%20%3A%3D%20selector%20asJavaScriptSelector.%0A%09arguments%20%3A%3D%20aMessage%20arguments.%0A%09%3Cif%28obj%5BjsSelector%5D%20%21%3D%20undefined%29%20%7Breturn%20smalltalk.send%28obj%2C%20jsSelector%2C%20arguments%29%7D%3E.%0A%09super%20doesNotUnderstand%3A%20aMessage'),
  8121. messageSends: ["jsObject", "selector", "asJavaScriptSelector", "arguments", "doesNotUnderstand:"],
  8122. referencedClasses: []
  8123. }),
  8124. smalltalk.JSObjectProxy);
  8125. smalltalk.addMethod(
  8126. unescape('_at_'),
  8127. smalltalk.method({
  8128. selector: unescape('at%3A'),
  8129. category: 'accessing',
  8130. fn: function (aString){
  8131. var self=this;
  8132. return self['@jsObject'][aString];
  8133. return self;},
  8134. args: ["aString"],
  8135. source: unescape('at%3A%20aString%0A%09%3Creturn%20self%5B%27@jsObject%27%5D%5BaString%5D%3E'),
  8136. messageSends: [],
  8137. referencedClasses: []
  8138. }),
  8139. smalltalk.JSObjectProxy);
  8140. smalltalk.addMethod(
  8141. unescape('_at_put_'),
  8142. smalltalk.method({
  8143. selector: unescape('at%3Aput%3A'),
  8144. category: 'accessing',
  8145. fn: function (aString, anObject){
  8146. var self=this;
  8147. self['@jsObject'][aString] = anObject;
  8148. return self;},
  8149. args: ["aString", "anObject"],
  8150. source: unescape('at%3A%20aString%20put%3A%20anObject%0A%09%3Cself%5B%27@jsObject%27%5D%5BaString%5D%20%3D%20anObject%3E'),
  8151. messageSends: [],
  8152. referencedClasses: []
  8153. }),
  8154. smalltalk.JSObjectProxy);
  8155. smalltalk.addMethod(
  8156. unescape('_on_'),
  8157. smalltalk.method({
  8158. selector: unescape('on%3A'),
  8159. category: 'instance creation',
  8160. fn: function (aJSObject){
  8161. var self=this;
  8162. return (function($rec){smalltalk.send($rec, "_jsObject_", [aJSObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  8163. return self;},
  8164. args: ["aJSObject"],
  8165. source: unescape('on%3A%20aJSObject%0A%09%5Eself%20new%0A%09%09jsObject%3A%20aJSObject%3B%0A%09%09yourself'),
  8166. messageSends: ["jsObject:", "yourself", "new"],
  8167. referencedClasses: []
  8168. }),
  8169. smalltalk.JSObjectProxy.klass);
  8170. smalltalk.addClass('Set', smalltalk.Collection, ['elements'], 'Kernel');
  8171. smalltalk.addMethod(
  8172. unescape('_add_'),
  8173. smalltalk.method({
  8174. selector: unescape('add%3A'),
  8175. category: 'adding/removing',
  8176. fn: function (anObject){
  8177. var self=this;
  8178. var found;
  8179. for(var i in self['@elements']) {
  8180. if(anObject == self['@elements'][i]) {
  8181. found = true;
  8182. break;
  8183. }
  8184. }
  8185. if(!found) {self['@elements'].push(anObject)}
  8186. ;
  8187. return self;},
  8188. args: ["anObject"],
  8189. source: unescape('add%3A%20anObject%0A%09%3C%0A%09%09var%20found%3B%0A%09%09for%28var%20i%20in%20self%5B%27@elements%27%5D%29%20%7B%0A%09%09%09if%28anObject%20%3D%3D%20self%5B%27@elements%27%5D%5Bi%5D%29%20%7B%0A%09%09%09%09found%20%3D%20true%3B%0A%09%09%09%09break%3B%0A%09%09%09%7D%0A%09%09%7D%0A%09%09if%28%21found%29%20%7Bself%5B%27@elements%27%5D.push%28anObject%29%7D%0A%09%3E'),
  8190. messageSends: [],
  8191. referencedClasses: []
  8192. }),
  8193. smalltalk.Set);
  8194. smalltalk.addMethod(
  8195. unescape('_remove_'),
  8196. smalltalk.method({
  8197. selector: unescape('remove%3A'),
  8198. category: 'adding/removing',
  8199. fn: function (anObject){
  8200. var self=this;
  8201. smalltalk.send(self['@elements'], "_remove_", [anObject]);
  8202. return self;},
  8203. args: ["anObject"],
  8204. source: unescape('remove%3A%20anObject%0A%09elements%20remove%3A%20anObject'),
  8205. messageSends: ["remove:"],
  8206. referencedClasses: []
  8207. }),
  8208. smalltalk.Set);
  8209. smalltalk.addMethod(
  8210. unescape('_initialize'),
  8211. smalltalk.method({
  8212. selector: unescape('initialize'),
  8213. category: 'initialization',
  8214. fn: function (){
  8215. var self=this;
  8216. smalltalk.send(self, "_initialize", [], smalltalk.Collection);
  8217. self['@elements']=[];
  8218. return self;},
  8219. args: [],
  8220. source: unescape('initialize%0A%09super%20initialize.%0A%09elements%20%3A%3D%20%23%28%29'),
  8221. messageSends: ["initialize"],
  8222. referencedClasses: []
  8223. }),
  8224. smalltalk.Set);
  8225. smalltalk.addMethod(
  8226. unescape('_size'),
  8227. smalltalk.method({
  8228. selector: unescape('size'),
  8229. category: 'accessing',
  8230. fn: function (){
  8231. var self=this;
  8232. return smalltalk.send(self['@elements'], "_size", []);
  8233. return self;},
  8234. args: [],
  8235. source: unescape('size%0A%09%5Eelements%20size'),
  8236. messageSends: ["size"],
  8237. referencedClasses: []
  8238. }),
  8239. smalltalk.Set);
  8240. smalltalk.addMethod(
  8241. unescape('_asArray'),
  8242. smalltalk.method({
  8243. selector: unescape('asArray'),
  8244. category: 'converting',
  8245. fn: function (){
  8246. var self=this;
  8247. return smalltalk.send(self['@elements'], "_copy", []);
  8248. return self;},
  8249. args: [],
  8250. source: unescape('asArray%0A%09%5Eelements%20copy'),
  8251. messageSends: ["copy"],
  8252. referencedClasses: []
  8253. }),
  8254. smalltalk.Set);
  8255. smalltalk.addMethod(
  8256. unescape('_detect_ifNone_'),
  8257. smalltalk.method({
  8258. selector: unescape('detect%3AifNone%3A'),
  8259. category: 'enumerating',
  8260. fn: function (aBlock, anotherBlock){
  8261. var self=this;
  8262. return smalltalk.send(self['@elements'], "_detect_ifNone_", [aBlock, anotherBlock]);
  8263. return self;},
  8264. args: ["aBlock", "anotherBlock"],
  8265. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eelements%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  8266. messageSends: ["detect:ifNone:"],
  8267. referencedClasses: []
  8268. }),
  8269. smalltalk.Set);
  8270. smalltalk.addMethod(
  8271. unescape('_do_'),
  8272. smalltalk.method({
  8273. selector: unescape('do%3A'),
  8274. category: 'enumerating',
  8275. fn: function (aBlock){
  8276. var self=this;
  8277. smalltalk.send(self['@elements'], "_do_", [aBlock]);
  8278. return self;},
  8279. args: ["aBlock"],
  8280. source: unescape('do%3A%20aBlock%0A%09elements%20do%3A%20aBlock'),
  8281. messageSends: ["do:"],
  8282. referencedClasses: []
  8283. }),
  8284. smalltalk.Set);
  8285. smalltalk.addMethod(
  8286. unescape('_includes_'),
  8287. smalltalk.method({
  8288. selector: unescape('includes%3A'),
  8289. category: 'testing',
  8290. fn: function (anObject){
  8291. var self=this;
  8292. return smalltalk.send(self['@elements'], "_includes_", [anObject]);
  8293. return self;},
  8294. args: ["anObject"],
  8295. source: unescape('includes%3A%20anObject%0A%09%5Eelements%20includes%3A%20anObject'),
  8296. messageSends: ["includes:"],
  8297. referencedClasses: []
  8298. }),
  8299. smalltalk.Set);
  8300. smalltalk.addMethod(
  8301. unescape('__eq'),
  8302. smalltalk.method({
  8303. selector: unescape('%3D'),
  8304. category: 'comparing',
  8305. fn: function (aCollection){
  8306. var self=this;
  8307. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aCollection, "_class", [])]), "_and_", [(function(){return smalltalk.send(self['@elements'], "__eq", [smalltalk.send(aCollection, "_asArray", [])]);})]);
  8308. return self;},
  8309. args: ["aCollection"],
  8310. source: unescape('%3D%20aCollection%0A%09%5Eself%20class%20%3D%20aCollection%20class%20and%3A%20%5B%0A%20%20%20%20%20%20%20%20%09elements%20%3D%20aCollection%20asArray%5D'),
  8311. messageSends: ["and:", unescape("%3D"), "class", "asArray"],
  8312. referencedClasses: []
  8313. }),
  8314. smalltalk.Set);
  8315. smalltalk.addClass('Transcript', smalltalk.Object, ['textarea'], 'Kernel');
  8316. smalltalk.Transcript.klass.iVarNames = ['current'];
  8317. smalltalk.addMethod(
  8318. unescape('_open'),
  8319. smalltalk.method({
  8320. selector: unescape('open'),
  8321. category: 'instance creation',
  8322. fn: function (){
  8323. var self=this;
  8324. smalltalk.send(smalltalk.send(self, "_current", []), "_open", []);
  8325. return self;},
  8326. args: [],
  8327. source: unescape('open%0A%20%20%20%20self%20current%20open'),
  8328. messageSends: ["open", "current"],
  8329. referencedClasses: []
  8330. }),
  8331. smalltalk.Transcript.klass);
  8332. smalltalk.addMethod(
  8333. unescape('_new'),
  8334. smalltalk.method({
  8335. selector: unescape('new'),
  8336. category: 'instance creation',
  8337. fn: function (){
  8338. var self=this;
  8339. smalltalk.send(self, "_shouldNotImplement", []);
  8340. return self;},
  8341. args: [],
  8342. source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'),
  8343. messageSends: ["shouldNotImplement"],
  8344. referencedClasses: []
  8345. }),
  8346. smalltalk.Transcript.klass);
  8347. smalltalk.addMethod(
  8348. unescape('_current'),
  8349. smalltalk.method({
  8350. selector: unescape('current'),
  8351. category: 'instance creation',
  8352. fn: function (){
  8353. var self=this;
  8354. return self['@current'];
  8355. return self;},
  8356. args: [],
  8357. source: unescape('current%0A%20%20%20%20%5Ecurrent'),
  8358. messageSends: [],
  8359. referencedClasses: []
  8360. }),
  8361. smalltalk.Transcript.klass);
  8362. smalltalk.addMethod(
  8363. unescape('_show_'),
  8364. smalltalk.method({
  8365. selector: unescape('show%3A'),
  8366. category: 'printing',
  8367. fn: function (anObject){
  8368. var self=this;
  8369. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [anObject]);
  8370. return self;},
  8371. args: ["anObject"],
  8372. source: unescape('show%3A%20anObject%0A%20%20%20%20self%20current%20show%3A%20anObject'),
  8373. messageSends: ["show:", "current"],
  8374. referencedClasses: []
  8375. }),
  8376. smalltalk.Transcript.klass);
  8377. smalltalk.addMethod(
  8378. unescape('_cr'),
  8379. smalltalk.method({
  8380. selector: unescape('cr'),
  8381. category: 'printing',
  8382. fn: function (){
  8383. var self=this;
  8384. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  8385. return self;},
  8386. args: [],
  8387. source: unescape('cr%0A%20%20%20%20self%20current%20show%3A%20String%20cr'),
  8388. messageSends: ["show:", "current", "cr"],
  8389. referencedClasses: [smalltalk.String]
  8390. }),
  8391. smalltalk.Transcript.klass);
  8392. smalltalk.addMethod(
  8393. unescape('_clear'),
  8394. smalltalk.method({
  8395. selector: unescape('clear'),
  8396. category: 'printing',
  8397. fn: function (){
  8398. var self=this;
  8399. smalltalk.send(smalltalk.send(self, "_current", []), "_clear", []);
  8400. return self;},
  8401. args: [],
  8402. source: unescape('clear%0A%20%20%20%20self%20current%20clear'),
  8403. messageSends: ["clear", "current"],
  8404. referencedClasses: []
  8405. }),
  8406. smalltalk.Transcript.klass);
  8407. smalltalk.addMethod(
  8408. unescape('_register_'),
  8409. smalltalk.method({
  8410. selector: unescape('register%3A'),
  8411. category: 'instance creation',
  8412. fn: function (aTranscript){
  8413. var self=this;
  8414. self['@current']=aTranscript;
  8415. return self;},
  8416. args: ["aTranscript"],
  8417. source: unescape('register%3A%20aTranscript%0A%09current%20%3A%3D%20aTranscript'),
  8418. messageSends: [],
  8419. referencedClasses: []
  8420. }),
  8421. smalltalk.Transcript.klass);
  8422. smalltalk.addClass('ConsoleTranscript', smalltalk.Object, ['textarea'], 'Kernel');
  8423. smalltalk.addMethod(
  8424. unescape('_clear'),
  8425. smalltalk.method({
  8426. selector: unescape('clear'),
  8427. category: 'printing',
  8428. fn: function (){
  8429. var self=this;
  8430. return self;},
  8431. args: [],
  8432. source: unescape('clear%0A%09%22no%20op%22'),
  8433. messageSends: [],
  8434. referencedClasses: []
  8435. }),
  8436. smalltalk.ConsoleTranscript);
  8437. smalltalk.addMethod(
  8438. unescape('_cr'),
  8439. smalltalk.method({
  8440. selector: unescape('cr'),
  8441. category: 'printing',
  8442. fn: function (){
  8443. var self=this;
  8444. return self;},
  8445. args: [],
  8446. source: unescape('cr%0A%09%22no%20op%22'),
  8447. messageSends: [],
  8448. referencedClasses: []
  8449. }),
  8450. smalltalk.ConsoleTranscript);
  8451. smalltalk.addMethod(
  8452. unescape('_show_'),
  8453. smalltalk.method({
  8454. selector: unescape('show%3A'),
  8455. category: 'printing',
  8456. fn: function (anObject){
  8457. var self=this;
  8458. console.log(String(anObject._asString()));
  8459. return self;},
  8460. args: ["anObject"],
  8461. source: unescape('show%3A%20anObject%0A%09%3Cconsole.log%28String%28anObject._asString%28%29%29%29%3E'),
  8462. messageSends: [],
  8463. referencedClasses: []
  8464. }),
  8465. smalltalk.ConsoleTranscript);
  8466. smalltalk.addMethod(
  8467. unescape('_open'),
  8468. smalltalk.method({
  8469. selector: unescape('open'),
  8470. category: 'actions',
  8471. fn: function (){
  8472. var self=this;
  8473. return self;},
  8474. args: [],
  8475. source: unescape('open'),
  8476. messageSends: [],
  8477. referencedClasses: []
  8478. }),
  8479. smalltalk.ConsoleTranscript);
  8480. smalltalk.addMethod(
  8481. unescape('_initialize'),
  8482. smalltalk.method({
  8483. selector: unescape('initialize'),
  8484. category: 'initialization',
  8485. fn: function (){
  8486. var self=this;
  8487. smalltalk.send((smalltalk.Transcript || Transcript), "_register_", [smalltalk.send(self, "_new", [])]);
  8488. return self;},
  8489. args: [],
  8490. source: unescape('initialize%0A%09Transcript%20register%3A%20self%20new'),
  8491. messageSends: ["register:", "new"],
  8492. referencedClasses: [smalltalk.Transcript]
  8493. }),
  8494. smalltalk.ConsoleTranscript.klass);