Kernel.js 336 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847
  1. smalltalk.addPackage('Kernel', {});
  2. smalltalk.addClass('Object', smalltalk.nil, [], 'Kernel');
  3. smalltalk.addMethod(
  4. unescape('__eq'),
  5. smalltalk.method({
  6. selector: unescape('%3D'),
  7. category: 'comparing',
  8. fn: function (anObject){
  9. var self=this;
  10. return smalltalk.send(self, "__eq_eq", [anObject]);
  11. return self;},
  12. args: ["anObject"],
  13. source: unescape('%3D%20anObject%0A%09%5Eself%20%3D%3D%20anObject'),
  14. messageSends: [unescape("%3D%3D")],
  15. referencedClasses: []
  16. }),
  17. smalltalk.Object);
  18. smalltalk.addMethod(
  19. unescape('_%7E_eq'),
  20. smalltalk.method({
  21. selector: unescape('%7E%3D'),
  22. category: 'comparing',
  23. fn: function (anObject){
  24. var self=this;
  25. return smalltalk.send(smalltalk.send(self, "__eq", [anObject]), "__eq", [false]);
  26. return self;},
  27. args: ["anObject"],
  28. source: unescape('%7E%3D%20anObject%0A%09%5E%28self%20%3D%20anObject%29%20%3D%20false'),
  29. messageSends: [unescape("%3D")],
  30. referencedClasses: []
  31. }),
  32. smalltalk.Object);
  33. smalltalk.addMethod(
  34. unescape('_initialize'),
  35. smalltalk.method({
  36. selector: unescape('initialize'),
  37. category: 'initialization',
  38. fn: function (){
  39. var self=this;
  40. return self;},
  41. args: [],
  42. source: unescape('initialize'),
  43. messageSends: [],
  44. referencedClasses: []
  45. }),
  46. smalltalk.Object);
  47. smalltalk.addMethod(
  48. unescape('_yourself'),
  49. smalltalk.method({
  50. selector: unescape('yourself'),
  51. category: 'accessing',
  52. fn: function (){
  53. var self=this;
  54. return self;
  55. return self;},
  56. args: [],
  57. source: unescape('yourself%0A%09%5Eself'),
  58. messageSends: [],
  59. referencedClasses: []
  60. }),
  61. smalltalk.Object);
  62. smalltalk.addMethod(
  63. unescape('_class'),
  64. smalltalk.method({
  65. selector: unescape('class'),
  66. category: 'accessing',
  67. fn: function (){
  68. var self=this;
  69. return self.klass;
  70. return self;},
  71. args: [],
  72. source: unescape('class%0A%09%3Creturn%20self.klass%3E'),
  73. messageSends: [],
  74. referencedClasses: []
  75. }),
  76. smalltalk.Object);
  77. smalltalk.addMethod(
  78. unescape('_size'),
  79. smalltalk.method({
  80. selector: unescape('size'),
  81. category: 'accessing',
  82. fn: function (){
  83. var self=this;
  84. smalltalk.send(self, "_error_", ["Object not indexable"]);
  85. return self;},
  86. args: [],
  87. source: unescape('size%0A%09self%20error%3A%20%27Object%20not%20indexable%27'),
  88. messageSends: ["error:"],
  89. referencedClasses: []
  90. }),
  91. smalltalk.Object);
  92. smalltalk.addMethod(
  93. unescape('_copy'),
  94. smalltalk.method({
  95. selector: unescape('copy'),
  96. category: 'copying',
  97. fn: function (){
  98. var self=this;
  99. return smalltalk.send(smalltalk.send(self, "_shallowCopy", []), "_postCopy", []);
  100. return self;},
  101. args: [],
  102. source: unescape('copy%0A%09%5Eself%20shallowCopy%20postCopy'),
  103. messageSends: ["postCopy", "shallowCopy"],
  104. referencedClasses: []
  105. }),
  106. smalltalk.Object);
  107. smalltalk.addMethod(
  108. unescape('_shallowCopy'),
  109. smalltalk.method({
  110. selector: unescape('shallowCopy'),
  111. category: 'copying',
  112. fn: function (){
  113. var self=this;
  114. var copy = self.klass._new();
  115. for(var i in self) {
  116. if(/^@.+/.test(i)) {
  117. copy[i] = self[i];
  118. }
  119. }
  120. return copy;
  121. ;
  122. return self;},
  123. args: [],
  124. source: unescape('shallowCopy%0A%09%3C%0A%09%20%20%20%20var%20copy%20%3D%20self.klass._new%28%29%3B%0A%09%20%20%20%20for%28var%20i%20in%20self%29%20%7B%0A%09%09if%28/%5E@.+/.test%28i%29%29%20%7B%0A%09%09%20%20%20%20copy%5Bi%5D%20%3D%20self%5Bi%5D%3B%0A%09%09%7D%0A%09%20%20%20%20%7D%0A%09%20%20%20%20return%20copy%3B%0A%09%3E'),
  125. messageSends: [],
  126. referencedClasses: []
  127. }),
  128. smalltalk.Object);
  129. smalltalk.addMethod(
  130. unescape('_deepCopy'),
  131. smalltalk.method({
  132. selector: unescape('deepCopy'),
  133. category: 'copying',
  134. fn: function (){
  135. var self=this;
  136. var copy = self.klass._new();
  137. for(var i in self) {
  138. if(/^@.+/.test(i)) {
  139. copy[i] = self[i]._deepCopy();
  140. }
  141. }
  142. return copy;
  143. ;
  144. return self;},
  145. args: [],
  146. source: unescape('deepCopy%0A%09%3C%20%20%20%20%0A%09%20%20%20%20var%20copy%20%3D%20self.klass._new%28%29%3B%0A%09%20%20%20%20for%28var%20i%20in%20self%29%20%7B%0A%09%09if%28/%5E@.+/.test%28i%29%29%20%7B%0A%09%09%20%20%20%20copy%5Bi%5D%20%3D%20self%5Bi%5D._deepCopy%28%29%3B%0A%09%09%7D%0A%09%20%20%20%20%7D%0A%09%20%20%20%20return%20copy%3B%0A%09%3E'),
  147. messageSends: [],
  148. referencedClasses: []
  149. }),
  150. smalltalk.Object);
  151. smalltalk.addMethod(
  152. unescape('_postCopy'),
  153. smalltalk.method({
  154. selector: unescape('postCopy'),
  155. category: 'copying',
  156. fn: function (){
  157. var self=this;
  158. return self;},
  159. args: [],
  160. source: unescape('postCopy'),
  161. messageSends: [],
  162. referencedClasses: []
  163. }),
  164. smalltalk.Object);
  165. smalltalk.addMethod(
  166. unescape('__minus_gt'),
  167. smalltalk.method({
  168. selector: unescape('-%3E'),
  169. category: 'converting',
  170. fn: function (anObject){
  171. var self=this;
  172. return smalltalk.send((smalltalk.Association || Association), "_key_value_", [self, anObject]);
  173. return self;},
  174. args: ["anObject"],
  175. source: unescape('-%3E%20anObject%0A%09%5EAssociation%20key%3A%20self%20value%3A%20anObject'),
  176. messageSends: ["key:value:"],
  177. referencedClasses: ["Association"]
  178. }),
  179. smalltalk.Object);
  180. smalltalk.addMethod(
  181. unescape('_asString'),
  182. smalltalk.method({
  183. selector: unescape('asString'),
  184. category: 'converting',
  185. fn: function (){
  186. var self=this;
  187. return smalltalk.send(self, "_printString", []);
  188. return self;},
  189. args: [],
  190. source: unescape('asString%0A%09%5Eself%20printString'),
  191. messageSends: ["printString"],
  192. referencedClasses: []
  193. }),
  194. smalltalk.Object);
  195. smalltalk.addMethod(
  196. unescape('_asJavascript'),
  197. smalltalk.method({
  198. selector: unescape('asJavascript'),
  199. category: 'converting',
  200. fn: function (){
  201. var self=this;
  202. return smalltalk.send(self, "_asString", []);
  203. return self;},
  204. args: [],
  205. source: unescape('asJavascript%0A%09%5Eself%20asString'),
  206. messageSends: ["asString"],
  207. referencedClasses: []
  208. }),
  209. smalltalk.Object);
  210. smalltalk.addMethod(
  211. unescape('_perform_'),
  212. smalltalk.method({
  213. selector: unescape('perform%3A'),
  214. category: 'message handling',
  215. fn: function (aSymbol){
  216. var self=this;
  217. return smalltalk.send(self, "_perform_withArguments_", [aSymbol, []]);
  218. return self;},
  219. args: ["aSymbol"],
  220. source: unescape('perform%3A%20aSymbol%0A%09%5Eself%20perform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
  221. messageSends: ["perform:withArguments:"],
  222. referencedClasses: []
  223. }),
  224. smalltalk.Object);
  225. smalltalk.addMethod(
  226. unescape('_perform_withArguments_'),
  227. smalltalk.method({
  228. selector: unescape('perform%3AwithArguments%3A'),
  229. category: 'message handling',
  230. fn: function (aSymbol, aCollection){
  231. var self=this;
  232. return smalltalk.send(self, "_basicPerform_withArguments_", [smalltalk.send(aSymbol, "_asSelector", []), aCollection]);
  233. return self;},
  234. args: ["aSymbol", "aCollection"],
  235. source: unescape('perform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%5Eself%20basicPerform%3A%20aSymbol%20asSelector%20withArguments%3A%20aCollection'),
  236. messageSends: ["basicPerform:withArguments:", "asSelector"],
  237. referencedClasses: []
  238. }),
  239. smalltalk.Object);
  240. smalltalk.addMethod(
  241. unescape('_instVarAt_'),
  242. smalltalk.method({
  243. selector: unescape('instVarAt%3A'),
  244. category: 'accessing',
  245. fn: function (aString){
  246. var self=this;
  247. return self['@'+aString];
  248. return self;},
  249. args: ["aString"],
  250. source: unescape('instVarAt%3A%20aString%0A%09%3Creturn%20self%5B%27@%27+aString%5D%3E'),
  251. messageSends: [],
  252. referencedClasses: []
  253. }),
  254. smalltalk.Object);
  255. smalltalk.addMethod(
  256. unescape('_instVarAt_put_'),
  257. smalltalk.method({
  258. selector: unescape('instVarAt%3Aput%3A'),
  259. category: 'accessing',
  260. fn: function (aString, anObject){
  261. var self=this;
  262. self['@' + aString] = anObject;
  263. return self;},
  264. args: ["aString", "anObject"],
  265. source: unescape('instVarAt%3A%20aString%20put%3A%20anObject%0A%09%3Cself%5B%27@%27%20+%20aString%5D%20%3D%20anObject%3E'),
  266. messageSends: [],
  267. referencedClasses: []
  268. }),
  269. smalltalk.Object);
  270. smalltalk.addMethod(
  271. unescape('_basicAt_'),
  272. smalltalk.method({
  273. selector: unescape('basicAt%3A'),
  274. category: 'accessing',
  275. fn: function (aString){
  276. var self=this;
  277. return self[aString];
  278. return self;},
  279. args: ["aString"],
  280. source: unescape('basicAt%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
  281. messageSends: [],
  282. referencedClasses: []
  283. }),
  284. smalltalk.Object);
  285. smalltalk.addMethod(
  286. unescape('_basicAt_put_'),
  287. smalltalk.method({
  288. selector: unescape('basicAt%3Aput%3A'),
  289. category: 'accessing',
  290. fn: function (aString, anObject){
  291. var self=this;
  292. return self[aString] = anObject;
  293. return self;},
  294. args: ["aString", "anObject"],
  295. source: unescape('basicAt%3A%20aString%20put%3A%20anObject%0A%09%3Creturn%20self%5BaString%5D%20%3D%20anObject%3E'),
  296. messageSends: [],
  297. referencedClasses: []
  298. }),
  299. smalltalk.Object);
  300. smalltalk.addMethod(
  301. unescape('_error_'),
  302. smalltalk.method({
  303. selector: unescape('error%3A'),
  304. category: 'error handling',
  305. fn: function (aString){
  306. var self=this;
  307. smalltalk.send((smalltalk.Error || Error), "_signal_", [aString]);
  308. return self;},
  309. args: ["aString"],
  310. source: unescape('error%3A%20aString%0A%09Error%20signal%3A%20aString'),
  311. messageSends: ["signal:"],
  312. referencedClasses: ["Error"]
  313. }),
  314. smalltalk.Object);
  315. smalltalk.addMethod(
  316. unescape('_subclassResponsibility'),
  317. smalltalk.method({
  318. selector: unescape('subclassResponsibility'),
  319. category: 'error handling',
  320. fn: function (){
  321. var self=this;
  322. smalltalk.send(self, "_error_", ["This method is a responsibility of a subclass"]);
  323. return self;},
  324. args: [],
  325. source: unescape('subclassResponsibility%0A%09self%20error%3A%20%27This%20method%20is%20a%20responsibility%20of%20a%20subclass%27'),
  326. messageSends: ["error:"],
  327. referencedClasses: []
  328. }),
  329. smalltalk.Object);
  330. smalltalk.addMethod(
  331. unescape('_shouldNotImplement'),
  332. smalltalk.method({
  333. selector: unescape('shouldNotImplement'),
  334. category: 'error handling',
  335. fn: function (){
  336. var self=this;
  337. smalltalk.send(self, "_error_", [smalltalk.send("This method should not be implemented in ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])])]);
  338. return self;},
  339. args: [],
  340. source: unescape('shouldNotImplement%0A%09self%20error%3A%20%27This%20method%20should%20not%20be%20implemented%20in%20%27%2C%20self%20class%20name'),
  341. messageSends: ["error:", unescape("%2C"), "name", "class"],
  342. referencedClasses: []
  343. }),
  344. smalltalk.Object);
  345. smalltalk.addMethod(
  346. unescape('_try_catch_'),
  347. smalltalk.method({
  348. selector: unescape('try%3Acatch%3A'),
  349. category: 'error handling',
  350. fn: function (aBlock, anotherBlock){
  351. var self=this;
  352. try{aBlock()} catch(e) {anotherBlock(e)};
  353. return self;},
  354. args: ["aBlock", "anotherBlock"],
  355. source: unescape('try%3A%20aBlock%20catch%3A%20anotherBlock%0A%09%3Ctry%7BaBlock%28%29%7D%20catch%28e%29%20%7BanotherBlock%28e%29%7D%3E'),
  356. messageSends: [],
  357. referencedClasses: []
  358. }),
  359. smalltalk.Object);
  360. smalltalk.addMethod(
  361. unescape('_printString'),
  362. smalltalk.method({
  363. selector: unescape('printString'),
  364. category: 'printing',
  365. fn: function (){
  366. var self=this;
  367. return smalltalk.send("a ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])]);
  368. return self;},
  369. args: [],
  370. source: unescape('printString%0A%09%5E%27a%20%27%2C%20self%20class%20name'),
  371. messageSends: [unescape("%2C"), "name", "class"],
  372. referencedClasses: []
  373. }),
  374. smalltalk.Object);
  375. smalltalk.addMethod(
  376. unescape('_printNl'),
  377. smalltalk.method({
  378. selector: unescape('printNl'),
  379. category: 'printing',
  380. fn: function (){
  381. var self=this;
  382. console.log(self);
  383. return self;},
  384. args: [],
  385. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  386. messageSends: [],
  387. referencedClasses: []
  388. }),
  389. smalltalk.Object);
  390. smalltalk.addMethod(
  391. unescape('_isKindOf_'),
  392. smalltalk.method({
  393. selector: unescape('isKindOf%3A'),
  394. category: 'testing',
  395. fn: function (aClass){
  396. var self=this;
  397. return ((($receiver = smalltalk.send(self, "_isMemberOf_", [aClass])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return true;})() : (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return true;}), (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})]));
  398. return self;},
  399. args: ["aClass"],
  400. source: unescape('isKindOf%3A%20aClass%0A%09%5E%28self%20isMemberOf%3A%20aClass%29%0A%09%20%20%20%20ifTrue%3A%20%5Btrue%5D%0A%09%20%20%20%20ifFalse%3A%20%5Bself%20class%20inheritsFrom%3A%20aClass%5D'),
  401. messageSends: ["ifTrue:ifFalse:", "isMemberOf:", "inheritsFrom:", "class"],
  402. referencedClasses: []
  403. }),
  404. smalltalk.Object);
  405. smalltalk.addMethod(
  406. unescape('_isMemberOf_'),
  407. smalltalk.method({
  408. selector: unescape('isMemberOf%3A'),
  409. category: 'testing',
  410. fn: function (aClass){
  411. var self=this;
  412. return smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [aClass]);
  413. return self;},
  414. args: ["aClass"],
  415. source: unescape('isMemberOf%3A%20aClass%0A%09%5Eself%20class%20%3D%20aClass'),
  416. messageSends: [unescape("%3D"), "class"],
  417. referencedClasses: []
  418. }),
  419. smalltalk.Object);
  420. smalltalk.addMethod(
  421. unescape('_ifNil_'),
  422. smalltalk.method({
  423. selector: unescape('ifNil%3A'),
  424. category: 'testing',
  425. fn: function (aBlock){
  426. var self=this;
  427. return self;
  428. return self;},
  429. args: ["aBlock"],
  430. source: unescape('ifNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself'),
  431. messageSends: [],
  432. referencedClasses: []
  433. }),
  434. smalltalk.Object);
  435. smalltalk.addMethod(
  436. unescape('_ifNil_ifNotNil_'),
  437. smalltalk.method({
  438. selector: unescape('ifNil%3AifNotNil%3A'),
  439. category: 'testing',
  440. fn: function (aBlock, anotherBlock){
  441. var self=this;
  442. return smalltalk.send(anotherBlock, "_value", []);
  443. return self;},
  444. args: ["aBlock", "anotherBlock"],
  445. source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EanotherBlock%20value'),
  446. messageSends: ["value"],
  447. referencedClasses: []
  448. }),
  449. smalltalk.Object);
  450. smalltalk.addMethod(
  451. unescape('_ifNotNil_'),
  452. smalltalk.method({
  453. selector: unescape('ifNotNil%3A'),
  454. category: 'testing',
  455. fn: function (aBlock){
  456. var self=this;
  457. return smalltalk.send(aBlock, "_value", []);
  458. return self;},
  459. args: ["aBlock"],
  460. source: unescape('ifNotNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  461. messageSends: ["value"],
  462. referencedClasses: []
  463. }),
  464. smalltalk.Object);
  465. smalltalk.addMethod(
  466. unescape('_ifNotNil_ifNil_'),
  467. smalltalk.method({
  468. selector: unescape('ifNotNil%3AifNil%3A'),
  469. category: 'testing',
  470. fn: function (aBlock, anotherBlock){
  471. var self=this;
  472. return smalltalk.send(aBlock, "_value", []);
  473. return self;},
  474. args: ["aBlock", "anotherBlock"],
  475. source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  476. messageSends: ["value"],
  477. referencedClasses: []
  478. }),
  479. smalltalk.Object);
  480. smalltalk.addMethod(
  481. unescape('_isNil'),
  482. smalltalk.method({
  483. selector: unescape('isNil'),
  484. category: 'testing',
  485. fn: function (){
  486. var self=this;
  487. return false;
  488. return self;},
  489. args: [],
  490. source: unescape('isNil%0A%09%5Efalse'),
  491. messageSends: [],
  492. referencedClasses: []
  493. }),
  494. smalltalk.Object);
  495. smalltalk.addMethod(
  496. unescape('_notNil'),
  497. smalltalk.method({
  498. selector: unescape('notNil'),
  499. category: 'testing',
  500. fn: function (){
  501. var self=this;
  502. return smalltalk.send(smalltalk.send(self, "_isNil", []), "_not", []);
  503. return self;},
  504. args: [],
  505. source: unescape('notNil%0A%09%5Eself%20isNil%20not'),
  506. messageSends: ["not", "isNil"],
  507. referencedClasses: []
  508. }),
  509. smalltalk.Object);
  510. smalltalk.addMethod(
  511. unescape('_isClass'),
  512. smalltalk.method({
  513. selector: unescape('isClass'),
  514. category: 'testing',
  515. fn: function (){
  516. var self=this;
  517. return false;
  518. return self;},
  519. args: [],
  520. source: unescape('isClass%0A%09%5Efalse'),
  521. messageSends: [],
  522. referencedClasses: []
  523. }),
  524. smalltalk.Object);
  525. smalltalk.addMethod(
  526. unescape('_isMetaclass'),
  527. smalltalk.method({
  528. selector: unescape('isMetaclass'),
  529. category: 'testing',
  530. fn: function (){
  531. var self=this;
  532. return false;
  533. return self;},
  534. args: [],
  535. source: unescape('isMetaclass%0A%09%5Efalse'),
  536. messageSends: [],
  537. referencedClasses: []
  538. }),
  539. smalltalk.Object);
  540. smalltalk.addMethod(
  541. unescape('_isNumber'),
  542. smalltalk.method({
  543. selector: unescape('isNumber'),
  544. category: 'testing',
  545. fn: function (){
  546. var self=this;
  547. return false;
  548. return self;},
  549. args: [],
  550. source: unescape('isNumber%0A%09%5Efalse'),
  551. messageSends: [],
  552. referencedClasses: []
  553. }),
  554. smalltalk.Object);
  555. smalltalk.addMethod(
  556. unescape('_isString'),
  557. smalltalk.method({
  558. selector: unescape('isString'),
  559. category: 'testing',
  560. fn: function (){
  561. var self=this;
  562. return false;
  563. return self;},
  564. args: [],
  565. source: unescape('isString%0A%09%5Efalse'),
  566. messageSends: [],
  567. referencedClasses: []
  568. }),
  569. smalltalk.Object);
  570. smalltalk.addMethod(
  571. unescape('_isParseFailure'),
  572. smalltalk.method({
  573. selector: unescape('isParseFailure'),
  574. category: 'testing',
  575. fn: function (){
  576. var self=this;
  577. return false;
  578. return self;},
  579. args: [],
  580. source: unescape('isParseFailure%0A%09%5Efalse'),
  581. messageSends: [],
  582. referencedClasses: []
  583. }),
  584. smalltalk.Object);
  585. smalltalk.addMethod(
  586. unescape('_basicPerform_'),
  587. smalltalk.method({
  588. selector: unescape('basicPerform%3A'),
  589. category: 'message handling',
  590. fn: function (aSymbol){
  591. var self=this;
  592. return smalltalk.send(self, "_basicPerform_withArguments_", [aSymbol, []]);
  593. return self;},
  594. args: ["aSymbol"],
  595. source: unescape('basicPerform%3A%20aSymbol%20%0A%09%5Eself%20basicPerform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
  596. messageSends: ["basicPerform:withArguments:"],
  597. referencedClasses: []
  598. }),
  599. smalltalk.Object);
  600. smalltalk.addMethod(
  601. unescape('_basicPerform_withArguments_'),
  602. smalltalk.method({
  603. selector: unescape('basicPerform%3AwithArguments%3A'),
  604. category: 'message handling',
  605. fn: function (aSymbol, aCollection){
  606. var self=this;
  607. return self[aSymbol].apply(self, aCollection);;
  608. return self;},
  609. args: ["aSymbol", "aCollection"],
  610. source: unescape('basicPerform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%3Creturn%20self%5BaSymbol%5D.apply%28self%2C%20aCollection%29%3B%3E'),
  611. messageSends: [],
  612. referencedClasses: []
  613. }),
  614. smalltalk.Object);
  615. smalltalk.addMethod(
  616. unescape('_basicDelete_'),
  617. smalltalk.method({
  618. selector: unescape('basicDelete%3A'),
  619. category: 'accessing',
  620. fn: function (aString){
  621. var self=this;
  622. delete self[aString];
  623. return self;},
  624. args: ["aString"],
  625. source: unescape('basicDelete%3A%20aString%0A%20%20%20%20%3Cdelete%20self%5BaString%5D%3E'),
  626. messageSends: [],
  627. referencedClasses: []
  628. }),
  629. smalltalk.Object);
  630. smalltalk.addMethod(
  631. unescape('_doesNotUnderstand_'),
  632. smalltalk.method({
  633. selector: unescape('doesNotUnderstand%3A'),
  634. category: 'error handling',
  635. fn: function (aMessage){
  636. var self=this;
  637. (function($rec){smalltalk.send($rec, "_receiver_", [self]);smalltalk.send($rec, "_message_", [aMessage]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send((smalltalk.MessageNotUnderstood || MessageNotUnderstood), "_new", []));
  638. return self;},
  639. args: ["aMessage"],
  640. source: unescape('doesNotUnderstand%3A%20aMessage%0A%09MessageNotUnderstood%20new%0A%09%09receiver%3A%20self%3B%0A%09%09message%3A%20aMessage%3B%0A%09%09signal'),
  641. messageSends: ["receiver:", "message:", "signal", "new"],
  642. referencedClasses: ["MessageNotUnderstood"]
  643. }),
  644. smalltalk.Object);
  645. smalltalk.addMethod(
  646. unescape('_asJSON'),
  647. smalltalk.method({
  648. selector: unescape('asJSON'),
  649. category: 'converting',
  650. fn: function (){
  651. var self=this;
  652. return JSON.stringify(self._asJSONObject());
  653. return self;},
  654. args: [],
  655. source: unescape('asJSON%0A%09%3Creturn%20JSON.stringify%28self._asJSONObject%28%29%29%3E'),
  656. messageSends: [],
  657. referencedClasses: []
  658. }),
  659. smalltalk.Object);
  660. smalltalk.addMethod(
  661. unescape('_asJSONObject'),
  662. smalltalk.method({
  663. selector: unescape('asJSONObject'),
  664. category: 'converting',
  665. fn: function (){
  666. var self=this;
  667. var object=nil;
  668. object=smalltalk.send((smalltalk.Object || Object), "_new", []);
  669. 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", [])]);})]);
  670. return object;
  671. return self;},
  672. args: [],
  673. 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'),
  674. messageSends: ["new", "do:", "instanceVariableNames", "class", "basicAt:put:", "asJSONObject", "instVarAt:"],
  675. referencedClasses: ["Object"]
  676. }),
  677. smalltalk.Object);
  678. smalltalk.addMethod(
  679. unescape('_halt'),
  680. smalltalk.method({
  681. selector: unescape('halt'),
  682. category: 'error handling',
  683. fn: function (){
  684. var self=this;
  685. smalltalk.send(self, "_error_", ["Halt encountered"]);
  686. return self;},
  687. args: [],
  688. source: unescape('halt%0A%09self%20error%3A%20%27Halt%20encountered%27'),
  689. messageSends: ["error:"],
  690. referencedClasses: []
  691. }),
  692. smalltalk.Object);
  693. smalltalk.addMethod(
  694. unescape('_log_block_'),
  695. smalltalk.method({
  696. selector: unescape('log%3Ablock%3A'),
  697. category: 'printing',
  698. fn: function (aString, aBlock){
  699. var self=this;
  700. var result=nil;
  701. 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", [])])]);
  702. return result;
  703. return self;},
  704. args: ["aString", "aBlock"],
  705. 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'),
  706. messageSends: ["log:", unescape("%2C"), "printString", "millisecondsToRun:", "value"],
  707. referencedClasses: ["Date"]
  708. }),
  709. smalltalk.Object);
  710. smalltalk.addMethod(
  711. unescape('__eq_eq'),
  712. smalltalk.method({
  713. selector: unescape('%3D%3D'),
  714. category: 'comparing',
  715. fn: function (anObject){
  716. var self=this;
  717. return self === anObject;
  718. return self;},
  719. args: ["anObject"],
  720. source: unescape('%3D%3D%20anObject%0A%09%3Creturn%20self%20%3D%3D%3D%20anObject%3E'),
  721. messageSends: [],
  722. referencedClasses: []
  723. }),
  724. smalltalk.Object);
  725. smalltalk.addMethod(
  726. unescape('_%7E%7E'),
  727. smalltalk.method({
  728. selector: unescape('%7E%7E'),
  729. category: 'comparing',
  730. fn: function (anObject){
  731. var self=this;
  732. return smalltalk.send(smalltalk.send(self, "__eq_eq", [anObject]), "__eq", [false]);
  733. return self;},
  734. args: ["anObject"],
  735. source: unescape('%7E%7E%20anObject%0A%09%5E%28self%20%3D%3D%20anObject%29%20%3D%20false'),
  736. messageSends: [unescape("%3D"), unescape("%3D%3D")],
  737. referencedClasses: []
  738. }),
  739. smalltalk.Object);
  740. smalltalk.addMethod(
  741. unescape('_deprecatedAPI'),
  742. smalltalk.method({
  743. selector: unescape('deprecatedAPI'),
  744. category: 'error handling',
  745. fn: function (){
  746. var self=this;
  747. smalltalk.send((typeof console == 'undefined' ? nil : console), "_warn_", [smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.getThisContext()), "_home", []), "_asString", []), "__comma", [unescape("%20is%20deprecated%21")])]);
  748. return self;},
  749. args: [],
  750. 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'),
  751. messageSends: ["warn:", unescape("%2C"), "asString", "home"],
  752. referencedClasses: []
  753. }),
  754. smalltalk.Object);
  755. smalltalk.addMethod(
  756. unescape('_storeString'),
  757. smalltalk.method({
  758. selector: unescape('storeString'),
  759. category: 'printing',
  760. fn: function (){
  761. var self=this;
  762. return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(s){return smalltalk.send(self, "_storeOn_", [s]);})]);
  763. return self;},
  764. args: [],
  765. source: unescape('storeString%0A%09%22Answer%20a%20String%20representation%20of%20the%20receiver%20from%20which%20the%20receiver%20%0A%09can%20be%20reconstructed.%22%0A%0A%09%5E%20String%20streamContents%3A%20%5B%3As%20%7C%20self%20storeOn%3A%20s%5D'),
  766. messageSends: ["streamContents:", "storeOn:"],
  767. referencedClasses: ["String"]
  768. }),
  769. smalltalk.Object);
  770. smalltalk.addMethod(
  771. unescape('_storeOn_'),
  772. smalltalk.method({
  773. selector: unescape('storeOn%3A'),
  774. category: 'printing',
  775. fn: function (aStream){
  776. var self=this;
  777. smalltalk.send(aStream, "_nextPutAll_", [smalltalk.send(self, "_printString", [])]);
  778. return self;},
  779. args: ["aStream"],
  780. source: unescape('storeOn%3A%20aStream%0A%09aStream%20nextPutAll%3A%20self%20printString'),
  781. messageSends: ["nextPutAll:", "printString"],
  782. referencedClasses: []
  783. }),
  784. smalltalk.Object);
  785. smalltalk.addMethod(
  786. unescape('_initialize'),
  787. smalltalk.method({
  788. selector: unescape('initialize'),
  789. category: 'initialization',
  790. fn: function (){
  791. var self=this;
  792. return self;},
  793. args: [],
  794. source: unescape('initialize%0A%09%22no%20op%22'),
  795. messageSends: [],
  796. referencedClasses: []
  797. }),
  798. smalltalk.Object.klass);
  799. smalltalk.addClass('Smalltalk', smalltalk.Object, [], 'Kernel');
  800. smalltalk.addMethod(
  801. unescape('_classes'),
  802. smalltalk.method({
  803. selector: unescape('classes'),
  804. category: 'accessing',
  805. fn: function (){
  806. var self=this;
  807. return self.classes();
  808. return self;},
  809. args: [],
  810. source: unescape('classes%0A%09%3Creturn%20self.classes%28%29%3E'),
  811. messageSends: [],
  812. referencedClasses: []
  813. }),
  814. smalltalk.Smalltalk);
  815. smalltalk.addMethod(
  816. unescape('_at_'),
  817. smalltalk.method({
  818. selector: unescape('at%3A'),
  819. category: 'accessing',
  820. fn: function (aString){
  821. var self=this;
  822. return self[aString];
  823. return self;},
  824. args: ["aString"],
  825. source: unescape('at%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
  826. messageSends: [],
  827. referencedClasses: []
  828. }),
  829. smalltalk.Smalltalk);
  830. smalltalk.addMethod(
  831. unescape('_removeClass_'),
  832. smalltalk.method({
  833. selector: unescape('removeClass%3A'),
  834. category: 'classes',
  835. fn: function (aClass){
  836. var self=this;
  837. ((($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")])]);})]));
  838. smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(aClass, "_removeCompiledMethod_", [each]);})]);
  839. smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(aClass, "_class", []), "_removeCompiledMethod_", [each]);})]);
  840. smalltalk.send(self, "_basicDelete_", [smalltalk.send(aClass, "_name", [])]);
  841. return self;},
  842. args: ["aClass"],
  843. 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'),
  844. messageSends: ["ifTrue:", "isMetaclass", "error:", unescape("%2C"), "asString", "do:", "values", "methodDictionary", "removeCompiledMethod:", "class", "basicDelete:", "name"],
  845. referencedClasses: []
  846. }),
  847. smalltalk.Smalltalk);
  848. smalltalk.addMethod(
  849. unescape('_basicParse_'),
  850. smalltalk.method({
  851. selector: unescape('basicParse%3A'),
  852. category: 'accessing',
  853. fn: function (aString){
  854. var self=this;
  855. return smalltalk.parser.parse(aString);
  856. return self;},
  857. args: ["aString"],
  858. source: unescape('basicParse%3A%20aString%0A%09%3Creturn%20smalltalk.parser.parse%28aString%29%3E'),
  859. messageSends: [],
  860. referencedClasses: []
  861. }),
  862. smalltalk.Smalltalk);
  863. smalltalk.addMethod(
  864. unescape('_parse_'),
  865. smalltalk.method({
  866. selector: unescape('parse%3A'),
  867. category: 'accessing',
  868. fn: function (aString){
  869. var self=this;
  870. var result=nil;
  871. 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", []);})]);
  872. return result;
  873. return self;},
  874. args: ["aString"],
  875. 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'),
  876. messageSends: ["try:catch:", "basicParse:", "signal", "parseError:parsing:"],
  877. referencedClasses: []
  878. }),
  879. smalltalk.Smalltalk);
  880. smalltalk.addMethod(
  881. unescape('_parseError_parsing_'),
  882. smalltalk.method({
  883. selector: unescape('parseError%3Aparsing%3A'),
  884. category: 'accessing',
  885. fn: function (anException, aString){
  886. var self=this;
  887. var row=nil;
  888. var col=nil;
  889. var message=nil;
  890. var lines=nil;
  891. var badLine=nil;
  892. var code=nil;
  893. row = anException.line;
  894. col = anException.column;
  895. message = anException.message;;
  896. lines=smalltalk.send(aString, "_lines", []);
  897. badLine=smalltalk.send(lines, "_at_", [row]);
  898. 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", [])])]);
  899. smalltalk.send(lines, "_at_put_", [row, badLine]);
  900. 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", [])])]);})]);})]);
  901. 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])]);
  902. return self;},
  903. args: ["anException", "aString"],
  904. 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'),
  905. messageSends: ["lines", "at:", unescape("%2C"), "copyFrom:to:", unescape("-"), "size", "at:put:", "streamContents:", "withIndexDo:", "nextPutAll:", "asString", "lf", "messageText:", "new"],
  906. referencedClasses: ["String", "Error"]
  907. }),
  908. smalltalk.Smalltalk);
  909. smalltalk.addMethod(
  910. unescape('_packages'),
  911. smalltalk.method({
  912. selector: unescape('packages'),
  913. category: 'packages',
  914. fn: function (){
  915. var self=this;
  916. return self.packages.all();
  917. return self;},
  918. args: [],
  919. source: unescape('packages%0A%09%22Return%20all%20Package%20instances%20in%20the%20system.%22%0A%0A%09%3Creturn%20self.packages.all%28%29%3E'),
  920. messageSends: [],
  921. referencedClasses: []
  922. }),
  923. smalltalk.Smalltalk);
  924. smalltalk.addMethod(
  925. unescape('_packageAt_'),
  926. smalltalk.method({
  927. selector: unescape('packageAt%3A'),
  928. category: 'packages',
  929. fn: function (packageName){
  930. var self=this;
  931. return self.packages[packageName];
  932. return self;},
  933. args: ["packageName"],
  934. source: unescape('packageAt%3A%20packageName%0A%20%20%20%20%20%20%20%3Creturn%20self.packages%5BpackageName%5D%3E'),
  935. messageSends: [],
  936. referencedClasses: []
  937. }),
  938. smalltalk.Smalltalk);
  939. smalltalk.addMethod(
  940. unescape('_packageAt_ifAbsent_'),
  941. smalltalk.method({
  942. selector: unescape('packageAt%3AifAbsent%3A'),
  943. category: 'packages',
  944. fn: function (packageName, aBlock){
  945. var self=this;
  946. return smalltalk.send(smalltalk.send(self, "_packageAt_", [packageName]), "_ifNil_", [aBlock]);
  947. return self;},
  948. args: ["packageName", "aBlock"],
  949. 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'),
  950. messageSends: ["ifNil:", "packageAt:"],
  951. referencedClasses: []
  952. }),
  953. smalltalk.Smalltalk);
  954. smalltalk.addMethod(
  955. unescape('_createPackage_'),
  956. smalltalk.method({
  957. selector: unescape('createPackage%3A'),
  958. category: 'private',
  959. fn: function (packageName){
  960. var self=this;
  961. return smalltalk.addPackage(packageName, nil);
  962. return self;},
  963. args: ["packageName"],
  964. source: unescape('createPackage%3A%20packageName%0A%09%22Create%20and%20bind%20a%20new%20package%20with%20given%20name%20and%20return%20it.%22%0A%0A%20%20%20%20%20%20%3Creturn%20smalltalk.addPackage%28packageName%2C%20nil%29%3E'),
  965. messageSends: [],
  966. referencedClasses: []
  967. }),
  968. smalltalk.Smalltalk);
  969. smalltalk.addMethod(
  970. unescape('_deletePackage_'),
  971. smalltalk.method({
  972. selector: unescape('deletePackage%3A'),
  973. category: 'private',
  974. fn: function (packageName){
  975. var self=this;
  976. delete smalltalk.packages[packageName];
  977. return self;},
  978. args: ["packageName"],
  979. 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'),
  980. messageSends: [],
  981. referencedClasses: []
  982. }),
  983. smalltalk.Smalltalk);
  984. smalltalk.addMethod(
  985. unescape('_removePackage_'),
  986. smalltalk.method({
  987. selector: unescape('removePackage%3A'),
  988. category: 'packages',
  989. fn: function (packageName){
  990. var self=this;
  991. var pkg=nil;
  992. pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]);
  993. smalltalk.send(smalltalk.send(pkg, "_classes", []), "_do_", [(function(each){return smalltalk.send(self, "_removeClass_", [each]);})]);
  994. smalltalk.send(self, "_deletePackage_", [packageName]);
  995. return self;},
  996. args: ["packageName"],
  997. 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'),
  998. messageSends: ["packageAt:ifAbsent:", "error:", unescape("%2C"), "do:", "classes", "removeClass:", "deletePackage:"],
  999. referencedClasses: []
  1000. }),
  1001. smalltalk.Smalltalk);
  1002. smalltalk.addMethod(
  1003. unescape('_renamePackage_to_'),
  1004. smalltalk.method({
  1005. selector: unescape('renamePackage%3Ato%3A'),
  1006. category: 'packages',
  1007. fn: function (packageName, newName){
  1008. var self=this;
  1009. var pkg=nil;
  1010. pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]);
  1011. (($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;
  1012. smalltalk.packages[newName] = smalltalk.packages[packageName];
  1013. smalltalk.send(pkg, "_name_", [newName]);
  1014. smalltalk.send(self, "_deletePackage_", [packageName]);
  1015. return self;},
  1016. args: ["packageName", "newName"],
  1017. 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.'),
  1018. messageSends: ["packageAt:ifAbsent:", "error:", unescape("%2C"), "ifNotNil:", "packageAt:", "name:", "deletePackage:"],
  1019. referencedClasses: []
  1020. }),
  1021. smalltalk.Smalltalk);
  1022. smalltalk.addMethod(
  1023. unescape('_reservedWords'),
  1024. smalltalk.method({
  1025. selector: unescape('reservedWords'),
  1026. category: 'accessing',
  1027. fn: function (){
  1028. var self=this;
  1029. return self.reservedWords;
  1030. return self;},
  1031. args: [],
  1032. source: unescape('reservedWords%0A%09%22JavaScript%20reserved%20words%22%0A%09%3Creturn%20self.reservedWords%3E'),
  1033. messageSends: [],
  1034. referencedClasses: []
  1035. }),
  1036. smalltalk.Smalltalk);
  1037. smalltalk.addMethod(
  1038. unescape('_createPackage_properties_'),
  1039. smalltalk.method({
  1040. selector: unescape('createPackage%3Aproperties%3A'),
  1041. category: 'private',
  1042. fn: function (packageName, aDict){
  1043. var self=this;
  1044. var object=nil;
  1045. object = {};;
  1046. smalltalk.send(aDict, "_keysAndValuesDo_", [(function(key, value){return object[key] = value;})]);
  1047. return smalltalk.addPackage(packageName, object);
  1048. return self;},
  1049. args: ["packageName", "aDict"],
  1050. source: unescape('createPackage%3A%20packageName%20properties%3A%20aDict%0A%09%22Create%20and%20bind%20a%20new%20package%20with%20given%20name%20and%20return%20it.%22%0A%0A%09%7C%20object%20%7C%0A%09%3Cobject%20%3D%20%7B%7D%3B%3E.%0A%09aDict%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09%3Cobject%5Bkey%5D%20%3D%20value%3E.%0A%09%5D.%0A%20%20%20%20%20%20%20%3Creturn%20smalltalk.addPackage%28packageName%2C%20object%29%3E'),
  1051. messageSends: ["keysAndValuesDo:"],
  1052. referencedClasses: []
  1053. }),
  1054. smalltalk.Smalltalk);
  1055. smalltalk.addMethod(
  1056. unescape('_readJSObject_'),
  1057. smalltalk.method({
  1058. selector: unescape('readJSObject%3A'),
  1059. category: 'accessing',
  1060. fn: function (anObject){
  1061. var self=this;
  1062. return self.readJSObject(anObject);
  1063. return self;},
  1064. args: ["anObject"],
  1065. source: unescape('readJSObject%3A%20anObject%0A%09%3Creturn%20self.readJSObject%28anObject%29%3E'),
  1066. messageSends: [],
  1067. referencedClasses: []
  1068. }),
  1069. smalltalk.Smalltalk);
  1070. smalltalk.Smalltalk.klass.iVarNames = ['current'];
  1071. smalltalk.addMethod(
  1072. unescape('_current'),
  1073. smalltalk.method({
  1074. selector: unescape('current'),
  1075. category: 'accessing',
  1076. fn: function (){
  1077. var self=this;
  1078. return smalltalk;
  1079. return self;},
  1080. args: [],
  1081. source: unescape('current%0A%09%3Creturn%20smalltalk%3E'),
  1082. messageSends: [],
  1083. referencedClasses: []
  1084. }),
  1085. smalltalk.Smalltalk.klass);
  1086. smalltalk.addClass('Package', smalltalk.Object, [], 'Kernel');
  1087. 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.')
  1088. smalltalk.addMethod(
  1089. unescape('_name'),
  1090. smalltalk.method({
  1091. selector: unescape('name'),
  1092. category: 'accessing',
  1093. fn: function (){
  1094. var self=this;
  1095. return self.pkgName;
  1096. return self;},
  1097. args: [],
  1098. source: unescape('name%0A%09%3Creturn%20self.pkgName%3E'),
  1099. messageSends: [],
  1100. referencedClasses: []
  1101. }),
  1102. smalltalk.Package);
  1103. smalltalk.addMethod(
  1104. unescape('_name_'),
  1105. smalltalk.method({
  1106. selector: unescape('name%3A'),
  1107. category: 'accessing',
  1108. fn: function (aString){
  1109. var self=this;
  1110. return self.pkgName = aString;
  1111. return self;},
  1112. args: ["aString"],
  1113. source: unescape('name%3A%20aString%0A%09%3Creturn%20self.pkgName%20%3D%20aString%3E'),
  1114. messageSends: [],
  1115. referencedClasses: []
  1116. }),
  1117. smalltalk.Package);
  1118. smalltalk.addMethod(
  1119. unescape('_classes'),
  1120. smalltalk.method({
  1121. selector: unescape('classes'),
  1122. category: 'classes',
  1123. fn: function (){
  1124. var self=this;
  1125. 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]);})]);
  1126. return self;},
  1127. args: [],
  1128. 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'),
  1129. messageSends: ["select:", "classes", "current", unescape("%3D%3D"), "package"],
  1130. referencedClasses: ["Smalltalk"]
  1131. }),
  1132. smalltalk.Package);
  1133. smalltalk.addMethod(
  1134. unescape('_printString'),
  1135. smalltalk.method({
  1136. selector: unescape('printString'),
  1137. category: 'printing',
  1138. fn: function (){
  1139. var self=this;
  1140. return smalltalk.send(self, "_name", []);
  1141. return self;},
  1142. args: [],
  1143. source: unescape('printString%0A%09%5Eself%20name'),
  1144. messageSends: ["name"],
  1145. referencedClasses: []
  1146. }),
  1147. smalltalk.Package);
  1148. smalltalk.addMethod(
  1149. unescape('_dependencies'),
  1150. smalltalk.method({
  1151. selector: unescape('dependencies'),
  1152. category: 'accessing',
  1153. fn: function (){
  1154. var self=this;
  1155. return smalltalk.send(self, "_propertyAt_ifAbsent_", ["dependencies", (function(){return [];})]);
  1156. return self;},
  1157. args: [],
  1158. source: unescape('dependencies%0A%09%5Eself%20propertyAt%3A%20%27dependencies%27%20ifAbsent%3A%20%5B%23%28%29%5D'),
  1159. messageSends: ["propertyAt:ifAbsent:"],
  1160. referencedClasses: []
  1161. }),
  1162. smalltalk.Package);
  1163. smalltalk.addMethod(
  1164. unescape('_dependencies_'),
  1165. smalltalk.method({
  1166. selector: unescape('dependencies%3A'),
  1167. category: 'accessing',
  1168. fn: function (anArray){
  1169. var self=this;
  1170. return smalltalk.send(self, "_propertyAt_put_", ["dependencies", anArray]);
  1171. return self;},
  1172. args: ["anArray"],
  1173. source: unescape('dependencies%3A%20anArray%0A%09%5Eself%20propertyAt%3A%20%27dependencies%27%20put%3A%20anArray'),
  1174. messageSends: ["propertyAt:put:"],
  1175. referencedClasses: []
  1176. }),
  1177. smalltalk.Package);
  1178. smalltalk.addMethod(
  1179. unescape('_properties'),
  1180. smalltalk.method({
  1181. selector: unescape('properties'),
  1182. category: 'accessing',
  1183. fn: function (){
  1184. var self=this;
  1185. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_readJSObject_", [smalltalk.send(self, "_basicAt_", ["properties"])]);
  1186. return self;},
  1187. args: [],
  1188. source: unescape('properties%0A%09%5ESmalltalk%20current%20readJSObject%3A%20%28self%20basicAt%3A%20%27properties%27%29'),
  1189. messageSends: ["readJSObject:", "current", "basicAt:"],
  1190. referencedClasses: ["Smalltalk"]
  1191. }),
  1192. smalltalk.Package);
  1193. smalltalk.addMethod(
  1194. unescape('_propertiesAsJSON'),
  1195. smalltalk.method({
  1196. selector: unescape('propertiesAsJSON'),
  1197. category: 'private',
  1198. fn: function (){
  1199. var self=this;
  1200. return JSON.stringify(self.properties);
  1201. return self;},
  1202. args: [],
  1203. source: unescape('propertiesAsJSON%0A%09%3Creturn%20JSON.stringify%28self.properties%29%3E'),
  1204. messageSends: [],
  1205. referencedClasses: []
  1206. }),
  1207. smalltalk.Package);
  1208. smalltalk.addMethod(
  1209. unescape('_properties_'),
  1210. smalltalk.method({
  1211. selector: unescape('properties%3A'),
  1212. category: 'accessing',
  1213. fn: function (aDict){
  1214. var self=this;
  1215. var object=nil;
  1216. object = {};;
  1217. smalltalk.send(aDict, "_keysAndValuesDo_", [(function(key, value){return object[key] = value;})]);
  1218. return self.properties = object;
  1219. return self;},
  1220. args: ["aDict"],
  1221. source: unescape('properties%3A%20aDict%0A%09%22We%20store%20it%20as%20a%20javascript%20object.%22%0A%09%0A%09%7C%20object%20%7C%0A%09%3Cobject%20%3D%20%7B%7D%3B%3E.%0A%09aDict%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09%3Cobject%5Bkey%5D%20%3D%20value%3E.%0A%09%5D.%0A%09%3Creturn%20self.properties%20%3D%20object%3E'),
  1222. messageSends: ["keysAndValuesDo:"],
  1223. referencedClasses: []
  1224. }),
  1225. smalltalk.Package);
  1226. smalltalk.addMethod(
  1227. unescape('_jsProperties'),
  1228. smalltalk.method({
  1229. selector: unescape('jsProperties'),
  1230. category: 'private',
  1231. fn: function (){
  1232. var self=this;
  1233. return self.properties;
  1234. return self;},
  1235. args: [],
  1236. source: unescape('jsProperties%0A%09%3Creturn%20self.properties%3E'),
  1237. messageSends: [],
  1238. referencedClasses: []
  1239. }),
  1240. smalltalk.Package);
  1241. smalltalk.addMethod(
  1242. unescape('_jsProperties_'),
  1243. smalltalk.method({
  1244. selector: unescape('jsProperties%3A'),
  1245. category: 'private',
  1246. fn: function (aJSObject){
  1247. var self=this;
  1248. return self.properties = aJSObject;
  1249. return self;},
  1250. args: ["aJSObject"],
  1251. source: unescape('jsProperties%3A%20aJSObject%0A%09%3Creturn%20self.properties%20%3D%20aJSObject%3E'),
  1252. messageSends: [],
  1253. referencedClasses: []
  1254. }),
  1255. smalltalk.Package);
  1256. smalltalk.addMethod(
  1257. unescape('_propertyAt_'),
  1258. smalltalk.method({
  1259. selector: unescape('propertyAt%3A'),
  1260. category: 'properties',
  1261. fn: function (key){
  1262. var self=this;
  1263. return self.properties[key];
  1264. return self;},
  1265. args: ["key"],
  1266. source: unescape('propertyAt%3A%20key%0A%0A%09%3Creturn%20self.properties%5Bkey%5D%3E'),
  1267. messageSends: [],
  1268. referencedClasses: []
  1269. }),
  1270. smalltalk.Package);
  1271. smalltalk.addMethod(
  1272. unescape('_propertyAt_put_'),
  1273. smalltalk.method({
  1274. selector: unescape('propertyAt%3Aput%3A'),
  1275. category: 'properties',
  1276. fn: function (key, value){
  1277. var self=this;
  1278. return self.properties[key] = value;
  1279. return self;},
  1280. args: ["key", "value"],
  1281. source: unescape('propertyAt%3A%20key%20put%3A%20value%0A%0A%09%3Creturn%20self.properties%5Bkey%5D%20%3D%20value%3E'),
  1282. messageSends: [],
  1283. referencedClasses: []
  1284. }),
  1285. smalltalk.Package);
  1286. smalltalk.addMethod(
  1287. unescape('_propertyAt_ifAbsent_'),
  1288. smalltalk.method({
  1289. selector: unescape('propertyAt%3AifAbsent%3A'),
  1290. category: 'properties',
  1291. fn: function (key, block){
  1292. var self=this;
  1293. return (($receiver = smalltalk.send(self, "_propertyAt_", [key])) == nil || $receiver == undefined) ? (function(){return smalltalk.send(block, "_value", []);})() : $receiver;
  1294. return self;},
  1295. args: ["key", "block"],
  1296. source: unescape('propertyAt%3A%20key%20ifAbsent%3A%20block%0A%0A%09%5E%28self%20propertyAt%3A%20key%29%20ifNil%3A%20%5Bblock%20value%5D'),
  1297. messageSends: ["ifNil:", "propertyAt:", "value"],
  1298. referencedClasses: []
  1299. }),
  1300. smalltalk.Package);
  1301. smalltalk.addMethod(
  1302. unescape('_named_'),
  1303. smalltalk.method({
  1304. selector: unescape('named%3A'),
  1305. category: 'not yet classified',
  1306. fn: function (aPackageName){
  1307. var self=this;
  1308. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_", [aPackageName]);
  1309. return self;},
  1310. args: ["aPackageName"],
  1311. source: unescape('named%3A%20aPackageName%0A%0A%09%5ESmalltalk%20current%20packageAt%3A%20aPackageName'),
  1312. messageSends: ["packageAt:", "current"],
  1313. referencedClasses: ["Smalltalk"]
  1314. }),
  1315. smalltalk.Package.klass);
  1316. smalltalk.addMethod(
  1317. unescape('_named_ifAbsent_'),
  1318. smalltalk.method({
  1319. selector: unescape('named%3AifAbsent%3A'),
  1320. category: 'not yet classified',
  1321. fn: function (aPackageName, aBlock){
  1322. var self=this;
  1323. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_ifAbsent_", [aPackageName, aBlock]);
  1324. return self;},
  1325. args: ["aPackageName", "aBlock"],
  1326. source: unescape('named%3A%20aPackageName%20ifAbsent%3A%20aBlock%0A%0A%09%5ESmalltalk%20current%20packageAt%3A%20aPackageName%20ifAbsent%3A%20aBlock'),
  1327. messageSends: ["packageAt:ifAbsent:", "current"],
  1328. referencedClasses: ["Smalltalk"]
  1329. }),
  1330. smalltalk.Package.klass);
  1331. smalltalk.addClass('Behavior', smalltalk.Object, [], 'Kernel');
  1332. smalltalk.addMethod(
  1333. unescape('_new'),
  1334. smalltalk.method({
  1335. selector: unescape('new'),
  1336. category: 'instance creation',
  1337. fn: function (){
  1338. var self=this;
  1339. return smalltalk.send(smalltalk.send(self, "_basicNew", []), "_initialize", []);
  1340. return self;},
  1341. args: [],
  1342. source: unescape('new%0A%09%5Eself%20basicNew%20initialize'),
  1343. messageSends: ["initialize", "basicNew"],
  1344. referencedClasses: []
  1345. }),
  1346. smalltalk.Behavior);
  1347. smalltalk.addMethod(
  1348. unescape('_basicNew'),
  1349. smalltalk.method({
  1350. selector: unescape('basicNew'),
  1351. category: 'instance creation',
  1352. fn: function (){
  1353. var self=this;
  1354. return new self.fn();
  1355. return self;},
  1356. args: [],
  1357. source: unescape('basicNew%0A%09%3Creturn%20new%20self.fn%28%29%3E'),
  1358. messageSends: [],
  1359. referencedClasses: []
  1360. }),
  1361. smalltalk.Behavior);
  1362. smalltalk.addMethod(
  1363. unescape('_name'),
  1364. smalltalk.method({
  1365. selector: unescape('name'),
  1366. category: 'accessing',
  1367. fn: function (){
  1368. var self=this;
  1369. return self.className || nil;
  1370. return self;},
  1371. args: [],
  1372. source: unescape('name%0A%09%3Creturn%20self.className%20%7C%7C%20nil%3E'),
  1373. messageSends: [],
  1374. referencedClasses: []
  1375. }),
  1376. smalltalk.Behavior);
  1377. smalltalk.addMethod(
  1378. unescape('_superclass'),
  1379. smalltalk.method({
  1380. selector: unescape('superclass'),
  1381. category: 'accessing',
  1382. fn: function (){
  1383. var self=this;
  1384. return self.superclass || nil;
  1385. return self;},
  1386. args: [],
  1387. source: unescape('superclass%0A%09%3Creturn%20self.superclass%20%7C%7C%20nil%3E'),
  1388. messageSends: [],
  1389. referencedClasses: []
  1390. }),
  1391. smalltalk.Behavior);
  1392. smalltalk.addMethod(
  1393. unescape('_subclasses'),
  1394. smalltalk.method({
  1395. selector: unescape('subclasses'),
  1396. category: 'accessing',
  1397. fn: function (){
  1398. var self=this;
  1399. return smalltalk.subclasses(self);
  1400. return self;},
  1401. args: [],
  1402. source: unescape('subclasses%0A%09%3Creturn%20smalltalk.subclasses%28self%29%3E'),
  1403. messageSends: [],
  1404. referencedClasses: []
  1405. }),
  1406. smalltalk.Behavior);
  1407. smalltalk.addMethod(
  1408. unescape('_allSubclasses'),
  1409. smalltalk.method({
  1410. selector: unescape('allSubclasses'),
  1411. category: 'accessing',
  1412. fn: function (){
  1413. var self=this;
  1414. var result=nil;
  1415. result=smalltalk.send(self, "_subclasses", []);
  1416. smalltalk.send(smalltalk.send(self, "_subclasses", []), "_do_", [(function(each){return smalltalk.send(result, "_addAll_", [smalltalk.send(each, "_allSubclasses", [])]);})]);
  1417. return result;
  1418. return self;},
  1419. args: [],
  1420. 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'),
  1421. messageSends: ["subclasses", "do:", "addAll:", "allSubclasses"],
  1422. referencedClasses: []
  1423. }),
  1424. smalltalk.Behavior);
  1425. smalltalk.addMethod(
  1426. unescape('_withAllSubclasses'),
  1427. smalltalk.method({
  1428. selector: unescape('withAllSubclasses'),
  1429. category: 'accessing',
  1430. fn: function (){
  1431. var self=this;
  1432. return (function($rec){smalltalk.send($rec, "_addAll_", [smalltalk.send(self, "_allSubclasses", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.Array || Array), "_with_", [self]));
  1433. return self;},
  1434. args: [],
  1435. source: unescape('withAllSubclasses%0A%09%5E%28Array%20with%3A%20self%29%20addAll%3A%20self%20allSubclasses%3B%20yourself'),
  1436. messageSends: ["addAll:", "allSubclasses", "yourself", "with:"],
  1437. referencedClasses: ["Array"]
  1438. }),
  1439. smalltalk.Behavior);
  1440. smalltalk.addMethod(
  1441. unescape('_prototype'),
  1442. smalltalk.method({
  1443. selector: unescape('prototype'),
  1444. category: 'accessing',
  1445. fn: function (){
  1446. var self=this;
  1447. return self.fn.prototype;
  1448. return self;},
  1449. args: [],
  1450. source: unescape('prototype%0A%09%3Creturn%20self.fn.prototype%3E'),
  1451. messageSends: [],
  1452. referencedClasses: []
  1453. }),
  1454. smalltalk.Behavior);
  1455. smalltalk.addMethod(
  1456. unescape('_methodDictionary'),
  1457. smalltalk.method({
  1458. selector: unescape('methodDictionary'),
  1459. category: 'accessing',
  1460. fn: function (){
  1461. var self=this;
  1462. var dict = smalltalk.Dictionary._new();
  1463. var methods = self.fn.prototype.methods;
  1464. for(var i in methods) {
  1465. if(methods[i].selector) {
  1466. dict._at_put_(methods[i].selector, methods[i]);
  1467. }
  1468. };
  1469. return dict;
  1470. return self;},
  1471. args: [],
  1472. 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'),
  1473. messageSends: [],
  1474. referencedClasses: []
  1475. }),
  1476. smalltalk.Behavior);
  1477. smalltalk.addMethod(
  1478. unescape('_methodsFor_'),
  1479. smalltalk.method({
  1480. selector: unescape('methodsFor%3A'),
  1481. category: 'accessing',
  1482. fn: function (aString){
  1483. var self=this;
  1484. return (function($rec){smalltalk.send($rec, "_class_category_", [self, aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.ClassCategoryReader || ClassCategoryReader), "_new", []));
  1485. return self;},
  1486. args: ["aString"],
  1487. 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'),
  1488. messageSends: ["class:category:", "yourself", "new"],
  1489. referencedClasses: ["ClassCategoryReader"]
  1490. }),
  1491. smalltalk.Behavior);
  1492. smalltalk.addMethod(
  1493. unescape('_addCompiledMethod_'),
  1494. smalltalk.method({
  1495. selector: unescape('addCompiledMethod%3A'),
  1496. category: 'accessing',
  1497. fn: function (aMethod){
  1498. var self=this;
  1499. smalltalk.addMethod(aMethod.selector._asSelector(), aMethod, self);
  1500. return self;},
  1501. args: ["aMethod"],
  1502. source: unescape('addCompiledMethod%3A%20aMethod%0A%09%3Csmalltalk.addMethod%28aMethod.selector._asSelector%28%29%2C%20aMethod%2C%20self%29%3E'),
  1503. messageSends: [],
  1504. referencedClasses: []
  1505. }),
  1506. smalltalk.Behavior);
  1507. smalltalk.addMethod(
  1508. unescape('_instanceVariableNames'),
  1509. smalltalk.method({
  1510. selector: unescape('instanceVariableNames'),
  1511. category: 'accessing',
  1512. fn: function (){
  1513. var self=this;
  1514. return self.iVarNames;
  1515. return self;},
  1516. args: [],
  1517. source: unescape('instanceVariableNames%0A%09%3Creturn%20self.iVarNames%3E'),
  1518. messageSends: [],
  1519. referencedClasses: []
  1520. }),
  1521. smalltalk.Behavior);
  1522. smalltalk.addMethod(
  1523. unescape('_comment'),
  1524. smalltalk.method({
  1525. selector: unescape('comment'),
  1526. category: 'accessing',
  1527. fn: function (){
  1528. var self=this;
  1529. return (($receiver = smalltalk.send(self, "_basicAt_", ["comment"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  1530. return self;},
  1531. args: [],
  1532. source: unescape('comment%0A%20%20%20%20%5E%28self%20basicAt%3A%20%27comment%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1533. messageSends: ["ifNil:", "basicAt:"],
  1534. referencedClasses: []
  1535. }),
  1536. smalltalk.Behavior);
  1537. smalltalk.addMethod(
  1538. unescape('_comment_'),
  1539. smalltalk.method({
  1540. selector: unescape('comment%3A'),
  1541. category: 'accessing',
  1542. fn: function (aString){
  1543. var self=this;
  1544. smalltalk.send(self, "_basicAt_put_", ["comment", aString]);
  1545. return self;},
  1546. args: ["aString"],
  1547. source: unescape('comment%3A%20aString%0A%20%20%20%20self%20basicAt%3A%20%27comment%27%20put%3A%20aString'),
  1548. messageSends: ["basicAt:put:"],
  1549. referencedClasses: []
  1550. }),
  1551. smalltalk.Behavior);
  1552. smalltalk.addMethod(
  1553. unescape('_commentStamp'),
  1554. smalltalk.method({
  1555. selector: unescape('commentStamp'),
  1556. category: 'accessing',
  1557. fn: function (){
  1558. var self=this;
  1559. return (function($rec){smalltalk.send($rec, "_class_", [self]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.ClassCommentReader || ClassCommentReader), "_new", []));
  1560. return self;},
  1561. args: [],
  1562. source: unescape('commentStamp%0A%20%20%20%20%5EClassCommentReader%20new%0A%09class%3A%20self%3B%0A%09yourself'),
  1563. messageSends: ["class:", "yourself", "new"],
  1564. referencedClasses: ["ClassCommentReader"]
  1565. }),
  1566. smalltalk.Behavior);
  1567. smalltalk.addMethod(
  1568. unescape('_removeCompiledMethod_'),
  1569. smalltalk.method({
  1570. selector: unescape('removeCompiledMethod%3A'),
  1571. category: 'accessing',
  1572. fn: function (aMethod){
  1573. var self=this;
  1574. delete self.fn.prototype[aMethod.selector._asSelector()];
  1575. delete self.fn.prototype.methods[aMethod.selector];
  1576. smalltalk.init(self);;
  1577. return self;},
  1578. args: ["aMethod"],
  1579. 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'),
  1580. messageSends: [],
  1581. referencedClasses: []
  1582. }),
  1583. smalltalk.Behavior);
  1584. smalltalk.addMethod(
  1585. unescape('_inheritsFrom_'),
  1586. smalltalk.method({
  1587. selector: unescape('inheritsFrom%3A'),
  1588. category: 'instance creation',
  1589. fn: function (aClass){
  1590. var self=this;
  1591. return smalltalk.send(smalltalk.send(aClass, "_allSubclasses", []), "_includes_", [self]);
  1592. return self;},
  1593. args: ["aClass"],
  1594. source: unescape('inheritsFrom%3A%20aClass%0A%09%5EaClass%20allSubclasses%20includes%3A%20self'),
  1595. messageSends: ["includes:", "allSubclasses"],
  1596. referencedClasses: []
  1597. }),
  1598. smalltalk.Behavior);
  1599. smalltalk.addMethod(
  1600. unescape('_protocols'),
  1601. smalltalk.method({
  1602. selector: unescape('protocols'),
  1603. category: 'accessing',
  1604. fn: function (){
  1605. var self=this;
  1606. var protocols=nil;
  1607. protocols=smalltalk.send((smalltalk.Array || Array), "_new", []);
  1608. 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", [])]);})]));})]);
  1609. return smalltalk.send(protocols, "_sort", []);
  1610. return self;},
  1611. args: [],
  1612. 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'),
  1613. messageSends: ["new", "do:", "methodDictionary", "ifFalse:", "includes:", "category", "add:", "sort"],
  1614. referencedClasses: ["Array"]
  1615. }),
  1616. smalltalk.Behavior);
  1617. smalltalk.addMethod(
  1618. unescape('_protocolsDo_'),
  1619. smalltalk.method({
  1620. selector: unescape('protocolsDo%3A'),
  1621. category: 'accessing',
  1622. fn: function (aBlock){
  1623. var self=this;
  1624. var methodsByCategory=nil;
  1625. methodsByCategory=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  1626. 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]);})]);
  1627. smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(category){return smalltalk.send(aBlock, "_value_value_", [category, smalltalk.send(methodsByCategory, "_at_", [category])]);})]);
  1628. return self;},
  1629. args: ["aBlock"],
  1630. 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'),
  1631. messageSends: ["new", "do:", "values", "methodDictionary", "add:", "at:ifAbsentPut:", "category", "protocols", "value:value:", "at:"],
  1632. referencedClasses: ["Dictionary", "Array"]
  1633. }),
  1634. smalltalk.Behavior);
  1635. smalltalk.addMethod(
  1636. unescape('_allInstanceVariableNames'),
  1637. smalltalk.method({
  1638. selector: unescape('allInstanceVariableNames'),
  1639. category: 'accessing',
  1640. fn: function (){
  1641. var self=this;
  1642. var result=nil;
  1643. result=smalltalk.send(smalltalk.send(self, "_instanceVariableNames", []), "_copy", []);
  1644. (($receiver = smalltalk.send(self, "_superclass", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(result, "_addAll_", [smalltalk.send(smalltalk.send(self, "_superclass", []), "_allInstanceVariableNames", [])]);})() : nil;
  1645. return result;
  1646. return self;},
  1647. args: [],
  1648. 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'),
  1649. messageSends: ["copy", "instanceVariableNames", "ifNotNil:", "superclass", "addAll:", "allInstanceVariableNames"],
  1650. referencedClasses: []
  1651. }),
  1652. smalltalk.Behavior);
  1653. smalltalk.addMethod(
  1654. unescape('_methodAt_'),
  1655. smalltalk.method({
  1656. selector: unescape('methodAt%3A'),
  1657. category: 'accessing',
  1658. fn: function (aString){
  1659. var self=this;
  1660. return smalltalk.methods(self)[aString];
  1661. return self;},
  1662. args: ["aString"],
  1663. source: unescape('methodAt%3A%20aString%0A%09%3Creturn%20smalltalk.methods%28self%29%5BaString%5D%3E'),
  1664. messageSends: [],
  1665. referencedClasses: []
  1666. }),
  1667. smalltalk.Behavior);
  1668. smalltalk.addMethod(
  1669. unescape('_methodsFor_stamp_'),
  1670. smalltalk.method({
  1671. selector: unescape('methodsFor%3Astamp%3A'),
  1672. category: 'accessing',
  1673. fn: function (aString, aStamp){
  1674. var self=this;
  1675. return smalltalk.send(self, "_methodsFor_", [aString]);
  1676. return self;},
  1677. args: ["aString", "aStamp"],
  1678. 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'),
  1679. messageSends: ["methodsFor:"],
  1680. referencedClasses: []
  1681. }),
  1682. smalltalk.Behavior);
  1683. smalltalk.addMethod(
  1684. unescape('_commentStamp_prior_'),
  1685. smalltalk.method({
  1686. selector: unescape('commentStamp%3Aprior%3A'),
  1687. category: 'accessing',
  1688. fn: function (aStamp, prior){
  1689. var self=this;
  1690. return smalltalk.send(self, "_commentStamp", []);
  1691. return self;},
  1692. args: ["aStamp", "prior"],
  1693. source: unescape('commentStamp%3A%20aStamp%20prior%3A%20prior%0A%20%20%20%20%20%20%20%20%5Eself%20commentStamp'),
  1694. messageSends: ["commentStamp"],
  1695. referencedClasses: []
  1696. }),
  1697. smalltalk.Behavior);
  1698. smalltalk.addMethod(
  1699. unescape('_compile_'),
  1700. smalltalk.method({
  1701. selector: unescape('compile%3A'),
  1702. category: 'compiling',
  1703. fn: function (aString){
  1704. var self=this;
  1705. smalltalk.send(self, "_compile_category_", [aString, ""]);
  1706. return self;},
  1707. args: ["aString"],
  1708. source: unescape('compile%3A%20aString%0A%09self%20compile%3A%20aString%20category%3A%20%27%27'),
  1709. messageSends: ["compile:category:"],
  1710. referencedClasses: []
  1711. }),
  1712. smalltalk.Behavior);
  1713. smalltalk.addMethod(
  1714. unescape('_compile_category_'),
  1715. smalltalk.method({
  1716. selector: unescape('compile%3Acategory%3A'),
  1717. category: 'compiling',
  1718. fn: function (aString, anotherString){
  1719. var self=this;
  1720. var method=nil;
  1721. method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self]);
  1722. smalltalk.send(method, "_category_", [anotherString]);
  1723. smalltalk.send(self, "_addCompiledMethod_", [method]);
  1724. return self;},
  1725. args: ["aString", "anotherString"],
  1726. 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'),
  1727. messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
  1728. referencedClasses: ["Compiler"]
  1729. }),
  1730. smalltalk.Behavior);
  1731. smalltalk.addClass('Class', smalltalk.Behavior, [], 'Kernel');
  1732. smalltalk.addMethod(
  1733. unescape('_category'),
  1734. smalltalk.method({
  1735. selector: unescape('category'),
  1736. category: 'accessing',
  1737. fn: function (){
  1738. var self=this;
  1739. return (($receiver = smalltalk.send(self, "_package", [])) == nil || $receiver == undefined) ? (function(){return "Unclassified";})() : (function(){return smalltalk.send(smalltalk.send(self, "_package", []), "_name", []);})();
  1740. return self;},
  1741. args: [],
  1742. source: unescape('category%0A%09%5Eself%20package%20ifNil%3A%20%5B%27Unclassified%27%5D%20ifNotNil%3A%20%5Bself%20package%20name%5D'),
  1743. messageSends: ["ifNil:ifNotNil:", "package", "name"],
  1744. referencedClasses: []
  1745. }),
  1746. smalltalk.Class);
  1747. smalltalk.addMethod(
  1748. unescape('_subclass_instanceVariableNames_'),
  1749. smalltalk.method({
  1750. selector: unescape('subclass%3AinstanceVariableNames%3A'),
  1751. category: 'class creation',
  1752. fn: function (aString, anotherString){
  1753. var self=this;
  1754. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
  1755. return self;},
  1756. args: ["aString", "anotherString"],
  1757. 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'),
  1758. messageSends: ["subclass:instanceVariableNames:package:"],
  1759. referencedClasses: []
  1760. }),
  1761. smalltalk.Class);
  1762. smalltalk.addMethod(
  1763. unescape('_subclass_instanceVariableNames_category_'),
  1764. smalltalk.method({
  1765. selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
  1766. category: 'class creation',
  1767. fn: function (aString, aString2, aString3){
  1768. var self=this;
  1769. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  1770. return self;},
  1771. args: ["aString", "aString2", "aString3"],
  1772. 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'),
  1773. messageSends: ["subclass:instanceVariableNames:package:"],
  1774. referencedClasses: []
  1775. }),
  1776. smalltalk.Class);
  1777. smalltalk.addMethod(
  1778. unescape('_isClass'),
  1779. smalltalk.method({
  1780. selector: unescape('isClass'),
  1781. category: 'testing',
  1782. fn: function (){
  1783. var self=this;
  1784. return true;
  1785. return self;},
  1786. args: [],
  1787. source: unescape('isClass%0A%09%5Etrue'),
  1788. messageSends: [],
  1789. referencedClasses: []
  1790. }),
  1791. smalltalk.Class);
  1792. smalltalk.addMethod(
  1793. unescape('_printString'),
  1794. smalltalk.method({
  1795. selector: unescape('printString'),
  1796. category: 'printing',
  1797. fn: function (){
  1798. var self=this;
  1799. return smalltalk.send(self, "_name", []);
  1800. return self;},
  1801. args: [],
  1802. source: unescape('printString%0A%09%5Eself%20name'),
  1803. messageSends: ["name"],
  1804. referencedClasses: []
  1805. }),
  1806. smalltalk.Class);
  1807. smalltalk.addMethod(
  1808. unescape('_rename_'),
  1809. smalltalk.method({
  1810. selector: unescape('rename%3A'),
  1811. category: 'accessing',
  1812. fn: function (aString){
  1813. var self=this;
  1814. smalltalk[aString] = self;
  1815. delete smalltalk[self.className];
  1816. self.className = aString;
  1817. ;
  1818. return self;},
  1819. args: ["aString"],
  1820. 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'),
  1821. messageSends: [],
  1822. referencedClasses: []
  1823. }),
  1824. smalltalk.Class);
  1825. smalltalk.addMethod(
  1826. unescape('_subclass_instanceVariableNames_classVariableNames_poolDictionaries_category_'),
  1827. smalltalk.method({
  1828. selector: unescape('subclass%3AinstanceVariableNames%3AclassVariableNames%3ApoolDictionaries%3Acategory%3A'),
  1829. category: 'class creation',
  1830. fn: function (aString, aString2, classVars, pools, aString3){
  1831. var self=this;
  1832. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  1833. return self;},
  1834. args: ["aString", "aString2", "classVars", "pools", "aString3"],
  1835. 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'),
  1836. messageSends: ["subclass:instanceVariableNames:package:"],
  1837. referencedClasses: []
  1838. }),
  1839. smalltalk.Class);
  1840. smalltalk.addMethod(
  1841. unescape('_package'),
  1842. smalltalk.method({
  1843. selector: unescape('package'),
  1844. category: 'accessing',
  1845. fn: function (){
  1846. var self=this;
  1847. return self.pkg;
  1848. return self;},
  1849. args: [],
  1850. source: unescape('package%0A%09%3Creturn%20self.pkg%3E'),
  1851. messageSends: [],
  1852. referencedClasses: []
  1853. }),
  1854. smalltalk.Class);
  1855. smalltalk.addMethod(
  1856. unescape('_package_'),
  1857. smalltalk.method({
  1858. selector: unescape('package%3A'),
  1859. category: 'accessing',
  1860. fn: function (aPackage){
  1861. var self=this;
  1862. self.pkg = aPackage;
  1863. return self;},
  1864. args: ["aPackage"],
  1865. source: unescape('package%3A%20aPackage%0A%09%3Cself.pkg%20%3D%20aPackage%3E'),
  1866. messageSends: [],
  1867. referencedClasses: []
  1868. }),
  1869. smalltalk.Class);
  1870. smalltalk.addMethod(
  1871. unescape('_subclass_instanceVariableNames_package_'),
  1872. smalltalk.method({
  1873. selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
  1874. category: 'class creation',
  1875. fn: function (aString, aString2, aString3){
  1876. var self=this;
  1877. return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
  1878. return self;},
  1879. args: ["aString", "aString2", "aString3"],
  1880. 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'),
  1881. messageSends: ["superclass:subclass:instanceVariableNames:package:", "new"],
  1882. referencedClasses: ["ClassBuilder"]
  1883. }),
  1884. smalltalk.Class);
  1885. smalltalk.addClass('Metaclass', smalltalk.Behavior, [], 'Kernel');
  1886. smalltalk.addMethod(
  1887. unescape('_instanceClass'),
  1888. smalltalk.method({
  1889. selector: unescape('instanceClass'),
  1890. category: 'accessing',
  1891. fn: function (){
  1892. var self=this;
  1893. return self.instanceClass;
  1894. return self;},
  1895. args: [],
  1896. source: unescape('instanceClass%0A%09%3Creturn%20self.instanceClass%3E'),
  1897. messageSends: [],
  1898. referencedClasses: []
  1899. }),
  1900. smalltalk.Metaclass);
  1901. smalltalk.addMethod(
  1902. unescape('_instanceVariableNames_'),
  1903. smalltalk.method({
  1904. selector: unescape('instanceVariableNames%3A'),
  1905. category: 'accessing',
  1906. fn: function (aCollection){
  1907. var self=this;
  1908. smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_class_instanceVariableNames_", [self, aCollection]);
  1909. return self;},
  1910. args: ["aCollection"],
  1911. source: unescape('instanceVariableNames%3A%20aCollection%0A%09ClassBuilder%20new%0A%09%20%20%20%20class%3A%20self%20instanceVariableNames%3A%20aCollection'),
  1912. messageSends: ["class:instanceVariableNames:", "new"],
  1913. referencedClasses: ["ClassBuilder"]
  1914. }),
  1915. smalltalk.Metaclass);
  1916. smalltalk.addMethod(
  1917. unescape('_isMetaclass'),
  1918. smalltalk.method({
  1919. selector: unescape('isMetaclass'),
  1920. category: 'testing',
  1921. fn: function (){
  1922. var self=this;
  1923. return true;
  1924. return self;},
  1925. args: [],
  1926. source: unescape('isMetaclass%0A%09%5Etrue'),
  1927. messageSends: [],
  1928. referencedClasses: []
  1929. }),
  1930. smalltalk.Metaclass);
  1931. smalltalk.addMethod(
  1932. unescape('_printString'),
  1933. smalltalk.method({
  1934. selector: unescape('printString'),
  1935. category: 'printing',
  1936. fn: function (){
  1937. var self=this;
  1938. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_instanceClass", []), "_name", []), "__comma", [" class"]);
  1939. return self;},
  1940. args: [],
  1941. source: unescape('printString%0A%09%5Eself%20instanceClass%20name%2C%20%27%20class%27'),
  1942. messageSends: [unescape("%2C"), "name", "instanceClass"],
  1943. referencedClasses: []
  1944. }),
  1945. smalltalk.Metaclass);
  1946. smalltalk.addClass('CompiledMethod', smalltalk.Object, [], 'Kernel');
  1947. smalltalk.addMethod(
  1948. unescape('_source'),
  1949. smalltalk.method({
  1950. selector: unescape('source'),
  1951. category: 'accessing',
  1952. fn: function (){
  1953. var self=this;
  1954. return (($receiver = smalltalk.send(self, "_basicAt_", ["source"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  1955. return self;},
  1956. args: [],
  1957. source: unescape('source%0A%09%5E%28self%20basicAt%3A%20%27source%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1958. messageSends: ["ifNil:", "basicAt:"],
  1959. referencedClasses: []
  1960. }),
  1961. smalltalk.CompiledMethod);
  1962. smalltalk.addMethod(
  1963. unescape('_source_'),
  1964. smalltalk.method({
  1965. selector: unescape('source%3A'),
  1966. category: 'accessing',
  1967. fn: function (aString){
  1968. var self=this;
  1969. smalltalk.send(self, "_basicAt_put_", ["source", aString]);
  1970. return self;},
  1971. args: ["aString"],
  1972. source: unescape('source%3A%20aString%0A%09self%20basicAt%3A%20%27source%27%20put%3A%20aString'),
  1973. messageSends: ["basicAt:put:"],
  1974. referencedClasses: []
  1975. }),
  1976. smalltalk.CompiledMethod);
  1977. smalltalk.addMethod(
  1978. unescape('_category'),
  1979. smalltalk.method({
  1980. selector: unescape('category'),
  1981. category: 'accessing',
  1982. fn: function (){
  1983. var self=this;
  1984. return (($receiver = smalltalk.send(self, "_basicAt_", ["category"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  1985. return self;},
  1986. args: [],
  1987. source: unescape('category%0A%09%5E%28self%20basicAt%3A%20%27category%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1988. messageSends: ["ifNil:", "basicAt:"],
  1989. referencedClasses: []
  1990. }),
  1991. smalltalk.CompiledMethod);
  1992. smalltalk.addMethod(
  1993. unescape('_category_'),
  1994. smalltalk.method({
  1995. selector: unescape('category%3A'),
  1996. category: 'accessing',
  1997. fn: function (aString){
  1998. var self=this;
  1999. smalltalk.send(self, "_basicAt_put_", ["category", aString]);
  2000. return self;},
  2001. args: ["aString"],
  2002. source: unescape('category%3A%20aString%0A%09self%20basicAt%3A%20%27category%27%20put%3A%20aString'),
  2003. messageSends: ["basicAt:put:"],
  2004. referencedClasses: []
  2005. }),
  2006. smalltalk.CompiledMethod);
  2007. smalltalk.addMethod(
  2008. unescape('_selector'),
  2009. smalltalk.method({
  2010. selector: unescape('selector'),
  2011. category: 'accessing',
  2012. fn: function (){
  2013. var self=this;
  2014. return smalltalk.send(self, "_basicAt_", ["selector"]);
  2015. return self;},
  2016. args: [],
  2017. source: unescape('selector%0A%09%5Eself%20basicAt%3A%20%27selector%27'),
  2018. messageSends: ["basicAt:"],
  2019. referencedClasses: []
  2020. }),
  2021. smalltalk.CompiledMethod);
  2022. smalltalk.addMethod(
  2023. unescape('_selector_'),
  2024. smalltalk.method({
  2025. selector: unescape('selector%3A'),
  2026. category: 'accessing',
  2027. fn: function (aString){
  2028. var self=this;
  2029. smalltalk.send(self, "_basicAt_put_", ["selector", aString]);
  2030. return self;},
  2031. args: ["aString"],
  2032. source: unescape('selector%3A%20aString%0A%09self%20basicAt%3A%20%27selector%27%20put%3A%20aString'),
  2033. messageSends: ["basicAt:put:"],
  2034. referencedClasses: []
  2035. }),
  2036. smalltalk.CompiledMethod);
  2037. smalltalk.addMethod(
  2038. unescape('_fn'),
  2039. smalltalk.method({
  2040. selector: unescape('fn'),
  2041. category: 'accessing',
  2042. fn: function (){
  2043. var self=this;
  2044. return smalltalk.send(self, "_basicAt_", ["fn"]);
  2045. return self;},
  2046. args: [],
  2047. source: unescape('fn%0A%09%5Eself%20basicAt%3A%20%27fn%27'),
  2048. messageSends: ["basicAt:"],
  2049. referencedClasses: []
  2050. }),
  2051. smalltalk.CompiledMethod);
  2052. smalltalk.addMethod(
  2053. unescape('_fn_'),
  2054. smalltalk.method({
  2055. selector: unescape('fn%3A'),
  2056. category: 'accessing',
  2057. fn: function (aBlock){
  2058. var self=this;
  2059. smalltalk.send(self, "_basicAt_put_", ["fn", aBlock]);
  2060. return self;},
  2061. args: ["aBlock"],
  2062. source: unescape('fn%3A%20aBlock%0A%09self%20basicAt%3A%20%27fn%27%20put%3A%20aBlock'),
  2063. messageSends: ["basicAt:put:"],
  2064. referencedClasses: []
  2065. }),
  2066. smalltalk.CompiledMethod);
  2067. smalltalk.addMethod(
  2068. unescape('_messageSends'),
  2069. smalltalk.method({
  2070. selector: unescape('messageSends'),
  2071. category: 'accessing',
  2072. fn: function (){
  2073. var self=this;
  2074. return smalltalk.send(self, "_basicAt_", ["messageSends"]);
  2075. return self;},
  2076. args: [],
  2077. source: unescape('messageSends%0A%09%5Eself%20basicAt%3A%20%27messageSends%27'),
  2078. messageSends: ["basicAt:"],
  2079. referencedClasses: []
  2080. }),
  2081. smalltalk.CompiledMethod);
  2082. smalltalk.addMethod(
  2083. unescape('_methodClass'),
  2084. smalltalk.method({
  2085. selector: unescape('methodClass'),
  2086. category: 'accessing',
  2087. fn: function (){
  2088. var self=this;
  2089. return smalltalk.send(self, "_basicAt_", ["methodClass"]);
  2090. return self;},
  2091. args: [],
  2092. source: unescape('methodClass%0A%09%5Eself%20basicAt%3A%20%27methodClass%27'),
  2093. messageSends: ["basicAt:"],
  2094. referencedClasses: []
  2095. }),
  2096. smalltalk.CompiledMethod);
  2097. smalltalk.addMethod(
  2098. unescape('_referencedClasses'),
  2099. smalltalk.method({
  2100. selector: unescape('referencedClasses'),
  2101. category: 'accessing',
  2102. fn: function (){
  2103. var self=this;
  2104. return smalltalk.send(self, "_basicAt_", ["referencedClasses"]);
  2105. return self;},
  2106. args: [],
  2107. source: unescape('referencedClasses%0A%09%5Eself%20basicAt%3A%20%27referencedClasses%27'),
  2108. messageSends: ["basicAt:"],
  2109. referencedClasses: []
  2110. }),
  2111. smalltalk.CompiledMethod);
  2112. smalltalk.addMethod(
  2113. unescape('_arguments'),
  2114. smalltalk.method({
  2115. selector: unescape('arguments'),
  2116. category: 'accessing',
  2117. fn: function (){
  2118. var self=this;
  2119. return self.args || [];
  2120. return self;},
  2121. args: [],
  2122. source: unescape('arguments%0A%09%3Creturn%20self.args%20%7C%7C%20%5B%5D%3E'),
  2123. messageSends: [],
  2124. referencedClasses: []
  2125. }),
  2126. smalltalk.CompiledMethod);
  2127. smalltalk.addClass('Number', smalltalk.Object, [], 'Kernel');
  2128. smalltalk.addMethod(
  2129. unescape('__eq'),
  2130. smalltalk.method({
  2131. selector: unescape('%3D'),
  2132. category: 'comparing',
  2133. fn: function (aNumber){
  2134. var self=this;
  2135. 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}})})();})]));
  2136. return Number(self) == aNumber;
  2137. return self;
  2138. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  2139. args: ["aNumber"],
  2140. 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'),
  2141. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  2142. referencedClasses: []
  2143. }),
  2144. smalltalk.Number);
  2145. smalltalk.addMethod(
  2146. unescape('__gt'),
  2147. smalltalk.method({
  2148. selector: unescape('%3E'),
  2149. category: 'comparing',
  2150. fn: function (aNumber){
  2151. var self=this;
  2152. return self > aNumber;
  2153. return self;},
  2154. args: ["aNumber"],
  2155. source: unescape('%3E%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3E%3E%20aNumber%3E'),
  2156. messageSends: [],
  2157. referencedClasses: []
  2158. }),
  2159. smalltalk.Number);
  2160. smalltalk.addMethod(
  2161. unescape('__lt'),
  2162. smalltalk.method({
  2163. selector: unescape('%3C'),
  2164. category: 'comparing',
  2165. fn: function (aNumber){
  2166. var self=this;
  2167. return self < aNumber;
  2168. return self;},
  2169. args: ["aNumber"],
  2170. source: unescape('%3C%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3C%20aNumber%3E'),
  2171. messageSends: [],
  2172. referencedClasses: []
  2173. }),
  2174. smalltalk.Number);
  2175. smalltalk.addMethod(
  2176. unescape('__gt_eq'),
  2177. smalltalk.method({
  2178. selector: unescape('%3E%3D'),
  2179. category: 'comparing',
  2180. fn: function (aNumber){
  2181. var self=this;
  2182. return self >= aNumber;
  2183. return self;},
  2184. args: ["aNumber"],
  2185. source: unescape('%3E%3D%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3E%3E%3D%20aNumber%3E'),
  2186. messageSends: [],
  2187. referencedClasses: []
  2188. }),
  2189. smalltalk.Number);
  2190. smalltalk.addMethod(
  2191. unescape('__lt_eq'),
  2192. smalltalk.method({
  2193. selector: unescape('%3C%3D'),
  2194. category: 'comparing',
  2195. fn: function (aNumber){
  2196. var self=this;
  2197. return self <= aNumber;
  2198. return self;},
  2199. args: ["aNumber"],
  2200. source: unescape('%3C%3D%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3C%3D%20aNumber%3E'),
  2201. messageSends: [],
  2202. referencedClasses: []
  2203. }),
  2204. smalltalk.Number);
  2205. smalltalk.addMethod(
  2206. unescape('__plus'),
  2207. smalltalk.method({
  2208. selector: unescape('+'),
  2209. category: 'arithmetic',
  2210. fn: function (aNumber){
  2211. var self=this;
  2212. return self + aNumber;
  2213. return self;},
  2214. args: ["aNumber"],
  2215. source: unescape('+%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20+%20aNumber%3E'),
  2216. messageSends: [],
  2217. referencedClasses: []
  2218. }),
  2219. smalltalk.Number);
  2220. smalltalk.addMethod(
  2221. unescape('__minus'),
  2222. smalltalk.method({
  2223. selector: unescape('-'),
  2224. category: 'arithmetic',
  2225. fn: function (aNumber){
  2226. var self=this;
  2227. return self - aNumber;
  2228. return self;},
  2229. args: ["aNumber"],
  2230. source: unescape('-%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20-%20aNumber%3E'),
  2231. messageSends: [],
  2232. referencedClasses: []
  2233. }),
  2234. smalltalk.Number);
  2235. smalltalk.addMethod(
  2236. unescape('__star'),
  2237. smalltalk.method({
  2238. selector: unescape('*'),
  2239. category: 'arithmetic',
  2240. fn: function (aNumber){
  2241. var self=this;
  2242. return self * aNumber;
  2243. return self;},
  2244. args: ["aNumber"],
  2245. source: unescape('*%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20*%20aNumber%3E'),
  2246. messageSends: [],
  2247. referencedClasses: []
  2248. }),
  2249. smalltalk.Number);
  2250. smalltalk.addMethod(
  2251. unescape('__slash'),
  2252. smalltalk.method({
  2253. selector: unescape('/'),
  2254. category: 'arithmetic',
  2255. fn: function (aNumber){
  2256. var self=this;
  2257. return self / aNumber;
  2258. return self;},
  2259. args: ["aNumber"],
  2260. source: unescape('/%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20/%20aNumber%3E'),
  2261. messageSends: [],
  2262. referencedClasses: []
  2263. }),
  2264. smalltalk.Number);
  2265. smalltalk.addMethod(
  2266. unescape('_max_'),
  2267. smalltalk.method({
  2268. selector: unescape('max%3A'),
  2269. category: 'arithmetic',
  2270. fn: function (aNumber){
  2271. var self=this;
  2272. return Math.max(self, aNumber);;
  2273. return self;},
  2274. args: ["aNumber"],
  2275. source: unescape('max%3A%20aNumber%0A%09%3Creturn%20Math.max%28self%2C%20aNumber%29%3B%3E'),
  2276. messageSends: [],
  2277. referencedClasses: []
  2278. }),
  2279. smalltalk.Number);
  2280. smalltalk.addMethod(
  2281. unescape('_min_'),
  2282. smalltalk.method({
  2283. selector: unescape('min%3A'),
  2284. category: 'arithmetic',
  2285. fn: function (aNumber){
  2286. var self=this;
  2287. return Math.min(self, aNumber);;
  2288. return self;},
  2289. args: ["aNumber"],
  2290. source: unescape('min%3A%20aNumber%0A%09%3Creturn%20Math.min%28self%2C%20aNumber%29%3B%3E'),
  2291. messageSends: [],
  2292. referencedClasses: []
  2293. }),
  2294. smalltalk.Number);
  2295. smalltalk.addMethod(
  2296. unescape('_rounded'),
  2297. smalltalk.method({
  2298. selector: unescape('rounded'),
  2299. category: 'converting',
  2300. fn: function (){
  2301. var self=this;
  2302. return Math.round(self);;
  2303. return self;},
  2304. args: [],
  2305. source: unescape('rounded%0A%09%3Creturn%20Math.round%28self%29%3B%3E'),
  2306. messageSends: [],
  2307. referencedClasses: []
  2308. }),
  2309. smalltalk.Number);
  2310. smalltalk.addMethod(
  2311. unescape('_truncated'),
  2312. smalltalk.method({
  2313. selector: unescape('truncated'),
  2314. category: 'converting',
  2315. fn: function (){
  2316. var self=this;
  2317. var result=nil;
  2318. ((($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));;})]));
  2319. return result;
  2320. return self;},
  2321. args: [],
  2322. 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'),
  2323. messageSends: ["ifTrue:ifFalse:", unescape("%3E%3D")],
  2324. referencedClasses: []
  2325. }),
  2326. smalltalk.Number);
  2327. smalltalk.addMethod(
  2328. unescape('_to_'),
  2329. smalltalk.method({
  2330. selector: unescape('to%3A'),
  2331. category: 'converting',
  2332. fn: function (aNumber){
  2333. var self=this;
  2334. var array=nil;
  2335. var first=nil;
  2336. var last=nil;
  2337. var count=nil;
  2338. first=smalltalk.send(self, "_truncated", []);
  2339. last=((($receiver = smalltalk.send(aNumber, "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));
  2340. count=(1);
  2341. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2342. 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)]));})]);
  2343. return array;
  2344. return self;},
  2345. args: ["aNumber"],
  2346. 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'),
  2347. messageSends: ["truncated", unescape("+"), "new", "timesRepeat:", unescape("-"), "at:put:"],
  2348. referencedClasses: ["Array"]
  2349. }),
  2350. smalltalk.Number);
  2351. smalltalk.addMethod(
  2352. unescape('_timesRepeat_'),
  2353. smalltalk.method({
  2354. selector: unescape('timesRepeat%3A'),
  2355. category: 'enumerating',
  2356. fn: function (aBlock){
  2357. var self=this;
  2358. var integer=nil;
  2359. var count=nil;
  2360. integer=smalltalk.send(self, "_truncated", []);
  2361. count=(1);
  2362. (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)]));})()}})();
  2363. return self;},
  2364. args: ["aBlock"],
  2365. 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'),
  2366. messageSends: ["truncated", "whileFalse:", unescape("%3E"), "value", unescape("+")],
  2367. referencedClasses: []
  2368. }),
  2369. smalltalk.Number);
  2370. smalltalk.addMethod(
  2371. unescape('_to_do_'),
  2372. smalltalk.method({
  2373. selector: unescape('to%3Ado%3A'),
  2374. category: 'enumerating',
  2375. fn: function (stop, aBlock){
  2376. var self=this;
  2377. var nextValue=nil;
  2378. nextValue=self;
  2379. (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)]));})()}})();
  2380. return self;},
  2381. args: ["stop", "aBlock"],
  2382. 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'),
  2383. messageSends: ["whileTrue:", unescape("%3C%3D"), "value:", unescape("+")],
  2384. referencedClasses: []
  2385. }),
  2386. smalltalk.Number);
  2387. smalltalk.addMethod(
  2388. unescape('_asString'),
  2389. smalltalk.method({
  2390. selector: unescape('asString'),
  2391. category: 'converting',
  2392. fn: function (){
  2393. var self=this;
  2394. return smalltalk.send(self, "_printString", []);
  2395. return self;},
  2396. args: [],
  2397. source: unescape('asString%0A%09%5Eself%20printString'),
  2398. messageSends: ["printString"],
  2399. referencedClasses: []
  2400. }),
  2401. smalltalk.Number);
  2402. smalltalk.addMethod(
  2403. unescape('_asJavascript'),
  2404. smalltalk.method({
  2405. selector: unescape('asJavascript'),
  2406. category: 'converting',
  2407. fn: function (){
  2408. var self=this;
  2409. return smalltalk.send(smalltalk.send(unescape("%28"), "__comma", [smalltalk.send(self, "_printString", [])]), "__comma", [unescape("%29")]);
  2410. return self;},
  2411. args: [],
  2412. source: unescape('asJavascript%0A%09%5E%27%28%27%2C%20self%20printString%2C%20%27%29%27'),
  2413. messageSends: [unescape("%2C"), "printString"],
  2414. referencedClasses: []
  2415. }),
  2416. smalltalk.Number);
  2417. smalltalk.addMethod(
  2418. unescape('_printString'),
  2419. smalltalk.method({
  2420. selector: unescape('printString'),
  2421. category: 'printing',
  2422. fn: function (){
  2423. var self=this;
  2424. return String(self);
  2425. return self;},
  2426. args: [],
  2427. source: unescape('printString%0A%09%3Creturn%20String%28self%29%3E'),
  2428. messageSends: [],
  2429. referencedClasses: []
  2430. }),
  2431. smalltalk.Number);
  2432. smalltalk.addMethod(
  2433. unescape('_isNumber'),
  2434. smalltalk.method({
  2435. selector: unescape('isNumber'),
  2436. category: 'testing',
  2437. fn: function (){
  2438. var self=this;
  2439. return true;
  2440. return self;},
  2441. args: [],
  2442. source: unescape('isNumber%0A%09%5Etrue'),
  2443. messageSends: [],
  2444. referencedClasses: []
  2445. }),
  2446. smalltalk.Number);
  2447. smalltalk.addMethod(
  2448. unescape('_atRandom'),
  2449. smalltalk.method({
  2450. selector: unescape('atRandom'),
  2451. category: 'converting',
  2452. fn: function (){
  2453. var self=this;
  2454. 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)]));
  2455. return self;},
  2456. args: [],
  2457. source: unescape('atRandom%0A%20%20%20%20%5E%28Random%20new%20next%20*%20self%29%20truncated%20+%201'),
  2458. messageSends: [unescape("+"), "truncated", unescape("*"), "next", "new"],
  2459. referencedClasses: ["Random"]
  2460. }),
  2461. smalltalk.Number);
  2462. smalltalk.addMethod(
  2463. unescape('__at'),
  2464. smalltalk.method({
  2465. selector: unescape('@'),
  2466. category: 'converting',
  2467. fn: function (aNumber){
  2468. var self=this;
  2469. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, aNumber]);
  2470. return self;},
  2471. args: ["aNumber"],
  2472. source: unescape('@%20aNumber%0A%09%5EPoint%20x%3A%20self%20y%3A%20aNumber'),
  2473. messageSends: ["x:y:"],
  2474. referencedClasses: ["Point"]
  2475. }),
  2476. smalltalk.Number);
  2477. smalltalk.addMethod(
  2478. unescape('_asPoint'),
  2479. smalltalk.method({
  2480. selector: unescape('asPoint'),
  2481. category: 'converting',
  2482. fn: function (){
  2483. var self=this;
  2484. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, self]);
  2485. return self;},
  2486. args: [],
  2487. source: unescape('asPoint%0A%09%5EPoint%20x%3A%20self%20y%3A%20self'),
  2488. messageSends: ["x:y:"],
  2489. referencedClasses: ["Point"]
  2490. }),
  2491. smalltalk.Number);
  2492. smalltalk.addMethod(
  2493. unescape('_clearInterval'),
  2494. smalltalk.method({
  2495. selector: unescape('clearInterval'),
  2496. category: 'timeouts/intervals',
  2497. fn: function (){
  2498. var self=this;
  2499. clearInterval(Number(self));
  2500. return self;},
  2501. args: [],
  2502. source: unescape('clearInterval%0A%09%3CclearInterval%28Number%28self%29%29%3E'),
  2503. messageSends: [],
  2504. referencedClasses: []
  2505. }),
  2506. smalltalk.Number);
  2507. smalltalk.addMethod(
  2508. unescape('_asJSONObject'),
  2509. smalltalk.method({
  2510. selector: unescape('asJSONObject'),
  2511. category: 'converting',
  2512. fn: function (){
  2513. var self=this;
  2514. return self;
  2515. return self;},
  2516. args: [],
  2517. source: unescape('asJSONObject%0A%09%5Eself'),
  2518. messageSends: [],
  2519. referencedClasses: []
  2520. }),
  2521. smalltalk.Number);
  2522. smalltalk.addMethod(
  2523. unescape('_clearTimeout'),
  2524. smalltalk.method({
  2525. selector: unescape('clearTimeout'),
  2526. category: 'timeouts/intervals',
  2527. fn: function (){
  2528. var self=this;
  2529. clearTimeout(Number(self));
  2530. return self;},
  2531. args: [],
  2532. source: unescape('clearTimeout%0A%09%3CclearTimeout%28Number%28self%29%29%3E'),
  2533. messageSends: [],
  2534. referencedClasses: []
  2535. }),
  2536. smalltalk.Number);
  2537. smalltalk.addMethod(
  2538. unescape('_even'),
  2539. smalltalk.method({
  2540. selector: unescape('even'),
  2541. category: 'testing',
  2542. fn: function (){
  2543. var self=this;
  2544. return smalltalk.send((0), "__eq", [smalltalk.send(self, "_\\\\", [(2)])]);
  2545. return self;},
  2546. args: [],
  2547. source: unescape('even%0A%09%5E%200%20%3D%20%28self%20%5C%5C%202%29'),
  2548. messageSends: [unescape("%3D"), unescape("%5C%5C%5C%5C")],
  2549. referencedClasses: []
  2550. }),
  2551. smalltalk.Number);
  2552. smalltalk.addMethod(
  2553. unescape('_odd'),
  2554. smalltalk.method({
  2555. selector: unescape('odd'),
  2556. category: 'testing',
  2557. fn: function (){
  2558. var self=this;
  2559. return smalltalk.send(smalltalk.send(self, "_even", []), "_not", []);
  2560. return self;},
  2561. args: [],
  2562. source: unescape('odd%0A%09%5E%20self%20even%20not'),
  2563. messageSends: ["not", "even"],
  2564. referencedClasses: []
  2565. }),
  2566. smalltalk.Number);
  2567. smalltalk.addMethod(
  2568. unescape('_negated'),
  2569. smalltalk.method({
  2570. selector: unescape('negated'),
  2571. category: 'arithmetic',
  2572. fn: function (){
  2573. var self=this;
  2574. return (0) - self;
  2575. return self;},
  2576. args: [],
  2577. source: unescape('negated%0A%09%5E0%20-%20self'),
  2578. messageSends: [unescape("-")],
  2579. referencedClasses: []
  2580. }),
  2581. smalltalk.Number);
  2582. smalltalk.addMethod(
  2583. unescape('__eq_eq'),
  2584. smalltalk.method({
  2585. selector: unescape('%3D%3D'),
  2586. category: 'comparing',
  2587. fn: function (aNumber){
  2588. var self=this;
  2589. 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}})})();})]));
  2590. return Number(self) === Number(aNumber);
  2591. return self;
  2592. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  2593. args: ["aNumber"],
  2594. 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'),
  2595. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  2596. referencedClasses: []
  2597. }),
  2598. smalltalk.Number);
  2599. smalltalk.addMethod(
  2600. unescape('_printShowingDecimalPlaces_'),
  2601. smalltalk.method({
  2602. selector: unescape('printShowingDecimalPlaces%3A'),
  2603. category: 'printing',
  2604. fn: function (placesDesired){
  2605. var self=this;
  2606. return self.toFixed(placesDesired);
  2607. return self;},
  2608. args: ["placesDesired"],
  2609. source: unescape('printShowingDecimalPlaces%3A%20placesDesired%0A%09%3Creturn%20self.toFixed%28placesDesired%29%3E'),
  2610. messageSends: [],
  2611. referencedClasses: []
  2612. }),
  2613. smalltalk.Number);
  2614. smalltalk.addMethod(
  2615. unescape('_%5C'),
  2616. smalltalk.method({
  2617. selector: unescape('%5C'),
  2618. category: '',
  2619. fn: function (aNumber){
  2620. var self=this;
  2621. return self % aNumber;
  2622. return self;},
  2623. args: ["aNumber"],
  2624. source: unescape(''),
  2625. messageSends: [],
  2626. referencedClasses: []
  2627. }),
  2628. smalltalk.Number);
  2629. smalltalk.addMethod(
  2630. unescape('_to_by_'),
  2631. smalltalk.method({
  2632. selector: unescape('to%3Aby%3A'),
  2633. category: 'converting',
  2634. fn: function (stop, step){
  2635. var self=this;
  2636. var array=nil;
  2637. var value=nil;
  2638. var pos=nil;
  2639. value=self;
  2640. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2641. pos=(1);
  2642. ((($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")]);})]));
  2643. ((($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]));})()}})();})]));
  2644. return array;
  2645. return self;},
  2646. args: ["stop", "step"],
  2647. 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'),
  2648. messageSends: ["new", "ifTrue:", unescape("%3D"), "error:", "ifTrue:ifFalse:", unescape("%3C"), "whileTrue:", unescape("%3E%3D"), "at:put:", unescape("+"), unescape("%3C%3D")],
  2649. referencedClasses: ["Array"]
  2650. }),
  2651. smalltalk.Number);
  2652. smalltalk.addMethod(
  2653. unescape('_to_by_do_'),
  2654. smalltalk.method({
  2655. selector: unescape('to%3Aby%3Ado%3A'),
  2656. category: 'enumerating',
  2657. fn: function (stop, step, aBlock){
  2658. var self=this;
  2659. var value=nil;
  2660. value=self;
  2661. ((($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")]);})]));
  2662. ((($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]));})()}})();})]));
  2663. return self;},
  2664. args: ["stop", "step", "aBlock"],
  2665. 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'),
  2666. messageSends: ["ifTrue:", unescape("%3D"), "error:", "ifTrue:ifFalse:", unescape("%3C"), "whileTrue:", unescape("%3E%3D"), "value:", unescape("+"), unescape("%3C%3D")],
  2667. referencedClasses: []
  2668. }),
  2669. smalltalk.Number);
  2670. smalltalk.addMethod(
  2671. unescape('_deepCopy'),
  2672. smalltalk.method({
  2673. selector: unescape('deepCopy'),
  2674. category: 'copying',
  2675. fn: function (){
  2676. var self=this;
  2677. return smalltalk.send(self, "_copy", []);
  2678. return self;},
  2679. args: [],
  2680. source: unescape('deepCopy%0A%09%5Eself%20copy'),
  2681. messageSends: ["copy"],
  2682. referencedClasses: []
  2683. }),
  2684. smalltalk.Number);
  2685. smalltalk.addMethod(
  2686. unescape('_copy'),
  2687. smalltalk.method({
  2688. selector: unescape('copy'),
  2689. category: 'copying',
  2690. fn: function (){
  2691. var self=this;
  2692. return self;
  2693. return self;},
  2694. args: [],
  2695. source: unescape('copy%0A%09%5Eself'),
  2696. messageSends: [],
  2697. referencedClasses: []
  2698. }),
  2699. smalltalk.Number);
  2700. smalltalk.addMethod(
  2701. unescape('_%5C%5C'),
  2702. smalltalk.method({
  2703. selector: unescape('%5C%5C'),
  2704. category: 'arithmetic',
  2705. fn: function (aNumber){
  2706. var self=this;
  2707. return self % aNumber;
  2708. return self;},
  2709. args: ["aNumber"],
  2710. source: unescape('%5C%5C%20aNumber%0A%09%3Creturn%20self%20%25%20aNumber%3E'),
  2711. messageSends: [],
  2712. referencedClasses: []
  2713. }),
  2714. smalltalk.Number);
  2715. smalltalk.addMethod(
  2716. unescape('_sqrt'),
  2717. smalltalk.method({
  2718. selector: unescape('sqrt'),
  2719. category: 'arithmetic',
  2720. fn: function (){
  2721. var self=this;
  2722. return Math.sqrt(self);
  2723. return self;},
  2724. args: [],
  2725. source: unescape('sqrt%0A%09%3Creturn%20Math.sqrt%28self%29%3E'),
  2726. messageSends: [],
  2727. referencedClasses: []
  2728. }),
  2729. smalltalk.Number);
  2730. smalltalk.addMethod(
  2731. unescape('_squared'),
  2732. smalltalk.method({
  2733. selector: unescape('squared'),
  2734. category: 'arithmetic',
  2735. fn: function (){
  2736. var self=this;
  2737. return self * self;
  2738. return self;},
  2739. args: [],
  2740. source: unescape('squared%0A%09%5Eself%20*%20self'),
  2741. messageSends: [unescape("*")],
  2742. referencedClasses: []
  2743. }),
  2744. smalltalk.Number);
  2745. smalltalk.addMethod(
  2746. unescape('_pi'),
  2747. smalltalk.method({
  2748. selector: unescape('pi'),
  2749. category: 'instance creation',
  2750. fn: function (){
  2751. var self=this;
  2752. return Math.PI;
  2753. return self;},
  2754. args: [],
  2755. source: unescape('pi%0A%09%3Creturn%20Math.PI%3E'),
  2756. messageSends: [],
  2757. referencedClasses: []
  2758. }),
  2759. smalltalk.Number.klass);
  2760. smalltalk.addClass('BlockClosure', smalltalk.Object, [], 'Kernel');
  2761. smalltalk.addMethod(
  2762. unescape('_compiledSource'),
  2763. smalltalk.method({
  2764. selector: unescape('compiledSource'),
  2765. category: 'accessing',
  2766. fn: function (){
  2767. var self=this;
  2768. return self.toString();
  2769. return self;},
  2770. args: [],
  2771. source: unescape('compiledSource%0A%09%3Creturn%20self.toString%28%29%3E'),
  2772. messageSends: [],
  2773. referencedClasses: []
  2774. }),
  2775. smalltalk.BlockClosure);
  2776. smalltalk.addMethod(
  2777. unescape('_whileTrue_'),
  2778. smalltalk.method({
  2779. selector: unescape('whileTrue%3A'),
  2780. category: 'controlling',
  2781. fn: function (aBlock){
  2782. var self=this;
  2783. while(self()) {aBlock()};
  2784. return self;},
  2785. args: ["aBlock"],
  2786. 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'),
  2787. messageSends: [],
  2788. referencedClasses: []
  2789. }),
  2790. smalltalk.BlockClosure);
  2791. smalltalk.addMethod(
  2792. unescape('_whileFalse_'),
  2793. smalltalk.method({
  2794. selector: unescape('whileFalse%3A'),
  2795. category: 'controlling',
  2796. fn: function (aBlock){
  2797. var self=this;
  2798. while(!self()) {aBlock()};
  2799. return self;},
  2800. args: ["aBlock"],
  2801. 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'),
  2802. messageSends: [],
  2803. referencedClasses: []
  2804. }),
  2805. smalltalk.BlockClosure);
  2806. smalltalk.addMethod(
  2807. unescape('_value'),
  2808. smalltalk.method({
  2809. selector: unescape('value'),
  2810. category: 'evaluating',
  2811. fn: function (){
  2812. var self=this;
  2813. return self();;
  2814. return self;},
  2815. args: [],
  2816. source: unescape('value%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28%29%3B%3E'),
  2817. messageSends: [],
  2818. referencedClasses: []
  2819. }),
  2820. smalltalk.BlockClosure);
  2821. smalltalk.addMethod(
  2822. unescape('_value_'),
  2823. smalltalk.method({
  2824. selector: unescape('value%3A'),
  2825. category: 'evaluating',
  2826. fn: function (anArg){
  2827. var self=this;
  2828. return self(anArg);;
  2829. return self;},
  2830. args: ["anArg"],
  2831. source: unescape('value%3A%20anArg%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28anArg%29%3B%3E'),
  2832. messageSends: [],
  2833. referencedClasses: []
  2834. }),
  2835. smalltalk.BlockClosure);
  2836. smalltalk.addMethod(
  2837. unescape('_value_value_'),
  2838. smalltalk.method({
  2839. selector: unescape('value%3Avalue%3A'),
  2840. category: 'evaluating',
  2841. fn: function (firstArg, secondArg){
  2842. var self=this;
  2843. return self(firstArg, secondArg);;
  2844. return self;},
  2845. args: ["firstArg", "secondArg"],
  2846. 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'),
  2847. messageSends: [],
  2848. referencedClasses: []
  2849. }),
  2850. smalltalk.BlockClosure);
  2851. smalltalk.addMethod(
  2852. unescape('_value_value_value_'),
  2853. smalltalk.method({
  2854. selector: unescape('value%3Avalue%3Avalue%3A'),
  2855. category: 'evaluating',
  2856. fn: function (firstArg, secondArg, thirdArg){
  2857. var self=this;
  2858. return self(firstArg, secondArg, thirdArg);;
  2859. return self;},
  2860. args: ["firstArg", "secondArg", "thirdArg"],
  2861. 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'),
  2862. messageSends: [],
  2863. referencedClasses: []
  2864. }),
  2865. smalltalk.BlockClosure);
  2866. smalltalk.addMethod(
  2867. unescape('_valueWithPossibleArguments_'),
  2868. smalltalk.method({
  2869. selector: unescape('valueWithPossibleArguments%3A'),
  2870. category: 'evaluating',
  2871. fn: function (aCollection){
  2872. var self=this;
  2873. return self.apply(null, aCollection);;
  2874. return self;},
  2875. args: ["aCollection"],
  2876. source: unescape('valueWithPossibleArguments%3A%20aCollection%0A%09%3Creturn%20self.apply%28null%2C%20aCollection%29%3B%3E'),
  2877. messageSends: [],
  2878. referencedClasses: []
  2879. }),
  2880. smalltalk.BlockClosure);
  2881. smalltalk.addMethod(
  2882. unescape('_on_do_'),
  2883. smalltalk.method({
  2884. selector: unescape('on%3Ado%3A'),
  2885. category: 'error handling',
  2886. fn: function (anErrorClass, aBlock){
  2887. var self=this;
  2888. 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", []);})]));})]);
  2889. return self;},
  2890. args: ["anErrorClass", "aBlock"],
  2891. 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'),
  2892. messageSends: ["try:catch:", "ifTrue:ifFalse:", "isKindOf:", "value:", "signal"],
  2893. referencedClasses: []
  2894. }),
  2895. smalltalk.BlockClosure);
  2896. smalltalk.addMethod(
  2897. unescape('_valueWithTimeout_'),
  2898. smalltalk.method({
  2899. selector: unescape('valueWithTimeout%3A'),
  2900. category: 'timeout/interval',
  2901. fn: function (aNumber){
  2902. var self=this;
  2903. return setTimeout(self, aNumber);
  2904. return self;},
  2905. args: ["aNumber"],
  2906. source: unescape('valueWithTimeout%3A%20aNumber%0A%09%3Creturn%20setTimeout%28self%2C%20aNumber%29%3E'),
  2907. messageSends: [],
  2908. referencedClasses: []
  2909. }),
  2910. smalltalk.BlockClosure);
  2911. smalltalk.addMethod(
  2912. unescape('_valueWithInterval_'),
  2913. smalltalk.method({
  2914. selector: unescape('valueWithInterval%3A'),
  2915. category: 'timeout/interval',
  2916. fn: function (aNumber){
  2917. var self=this;
  2918. return setInterval(self, aNumber);
  2919. return self;},
  2920. args: ["aNumber"],
  2921. source: unescape('valueWithInterval%3A%20aNumber%0A%09%3Creturn%20setInterval%28self%2C%20aNumber%29%3E'),
  2922. messageSends: [],
  2923. referencedClasses: []
  2924. }),
  2925. smalltalk.BlockClosure);
  2926. smalltalk.addMethod(
  2927. unescape('_whileFalse'),
  2928. smalltalk.method({
  2929. selector: unescape('whileFalse'),
  2930. category: 'controlling',
  2931. fn: function (){
  2932. var self=this;
  2933. smalltalk.send(self, "_whileFalse_", [(function(){return nil;})]);
  2934. return self;},
  2935. args: [],
  2936. source: unescape('whileFalse%0A%09%22inlined%20in%20the%20Compiler%22%0A%09self%20whileFalse%3A%20%5B%5D'),
  2937. messageSends: ["whileFalse:"],
  2938. referencedClasses: []
  2939. }),
  2940. smalltalk.BlockClosure);
  2941. smalltalk.addMethod(
  2942. unescape('_whileTrue'),
  2943. smalltalk.method({
  2944. selector: unescape('whileTrue'),
  2945. category: 'controlling',
  2946. fn: function (){
  2947. var self=this;
  2948. smalltalk.send(self, "_whileTrue_", [(function(){return nil;})]);
  2949. return self;},
  2950. args: [],
  2951. source: unescape('whileTrue%0A%09%22inlined%20in%20the%20Compiler%22%0A%09self%20whileTrue%3A%20%5B%5D'),
  2952. messageSends: ["whileTrue:"],
  2953. referencedClasses: []
  2954. }),
  2955. smalltalk.BlockClosure);
  2956. smalltalk.addMethod(
  2957. unescape('_new'),
  2958. smalltalk.method({
  2959. selector: unescape('new'),
  2960. category: 'evaluating',
  2961. fn: function (){
  2962. var self=this;
  2963. return new self();
  2964. return self;},
  2965. args: [],
  2966. 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'),
  2967. messageSends: [],
  2968. referencedClasses: []
  2969. }),
  2970. smalltalk.BlockClosure);
  2971. smalltalk.addMethod(
  2972. unescape('_applyTo_arguments_'),
  2973. smalltalk.method({
  2974. selector: unescape('applyTo%3Aarguments%3A'),
  2975. category: 'evaluating',
  2976. fn: function (anObject, aCollection){
  2977. var self=this;
  2978. return self.apply(anObject, aCollection);
  2979. return self;},
  2980. args: ["anObject", "aCollection"],
  2981. source: unescape('applyTo%3A%20anObject%20arguments%3A%20aCollection%0A%09%3Creturn%20self.apply%28anObject%2C%20aCollection%29%3E'),
  2982. messageSends: [],
  2983. referencedClasses: []
  2984. }),
  2985. smalltalk.BlockClosure);
  2986. smalltalk.addMethod(
  2987. unescape('_timeToRun'),
  2988. smalltalk.method({
  2989. selector: unescape('timeToRun'),
  2990. category: 'evaluating',
  2991. fn: function (){
  2992. var self=this;
  2993. return smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [self]);
  2994. return self;},
  2995. args: [],
  2996. source: unescape('timeToRun%0A%09%22Answer%20the%20number%20of%20milliseconds%20taken%20to%20execute%20this%20block.%22%0A%0A%09%5E%20Date%20millisecondsToRun%3A%20self'),
  2997. messageSends: ["millisecondsToRun:"],
  2998. referencedClasses: ["Date"]
  2999. }),
  3000. smalltalk.BlockClosure);
  3001. smalltalk.addMethod(
  3002. unescape('_numArgs'),
  3003. smalltalk.method({
  3004. selector: unescape('numArgs'),
  3005. category: 'accessing',
  3006. fn: function (){
  3007. var self=this;
  3008. return self.length;
  3009. return self;},
  3010. args: [],
  3011. source: unescape('numArgs%0A%09%3Creturn%20self.length%3E'),
  3012. messageSends: [],
  3013. referencedClasses: []
  3014. }),
  3015. smalltalk.BlockClosure);
  3016. smalltalk.addMethod(
  3017. unescape('_ensure_'),
  3018. smalltalk.method({
  3019. selector: unescape('ensure%3A'),
  3020. category: 'evaluating',
  3021. fn: function (aBlock){
  3022. var self=this;
  3023. var success=nil;
  3024. success=false;
  3025. smalltalk.send((function(){smalltalk.send(self, "_value", []);success=true;return smalltalk.send(aBlock, "_value", []);}), "_on_do_", [(smalltalk.Error || Error), (function(ex){((($receiver = success).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(aBlock, "_value", []);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(aBlock, "_value", []);})]));return smalltalk.send(ex, "_signal", []);})]);
  3026. return self;},
  3027. args: ["aBlock"],
  3028. source: unescape('ensure%3A%20aBlock%0A%09%7C%20success%20%7C%0A%09success%20%3A%3D%20false.%0A%09%5Bself%20value.%20success%20%3A%3D%20true.%20aBlock%20value%5D%0A%09%09on%3A%20Error%0A%09%09do%3A%20%5B%3Aex%20%7C%0A%09%09%09success%20ifFalse%3A%20%5BaBlock%20value%5D.%0A%09%09%09ex%20signal%5D'),
  3029. messageSends: ["on:do:", "value", "ifFalse:", "signal"],
  3030. referencedClasses: ["Error"]
  3031. }),
  3032. smalltalk.BlockClosure);
  3033. smalltalk.addClass('Boolean', smalltalk.Object, [], 'Kernel');
  3034. smalltalk.addMethod(
  3035. unescape('__eq'),
  3036. smalltalk.method({
  3037. selector: unescape('%3D'),
  3038. category: 'comparing',
  3039. fn: function (aBoolean){
  3040. var self=this;
  3041. 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}})})();})]));
  3042. return Boolean(self == true) == aBoolean;
  3043. return self;
  3044. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  3045. args: ["aBoolean"],
  3046. 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'),
  3047. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  3048. referencedClasses: []
  3049. }),
  3050. smalltalk.Boolean);
  3051. smalltalk.addMethod(
  3052. unescape('_shallowCopy'),
  3053. smalltalk.method({
  3054. selector: unescape('shallowCopy'),
  3055. category: 'copying',
  3056. fn: function (){
  3057. var self=this;
  3058. return self;
  3059. return self;},
  3060. args: [],
  3061. source: unescape('shallowCopy%0A%09%5Eself'),
  3062. messageSends: [],
  3063. referencedClasses: []
  3064. }),
  3065. smalltalk.Boolean);
  3066. smalltalk.addMethod(
  3067. unescape('_deepCopy'),
  3068. smalltalk.method({
  3069. selector: unescape('deepCopy'),
  3070. category: 'copying',
  3071. fn: function (){
  3072. var self=this;
  3073. return self;
  3074. return self;},
  3075. args: [],
  3076. source: unescape('deepCopy%0A%09%5Eself'),
  3077. messageSends: [],
  3078. referencedClasses: []
  3079. }),
  3080. smalltalk.Boolean);
  3081. smalltalk.addMethod(
  3082. unescape('_ifTrue_'),
  3083. smalltalk.method({
  3084. selector: unescape('ifTrue%3A'),
  3085. category: 'controlling',
  3086. fn: function (aBlock){
  3087. var self=this;
  3088. return smalltalk.send(self, "_ifTrue_ifFalse_", [aBlock, (function(){return nil;})]);
  3089. return self;},
  3090. args: ["aBlock"],
  3091. source: unescape('ifTrue%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20aBlock%20ifFalse%3A%20%5B%5D'),
  3092. messageSends: ["ifTrue:ifFalse:"],
  3093. referencedClasses: []
  3094. }),
  3095. smalltalk.Boolean);
  3096. smalltalk.addMethod(
  3097. unescape('_ifFalse_'),
  3098. smalltalk.method({
  3099. selector: unescape('ifFalse%3A'),
  3100. category: 'controlling',
  3101. fn: function (aBlock){
  3102. var self=this;
  3103. return smalltalk.send(self, "_ifTrue_ifFalse_", [(function(){return nil;}), aBlock]);
  3104. return self;},
  3105. args: ["aBlock"],
  3106. source: unescape('ifFalse%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20%5B%5D%20ifFalse%3A%20aBlock'),
  3107. messageSends: ["ifTrue:ifFalse:"],
  3108. referencedClasses: []
  3109. }),
  3110. smalltalk.Boolean);
  3111. smalltalk.addMethod(
  3112. unescape('_ifFalse_ifTrue_'),
  3113. smalltalk.method({
  3114. selector: unescape('ifFalse%3AifTrue%3A'),
  3115. category: 'controlling',
  3116. fn: function (aBlock, anotherBlock){
  3117. var self=this;
  3118. return smalltalk.send(self, "_ifTrue_ifFalse_", [anotherBlock, aBlock]);
  3119. return self;},
  3120. args: ["aBlock", "anotherBlock"],
  3121. source: unescape('ifFalse%3A%20aBlock%20ifTrue%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20anotherBlock%20ifFalse%3A%20aBlock'),
  3122. messageSends: ["ifTrue:ifFalse:"],
  3123. referencedClasses: []
  3124. }),
  3125. smalltalk.Boolean);
  3126. smalltalk.addMethod(
  3127. unescape('_ifTrue_ifFalse_'),
  3128. smalltalk.method({
  3129. selector: unescape('ifTrue%3AifFalse%3A'),
  3130. category: 'controlling',
  3131. fn: function (aBlock, anotherBlock){
  3132. var self=this;
  3133. if(self == true) {
  3134. return aBlock();
  3135. } else {
  3136. return anotherBlock();
  3137. }
  3138. ;
  3139. return self;},
  3140. args: ["aBlock", "anotherBlock"],
  3141. 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'),
  3142. messageSends: [],
  3143. referencedClasses: []
  3144. }),
  3145. smalltalk.Boolean);
  3146. smalltalk.addMethod(
  3147. unescape('_and_'),
  3148. smalltalk.method({
  3149. selector: unescape('and%3A'),
  3150. category: 'controlling',
  3151. fn: function (aBlock){
  3152. var self=this;
  3153. return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [aBlock, (function(){return false;})]);
  3154. return self;},
  3155. args: ["aBlock"],
  3156. 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'),
  3157. messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
  3158. referencedClasses: []
  3159. }),
  3160. smalltalk.Boolean);
  3161. smalltalk.addMethod(
  3162. unescape('_or_'),
  3163. smalltalk.method({
  3164. selector: unescape('or%3A'),
  3165. category: 'controlling',
  3166. fn: function (aBlock){
  3167. var self=this;
  3168. return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [(function(){return true;}), aBlock]);
  3169. return self;},
  3170. args: ["aBlock"],
  3171. 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'),
  3172. messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
  3173. referencedClasses: []
  3174. }),
  3175. smalltalk.Boolean);
  3176. smalltalk.addMethod(
  3177. unescape('_not'),
  3178. smalltalk.method({
  3179. selector: unescape('not'),
  3180. category: 'controlling',
  3181. fn: function (){
  3182. var self=this;
  3183. return smalltalk.send(self, "__eq", [false]);
  3184. return self;},
  3185. args: [],
  3186. source: unescape('not%0A%09%5Eself%20%3D%20false'),
  3187. messageSends: [unescape("%3D")],
  3188. referencedClasses: []
  3189. }),
  3190. smalltalk.Boolean);
  3191. smalltalk.addMethod(
  3192. unescape('_printString'),
  3193. smalltalk.method({
  3194. selector: unescape('printString'),
  3195. category: 'printing',
  3196. fn: function (){
  3197. var self=this;
  3198. return self.toString();
  3199. return self;},
  3200. args: [],
  3201. source: unescape('printString%0A%09%3Creturn%20self.toString%28%29%3E'),
  3202. messageSends: [],
  3203. referencedClasses: []
  3204. }),
  3205. smalltalk.Boolean);
  3206. smalltalk.addMethod(
  3207. unescape('_asJSONObject'),
  3208. smalltalk.method({
  3209. selector: unescape('asJSONObject'),
  3210. category: 'converting',
  3211. fn: function (){
  3212. var self=this;
  3213. return self;
  3214. return self;},
  3215. args: [],
  3216. source: unescape('asJSONObject%0A%09%5Eself'),
  3217. messageSends: [],
  3218. referencedClasses: []
  3219. }),
  3220. smalltalk.Boolean);
  3221. smalltalk.addMethod(
  3222. unescape('_%26'),
  3223. smalltalk.method({
  3224. selector: unescape('%26'),
  3225. category: 'controlling',
  3226. fn: function (aBoolean){
  3227. var self=this;
  3228. if(self == true) {
  3229. return aBoolean;
  3230. } else {
  3231. return false;
  3232. }
  3233. ;
  3234. return self;},
  3235. args: ["aBoolean"],
  3236. 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'),
  3237. messageSends: [],
  3238. referencedClasses: []
  3239. }),
  3240. smalltalk.Boolean);
  3241. smalltalk.addMethod(
  3242. unescape('_%7C'),
  3243. smalltalk.method({
  3244. selector: unescape('%7C'),
  3245. category: 'controlling',
  3246. fn: function (aBoolean){
  3247. var self=this;
  3248. if(self == true) {
  3249. return true;
  3250. } else {
  3251. return aBoolean;
  3252. }
  3253. ;
  3254. return self;},
  3255. args: ["aBoolean"],
  3256. 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'),
  3257. messageSends: [],
  3258. referencedClasses: []
  3259. }),
  3260. smalltalk.Boolean);
  3261. smalltalk.addMethod(
  3262. unescape('__eq_eq'),
  3263. smalltalk.method({
  3264. selector: unescape('%3D%3D'),
  3265. category: 'comparing',
  3266. fn: function (aBoolean){
  3267. var self=this;
  3268. 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}})})();})]));
  3269. return Boolean(self == true) === Boolean(aBoolean == true);
  3270. return self;
  3271. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  3272. args: ["aBoolean"],
  3273. 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'),
  3274. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  3275. referencedClasses: []
  3276. }),
  3277. smalltalk.Boolean);
  3278. smalltalk.addClass('Date', smalltalk.Object, [], 'Kernel');
  3279. smalltalk.Date.comment=unescape('The%20Date%20class%20is%20used%20to%20work%20with%20dates%20and%20times.')
  3280. smalltalk.addMethod(
  3281. unescape('_year'),
  3282. smalltalk.method({
  3283. selector: unescape('year'),
  3284. category: 'accessing',
  3285. fn: function (){
  3286. var self=this;
  3287. return self.getFullYear();
  3288. return self;},
  3289. args: [],
  3290. source: unescape('year%0A%09%3Creturn%20self.getFullYear%28%29%3E'),
  3291. messageSends: [],
  3292. referencedClasses: []
  3293. }),
  3294. smalltalk.Date);
  3295. smalltalk.addMethod(
  3296. unescape('_month'),
  3297. smalltalk.method({
  3298. selector: unescape('month'),
  3299. category: 'accessing',
  3300. fn: function (){
  3301. var self=this;
  3302. return self.getMonth() + 1;
  3303. return self;},
  3304. args: [],
  3305. source: unescape('month%0A%09%3Creturn%20self.getMonth%28%29%20+%201%3E'),
  3306. messageSends: [],
  3307. referencedClasses: []
  3308. }),
  3309. smalltalk.Date);
  3310. smalltalk.addMethod(
  3311. unescape('_month_'),
  3312. smalltalk.method({
  3313. selector: unescape('month%3A'),
  3314. category: 'accessing',
  3315. fn: function (aNumber){
  3316. var self=this;
  3317. self.setMonth(aNumber - 1);
  3318. return self;},
  3319. args: ["aNumber"],
  3320. source: unescape('month%3A%20aNumber%0A%09%3Cself.setMonth%28aNumber%20-%201%29%3E'),
  3321. messageSends: [],
  3322. referencedClasses: []
  3323. }),
  3324. smalltalk.Date);
  3325. smalltalk.addMethod(
  3326. unescape('_day'),
  3327. smalltalk.method({
  3328. selector: unescape('day'),
  3329. category: 'accessing',
  3330. fn: function (){
  3331. var self=this;
  3332. return smalltalk.send(self, "_dayOfWeek", []);
  3333. return self;},
  3334. args: [],
  3335. source: unescape('day%0A%09%5Eself%20dayOfWeek'),
  3336. messageSends: ["dayOfWeek"],
  3337. referencedClasses: []
  3338. }),
  3339. smalltalk.Date);
  3340. smalltalk.addMethod(
  3341. unescape('_dayOfWeek'),
  3342. smalltalk.method({
  3343. selector: unescape('dayOfWeek'),
  3344. category: 'accessing',
  3345. fn: function (){
  3346. var self=this;
  3347. return self.getDay() + 1;
  3348. return self;},
  3349. args: [],
  3350. source: unescape('dayOfWeek%0A%09%3Creturn%20self.getDay%28%29%20+%201%3E'),
  3351. messageSends: [],
  3352. referencedClasses: []
  3353. }),
  3354. smalltalk.Date);
  3355. smalltalk.addMethod(
  3356. unescape('_dayOfWeek_'),
  3357. smalltalk.method({
  3358. selector: unescape('dayOfWeek%3A'),
  3359. category: 'accessing',
  3360. fn: function (aNumber){
  3361. var self=this;
  3362. return self.setDay(aNumber - 1);
  3363. return self;},
  3364. args: ["aNumber"],
  3365. source: unescape('dayOfWeek%3A%20aNumber%0A%09%3Creturn%20self.setDay%28aNumber%20-%201%29%3E'),
  3366. messageSends: [],
  3367. referencedClasses: []
  3368. }),
  3369. smalltalk.Date);
  3370. smalltalk.addMethod(
  3371. unescape('_day_'),
  3372. smalltalk.method({
  3373. selector: unescape('day%3A'),
  3374. category: 'accessing',
  3375. fn: function (aNumber){
  3376. var self=this;
  3377. smalltalk.send(self, "_day_", [aNumber]);
  3378. return self;},
  3379. args: ["aNumber"],
  3380. source: unescape('day%3A%20aNumber%0A%09self%20day%3A%20aNumber'),
  3381. messageSends: ["day:"],
  3382. referencedClasses: []
  3383. }),
  3384. smalltalk.Date);
  3385. smalltalk.addMethod(
  3386. unescape('_year_'),
  3387. smalltalk.method({
  3388. selector: unescape('year%3A'),
  3389. category: 'accessing',
  3390. fn: function (aNumber){
  3391. var self=this;
  3392. self.setFullYear(aNumber);
  3393. return self;},
  3394. args: ["aNumber"],
  3395. source: unescape('year%3A%20aNumber%0A%09%3Cself.setFullYear%28aNumber%29%3E'),
  3396. messageSends: [],
  3397. referencedClasses: []
  3398. }),
  3399. smalltalk.Date);
  3400. smalltalk.addMethod(
  3401. unescape('_dayOfMonth'),
  3402. smalltalk.method({
  3403. selector: unescape('dayOfMonth'),
  3404. category: 'accessing',
  3405. fn: function (){
  3406. var self=this;
  3407. return self.getDate();
  3408. return self;},
  3409. args: [],
  3410. source: unescape('dayOfMonth%0A%09%3Creturn%20self.getDate%28%29%3E'),
  3411. messageSends: [],
  3412. referencedClasses: []
  3413. }),
  3414. smalltalk.Date);
  3415. smalltalk.addMethod(
  3416. unescape('_dayOfMonth_'),
  3417. smalltalk.method({
  3418. selector: unescape('dayOfMonth%3A'),
  3419. category: 'accessing',
  3420. fn: function (aNumber){
  3421. var self=this;
  3422. self.setDate(aNumber);
  3423. return self;},
  3424. args: ["aNumber"],
  3425. source: unescape('dayOfMonth%3A%20aNumber%0A%09%3Cself.setDate%28aNumber%29%3E'),
  3426. messageSends: [],
  3427. referencedClasses: []
  3428. }),
  3429. smalltalk.Date);
  3430. smalltalk.addMethod(
  3431. unescape('_asString'),
  3432. smalltalk.method({
  3433. selector: unescape('asString'),
  3434. category: 'converting',
  3435. fn: function (){
  3436. var self=this;
  3437. return self.toString();
  3438. return self;},
  3439. args: [],
  3440. source: unescape('asString%0A%09%3Creturn%20self.toString%28%29%3E'),
  3441. messageSends: [],
  3442. referencedClasses: []
  3443. }),
  3444. smalltalk.Date);
  3445. smalltalk.addMethod(
  3446. unescape('_printString'),
  3447. smalltalk.method({
  3448. selector: unescape('printString'),
  3449. category: 'printing',
  3450. fn: function (){
  3451. var self=this;
  3452. return smalltalk.send(self, "_asString", []);
  3453. return self;},
  3454. args: [],
  3455. source: unescape('printString%0A%09%5Eself%20asString'),
  3456. messageSends: ["asString"],
  3457. referencedClasses: []
  3458. }),
  3459. smalltalk.Date);
  3460. smalltalk.addMethod(
  3461. unescape('_asMilliseconds'),
  3462. smalltalk.method({
  3463. selector: unescape('asMilliseconds'),
  3464. category: 'converting',
  3465. fn: function (){
  3466. var self=this;
  3467. return smalltalk.send(self, "_time", []);
  3468. return self;},
  3469. args: [],
  3470. source: unescape('asMilliseconds%0A%09%5Eself%20time'),
  3471. messageSends: ["time"],
  3472. referencedClasses: []
  3473. }),
  3474. smalltalk.Date);
  3475. smalltalk.addMethod(
  3476. unescape('_time'),
  3477. smalltalk.method({
  3478. selector: unescape('time'),
  3479. category: 'accessing',
  3480. fn: function (){
  3481. var self=this;
  3482. return self.getTime();
  3483. return self;},
  3484. args: [],
  3485. source: unescape('time%0A%09%3Creturn%20self.getTime%28%29%3E'),
  3486. messageSends: [],
  3487. referencedClasses: []
  3488. }),
  3489. smalltalk.Date);
  3490. smalltalk.addMethod(
  3491. unescape('_time_'),
  3492. smalltalk.method({
  3493. selector: unescape('time%3A'),
  3494. category: 'accessing',
  3495. fn: function (aNumber){
  3496. var self=this;
  3497. self.setTime(aNumber);
  3498. return self;},
  3499. args: ["aNumber"],
  3500. source: unescape('time%3A%20aNumber%0A%09%3Cself.setTime%28aNumber%29%3E'),
  3501. messageSends: [],
  3502. referencedClasses: []
  3503. }),
  3504. smalltalk.Date);
  3505. smalltalk.addMethod(
  3506. unescape('_asDateString'),
  3507. smalltalk.method({
  3508. selector: unescape('asDateString'),
  3509. category: 'converting',
  3510. fn: function (){
  3511. var self=this;
  3512. return self.toDateString();
  3513. return self;},
  3514. args: [],
  3515. source: unescape('asDateString%0A%09%3Creturn%20self.toDateString%28%29%3E'),
  3516. messageSends: [],
  3517. referencedClasses: []
  3518. }),
  3519. smalltalk.Date);
  3520. smalltalk.addMethod(
  3521. unescape('_asTimeString'),
  3522. smalltalk.method({
  3523. selector: unescape('asTimeString'),
  3524. category: 'converting',
  3525. fn: function (){
  3526. var self=this;
  3527. return self.toTimeString();
  3528. return self;},
  3529. args: [],
  3530. source: unescape('asTimeString%0A%09%3Creturn%20self.toTimeString%28%29%3E'),
  3531. messageSends: [],
  3532. referencedClasses: []
  3533. }),
  3534. smalltalk.Date);
  3535. smalltalk.addMethod(
  3536. unescape('_asLocaleString'),
  3537. smalltalk.method({
  3538. selector: unescape('asLocaleString'),
  3539. category: 'converting',
  3540. fn: function (){
  3541. var self=this;
  3542. return self.toLocaleString();
  3543. return self;},
  3544. args: [],
  3545. source: unescape('asLocaleString%0A%09%3Creturn%20self.toLocaleString%28%29%3E'),
  3546. messageSends: [],
  3547. referencedClasses: []
  3548. }),
  3549. smalltalk.Date);
  3550. smalltalk.addMethod(
  3551. unescape('_asNumber'),
  3552. smalltalk.method({
  3553. selector: unescape('asNumber'),
  3554. category: 'converting',
  3555. fn: function (){
  3556. var self=this;
  3557. return smalltalk.send(self, "_asMilliseconds", []);
  3558. return self;},
  3559. args: [],
  3560. source: unescape('asNumber%0A%09%5Eself%20asMilliseconds'),
  3561. messageSends: ["asMilliseconds"],
  3562. referencedClasses: []
  3563. }),
  3564. smalltalk.Date);
  3565. smalltalk.addMethod(
  3566. unescape('_hours_'),
  3567. smalltalk.method({
  3568. selector: unescape('hours%3A'),
  3569. category: 'accessing',
  3570. fn: function (aNumber){
  3571. var self=this;
  3572. self.setHours(aNumber);
  3573. return self;},
  3574. args: ["aNumber"],
  3575. source: unescape('hours%3A%20aNumber%0A%09%3Cself.setHours%28aNumber%29%3E'),
  3576. messageSends: [],
  3577. referencedClasses: []
  3578. }),
  3579. smalltalk.Date);
  3580. smalltalk.addMethod(
  3581. unescape('_minutes_'),
  3582. smalltalk.method({
  3583. selector: unescape('minutes%3A'),
  3584. category: 'accessing',
  3585. fn: function (aNumber){
  3586. var self=this;
  3587. self.setMinutes(aNumber);
  3588. return self;},
  3589. args: ["aNumber"],
  3590. source: unescape('minutes%3A%20aNumber%0A%09%3Cself.setMinutes%28aNumber%29%3E'),
  3591. messageSends: [],
  3592. referencedClasses: []
  3593. }),
  3594. smalltalk.Date);
  3595. smalltalk.addMethod(
  3596. unescape('_seconds_'),
  3597. smalltalk.method({
  3598. selector: unescape('seconds%3A'),
  3599. category: 'accessing',
  3600. fn: function (aNumber){
  3601. var self=this;
  3602. self.setSeconds(aNumber);
  3603. return self;},
  3604. args: ["aNumber"],
  3605. source: unescape('seconds%3A%20aNumber%0A%09%3Cself.setSeconds%28aNumber%29%3E'),
  3606. messageSends: [],
  3607. referencedClasses: []
  3608. }),
  3609. smalltalk.Date);
  3610. smalltalk.addMethod(
  3611. unescape('_milliseconds_'),
  3612. smalltalk.method({
  3613. selector: unescape('milliseconds%3A'),
  3614. category: 'accessing',
  3615. fn: function (aNumber){
  3616. var self=this;
  3617. self.setMilliseconds(aNumber);
  3618. return self;},
  3619. args: ["aNumber"],
  3620. source: unescape('milliseconds%3A%20aNumber%0A%09%3Cself.setMilliseconds%28aNumber%29%3E'),
  3621. messageSends: [],
  3622. referencedClasses: []
  3623. }),
  3624. smalltalk.Date);
  3625. smalltalk.addMethod(
  3626. unescape('_hours'),
  3627. smalltalk.method({
  3628. selector: unescape('hours'),
  3629. category: 'accessing',
  3630. fn: function (){
  3631. var self=this;
  3632. return self.getHours();
  3633. return self;},
  3634. args: [],
  3635. source: unescape('hours%0A%09%3Creturn%20self.getHours%28%29%3E'),
  3636. messageSends: [],
  3637. referencedClasses: []
  3638. }),
  3639. smalltalk.Date);
  3640. smalltalk.addMethod(
  3641. unescape('_minutes'),
  3642. smalltalk.method({
  3643. selector: unescape('minutes'),
  3644. category: 'accessing',
  3645. fn: function (){
  3646. var self=this;
  3647. return self.getMinutes();
  3648. return self;},
  3649. args: [],
  3650. source: unescape('minutes%0A%09%3Creturn%20self.getMinutes%28%29%3E'),
  3651. messageSends: [],
  3652. referencedClasses: []
  3653. }),
  3654. smalltalk.Date);
  3655. smalltalk.addMethod(
  3656. unescape('_seconds'),
  3657. smalltalk.method({
  3658. selector: unescape('seconds'),
  3659. category: 'accessing',
  3660. fn: function (){
  3661. var self=this;
  3662. return self.getSeconds();
  3663. return self;},
  3664. args: [],
  3665. source: unescape('seconds%0A%09%3Creturn%20self.getSeconds%28%29%3E'),
  3666. messageSends: [],
  3667. referencedClasses: []
  3668. }),
  3669. smalltalk.Date);
  3670. smalltalk.addMethod(
  3671. unescape('_milliseconds'),
  3672. smalltalk.method({
  3673. selector: unescape('milliseconds'),
  3674. category: 'accessing',
  3675. fn: function (){
  3676. var self=this;
  3677. return self.getMilliseconds();
  3678. return self;},
  3679. args: [],
  3680. source: unescape('milliseconds%0A%09%3Creturn%20self.getMilliseconds%28%29%3E'),
  3681. messageSends: [],
  3682. referencedClasses: []
  3683. }),
  3684. smalltalk.Date);
  3685. smalltalk.addMethod(
  3686. unescape('__lt'),
  3687. smalltalk.method({
  3688. selector: unescape('%3C'),
  3689. category: 'comparing',
  3690. fn: function (aDate){
  3691. var self=this;
  3692. return self < aDate;
  3693. return self;},
  3694. args: ["aDate"],
  3695. source: unescape('%3C%20aDate%0A%09%3Creturn%20self%20%3C%20aDate%3E'),
  3696. messageSends: [],
  3697. referencedClasses: []
  3698. }),
  3699. smalltalk.Date);
  3700. smalltalk.addMethod(
  3701. unescape('__gt'),
  3702. smalltalk.method({
  3703. selector: unescape('%3E'),
  3704. category: 'comparing',
  3705. fn: function (aDate){
  3706. var self=this;
  3707. return self > aDate;
  3708. return self;},
  3709. args: ["aDate"],
  3710. source: unescape('%3E%20aDate%0A%09%3Creturn%20self%20%3E%3E%20aDate%3E'),
  3711. messageSends: [],
  3712. referencedClasses: []
  3713. }),
  3714. smalltalk.Date);
  3715. smalltalk.addMethod(
  3716. unescape('__lt_eq'),
  3717. smalltalk.method({
  3718. selector: unescape('%3C%3D'),
  3719. category: 'comparing',
  3720. fn: function (aDate){
  3721. var self=this;
  3722. return self <= aDate;
  3723. return self;},
  3724. args: ["aDate"],
  3725. source: unescape('%3C%3D%20aDate%0A%09%3Creturn%20self%20%3C%3D%20aDate%3E'),
  3726. messageSends: [],
  3727. referencedClasses: []
  3728. }),
  3729. smalltalk.Date);
  3730. smalltalk.addMethod(
  3731. unescape('__gt_eq'),
  3732. smalltalk.method({
  3733. selector: unescape('%3E%3D'),
  3734. category: 'comparing',
  3735. fn: function (aDate){
  3736. var self=this;
  3737. return self >= aDate;
  3738. return self;},
  3739. args: ["aDate"],
  3740. source: unescape('%3E%3D%20aDate%0A%09%3Creturn%20self%20%3E%3E%3D%20aDate%3E'),
  3741. messageSends: [],
  3742. referencedClasses: []
  3743. }),
  3744. smalltalk.Date);
  3745. smalltalk.addMethod(
  3746. unescape('__minus'),
  3747. smalltalk.method({
  3748. selector: unescape('-'),
  3749. category: 'arithmetic',
  3750. fn: function (aDate){
  3751. var self=this;
  3752. return self - aDate;
  3753. return self;},
  3754. args: ["aDate"],
  3755. source: unescape('-%20aDate%0A%09%3Creturn%20self%20-%20aDate%3E'),
  3756. messageSends: [],
  3757. referencedClasses: []
  3758. }),
  3759. smalltalk.Date);
  3760. smalltalk.addMethod(
  3761. unescape('__plus'),
  3762. smalltalk.method({
  3763. selector: unescape('+'),
  3764. category: 'arithmetic',
  3765. fn: function (aDate){
  3766. var self=this;
  3767. return self + aDate;
  3768. return self;},
  3769. args: ["aDate"],
  3770. source: unescape('+%20aDate%0A%09%3Creturn%20self%20+%20aDate%3E'),
  3771. messageSends: [],
  3772. referencedClasses: []
  3773. }),
  3774. smalltalk.Date);
  3775. smalltalk.addMethod(
  3776. unescape('_asJSONObject'),
  3777. smalltalk.method({
  3778. selector: unescape('asJSONObject'),
  3779. category: 'converting',
  3780. fn: function (){
  3781. var self=this;
  3782. return self;
  3783. return self;},
  3784. args: [],
  3785. source: unescape('asJSONObject%0A%09%5Eself'),
  3786. messageSends: [],
  3787. referencedClasses: []
  3788. }),
  3789. smalltalk.Date);
  3790. smalltalk.addMethod(
  3791. unescape('_new_'),
  3792. smalltalk.method({
  3793. selector: unescape('new%3A'),
  3794. category: 'instance creation',
  3795. fn: function (anObject){
  3796. var self=this;
  3797. return new Date(anObject);
  3798. return self;},
  3799. args: ["anObject"],
  3800. source: unescape('new%3A%20anObject%0A%09%3Creturn%20new%20Date%28anObject%29%3E'),
  3801. messageSends: [],
  3802. referencedClasses: []
  3803. }),
  3804. smalltalk.Date.klass);
  3805. smalltalk.addMethod(
  3806. unescape('_fromString_'),
  3807. smalltalk.method({
  3808. selector: unescape('fromString%3A'),
  3809. category: 'instance creation',
  3810. fn: function (aString){
  3811. var self=this;
  3812. return smalltalk.send(self, "_new_", [aString]);
  3813. return self;},
  3814. args: ["aString"],
  3815. 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'),
  3816. messageSends: ["new:"],
  3817. referencedClasses: []
  3818. }),
  3819. smalltalk.Date.klass);
  3820. smalltalk.addMethod(
  3821. unescape('_fromSeconds_'),
  3822. smalltalk.method({
  3823. selector: unescape('fromSeconds%3A'),
  3824. category: 'instance creation',
  3825. fn: function (aNumber){
  3826. var self=this;
  3827. return smalltalk.send(self, "_fromMilliseconds_", [((($receiver = aNumber).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))]);
  3828. return self;},
  3829. args: ["aNumber"],
  3830. source: unescape('fromSeconds%3A%20aNumber%0A%09%5Eself%20fromMilliseconds%3A%20aNumber%20*%201000'),
  3831. messageSends: ["fromMilliseconds:", unescape("*")],
  3832. referencedClasses: []
  3833. }),
  3834. smalltalk.Date.klass);
  3835. smalltalk.addMethod(
  3836. unescape('_fromMilliseconds_'),
  3837. smalltalk.method({
  3838. selector: unescape('fromMilliseconds%3A'),
  3839. category: 'instance creation',
  3840. fn: function (aNumber){
  3841. var self=this;
  3842. return smalltalk.send(self, "_new_", [aNumber]);
  3843. return self;},
  3844. args: ["aNumber"],
  3845. source: unescape('fromMilliseconds%3A%20aNumber%0A%09%5Eself%20new%3A%20aNumber'),
  3846. messageSends: ["new:"],
  3847. referencedClasses: []
  3848. }),
  3849. smalltalk.Date.klass);
  3850. smalltalk.addMethod(
  3851. unescape('_today'),
  3852. smalltalk.method({
  3853. selector: unescape('today'),
  3854. category: 'instance creation',
  3855. fn: function (){
  3856. var self=this;
  3857. return smalltalk.send(self, "_new", []);
  3858. return self;},
  3859. args: [],
  3860. source: unescape('today%0A%09%5Eself%20new'),
  3861. messageSends: ["new"],
  3862. referencedClasses: []
  3863. }),
  3864. smalltalk.Date.klass);
  3865. smalltalk.addMethod(
  3866. unescape('_now'),
  3867. smalltalk.method({
  3868. selector: unescape('now'),
  3869. category: 'instance creation',
  3870. fn: function (){
  3871. var self=this;
  3872. return smalltalk.send(self, "_today", []);
  3873. return self;},
  3874. args: [],
  3875. source: unescape('now%0A%09%5Eself%20today'),
  3876. messageSends: ["today"],
  3877. referencedClasses: []
  3878. }),
  3879. smalltalk.Date.klass);
  3880. smalltalk.addMethod(
  3881. unescape('_millisecondsToRun_'),
  3882. smalltalk.method({
  3883. selector: unescape('millisecondsToRun%3A'),
  3884. category: 'instance creation',
  3885. fn: function (aBlock){
  3886. var self=this;
  3887. var t=nil;
  3888. t=smalltalk.send((smalltalk.Date || Date), "_now", []);
  3889. smalltalk.send(aBlock, "_value", []);
  3890. return ((($receiver = smalltalk.send((smalltalk.Date || Date), "_now", [])).klass === smalltalk.Number) ? $receiver -t : smalltalk.send($receiver, "__minus", [t]));
  3891. return self;},
  3892. args: ["aBlock"],
  3893. 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'),
  3894. messageSends: ["now", "value", unescape("-")],
  3895. referencedClasses: ["Date"]
  3896. }),
  3897. smalltalk.Date.klass);
  3898. smalltalk.addClass('UndefinedObject', smalltalk.Object, [], 'Kernel');
  3899. smalltalk.addMethod(
  3900. unescape('_subclass_instanceVariableNames_'),
  3901. smalltalk.method({
  3902. selector: unescape('subclass%3AinstanceVariableNames%3A'),
  3903. category: 'class creation',
  3904. fn: function (aString, anotherString){
  3905. var self=this;
  3906. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
  3907. return self;},
  3908. args: ["aString", "anotherString"],
  3909. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%20package%3A%20nil'),
  3910. messageSends: ["subclass:instanceVariableNames:package:"],
  3911. referencedClasses: []
  3912. }),
  3913. smalltalk.UndefinedObject);
  3914. smalltalk.addMethod(
  3915. unescape('_subclass_instanceVariableNames_category_'),
  3916. smalltalk.method({
  3917. selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
  3918. category: 'class creation',
  3919. fn: function (aString, aString2, aString3){
  3920. var self=this;
  3921. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  3922. return self;},
  3923. args: ["aString", "aString2", "aString3"],
  3924. 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'),
  3925. messageSends: ["subclass:instanceVariableNames:package:"],
  3926. referencedClasses: []
  3927. }),
  3928. smalltalk.UndefinedObject);
  3929. smalltalk.addMethod(
  3930. unescape('_shallowCopy'),
  3931. smalltalk.method({
  3932. selector: unescape('shallowCopy'),
  3933. category: 'copying',
  3934. fn: function (){
  3935. var self=this;
  3936. return self;
  3937. return self;},
  3938. args: [],
  3939. source: unescape('shallowCopy%0A%09%5Eself'),
  3940. messageSends: [],
  3941. referencedClasses: []
  3942. }),
  3943. smalltalk.UndefinedObject);
  3944. smalltalk.addMethod(
  3945. unescape('_deepCopy'),
  3946. smalltalk.method({
  3947. selector: unescape('deepCopy'),
  3948. category: 'copying',
  3949. fn: function (){
  3950. var self=this;
  3951. return self;
  3952. return self;},
  3953. args: [],
  3954. source: unescape('deepCopy%0A%09%5Eself'),
  3955. messageSends: [],
  3956. referencedClasses: []
  3957. }),
  3958. smalltalk.UndefinedObject);
  3959. smalltalk.addMethod(
  3960. unescape('_ifNil_'),
  3961. smalltalk.method({
  3962. selector: unescape('ifNil%3A'),
  3963. category: 'testing',
  3964. fn: function (aBlock){
  3965. var self=this;
  3966. return smalltalk.send(self, "_ifNil_ifNotNil_", [aBlock, (function(){return nil;})]);
  3967. return self;},
  3968. args: ["aBlock"],
  3969. source: unescape('ifNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifNil%3A%20aBlock%20ifNotNil%3A%20%5B%5D'),
  3970. messageSends: ["ifNil:ifNotNil:"],
  3971. referencedClasses: []
  3972. }),
  3973. smalltalk.UndefinedObject);
  3974. smalltalk.addMethod(
  3975. unescape('_ifNotNil_'),
  3976. smalltalk.method({
  3977. selector: unescape('ifNotNil%3A'),
  3978. category: 'testing',
  3979. fn: function (aBlock){
  3980. var self=this;
  3981. return self;
  3982. return self;},
  3983. args: ["aBlock"],
  3984. source: unescape('ifNotNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself'),
  3985. messageSends: [],
  3986. referencedClasses: []
  3987. }),
  3988. smalltalk.UndefinedObject);
  3989. smalltalk.addMethod(
  3990. unescape('_ifNil_ifNotNil_'),
  3991. smalltalk.method({
  3992. selector: unescape('ifNil%3AifNotNil%3A'),
  3993. category: 'testing',
  3994. fn: function (aBlock, anotherBlock){
  3995. var self=this;
  3996. return smalltalk.send(aBlock, "_value", []);
  3997. return self;},
  3998. args: ["aBlock", "anotherBlock"],
  3999. source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  4000. messageSends: ["value"],
  4001. referencedClasses: []
  4002. }),
  4003. smalltalk.UndefinedObject);
  4004. smalltalk.addMethod(
  4005. unescape('_ifNotNil_ifNil_'),
  4006. smalltalk.method({
  4007. selector: unescape('ifNotNil%3AifNil%3A'),
  4008. category: 'testing',
  4009. fn: function (aBlock, anotherBlock){
  4010. var self=this;
  4011. return smalltalk.send(anotherBlock, "_value", []);
  4012. return self;},
  4013. args: ["aBlock", "anotherBlock"],
  4014. source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EanotherBlock%20value'),
  4015. messageSends: ["value"],
  4016. referencedClasses: []
  4017. }),
  4018. smalltalk.UndefinedObject);
  4019. smalltalk.addMethod(
  4020. unescape('_isNil'),
  4021. smalltalk.method({
  4022. selector: unescape('isNil'),
  4023. category: 'testing',
  4024. fn: function (){
  4025. var self=this;
  4026. return true;
  4027. return self;},
  4028. args: [],
  4029. source: unescape('isNil%0A%09%5Etrue'),
  4030. messageSends: [],
  4031. referencedClasses: []
  4032. }),
  4033. smalltalk.UndefinedObject);
  4034. smalltalk.addMethod(
  4035. unescape('_notNil'),
  4036. smalltalk.method({
  4037. selector: unescape('notNil'),
  4038. category: 'testing',
  4039. fn: function (){
  4040. var self=this;
  4041. return false;
  4042. return self;},
  4043. args: [],
  4044. source: unescape('notNil%0A%09%5Efalse'),
  4045. messageSends: [],
  4046. referencedClasses: []
  4047. }),
  4048. smalltalk.UndefinedObject);
  4049. smalltalk.addMethod(
  4050. unescape('_printString'),
  4051. smalltalk.method({
  4052. selector: unescape('printString'),
  4053. category: 'printing',
  4054. fn: function (){
  4055. var self=this;
  4056. return "nil";
  4057. return self;},
  4058. args: [],
  4059. source: unescape('printString%0A%20%20%20%20%5E%27nil%27'),
  4060. messageSends: [],
  4061. referencedClasses: []
  4062. }),
  4063. smalltalk.UndefinedObject);
  4064. smalltalk.addMethod(
  4065. unescape('_subclass_instanceVariableNames_package_'),
  4066. smalltalk.method({
  4067. selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
  4068. category: 'class creation',
  4069. fn: function (aString, aString2, aString3){
  4070. var self=this;
  4071. return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
  4072. return self;},
  4073. args: ["aString", "aString2", "aString3"],
  4074. 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'),
  4075. messageSends: ["superclass:subclass:instanceVariableNames:package:", "new"],
  4076. referencedClasses: ["ClassBuilder"]
  4077. }),
  4078. smalltalk.UndefinedObject);
  4079. smalltalk.addMethod(
  4080. unescape('_new'),
  4081. smalltalk.method({
  4082. selector: unescape('new'),
  4083. category: 'instance creation',
  4084. fn: function (){
  4085. var self=this;
  4086. smalltalk.send(self, "_error_", ["You cannot create new instances of UndefinedObject. Use nil"]);
  4087. return self;},
  4088. args: [],
  4089. source: unescape('new%0A%09%20%20%20%20self%20error%3A%20%27You%20cannot%20create%20new%20instances%20of%20UndefinedObject.%20Use%20nil%27'),
  4090. messageSends: ["error:"],
  4091. referencedClasses: []
  4092. }),
  4093. smalltalk.UndefinedObject.klass);
  4094. smalltalk.addClass('Collection', smalltalk.Object, [], 'Kernel');
  4095. smalltalk.addMethod(
  4096. unescape('_size'),
  4097. smalltalk.method({
  4098. selector: unescape('size'),
  4099. category: 'accessing',
  4100. fn: function (){
  4101. var self=this;
  4102. smalltalk.send(self, "_subclassResponsibility", []);
  4103. return self;},
  4104. args: [],
  4105. source: unescape('size%0A%09self%20subclassResponsibility'),
  4106. messageSends: ["subclassResponsibility"],
  4107. referencedClasses: []
  4108. }),
  4109. smalltalk.Collection);
  4110. smalltalk.addMethod(
  4111. unescape('_readStream'),
  4112. smalltalk.method({
  4113. selector: unescape('readStream'),
  4114. category: 'accessing',
  4115. fn: function (){
  4116. var self=this;
  4117. return smalltalk.send(self, "_stream", []);
  4118. return self;},
  4119. args: [],
  4120. source: unescape('readStream%0A%09%5Eself%20stream'),
  4121. messageSends: ["stream"],
  4122. referencedClasses: []
  4123. }),
  4124. smalltalk.Collection);
  4125. smalltalk.addMethod(
  4126. unescape('_writeStream'),
  4127. smalltalk.method({
  4128. selector: unescape('writeStream'),
  4129. category: 'accessing',
  4130. fn: function (){
  4131. var self=this;
  4132. return smalltalk.send(self, "_stream", []);
  4133. return self;},
  4134. args: [],
  4135. source: unescape('writeStream%0A%09%5Eself%20stream'),
  4136. messageSends: ["stream"],
  4137. referencedClasses: []
  4138. }),
  4139. smalltalk.Collection);
  4140. smalltalk.addMethod(
  4141. unescape('_stream'),
  4142. smalltalk.method({
  4143. selector: unescape('stream'),
  4144. category: 'accessing',
  4145. fn: function (){
  4146. var self=this;
  4147. return smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [self]);
  4148. return self;},
  4149. args: [],
  4150. source: unescape('stream%0A%09%5Eself%20streamClass%20on%3A%20self'),
  4151. messageSends: ["on:", "streamClass"],
  4152. referencedClasses: []
  4153. }),
  4154. smalltalk.Collection);
  4155. smalltalk.addMethod(
  4156. unescape('_streamClass'),
  4157. smalltalk.method({
  4158. selector: unescape('streamClass'),
  4159. category: 'accessing',
  4160. fn: function (){
  4161. var self=this;
  4162. return smalltalk.send(smalltalk.send(self, "_class", []), "_streamClass", []);
  4163. return self;},
  4164. args: [],
  4165. source: unescape('streamClass%0A%09%5Eself%20class%20streamClass'),
  4166. messageSends: ["streamClass", "class"],
  4167. referencedClasses: []
  4168. }),
  4169. smalltalk.Collection);
  4170. smalltalk.addMethod(
  4171. unescape('_add_'),
  4172. smalltalk.method({
  4173. selector: unescape('add%3A'),
  4174. category: 'adding/removing',
  4175. fn: function (anObject){
  4176. var self=this;
  4177. smalltalk.send(self, "_subclassResponsibility", []);
  4178. return self;},
  4179. args: ["anObject"],
  4180. source: unescape('add%3A%20anObject%0A%09self%20subclassResponsibility'),
  4181. messageSends: ["subclassResponsibility"],
  4182. referencedClasses: []
  4183. }),
  4184. smalltalk.Collection);
  4185. smalltalk.addMethod(
  4186. unescape('_addAll_'),
  4187. smalltalk.method({
  4188. selector: unescape('addAll%3A'),
  4189. category: 'adding/removing',
  4190. fn: function (aCollection){
  4191. var self=this;
  4192. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_add_", [each]);})]);
  4193. return aCollection;
  4194. return self;},
  4195. args: ["aCollection"],
  4196. 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'),
  4197. messageSends: ["do:", "add:"],
  4198. referencedClasses: []
  4199. }),
  4200. smalltalk.Collection);
  4201. smalltalk.addMethod(
  4202. unescape('__comma'),
  4203. smalltalk.method({
  4204. selector: unescape('%2C'),
  4205. category: 'copying',
  4206. fn: function (aCollection){
  4207. var self=this;
  4208. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  4209. return self;},
  4210. args: ["aCollection"],
  4211. 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'),
  4212. messageSends: ["addAll:", "yourself", "copy"],
  4213. referencedClasses: []
  4214. }),
  4215. smalltalk.Collection);
  4216. smalltalk.addMethod(
  4217. unescape('_copyWith_'),
  4218. smalltalk.method({
  4219. selector: unescape('copyWith%3A'),
  4220. category: 'copying',
  4221. fn: function (anObject){
  4222. var self=this;
  4223. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  4224. return self;},
  4225. args: ["anObject"],
  4226. source: unescape('copyWith%3A%20anObject%0A%09%5Eself%20copy%20add%3A%20anObject%3B%20yourself'),
  4227. messageSends: ["add:", "yourself", "copy"],
  4228. referencedClasses: []
  4229. }),
  4230. smalltalk.Collection);
  4231. smalltalk.addMethod(
  4232. unescape('_copyWithAll_'),
  4233. smalltalk.method({
  4234. selector: unescape('copyWithAll%3A'),
  4235. category: 'copying',
  4236. fn: function (aCollection){
  4237. var self=this;
  4238. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  4239. return self;},
  4240. args: ["aCollection"],
  4241. source: unescape('copyWithAll%3A%20aCollection%0A%09%5Eself%20copy%20addAll%3A%20aCollection%3B%20yourself'),
  4242. messageSends: ["addAll:", "yourself", "copy"],
  4243. referencedClasses: []
  4244. }),
  4245. smalltalk.Collection);
  4246. smalltalk.addMethod(
  4247. unescape('_asArray'),
  4248. smalltalk.method({
  4249. selector: unescape('asArray'),
  4250. category: 'converting',
  4251. fn: function (){
  4252. var self=this;
  4253. var array=nil;
  4254. var index=nil;
  4255. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  4256. index=(0);
  4257. 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]);})]);
  4258. return array;
  4259. return self;},
  4260. args: [],
  4261. 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'),
  4262. messageSends: ["new", "do:", unescape("+"), "at:put:"],
  4263. referencedClasses: ["Array"]
  4264. }),
  4265. smalltalk.Collection);
  4266. smalltalk.addMethod(
  4267. unescape('_do_'),
  4268. smalltalk.method({
  4269. selector: unescape('do%3A'),
  4270. category: 'enumerating',
  4271. fn: function (aBlock){
  4272. var self=this;
  4273. for(var i=0;i<self.length;i++){aBlock(self[i]);};
  4274. return self;},
  4275. args: ["aBlock"],
  4276. source: unescape('do%3A%20aBlock%0A%09%3Cfor%28var%20i%3D0%3Bi%3Cself.length%3Bi++%29%7BaBlock%28self%5Bi%5D%29%3B%7D%3E'),
  4277. messageSends: [],
  4278. referencedClasses: []
  4279. }),
  4280. smalltalk.Collection);
  4281. smalltalk.addMethod(
  4282. unescape('_collect_'),
  4283. smalltalk.method({
  4284. selector: unescape('collect%3A'),
  4285. category: 'enumerating',
  4286. fn: function (aBlock){
  4287. var self=this;
  4288. var newCollection=nil;
  4289. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  4290. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(aBlock, "_value_", [each])]);})]);
  4291. return newCollection;
  4292. return self;},
  4293. args: ["aBlock"],
  4294. 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'),
  4295. messageSends: ["new", "class", "do:", "add:", "value:"],
  4296. referencedClasses: []
  4297. }),
  4298. smalltalk.Collection);
  4299. smalltalk.addMethod(
  4300. unescape('_detect_'),
  4301. smalltalk.method({
  4302. selector: unescape('detect%3A'),
  4303. category: 'enumerating',
  4304. fn: function (aBlock){
  4305. var self=this;
  4306. return smalltalk.send(self, "_detect_ifNone_", [aBlock, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4307. return self;},
  4308. args: ["aBlock"],
  4309. source: unescape('detect%3A%20aBlock%0A%09%5Eself%20detect%3A%20aBlock%20ifNone%3A%20%5Bself%20errorNotFound%5D'),
  4310. messageSends: ["detect:ifNone:", "errorNotFound"],
  4311. referencedClasses: []
  4312. }),
  4313. smalltalk.Collection);
  4314. smalltalk.addMethod(
  4315. unescape('_detect_ifNone_'),
  4316. smalltalk.method({
  4317. selector: unescape('detect%3AifNone%3A'),
  4318. category: 'enumerating',
  4319. fn: function (aBlock, anotherBlock){
  4320. var self=this;
  4321. for(var i = 0; i < self.length; i++)
  4322. if(aBlock(self[i]))
  4323. return self[i];
  4324. return anotherBlock();
  4325. ;
  4326. return self;},
  4327. args: ["aBlock", "anotherBlock"],
  4328. 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'),
  4329. messageSends: [],
  4330. referencedClasses: []
  4331. }),
  4332. smalltalk.Collection);
  4333. smalltalk.addMethod(
  4334. unescape('_do_separatedBy_'),
  4335. smalltalk.method({
  4336. selector: unescape('do%3AseparatedBy%3A'),
  4337. category: 'enumerating',
  4338. fn: function (aBlock, anotherBlock){
  4339. var self=this;
  4340. var first=nil;
  4341. first=true;
  4342. 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]);})]);
  4343. return self;},
  4344. args: ["aBlock", "anotherBlock"],
  4345. 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'),
  4346. messageSends: ["do:", "ifTrue:ifFalse:", "value", "value:"],
  4347. referencedClasses: []
  4348. }),
  4349. smalltalk.Collection);
  4350. smalltalk.addMethod(
  4351. unescape('_inject_into_'),
  4352. smalltalk.method({
  4353. selector: unescape('inject%3Ainto%3A'),
  4354. category: 'enumerating',
  4355. fn: function (anObject, aBlock){
  4356. var self=this;
  4357. var result=nil;
  4358. result=anObject;
  4359. smalltalk.send(self, "_do_", [(function(each){return result=smalltalk.send(aBlock, "_value_value_", [result, each]);})]);
  4360. return result;
  4361. return self;},
  4362. args: ["anObject", "aBlock"],
  4363. 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'),
  4364. messageSends: ["do:", "value:value:"],
  4365. referencedClasses: []
  4366. }),
  4367. smalltalk.Collection);
  4368. smalltalk.addMethod(
  4369. unescape('_reject_'),
  4370. smalltalk.method({
  4371. selector: unescape('reject%3A'),
  4372. category: 'enumerating',
  4373. fn: function (aBlock){
  4374. var self=this;
  4375. return smalltalk.send(self, "_select_", [(function(each){return smalltalk.send(smalltalk.send(aBlock, "_value_", [each]), "__eq", [false]);})]);
  4376. return self;},
  4377. args: ["aBlock"],
  4378. 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'),
  4379. messageSends: ["select:", unescape("%3D"), "value:"],
  4380. referencedClasses: []
  4381. }),
  4382. smalltalk.Collection);
  4383. smalltalk.addMethod(
  4384. unescape('_select_'),
  4385. smalltalk.method({
  4386. selector: unescape('select%3A'),
  4387. category: 'enumerating',
  4388. fn: function (aBlock){
  4389. var self=this;
  4390. var stream=nil;
  4391. stream=smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_new", []), "_writeStream", []);
  4392. 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]);})]));})]);
  4393. return smalltalk.send(stream, "_contents", []);
  4394. return self;},
  4395. args: ["aBlock"],
  4396. 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'),
  4397. messageSends: ["writeStream", "new", "class", "do:", "ifTrue:", "value:", "nextPut:", "contents"],
  4398. referencedClasses: []
  4399. }),
  4400. smalltalk.Collection);
  4401. smalltalk.addMethod(
  4402. unescape('_errorNotFound'),
  4403. smalltalk.method({
  4404. selector: unescape('errorNotFound'),
  4405. category: 'error handling',
  4406. fn: function (){
  4407. var self=this;
  4408. smalltalk.send(self, "_error_", ["Object is not in the collection"]);
  4409. return self;},
  4410. args: [],
  4411. source: unescape('errorNotFound%0A%09self%20error%3A%20%27Object%20is%20not%20in%20the%20collection%27'),
  4412. messageSends: ["error:"],
  4413. referencedClasses: []
  4414. }),
  4415. smalltalk.Collection);
  4416. smalltalk.addMethod(
  4417. unescape('_includes_'),
  4418. smalltalk.method({
  4419. selector: unescape('includes%3A'),
  4420. category: 'testing',
  4421. fn: function (anObject){
  4422. var self=this;
  4423. var i = self.length;
  4424. while (i--) {
  4425. if (smalltalk.send(self[i], "__eq", [anObject])) {return true;}
  4426. }
  4427. return false
  4428. ;
  4429. return self;},
  4430. args: ["anObject"],
  4431. 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'),
  4432. messageSends: [],
  4433. referencedClasses: []
  4434. }),
  4435. smalltalk.Collection);
  4436. smalltalk.addMethod(
  4437. unescape('_notEmpty'),
  4438. smalltalk.method({
  4439. selector: unescape('notEmpty'),
  4440. category: 'testing',
  4441. fn: function (){
  4442. var self=this;
  4443. return smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_not", []);
  4444. return self;},
  4445. args: [],
  4446. source: unescape('notEmpty%0A%09%5Eself%20isEmpty%20not'),
  4447. messageSends: ["not", "isEmpty"],
  4448. referencedClasses: []
  4449. }),
  4450. smalltalk.Collection);
  4451. smalltalk.addMethod(
  4452. unescape('_isEmpty'),
  4453. smalltalk.method({
  4454. selector: unescape('isEmpty'),
  4455. category: 'testing',
  4456. fn: function (){
  4457. var self=this;
  4458. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  4459. return self;},
  4460. args: [],
  4461. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  4462. messageSends: [unescape("%3D"), "size"],
  4463. referencedClasses: []
  4464. }),
  4465. smalltalk.Collection);
  4466. smalltalk.addMethod(
  4467. unescape('_remove_'),
  4468. smalltalk.method({
  4469. selector: unescape('remove%3A'),
  4470. category: 'adding/removing',
  4471. fn: function (anObject){
  4472. var self=this;
  4473. smalltalk.send(self, "_subclassResponsibility", []);
  4474. return self;},
  4475. args: ["anObject"],
  4476. source: unescape('remove%3A%20anObject%0A%20%20%20%20self%20subclassResponsibility'),
  4477. messageSends: ["subclassResponsibility"],
  4478. referencedClasses: []
  4479. }),
  4480. smalltalk.Collection);
  4481. smalltalk.addMethod(
  4482. unescape('_asSet'),
  4483. smalltalk.method({
  4484. selector: unescape('asSet'),
  4485. category: 'converting',
  4486. fn: function (){
  4487. var self=this;
  4488. return smalltalk.send((smalltalk.Set || Set), "_withAll_", [self]);
  4489. return self;},
  4490. args: [],
  4491. source: unescape('asSet%0A%09%5ESet%20withAll%3A%20self'),
  4492. messageSends: ["withAll:"],
  4493. referencedClasses: ["Set"]
  4494. }),
  4495. smalltalk.Collection);
  4496. smalltalk.addMethod(
  4497. unescape('_ifNotEmpty_'),
  4498. smalltalk.method({
  4499. selector: unescape('ifNotEmpty%3A'),
  4500. category: 'testing',
  4501. fn: function (aBlock){
  4502. var self=this;
  4503. smalltalk.send(smalltalk.send(self, "_notEmpty", []), "_ifTrue_", [aBlock]);
  4504. return self;},
  4505. args: ["aBlock"],
  4506. source: unescape('ifNotEmpty%3A%20aBlock%0A%09self%20notEmpty%20ifTrue%3A%20aBlock.'),
  4507. messageSends: ["ifTrue:", "notEmpty"],
  4508. referencedClasses: []
  4509. }),
  4510. smalltalk.Collection);
  4511. smalltalk.addMethod(
  4512. unescape('_ifEmpty_'),
  4513. smalltalk.method({
  4514. selector: unescape('ifEmpty%3A'),
  4515. category: 'testing',
  4516. fn: function (aBlock){
  4517. var self=this;
  4518. smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_ifTrue_", [aBlock]);
  4519. return self;},
  4520. args: ["aBlock"],
  4521. source: unescape('ifEmpty%3A%20aBlock%0A%09self%20isEmpty%20ifTrue%3A%20aBlock.'),
  4522. messageSends: ["ifTrue:", "isEmpty"],
  4523. referencedClasses: []
  4524. }),
  4525. smalltalk.Collection);
  4526. smalltalk.addMethod(
  4527. unescape('_copyWithoutAll_'),
  4528. smalltalk.method({
  4529. selector: unescape('copyWithoutAll%3A'),
  4530. category: 'copying',
  4531. fn: function (aCollection){
  4532. var self=this;
  4533. return smalltalk.send(self, "_reject_", [(function(each){return smalltalk.send(aCollection, "_includes_", [each]);})]);
  4534. return self;},
  4535. args: ["aCollection"],
  4536. 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'),
  4537. messageSends: ["reject:", "includes:"],
  4538. referencedClasses: []
  4539. }),
  4540. smalltalk.Collection);
  4541. smalltalk.addMethod(
  4542. unescape('_streamClass'),
  4543. smalltalk.method({
  4544. selector: unescape('streamClass'),
  4545. category: 'accessing',
  4546. fn: function (){
  4547. var self=this;
  4548. return (smalltalk.Stream || Stream);
  4549. return self;},
  4550. args: [],
  4551. source: unescape('streamClass%0A%09%20%20%20%20%5EStream'),
  4552. messageSends: [],
  4553. referencedClasses: ["Stream"]
  4554. }),
  4555. smalltalk.Collection.klass);
  4556. smalltalk.addMethod(
  4557. unescape('_with_'),
  4558. smalltalk.method({
  4559. selector: unescape('with%3A'),
  4560. category: 'instance creation',
  4561. fn: function (anObject){
  4562. var self=this;
  4563. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4564. return self;},
  4565. args: ["anObject"],
  4566. source: unescape('with%3A%20anObject%0A%09%20%20%20%20%5Eself%20new%0A%09%09add%3A%20anObject%3B%0A%09%09yourself'),
  4567. messageSends: ["add:", "yourself", "new"],
  4568. referencedClasses: []
  4569. }),
  4570. smalltalk.Collection.klass);
  4571. smalltalk.addMethod(
  4572. unescape('_with_with_'),
  4573. smalltalk.method({
  4574. selector: unescape('with%3Awith%3A'),
  4575. category: 'instance creation',
  4576. fn: function (anObject, anotherObject){
  4577. var self=this;
  4578. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);smalltalk.send($rec, "_add_", [anotherObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4579. return self;},
  4580. args: ["anObject", "anotherObject"],
  4581. 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'),
  4582. messageSends: ["add:", "yourself", "new"],
  4583. referencedClasses: []
  4584. }),
  4585. smalltalk.Collection.klass);
  4586. smalltalk.addMethod(
  4587. unescape('_with_with_with_'),
  4588. smalltalk.method({
  4589. selector: unescape('with%3Awith%3Awith%3A'),
  4590. category: 'instance creation',
  4591. fn: function (firstObject, secondObject, thirdObject){
  4592. var self=this;
  4593. 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", []));
  4594. return self;},
  4595. args: ["firstObject", "secondObject", "thirdObject"],
  4596. 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'),
  4597. messageSends: ["add:", "yourself", "new"],
  4598. referencedClasses: []
  4599. }),
  4600. smalltalk.Collection.klass);
  4601. smalltalk.addMethod(
  4602. unescape('_withAll_'),
  4603. smalltalk.method({
  4604. selector: unescape('withAll%3A'),
  4605. category: 'instance creation',
  4606. fn: function (aCollection){
  4607. var self=this;
  4608. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4609. return self;},
  4610. args: ["aCollection"],
  4611. source: unescape('withAll%3A%20aCollection%0A%09%20%20%20%20%5Eself%20new%0A%09%09addAll%3A%20aCollection%3B%0A%09%09yourself'),
  4612. messageSends: ["addAll:", "yourself", "new"],
  4613. referencedClasses: []
  4614. }),
  4615. smalltalk.Collection.klass);
  4616. smalltalk.addClass('SequenceableCollection', smalltalk.Collection, [], 'Kernel');
  4617. smalltalk.addMethod(
  4618. unescape('_at_'),
  4619. smalltalk.method({
  4620. selector: unescape('at%3A'),
  4621. category: 'accessing',
  4622. fn: function (anIndex){
  4623. var self=this;
  4624. return smalltalk.send(self, "_at_ifAbsent_", [anIndex, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4625. return self;},
  4626. args: ["anIndex"],
  4627. source: unescape('at%3A%20anIndex%0A%09%5Eself%20at%3A%20anIndex%20ifAbsent%3A%20%5B%0A%09%20%20%20%20self%20errorNotFound%5D'),
  4628. messageSends: ["at:ifAbsent:", "errorNotFound"],
  4629. referencedClasses: []
  4630. }),
  4631. smalltalk.SequenceableCollection);
  4632. smalltalk.addMethod(
  4633. unescape('_at_ifAbsent_'),
  4634. smalltalk.method({
  4635. selector: unescape('at%3AifAbsent%3A'),
  4636. category: 'accessing',
  4637. fn: function (anIndex, aBlock){
  4638. var self=this;
  4639. smalltalk.send(self, "_subclassResponsibility", []);
  4640. return self;},
  4641. args: ["anIndex", "aBlock"],
  4642. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%09self%20subclassResponsibility'),
  4643. messageSends: ["subclassResponsibility"],
  4644. referencedClasses: []
  4645. }),
  4646. smalltalk.SequenceableCollection);
  4647. smalltalk.addMethod(
  4648. unescape('_at_put_'),
  4649. smalltalk.method({
  4650. selector: unescape('at%3Aput%3A'),
  4651. category: 'accessing',
  4652. fn: function (anIndex, anObject){
  4653. var self=this;
  4654. smalltalk.send(self, "_subclassResponsibility", []);
  4655. return self;},
  4656. args: ["anIndex", "anObject"],
  4657. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09self%20subclassResponsibility'),
  4658. messageSends: ["subclassResponsibility"],
  4659. referencedClasses: []
  4660. }),
  4661. smalltalk.SequenceableCollection);
  4662. smalltalk.addMethod(
  4663. unescape('_copyFrom_to_'),
  4664. smalltalk.method({
  4665. selector: unescape('copyFrom%3Ato%3A'),
  4666. category: 'copying',
  4667. fn: function (anIndex, anotherIndex){
  4668. var self=this;
  4669. smalltalk.send(self, "_subclassResponsibility", []);
  4670. return self;},
  4671. args: ["anIndex", "anotherIndex"],
  4672. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20subclassResponsibility'),
  4673. messageSends: ["subclassResponsibility"],
  4674. referencedClasses: []
  4675. }),
  4676. smalltalk.SequenceableCollection);
  4677. smalltalk.addMethod(
  4678. unescape('_first'),
  4679. smalltalk.method({
  4680. selector: unescape('first'),
  4681. category: 'accessing',
  4682. fn: function (){
  4683. var self=this;
  4684. return smalltalk.send(self, "_at_", [(1)]);
  4685. return self;},
  4686. args: [],
  4687. source: unescape('first%0A%09%5Eself%20at%3A%201'),
  4688. messageSends: ["at:"],
  4689. referencedClasses: []
  4690. }),
  4691. smalltalk.SequenceableCollection);
  4692. smalltalk.addMethod(
  4693. unescape('_fourth'),
  4694. smalltalk.method({
  4695. selector: unescape('fourth'),
  4696. category: 'accessing',
  4697. fn: function (){
  4698. var self=this;
  4699. return smalltalk.send(self, "_at_", [(4)]);
  4700. return self;},
  4701. args: [],
  4702. source: unescape('fourth%0A%09%5Eself%20at%3A%204'),
  4703. messageSends: ["at:"],
  4704. referencedClasses: []
  4705. }),
  4706. smalltalk.SequenceableCollection);
  4707. smalltalk.addMethod(
  4708. unescape('_last'),
  4709. smalltalk.method({
  4710. selector: unescape('last'),
  4711. category: 'accessing',
  4712. fn: function (){
  4713. var self=this;
  4714. return smalltalk.send(self, "_at_", [smalltalk.send(self, "_size", [])]);
  4715. return self;},
  4716. args: [],
  4717. source: unescape('last%0A%09%5Eself%20at%3A%20self%20size'),
  4718. messageSends: ["at:", "size"],
  4719. referencedClasses: []
  4720. }),
  4721. smalltalk.SequenceableCollection);
  4722. smalltalk.addMethod(
  4723. unescape('_second'),
  4724. smalltalk.method({
  4725. selector: unescape('second'),
  4726. category: 'accessing',
  4727. fn: function (){
  4728. var self=this;
  4729. return smalltalk.send(self, "_at_", [(2)]);
  4730. return self;},
  4731. args: [],
  4732. source: unescape('second%0A%09%5Eself%20at%3A%202'),
  4733. messageSends: ["at:"],
  4734. referencedClasses: []
  4735. }),
  4736. smalltalk.SequenceableCollection);
  4737. smalltalk.addMethod(
  4738. unescape('_third'),
  4739. smalltalk.method({
  4740. selector: unescape('third'),
  4741. category: 'accessing',
  4742. fn: function (){
  4743. var self=this;
  4744. return smalltalk.send(self, "_at_", [(3)]);
  4745. return self;},
  4746. args: [],
  4747. source: unescape('third%0A%09%5Eself%20at%3A%203'),
  4748. messageSends: ["at:"],
  4749. referencedClasses: []
  4750. }),
  4751. smalltalk.SequenceableCollection);
  4752. smalltalk.addMethod(
  4753. unescape('_removeLast'),
  4754. smalltalk.method({
  4755. selector: unescape('removeLast'),
  4756. category: 'adding',
  4757. fn: function (){
  4758. var self=this;
  4759. smalltalk.send(self, "_remove_", [smalltalk.send(self, "_last", [])]);
  4760. return self;},
  4761. args: [],
  4762. source: unescape('removeLast%0A%09self%20remove%3A%20self%20last'),
  4763. messageSends: ["remove:", "last"],
  4764. referencedClasses: []
  4765. }),
  4766. smalltalk.SequenceableCollection);
  4767. smalltalk.addMethod(
  4768. unescape('_addLast_'),
  4769. smalltalk.method({
  4770. selector: unescape('addLast%3A'),
  4771. category: 'adding',
  4772. fn: function (anObject){
  4773. var self=this;
  4774. smalltalk.send(self, "_add_", [anObject]);
  4775. return self;},
  4776. args: ["anObject"],
  4777. source: unescape('addLast%3A%20anObject%0A%09self%20add%3A%20anObject'),
  4778. messageSends: ["add:"],
  4779. referencedClasses: []
  4780. }),
  4781. smalltalk.SequenceableCollection);
  4782. smalltalk.addMethod(
  4783. unescape('_withIndexDo_'),
  4784. smalltalk.method({
  4785. selector: unescape('withIndexDo%3A'),
  4786. category: 'enumerating',
  4787. fn: function (aBlock){
  4788. var self=this;
  4789. for(var i=0;i<self.length;i++){aBlock(self[i], i+1);};
  4790. return self;},
  4791. args: ["aBlock"],
  4792. 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'),
  4793. messageSends: [],
  4794. referencedClasses: []
  4795. }),
  4796. smalltalk.SequenceableCollection);
  4797. smalltalk.addMethod(
  4798. unescape('_allButFirst'),
  4799. smalltalk.method({
  4800. selector: unescape('allButFirst'),
  4801. category: 'accessing',
  4802. fn: function (){
  4803. var self=this;
  4804. return smalltalk.send(self, "_copyFrom_to_", [(2), smalltalk.send(self, "_size", [])]);
  4805. return self;},
  4806. args: [],
  4807. source: unescape('allButFirst%0A%09%5Eself%20copyFrom%3A%202%20to%3A%20self%20size'),
  4808. messageSends: ["copyFrom:to:", "size"],
  4809. referencedClasses: []
  4810. }),
  4811. smalltalk.SequenceableCollection);
  4812. smalltalk.addMethod(
  4813. unescape('_allButLast'),
  4814. smalltalk.method({
  4815. selector: unescape('allButLast'),
  4816. category: 'accessing',
  4817. fn: function (){
  4818. var self=this;
  4819. return smalltalk.send(self, "_copyFrom_to_", [(1), ((($receiver = smalltalk.send(self, "_size", [])).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]);
  4820. return self;},
  4821. args: [],
  4822. source: unescape('allButLast%0A%09%5Eself%20copyFrom%3A%201%20to%3A%20self%20size%20-%201'),
  4823. messageSends: ["copyFrom:to:", unescape("-"), "size"],
  4824. referencedClasses: []
  4825. }),
  4826. smalltalk.SequenceableCollection);
  4827. smalltalk.addMethod(
  4828. unescape('_indexOf_'),
  4829. smalltalk.method({
  4830. selector: unescape('indexOf%3A'),
  4831. category: 'accessing',
  4832. fn: function (anObject){
  4833. var self=this;
  4834. return smalltalk.send(self, "_indexOf_ifAbsent_", [anObject, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4835. return self;},
  4836. args: ["anObject"],
  4837. source: unescape('indexOf%3A%20anObject%0A%09%5Eself%20indexOf%3A%20anObject%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  4838. messageSends: ["indexOf:ifAbsent:", "errorNotFound"],
  4839. referencedClasses: []
  4840. }),
  4841. smalltalk.SequenceableCollection);
  4842. smalltalk.addMethod(
  4843. unescape('_indexOf_ifAbsent_'),
  4844. smalltalk.method({
  4845. selector: unescape('indexOf%3AifAbsent%3A'),
  4846. category: 'accessing',
  4847. fn: function (anObject, aBlock){
  4848. var self=this;
  4849. for(var i=0;i<self.length;i++){
  4850. if(self[i].__eq(anObject)) {return i+1}
  4851. }
  4852. return aBlock();
  4853. ;
  4854. return self;},
  4855. args: ["anObject", "aBlock"],
  4856. 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'),
  4857. messageSends: [],
  4858. referencedClasses: []
  4859. }),
  4860. smalltalk.SequenceableCollection);
  4861. smalltalk.addMethod(
  4862. unescape('_indexOf_startingAt_ifAbsent_'),
  4863. smalltalk.method({
  4864. selector: unescape('indexOf%3AstartingAt%3AifAbsent%3A'),
  4865. category: 'accessing',
  4866. fn: function (anObject, start, aBlock){
  4867. var self=this;
  4868. for(var i=start-1;i<self.length;i++){
  4869. if(self[i].__eq(anObject)) {return i+1}
  4870. }
  4871. return aBlock();
  4872. ;
  4873. return self;},
  4874. args: ["anObject", "start", "aBlock"],
  4875. 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'),
  4876. messageSends: [],
  4877. referencedClasses: []
  4878. }),
  4879. smalltalk.SequenceableCollection);
  4880. smalltalk.addMethod(
  4881. unescape('_indexOf_startingAt_'),
  4882. smalltalk.method({
  4883. selector: unescape('indexOf%3AstartingAt%3A'),
  4884. category: 'accessing',
  4885. fn: function (anObject, start){
  4886. var self=this;
  4887. return smalltalk.send(self, "_indexOf_startingAt_ifAbsent_", [anObject, start, (function(){return (0);})]);
  4888. return self;},
  4889. args: ["anObject", "start"],
  4890. 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'),
  4891. messageSends: ["indexOf:startingAt:ifAbsent:"],
  4892. referencedClasses: []
  4893. }),
  4894. smalltalk.SequenceableCollection);
  4895. smalltalk.addMethod(
  4896. unescape('_reversed'),
  4897. smalltalk.method({
  4898. selector: unescape('reversed'),
  4899. category: 'converting',
  4900. fn: function (){
  4901. var self=this;
  4902. smalltalk.send(self, "_subclassResponsibility", []);
  4903. return self;},
  4904. args: [],
  4905. source: unescape('reversed%0A%09self%20subclassResponsibility'),
  4906. messageSends: ["subclassResponsibility"],
  4907. referencedClasses: []
  4908. }),
  4909. smalltalk.SequenceableCollection);
  4910. smalltalk.addMethod(
  4911. unescape('_atRandom'),
  4912. smalltalk.method({
  4913. selector: unescape('atRandom'),
  4914. category: 'accessing',
  4915. fn: function (){
  4916. var self=this;
  4917. return smalltalk.send(self, "_at_", [smalltalk.send(smalltalk.send(self, "_size", []), "_atRandom", [])]);
  4918. return self;},
  4919. args: [],
  4920. source: unescape('atRandom%0A%09%5E%20self%20at%3A%20self%20size%20atRandom'),
  4921. messageSends: ["at:", "atRandom", "size"],
  4922. referencedClasses: []
  4923. }),
  4924. smalltalk.SequenceableCollection);
  4925. smalltalk.addClass('String', smalltalk.SequenceableCollection, [], 'Kernel');
  4926. smalltalk.addMethod(
  4927. unescape('__eq'),
  4928. smalltalk.method({
  4929. selector: unescape('%3D'),
  4930. category: 'comparing',
  4931. fn: function (aString){
  4932. var self=this;
  4933. 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}})})();})]));
  4934. return String(self) == aString;
  4935. return self;
  4936. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  4937. args: ["aString"],
  4938. 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'),
  4939. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  4940. referencedClasses: []
  4941. }),
  4942. smalltalk.String);
  4943. smalltalk.addMethod(
  4944. unescape('_size'),
  4945. smalltalk.method({
  4946. selector: unescape('size'),
  4947. category: 'accessing',
  4948. fn: function (){
  4949. var self=this;
  4950. return self.length;
  4951. return self;},
  4952. args: [],
  4953. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  4954. messageSends: [],
  4955. referencedClasses: []
  4956. }),
  4957. smalltalk.String);
  4958. smalltalk.addMethod(
  4959. unescape('_at_'),
  4960. smalltalk.method({
  4961. selector: unescape('at%3A'),
  4962. category: 'accessing',
  4963. fn: function (anIndex){
  4964. var self=this;
  4965. return self[anIndex - 1];
  4966. return self;},
  4967. args: ["anIndex"],
  4968. source: unescape('at%3A%20anIndex%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%3E'),
  4969. messageSends: [],
  4970. referencedClasses: []
  4971. }),
  4972. smalltalk.String);
  4973. smalltalk.addMethod(
  4974. unescape('_at_put_'),
  4975. smalltalk.method({
  4976. selector: unescape('at%3Aput%3A'),
  4977. category: 'accessing',
  4978. fn: function (anIndex, anObject){
  4979. var self=this;
  4980. smalltalk.send(self, "_errorReadOnly", []);
  4981. return self;},
  4982. args: ["anIndex", "anObject"],
  4983. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  4984. messageSends: ["errorReadOnly"],
  4985. referencedClasses: []
  4986. }),
  4987. smalltalk.String);
  4988. smalltalk.addMethod(
  4989. unescape('_at_ifAbsent_'),
  4990. smalltalk.method({
  4991. selector: unescape('at%3AifAbsent%3A'),
  4992. category: 'accessing',
  4993. fn: function (anIndex, aBlock){
  4994. var self=this;
  4995. (($receiver = smalltalk.send(self, "_at_", [anIndex])) == nil || $receiver == undefined) ? (function(){return aBlock;})() : $receiver;
  4996. return self;},
  4997. args: ["anIndex", "aBlock"],
  4998. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%20%20%20%20%09%28self%20at%3A%20anIndex%29%20ifNil%3A%20%5BaBlock%5D'),
  4999. messageSends: ["ifNil:", "at:"],
  5000. referencedClasses: []
  5001. }),
  5002. smalltalk.String);
  5003. smalltalk.addMethod(
  5004. unescape('_escaped'),
  5005. smalltalk.method({
  5006. selector: unescape('escaped'),
  5007. category: 'accessing',
  5008. fn: function (){
  5009. var self=this;
  5010. return escape(self);
  5011. return self;},
  5012. args: [],
  5013. source: unescape('escaped%0A%09%3Creturn%20escape%28self%29%3E'),
  5014. messageSends: [],
  5015. referencedClasses: []
  5016. }),
  5017. smalltalk.String);
  5018. smalltalk.addMethod(
  5019. unescape('_unescaped'),
  5020. smalltalk.method({
  5021. selector: unescape('unescaped'),
  5022. category: 'accessing',
  5023. fn: function (){
  5024. var self=this;
  5025. return unescape(self);
  5026. return self;},
  5027. args: [],
  5028. source: unescape('unescaped%0A%09%3Creturn%20unescape%28self%29%3E'),
  5029. messageSends: [],
  5030. referencedClasses: []
  5031. }),
  5032. smalltalk.String);
  5033. smalltalk.addMethod(
  5034. unescape('_add_'),
  5035. smalltalk.method({
  5036. selector: unescape('add%3A'),
  5037. category: 'adding',
  5038. fn: function (anObject){
  5039. var self=this;
  5040. smalltalk.send(self, "_errorReadOnly", []);
  5041. return self;},
  5042. args: ["anObject"],
  5043. source: unescape('add%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  5044. messageSends: ["errorReadOnly"],
  5045. referencedClasses: []
  5046. }),
  5047. smalltalk.String);
  5048. smalltalk.addMethod(
  5049. unescape('__comma'),
  5050. smalltalk.method({
  5051. selector: unescape('%2C'),
  5052. category: 'copying',
  5053. fn: function (aString){
  5054. var self=this;
  5055. return self + aString;
  5056. return self;},
  5057. args: ["aString"],
  5058. source: unescape('%2C%20aString%0A%09%3Creturn%20self%20+%20aString%3E'),
  5059. messageSends: [],
  5060. referencedClasses: []
  5061. }),
  5062. smalltalk.String);
  5063. smalltalk.addMethod(
  5064. unescape('_copyFrom_to_'),
  5065. smalltalk.method({
  5066. selector: unescape('copyFrom%3Ato%3A'),
  5067. category: 'copying',
  5068. fn: function (anIndex, anotherIndex){
  5069. var self=this;
  5070. return self.substring(anIndex - 1, anotherIndex);
  5071. return self;},
  5072. args: ["anIndex", "anotherIndex"],
  5073. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09%3Creturn%20self.substring%28anIndex%20-%201%2C%20anotherIndex%29%3E'),
  5074. messageSends: [],
  5075. referencedClasses: []
  5076. }),
  5077. smalltalk.String);
  5078. smalltalk.addMethod(
  5079. unescape('_shallowCopy'),
  5080. smalltalk.method({
  5081. selector: unescape('shallowCopy'),
  5082. category: 'copying',
  5083. fn: function (){
  5084. var self=this;
  5085. return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [self]);
  5086. return self;},
  5087. args: [],
  5088. source: unescape('shallowCopy%0A%20%20%20%20%09%5Eself%20class%20fromString%3A%20self'),
  5089. messageSends: ["fromString:", "class"],
  5090. referencedClasses: []
  5091. }),
  5092. smalltalk.String);
  5093. smalltalk.addMethod(
  5094. unescape('_deepCopy'),
  5095. smalltalk.method({
  5096. selector: unescape('deepCopy'),
  5097. category: 'copying',
  5098. fn: function (){
  5099. var self=this;
  5100. return smalltalk.send(self, "_shallowCopy", []);
  5101. return self;},
  5102. args: [],
  5103. source: unescape('deepCopy%0A%20%20%20%20%09%5Eself%20shallowCopy'),
  5104. messageSends: ["shallowCopy"],
  5105. referencedClasses: []
  5106. }),
  5107. smalltalk.String);
  5108. smalltalk.addMethod(
  5109. unescape('_asSelector'),
  5110. smalltalk.method({
  5111. selector: unescape('asSelector'),
  5112. category: 'converting',
  5113. fn: function (){
  5114. var self=this;
  5115. var selector=nil;
  5116. selector=smalltalk.send("_", "__comma", [self]);
  5117. selector=smalltalk.send(selector, "_replace_with_", [":", "_"]);
  5118. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B+%5D"), "_plus"]);
  5119. selector=smalltalk.send(selector, "_replace_with_", [unescape("-"), "_minus"]);
  5120. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B*%5D"), "_star"]);
  5121. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B/%5D"), "_slash"]);
  5122. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3E"), "_gt"]);
  5123. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3C"), "_lt"]);
  5124. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3D"), "_eq"]);
  5125. selector=smalltalk.send(selector, "_replace_with_", [unescape("%2C"), "_comma"]);
  5126. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B@%5D"), "_at"]);
  5127. return selector;
  5128. return self;},
  5129. args: [],
  5130. 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'),
  5131. messageSends: [unescape("%2C"), "replace:with:"],
  5132. referencedClasses: []
  5133. }),
  5134. smalltalk.String);
  5135. smalltalk.addMethod(
  5136. unescape('_asJavascript'),
  5137. smalltalk.method({
  5138. selector: unescape('asJavascript'),
  5139. category: 'converting',
  5140. fn: function (){
  5141. var self=this;
  5142. if(self.search(/^[a-zA-Z0-9_:.$ ]*$/) == -1)
  5143. return "unescape(\"" + escape(self) + "\")";
  5144. else
  5145. return "\"" + self + "\"";
  5146. ;
  5147. return self;},
  5148. args: [],
  5149. 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'),
  5150. messageSends: [],
  5151. referencedClasses: []
  5152. }),
  5153. smalltalk.String);
  5154. smalltalk.addMethod(
  5155. unescape('_replace_with_'),
  5156. smalltalk.method({
  5157. selector: unescape('replace%3Awith%3A'),
  5158. category: 'regular expressions',
  5159. fn: function (aString, anotherString){
  5160. var self=this;
  5161. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [aString, "g"]), anotherString]);
  5162. return self;},
  5163. args: ["aString", "anotherString"],
  5164. 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'),
  5165. messageSends: ["replaceRegexp:with:", "fromString:flag:"],
  5166. referencedClasses: ["RegularExpression"]
  5167. }),
  5168. smalltalk.String);
  5169. smalltalk.addMethod(
  5170. unescape('_replaceRegexp_with_'),
  5171. smalltalk.method({
  5172. selector: unescape('replaceRegexp%3Awith%3A'),
  5173. category: 'regular expressions',
  5174. fn: function (aRegexp, aString){
  5175. var self=this;
  5176. return self.replace(aRegexp, aString);
  5177. return self;},
  5178. args: ["aRegexp", "aString"],
  5179. source: unescape('replaceRegexp%3A%20aRegexp%20with%3A%20aString%0A%09%3Creturn%20self.replace%28aRegexp%2C%20aString%29%3E'),
  5180. messageSends: [],
  5181. referencedClasses: []
  5182. }),
  5183. smalltalk.String);
  5184. smalltalk.addMethod(
  5185. unescape('_tokenize_'),
  5186. smalltalk.method({
  5187. selector: unescape('tokenize%3A'),
  5188. category: 'converting',
  5189. fn: function (aString){
  5190. var self=this;
  5191. return self.split(aString);
  5192. return self;},
  5193. args: ["aString"],
  5194. source: unescape('tokenize%3A%20aString%0A%09%3Creturn%20self.split%28aString%29%3E'),
  5195. messageSends: [],
  5196. referencedClasses: []
  5197. }),
  5198. smalltalk.String);
  5199. smalltalk.addMethod(
  5200. unescape('_match_'),
  5201. smalltalk.method({
  5202. selector: unescape('match%3A'),
  5203. category: 'regular expressions',
  5204. fn: function (aRegexp){
  5205. var self=this;
  5206. return self.search(aRegexp) != -1;
  5207. return self;},
  5208. args: ["aRegexp"],
  5209. source: unescape('match%3A%20aRegexp%0A%09%3Creturn%20self.search%28aRegexp%29%20%21%3D%20-1%3E'),
  5210. messageSends: [],
  5211. referencedClasses: []
  5212. }),
  5213. smalltalk.String);
  5214. smalltalk.addMethod(
  5215. unescape('_asString'),
  5216. smalltalk.method({
  5217. selector: unescape('asString'),
  5218. category: 'converting',
  5219. fn: function (){
  5220. var self=this;
  5221. return self;
  5222. return self;},
  5223. args: [],
  5224. source: unescape('asString%0A%20%20%20%20%09%5Eself'),
  5225. messageSends: [],
  5226. referencedClasses: []
  5227. }),
  5228. smalltalk.String);
  5229. smalltalk.addMethod(
  5230. unescape('_asNumber'),
  5231. smalltalk.method({
  5232. selector: unescape('asNumber'),
  5233. category: 'converting',
  5234. fn: function (){
  5235. var self=this;
  5236. return Number(self);
  5237. return self;},
  5238. args: [],
  5239. source: unescape('asNumber%0A%09%3Creturn%20Number%28self%29%3E'),
  5240. messageSends: [],
  5241. referencedClasses: []
  5242. }),
  5243. smalltalk.String);
  5244. smalltalk.addMethod(
  5245. unescape('_errorReadOnly'),
  5246. smalltalk.method({
  5247. selector: unescape('errorReadOnly'),
  5248. category: 'error handling',
  5249. fn: function (){
  5250. var self=this;
  5251. smalltalk.send(self, "_error_", [unescape("Object%20is%20read-only")]);
  5252. return self;},
  5253. args: [],
  5254. source: unescape('errorReadOnly%0A%20%20%20%20%09self%20error%3A%20%27Object%20is%20read-only%27'),
  5255. messageSends: ["error:"],
  5256. referencedClasses: []
  5257. }),
  5258. smalltalk.String);
  5259. smalltalk.addMethod(
  5260. unescape('_printString'),
  5261. smalltalk.method({
  5262. selector: unescape('printString'),
  5263. category: 'printing',
  5264. fn: function (){
  5265. var self=this;
  5266. return smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [self]), "__comma", [unescape("%27")]);
  5267. return self;},
  5268. args: [],
  5269. source: unescape('printString%0A%20%20%20%20%09%5E%27%27%27%27%2C%20self%2C%20%27%27%27%27'),
  5270. messageSends: [unescape("%2C")],
  5271. referencedClasses: []
  5272. }),
  5273. smalltalk.String);
  5274. smalltalk.addMethod(
  5275. unescape('_printNl'),
  5276. smalltalk.method({
  5277. selector: unescape('printNl'),
  5278. category: 'printing',
  5279. fn: function (){
  5280. var self=this;
  5281. console.log(self);
  5282. return self;},
  5283. args: [],
  5284. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  5285. messageSends: [],
  5286. referencedClasses: []
  5287. }),
  5288. smalltalk.String);
  5289. smalltalk.addMethod(
  5290. unescape('_isString'),
  5291. smalltalk.method({
  5292. selector: unescape('isString'),
  5293. category: 'testing',
  5294. fn: function (){
  5295. var self=this;
  5296. return true;
  5297. return self;},
  5298. args: [],
  5299. source: unescape('isString%0A%20%20%20%20%09%5Etrue'),
  5300. messageSends: [],
  5301. referencedClasses: []
  5302. }),
  5303. smalltalk.String);
  5304. smalltalk.addMethod(
  5305. unescape('__gt'),
  5306. smalltalk.method({
  5307. selector: unescape('%3E'),
  5308. category: 'comparing',
  5309. fn: function (aString){
  5310. var self=this;
  5311. return String(self) > aString;
  5312. return self;},
  5313. args: ["aString"],
  5314. source: unescape('%3E%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%20aString%3E'),
  5315. messageSends: [],
  5316. referencedClasses: []
  5317. }),
  5318. smalltalk.String);
  5319. smalltalk.addMethod(
  5320. unescape('__lt'),
  5321. smalltalk.method({
  5322. selector: unescape('%3C'),
  5323. category: 'comparing',
  5324. fn: function (aString){
  5325. var self=this;
  5326. return String(self) < aString;
  5327. return self;},
  5328. args: ["aString"],
  5329. source: unescape('%3C%20aString%0A%09%3Creturn%20String%28self%29%20%3C%20aString%3E'),
  5330. messageSends: [],
  5331. referencedClasses: []
  5332. }),
  5333. smalltalk.String);
  5334. smalltalk.addMethod(
  5335. unescape('__gt_eq'),
  5336. smalltalk.method({
  5337. selector: unescape('%3E%3D'),
  5338. category: 'comparing',
  5339. fn: function (aString){
  5340. var self=this;
  5341. return String(self) >= aString;
  5342. return self;},
  5343. args: ["aString"],
  5344. source: unescape('%3E%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%3D%20aString%3E'),
  5345. messageSends: [],
  5346. referencedClasses: []
  5347. }),
  5348. smalltalk.String);
  5349. smalltalk.addMethod(
  5350. unescape('__lt_eq'),
  5351. smalltalk.method({
  5352. selector: unescape('%3C%3D'),
  5353. category: 'comparing',
  5354. fn: function (aString){
  5355. var self=this;
  5356. return String(self) <= aString;
  5357. return self;},
  5358. args: ["aString"],
  5359. source: unescape('%3C%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3C%3D%20aString%3E'),
  5360. messageSends: [],
  5361. referencedClasses: []
  5362. }),
  5363. smalltalk.String);
  5364. smalltalk.addMethod(
  5365. unescape('_remove_'),
  5366. smalltalk.method({
  5367. selector: unescape('remove%3A'),
  5368. category: 'adding',
  5369. fn: function (anObject){
  5370. var self=this;
  5371. smalltalk.send(self, "_errorReadOnly", []);
  5372. return self;},
  5373. args: ["anObject"],
  5374. source: unescape('remove%3A%20anObject%0A%09self%20errorReadOnly'),
  5375. messageSends: ["errorReadOnly"],
  5376. referencedClasses: []
  5377. }),
  5378. smalltalk.String);
  5379. smalltalk.addMethod(
  5380. unescape('_asJSONObject'),
  5381. smalltalk.method({
  5382. selector: unescape('asJSONObject'),
  5383. category: 'converting',
  5384. fn: function (){
  5385. var self=this;
  5386. return self;
  5387. return self;},
  5388. args: [],
  5389. source: unescape('asJSONObject%0A%09%5Eself'),
  5390. messageSends: [],
  5391. referencedClasses: []
  5392. }),
  5393. smalltalk.String);
  5394. smalltalk.addMethod(
  5395. unescape('_trimLeft_'),
  5396. smalltalk.method({
  5397. selector: unescape('trimLeft%3A'),
  5398. category: 'regular expressions',
  5399. fn: function (separators){
  5400. var self=this;
  5401. 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"]), ""]);
  5402. return self;},
  5403. args: ["separators"],
  5404. 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'),
  5405. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  5406. referencedClasses: ["RegularExpression"]
  5407. }),
  5408. smalltalk.String);
  5409. smalltalk.addMethod(
  5410. unescape('_trimRight_'),
  5411. smalltalk.method({
  5412. selector: unescape('trimRight%3A'),
  5413. category: 'regular expressions',
  5414. fn: function (separators){
  5415. var self=this;
  5416. 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"]), ""]);
  5417. return self;},
  5418. args: ["separators"],
  5419. 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'),
  5420. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  5421. referencedClasses: ["RegularExpression"]
  5422. }),
  5423. smalltalk.String);
  5424. smalltalk.addMethod(
  5425. unescape('_trimLeft'),
  5426. smalltalk.method({
  5427. selector: unescape('trimLeft'),
  5428. category: 'regular expressions',
  5429. fn: function (){
  5430. var self=this;
  5431. return smalltalk.send(self, "_trimLeft_", [unescape("%5Cs")]);
  5432. return self;},
  5433. args: [],
  5434. source: unescape('trimLeft%0A%09%5Eself%20trimLeft%3A%20%27%5Cs%27'),
  5435. messageSends: ["trimLeft:"],
  5436. referencedClasses: []
  5437. }),
  5438. smalltalk.String);
  5439. smalltalk.addMethod(
  5440. unescape('_trimRight'),
  5441. smalltalk.method({
  5442. selector: unescape('trimRight'),
  5443. category: 'regular expressions',
  5444. fn: function (){
  5445. var self=this;
  5446. return smalltalk.send(self, "_trimRight_", [unescape("%5Cs")]);
  5447. return self;},
  5448. args: [],
  5449. source: unescape('trimRight%0A%09%5Eself%20trimRight%3A%20%27%5Cs%27'),
  5450. messageSends: ["trimRight:"],
  5451. referencedClasses: []
  5452. }),
  5453. smalltalk.String);
  5454. smalltalk.addMethod(
  5455. unescape('_trimBoth'),
  5456. smalltalk.method({
  5457. selector: unescape('trimBoth'),
  5458. category: 'regular expressions',
  5459. fn: function (){
  5460. var self=this;
  5461. return smalltalk.send(self, "_trimBoth_", [unescape("%5Cs")]);
  5462. return self;},
  5463. args: [],
  5464. source: unescape('trimBoth%0A%09%5Eself%20trimBoth%3A%20%27%5Cs%27'),
  5465. messageSends: ["trimBoth:"],
  5466. referencedClasses: []
  5467. }),
  5468. smalltalk.String);
  5469. smalltalk.addMethod(
  5470. unescape('_trimBoth_'),
  5471. smalltalk.method({
  5472. selector: unescape('trimBoth%3A'),
  5473. category: 'regular expressions',
  5474. fn: function (separators){
  5475. var self=this;
  5476. return smalltalk.send(smalltalk.send(self, "_trimLeft_", [separators]), "_trimRight_", [separators]);
  5477. return self;},
  5478. args: ["separators"],
  5479. source: unescape('trimBoth%3A%20separators%0A%0A%20%20%20%20%09%5E%28self%20trimLeft%3A%20separators%29%20trimRight%3A%20separators'),
  5480. messageSends: ["trimRight:", "trimLeft:"],
  5481. referencedClasses: []
  5482. }),
  5483. smalltalk.String);
  5484. smalltalk.addMethod(
  5485. unescape('_asLowercase'),
  5486. smalltalk.method({
  5487. selector: unescape('asLowercase'),
  5488. category: 'converting',
  5489. fn: function (){
  5490. var self=this;
  5491. return self.toLowerCase();
  5492. return self;},
  5493. args: [],
  5494. source: unescape('asLowercase%0A%09%3Creturn%20self.toLowerCase%28%29%3E'),
  5495. messageSends: [],
  5496. referencedClasses: []
  5497. }),
  5498. smalltalk.String);
  5499. smalltalk.addMethod(
  5500. unescape('_asUppercase'),
  5501. smalltalk.method({
  5502. selector: unescape('asUppercase'),
  5503. category: 'converting',
  5504. fn: function (){
  5505. var self=this;
  5506. return self.toUpperCase();
  5507. return self;},
  5508. args: [],
  5509. source: unescape('asUppercase%0A%09%3Creturn%20self.toUpperCase%28%29%3E'),
  5510. messageSends: [],
  5511. referencedClasses: []
  5512. }),
  5513. smalltalk.String);
  5514. smalltalk.addMethod(
  5515. unescape('_join_'),
  5516. smalltalk.method({
  5517. selector: unescape('join%3A'),
  5518. category: 'split join',
  5519. fn: function (aCollection){
  5520. var self=this;
  5521. 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]);})]);})]);
  5522. return self;},
  5523. args: ["aCollection"],
  5524. 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'),
  5525. messageSends: ["streamContents:", "do:separatedBy:", "nextPutAll:", "asString"],
  5526. referencedClasses: ["String"]
  5527. }),
  5528. smalltalk.String);
  5529. smalltalk.addMethod(
  5530. unescape('_includesSubString_'),
  5531. smalltalk.method({
  5532. selector: unescape('includesSubString%3A'),
  5533. category: 'testing',
  5534. fn: function (subString){
  5535. var self=this;
  5536. return self.indexOf(subString) != -1 ;
  5537. return self;},
  5538. args: ["subString"],
  5539. source: unescape('includesSubString%3A%20subString%0A%09%3C%20return%20self.indexOf%28subString%29%20%21%3D%20-1%20%3E'),
  5540. messageSends: [],
  5541. referencedClasses: []
  5542. }),
  5543. smalltalk.String);
  5544. smalltalk.addMethod(
  5545. unescape('_asciiValue'),
  5546. smalltalk.method({
  5547. selector: unescape('asciiValue'),
  5548. category: 'accessing',
  5549. fn: function (){
  5550. var self=this;
  5551. return self.charCodeAt(0);;
  5552. return self;},
  5553. args: [],
  5554. source: unescape('asciiValue%0A%09%3Creturn%20self.charCodeAt%280%29%3B%3E'),
  5555. messageSends: [],
  5556. referencedClasses: []
  5557. }),
  5558. smalltalk.String);
  5559. smalltalk.addMethod(
  5560. unescape('_lineIndicesDo_'),
  5561. smalltalk.method({
  5562. selector: unescape('lineIndicesDo%3A'),
  5563. category: 'split join',
  5564. fn: function (aBlock){
  5565. var self=this;
  5566. try{var cr=nil;
  5567. var lf=nil;
  5568. var start=nil;
  5569. var sz=nil;
  5570. var nextLF=nil;
  5571. var nextCR=nil;
  5572. start=(1);
  5573. sz=smalltalk.send(self, "_size", []);
  5574. cr=smalltalk.send((smalltalk.String || String), "_cr", []);
  5575. nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, (1)]);
  5576. lf=smalltalk.send((smalltalk.String || String), "_lf", []);
  5577. nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, (1)]);
  5578. (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]);})]));})]));})()}})();
  5579. return self;
  5580. } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineIndicesDo_'){return e.fn()} throw(e)}},
  5581. args: ["aBlock"],
  5582. 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'),
  5583. messageSends: ["size", "cr", "indexOf:startingAt:", "lf", "whileTrue:", unescape("%3C%3D"), "ifTrue:", "and:", unescape("%3D"), "value:value:value:", "ifTrue:ifFalse:", "or:", unescape("%3C"), unescape("-"), unescape("+")],
  5584. referencedClasses: ["String"]
  5585. }),
  5586. smalltalk.String);
  5587. smalltalk.addMethod(
  5588. unescape('_linesDo_'),
  5589. smalltalk.method({
  5590. selector: unescape('linesDo%3A'),
  5591. category: 'split join',
  5592. fn: function (aBlock){
  5593. var self=this;
  5594. smalltalk.send(self, "_lineIndicesDo_", [(function(start, endWithoutDelimiters, end){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])]);})]);
  5595. return self;},
  5596. args: ["aBlock"],
  5597. 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'),
  5598. messageSends: ["lineIndicesDo:", "value:", "copyFrom:to:"],
  5599. referencedClasses: []
  5600. }),
  5601. smalltalk.String);
  5602. smalltalk.addMethod(
  5603. unescape('_lines'),
  5604. smalltalk.method({
  5605. selector: unescape('lines'),
  5606. category: 'split join',
  5607. fn: function (){
  5608. var self=this;
  5609. var lines=nil;
  5610. lines=smalltalk.send((smalltalk.Array || Array), "_new", []);
  5611. smalltalk.send(self, "_linesDo_", [(function(aLine){return smalltalk.send(lines, "_add_", [aLine]);})]);
  5612. return lines;
  5613. return self;},
  5614. args: [],
  5615. 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'),
  5616. messageSends: ["new", "linesDo:", "add:"],
  5617. referencedClasses: ["Array"]
  5618. }),
  5619. smalltalk.String);
  5620. smalltalk.addMethod(
  5621. unescape('_lineNumber_'),
  5622. smalltalk.method({
  5623. selector: unescape('lineNumber%3A'),
  5624. category: 'split join',
  5625. fn: function (anIndex){
  5626. var self=this;
  5627. try{var lineCount=nil;
  5628. lineCount=(0);
  5629. 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])}})})();})]));})]);
  5630. (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return nil}})})();
  5631. return self;
  5632. } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineNumber_'){return e.fn()} throw(e)}},
  5633. args: ["anIndex"],
  5634. 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'),
  5635. messageSends: ["lineIndicesDo:", "ifTrue:", unescape("%3D"), unescape("+"), "copyFrom:to:"],
  5636. referencedClasses: []
  5637. }),
  5638. smalltalk.String);
  5639. smalltalk.addMethod(
  5640. unescape('_reversed'),
  5641. smalltalk.method({
  5642. selector: unescape('reversed'),
  5643. category: 'converting',
  5644. fn: function (){
  5645. var self=this;
  5646. return self.split("").reverse().join("");
  5647. return self;},
  5648. args: [],
  5649. source: unescape('reversed%0A%09%3Creturn%20self.split%28%22%22%29.reverse%28%29.join%28%22%22%29%3E'),
  5650. messageSends: [],
  5651. referencedClasses: []
  5652. }),
  5653. smalltalk.String);
  5654. smalltalk.addMethod(
  5655. unescape('__eq_eq'),
  5656. smalltalk.method({
  5657. selector: unescape('%3D%3D'),
  5658. category: 'comparing',
  5659. fn: function (aString){
  5660. var self=this;
  5661. 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}})})();})]));
  5662. return String(self) === String(aString);
  5663. return self;
  5664. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  5665. args: ["aString"],
  5666. 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'),
  5667. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  5668. referencedClasses: []
  5669. }),
  5670. smalltalk.String);
  5671. smalltalk.addMethod(
  5672. unescape('_asJavaScriptSelector'),
  5673. smalltalk.method({
  5674. selector: unescape('asJavaScriptSelector'),
  5675. category: 'converting',
  5676. fn: function (){
  5677. var self=this;
  5678. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_asSelector", []), "_replace_with_", [unescape("%5E_"), ""]), "_replace_with_", [unescape("_.*"), ""]);
  5679. return self;},
  5680. args: [],
  5681. 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.'),
  5682. messageSends: ["replace:with:", "asSelector"],
  5683. referencedClasses: []
  5684. }),
  5685. smalltalk.String);
  5686. smalltalk.addMethod(
  5687. unescape('_streamClass'),
  5688. smalltalk.method({
  5689. selector: unescape('streamClass'),
  5690. category: 'accessing',
  5691. fn: function (){
  5692. var self=this;
  5693. return (smalltalk.StringStream || StringStream);
  5694. return self;},
  5695. args: [],
  5696. source: unescape('streamClass%0A%09%20%20%20%20%5EStringStream'),
  5697. messageSends: [],
  5698. referencedClasses: ["StringStream"]
  5699. }),
  5700. smalltalk.String.klass);
  5701. smalltalk.addMethod(
  5702. unescape('_fromString_'),
  5703. smalltalk.method({
  5704. selector: unescape('fromString%3A'),
  5705. category: 'instance creation',
  5706. fn: function (aString){
  5707. var self=this;
  5708. return new self.fn(aString);
  5709. return self;},
  5710. args: ["aString"],
  5711. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%3Creturn%20new%20self.fn%28aString%29%3E'),
  5712. messageSends: [],
  5713. referencedClasses: []
  5714. }),
  5715. smalltalk.String.klass);
  5716. smalltalk.addMethod(
  5717. unescape('_cr'),
  5718. smalltalk.method({
  5719. selector: unescape('cr'),
  5720. category: 'accessing',
  5721. fn: function (){
  5722. var self=this;
  5723. return '\r';
  5724. return self;},
  5725. args: [],
  5726. source: unescape('cr%0A%09%3Creturn%20%27%5Cr%27%3E'),
  5727. messageSends: [],
  5728. referencedClasses: []
  5729. }),
  5730. smalltalk.String.klass);
  5731. smalltalk.addMethod(
  5732. unescape('_lf'),
  5733. smalltalk.method({
  5734. selector: unescape('lf'),
  5735. category: 'accessing',
  5736. fn: function (){
  5737. var self=this;
  5738. return '\n';
  5739. return self;},
  5740. args: [],
  5741. source: unescape('lf%0A%09%3Creturn%20%27%5Cn%27%3E'),
  5742. messageSends: [],
  5743. referencedClasses: []
  5744. }),
  5745. smalltalk.String.klass);
  5746. smalltalk.addMethod(
  5747. unescape('_space'),
  5748. smalltalk.method({
  5749. selector: unescape('space'),
  5750. category: 'accessing',
  5751. fn: function (){
  5752. var self=this;
  5753. return ' ';
  5754. return self;},
  5755. args: [],
  5756. source: unescape('space%0A%09%3Creturn%20%27%20%27%3E'),
  5757. messageSends: [],
  5758. referencedClasses: []
  5759. }),
  5760. smalltalk.String.klass);
  5761. smalltalk.addMethod(
  5762. unescape('_tab'),
  5763. smalltalk.method({
  5764. selector: unescape('tab'),
  5765. category: 'accessing',
  5766. fn: function (){
  5767. var self=this;
  5768. return '\t';
  5769. return self;},
  5770. args: [],
  5771. source: unescape('tab%0A%09%3Creturn%20%27%5Ct%27%3E'),
  5772. messageSends: [],
  5773. referencedClasses: []
  5774. }),
  5775. smalltalk.String.klass);
  5776. smalltalk.addMethod(
  5777. unescape('_crlf'),
  5778. smalltalk.method({
  5779. selector: unescape('crlf'),
  5780. category: 'accessing',
  5781. fn: function (){
  5782. var self=this;
  5783. return '\r\n';
  5784. return self;},
  5785. args: [],
  5786. source: unescape('crlf%0A%09%3Creturn%20%27%5Cr%5Cn%27%3E'),
  5787. messageSends: [],
  5788. referencedClasses: []
  5789. }),
  5790. smalltalk.String.klass);
  5791. smalltalk.addMethod(
  5792. unescape('_streamContents_'),
  5793. smalltalk.method({
  5794. selector: unescape('streamContents%3A'),
  5795. category: 'instance creation',
  5796. fn: function (blockWithArg){
  5797. var self=this;
  5798. var stream=nil;
  5799. stream=smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [smalltalk.send((smalltalk.String || String), "_new", [])]);
  5800. smalltalk.send(blockWithArg, "_value_", [stream]);
  5801. return smalltalk.send(stream, "_contents", []);
  5802. return self;},
  5803. args: ["blockWithArg"],
  5804. 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'),
  5805. messageSends: ["on:", "streamClass", "new", "value:", "contents"],
  5806. referencedClasses: ["String"]
  5807. }),
  5808. smalltalk.String.klass);
  5809. smalltalk.addMethod(
  5810. unescape('_value_'),
  5811. smalltalk.method({
  5812. selector: unescape('value%3A'),
  5813. category: 'instance creation',
  5814. fn: function (aUTFCharCode){
  5815. var self=this;
  5816. return String.fromCharCode(aUTFCharCode);;
  5817. return self;},
  5818. args: ["aUTFCharCode"],
  5819. source: unescape('value%3A%20aUTFCharCode%0A%0A%09%3Creturn%20String.fromCharCode%28aUTFCharCode%29%3B%3E'),
  5820. messageSends: [],
  5821. referencedClasses: []
  5822. }),
  5823. smalltalk.String.klass);
  5824. smalltalk.addClass('Array', smalltalk.SequenceableCollection, [], 'Kernel');
  5825. smalltalk.addMethod(
  5826. unescape('_size'),
  5827. smalltalk.method({
  5828. selector: unescape('size'),
  5829. category: 'accessing',
  5830. fn: function (){
  5831. var self=this;
  5832. return self.length;
  5833. return self;},
  5834. args: [],
  5835. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  5836. messageSends: [],
  5837. referencedClasses: []
  5838. }),
  5839. smalltalk.Array);
  5840. smalltalk.addMethod(
  5841. unescape('_at_put_'),
  5842. smalltalk.method({
  5843. selector: unescape('at%3Aput%3A'),
  5844. category: 'accessing',
  5845. fn: function (anIndex, anObject){
  5846. var self=this;
  5847. return self[anIndex - 1] = anObject;
  5848. return self;},
  5849. args: ["anIndex", "anObject"],
  5850. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%20%3D%20anObject%3E'),
  5851. messageSends: [],
  5852. referencedClasses: []
  5853. }),
  5854. smalltalk.Array);
  5855. smalltalk.addMethod(
  5856. unescape('_at_ifAbsent_'),
  5857. smalltalk.method({
  5858. selector: unescape('at%3AifAbsent%3A'),
  5859. category: 'accessing',
  5860. fn: function (anIndex, aBlock){
  5861. var self=this;
  5862. var value = self[anIndex - 1];
  5863. if(value === undefined) {
  5864. return aBlock();
  5865. } else {
  5866. return value;
  5867. }
  5868. ;
  5869. return self;},
  5870. args: ["anIndex", "aBlock"],
  5871. 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'),
  5872. messageSends: [],
  5873. referencedClasses: []
  5874. }),
  5875. smalltalk.Array);
  5876. smalltalk.addMethod(
  5877. unescape('_add_'),
  5878. smalltalk.method({
  5879. selector: unescape('add%3A'),
  5880. category: 'adding/removing',
  5881. fn: function (anObject){
  5882. var self=this;
  5883. self.push(anObject); return anObject;;
  5884. return self;},
  5885. args: ["anObject"],
  5886. source: unescape('add%3A%20anObject%0A%09%3Cself.push%28anObject%29%3B%20return%20anObject%3B%3E'),
  5887. messageSends: [],
  5888. referencedClasses: []
  5889. }),
  5890. smalltalk.Array);
  5891. smalltalk.addMethod(
  5892. unescape('_shallowCopy'),
  5893. smalltalk.method({
  5894. selector: unescape('shallowCopy'),
  5895. category: 'copying',
  5896. fn: function (){
  5897. var self=this;
  5898. var newCollection=nil;
  5899. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5900. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [each]);})]);
  5901. return newCollection;
  5902. return self;},
  5903. args: [],
  5904. 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'),
  5905. messageSends: ["new", "class", "do:", "add:"],
  5906. referencedClasses: []
  5907. }),
  5908. smalltalk.Array);
  5909. smalltalk.addMethod(
  5910. unescape('_deepCopy'),
  5911. smalltalk.method({
  5912. selector: unescape('deepCopy'),
  5913. category: 'copying',
  5914. fn: function (){
  5915. var self=this;
  5916. var newCollection=nil;
  5917. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5918. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(each, "_deepCopy", [])]);})]);
  5919. return newCollection;
  5920. return self;},
  5921. args: [],
  5922. 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'),
  5923. messageSends: ["new", "class", "do:", "add:", "deepCopy"],
  5924. referencedClasses: []
  5925. }),
  5926. smalltalk.Array);
  5927. smalltalk.addMethod(
  5928. unescape('_copyFrom_to_'),
  5929. smalltalk.method({
  5930. selector: unescape('copyFrom%3Ato%3A'),
  5931. category: 'copying',
  5932. fn: function (anIndex, anotherIndex){
  5933. var self=this;
  5934. var array=nil;
  5935. array=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5936. smalltalk.send(anIndex, "_to_do_", [anotherIndex, (function(each){return smalltalk.send(array, "_add_", [smalltalk.send(self, "_at_", [each])]);})]);
  5937. return array;
  5938. return self;},
  5939. args: ["anIndex", "anotherIndex"],
  5940. 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'),
  5941. messageSends: ["new", "class", "to:do:", "add:", "at:"],
  5942. referencedClasses: []
  5943. }),
  5944. smalltalk.Array);
  5945. smalltalk.addMethod(
  5946. unescape('_join_'),
  5947. smalltalk.method({
  5948. selector: unescape('join%3A'),
  5949. category: 'enumerating',
  5950. fn: function (aString){
  5951. var self=this;
  5952. return self.join(aString);
  5953. return self;},
  5954. args: ["aString"],
  5955. source: unescape('join%3A%20aString%0A%09%3Creturn%20self.join%28aString%29%3E'),
  5956. messageSends: [],
  5957. referencedClasses: []
  5958. }),
  5959. smalltalk.Array);
  5960. smalltalk.addMethod(
  5961. unescape('_asJavascript'),
  5962. smalltalk.method({
  5963. selector: unescape('asJavascript'),
  5964. category: 'converting',
  5965. fn: function (){
  5966. var self=this;
  5967. 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")]);
  5968. return self;},
  5969. args: [],
  5970. 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'),
  5971. messageSends: [unescape("%2C"), "join:", "collect:", "asJavascript"],
  5972. referencedClasses: []
  5973. }),
  5974. smalltalk.Array);
  5975. smalltalk.addMethod(
  5976. unescape('_sort'),
  5977. smalltalk.method({
  5978. selector: unescape('sort'),
  5979. category: 'enumerating',
  5980. fn: function (){
  5981. var self=this;
  5982. return smalltalk.send(self, "_basicPerform_", ["sort"]);
  5983. return self;},
  5984. args: [],
  5985. source: unescape('sort%0A%20%20%20%20%5Eself%20basicPerform%3A%20%27sort%27'),
  5986. messageSends: ["basicPerform:"],
  5987. referencedClasses: []
  5988. }),
  5989. smalltalk.Array);
  5990. smalltalk.addMethod(
  5991. unescape('_sort_'),
  5992. smalltalk.method({
  5993. selector: unescape('sort%3A'),
  5994. category: 'enumerating',
  5995. fn: function (aBlock){
  5996. var self=this;
  5997. return self.sort(function(a, b) {
  5998. if(aBlock(a,b)) {return -1} else {return 1}
  5999. })
  6000. ;
  6001. return self;},
  6002. args: ["aBlock"],
  6003. 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'),
  6004. messageSends: [],
  6005. referencedClasses: []
  6006. }),
  6007. smalltalk.Array);
  6008. smalltalk.addMethod(
  6009. unescape('_remove_'),
  6010. smalltalk.method({
  6011. selector: unescape('remove%3A'),
  6012. category: 'adding/removing',
  6013. fn: function (anObject){
  6014. var self=this;
  6015. for(var i=0;i<self.length;i++) {
  6016. if(self[i] == anObject) {
  6017. self.splice(i,1);
  6018. break;
  6019. }
  6020. }
  6021. ;
  6022. return self;},
  6023. args: ["anObject"],
  6024. 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'),
  6025. messageSends: [],
  6026. referencedClasses: []
  6027. }),
  6028. smalltalk.Array);
  6029. smalltalk.addMethod(
  6030. unescape('_sorted'),
  6031. smalltalk.method({
  6032. selector: unescape('sorted'),
  6033. category: 'enumerating',
  6034. fn: function (){
  6035. var self=this;
  6036. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort", []);
  6037. return self;},
  6038. args: [],
  6039. source: unescape('sorted%0A%09%5Eself%20copy%20sort'),
  6040. messageSends: ["sort", "copy"],
  6041. referencedClasses: []
  6042. }),
  6043. smalltalk.Array);
  6044. smalltalk.addMethod(
  6045. unescape('_sorted_'),
  6046. smalltalk.method({
  6047. selector: unescape('sorted%3A'),
  6048. category: 'enumerating',
  6049. fn: function (aBlock){
  6050. var self=this;
  6051. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort_", [aBlock]);
  6052. return self;},
  6053. args: ["aBlock"],
  6054. source: unescape('sorted%3A%20aBlock%0A%09%5Eself%20copy%20sort%3A%20aBlock'),
  6055. messageSends: ["sort:", "copy"],
  6056. referencedClasses: []
  6057. }),
  6058. smalltalk.Array);
  6059. smalltalk.addMethod(
  6060. unescape('_asJSONObject'),
  6061. smalltalk.method({
  6062. selector: unescape('asJSONObject'),
  6063. category: 'converting',
  6064. fn: function (){
  6065. var self=this;
  6066. return smalltalk.send(self, "_collect_", [(function(each){return smalltalk.send(each, "_asJSONObject", []);})]);
  6067. return self;},
  6068. args: [],
  6069. source: unescape('asJSONObject%0A%09%5Eself%20collect%3A%20%5B%3Aeach%20%7C%20each%20asJSONObject%5D'),
  6070. messageSends: ["collect:", "asJSONObject"],
  6071. referencedClasses: []
  6072. }),
  6073. smalltalk.Array);
  6074. smalltalk.addMethod(
  6075. unescape('_removeFrom_to_'),
  6076. smalltalk.method({
  6077. selector: unescape('removeFrom%3Ato%3A'),
  6078. category: 'adding/removing',
  6079. fn: function (aNumber, anotherNumber){
  6080. var self=this;
  6081. self.splice(aNumber - 1,anotherNumber - 1);
  6082. return self;},
  6083. args: ["aNumber", "anotherNumber"],
  6084. source: unescape('removeFrom%3A%20aNumber%20to%3A%20anotherNumber%0A%09%3Cself.splice%28aNumber%20-%201%2CanotherNumber%20-%201%29%3E'),
  6085. messageSends: [],
  6086. referencedClasses: []
  6087. }),
  6088. smalltalk.Array);
  6089. smalltalk.addMethod(
  6090. unescape('_printString'),
  6091. smalltalk.method({
  6092. selector: unescape('printString'),
  6093. category: 'enumerating',
  6094. fn: function (){
  6095. var self=this;
  6096. var str=nil;
  6097. str=smalltalk.send("", "_writeStream", []);
  6098. smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.SequenceableCollection), "__comma", [unescape("%20%28")])]);
  6099. smalltalk.send(self, "_do_separatedBy_", [(function(each){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(each, "_printString", [])]);}), (function(){return smalltalk.send(str, "_nextPutAll_", [" "]);})]);
  6100. smalltalk.send(str, "_nextPutAll_", [unescape("%29")]);
  6101. return smalltalk.send(str, "_contents", []);
  6102. return self;},
  6103. args: [],
  6104. 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'),
  6105. messageSends: ["writeStream", "nextPutAll:", unescape("%2C"), "printString", "do:separatedBy:", "contents"],
  6106. referencedClasses: []
  6107. }),
  6108. smalltalk.Array);
  6109. smalltalk.addMethod(
  6110. unescape('_reversed'),
  6111. smalltalk.method({
  6112. selector: unescape('reversed'),
  6113. category: 'converting',
  6114. fn: function (){
  6115. var self=this;
  6116. return self._copy().reverse();
  6117. return self;},
  6118. args: [],
  6119. source: unescape('reversed%0A%09%3Creturn%20self._copy%28%29.reverse%28%29%3E'),
  6120. messageSends: [],
  6121. referencedClasses: []
  6122. }),
  6123. smalltalk.Array);
  6124. smalltalk.addMethod(
  6125. unescape('__eq'),
  6126. smalltalk.method({
  6127. selector: unescape('%3D'),
  6128. category: 'comparing',
  6129. fn: function (aCollection){
  6130. var self=this;
  6131. 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}})})();})]));
  6132. 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}})})();})]));})]);
  6133. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return true}})})();
  6134. return self;
  6135. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  6136. args: ["aCollection"],
  6137. 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'),
  6138. messageSends: ["ifFalse:", "and:", unescape("%3D"), "class", "size", "withIndexDo:", "at:"],
  6139. referencedClasses: []
  6140. }),
  6141. smalltalk.Array);
  6142. smalltalk.addClass('RegularExpression', smalltalk.Object, [], 'Kernel');
  6143. smalltalk.addMethod(
  6144. unescape('_compile_'),
  6145. smalltalk.method({
  6146. selector: unescape('compile%3A'),
  6147. category: 'evaluating',
  6148. fn: function (aString){
  6149. var self=this;
  6150. return self.compile(aString);
  6151. return self;},
  6152. args: ["aString"],
  6153. source: unescape('compile%3A%20aString%0A%09%3Creturn%20self.compile%28aString%29%3E'),
  6154. messageSends: [],
  6155. referencedClasses: []
  6156. }),
  6157. smalltalk.RegularExpression);
  6158. smalltalk.addMethod(
  6159. unescape('_exec_'),
  6160. smalltalk.method({
  6161. selector: unescape('exec%3A'),
  6162. category: 'evaluating',
  6163. fn: function (aString){
  6164. var self=this;
  6165. return self.exec(aString) || nil;
  6166. return self;},
  6167. args: ["aString"],
  6168. source: unescape('exec%3A%20aString%0A%09%3Creturn%20self.exec%28aString%29%20%7C%7C%20nil%3E'),
  6169. messageSends: [],
  6170. referencedClasses: []
  6171. }),
  6172. smalltalk.RegularExpression);
  6173. smalltalk.addMethod(
  6174. unescape('_test_'),
  6175. smalltalk.method({
  6176. selector: unescape('test%3A'),
  6177. category: 'evaluating',
  6178. fn: function (aString){
  6179. var self=this;
  6180. return self.test(aString);
  6181. return self;},
  6182. args: ["aString"],
  6183. source: unescape('test%3A%20aString%0A%09%3Creturn%20self.test%28aString%29%3E'),
  6184. messageSends: [],
  6185. referencedClasses: []
  6186. }),
  6187. smalltalk.RegularExpression);
  6188. smalltalk.addMethod(
  6189. unescape('_fromString_flag_'),
  6190. smalltalk.method({
  6191. selector: unescape('fromString%3Aflag%3A'),
  6192. category: 'instance creation',
  6193. fn: function (aString, anotherString){
  6194. var self=this;
  6195. return new RegExp(aString, anotherString);
  6196. return self;},
  6197. args: ["aString", "anotherString"],
  6198. source: unescape('fromString%3A%20aString%20flag%3A%20anotherString%0A%09%3Creturn%20new%20RegExp%28aString%2C%20anotherString%29%3E'),
  6199. messageSends: [],
  6200. referencedClasses: []
  6201. }),
  6202. smalltalk.RegularExpression.klass);
  6203. smalltalk.addMethod(
  6204. unescape('_fromString_'),
  6205. smalltalk.method({
  6206. selector: unescape('fromString%3A'),
  6207. category: 'instance creation',
  6208. fn: function (aString){
  6209. var self=this;
  6210. return smalltalk.send(self, "_fromString_flag_", [aString, ""]);
  6211. return self;},
  6212. args: ["aString"],
  6213. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%5Eself%20fromString%3A%20aString%20flag%3A%20%27%27'),
  6214. messageSends: ["fromString:flag:"],
  6215. referencedClasses: []
  6216. }),
  6217. smalltalk.RegularExpression.klass);
  6218. smalltalk.addClass('Error', smalltalk.Object, ['messageText'], 'Kernel');
  6219. smalltalk.addMethod(
  6220. unescape('_messageText'),
  6221. smalltalk.method({
  6222. selector: unescape('messageText'),
  6223. category: 'accessing',
  6224. fn: function (){
  6225. var self=this;
  6226. return self['@messageText'];
  6227. return self;},
  6228. args: [],
  6229. source: unescape('messageText%0A%09%5EmessageText'),
  6230. messageSends: [],
  6231. referencedClasses: []
  6232. }),
  6233. smalltalk.Error);
  6234. smalltalk.addMethod(
  6235. unescape('_messageText_'),
  6236. smalltalk.method({
  6237. selector: unescape('messageText%3A'),
  6238. category: 'accessing',
  6239. fn: function (aString){
  6240. var self=this;
  6241. self['@messageText']=aString;
  6242. return self;},
  6243. args: ["aString"],
  6244. source: unescape('messageText%3A%20aString%0A%09messageText%20%3A%3D%20aString'),
  6245. messageSends: [],
  6246. referencedClasses: []
  6247. }),
  6248. smalltalk.Error);
  6249. smalltalk.addMethod(
  6250. unescape('_signal'),
  6251. smalltalk.method({
  6252. selector: unescape('signal'),
  6253. category: 'signaling',
  6254. fn: function (){
  6255. var self=this;
  6256. self.context = smalltalk.getThisContext(); self.smalltalkError = true; throw(self);
  6257. return self;},
  6258. args: [],
  6259. source: unescape('signal%0A%09%3Cself.context%20%3D%20smalltalk.getThisContext%28%29%3B%20self.smalltalkError%20%3D%20true%3B%20throw%28self%29%3E'),
  6260. messageSends: [],
  6261. referencedClasses: []
  6262. }),
  6263. smalltalk.Error);
  6264. smalltalk.addMethod(
  6265. unescape('_context'),
  6266. smalltalk.method({
  6267. selector: unescape('context'),
  6268. category: 'accessing',
  6269. fn: function (){
  6270. var self=this;
  6271. return self.context;
  6272. return self;},
  6273. args: [],
  6274. source: unescape('context%0A%09%3Creturn%20self.context%3E'),
  6275. messageSends: [],
  6276. referencedClasses: []
  6277. }),
  6278. smalltalk.Error);
  6279. smalltalk.addMethod(
  6280. unescape('_jsStack'),
  6281. smalltalk.method({
  6282. selector: unescape('jsStack'),
  6283. category: 'accessing',
  6284. fn: function (){
  6285. var self=this;
  6286. return self.stack;
  6287. return self;},
  6288. args: [],
  6289. source: unescape('jsStack%0A%09%3Creturn%20self.stack%3E'),
  6290. messageSends: [],
  6291. referencedClasses: []
  6292. }),
  6293. smalltalk.Error);
  6294. smalltalk.addMethod(
  6295. unescape('_isSmalltalkError'),
  6296. smalltalk.method({
  6297. selector: unescape('isSmalltalkError'),
  6298. category: 'testing',
  6299. fn: function (){
  6300. var self=this;
  6301. return self.smalltalkError === true;
  6302. return self;},
  6303. args: [],
  6304. source: unescape('isSmalltalkError%0A%09%3Creturn%20self.smalltalkError%20%3D%3D%3D%20true%3E'),
  6305. messageSends: [],
  6306. referencedClasses: []
  6307. }),
  6308. smalltalk.Error);
  6309. smalltalk.addMethod(
  6310. unescape('_signal_'),
  6311. smalltalk.method({
  6312. selector: unescape('signal%3A'),
  6313. category: 'instance creation',
  6314. fn: function (aString){
  6315. var self=this;
  6316. return (function($rec){smalltalk.send($rec, "_messageText_", [aString]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send(self, "_new", []));
  6317. return self;},
  6318. args: ["aString"],
  6319. source: unescape('signal%3A%20aString%0A%09%20%20%20%20%5Eself%20new%0A%09%09messageText%3A%20aString%3B%0A%09%09signal'),
  6320. messageSends: ["messageText:", "signal", "new"],
  6321. referencedClasses: []
  6322. }),
  6323. smalltalk.Error.klass);
  6324. smalltalk.addClass('MethodContext', smalltalk.Object, [], 'Kernel');
  6325. smalltalk.addMethod(
  6326. unescape('_receiver'),
  6327. smalltalk.method({
  6328. selector: unescape('receiver'),
  6329. category: 'accessing',
  6330. fn: function (){
  6331. var self=this;
  6332. return self.receiver;
  6333. return self;},
  6334. args: [],
  6335. source: unescape('receiver%0A%09%3Creturn%20self.receiver%3E'),
  6336. messageSends: [],
  6337. referencedClasses: []
  6338. }),
  6339. smalltalk.MethodContext);
  6340. smalltalk.addMethod(
  6341. unescape('_selector'),
  6342. smalltalk.method({
  6343. selector: unescape('selector'),
  6344. category: 'accessing',
  6345. fn: function (){
  6346. var self=this;
  6347. return smalltalk.convertSelector(self.selector);
  6348. return self;},
  6349. args: [],
  6350. source: unescape('selector%0A%09%3Creturn%20smalltalk.convertSelector%28self.selector%29%3E'),
  6351. messageSends: [],
  6352. referencedClasses: []
  6353. }),
  6354. smalltalk.MethodContext);
  6355. smalltalk.addMethod(
  6356. unescape('_home'),
  6357. smalltalk.method({
  6358. selector: unescape('home'),
  6359. category: 'accessing',
  6360. fn: function (){
  6361. var self=this;
  6362. return self.homeContext;
  6363. return self;},
  6364. args: [],
  6365. source: unescape('home%0A%09%3Creturn%20self.homeContext%3E'),
  6366. messageSends: [],
  6367. referencedClasses: []
  6368. }),
  6369. smalltalk.MethodContext);
  6370. smalltalk.addMethod(
  6371. unescape('_temps'),
  6372. smalltalk.method({
  6373. selector: unescape('temps'),
  6374. category: 'accessing',
  6375. fn: function (){
  6376. var self=this;
  6377. return self.temps;
  6378. return self;},
  6379. args: [],
  6380. source: unescape('temps%0A%09%3Creturn%20self.temps%3E'),
  6381. messageSends: [],
  6382. referencedClasses: []
  6383. }),
  6384. smalltalk.MethodContext);
  6385. smalltalk.addMethod(
  6386. unescape('_printString'),
  6387. smalltalk.method({
  6388. selector: unescape('printString'),
  6389. category: 'accessing',
  6390. fn: function (){
  6391. var self=this;
  6392. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.Object), "__comma", [unescape("%28")]), "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", [unescape("%29")]);
  6393. return self;},
  6394. args: [],
  6395. source: unescape('printString%0A%09%5Esuper%20printString%2C%20%27%28%27%2C%20self%20asString%2C%20%27%29%27'),
  6396. messageSends: [unescape("%2C"), "printString", "asString"],
  6397. referencedClasses: []
  6398. }),
  6399. smalltalk.MethodContext);
  6400. smalltalk.addMethod(
  6401. unescape('_asString'),
  6402. smalltalk.method({
  6403. selector: unescape('asString'),
  6404. category: 'accessing',
  6405. fn: function (){
  6406. var self=this;
  6407. 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", [])]);
  6408. return self;},
  6409. args: [],
  6410. source: unescape('asString%0A%09%5Eself%20receiver%20class%20printString%2C%20%27%20%3E%3E%20%27%2C%20self%20selector'),
  6411. messageSends: [unescape("%2C"), "printString", "class", "receiver", "selector"],
  6412. referencedClasses: []
  6413. }),
  6414. smalltalk.MethodContext);
  6415. smalltalk.addClass('Association', smalltalk.Object, ['key', 'value'], 'Kernel');
  6416. smalltalk.addMethod(
  6417. unescape('__eq'),
  6418. smalltalk.method({
  6419. selector: unescape('%3D'),
  6420. category: 'comparing',
  6421. fn: function (anAssociation){
  6422. var self=this;
  6423. 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", [])]);})]);})]);
  6424. return self;},
  6425. args: ["anAssociation"],
  6426. 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'),
  6427. messageSends: ["and:", unescape("%3D"), "class", "key", "value"],
  6428. referencedClasses: []
  6429. }),
  6430. smalltalk.Association);
  6431. smalltalk.addMethod(
  6432. unescape('_key_'),
  6433. smalltalk.method({
  6434. selector: unescape('key%3A'),
  6435. category: 'accessing',
  6436. fn: function (aKey){
  6437. var self=this;
  6438. self['@key']=aKey;
  6439. return self;},
  6440. args: ["aKey"],
  6441. source: unescape('key%3A%20aKey%0A%09key%20%3A%3D%20aKey'),
  6442. messageSends: [],
  6443. referencedClasses: []
  6444. }),
  6445. smalltalk.Association);
  6446. smalltalk.addMethod(
  6447. unescape('_key'),
  6448. smalltalk.method({
  6449. selector: unescape('key'),
  6450. category: 'accessing',
  6451. fn: function (){
  6452. var self=this;
  6453. return self['@key'];
  6454. return self;},
  6455. args: [],
  6456. source: unescape('key%0A%09%5Ekey'),
  6457. messageSends: [],
  6458. referencedClasses: []
  6459. }),
  6460. smalltalk.Association);
  6461. smalltalk.addMethod(
  6462. unescape('_value_'),
  6463. smalltalk.method({
  6464. selector: unescape('value%3A'),
  6465. category: 'accessing',
  6466. fn: function (aValue){
  6467. var self=this;
  6468. self['@value']=aValue;
  6469. return self;},
  6470. args: ["aValue"],
  6471. source: unescape('value%3A%20aValue%0A%09value%20%3A%3D%20aValue'),
  6472. messageSends: [],
  6473. referencedClasses: []
  6474. }),
  6475. smalltalk.Association);
  6476. smalltalk.addMethod(
  6477. unescape('_value'),
  6478. smalltalk.method({
  6479. selector: unescape('value'),
  6480. category: 'accessing',
  6481. fn: function (){
  6482. var self=this;
  6483. return self['@value'];
  6484. return self;},
  6485. args: [],
  6486. source: unescape('value%0A%09%5Evalue'),
  6487. messageSends: [],
  6488. referencedClasses: []
  6489. }),
  6490. smalltalk.Association);
  6491. smalltalk.addMethod(
  6492. unescape('_storeOn_'),
  6493. smalltalk.method({
  6494. selector: unescape('storeOn%3A'),
  6495. category: 'comparing',
  6496. fn: function (aStream){
  6497. var self=this;
  6498. smalltalk.send(self['@key'], "_storeOn_", [aStream]);
  6499. smalltalk.send(aStream, "_nextPutAll_", [unescape("-%3E")]);
  6500. smalltalk.send(self['@value'], "_storeOn_", [aStream]);
  6501. return self;},
  6502. args: ["aStream"],
  6503. source: unescape('storeOn%3A%20aStream%0A%09%22Store%20in%20the%20format%20%28key-%3Evalue%29%22%0A%0A%09%22aStream%20nextPutAll%3A%20%27%28%27.%22%0A%09key%20storeOn%3A%20aStream.%0A%09aStream%20nextPutAll%3A%20%27-%3E%27.%0A%09value%20storeOn%3A%20aStream.%0A%09%22aStream%20nextPutAll%3A%20%27%29%27%22'),
  6504. messageSends: ["storeOn:", "nextPutAll:"],
  6505. referencedClasses: []
  6506. }),
  6507. smalltalk.Association);
  6508. smalltalk.addMethod(
  6509. unescape('_key_value_'),
  6510. smalltalk.method({
  6511. selector: unescape('key%3Avalue%3A'),
  6512. category: 'instance creation',
  6513. fn: function (aKey, aValue){
  6514. var self=this;
  6515. return (function($rec){smalltalk.send($rec, "_key_", [aKey]);smalltalk.send($rec, "_value_", [aValue]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  6516. return self;},
  6517. args: ["aKey", "aValue"],
  6518. 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'),
  6519. messageSends: ["key:", "value:", "yourself", "new"],
  6520. referencedClasses: []
  6521. }),
  6522. smalltalk.Association.klass);
  6523. smalltalk.addClass('Dictionary', smalltalk.Collection, ['keys'], 'Kernel');
  6524. smalltalk.addMethod(
  6525. unescape('__eq'),
  6526. smalltalk.method({
  6527. selector: unescape('%3D'),
  6528. category: 'comparing',
  6529. fn: function (aDictionary){
  6530. var self=this;
  6531. 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}})})();})]));
  6532. ((($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}})})();})]));
  6533. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return smalltalk.send(smalltalk.send(self, "_associations", []), "__eq", [smalltalk.send(aDictionary, "_associations", [])])}})})();
  6534. return self;
  6535. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  6536. args: ["aDictionary"],
  6537. 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'),
  6538. messageSends: ["ifFalse:", unescape("%3D"), "class", "size", "associations"],
  6539. referencedClasses: []
  6540. }),
  6541. smalltalk.Dictionary);
  6542. smalltalk.addMethod(
  6543. unescape('_shallowCopy'),
  6544. smalltalk.method({
  6545. selector: unescape('shallowCopy'),
  6546. category: 'copying',
  6547. fn: function (){
  6548. var self=this;
  6549. var copy=nil;
  6550. copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6551. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(copy, "_at_put_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  6552. return copy;
  6553. return self;},
  6554. args: [],
  6555. 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'),
  6556. messageSends: ["new", "class", "associationsDo:", "at:put:", "key", "value"],
  6557. referencedClasses: []
  6558. }),
  6559. smalltalk.Dictionary);
  6560. smalltalk.addMethod(
  6561. unescape('_initialize'),
  6562. smalltalk.method({
  6563. selector: unescape('initialize'),
  6564. category: 'initialization',
  6565. fn: function (){
  6566. var self=this;
  6567. smalltalk.send(self, "_initialize", [], smalltalk.Collection);
  6568. self['@keys']=[];
  6569. return self;},
  6570. args: [],
  6571. source: unescape('initialize%0A%20%20%20%20%09super%20initialize.%0A%20%20%20%20%09keys%20%3A%3D%20%23%28%29'),
  6572. messageSends: ["initialize"],
  6573. referencedClasses: []
  6574. }),
  6575. smalltalk.Dictionary);
  6576. smalltalk.addMethod(
  6577. unescape('_size'),
  6578. smalltalk.method({
  6579. selector: unescape('size'),
  6580. category: 'accessing',
  6581. fn: function (){
  6582. var self=this;
  6583. return smalltalk.send(self['@keys'], "_size", []);
  6584. return self;},
  6585. args: [],
  6586. source: unescape('size%0A%09%5Ekeys%20size'),
  6587. messageSends: ["size"],
  6588. referencedClasses: []
  6589. }),
  6590. smalltalk.Dictionary);
  6591. smalltalk.addMethod(
  6592. unescape('_associations'),
  6593. smalltalk.method({
  6594. selector: unescape('associations'),
  6595. category: 'accessing',
  6596. fn: function (){
  6597. var self=this;
  6598. var associations=nil;
  6599. associations=[];
  6600. 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])])]);})]);
  6601. return associations;
  6602. return self;},
  6603. args: [],
  6604. 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'),
  6605. messageSends: ["do:", "add:", "key:value:", "at:"],
  6606. referencedClasses: ["Association"]
  6607. }),
  6608. smalltalk.Dictionary);
  6609. smalltalk.addMethod(
  6610. unescape('_keys'),
  6611. smalltalk.method({
  6612. selector: unescape('keys'),
  6613. category: 'accessing',
  6614. fn: function (){
  6615. var self=this;
  6616. return smalltalk.send(self['@keys'], "_copy", []);
  6617. return self;},
  6618. args: [],
  6619. source: unescape('keys%0A%09%5Ekeys%20copy'),
  6620. messageSends: ["copy"],
  6621. referencedClasses: []
  6622. }),
  6623. smalltalk.Dictionary);
  6624. smalltalk.addMethod(
  6625. unescape('_values'),
  6626. smalltalk.method({
  6627. selector: unescape('values'),
  6628. category: 'accessing',
  6629. fn: function (){
  6630. var self=this;
  6631. return smalltalk.send(self['@keys'], "_collect_", [(function(each){return smalltalk.send(self, "_at_", [each]);})]);
  6632. return self;},
  6633. args: [],
  6634. source: unescape('values%0A%20%20%20%20%09%5Ekeys%20collect%3A%20%5B%3Aeach%20%7C%20self%20at%3A%20each%5D'),
  6635. messageSends: ["collect:", "at:"],
  6636. referencedClasses: []
  6637. }),
  6638. smalltalk.Dictionary);
  6639. smalltalk.addMethod(
  6640. unescape('_at_put_'),
  6641. smalltalk.method({
  6642. selector: unescape('at%3Aput%3A'),
  6643. category: 'accessing',
  6644. fn: function (aKey, aValue){
  6645. var self=this;
  6646. ((($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]);})]));
  6647. return smalltalk.send(self, "_basicAt_put_", [aKey, aValue]);
  6648. return self;},
  6649. args: ["aKey", "aValue"],
  6650. 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'),
  6651. messageSends: ["ifFalse:", "includes:", "add:", "basicAt:put:"],
  6652. referencedClasses: []
  6653. }),
  6654. smalltalk.Dictionary);
  6655. smalltalk.addMethod(
  6656. unescape('_at_ifAbsent_'),
  6657. smalltalk.method({
  6658. selector: unescape('at%3AifAbsent%3A'),
  6659. category: 'accessing',
  6660. fn: function (aKey, aBlock){
  6661. var self=this;
  6662. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_keys", []), "_includes_", [aKey]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_basicAt_", [aKey]);}), aBlock]);
  6663. return self;},
  6664. args: ["aKey", "aBlock"],
  6665. 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'),
  6666. messageSends: ["ifTrue:ifFalse:", "includes:", "keys", "basicAt:"],
  6667. referencedClasses: []
  6668. }),
  6669. smalltalk.Dictionary);
  6670. smalltalk.addMethod(
  6671. unescape('_at_ifAbsentPut_'),
  6672. smalltalk.method({
  6673. selector: unescape('at%3AifAbsentPut%3A'),
  6674. category: 'accessing',
  6675. fn: function (aKey, aBlock){
  6676. var self=this;
  6677. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_at_put_", [aKey, smalltalk.send(aBlock, "_value", [])]);})]);
  6678. return self;},
  6679. args: ["aKey", "aBlock"],
  6680. 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'),
  6681. messageSends: ["at:ifAbsent:", "at:put:", "value"],
  6682. referencedClasses: []
  6683. }),
  6684. smalltalk.Dictionary);
  6685. smalltalk.addMethod(
  6686. unescape('_at_ifPresent_'),
  6687. smalltalk.method({
  6688. selector: unescape('at%3AifPresent%3A'),
  6689. category: 'accessing',
  6690. fn: function (aKey, aBlock){
  6691. var self=this;
  6692. return (($receiver = smalltalk.send(self, "_basicAt_", [aKey])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})() : nil;
  6693. return self;},
  6694. args: ["aKey", "aBlock"],
  6695. 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'),
  6696. messageSends: ["ifNotNil:", "basicAt:", "value:", "at:"],
  6697. referencedClasses: []
  6698. }),
  6699. smalltalk.Dictionary);
  6700. smalltalk.addMethod(
  6701. unescape('_at_ifPresent_ifAbsent_'),
  6702. smalltalk.method({
  6703. selector: unescape('at%3AifPresent%3AifAbsent%3A'),
  6704. category: 'accessing',
  6705. fn: function (aKey, aBlock, anotherBlock){
  6706. var self=this;
  6707. return smalltalk.send(smalltalk.send(self, "_basicAt_", [aKey]), "_ifNil_ifNotNil_", [anotherBlock, (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})]);
  6708. return self;},
  6709. args: ["aKey", "aBlock", "anotherBlock"],
  6710. 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'),
  6711. messageSends: ["ifNil:ifNotNil:", "basicAt:", "value:", "at:"],
  6712. referencedClasses: []
  6713. }),
  6714. smalltalk.Dictionary);
  6715. smalltalk.addMethod(
  6716. unescape('_add_'),
  6717. smalltalk.method({
  6718. selector: unescape('add%3A'),
  6719. category: 'adding/removing',
  6720. fn: function (anAssociation){
  6721. var self=this;
  6722. smalltalk.send(self, "_at_put_", [smalltalk.send(anAssociation, "_key", []), smalltalk.send(anAssociation, "_value", [])]);
  6723. return self;},
  6724. args: ["anAssociation"],
  6725. source: unescape('add%3A%20anAssociation%0A%20%20%20%20%09self%20at%3A%20anAssociation%20key%20put%3A%20anAssociation%20value'),
  6726. messageSends: ["at:put:", "key", "value"],
  6727. referencedClasses: []
  6728. }),
  6729. smalltalk.Dictionary);
  6730. smalltalk.addMethod(
  6731. unescape('_addAll_'),
  6732. smalltalk.method({
  6733. selector: unescape('addAll%3A'),
  6734. category: 'adding/removing',
  6735. fn: function (aDictionary){
  6736. var self=this;
  6737. smalltalk.send(self, "_addAll_", [smalltalk.send(aDictionary, "_associations", [])], smalltalk.Collection);
  6738. return aDictionary;
  6739. return self;},
  6740. args: ["aDictionary"],
  6741. source: unescape('addAll%3A%20aDictionary%0A%20%20%20%20%09super%20addAll%3A%20aDictionary%20associations.%0A%20%20%20%20%09%5EaDictionary'),
  6742. messageSends: ["addAll:", "associations"],
  6743. referencedClasses: []
  6744. }),
  6745. smalltalk.Dictionary);
  6746. smalltalk.addMethod(
  6747. unescape('__comma'),
  6748. smalltalk.method({
  6749. selector: unescape('%2C'),
  6750. category: 'copying',
  6751. fn: function (aCollection){
  6752. var self=this;
  6753. smalltalk.send(self, "_shouldNotImplement", []);
  6754. return self;},
  6755. args: ["aCollection"],
  6756. source: unescape('%2C%20aCollection%0A%09self%20shouldNotImplement'),
  6757. messageSends: ["shouldNotImplement"],
  6758. referencedClasses: []
  6759. }),
  6760. smalltalk.Dictionary);
  6761. smalltalk.addMethod(
  6762. unescape('_copyFrom_to_'),
  6763. smalltalk.method({
  6764. selector: unescape('copyFrom%3Ato%3A'),
  6765. category: 'copying',
  6766. fn: function (anIndex, anotherIndex){
  6767. var self=this;
  6768. smalltalk.send(self, "_shouldNotImplement", []);
  6769. return self;},
  6770. args: ["anIndex", "anotherIndex"],
  6771. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20shouldNotImplement'),
  6772. messageSends: ["shouldNotImplement"],
  6773. referencedClasses: []
  6774. }),
  6775. smalltalk.Dictionary);
  6776. smalltalk.addMethod(
  6777. unescape('_associationsDo_'),
  6778. smalltalk.method({
  6779. selector: unescape('associationsDo%3A'),
  6780. category: 'enumerating',
  6781. fn: function (aBlock){
  6782. var self=this;
  6783. smalltalk.send(smalltalk.send(self, "_associations", []), "_do_", [aBlock]);
  6784. return self;},
  6785. args: ["aBlock"],
  6786. source: unescape('associationsDo%3A%20aBlock%0A%20%20%20%20%09self%20associations%20do%3A%20aBlock'),
  6787. messageSends: ["do:", "associations"],
  6788. referencedClasses: []
  6789. }),
  6790. smalltalk.Dictionary);
  6791. smalltalk.addMethod(
  6792. unescape('_keysAndValuesDo_'),
  6793. smalltalk.method({
  6794. selector: unescape('keysAndValuesDo%3A'),
  6795. category: 'enumerating',
  6796. fn: function (aBlock){
  6797. var self=this;
  6798. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(aBlock, "_value_value_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  6799. return self;},
  6800. args: ["aBlock"],
  6801. 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'),
  6802. messageSends: ["associationsDo:", "value:value:", "key", "value"],
  6803. referencedClasses: []
  6804. }),
  6805. smalltalk.Dictionary);
  6806. smalltalk.addMethod(
  6807. unescape('_do_'),
  6808. smalltalk.method({
  6809. selector: unescape('do%3A'),
  6810. category: 'enumerating',
  6811. fn: function (aBlock){
  6812. var self=this;
  6813. smalltalk.send(smalltalk.send(self, "_values", []), "_do_", [aBlock]);
  6814. return self;},
  6815. args: ["aBlock"],
  6816. source: unescape('do%3A%20aBlock%0A%20%20%20%20%09self%20values%20do%3A%20aBlock'),
  6817. messageSends: ["do:", "values"],
  6818. referencedClasses: []
  6819. }),
  6820. smalltalk.Dictionary);
  6821. smalltalk.addMethod(
  6822. unescape('_select_'),
  6823. smalltalk.method({
  6824. selector: unescape('select%3A'),
  6825. category: 'enumerating',
  6826. fn: function (aBlock){
  6827. var self=this;
  6828. var newDict=nil;
  6829. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6830. 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]);})]));})]);
  6831. return newDict;
  6832. return self;},
  6833. args: ["aBlock"],
  6834. 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'),
  6835. messageSends: ["new", "class", "keysAndValuesDo:", "ifTrue:", "value:", "at:put:"],
  6836. referencedClasses: []
  6837. }),
  6838. smalltalk.Dictionary);
  6839. smalltalk.addMethod(
  6840. unescape('_collect_'),
  6841. smalltalk.method({
  6842. selector: unescape('collect%3A'),
  6843. category: 'enumerating',
  6844. fn: function (aBlock){
  6845. var self=this;
  6846. var newDict=nil;
  6847. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6848. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(newDict, "_at_put_", [key, smalltalk.send(aBlock, "_value_", [value])]);})]);
  6849. return newDict;
  6850. return self;},
  6851. args: ["aBlock"],
  6852. 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'),
  6853. messageSends: ["new", "class", "keysAndValuesDo:", "at:put:", "value:"],
  6854. referencedClasses: []
  6855. }),
  6856. smalltalk.Dictionary);
  6857. smalltalk.addMethod(
  6858. unescape('_detect_ifNone_'),
  6859. smalltalk.method({
  6860. selector: unescape('detect%3AifNone%3A'),
  6861. category: 'enumerating',
  6862. fn: function (aBlock, anotherBlock){
  6863. var self=this;
  6864. return smalltalk.send(smalltalk.send(self, "_values", []), "_detect_ifNone_", [aBlock, anotherBlock]);
  6865. return self;},
  6866. args: ["aBlock", "anotherBlock"],
  6867. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eself%20values%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  6868. messageSends: ["detect:ifNone:", "values"],
  6869. referencedClasses: []
  6870. }),
  6871. smalltalk.Dictionary);
  6872. smalltalk.addMethod(
  6873. unescape('_includes_'),
  6874. smalltalk.method({
  6875. selector: unescape('includes%3A'),
  6876. category: 'enumerating',
  6877. fn: function (anObject){
  6878. var self=this;
  6879. return smalltalk.send(smalltalk.send(self, "_values", []), "_includes_", [anObject]);
  6880. return self;},
  6881. args: ["anObject"],
  6882. source: unescape('includes%3A%20anObject%0A%09%5Eself%20values%20includes%3A%20anObject'),
  6883. messageSends: ["includes:", "values"],
  6884. referencedClasses: []
  6885. }),
  6886. smalltalk.Dictionary);
  6887. smalltalk.addMethod(
  6888. unescape('_remove_'),
  6889. smalltalk.method({
  6890. selector: unescape('remove%3A'),
  6891. category: 'adding/removing',
  6892. fn: function (aKey){
  6893. var self=this;
  6894. smalltalk.send(self, "_removeKey_", [aKey]);
  6895. return self;},
  6896. args: ["aKey"],
  6897. source: unescape('remove%3A%20aKey%0A%20%20%20%20self%20removeKey%3A%20aKey'),
  6898. messageSends: ["removeKey:"],
  6899. referencedClasses: []
  6900. }),
  6901. smalltalk.Dictionary);
  6902. smalltalk.addMethod(
  6903. unescape('_removeKey_'),
  6904. smalltalk.method({
  6905. selector: unescape('removeKey%3A'),
  6906. category: 'adding/removing',
  6907. fn: function (aKey){
  6908. var self=this;
  6909. smalltalk.send(self['@keys'], "_remove_", [aKey]);
  6910. return self;},
  6911. args: ["aKey"],
  6912. source: unescape('removeKey%3A%20aKey%0A%20%20%20%20keys%20remove%3A%20aKey'),
  6913. messageSends: ["remove:"],
  6914. referencedClasses: []
  6915. }),
  6916. smalltalk.Dictionary);
  6917. smalltalk.addMethod(
  6918. unescape('_at_'),
  6919. smalltalk.method({
  6920. selector: unescape('at%3A'),
  6921. category: 'accessing',
  6922. fn: function (aKey){
  6923. var self=this;
  6924. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  6925. return self;},
  6926. args: ["aKey"],
  6927. source: unescape('at%3A%20aKey%0A%09%5Eself%20at%3A%20aKey%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  6928. messageSends: ["at:ifAbsent:", "errorNotFound"],
  6929. referencedClasses: []
  6930. }),
  6931. smalltalk.Dictionary);
  6932. smalltalk.addMethod(
  6933. unescape('_asJSONObject'),
  6934. smalltalk.method({
  6935. selector: unescape('asJSONObject'),
  6936. category: 'converting',
  6937. fn: function (){
  6938. var self=this;
  6939. var object=nil;
  6940. object=smalltalk.send((smalltalk.Object || Object), "_new", []);
  6941. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(object, "_basicAt_put_", [key, smalltalk.send(value, "_asJSONObject", [])]);})]);
  6942. return object;
  6943. return self;},
  6944. args: [],
  6945. 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'),
  6946. messageSends: ["new", "keysAndValuesDo:", "basicAt:put:", "asJSONObject"],
  6947. referencedClasses: ["Object"]
  6948. }),
  6949. smalltalk.Dictionary);
  6950. smalltalk.addMethod(
  6951. unescape('_printString'),
  6952. smalltalk.method({
  6953. selector: unescape('printString'),
  6954. category: 'printing',
  6955. fn: function (){
  6956. var self=this;
  6957. 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")]);})]);
  6958. return self;},
  6959. args: [],
  6960. 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'),
  6961. messageSends: ["streamContents:", "nextPutAll:", "printString", "do:separatedBy:", "associations", "key", "value"],
  6962. referencedClasses: ["String"]
  6963. }),
  6964. smalltalk.Dictionary);
  6965. smalltalk.addMethod(
  6966. unescape('_storeOn_'),
  6967. smalltalk.method({
  6968. selector: unescape('storeOn%3A'),
  6969. category: 'printing',
  6970. fn: function (aStream){
  6971. var self=this;
  6972. smalltalk.send(aStream, "_nextPutAll_", [unescape("%23%7B")]);
  6973. smalltalk.send(smalltalk.send(self, "_associations", []), "_do_separatedBy_", [(function(each){return smalltalk.send(each, "_storeOn_", [aStream]);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [". "]);})]);
  6974. smalltalk.send(aStream, "_nextPutAll_", [unescape("%7D")]);
  6975. return self;},
  6976. args: ["aStream"],
  6977. source: unescape('storeOn%3A%20aStream%0A%09aStream%20nextPutAll%3A%20%27%23%7B%27.%0A%09self%20associations%0A%09%09do%3A%20%5B%3Aeach%20%7C%20each%20storeOn%3A%20aStream%5D%0A%09%09separatedBy%3A%20%5B%20aStream%20nextPutAll%3A%20%27.%20%27%5D.%0A%09aStream%20nextPutAll%3A%20%27%7D%27'),
  6978. messageSends: ["nextPutAll:", "do:separatedBy:", "associations", "storeOn:"],
  6979. referencedClasses: []
  6980. }),
  6981. smalltalk.Dictionary);
  6982. smalltalk.addMethod(
  6983. unescape('_fromPairs_'),
  6984. smalltalk.method({
  6985. selector: unescape('fromPairs%3A'),
  6986. category: 'instance creation',
  6987. fn: function (aCollection){
  6988. var self=this;
  6989. var dict=nil;
  6990. dict=smalltalk.send(self, "_new", []);
  6991. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(dict, "_add_", [each]);})]);
  6992. return dict;
  6993. return self;},
  6994. args: ["aCollection"],
  6995. 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'),
  6996. messageSends: ["new", "do:", "add:"],
  6997. referencedClasses: []
  6998. }),
  6999. smalltalk.Dictionary.klass);
  7000. smalltalk.addClass('ClassBuilder', smalltalk.Object, [], 'Kernel');
  7001. smalltalk.addMethod(
  7002. unescape('_superclass_subclass_'),
  7003. smalltalk.method({
  7004. selector: unescape('superclass%3Asubclass%3A'),
  7005. category: 'class creation',
  7006. fn: function (aClass, aString){
  7007. var self=this;
  7008. return smalltalk.send(self, "_superclass_subclass_instanceVariableNames_package_", [aClass, aString, "", nil]);
  7009. return self;},
  7010. args: ["aClass", "aString"],
  7011. 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'),
  7012. messageSends: ["superclass:subclass:instanceVariableNames:package:"],
  7013. referencedClasses: []
  7014. }),
  7015. smalltalk.ClassBuilder);
  7016. smalltalk.addMethod(
  7017. unescape('_class_instanceVariableNames_'),
  7018. smalltalk.method({
  7019. selector: unescape('class%3AinstanceVariableNames%3A'),
  7020. category: 'class creation',
  7021. fn: function (aClass, aString){
  7022. var self=this;
  7023. ((($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"])]);})]));
  7024. smalltalk.send(aClass, "_basicAt_put_", ["iVarNames", smalltalk.send(self, "_instanceVariableNamesFor_", [aString])]);
  7025. smalltalk.send(self, "_setupClass_", [aClass]);
  7026. return self;},
  7027. args: ["aClass", "aString"],
  7028. 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'),
  7029. messageSends: ["ifFalse:", "isMetaclass", "error:", unescape("%2C"), "name", "basicAt:put:", "instanceVariableNamesFor:", "setupClass:"],
  7030. referencedClasses: []
  7031. }),
  7032. smalltalk.ClassBuilder);
  7033. smalltalk.addMethod(
  7034. unescape('_instanceVariableNamesFor_'),
  7035. smalltalk.method({
  7036. selector: unescape('instanceVariableNamesFor%3A'),
  7037. category: 'private',
  7038. fn: function (aString){
  7039. var self=this;
  7040. return smalltalk.send(smalltalk.send(aString, "_tokenize_", [" "]), "_reject_", [(function(each){return smalltalk.send(each, "_isEmpty", []);})]);
  7041. return self;},
  7042. args: ["aString"],
  7043. 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'),
  7044. messageSends: ["reject:", "tokenize:", "isEmpty"],
  7045. referencedClasses: []
  7046. }),
  7047. smalltalk.ClassBuilder);
  7048. smalltalk.addMethod(
  7049. unescape('_addSubclassOf_named_instanceVariableNames_'),
  7050. smalltalk.method({
  7051. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3A'),
  7052. category: 'private',
  7053. fn: function (aClass, aString, aCollection){
  7054. var self=this;
  7055. smalltalk.addClass(aString, aClass, aCollection);
  7056. return smalltalk[aString];
  7057. return self;},
  7058. args: ["aClass", "aString", "aCollection"],
  7059. 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'),
  7060. messageSends: [],
  7061. referencedClasses: []
  7062. }),
  7063. smalltalk.ClassBuilder);
  7064. smalltalk.addMethod(
  7065. unescape('_setupClass_'),
  7066. smalltalk.method({
  7067. selector: unescape('setupClass%3A'),
  7068. category: 'private',
  7069. fn: function (aClass){
  7070. var self=this;
  7071. smalltalk.init(aClass);;
  7072. return self;},
  7073. args: ["aClass"],
  7074. source: unescape('setupClass%3A%20aClass%0A%09%3Csmalltalk.init%28aClass%29%3B%3E'),
  7075. messageSends: [],
  7076. referencedClasses: []
  7077. }),
  7078. smalltalk.ClassBuilder);
  7079. smalltalk.addMethod(
  7080. unescape('_superclass_subclass_instanceVariableNames_package_'),
  7081. smalltalk.method({
  7082. selector: unescape('superclass%3Asubclass%3AinstanceVariableNames%3Apackage%3A'),
  7083. category: 'class creation',
  7084. fn: function (aClass, aString, aString2, aString3){
  7085. var self=this;
  7086. var newClass=nil;
  7087. newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [aClass, aString, smalltalk.send(self, "_instanceVariableNamesFor_", [aString2]), (($receiver = aString3) == nil || $receiver == undefined) ? (function(){return "unclassified";})() : $receiver]);
  7088. smalltalk.send(self, "_setupClass_", [newClass]);
  7089. return newClass;
  7090. return self;},
  7091. args: ["aClass", "aString", "aString2", "aString3"],
  7092. 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'),
  7093. messageSends: ["addSubclassOf:named:instanceVariableNames:package:", "instanceVariableNamesFor:", "ifNil:", "setupClass:"],
  7094. referencedClasses: []
  7095. }),
  7096. smalltalk.ClassBuilder);
  7097. smalltalk.addMethod(
  7098. unescape('_addSubclassOf_named_instanceVariableNames_package_'),
  7099. smalltalk.method({
  7100. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3Apackage%3A'),
  7101. category: 'private',
  7102. fn: function (aClass, aString, aCollection, packageName){
  7103. var self=this;
  7104. smalltalk.addClass(aString, aClass, aCollection, packageName);
  7105. return smalltalk[aString];
  7106. return self;},
  7107. args: ["aClass", "aString", "aCollection", "packageName"],
  7108. 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'),
  7109. messageSends: [],
  7110. referencedClasses: []
  7111. }),
  7112. smalltalk.ClassBuilder);
  7113. smalltalk.addMethod(
  7114. unescape('_copyClass_named_'),
  7115. smalltalk.method({
  7116. selector: unescape('copyClass%3Anamed%3A'),
  7117. category: 'private',
  7118. fn: function (aClass, aString){
  7119. var self=this;
  7120. var newClass=nil;
  7121. newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [smalltalk.send(aClass, "_superclass", []), aString, smalltalk.send(aClass, "_instanceVariableNames", []), smalltalk.send(smalltalk.send(aClass, "_package", []), "_name", [])]);
  7122. smalltalk.send(self, "_setupClass_", [newClass]);
  7123. smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){smalltalk.send(newClass, "_addCompiledMethod_", [smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [smalltalk.send(each, "_source", []), newClass])]);return smalltalk.send(smalltalk.send(smalltalk.send(newClass, "_methodDictionary", []), "_at_", [smalltalk.send(each, "_selector", [])]), "_category_", [smalltalk.send(each, "_category", [])]);})]);
  7124. smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_methodDictionary", []), "_values", []), "_do_", [(function(each){smalltalk.send(smalltalk.send(newClass, "_class", []), "_addCompiledMethod_", [smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [smalltalk.send(each, "_source", []), smalltalk.send(newClass, "_class", [])])]);return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(newClass, "_class", []), "_methodDictionary", []), "_at_", [smalltalk.send(each, "_selector", [])]), "_category_", [smalltalk.send(each, "_category", [])]);})]);
  7125. smalltalk.send(self, "_setupClass_", [newClass]);
  7126. return newClass;
  7127. return self;},
  7128. args: ["aClass", "aString"],
  7129. source: unescape('copyClass%3A%20aClass%20named%3A%20aString%0A%09%7C%20newClass%20%7C%0A%0A%09newClass%20%3A%3D%20self%20%0A%09%09addSubclassOf%3A%20aClass%20superclass%0A%09%09named%3A%20aString%20%0A%09%09instanceVariableNames%3A%20aClass%20instanceVariableNames%20%0A%09%09package%3A%20aClass%20package%20name.%0A%0A%09self%20setupClass%3A%20newClass.%0A%0A%09aClass%20methodDictionary%20values%20do%3A%20%5B%3Aeach%20%7C%0A%09%09newClass%20addCompiledMethod%3A%20%28Compiler%20new%20load%3A%20each%20source%20forClass%3A%20newClass%29.%0A%09%09%28newClass%20methodDictionary%20at%3A%20each%20selector%29%20category%3A%20each%20category%5D.%0A%0A%09aClass%20class%20methodDictionary%20values%20do%3A%20%5B%3Aeach%20%7C%0A%09%09newClass%20class%20addCompiledMethod%3A%20%28Compiler%20new%20load%3A%20each%20source%20forClass%3A%20newClass%20class%29.%0A%09%09%28newClass%20class%20methodDictionary%20at%3A%20each%20selector%29%20category%3A%20each%20category%5D.%0A%0A%09self%20setupClass%3A%20newClass.%0A%09%5EnewClass'),
  7130. messageSends: ["addSubclassOf:named:instanceVariableNames:package:", "superclass", "instanceVariableNames", "name", "package", "setupClass:", "do:", "values", "methodDictionary", "addCompiledMethod:", "load:forClass:", "new", "source", "category:", "at:", "selector", "category", "class"],
  7131. referencedClasses: ["Compiler"]
  7132. }),
  7133. smalltalk.ClassBuilder);
  7134. smalltalk.addClass('ClassCategoryReader', smalltalk.Object, ['class', 'category', 'chunkParser'], 'Kernel');
  7135. smalltalk.addMethod(
  7136. unescape('_initialize'),
  7137. smalltalk.method({
  7138. selector: unescape('initialize'),
  7139. category: 'initialization',
  7140. fn: function (){
  7141. var self=this;
  7142. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  7143. self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []);
  7144. return self;},
  7145. args: [],
  7146. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  7147. messageSends: ["initialize", "new"],
  7148. referencedClasses: ["ChunkParser"]
  7149. }),
  7150. smalltalk.ClassCategoryReader);
  7151. smalltalk.addMethod(
  7152. unescape('_class_category_'),
  7153. smalltalk.method({
  7154. selector: unescape('class%3Acategory%3A'),
  7155. category: 'accessing',
  7156. fn: function (aClass, aString){
  7157. var self=this;
  7158. self['@class']=aClass;
  7159. self['@category']=aString;
  7160. return self;},
  7161. args: ["aClass", "aString"],
  7162. source: unescape('class%3A%20aClass%20category%3A%20aString%0A%09class%20%3A%3D%20aClass.%0A%09category%20%3A%3D%20aString'),
  7163. messageSends: [],
  7164. referencedClasses: []
  7165. }),
  7166. smalltalk.ClassCategoryReader);
  7167. smalltalk.addMethod(
  7168. unescape('_scanFrom_'),
  7169. smalltalk.method({
  7170. selector: unescape('scanFrom%3A'),
  7171. category: 'fileIn',
  7172. fn: function (aChunkParser){
  7173. var self=this;
  7174. var chunk=nil;
  7175. (function(){while(!(function(){chunk=smalltalk.send(aChunkParser, "_nextChunk", []);return smalltalk.send(chunk, "_isEmpty", []);})()) {(function(){return smalltalk.send(self, "_compileMethod_", [chunk]);})()}})();
  7176. return self;},
  7177. args: ["aChunkParser"],
  7178. 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'),
  7179. messageSends: ["whileFalse:", "nextChunk", "isEmpty", "compileMethod:"],
  7180. referencedClasses: []
  7181. }),
  7182. smalltalk.ClassCategoryReader);
  7183. smalltalk.addMethod(
  7184. unescape('_compileMethod_'),
  7185. smalltalk.method({
  7186. selector: unescape('compileMethod%3A'),
  7187. category: 'private',
  7188. fn: function (aString){
  7189. var self=this;
  7190. var method=nil;
  7191. method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self['@class']]);
  7192. smalltalk.send(method, "_category_", [self['@category']]);
  7193. smalltalk.send(self['@class'], "_addCompiledMethod_", [method]);
  7194. return self;},
  7195. args: ["aString"],
  7196. 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'),
  7197. messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
  7198. referencedClasses: ["Compiler"]
  7199. }),
  7200. smalltalk.ClassCategoryReader);
  7201. smalltalk.addClass('Stream', smalltalk.Object, ['collection', 'position', 'streamSize'], 'Kernel');
  7202. smalltalk.addMethod(
  7203. unescape('_collection'),
  7204. smalltalk.method({
  7205. selector: unescape('collection'),
  7206. category: 'accessing',
  7207. fn: function (){
  7208. var self=this;
  7209. return self['@collection'];
  7210. return self;},
  7211. args: [],
  7212. source: unescape('collection%0A%09%5Ecollection'),
  7213. messageSends: [],
  7214. referencedClasses: []
  7215. }),
  7216. smalltalk.Stream);
  7217. smalltalk.addMethod(
  7218. unescape('_setCollection_'),
  7219. smalltalk.method({
  7220. selector: unescape('setCollection%3A'),
  7221. category: 'accessing',
  7222. fn: function (aCollection){
  7223. var self=this;
  7224. self['@collection']=aCollection;
  7225. return self;},
  7226. args: ["aCollection"],
  7227. source: unescape('setCollection%3A%20aCollection%0A%09collection%20%3A%3D%20aCollection'),
  7228. messageSends: [],
  7229. referencedClasses: []
  7230. }),
  7231. smalltalk.Stream);
  7232. smalltalk.addMethod(
  7233. unescape('_position'),
  7234. smalltalk.method({
  7235. selector: unescape('position'),
  7236. category: 'accessing',
  7237. fn: function (){
  7238. var self=this;
  7239. return (($receiver = self['@position']) == nil || $receiver == undefined) ? (function(){return self['@position']=(0);})() : $receiver;
  7240. return self;},
  7241. args: [],
  7242. source: unescape('position%0A%09%5Eposition%20ifNil%3A%20%5Bposition%20%3A%3D%200%5D'),
  7243. messageSends: ["ifNil:"],
  7244. referencedClasses: []
  7245. }),
  7246. smalltalk.Stream);
  7247. smalltalk.addMethod(
  7248. unescape('_position_'),
  7249. smalltalk.method({
  7250. selector: unescape('position%3A'),
  7251. category: 'accessing',
  7252. fn: function (anInteger){
  7253. var self=this;
  7254. self['@position']=anInteger;
  7255. return self;},
  7256. args: ["anInteger"],
  7257. source: unescape('position%3A%20anInteger%0A%09position%20%3A%3D%20anInteger'),
  7258. messageSends: [],
  7259. referencedClasses: []
  7260. }),
  7261. smalltalk.Stream);
  7262. smalltalk.addMethod(
  7263. unescape('_streamSize'),
  7264. smalltalk.method({
  7265. selector: unescape('streamSize'),
  7266. category: 'accessing',
  7267. fn: function (){
  7268. var self=this;
  7269. return self['@streamSize'];
  7270. return self;},
  7271. args: [],
  7272. source: unescape('streamSize%0A%09%5EstreamSize'),
  7273. messageSends: [],
  7274. referencedClasses: []
  7275. }),
  7276. smalltalk.Stream);
  7277. smalltalk.addMethod(
  7278. unescape('_setStreamSize_'),
  7279. smalltalk.method({
  7280. selector: unescape('setStreamSize%3A'),
  7281. category: 'accessing',
  7282. fn: function (anInteger){
  7283. var self=this;
  7284. self['@streamSize']=anInteger;
  7285. return self;},
  7286. args: ["anInteger"],
  7287. source: unescape('setStreamSize%3A%20anInteger%0A%09streamSize%20%3A%3D%20anInteger'),
  7288. messageSends: [],
  7289. referencedClasses: []
  7290. }),
  7291. smalltalk.Stream);
  7292. smalltalk.addMethod(
  7293. unescape('_contents'),
  7294. smalltalk.method({
  7295. selector: unescape('contents'),
  7296. category: 'accessing',
  7297. fn: function (){
  7298. var self=this;
  7299. return smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_streamSize", [])]);
  7300. return self;},
  7301. args: [],
  7302. 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'),
  7303. messageSends: ["copyFrom:to:", "collection", "streamSize"],
  7304. referencedClasses: []
  7305. }),
  7306. smalltalk.Stream);
  7307. smalltalk.addMethod(
  7308. unescape('_size'),
  7309. smalltalk.method({
  7310. selector: unescape('size'),
  7311. category: 'accessing',
  7312. fn: function (){
  7313. var self=this;
  7314. return smalltalk.send(self, "_streamSize", []);
  7315. return self;},
  7316. args: [],
  7317. source: unescape('size%0A%09%5Eself%20streamSize'),
  7318. messageSends: ["streamSize"],
  7319. referencedClasses: []
  7320. }),
  7321. smalltalk.Stream);
  7322. smalltalk.addMethod(
  7323. unescape('_reset'),
  7324. smalltalk.method({
  7325. selector: unescape('reset'),
  7326. category: 'actions',
  7327. fn: function (){
  7328. var self=this;
  7329. smalltalk.send(self, "_position_", [(0)]);
  7330. return self;},
  7331. args: [],
  7332. source: unescape('reset%0A%09self%20position%3A%200'),
  7333. messageSends: ["position:"],
  7334. referencedClasses: []
  7335. }),
  7336. smalltalk.Stream);
  7337. smalltalk.addMethod(
  7338. unescape('_close'),
  7339. smalltalk.method({
  7340. selector: unescape('close'),
  7341. category: 'actions',
  7342. fn: function (){
  7343. var self=this;
  7344. return self;},
  7345. args: [],
  7346. source: unescape('close'),
  7347. messageSends: [],
  7348. referencedClasses: []
  7349. }),
  7350. smalltalk.Stream);
  7351. smalltalk.addMethod(
  7352. unescape('_flush'),
  7353. smalltalk.method({
  7354. selector: unescape('flush'),
  7355. category: 'actions',
  7356. fn: function (){
  7357. var self=this;
  7358. return self;},
  7359. args: [],
  7360. source: unescape('flush'),
  7361. messageSends: [],
  7362. referencedClasses: []
  7363. }),
  7364. smalltalk.Stream);
  7365. smalltalk.addMethod(
  7366. unescape('_resetContents'),
  7367. smalltalk.method({
  7368. selector: unescape('resetContents'),
  7369. category: 'actions',
  7370. fn: function (){
  7371. var self=this;
  7372. smalltalk.send(self, "_reset", []);
  7373. smalltalk.send(self, "_setStreamSize_", [(0)]);
  7374. return self;},
  7375. args: [],
  7376. source: unescape('resetContents%0A%09self%20reset.%0A%09self%20setStreamSize%3A%200'),
  7377. messageSends: ["reset", "setStreamSize:"],
  7378. referencedClasses: []
  7379. }),
  7380. smalltalk.Stream);
  7381. smalltalk.addMethod(
  7382. unescape('_do_'),
  7383. smalltalk.method({
  7384. selector: unescape('do%3A'),
  7385. category: 'enumerating',
  7386. fn: function (aBlock){
  7387. var self=this;
  7388. (function(){while(!(function(){return smalltalk.send(self, "_atEnd", []);})()) {(function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_next", [])]);})()}})();
  7389. return self;},
  7390. args: ["aBlock"],
  7391. source: unescape('do%3A%20aBlock%0A%09%5Bself%20atEnd%5D%20whileFalse%3A%20%5BaBlock%20value%3A%20self%20next%5D'),
  7392. messageSends: ["whileFalse:", "atEnd", "value:", "next"],
  7393. referencedClasses: []
  7394. }),
  7395. smalltalk.Stream);
  7396. smalltalk.addMethod(
  7397. unescape('_setToEnd'),
  7398. smalltalk.method({
  7399. selector: unescape('setToEnd'),
  7400. category: 'positioning',
  7401. fn: function (){
  7402. var self=this;
  7403. smalltalk.send(self, "_position_", [smalltalk.send(self, "_size", [])]);
  7404. return self;},
  7405. args: [],
  7406. source: unescape('setToEnd%0A%09self%20position%3A%20self%20size'),
  7407. messageSends: ["position:", "size"],
  7408. referencedClasses: []
  7409. }),
  7410. smalltalk.Stream);
  7411. smalltalk.addMethod(
  7412. unescape('_skip_'),
  7413. smalltalk.method({
  7414. selector: unescape('skip%3A'),
  7415. category: 'positioning',
  7416. fn: function (anInteger){
  7417. var self=this;
  7418. 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)])]);
  7419. return self;},
  7420. args: ["anInteger"],
  7421. source: unescape('skip%3A%20anInteger%0A%09self%20position%3A%20%28%28self%20position%20+%20anInteger%29%20min%3A%20self%20size%20max%3A%200%29'),
  7422. messageSends: ["position:", "min:max:", unescape("+"), "position", "size"],
  7423. referencedClasses: []
  7424. }),
  7425. smalltalk.Stream);
  7426. smalltalk.addMethod(
  7427. unescape('_next'),
  7428. smalltalk.method({
  7429. selector: unescape('next'),
  7430. category: 'reading',
  7431. fn: function (){
  7432. var self=this;
  7433. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
  7434. return smalltalk.send(self['@collection'], "_at_", [smalltalk.send(self, "_position", [])]);
  7435. return self;},
  7436. args: [],
  7437. source: unescape('next%0A%09self%20position%3A%20self%20position%20+%201.%20%0A%09%5Ecollection%20at%3A%20self%20position'),
  7438. messageSends: ["position:", unescape("+"), "position", "at:"],
  7439. referencedClasses: []
  7440. }),
  7441. smalltalk.Stream);
  7442. smalltalk.addMethod(
  7443. unescape('_next_'),
  7444. smalltalk.method({
  7445. selector: unescape('next%3A'),
  7446. category: 'reading',
  7447. fn: function (anInteger){
  7448. var self=this;
  7449. var tempCollection=nil;
  7450. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  7451. 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", [])]);})]));})]);
  7452. return tempCollection;
  7453. return self;},
  7454. args: ["anInteger"],
  7455. 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'),
  7456. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", "add:", "next"],
  7457. referencedClasses: []
  7458. }),
  7459. smalltalk.Stream);
  7460. smalltalk.addMethod(
  7461. unescape('_nextPut_'),
  7462. smalltalk.method({
  7463. selector: unescape('nextPut%3A'),
  7464. category: 'writing',
  7465. fn: function (anObject){
  7466. var self=this;
  7467. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
  7468. smalltalk.send(smalltalk.send(self, "_collection", []), "_at_put_", [smalltalk.send(self, "_position", []), anObject]);
  7469. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  7470. return self;},
  7471. args: ["anObject"],
  7472. 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'),
  7473. messageSends: ["position:", unescape("+"), "position", "at:put:", "collection", "setStreamSize:", "max:", "streamSize"],
  7474. referencedClasses: []
  7475. }),
  7476. smalltalk.Stream);
  7477. smalltalk.addMethod(
  7478. unescape('_nextPutAll_'),
  7479. smalltalk.method({
  7480. selector: unescape('nextPutAll%3A'),
  7481. category: 'writing',
  7482. fn: function (aCollection){
  7483. var self=this;
  7484. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_nextPut_", [each]);})]);
  7485. return self;},
  7486. args: ["aCollection"],
  7487. source: unescape('nextPutAll%3A%20aCollection%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20self%20nextPut%3A%20each%5D'),
  7488. messageSends: ["do:", "nextPut:"],
  7489. referencedClasses: []
  7490. }),
  7491. smalltalk.Stream);
  7492. smalltalk.addMethod(
  7493. unescape('_peek'),
  7494. smalltalk.method({
  7495. selector: unescape('peek'),
  7496. category: 'reading',
  7497. fn: function (){
  7498. var self=this;
  7499. 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)]))]);})]));
  7500. return self;},
  7501. args: [],
  7502. 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'),
  7503. messageSends: ["ifFalse:", "atEnd", "at:", "collection", unescape("+"), "position"],
  7504. referencedClasses: []
  7505. }),
  7506. smalltalk.Stream);
  7507. smalltalk.addMethod(
  7508. unescape('_atEnd'),
  7509. smalltalk.method({
  7510. selector: unescape('atEnd'),
  7511. category: 'testing',
  7512. fn: function (){
  7513. var self=this;
  7514. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [smalltalk.send(self, "_size", [])]);
  7515. return self;},
  7516. args: [],
  7517. source: unescape('atEnd%0A%09%5Eself%20position%20%3D%20self%20size'),
  7518. messageSends: [unescape("%3D"), "position", "size"],
  7519. referencedClasses: []
  7520. }),
  7521. smalltalk.Stream);
  7522. smalltalk.addMethod(
  7523. unescape('_atStart'),
  7524. smalltalk.method({
  7525. selector: unescape('atStart'),
  7526. category: 'testing',
  7527. fn: function (){
  7528. var self=this;
  7529. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [(0)]);
  7530. return self;},
  7531. args: [],
  7532. source: unescape('atStart%0A%09%5Eself%20position%20%3D%200'),
  7533. messageSends: [unescape("%3D"), "position"],
  7534. referencedClasses: []
  7535. }),
  7536. smalltalk.Stream);
  7537. smalltalk.addMethod(
  7538. unescape('_isEmpty'),
  7539. smalltalk.method({
  7540. selector: unescape('isEmpty'),
  7541. category: 'testing',
  7542. fn: function (){
  7543. var self=this;
  7544. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  7545. return self;},
  7546. args: [],
  7547. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  7548. messageSends: [unescape("%3D"), "size"],
  7549. referencedClasses: []
  7550. }),
  7551. smalltalk.Stream);
  7552. smalltalk.addMethod(
  7553. unescape('_on_'),
  7554. smalltalk.method({
  7555. selector: unescape('on%3A'),
  7556. category: 'instance creation',
  7557. fn: function (aCollection){
  7558. var self=this;
  7559. 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", []));
  7560. return self;},
  7561. args: ["aCollection"],
  7562. 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'),
  7563. messageSends: ["setCollection:", "setStreamSize:", "size", "yourself", "new"],
  7564. referencedClasses: []
  7565. }),
  7566. smalltalk.Stream.klass);
  7567. smalltalk.addClass('StringStream', smalltalk.Stream, [], 'Kernel');
  7568. smalltalk.addMethod(
  7569. unescape('_next_'),
  7570. smalltalk.method({
  7571. selector: unescape('next%3A'),
  7572. category: 'reading',
  7573. fn: function (anInteger){
  7574. var self=this;
  7575. var tempCollection=nil;
  7576. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  7577. 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", [])]);})]));})]);
  7578. return tempCollection;
  7579. return self;},
  7580. args: ["anInteger"],
  7581. 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'),
  7582. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", unescape("%2C"), "next"],
  7583. referencedClasses: []
  7584. }),
  7585. smalltalk.StringStream);
  7586. smalltalk.addMethod(
  7587. unescape('_nextPut_'),
  7588. smalltalk.method({
  7589. selector: unescape('nextPut%3A'),
  7590. category: 'writing',
  7591. fn: function (aString){
  7592. var self=this;
  7593. smalltalk.send(self, "_nextPutAll_", [aString]);
  7594. return self;},
  7595. args: ["aString"],
  7596. source: unescape('nextPut%3A%20aString%0A%09self%20nextPutAll%3A%20aString'),
  7597. messageSends: ["nextPutAll:"],
  7598. referencedClasses: []
  7599. }),
  7600. smalltalk.StringStream);
  7601. smalltalk.addMethod(
  7602. unescape('_nextPutAll_'),
  7603. smalltalk.method({
  7604. selector: unescape('nextPutAll%3A'),
  7605. category: 'writing',
  7606. fn: function (aString){
  7607. var self=this;
  7608. 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", [])])])]);
  7609. 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", [])]))]);
  7610. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  7611. return self;},
  7612. args: ["aString"],
  7613. 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'),
  7614. messageSends: ["setCollection:", unescape("%2C"), "copyFrom:to:", "collection", "position", unescape("+"), "size", "position:", "setStreamSize:", "max:", "streamSize"],
  7615. referencedClasses: []
  7616. }),
  7617. smalltalk.StringStream);
  7618. smalltalk.addMethod(
  7619. unescape('_cr'),
  7620. smalltalk.method({
  7621. selector: unescape('cr'),
  7622. category: 'writing',
  7623. fn: function (){
  7624. var self=this;
  7625. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  7626. return self;},
  7627. args: [],
  7628. source: unescape('cr%0A%09%5Eself%20nextPutAll%3A%20String%20cr'),
  7629. messageSends: ["nextPutAll:", "cr"],
  7630. referencedClasses: ["String"]
  7631. }),
  7632. smalltalk.StringStream);
  7633. smalltalk.addMethod(
  7634. unescape('_crlf'),
  7635. smalltalk.method({
  7636. selector: unescape('crlf'),
  7637. category: 'writing',
  7638. fn: function (){
  7639. var self=this;
  7640. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_crlf", [])]);
  7641. return self;},
  7642. args: [],
  7643. source: unescape('crlf%0A%09%5Eself%20nextPutAll%3A%20String%20crlf'),
  7644. messageSends: ["nextPutAll:", "crlf"],
  7645. referencedClasses: ["String"]
  7646. }),
  7647. smalltalk.StringStream);
  7648. smalltalk.addMethod(
  7649. unescape('_lf'),
  7650. smalltalk.method({
  7651. selector: unescape('lf'),
  7652. category: 'writing',
  7653. fn: function (){
  7654. var self=this;
  7655. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_lf", [])]);
  7656. return self;},
  7657. args: [],
  7658. source: unescape('lf%0A%09%5Eself%20nextPutAll%3A%20String%20lf'),
  7659. messageSends: ["nextPutAll:", "lf"],
  7660. referencedClasses: ["String"]
  7661. }),
  7662. smalltalk.StringStream);
  7663. smalltalk.addMethod(
  7664. unescape('_space'),
  7665. smalltalk.method({
  7666. selector: unescape('space'),
  7667. category: 'writing',
  7668. fn: function (){
  7669. var self=this;
  7670. smalltalk.send(self, "_nextPut_", [" "]);
  7671. return self;},
  7672. args: [],
  7673. source: unescape('space%0A%09self%20nextPut%3A%20%27%20%27'),
  7674. messageSends: ["nextPut:"],
  7675. referencedClasses: []
  7676. }),
  7677. smalltalk.StringStream);
  7678. smalltalk.addClass('ClassCommentReader', smalltalk.Object, ['class', 'chunkParser'], 'Kernel');
  7679. smalltalk.addMethod(
  7680. unescape('_class_'),
  7681. smalltalk.method({
  7682. selector: unescape('class%3A'),
  7683. category: 'accessing',
  7684. fn: function (aClass){
  7685. var self=this;
  7686. self['@class']=aClass;
  7687. return self;},
  7688. args: ["aClass"],
  7689. source: unescape('class%3A%20aClass%0A%09class%20%3A%3D%20aClass'),
  7690. messageSends: [],
  7691. referencedClasses: []
  7692. }),
  7693. smalltalk.ClassCommentReader);
  7694. smalltalk.addMethod(
  7695. unescape('_scanFrom_'),
  7696. smalltalk.method({
  7697. selector: unescape('scanFrom%3A'),
  7698. category: 'fileIn',
  7699. fn: function (aChunkParser){
  7700. var self=this;
  7701. var chunk=nil;
  7702. chunk=smalltalk.send(aChunkParser, "_nextChunk", []);
  7703. ((($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]);})]));
  7704. return self;},
  7705. args: ["aChunkParser"],
  7706. 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.'),
  7707. messageSends: ["nextChunk", "ifFalse:", "isEmpty", "setComment:"],
  7708. referencedClasses: []
  7709. }),
  7710. smalltalk.ClassCommentReader);
  7711. smalltalk.addMethod(
  7712. unescape('_initialize'),
  7713. smalltalk.method({
  7714. selector: unescape('initialize'),
  7715. category: 'initialization',
  7716. fn: function (){
  7717. var self=this;
  7718. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  7719. self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []);
  7720. return self;},
  7721. args: [],
  7722. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  7723. messageSends: ["initialize", "new"],
  7724. referencedClasses: ["ChunkParser"]
  7725. }),
  7726. smalltalk.ClassCommentReader);
  7727. smalltalk.addMethod(
  7728. unescape('_setComment_'),
  7729. smalltalk.method({
  7730. selector: unescape('setComment%3A'),
  7731. category: 'private',
  7732. fn: function (aString){
  7733. var self=this;
  7734. smalltalk.send(self['@class'], "_comment_", [aString]);
  7735. return self;},
  7736. args: ["aString"],
  7737. source: unescape('setComment%3A%20aString%0A%20%20%20%20class%20comment%3A%20aString'),
  7738. messageSends: ["comment:"],
  7739. referencedClasses: []
  7740. }),
  7741. smalltalk.ClassCommentReader);
  7742. smalltalk.addClass('Random', smalltalk.Object, [], 'Kernel');
  7743. smalltalk.addMethod(
  7744. unescape('_next'),
  7745. smalltalk.method({
  7746. selector: unescape('next'),
  7747. category: 'accessing',
  7748. fn: function (){
  7749. var self=this;
  7750. return Math.random();
  7751. return self;},
  7752. args: [],
  7753. source: unescape('next%0A%09%3Creturn%20Math.random%28%29%3E'),
  7754. messageSends: [],
  7755. referencedClasses: []
  7756. }),
  7757. smalltalk.Random);
  7758. smalltalk.addMethod(
  7759. unescape('_next_'),
  7760. smalltalk.method({
  7761. selector: unescape('next%3A'),
  7762. category: 'accessing',
  7763. fn: function (anInteger){
  7764. var self=this;
  7765. return smalltalk.send(smalltalk.send((1), "_to_", [anInteger]), "_collect_", [(function(each){return smalltalk.send(self, "_next", []);})]);
  7766. return self;},
  7767. args: ["anInteger"],
  7768. 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'),
  7769. messageSends: ["collect:", "to:", "next"],
  7770. referencedClasses: []
  7771. }),
  7772. smalltalk.Random);
  7773. smalltalk.addClass('Point', smalltalk.Object, ['x', 'y'], 'Kernel');
  7774. smalltalk.addMethod(
  7775. unescape('_x'),
  7776. smalltalk.method({
  7777. selector: unescape('x'),
  7778. category: 'accessing',
  7779. fn: function (){
  7780. var self=this;
  7781. return self['@x'];
  7782. return self;},
  7783. args: [],
  7784. source: unescape('x%0A%09%5Ex'),
  7785. messageSends: [],
  7786. referencedClasses: []
  7787. }),
  7788. smalltalk.Point);
  7789. smalltalk.addMethod(
  7790. unescape('_y'),
  7791. smalltalk.method({
  7792. selector: unescape('y'),
  7793. category: 'accessing',
  7794. fn: function (){
  7795. var self=this;
  7796. return self['@y'];
  7797. return self;},
  7798. args: [],
  7799. source: unescape('y%0A%09%5Ey'),
  7800. messageSends: [],
  7801. referencedClasses: []
  7802. }),
  7803. smalltalk.Point);
  7804. smalltalk.addMethod(
  7805. unescape('_y_'),
  7806. smalltalk.method({
  7807. selector: unescape('y%3A'),
  7808. category: 'accessing',
  7809. fn: function (aNumber){
  7810. var self=this;
  7811. self['@y']=aNumber;
  7812. return self;},
  7813. args: ["aNumber"],
  7814. source: unescape('y%3A%20aNumber%0A%09y%20%3A%3D%20aNumber'),
  7815. messageSends: [],
  7816. referencedClasses: []
  7817. }),
  7818. smalltalk.Point);
  7819. smalltalk.addMethod(
  7820. unescape('_x_'),
  7821. smalltalk.method({
  7822. selector: unescape('x%3A'),
  7823. category: 'accessing',
  7824. fn: function (aNumber){
  7825. var self=this;
  7826. self['@x']=aNumber;
  7827. return self;},
  7828. args: ["aNumber"],
  7829. source: unescape('x%3A%20aNumber%0A%09x%20%3A%3D%20aNumber'),
  7830. messageSends: [],
  7831. referencedClasses: []
  7832. }),
  7833. smalltalk.Point);
  7834. smalltalk.addMethod(
  7835. unescape('__star'),
  7836. smalltalk.method({
  7837. selector: unescape('*'),
  7838. category: 'arithmetic',
  7839. fn: function (aPoint){
  7840. var self=this;
  7841. 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", [])]))]);
  7842. return self;},
  7843. args: ["aPoint"],
  7844. source: unescape('*%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20*%20aPoint%20asPoint%20x%20y%3A%20self%20y%20*%20aPoint%20asPoint%20y'),
  7845. messageSends: ["x:y:", unescape("*"), "x", "asPoint", "y"],
  7846. referencedClasses: ["Point"]
  7847. }),
  7848. smalltalk.Point);
  7849. smalltalk.addMethod(
  7850. unescape('__plus'),
  7851. smalltalk.method({
  7852. selector: unescape('+'),
  7853. category: 'arithmetic',
  7854. fn: function (aPoint){
  7855. var self=this;
  7856. 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", [])]))]);
  7857. return self;},
  7858. args: ["aPoint"],
  7859. source: unescape('+%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20+%20aPoint%20asPoint%20x%20y%3A%20self%20y%20+%20aPoint%20asPoint%20y'),
  7860. messageSends: ["x:y:", unescape("+"), "x", "asPoint", "y"],
  7861. referencedClasses: ["Point"]
  7862. }),
  7863. smalltalk.Point);
  7864. smalltalk.addMethod(
  7865. unescape('__minus'),
  7866. smalltalk.method({
  7867. selector: unescape('-'),
  7868. category: 'arithmetic',
  7869. fn: function (aPoint){
  7870. var self=this;
  7871. 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", [])]))]);
  7872. return self;},
  7873. args: ["aPoint"],
  7874. source: unescape('-%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20-%20aPoint%20asPoint%20x%20y%3A%20self%20y%20-%20aPoint%20asPoint%20y'),
  7875. messageSends: ["x:y:", unescape("-"), "x", "asPoint", "y"],
  7876. referencedClasses: ["Point"]
  7877. }),
  7878. smalltalk.Point);
  7879. smalltalk.addMethod(
  7880. unescape('__slash'),
  7881. smalltalk.method({
  7882. selector: unescape('/'),
  7883. category: 'arithmetic',
  7884. fn: function (aPoint){
  7885. var self=this;
  7886. 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", [])]))]);
  7887. return self;},
  7888. args: ["aPoint"],
  7889. source: unescape('/%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20/%20aPoint%20asPoint%20x%20y%3A%20self%20y%20/%20aPoint%20asPoint%20y'),
  7890. messageSends: ["x:y:", unescape("/"), "x", "asPoint", "y"],
  7891. referencedClasses: ["Point"]
  7892. }),
  7893. smalltalk.Point);
  7894. smalltalk.addMethod(
  7895. unescape('_asPoint'),
  7896. smalltalk.method({
  7897. selector: unescape('asPoint'),
  7898. category: 'converting',
  7899. fn: function (){
  7900. var self=this;
  7901. return self;
  7902. return self;},
  7903. args: [],
  7904. source: unescape('asPoint%0A%09%5Eself'),
  7905. messageSends: [],
  7906. referencedClasses: []
  7907. }),
  7908. smalltalk.Point);
  7909. smalltalk.addMethod(
  7910. unescape('__eq'),
  7911. smalltalk.method({
  7912. selector: unescape('%3D'),
  7913. category: 'arithmetic',
  7914. fn: function (aPoint){
  7915. var self=this;
  7916. 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", [])])]);})]);
  7917. return self;},
  7918. args: ["aPoint"],
  7919. 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'),
  7920. messageSends: ["and:", unescape("%3D"), "class", unescape("%26"), "x", "y"],
  7921. referencedClasses: []
  7922. }),
  7923. smalltalk.Point);
  7924. smalltalk.addMethod(
  7925. unescape('_x_y_'),
  7926. smalltalk.method({
  7927. selector: unescape('x%3Ay%3A'),
  7928. category: 'instance creation',
  7929. fn: function (aNumber, anotherNumber){
  7930. var self=this;
  7931. return (function($rec){smalltalk.send($rec, "_x_", [aNumber]);smalltalk.send($rec, "_y_", [anotherNumber]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  7932. return self;},
  7933. args: ["aNumber", "anotherNumber"],
  7934. 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'),
  7935. messageSends: ["x:", "y:", "yourself", "new"],
  7936. referencedClasses: []
  7937. }),
  7938. smalltalk.Point.klass);
  7939. smalltalk.addClass('Message', smalltalk.Object, ['selector', 'arguments'], 'Kernel');
  7940. smalltalk.addMethod(
  7941. unescape('_selector'),
  7942. smalltalk.method({
  7943. selector: unescape('selector'),
  7944. category: 'accessing',
  7945. fn: function (){
  7946. var self=this;
  7947. return self['@selector'];
  7948. return self;},
  7949. args: [],
  7950. source: unescape('selector%0A%09%5Eselector'),
  7951. messageSends: [],
  7952. referencedClasses: []
  7953. }),
  7954. smalltalk.Message);
  7955. smalltalk.addMethod(
  7956. unescape('_selector_'),
  7957. smalltalk.method({
  7958. selector: unescape('selector%3A'),
  7959. category: 'accessing',
  7960. fn: function (aString){
  7961. var self=this;
  7962. self['@selector']=aString;
  7963. return self;},
  7964. args: ["aString"],
  7965. source: unescape('selector%3A%20aString%0A%09selector%20%3A%3D%20aString'),
  7966. messageSends: [],
  7967. referencedClasses: []
  7968. }),
  7969. smalltalk.Message);
  7970. smalltalk.addMethod(
  7971. unescape('_arguments_'),
  7972. smalltalk.method({
  7973. selector: unescape('arguments%3A'),
  7974. category: 'accessing',
  7975. fn: function (anArray){
  7976. var self=this;
  7977. self['@arguments']=anArray;
  7978. return self;},
  7979. args: ["anArray"],
  7980. source: unescape('arguments%3A%20anArray%0A%09arguments%20%3A%3D%20anArray'),
  7981. messageSends: [],
  7982. referencedClasses: []
  7983. }),
  7984. smalltalk.Message);
  7985. smalltalk.addMethod(
  7986. unescape('_arguments'),
  7987. smalltalk.method({
  7988. selector: unescape('arguments'),
  7989. category: 'accessing',
  7990. fn: function (){
  7991. var self=this;
  7992. return self['@arguments'];
  7993. return self;},
  7994. args: [],
  7995. source: unescape('arguments%0A%09%5Earguments'),
  7996. messageSends: [],
  7997. referencedClasses: []
  7998. }),
  7999. smalltalk.Message);
  8000. smalltalk.addMethod(
  8001. unescape('_printString'),
  8002. smalltalk.method({
  8003. selector: unescape('printString'),
  8004. category: 'printing',
  8005. fn: function (){
  8006. var self=this;
  8007. 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);})]);
  8008. return self;},
  8009. args: [],
  8010. 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'),
  8011. messageSends: ["streamContents:", "nextPutAll:", "printString"],
  8012. referencedClasses: ["String"]
  8013. }),
  8014. smalltalk.Message);
  8015. smalltalk.addMethod(
  8016. unescape('_selector_arguments_'),
  8017. smalltalk.method({
  8018. selector: unescape('selector%3Aarguments%3A'),
  8019. category: 'instance creation',
  8020. fn: function (aString, anArray){
  8021. var self=this;
  8022. return (function($rec){smalltalk.send($rec, "_selector_", [aString]);smalltalk.send($rec, "_arguments_", [anArray]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  8023. return self;},
  8024. args: ["aString", "anArray"],
  8025. 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'),
  8026. messageSends: ["selector:", "arguments:", "yourself", "new"],
  8027. referencedClasses: []
  8028. }),
  8029. smalltalk.Message.klass);
  8030. smalltalk.addClass('MessageNotUnderstood', smalltalk.Error, ['message', 'receiver'], 'Kernel');
  8031. smalltalk.addMethod(
  8032. unescape('_message'),
  8033. smalltalk.method({
  8034. selector: unescape('message'),
  8035. category: 'accessing',
  8036. fn: function (){
  8037. var self=this;
  8038. return self['@message'];
  8039. return self;},
  8040. args: [],
  8041. source: unescape('message%0A%09%5Emessage'),
  8042. messageSends: [],
  8043. referencedClasses: []
  8044. }),
  8045. smalltalk.MessageNotUnderstood);
  8046. smalltalk.addMethod(
  8047. unescape('_message_'),
  8048. smalltalk.method({
  8049. selector: unescape('message%3A'),
  8050. category: 'accessing',
  8051. fn: function (aMessage){
  8052. var self=this;
  8053. self['@message']=aMessage;
  8054. return self;},
  8055. args: ["aMessage"],
  8056. source: unescape('message%3A%20aMessage%0A%09message%20%3A%3D%20aMessage'),
  8057. messageSends: [],
  8058. referencedClasses: []
  8059. }),
  8060. smalltalk.MessageNotUnderstood);
  8061. smalltalk.addMethod(
  8062. unescape('_receiver'),
  8063. smalltalk.method({
  8064. selector: unescape('receiver'),
  8065. category: 'accessing',
  8066. fn: function (){
  8067. var self=this;
  8068. return self['@receiver'];
  8069. return self;},
  8070. args: [],
  8071. source: unescape('receiver%0A%09%5Ereceiver'),
  8072. messageSends: [],
  8073. referencedClasses: []
  8074. }),
  8075. smalltalk.MessageNotUnderstood);
  8076. smalltalk.addMethod(
  8077. unescape('_receiver_'),
  8078. smalltalk.method({
  8079. selector: unescape('receiver%3A'),
  8080. category: 'accessing',
  8081. fn: function (anObject){
  8082. var self=this;
  8083. self['@receiver']=anObject;
  8084. return self;},
  8085. args: ["anObject"],
  8086. source: unescape('receiver%3A%20anObject%0A%09receiver%20%3A%3D%20anObject'),
  8087. messageSends: [],
  8088. referencedClasses: []
  8089. }),
  8090. smalltalk.MessageNotUnderstood);
  8091. smalltalk.addMethod(
  8092. unescape('_messageText'),
  8093. smalltalk.method({
  8094. selector: unescape('messageText'),
  8095. category: 'accessing',
  8096. fn: function (){
  8097. var self=this;
  8098. 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", [])]);
  8099. return self;},
  8100. args: [],
  8101. source: unescape('messageText%0A%09%5Eself%20receiver%20asString%2C%20%27%20does%20not%20understand%20%23%27%2C%20self%20message%20selector'),
  8102. messageSends: [unescape("%2C"), "asString", "receiver", "selector", "message"],
  8103. referencedClasses: []
  8104. }),
  8105. smalltalk.MessageNotUnderstood);
  8106. smalltalk.addClass('ErrorHandler', smalltalk.Object, [], 'Kernel');
  8107. smalltalk.addMethod(
  8108. unescape('_handleError_'),
  8109. smalltalk.method({
  8110. selector: unescape('handleError%3A'),
  8111. category: 'error handling',
  8112. fn: function (anError){
  8113. var self=this;
  8114. (($receiver = smalltalk.send(anError, "_context", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logErrorContext_", [smalltalk.send(anError, "_context", [])]);})() : nil;
  8115. smalltalk.send(self, "_logError_", [anError]);
  8116. return self;},
  8117. args: ["anError"],
  8118. source: unescape('handleError%3A%20anError%0A%09anError%20context%20ifNotNil%3A%20%5Bself%20logErrorContext%3A%20anError%20context%5D.%0A%09self%20logError%3A%20anError'),
  8119. messageSends: ["ifNotNil:", "context", "logErrorContext:", "logError:"],
  8120. referencedClasses: []
  8121. }),
  8122. smalltalk.ErrorHandler);
  8123. smalltalk.addMethod(
  8124. unescape('_logContext_'),
  8125. smalltalk.method({
  8126. selector: unescape('logContext%3A'),
  8127. category: 'private',
  8128. fn: function (aContext){
  8129. var self=this;
  8130. (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logContext_", [smalltalk.send(aContext, "_home", [])]);})() : nil;
  8131. smalltalk.send(self, "_log_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aContext, "_receiver", []), "_asString", []), "__comma", [unescape("%3E%3E")]), "__comma", [smalltalk.send(aContext, "_selector", [])])]);
  8132. return self;},
  8133. args: ["aContext"],
  8134. 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'),
  8135. messageSends: ["ifNotNil:", "home", "logContext:", "log:", unescape("%2C"), "asString", "receiver", "selector"],
  8136. referencedClasses: []
  8137. }),
  8138. smalltalk.ErrorHandler);
  8139. smalltalk.addMethod(
  8140. unescape('_logErrorContext_'),
  8141. smalltalk.method({
  8142. selector: unescape('logErrorContext%3A'),
  8143. category: 'private',
  8144. fn: function (aContext){
  8145. var self=this;
  8146. (($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;
  8147. return self;},
  8148. args: ["aContext"],
  8149. 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'),
  8150. messageSends: ["ifNotNil:", "home", "logContext:"],
  8151. referencedClasses: []
  8152. }),
  8153. smalltalk.ErrorHandler);
  8154. smalltalk.addMethod(
  8155. unescape('_logError_'),
  8156. smalltalk.method({
  8157. selector: unescape('logError%3A'),
  8158. category: 'private',
  8159. fn: function (anError){
  8160. var self=this;
  8161. smalltalk.send(self, "_log_", [smalltalk.send(anError, "_messageText", [])]);
  8162. return self;},
  8163. args: ["anError"],
  8164. source: unescape('logError%3A%20anError%0A%09self%20log%3A%20anError%20messageText'),
  8165. messageSends: ["log:", "messageText"],
  8166. referencedClasses: []
  8167. }),
  8168. smalltalk.ErrorHandler);
  8169. smalltalk.addMethod(
  8170. unescape('_log_'),
  8171. smalltalk.method({
  8172. selector: unescape('log%3A'),
  8173. category: 'private',
  8174. fn: function (aString){
  8175. var self=this;
  8176. smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [aString]);
  8177. return self;},
  8178. args: ["aString"],
  8179. source: unescape('log%3A%20aString%0A%09console%20log%3A%20aString'),
  8180. messageSends: ["log:"],
  8181. referencedClasses: []
  8182. }),
  8183. smalltalk.ErrorHandler);
  8184. smalltalk.ErrorHandler.klass.iVarNames = ['current'];
  8185. smalltalk.addMethod(
  8186. unescape('_current'),
  8187. smalltalk.method({
  8188. selector: unescape('current'),
  8189. category: 'accessing',
  8190. fn: function (){
  8191. var self=this;
  8192. return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", []);})() : $receiver;
  8193. return self;},
  8194. args: [],
  8195. source: unescape('current%0A%09%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20self%20new%5D'),
  8196. messageSends: ["ifNil:", "new"],
  8197. referencedClasses: []
  8198. }),
  8199. smalltalk.ErrorHandler.klass);
  8200. smalltalk.addMethod(
  8201. unescape('_initialize'),
  8202. smalltalk.method({
  8203. selector: unescape('initialize'),
  8204. category: 'initialization',
  8205. fn: function (){
  8206. var self=this;
  8207. smalltalk.send(self, "_register", []);
  8208. return self;},
  8209. args: [],
  8210. source: unescape('initialize%0A%09self%20register'),
  8211. messageSends: ["register"],
  8212. referencedClasses: []
  8213. }),
  8214. smalltalk.ErrorHandler.klass);
  8215. smalltalk.addMethod(
  8216. unescape('_register'),
  8217. smalltalk.method({
  8218. selector: unescape('register'),
  8219. category: 'initialization',
  8220. fn: function (){
  8221. var self=this;
  8222. smalltalk.send((smalltalk.ErrorHandler || ErrorHandler), "_setCurrent_", [smalltalk.send(self, "_new", [])]);
  8223. return self;},
  8224. args: [],
  8225. source: unescape('register%0A%09ErrorHandler%20setCurrent%3A%20self%20new'),
  8226. messageSends: ["setCurrent:", "new"],
  8227. referencedClasses: ["ErrorHandler"]
  8228. }),
  8229. smalltalk.ErrorHandler.klass);
  8230. smalltalk.addMethod(
  8231. unescape('_setCurrent_'),
  8232. smalltalk.method({
  8233. selector: unescape('setCurrent%3A'),
  8234. category: 'accessing',
  8235. fn: function (anHandler){
  8236. var self=this;
  8237. self['@current']=anHandler;
  8238. return self;},
  8239. args: ["anHandler"],
  8240. source: unescape('setCurrent%3A%20anHandler%0A%09current%20%3A%3D%20anHandler'),
  8241. messageSends: [],
  8242. referencedClasses: []
  8243. }),
  8244. smalltalk.ErrorHandler.klass);
  8245. smalltalk.addClass('JSObjectProxy', smalltalk.Object, ['jsObject'], 'Kernel');
  8246. smalltalk.addMethod(
  8247. unescape('_jsObject_'),
  8248. smalltalk.method({
  8249. selector: unescape('jsObject%3A'),
  8250. category: 'accessing',
  8251. fn: function (aJSObject){
  8252. var self=this;
  8253. self['@jsObject']=aJSObject;
  8254. return self;},
  8255. args: ["aJSObject"],
  8256. source: unescape('jsObject%3A%20aJSObject%0A%09jsObject%20%3A%3D%20aJSObject'),
  8257. messageSends: [],
  8258. referencedClasses: []
  8259. }),
  8260. smalltalk.JSObjectProxy);
  8261. smalltalk.addMethod(
  8262. unescape('_jsObject'),
  8263. smalltalk.method({
  8264. selector: unescape('jsObject'),
  8265. category: 'accessing',
  8266. fn: function (){
  8267. var self=this;
  8268. return self['@jsObject'];
  8269. return self;},
  8270. args: [],
  8271. source: unescape('jsObject%0A%09%5EjsObject'),
  8272. messageSends: [],
  8273. referencedClasses: []
  8274. }),
  8275. smalltalk.JSObjectProxy);
  8276. smalltalk.addMethod(
  8277. unescape('_printString'),
  8278. smalltalk.method({
  8279. selector: unescape('printString'),
  8280. category: 'proxy',
  8281. fn: function (){
  8282. var self=this;
  8283. return smalltalk.send(smalltalk.send(self, "_jsObject", []), "_toString", []);
  8284. return self;},
  8285. args: [],
  8286. source: unescape('printString%0A%09%5Eself%20jsObject%20toString'),
  8287. messageSends: ["toString", "jsObject"],
  8288. referencedClasses: []
  8289. }),
  8290. smalltalk.JSObjectProxy);
  8291. smalltalk.addMethod(
  8292. unescape('_inspectOn_'),
  8293. smalltalk.method({
  8294. selector: unescape('inspectOn%3A'),
  8295. category: 'proxy',
  8296. fn: function (anInspector){
  8297. var self=this;
  8298. var variables=nil;
  8299. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  8300. smalltalk.send(variables, "_at_put_", [unescape("%23self"), smalltalk.send(self, "_jsObject", [])]);
  8301. smalltalk.send(anInspector, "_setLabel_", [smalltalk.send(self, "_printString", [])]);
  8302. for(var i in self['@jsObject']) {
  8303. variables._at_put_(i, self['@jsObject'][i]);
  8304. };
  8305. smalltalk.send(anInspector, "_setVariables_", [variables]);
  8306. return self;},
  8307. args: ["anInspector"],
  8308. 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'),
  8309. messageSends: ["new", "at:put:", "jsObject", "setLabel:", "printString", "setVariables:"],
  8310. referencedClasses: ["Dictionary"]
  8311. }),
  8312. smalltalk.JSObjectProxy);
  8313. smalltalk.addMethod(
  8314. unescape('_doesNotUnderstand_'),
  8315. smalltalk.method({
  8316. selector: unescape('doesNotUnderstand%3A'),
  8317. category: 'proxy',
  8318. fn: function (aMessage){
  8319. var self=this;
  8320. var obj=nil;
  8321. var selector=nil;
  8322. var jsSelector=nil;
  8323. var arguments=nil;
  8324. obj=smalltalk.send(self, "_jsObject", []);
  8325. selector=smalltalk.send(aMessage, "_selector", []);
  8326. jsSelector=smalltalk.send(selector, "_asJavaScriptSelector", []);
  8327. arguments=smalltalk.send(aMessage, "_arguments", []);
  8328. if(obj[jsSelector] != undefined) {return smalltalk.send(obj, jsSelector, arguments)};
  8329. smalltalk.send(self, "_doesNotUnderstand_", [aMessage], smalltalk.Object);
  8330. return self;},
  8331. args: ["aMessage"],
  8332. 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'),
  8333. messageSends: ["jsObject", "selector", "asJavaScriptSelector", "arguments", "doesNotUnderstand:"],
  8334. referencedClasses: []
  8335. }),
  8336. smalltalk.JSObjectProxy);
  8337. smalltalk.addMethod(
  8338. unescape('_at_'),
  8339. smalltalk.method({
  8340. selector: unescape('at%3A'),
  8341. category: 'accessing',
  8342. fn: function (aString){
  8343. var self=this;
  8344. return self['@jsObject'][aString];
  8345. return self;},
  8346. args: ["aString"],
  8347. source: unescape('at%3A%20aString%0A%09%3Creturn%20self%5B%27@jsObject%27%5D%5BaString%5D%3E'),
  8348. messageSends: [],
  8349. referencedClasses: []
  8350. }),
  8351. smalltalk.JSObjectProxy);
  8352. smalltalk.addMethod(
  8353. unescape('_at_put_'),
  8354. smalltalk.method({
  8355. selector: unescape('at%3Aput%3A'),
  8356. category: 'accessing',
  8357. fn: function (aString, anObject){
  8358. var self=this;
  8359. self['@jsObject'][aString] = anObject;
  8360. return self;},
  8361. args: ["aString", "anObject"],
  8362. source: unescape('at%3A%20aString%20put%3A%20anObject%0A%09%3Cself%5B%27@jsObject%27%5D%5BaString%5D%20%3D%20anObject%3E'),
  8363. messageSends: [],
  8364. referencedClasses: []
  8365. }),
  8366. smalltalk.JSObjectProxy);
  8367. smalltalk.addMethod(
  8368. unescape('_on_'),
  8369. smalltalk.method({
  8370. selector: unescape('on%3A'),
  8371. category: 'instance creation',
  8372. fn: function (aJSObject){
  8373. var self=this;
  8374. return (function($rec){smalltalk.send($rec, "_jsObject_", [aJSObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  8375. return self;},
  8376. args: ["aJSObject"],
  8377. source: unescape('on%3A%20aJSObject%0A%09%5Eself%20new%0A%09%09jsObject%3A%20aJSObject%3B%0A%09%09yourself'),
  8378. messageSends: ["jsObject:", "yourself", "new"],
  8379. referencedClasses: []
  8380. }),
  8381. smalltalk.JSObjectProxy.klass);
  8382. smalltalk.addClass('Set', smalltalk.Collection, ['elements'], 'Kernel');
  8383. smalltalk.addMethod(
  8384. unescape('_add_'),
  8385. smalltalk.method({
  8386. selector: unescape('add%3A'),
  8387. category: 'adding/removing',
  8388. fn: function (anObject){
  8389. var self=this;
  8390. var found;
  8391. for(var i in self['@elements']) {
  8392. if(anObject == self['@elements'][i]) {
  8393. found = true;
  8394. break;
  8395. }
  8396. }
  8397. if(!found) {self['@elements'].push(anObject)}
  8398. ;
  8399. return self;},
  8400. args: ["anObject"],
  8401. 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'),
  8402. messageSends: [],
  8403. referencedClasses: []
  8404. }),
  8405. smalltalk.Set);
  8406. smalltalk.addMethod(
  8407. unescape('_remove_'),
  8408. smalltalk.method({
  8409. selector: unescape('remove%3A'),
  8410. category: 'adding/removing',
  8411. fn: function (anObject){
  8412. var self=this;
  8413. smalltalk.send(self['@elements'], "_remove_", [anObject]);
  8414. return self;},
  8415. args: ["anObject"],
  8416. source: unescape('remove%3A%20anObject%0A%09elements%20remove%3A%20anObject'),
  8417. messageSends: ["remove:"],
  8418. referencedClasses: []
  8419. }),
  8420. smalltalk.Set);
  8421. smalltalk.addMethod(
  8422. unescape('_initialize'),
  8423. smalltalk.method({
  8424. selector: unescape('initialize'),
  8425. category: 'initialization',
  8426. fn: function (){
  8427. var self=this;
  8428. smalltalk.send(self, "_initialize", [], smalltalk.Collection);
  8429. self['@elements']=[];
  8430. return self;},
  8431. args: [],
  8432. source: unescape('initialize%0A%09super%20initialize.%0A%09elements%20%3A%3D%20%23%28%29'),
  8433. messageSends: ["initialize"],
  8434. referencedClasses: []
  8435. }),
  8436. smalltalk.Set);
  8437. smalltalk.addMethod(
  8438. unescape('_size'),
  8439. smalltalk.method({
  8440. selector: unescape('size'),
  8441. category: 'accessing',
  8442. fn: function (){
  8443. var self=this;
  8444. return smalltalk.send(self['@elements'], "_size", []);
  8445. return self;},
  8446. args: [],
  8447. source: unescape('size%0A%09%5Eelements%20size'),
  8448. messageSends: ["size"],
  8449. referencedClasses: []
  8450. }),
  8451. smalltalk.Set);
  8452. smalltalk.addMethod(
  8453. unescape('_asArray'),
  8454. smalltalk.method({
  8455. selector: unescape('asArray'),
  8456. category: 'converting',
  8457. fn: function (){
  8458. var self=this;
  8459. return smalltalk.send(self['@elements'], "_copy", []);
  8460. return self;},
  8461. args: [],
  8462. source: unescape('asArray%0A%09%5Eelements%20copy'),
  8463. messageSends: ["copy"],
  8464. referencedClasses: []
  8465. }),
  8466. smalltalk.Set);
  8467. smalltalk.addMethod(
  8468. unescape('_detect_ifNone_'),
  8469. smalltalk.method({
  8470. selector: unescape('detect%3AifNone%3A'),
  8471. category: 'enumerating',
  8472. fn: function (aBlock, anotherBlock){
  8473. var self=this;
  8474. return smalltalk.send(self['@elements'], "_detect_ifNone_", [aBlock, anotherBlock]);
  8475. return self;},
  8476. args: ["aBlock", "anotherBlock"],
  8477. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eelements%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  8478. messageSends: ["detect:ifNone:"],
  8479. referencedClasses: []
  8480. }),
  8481. smalltalk.Set);
  8482. smalltalk.addMethod(
  8483. unescape('_do_'),
  8484. smalltalk.method({
  8485. selector: unescape('do%3A'),
  8486. category: 'enumerating',
  8487. fn: function (aBlock){
  8488. var self=this;
  8489. smalltalk.send(self['@elements'], "_do_", [aBlock]);
  8490. return self;},
  8491. args: ["aBlock"],
  8492. source: unescape('do%3A%20aBlock%0A%09elements%20do%3A%20aBlock'),
  8493. messageSends: ["do:"],
  8494. referencedClasses: []
  8495. }),
  8496. smalltalk.Set);
  8497. smalltalk.addMethod(
  8498. unescape('_includes_'),
  8499. smalltalk.method({
  8500. selector: unescape('includes%3A'),
  8501. category: 'testing',
  8502. fn: function (anObject){
  8503. var self=this;
  8504. return smalltalk.send(self['@elements'], "_includes_", [anObject]);
  8505. return self;},
  8506. args: ["anObject"],
  8507. source: unescape('includes%3A%20anObject%0A%09%5Eelements%20includes%3A%20anObject'),
  8508. messageSends: ["includes:"],
  8509. referencedClasses: []
  8510. }),
  8511. smalltalk.Set);
  8512. smalltalk.addMethod(
  8513. unescape('__eq'),
  8514. smalltalk.method({
  8515. selector: unescape('%3D'),
  8516. category: 'comparing',
  8517. fn: function (aCollection){
  8518. var self=this;
  8519. 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", [])]);})]);
  8520. return self;},
  8521. args: ["aCollection"],
  8522. 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'),
  8523. messageSends: ["and:", unescape("%3D"), "class", "asArray"],
  8524. referencedClasses: []
  8525. }),
  8526. smalltalk.Set);
  8527. smalltalk.addClass('Transcript', smalltalk.Object, ['textarea'], 'Kernel');
  8528. smalltalk.Transcript.klass.iVarNames = ['current'];
  8529. smalltalk.addMethod(
  8530. unescape('_open'),
  8531. smalltalk.method({
  8532. selector: unescape('open'),
  8533. category: 'instance creation',
  8534. fn: function (){
  8535. var self=this;
  8536. smalltalk.send(smalltalk.send(self, "_current", []), "_open", []);
  8537. return self;},
  8538. args: [],
  8539. source: unescape('open%0A%20%20%20%20self%20current%20open'),
  8540. messageSends: ["open", "current"],
  8541. referencedClasses: []
  8542. }),
  8543. smalltalk.Transcript.klass);
  8544. smalltalk.addMethod(
  8545. unescape('_new'),
  8546. smalltalk.method({
  8547. selector: unescape('new'),
  8548. category: 'instance creation',
  8549. fn: function (){
  8550. var self=this;
  8551. smalltalk.send(self, "_shouldNotImplement", []);
  8552. return self;},
  8553. args: [],
  8554. source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'),
  8555. messageSends: ["shouldNotImplement"],
  8556. referencedClasses: []
  8557. }),
  8558. smalltalk.Transcript.klass);
  8559. smalltalk.addMethod(
  8560. unescape('_current'),
  8561. smalltalk.method({
  8562. selector: unescape('current'),
  8563. category: 'instance creation',
  8564. fn: function (){
  8565. var self=this;
  8566. return self['@current'];
  8567. return self;},
  8568. args: [],
  8569. source: unescape('current%0A%20%20%20%20%5Ecurrent'),
  8570. messageSends: [],
  8571. referencedClasses: []
  8572. }),
  8573. smalltalk.Transcript.klass);
  8574. smalltalk.addMethod(
  8575. unescape('_show_'),
  8576. smalltalk.method({
  8577. selector: unescape('show%3A'),
  8578. category: 'printing',
  8579. fn: function (anObject){
  8580. var self=this;
  8581. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [anObject]);
  8582. return self;},
  8583. args: ["anObject"],
  8584. source: unescape('show%3A%20anObject%0A%20%20%20%20self%20current%20show%3A%20anObject'),
  8585. messageSends: ["show:", "current"],
  8586. referencedClasses: []
  8587. }),
  8588. smalltalk.Transcript.klass);
  8589. smalltalk.addMethod(
  8590. unescape('_cr'),
  8591. smalltalk.method({
  8592. selector: unescape('cr'),
  8593. category: 'printing',
  8594. fn: function (){
  8595. var self=this;
  8596. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  8597. return self;},
  8598. args: [],
  8599. source: unescape('cr%0A%20%20%20%20self%20current%20show%3A%20String%20cr'),
  8600. messageSends: ["show:", "current", "cr"],
  8601. referencedClasses: ["String"]
  8602. }),
  8603. smalltalk.Transcript.klass);
  8604. smalltalk.addMethod(
  8605. unescape('_clear'),
  8606. smalltalk.method({
  8607. selector: unescape('clear'),
  8608. category: 'printing',
  8609. fn: function (){
  8610. var self=this;
  8611. smalltalk.send(smalltalk.send(self, "_current", []), "_clear", []);
  8612. return self;},
  8613. args: [],
  8614. source: unescape('clear%0A%20%20%20%20self%20current%20clear'),
  8615. messageSends: ["clear", "current"],
  8616. referencedClasses: []
  8617. }),
  8618. smalltalk.Transcript.klass);
  8619. smalltalk.addMethod(
  8620. unescape('_register_'),
  8621. smalltalk.method({
  8622. selector: unescape('register%3A'),
  8623. category: 'instance creation',
  8624. fn: function (aTranscript){
  8625. var self=this;
  8626. self['@current']=aTranscript;
  8627. return self;},
  8628. args: ["aTranscript"],
  8629. source: unescape('register%3A%20aTranscript%0A%09current%20%3A%3D%20aTranscript'),
  8630. messageSends: [],
  8631. referencedClasses: []
  8632. }),
  8633. smalltalk.Transcript.klass);
  8634. smalltalk.addClass('ConsoleTranscript', smalltalk.Object, ['textarea'], 'Kernel');
  8635. smalltalk.addMethod(
  8636. unescape('_clear'),
  8637. smalltalk.method({
  8638. selector: unescape('clear'),
  8639. category: 'printing',
  8640. fn: function (){
  8641. var self=this;
  8642. return self;},
  8643. args: [],
  8644. source: unescape('clear%0A%09%22no%20op%22'),
  8645. messageSends: [],
  8646. referencedClasses: []
  8647. }),
  8648. smalltalk.ConsoleTranscript);
  8649. smalltalk.addMethod(
  8650. unescape('_cr'),
  8651. smalltalk.method({
  8652. selector: unescape('cr'),
  8653. category: 'printing',
  8654. fn: function (){
  8655. var self=this;
  8656. return self;},
  8657. args: [],
  8658. source: unescape('cr%0A%09%22no%20op%22'),
  8659. messageSends: [],
  8660. referencedClasses: []
  8661. }),
  8662. smalltalk.ConsoleTranscript);
  8663. smalltalk.addMethod(
  8664. unescape('_show_'),
  8665. smalltalk.method({
  8666. selector: unescape('show%3A'),
  8667. category: 'printing',
  8668. fn: function (anObject){
  8669. var self=this;
  8670. var string=nil;
  8671. string=smalltalk.send(anObject, "_asString", []);
  8672. console.log(String(string));
  8673. return self;},
  8674. args: ["anObject"],
  8675. source: unescape('show%3A%20anObject%0A%09%7C%20string%20%7C%0A%09string%20%3A%3D%20anObject%20asString.%0A%09%3Cconsole.log%28String%28string%29%29%3E'),
  8676. messageSends: ["asString"],
  8677. referencedClasses: []
  8678. }),
  8679. smalltalk.ConsoleTranscript);
  8680. smalltalk.addMethod(
  8681. unescape('_open'),
  8682. smalltalk.method({
  8683. selector: unescape('open'),
  8684. category: 'actions',
  8685. fn: function (){
  8686. var self=this;
  8687. return self;},
  8688. args: [],
  8689. source: unescape('open'),
  8690. messageSends: [],
  8691. referencedClasses: []
  8692. }),
  8693. smalltalk.ConsoleTranscript);
  8694. smalltalk.addMethod(
  8695. unescape('_initialize'),
  8696. smalltalk.method({
  8697. selector: unescape('initialize'),
  8698. category: 'initialization',
  8699. fn: function (){
  8700. var self=this;
  8701. smalltalk.send((smalltalk.Transcript || Transcript), "_register_", [smalltalk.send(self, "_new", [])]);
  8702. return self;},
  8703. args: [],
  8704. source: unescape('initialize%0A%09Transcript%20register%3A%20self%20new'),
  8705. messageSends: ["register:", "new"],
  8706. referencedClasses: ["Transcript"]
  8707. }),
  8708. smalltalk.ConsoleTranscript.klass);
  8709. smalltalk.addClass('Dictionary2', smalltalk.Dictionary, ['keys'], 'Kernel');
  8710. smalltalk.addMethod(
  8711. unescape('__eq'),
  8712. smalltalk.method({
  8713. selector: unescape('%3D'),
  8714. category: 'comparing',
  8715. fn: function (aDictionary){
  8716. var self=this;
  8717. 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}})})();})]));
  8718. ((($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}})})();})]));
  8719. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return smalltalk.send(smalltalk.send(self, "_associations", []), "__eq", [smalltalk.send(aDictionary, "_associations", [])])}})})();
  8720. return self;
  8721. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  8722. args: ["aDictionary"],
  8723. 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'),
  8724. messageSends: ["ifFalse:", unescape("%3D"), "class", "size", "associations"],
  8725. referencedClasses: []
  8726. }),
  8727. smalltalk.Dictionary2);
  8728. smalltalk.addMethod(
  8729. unescape('_shallowCopy'),
  8730. smalltalk.method({
  8731. selector: unescape('shallowCopy'),
  8732. category: 'copying',
  8733. fn: function (){
  8734. var self=this;
  8735. var copy=nil;
  8736. copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  8737. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(copy, "_at_put_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  8738. return copy;
  8739. return self;},
  8740. args: [],
  8741. 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'),
  8742. messageSends: ["new", "class", "associationsDo:", "at:put:", "key", "value"],
  8743. referencedClasses: []
  8744. }),
  8745. smalltalk.Dictionary2);
  8746. smalltalk.addMethod(
  8747. unescape('_initialize'),
  8748. smalltalk.method({
  8749. selector: unescape('initialize'),
  8750. category: 'initialization',
  8751. fn: function (){
  8752. var self=this;
  8753. smalltalk.send(self, "_initialize", [], smalltalk.Dictionary);
  8754. self['@keys']=[];
  8755. return self;},
  8756. args: [],
  8757. source: unescape('initialize%0A%20%20%20%20%09super%20initialize.%0A%20%20%20%20%09keys%20%3A%3D%20%23%28%29'),
  8758. messageSends: ["initialize"],
  8759. referencedClasses: []
  8760. }),
  8761. smalltalk.Dictionary2);
  8762. smalltalk.addMethod(
  8763. unescape('_size'),
  8764. smalltalk.method({
  8765. selector: unescape('size'),
  8766. category: 'accessing',
  8767. fn: function (){
  8768. var self=this;
  8769. return smalltalk.send(self['@keys'], "_size", []);
  8770. return self;},
  8771. args: [],
  8772. source: unescape('size%0A%09%5Ekeys%20size'),
  8773. messageSends: ["size"],
  8774. referencedClasses: []
  8775. }),
  8776. smalltalk.Dictionary2);
  8777. smalltalk.addMethod(
  8778. unescape('_associations'),
  8779. smalltalk.method({
  8780. selector: unescape('associations'),
  8781. category: 'accessing',
  8782. fn: function (){
  8783. var self=this;
  8784. var associations=nil;
  8785. associations=[];
  8786. 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])])]);})]);
  8787. return associations;
  8788. return self;},
  8789. args: [],
  8790. 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'),
  8791. messageSends: ["do:", "add:", "key:value:", "at:"],
  8792. referencedClasses: ["Association"]
  8793. }),
  8794. smalltalk.Dictionary2);
  8795. smalltalk.addMethod(
  8796. unescape('_keys'),
  8797. smalltalk.method({
  8798. selector: unescape('keys'),
  8799. category: 'accessing',
  8800. fn: function (){
  8801. var self=this;
  8802. return smalltalk.send(self['@keys'], "_copy", []);
  8803. return self;},
  8804. args: [],
  8805. source: unescape('keys%0A%09%5Ekeys%20copy'),
  8806. messageSends: ["copy"],
  8807. referencedClasses: []
  8808. }),
  8809. smalltalk.Dictionary2);
  8810. smalltalk.addMethod(
  8811. unescape('_values'),
  8812. smalltalk.method({
  8813. selector: unescape('values'),
  8814. category: 'accessing',
  8815. fn: function (){
  8816. var self=this;
  8817. return smalltalk.send(self['@keys'], "_collect_", [(function(each){return smalltalk.send(self, "_at_", [each]);})]);
  8818. return self;},
  8819. args: [],
  8820. source: unescape('values%0A%20%20%20%20%09%5Ekeys%20collect%3A%20%5B%3Aeach%20%7C%20self%20at%3A%20each%5D'),
  8821. messageSends: ["collect:", "at:"],
  8822. referencedClasses: []
  8823. }),
  8824. smalltalk.Dictionary2);
  8825. smalltalk.addMethod(
  8826. unescape('_at_put_'),
  8827. smalltalk.method({
  8828. selector: unescape('at%3Aput%3A'),
  8829. category: 'accessing',
  8830. fn: function (aKey, aValue){
  8831. var self=this;
  8832. ((($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]);})]));
  8833. return smalltalk.send(self, "_basicAt_put_", [aKey, aValue]);
  8834. return self;},
  8835. args: ["aKey", "aValue"],
  8836. 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'),
  8837. messageSends: ["ifFalse:", "includes:", "add:", "basicAt:put:"],
  8838. referencedClasses: []
  8839. }),
  8840. smalltalk.Dictionary2);
  8841. smalltalk.addMethod(
  8842. unescape('_at_ifAbsent_'),
  8843. smalltalk.method({
  8844. selector: unescape('at%3AifAbsent%3A'),
  8845. category: 'accessing',
  8846. fn: function (aKey, aBlock){
  8847. var self=this;
  8848. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_keys", []), "_includes_", [aKey]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_basicAt_", [aKey]);}), aBlock]);
  8849. return self;},
  8850. args: ["aKey", "aBlock"],
  8851. 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'),
  8852. messageSends: ["ifTrue:ifFalse:", "includes:", "keys", "basicAt:"],
  8853. referencedClasses: []
  8854. }),
  8855. smalltalk.Dictionary2);
  8856. smalltalk.addMethod(
  8857. unescape('_at_ifAbsentPut_'),
  8858. smalltalk.method({
  8859. selector: unescape('at%3AifAbsentPut%3A'),
  8860. category: 'accessing',
  8861. fn: function (aKey, aBlock){
  8862. var self=this;
  8863. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_at_put_", [aKey, smalltalk.send(aBlock, "_value", [])]);})]);
  8864. return self;},
  8865. args: ["aKey", "aBlock"],
  8866. 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'),
  8867. messageSends: ["at:ifAbsent:", "at:put:", "value"],
  8868. referencedClasses: []
  8869. }),
  8870. smalltalk.Dictionary2);
  8871. smalltalk.addMethod(
  8872. unescape('_at_ifPresent_'),
  8873. smalltalk.method({
  8874. selector: unescape('at%3AifPresent%3A'),
  8875. category: 'accessing',
  8876. fn: function (aKey, aBlock){
  8877. var self=this;
  8878. return (($receiver = smalltalk.send(self, "_basicAt_", [aKey])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})() : nil;
  8879. return self;},
  8880. args: ["aKey", "aBlock"],
  8881. 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'),
  8882. messageSends: ["ifNotNil:", "basicAt:", "value:", "at:"],
  8883. referencedClasses: []
  8884. }),
  8885. smalltalk.Dictionary2);
  8886. smalltalk.addMethod(
  8887. unescape('_at_ifPresent_ifAbsent_'),
  8888. smalltalk.method({
  8889. selector: unescape('at%3AifPresent%3AifAbsent%3A'),
  8890. category: 'accessing',
  8891. fn: function (aKey, aBlock, anotherBlock){
  8892. var self=this;
  8893. return smalltalk.send(smalltalk.send(self, "_basicAt_", [aKey]), "_ifNil_ifNotNil_", [anotherBlock, (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})]);
  8894. return self;},
  8895. args: ["aKey", "aBlock", "anotherBlock"],
  8896. 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'),
  8897. messageSends: ["ifNil:ifNotNil:", "basicAt:", "value:", "at:"],
  8898. referencedClasses: []
  8899. }),
  8900. smalltalk.Dictionary2);
  8901. smalltalk.addMethod(
  8902. unescape('_add_'),
  8903. smalltalk.method({
  8904. selector: unescape('add%3A'),
  8905. category: 'adding/removing',
  8906. fn: function (anAssociation){
  8907. var self=this;
  8908. smalltalk.send(self, "_at_put_", [smalltalk.send(anAssociation, "_key", []), smalltalk.send(anAssociation, "_value", [])]);
  8909. return self;},
  8910. args: ["anAssociation"],
  8911. source: unescape('add%3A%20anAssociation%0A%20%20%20%20%09self%20at%3A%20anAssociation%20key%20put%3A%20anAssociation%20value'),
  8912. messageSends: ["at:put:", "key", "value"],
  8913. referencedClasses: []
  8914. }),
  8915. smalltalk.Dictionary2);
  8916. smalltalk.addMethod(
  8917. unescape('_addAll_'),
  8918. smalltalk.method({
  8919. selector: unescape('addAll%3A'),
  8920. category: 'adding/removing',
  8921. fn: function (aDictionary){
  8922. var self=this;
  8923. smalltalk.send(self, "_addAll_", [smalltalk.send(aDictionary, "_associations", [])], smalltalk.Dictionary);
  8924. return aDictionary;
  8925. return self;},
  8926. args: ["aDictionary"],
  8927. source: unescape('addAll%3A%20aDictionary%0A%20%20%20%20%09super%20addAll%3A%20aDictionary%20associations.%0A%20%20%20%20%09%5EaDictionary'),
  8928. messageSends: ["addAll:", "associations"],
  8929. referencedClasses: []
  8930. }),
  8931. smalltalk.Dictionary2);
  8932. smalltalk.addMethod(
  8933. unescape('__comma'),
  8934. smalltalk.method({
  8935. selector: unescape('%2C'),
  8936. category: 'copying',
  8937. fn: function (aCollection){
  8938. var self=this;
  8939. smalltalk.send(self, "_shouldNotImplement", []);
  8940. return self;},
  8941. args: ["aCollection"],
  8942. source: unescape('%2C%20aCollection%0A%09self%20shouldNotImplement'),
  8943. messageSends: ["shouldNotImplement"],
  8944. referencedClasses: []
  8945. }),
  8946. smalltalk.Dictionary2);
  8947. smalltalk.addMethod(
  8948. unescape('_copyFrom_to_'),
  8949. smalltalk.method({
  8950. selector: unescape('copyFrom%3Ato%3A'),
  8951. category: 'copying',
  8952. fn: function (anIndex, anotherIndex){
  8953. var self=this;
  8954. smalltalk.send(self, "_shouldNotImplement", []);
  8955. return self;},
  8956. args: ["anIndex", "anotherIndex"],
  8957. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20shouldNotImplement'),
  8958. messageSends: ["shouldNotImplement"],
  8959. referencedClasses: []
  8960. }),
  8961. smalltalk.Dictionary2);
  8962. smalltalk.addMethod(
  8963. unescape('_associationsDo_'),
  8964. smalltalk.method({
  8965. selector: unescape('associationsDo%3A'),
  8966. category: 'enumerating',
  8967. fn: function (aBlock){
  8968. var self=this;
  8969. smalltalk.send(smalltalk.send(self, "_associations", []), "_do_", [aBlock]);
  8970. return self;},
  8971. args: ["aBlock"],
  8972. source: unescape('associationsDo%3A%20aBlock%0A%20%20%20%20%09self%20associations%20do%3A%20aBlock'),
  8973. messageSends: ["do:", "associations"],
  8974. referencedClasses: []
  8975. }),
  8976. smalltalk.Dictionary2);
  8977. smalltalk.addMethod(
  8978. unescape('_keysAndValuesDo_'),
  8979. smalltalk.method({
  8980. selector: unescape('keysAndValuesDo%3A'),
  8981. category: 'enumerating',
  8982. fn: function (aBlock){
  8983. var self=this;
  8984. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(aBlock, "_value_value_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  8985. return self;},
  8986. args: ["aBlock"],
  8987. 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'),
  8988. messageSends: ["associationsDo:", "value:value:", "key", "value"],
  8989. referencedClasses: []
  8990. }),
  8991. smalltalk.Dictionary2);
  8992. smalltalk.addMethod(
  8993. unescape('_do_'),
  8994. smalltalk.method({
  8995. selector: unescape('do%3A'),
  8996. category: 'enumerating',
  8997. fn: function (aBlock){
  8998. var self=this;
  8999. smalltalk.send(smalltalk.send(self, "_values", []), "_do_", [aBlock]);
  9000. return self;},
  9001. args: ["aBlock"],
  9002. source: unescape('do%3A%20aBlock%0A%20%20%20%20%09self%20values%20do%3A%20aBlock'),
  9003. messageSends: ["do:", "values"],
  9004. referencedClasses: []
  9005. }),
  9006. smalltalk.Dictionary2);
  9007. smalltalk.addMethod(
  9008. unescape('_select_'),
  9009. smalltalk.method({
  9010. selector: unescape('select%3A'),
  9011. category: 'enumerating',
  9012. fn: function (aBlock){
  9013. var self=this;
  9014. var newDict=nil;
  9015. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  9016. 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]);})]));})]);
  9017. return newDict;
  9018. return self;},
  9019. args: ["aBlock"],
  9020. 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'),
  9021. messageSends: ["new", "class", "keysAndValuesDo:", "ifTrue:", "value:", "at:put:"],
  9022. referencedClasses: []
  9023. }),
  9024. smalltalk.Dictionary2);
  9025. smalltalk.addMethod(
  9026. unescape('_collect_'),
  9027. smalltalk.method({
  9028. selector: unescape('collect%3A'),
  9029. category: 'enumerating',
  9030. fn: function (aBlock){
  9031. var self=this;
  9032. var newDict=nil;
  9033. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  9034. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(newDict, "_at_put_", [key, smalltalk.send(aBlock, "_value_", [value])]);})]);
  9035. return newDict;
  9036. return self;},
  9037. args: ["aBlock"],
  9038. 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'),
  9039. messageSends: ["new", "class", "keysAndValuesDo:", "at:put:", "value:"],
  9040. referencedClasses: []
  9041. }),
  9042. smalltalk.Dictionary2);
  9043. smalltalk.addMethod(
  9044. unescape('_detect_ifNone_'),
  9045. smalltalk.method({
  9046. selector: unescape('detect%3AifNone%3A'),
  9047. category: 'enumerating',
  9048. fn: function (aBlock, anotherBlock){
  9049. var self=this;
  9050. return smalltalk.send(smalltalk.send(self, "_values", []), "_detect_ifNone_", [aBlock, anotherBlock]);
  9051. return self;},
  9052. args: ["aBlock", "anotherBlock"],
  9053. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eself%20values%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  9054. messageSends: ["detect:ifNone:", "values"],
  9055. referencedClasses: []
  9056. }),
  9057. smalltalk.Dictionary2);
  9058. smalltalk.addMethod(
  9059. unescape('_includes_'),
  9060. smalltalk.method({
  9061. selector: unescape('includes%3A'),
  9062. category: 'enumerating',
  9063. fn: function (anObject){
  9064. var self=this;
  9065. return smalltalk.send(smalltalk.send(self, "_values", []), "_includes_", [anObject]);
  9066. return self;},
  9067. args: ["anObject"],
  9068. source: unescape('includes%3A%20anObject%0A%09%5Eself%20values%20includes%3A%20anObject'),
  9069. messageSends: ["includes:", "values"],
  9070. referencedClasses: []
  9071. }),
  9072. smalltalk.Dictionary2);
  9073. smalltalk.addMethod(
  9074. unescape('_remove_'),
  9075. smalltalk.method({
  9076. selector: unescape('remove%3A'),
  9077. category: 'adding/removing',
  9078. fn: function (aKey){
  9079. var self=this;
  9080. smalltalk.send(self, "_removeKey_", [aKey]);
  9081. return self;},
  9082. args: ["aKey"],
  9083. source: unescape('remove%3A%20aKey%0A%20%20%20%20self%20removeKey%3A%20aKey'),
  9084. messageSends: ["removeKey:"],
  9085. referencedClasses: []
  9086. }),
  9087. smalltalk.Dictionary2);
  9088. smalltalk.addMethod(
  9089. unescape('_removeKey_'),
  9090. smalltalk.method({
  9091. selector: unescape('removeKey%3A'),
  9092. category: 'adding/removing',
  9093. fn: function (aKey){
  9094. var self=this;
  9095. smalltalk.send(self['@keys'], "_remove_", [aKey]);
  9096. return self;},
  9097. args: ["aKey"],
  9098. source: unescape('removeKey%3A%20aKey%0A%20%20%20%20keys%20remove%3A%20aKey'),
  9099. messageSends: ["remove:"],
  9100. referencedClasses: []
  9101. }),
  9102. smalltalk.Dictionary2);
  9103. smalltalk.addMethod(
  9104. unescape('_at_'),
  9105. smalltalk.method({
  9106. selector: unescape('at%3A'),
  9107. category: 'accessing',
  9108. fn: function (aKey){
  9109. var self=this;
  9110. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  9111. return self;},
  9112. args: ["aKey"],
  9113. source: unescape('at%3A%20aKey%0A%09%5Eself%20at%3A%20aKey%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  9114. messageSends: ["at:ifAbsent:", "errorNotFound"],
  9115. referencedClasses: []
  9116. }),
  9117. smalltalk.Dictionary2);
  9118. smalltalk.addMethod(
  9119. unescape('_asJSONObject'),
  9120. smalltalk.method({
  9121. selector: unescape('asJSONObject'),
  9122. category: 'converting',
  9123. fn: function (){
  9124. var self=this;
  9125. var object=nil;
  9126. object=smalltalk.send((smalltalk.Object || Object), "_new", []);
  9127. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(object, "_basicAt_put_", [key, smalltalk.send(value, "_asJSONObject", [])]);})]);
  9128. return object;
  9129. return self;},
  9130. args: [],
  9131. 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'),
  9132. messageSends: ["new", "keysAndValuesDo:", "basicAt:put:", "asJSONObject"],
  9133. referencedClasses: ["Object"]
  9134. }),
  9135. smalltalk.Dictionary2);
  9136. smalltalk.addMethod(
  9137. unescape('_printString'),
  9138. smalltalk.method({
  9139. selector: unescape('printString'),
  9140. category: 'printing',
  9141. fn: function (){
  9142. var self=this;
  9143. return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(aStream){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_printString", [], smalltalk.Dictionary)]);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")]);})]);
  9144. return self;},
  9145. args: [],
  9146. 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'),
  9147. messageSends: ["streamContents:", "nextPutAll:", "printString", "do:separatedBy:", "associations", "key", "value"],
  9148. referencedClasses: ["String"]
  9149. }),
  9150. smalltalk.Dictionary2);
  9151. smalltalk.addMethod(
  9152. unescape('_storeOn_'),
  9153. smalltalk.method({
  9154. selector: unescape('storeOn%3A'),
  9155. category: 'printing',
  9156. fn: function (aStream){
  9157. var self=this;
  9158. smalltalk.send(aStream, "_nextPutAll_", [unescape("%23%7B")]);
  9159. smalltalk.send(smalltalk.send(self, "_associations", []), "_do_separatedBy_", [(function(each){return smalltalk.send(each, "_storeOn_", [aStream]);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [". "]);})]);
  9160. smalltalk.send(aStream, "_nextPutAll_", [unescape("%7D")]);
  9161. return self;},
  9162. args: ["aStream"],
  9163. source: unescape('storeOn%3A%20aStream%0A%09aStream%20nextPutAll%3A%20%27%23%7B%27.%0A%09self%20associations%0A%09%09do%3A%20%5B%3Aeach%20%7C%20each%20storeOn%3A%20aStream%5D%0A%09%09separatedBy%3A%20%5B%20aStream%20nextPutAll%3A%20%27.%20%27%5D.%0A%09aStream%20nextPutAll%3A%20%27%7D%27'),
  9164. messageSends: ["nextPutAll:", "do:separatedBy:", "associations", "storeOn:"],
  9165. referencedClasses: []
  9166. }),
  9167. smalltalk.Dictionary2);