123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549 |
- // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
- package css
- import (
- json "encoding/json"
- cdp "github.com/chromedp/cdproto/cdp"
- easyjson "github.com/mailru/easyjson"
- jlexer "github.com/mailru/easyjson/jlexer"
- jwriter "github.com/mailru/easyjson/jwriter"
- )
- // suppress unused package warning
- var (
- _ *json.RawMessage
- _ *jlexer.Lexer
- _ *jwriter.Writer
- _ easyjson.Marshaler
- )
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss(in *jlexer.Lexer, out *Value) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "text":
- out.Text = string(in.String())
- case "range":
- if in.IsNull() {
- in.Skip()
- out.Range = nil
- } else {
- if out.Range == nil {
- out.Range = new(SourceRange)
- }
- (*out.Range).UnmarshalEasyJSON(in)
- }
- case "specificity":
- if in.IsNull() {
- in.Skip()
- out.Specificity = nil
- } else {
- if out.Specificity == nil {
- out.Specificity = new(Specificity)
- }
- (*out.Specificity).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss(out *jwriter.Writer, in Value) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"text\":"
- out.RawString(prefix[1:])
- out.String(string(in.Text))
- }
- if in.Range != nil {
- const prefix string = ",\"range\":"
- out.RawString(prefix)
- (*in.Range).MarshalEasyJSON(out)
- }
- if in.Specificity != nil {
- const prefix string = ",\"specificity\":"
- out.RawString(prefix)
- (*in.Specificity).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Value) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Value) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Value) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Value) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss1(in *jlexer.Lexer, out *TryRule) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "origin":
- (out.Origin).UnmarshalEasyJSON(in)
- case "style":
- if in.IsNull() {
- in.Skip()
- out.Style = nil
- } else {
- if out.Style == nil {
- out.Style = new(Style)
- }
- (*out.Style).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss1(out *jwriter.Writer, in TryRule) {
- out.RawByte('{')
- first := true
- _ = first
- if in.StyleSheetID != "" {
- const prefix string = ",\"styleSheetId\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"origin\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- (in.Origin).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"style\":"
- out.RawString(prefix)
- if in.Style == nil {
- out.RawString("null")
- } else {
- (*in.Style).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v TryRule) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss1(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v TryRule) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss1(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *TryRule) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss1(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *TryRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss1(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss2(in *jlexer.Lexer, out *TrackComputedStyleUpdatesParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "propertiesToTrack":
- if in.IsNull() {
- in.Skip()
- out.PropertiesToTrack = nil
- } else {
- in.Delim('[')
- if out.PropertiesToTrack == nil {
- if !in.IsDelim(']') {
- out.PropertiesToTrack = make([]*ComputedStyleProperty, 0, 8)
- } else {
- out.PropertiesToTrack = []*ComputedStyleProperty{}
- }
- } else {
- out.PropertiesToTrack = (out.PropertiesToTrack)[:0]
- }
- for !in.IsDelim(']') {
- var v1 *ComputedStyleProperty
- if in.IsNull() {
- in.Skip()
- v1 = nil
- } else {
- if v1 == nil {
- v1 = new(ComputedStyleProperty)
- }
- (*v1).UnmarshalEasyJSON(in)
- }
- out.PropertiesToTrack = append(out.PropertiesToTrack, v1)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss2(out *jwriter.Writer, in TrackComputedStyleUpdatesParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"propertiesToTrack\":"
- out.RawString(prefix[1:])
- if in.PropertiesToTrack == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v2, v3 := range in.PropertiesToTrack {
- if v2 > 0 {
- out.RawByte(',')
- }
- if v3 == nil {
- out.RawString("null")
- } else {
- (*v3).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v TrackComputedStyleUpdatesParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss2(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v TrackComputedStyleUpdatesParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss2(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *TrackComputedStyleUpdatesParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss2(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *TrackComputedStyleUpdatesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss2(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss3(in *jlexer.Lexer, out *TakeCoverageDeltaReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "coverage":
- if in.IsNull() {
- in.Skip()
- out.Coverage = nil
- } else {
- in.Delim('[')
- if out.Coverage == nil {
- if !in.IsDelim(']') {
- out.Coverage = make([]*RuleUsage, 0, 8)
- } else {
- out.Coverage = []*RuleUsage{}
- }
- } else {
- out.Coverage = (out.Coverage)[:0]
- }
- for !in.IsDelim(']') {
- var v4 *RuleUsage
- if in.IsNull() {
- in.Skip()
- v4 = nil
- } else {
- if v4 == nil {
- v4 = new(RuleUsage)
- }
- (*v4).UnmarshalEasyJSON(in)
- }
- out.Coverage = append(out.Coverage, v4)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "timestamp":
- out.Timestamp = float64(in.Float64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss3(out *jwriter.Writer, in TakeCoverageDeltaReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.Coverage) != 0 {
- const prefix string = ",\"coverage\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v5, v6 := range in.Coverage {
- if v5 > 0 {
- out.RawByte(',')
- }
- if v6 == nil {
- out.RawString("null")
- } else {
- (*v6).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if in.Timestamp != 0 {
- const prefix string = ",\"timestamp\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Float64(float64(in.Timestamp))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v TakeCoverageDeltaReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss3(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v TakeCoverageDeltaReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss3(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *TakeCoverageDeltaReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss3(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *TakeCoverageDeltaReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss3(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss4(in *jlexer.Lexer, out *TakeCoverageDeltaParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss4(out *jwriter.Writer, in TakeCoverageDeltaParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v TakeCoverageDeltaParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss4(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v TakeCoverageDeltaParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss4(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *TakeCoverageDeltaParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss4(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *TakeCoverageDeltaParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss4(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss5(in *jlexer.Lexer, out *TakeComputedStyleUpdatesReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "nodeIds":
- if in.IsNull() {
- in.Skip()
- out.NodeIDs = nil
- } else {
- in.Delim('[')
- if out.NodeIDs == nil {
- if !in.IsDelim(']') {
- out.NodeIDs = make([]cdp.NodeID, 0, 8)
- } else {
- out.NodeIDs = []cdp.NodeID{}
- }
- } else {
- out.NodeIDs = (out.NodeIDs)[:0]
- }
- for !in.IsDelim(']') {
- var v7 cdp.NodeID
- (v7).UnmarshalEasyJSON(in)
- out.NodeIDs = append(out.NodeIDs, v7)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss5(out *jwriter.Writer, in TakeComputedStyleUpdatesReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.NodeIDs) != 0 {
- const prefix string = ",\"nodeIds\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v8, v9 := range in.NodeIDs {
- if v8 > 0 {
- out.RawByte(',')
- }
- out.Int64(int64(v9))
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v TakeComputedStyleUpdatesReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss5(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v TakeComputedStyleUpdatesReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss5(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *TakeComputedStyleUpdatesReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss5(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *TakeComputedStyleUpdatesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss5(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss6(in *jlexer.Lexer, out *TakeComputedStyleUpdatesParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss6(out *jwriter.Writer, in TakeComputedStyleUpdatesParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v TakeComputedStyleUpdatesParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss6(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v TakeComputedStyleUpdatesParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss6(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *TakeComputedStyleUpdatesParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss6(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *TakeComputedStyleUpdatesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss6(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss7(in *jlexer.Lexer, out *Supports) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "text":
- out.Text = string(in.String())
- case "active":
- out.Active = bool(in.Bool())
- case "range":
- if in.IsNull() {
- in.Skip()
- out.Range = nil
- } else {
- if out.Range == nil {
- out.Range = new(SourceRange)
- }
- (*out.Range).UnmarshalEasyJSON(in)
- }
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss7(out *jwriter.Writer, in Supports) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"text\":"
- out.RawString(prefix[1:])
- out.String(string(in.Text))
- }
- {
- const prefix string = ",\"active\":"
- out.RawString(prefix)
- out.Bool(bool(in.Active))
- }
- if in.Range != nil {
- const prefix string = ",\"range\":"
- out.RawString(prefix)
- (*in.Range).MarshalEasyJSON(out)
- }
- if in.StyleSheetID != "" {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix)
- out.String(string(in.StyleSheetID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Supports) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss7(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Supports) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss7(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Supports) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss7(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Supports) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss7(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss8(in *jlexer.Lexer, out *StyleSheetHeader) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- case "sourceURL":
- out.SourceURL = string(in.String())
- case "sourceMapURL":
- out.SourceMapURL = string(in.String())
- case "origin":
- (out.Origin).UnmarshalEasyJSON(in)
- case "title":
- out.Title = string(in.String())
- case "ownerNode":
- (out.OwnerNode).UnmarshalEasyJSON(in)
- case "disabled":
- out.Disabled = bool(in.Bool())
- case "hasSourceURL":
- out.HasSourceURL = bool(in.Bool())
- case "isInline":
- out.IsInline = bool(in.Bool())
- case "isMutable":
- out.IsMutable = bool(in.Bool())
- case "isConstructed":
- out.IsConstructed = bool(in.Bool())
- case "startLine":
- out.StartLine = float64(in.Float64())
- case "startColumn":
- out.StartColumn = float64(in.Float64())
- case "length":
- out.Length = float64(in.Float64())
- case "endLine":
- out.EndLine = float64(in.Float64())
- case "endColumn":
- out.EndColumn = float64(in.Float64())
- case "loadingFailed":
- out.LoadingFailed = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss8(out *jwriter.Writer, in StyleSheetHeader) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix)
- out.String(string(in.FrameID))
- }
- {
- const prefix string = ",\"sourceURL\":"
- out.RawString(prefix)
- out.String(string(in.SourceURL))
- }
- if in.SourceMapURL != "" {
- const prefix string = ",\"sourceMapURL\":"
- out.RawString(prefix)
- out.String(string(in.SourceMapURL))
- }
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix)
- (in.Origin).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"title\":"
- out.RawString(prefix)
- out.String(string(in.Title))
- }
- if in.OwnerNode != 0 {
- const prefix string = ",\"ownerNode\":"
- out.RawString(prefix)
- out.Int64(int64(in.OwnerNode))
- }
- {
- const prefix string = ",\"disabled\":"
- out.RawString(prefix)
- out.Bool(bool(in.Disabled))
- }
- if in.HasSourceURL {
- const prefix string = ",\"hasSourceURL\":"
- out.RawString(prefix)
- out.Bool(bool(in.HasSourceURL))
- }
- {
- const prefix string = ",\"isInline\":"
- out.RawString(prefix)
- out.Bool(bool(in.IsInline))
- }
- {
- const prefix string = ",\"isMutable\":"
- out.RawString(prefix)
- out.Bool(bool(in.IsMutable))
- }
- {
- const prefix string = ",\"isConstructed\":"
- out.RawString(prefix)
- out.Bool(bool(in.IsConstructed))
- }
- {
- const prefix string = ",\"startLine\":"
- out.RawString(prefix)
- out.Float64(float64(in.StartLine))
- }
- {
- const prefix string = ",\"startColumn\":"
- out.RawString(prefix)
- out.Float64(float64(in.StartColumn))
- }
- {
- const prefix string = ",\"length\":"
- out.RawString(prefix)
- out.Float64(float64(in.Length))
- }
- {
- const prefix string = ",\"endLine\":"
- out.RawString(prefix)
- out.Float64(float64(in.EndLine))
- }
- {
- const prefix string = ",\"endColumn\":"
- out.RawString(prefix)
- out.Float64(float64(in.EndColumn))
- }
- if in.LoadingFailed {
- const prefix string = ",\"loadingFailed\":"
- out.RawString(prefix)
- out.Bool(bool(in.LoadingFailed))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v StyleSheetHeader) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss8(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v StyleSheetHeader) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss8(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *StyleSheetHeader) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss8(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *StyleSheetHeader) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss8(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss9(in *jlexer.Lexer, out *StyleDeclarationEdit) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "range":
- if in.IsNull() {
- in.Skip()
- out.Range = nil
- } else {
- if out.Range == nil {
- out.Range = new(SourceRange)
- }
- (*out.Range).UnmarshalEasyJSON(in)
- }
- case "text":
- out.Text = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss9(out *jwriter.Writer, in StyleDeclarationEdit) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"range\":"
- out.RawString(prefix)
- if in.Range == nil {
- out.RawString("null")
- } else {
- (*in.Range).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"text\":"
- out.RawString(prefix)
- out.String(string(in.Text))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v StyleDeclarationEdit) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss9(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v StyleDeclarationEdit) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss9(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *StyleDeclarationEdit) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss9(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *StyleDeclarationEdit) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss9(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss10(in *jlexer.Lexer, out *Style) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "cssProperties":
- if in.IsNull() {
- in.Skip()
- out.CSSProperties = nil
- } else {
- in.Delim('[')
- if out.CSSProperties == nil {
- if !in.IsDelim(']') {
- out.CSSProperties = make([]*Property, 0, 8)
- } else {
- out.CSSProperties = []*Property{}
- }
- } else {
- out.CSSProperties = (out.CSSProperties)[:0]
- }
- for !in.IsDelim(']') {
- var v10 *Property
- if in.IsNull() {
- in.Skip()
- v10 = nil
- } else {
- if v10 == nil {
- v10 = new(Property)
- }
- (*v10).UnmarshalEasyJSON(in)
- }
- out.CSSProperties = append(out.CSSProperties, v10)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "shorthandEntries":
- if in.IsNull() {
- in.Skip()
- out.ShorthandEntries = nil
- } else {
- in.Delim('[')
- if out.ShorthandEntries == nil {
- if !in.IsDelim(']') {
- out.ShorthandEntries = make([]*ShorthandEntry, 0, 8)
- } else {
- out.ShorthandEntries = []*ShorthandEntry{}
- }
- } else {
- out.ShorthandEntries = (out.ShorthandEntries)[:0]
- }
- for !in.IsDelim(']') {
- var v11 *ShorthandEntry
- if in.IsNull() {
- in.Skip()
- v11 = nil
- } else {
- if v11 == nil {
- v11 = new(ShorthandEntry)
- }
- (*v11).UnmarshalEasyJSON(in)
- }
- out.ShorthandEntries = append(out.ShorthandEntries, v11)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "cssText":
- out.CSSText = string(in.String())
- case "range":
- if in.IsNull() {
- in.Skip()
- out.Range = nil
- } else {
- if out.Range == nil {
- out.Range = new(SourceRange)
- }
- (*out.Range).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss10(out *jwriter.Writer, in Style) {
- out.RawByte('{')
- first := true
- _ = first
- if in.StyleSheetID != "" {
- const prefix string = ",\"styleSheetId\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"cssProperties\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- if in.CSSProperties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v12, v13 := range in.CSSProperties {
- if v12 > 0 {
- out.RawByte(',')
- }
- if v13 == nil {
- out.RawString("null")
- } else {
- (*v13).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"shorthandEntries\":"
- out.RawString(prefix)
- if in.ShorthandEntries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v14, v15 := range in.ShorthandEntries {
- if v14 > 0 {
- out.RawByte(',')
- }
- if v15 == nil {
- out.RawString("null")
- } else {
- (*v15).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if in.CSSText != "" {
- const prefix string = ",\"cssText\":"
- out.RawString(prefix)
- out.String(string(in.CSSText))
- }
- if in.Range != nil {
- const prefix string = ",\"range\":"
- out.RawString(prefix)
- (*in.Range).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Style) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss10(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Style) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss10(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Style) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss10(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Style) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss10(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss11(in *jlexer.Lexer, out *StopRuleUsageTrackingReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "ruleUsage":
- if in.IsNull() {
- in.Skip()
- out.RuleUsage = nil
- } else {
- in.Delim('[')
- if out.RuleUsage == nil {
- if !in.IsDelim(']') {
- out.RuleUsage = make([]*RuleUsage, 0, 8)
- } else {
- out.RuleUsage = []*RuleUsage{}
- }
- } else {
- out.RuleUsage = (out.RuleUsage)[:0]
- }
- for !in.IsDelim(']') {
- var v16 *RuleUsage
- if in.IsNull() {
- in.Skip()
- v16 = nil
- } else {
- if v16 == nil {
- v16 = new(RuleUsage)
- }
- (*v16).UnmarshalEasyJSON(in)
- }
- out.RuleUsage = append(out.RuleUsage, v16)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss11(out *jwriter.Writer, in StopRuleUsageTrackingReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.RuleUsage) != 0 {
- const prefix string = ",\"ruleUsage\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v17, v18 := range in.RuleUsage {
- if v17 > 0 {
- out.RawByte(',')
- }
- if v18 == nil {
- out.RawString("null")
- } else {
- (*v18).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v StopRuleUsageTrackingReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss11(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v StopRuleUsageTrackingReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss11(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *StopRuleUsageTrackingReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss11(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *StopRuleUsageTrackingReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss11(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss12(in *jlexer.Lexer, out *StopRuleUsageTrackingParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss12(out *jwriter.Writer, in StopRuleUsageTrackingParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v StopRuleUsageTrackingParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss12(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v StopRuleUsageTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss12(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *StopRuleUsageTrackingParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss12(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *StopRuleUsageTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss12(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss13(in *jlexer.Lexer, out *StartRuleUsageTrackingParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss13(out *jwriter.Writer, in StartRuleUsageTrackingParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v StartRuleUsageTrackingParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss13(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v StartRuleUsageTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss13(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *StartRuleUsageTrackingParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss13(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *StartRuleUsageTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss13(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss14(in *jlexer.Lexer, out *Specificity) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "a":
- out.A = int64(in.Int64())
- case "b":
- out.B = int64(in.Int64())
- case "c":
- out.C = int64(in.Int64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss14(out *jwriter.Writer, in Specificity) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"a\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.A))
- }
- {
- const prefix string = ",\"b\":"
- out.RawString(prefix)
- out.Int64(int64(in.B))
- }
- {
- const prefix string = ",\"c\":"
- out.RawString(prefix)
- out.Int64(int64(in.C))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Specificity) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss14(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Specificity) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss14(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Specificity) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss14(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Specificity) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss14(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss15(in *jlexer.Lexer, out *SourceRange) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "startLine":
- out.StartLine = int64(in.Int64())
- case "startColumn":
- out.StartColumn = int64(in.Int64())
- case "endLine":
- out.EndLine = int64(in.Int64())
- case "endColumn":
- out.EndColumn = int64(in.Int64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss15(out *jwriter.Writer, in SourceRange) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"startLine\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.StartLine))
- }
- {
- const prefix string = ",\"startColumn\":"
- out.RawString(prefix)
- out.Int64(int64(in.StartColumn))
- }
- {
- const prefix string = ",\"endLine\":"
- out.RawString(prefix)
- out.Int64(int64(in.EndLine))
- }
- {
- const prefix string = ",\"endColumn\":"
- out.RawString(prefix)
- out.Int64(int64(in.EndColumn))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SourceRange) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss15(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SourceRange) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss15(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SourceRange) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss15(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SourceRange) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss15(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss16(in *jlexer.Lexer, out *ShorthandEntry) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "name":
- out.Name = string(in.String())
- case "value":
- out.Value = string(in.String())
- case "important":
- out.Important = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss16(out *jwriter.Writer, in ShorthandEntry) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"name\":"
- out.RawString(prefix[1:])
- out.String(string(in.Name))
- }
- {
- const prefix string = ",\"value\":"
- out.RawString(prefix)
- out.String(string(in.Value))
- }
- if in.Important {
- const prefix string = ",\"important\":"
- out.RawString(prefix)
- out.Bool(bool(in.Important))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ShorthandEntry) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss16(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ShorthandEntry) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss16(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ShorthandEntry) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss16(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ShorthandEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss16(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss17(in *jlexer.Lexer, out *SetSupportsTextReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "supports":
- if in.IsNull() {
- in.Skip()
- out.Supports = nil
- } else {
- if out.Supports == nil {
- out.Supports = new(Supports)
- }
- (*out.Supports).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss17(out *jwriter.Writer, in SetSupportsTextReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Supports != nil {
- const prefix string = ",\"supports\":"
- first = false
- out.RawString(prefix[1:])
- (*in.Supports).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetSupportsTextReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss17(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetSupportsTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss17(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetSupportsTextReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss17(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetSupportsTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss17(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss18(in *jlexer.Lexer, out *SetSupportsTextParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "range":
- if in.IsNull() {
- in.Skip()
- out.Range = nil
- } else {
- if out.Range == nil {
- out.Range = new(SourceRange)
- }
- (*out.Range).UnmarshalEasyJSON(in)
- }
- case "text":
- out.Text = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss18(out *jwriter.Writer, in SetSupportsTextParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"range\":"
- out.RawString(prefix)
- if in.Range == nil {
- out.RawString("null")
- } else {
- (*in.Range).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"text\":"
- out.RawString(prefix)
- out.String(string(in.Text))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetSupportsTextParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss18(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetSupportsTextParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss18(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetSupportsTextParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss18(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetSupportsTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss18(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss19(in *jlexer.Lexer, out *SetStyleTextsReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styles":
- if in.IsNull() {
- in.Skip()
- out.Styles = nil
- } else {
- in.Delim('[')
- if out.Styles == nil {
- if !in.IsDelim(']') {
- out.Styles = make([]*Style, 0, 8)
- } else {
- out.Styles = []*Style{}
- }
- } else {
- out.Styles = (out.Styles)[:0]
- }
- for !in.IsDelim(']') {
- var v19 *Style
- if in.IsNull() {
- in.Skip()
- v19 = nil
- } else {
- if v19 == nil {
- v19 = new(Style)
- }
- (*v19).UnmarshalEasyJSON(in)
- }
- out.Styles = append(out.Styles, v19)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss19(out *jwriter.Writer, in SetStyleTextsReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.Styles) != 0 {
- const prefix string = ",\"styles\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v20, v21 := range in.Styles {
- if v20 > 0 {
- out.RawByte(',')
- }
- if v21 == nil {
- out.RawString("null")
- } else {
- (*v21).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetStyleTextsReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss19(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetStyleTextsReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss19(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetStyleTextsReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss19(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetStyleTextsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss19(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss20(in *jlexer.Lexer, out *SetStyleTextsParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "edits":
- if in.IsNull() {
- in.Skip()
- out.Edits = nil
- } else {
- in.Delim('[')
- if out.Edits == nil {
- if !in.IsDelim(']') {
- out.Edits = make([]*StyleDeclarationEdit, 0, 8)
- } else {
- out.Edits = []*StyleDeclarationEdit{}
- }
- } else {
- out.Edits = (out.Edits)[:0]
- }
- for !in.IsDelim(']') {
- var v22 *StyleDeclarationEdit
- if in.IsNull() {
- in.Skip()
- v22 = nil
- } else {
- if v22 == nil {
- v22 = new(StyleDeclarationEdit)
- }
- (*v22).UnmarshalEasyJSON(in)
- }
- out.Edits = append(out.Edits, v22)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "nodeForPropertySyntaxValidation":
- (out.NodeForPropertySyntaxValidation).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss20(out *jwriter.Writer, in SetStyleTextsParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"edits\":"
- out.RawString(prefix[1:])
- if in.Edits == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v23, v24 := range in.Edits {
- if v23 > 0 {
- out.RawByte(',')
- }
- if v24 == nil {
- out.RawString("null")
- } else {
- (*v24).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if in.NodeForPropertySyntaxValidation != 0 {
- const prefix string = ",\"nodeForPropertySyntaxValidation\":"
- out.RawString(prefix)
- out.Int64(int64(in.NodeForPropertySyntaxValidation))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetStyleTextsParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss20(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetStyleTextsParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss20(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetStyleTextsParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss20(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetStyleTextsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss20(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss21(in *jlexer.Lexer, out *SetStyleSheetTextReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "sourceMapURL":
- out.SourceMapURL = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss21(out *jwriter.Writer, in SetStyleSheetTextReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.SourceMapURL != "" {
- const prefix string = ",\"sourceMapURL\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.SourceMapURL))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetStyleSheetTextReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss21(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss21(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetStyleSheetTextReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss21(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss21(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss22(in *jlexer.Lexer, out *SetStyleSheetTextParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "text":
- out.Text = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss22(out *jwriter.Writer, in SetStyleSheetTextParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"text\":"
- out.RawString(prefix)
- out.String(string(in.Text))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetStyleSheetTextParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss22(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss22(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetStyleSheetTextParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss22(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss22(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss23(in *jlexer.Lexer, out *SetScopeTextReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "scope":
- if in.IsNull() {
- in.Skip()
- out.Scope = nil
- } else {
- if out.Scope == nil {
- out.Scope = new(Scope)
- }
- (*out.Scope).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss23(out *jwriter.Writer, in SetScopeTextReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Scope != nil {
- const prefix string = ",\"scope\":"
- first = false
- out.RawString(prefix[1:])
- (*in.Scope).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetScopeTextReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss23(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetScopeTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss23(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetScopeTextReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss23(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetScopeTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss23(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss24(in *jlexer.Lexer, out *SetScopeTextParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "range":
- if in.IsNull() {
- in.Skip()
- out.Range = nil
- } else {
- if out.Range == nil {
- out.Range = new(SourceRange)
- }
- (*out.Range).UnmarshalEasyJSON(in)
- }
- case "text":
- out.Text = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss24(out *jwriter.Writer, in SetScopeTextParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"range\":"
- out.RawString(prefix)
- if in.Range == nil {
- out.RawString("null")
- } else {
- (*in.Range).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"text\":"
- out.RawString(prefix)
- out.String(string(in.Text))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetScopeTextParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss24(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetScopeTextParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss24(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetScopeTextParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss24(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetScopeTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss24(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss25(in *jlexer.Lexer, out *SetRuleSelectorReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "selectorList":
- if in.IsNull() {
- in.Skip()
- out.SelectorList = nil
- } else {
- if out.SelectorList == nil {
- out.SelectorList = new(SelectorList)
- }
- (*out.SelectorList).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss25(out *jwriter.Writer, in SetRuleSelectorReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.SelectorList != nil {
- const prefix string = ",\"selectorList\":"
- first = false
- out.RawString(prefix[1:])
- (*in.SelectorList).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetRuleSelectorReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss25(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetRuleSelectorReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss25(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetRuleSelectorReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss25(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetRuleSelectorReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss25(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss26(in *jlexer.Lexer, out *SetRuleSelectorParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "range":
- if in.IsNull() {
- in.Skip()
- out.Range = nil
- } else {
- if out.Range == nil {
- out.Range = new(SourceRange)
- }
- (*out.Range).UnmarshalEasyJSON(in)
- }
- case "selector":
- out.Selector = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss26(out *jwriter.Writer, in SetRuleSelectorParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"range\":"
- out.RawString(prefix)
- if in.Range == nil {
- out.RawString("null")
- } else {
- (*in.Range).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"selector\":"
- out.RawString(prefix)
- out.String(string(in.Selector))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetRuleSelectorParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss26(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetRuleSelectorParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss26(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetRuleSelectorParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss26(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetRuleSelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss26(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss27(in *jlexer.Lexer, out *SetPropertyRulePropertyNameReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "propertyName":
- if in.IsNull() {
- in.Skip()
- out.PropertyName = nil
- } else {
- if out.PropertyName == nil {
- out.PropertyName = new(Value)
- }
- (*out.PropertyName).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss27(out *jwriter.Writer, in SetPropertyRulePropertyNameReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.PropertyName != nil {
- const prefix string = ",\"propertyName\":"
- first = false
- out.RawString(prefix[1:])
- (*in.PropertyName).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetPropertyRulePropertyNameReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss27(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetPropertyRulePropertyNameReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss27(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetPropertyRulePropertyNameReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss27(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetPropertyRulePropertyNameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss27(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss28(in *jlexer.Lexer, out *SetPropertyRulePropertyNameParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "range":
- if in.IsNull() {
- in.Skip()
- out.Range = nil
- } else {
- if out.Range == nil {
- out.Range = new(SourceRange)
- }
- (*out.Range).UnmarshalEasyJSON(in)
- }
- case "propertyName":
- out.PropertyName = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss28(out *jwriter.Writer, in SetPropertyRulePropertyNameParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"range\":"
- out.RawString(prefix)
- if in.Range == nil {
- out.RawString("null")
- } else {
- (*in.Range).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"propertyName\":"
- out.RawString(prefix)
- out.String(string(in.PropertyName))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetPropertyRulePropertyNameParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss28(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetPropertyRulePropertyNameParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss28(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetPropertyRulePropertyNameParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss28(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetPropertyRulePropertyNameParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss28(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss29(in *jlexer.Lexer, out *SetMediaTextReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "media":
- if in.IsNull() {
- in.Skip()
- out.Media = nil
- } else {
- if out.Media == nil {
- out.Media = new(Media)
- }
- (*out.Media).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss29(out *jwriter.Writer, in SetMediaTextReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Media != nil {
- const prefix string = ",\"media\":"
- first = false
- out.RawString(prefix[1:])
- (*in.Media).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetMediaTextReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss29(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetMediaTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss29(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetMediaTextReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss29(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetMediaTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss29(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss30(in *jlexer.Lexer, out *SetMediaTextParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "range":
- if in.IsNull() {
- in.Skip()
- out.Range = nil
- } else {
- if out.Range == nil {
- out.Range = new(SourceRange)
- }
- (*out.Range).UnmarshalEasyJSON(in)
- }
- case "text":
- out.Text = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss30(out *jwriter.Writer, in SetMediaTextParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"range\":"
- out.RawString(prefix)
- if in.Range == nil {
- out.RawString("null")
- } else {
- (*in.Range).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"text\":"
- out.RawString(prefix)
- out.String(string(in.Text))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetMediaTextParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss30(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetMediaTextParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss30(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetMediaTextParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss30(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetMediaTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss30(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss31(in *jlexer.Lexer, out *SetLocalFontsEnabledParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "enabled":
- out.Enabled = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss31(out *jwriter.Writer, in SetLocalFontsEnabledParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"enabled\":"
- out.RawString(prefix[1:])
- out.Bool(bool(in.Enabled))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetLocalFontsEnabledParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss31(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetLocalFontsEnabledParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss31(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetLocalFontsEnabledParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss31(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetLocalFontsEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss31(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss32(in *jlexer.Lexer, out *SetKeyframeKeyReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "keyText":
- if in.IsNull() {
- in.Skip()
- out.KeyText = nil
- } else {
- if out.KeyText == nil {
- out.KeyText = new(Value)
- }
- (*out.KeyText).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss32(out *jwriter.Writer, in SetKeyframeKeyReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.KeyText != nil {
- const prefix string = ",\"keyText\":"
- first = false
- out.RawString(prefix[1:])
- (*in.KeyText).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetKeyframeKeyReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss32(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetKeyframeKeyReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss32(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetKeyframeKeyReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss32(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetKeyframeKeyReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss32(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss33(in *jlexer.Lexer, out *SetKeyframeKeyParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "range":
- if in.IsNull() {
- in.Skip()
- out.Range = nil
- } else {
- if out.Range == nil {
- out.Range = new(SourceRange)
- }
- (*out.Range).UnmarshalEasyJSON(in)
- }
- case "keyText":
- out.KeyText = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss33(out *jwriter.Writer, in SetKeyframeKeyParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"range\":"
- out.RawString(prefix)
- if in.Range == nil {
- out.RawString("null")
- } else {
- (*in.Range).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"keyText\":"
- out.RawString(prefix)
- out.String(string(in.KeyText))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetKeyframeKeyParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss33(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetKeyframeKeyParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss33(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetKeyframeKeyParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss33(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetKeyframeKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss33(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss34(in *jlexer.Lexer, out *SetEffectivePropertyValueForNodeParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "nodeId":
- (out.NodeID).UnmarshalEasyJSON(in)
- case "propertyName":
- out.PropertyName = string(in.String())
- case "value":
- out.Value = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss34(out *jwriter.Writer, in SetEffectivePropertyValueForNodeParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"nodeId\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.NodeID))
- }
- {
- const prefix string = ",\"propertyName\":"
- out.RawString(prefix)
- out.String(string(in.PropertyName))
- }
- {
- const prefix string = ",\"value\":"
- out.RawString(prefix)
- out.String(string(in.Value))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetEffectivePropertyValueForNodeParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss34(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetEffectivePropertyValueForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss34(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetEffectivePropertyValueForNodeParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss34(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetEffectivePropertyValueForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss34(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss35(in *jlexer.Lexer, out *SetContainerQueryTextReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "containerQuery":
- if in.IsNull() {
- in.Skip()
- out.ContainerQuery = nil
- } else {
- if out.ContainerQuery == nil {
- out.ContainerQuery = new(ContainerQuery)
- }
- (*out.ContainerQuery).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss35(out *jwriter.Writer, in SetContainerQueryTextReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.ContainerQuery != nil {
- const prefix string = ",\"containerQuery\":"
- first = false
- out.RawString(prefix[1:])
- (*in.ContainerQuery).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetContainerQueryTextReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss35(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetContainerQueryTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss35(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetContainerQueryTextReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss35(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetContainerQueryTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss35(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss36(in *jlexer.Lexer, out *SetContainerQueryTextParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "range":
- if in.IsNull() {
- in.Skip()
- out.Range = nil
- } else {
- if out.Range == nil {
- out.Range = new(SourceRange)
- }
- (*out.Range).UnmarshalEasyJSON(in)
- }
- case "text":
- out.Text = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss36(out *jwriter.Writer, in SetContainerQueryTextParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"range\":"
- out.RawString(prefix)
- if in.Range == nil {
- out.RawString("null")
- } else {
- (*in.Range).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"text\":"
- out.RawString(prefix)
- out.String(string(in.Text))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SetContainerQueryTextParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss36(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SetContainerQueryTextParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss36(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SetContainerQueryTextParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss36(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SetContainerQueryTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss36(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss37(in *jlexer.Lexer, out *SelectorList) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "selectors":
- if in.IsNull() {
- in.Skip()
- out.Selectors = nil
- } else {
- in.Delim('[')
- if out.Selectors == nil {
- if !in.IsDelim(']') {
- out.Selectors = make([]*Value, 0, 8)
- } else {
- out.Selectors = []*Value{}
- }
- } else {
- out.Selectors = (out.Selectors)[:0]
- }
- for !in.IsDelim(']') {
- var v25 *Value
- if in.IsNull() {
- in.Skip()
- v25 = nil
- } else {
- if v25 == nil {
- v25 = new(Value)
- }
- (*v25).UnmarshalEasyJSON(in)
- }
- out.Selectors = append(out.Selectors, v25)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "text":
- out.Text = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss37(out *jwriter.Writer, in SelectorList) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"selectors\":"
- out.RawString(prefix[1:])
- if in.Selectors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v26, v27 := range in.Selectors {
- if v26 > 0 {
- out.RawByte(',')
- }
- if v27 == nil {
- out.RawString("null")
- } else {
- (*v27).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"text\":"
- out.RawString(prefix)
- out.String(string(in.Text))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v SelectorList) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss37(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v SelectorList) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss37(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *SelectorList) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss37(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *SelectorList) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss37(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss38(in *jlexer.Lexer, out *Scope) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "text":
- out.Text = string(in.String())
- case "range":
- if in.IsNull() {
- in.Skip()
- out.Range = nil
- } else {
- if out.Range == nil {
- out.Range = new(SourceRange)
- }
- (*out.Range).UnmarshalEasyJSON(in)
- }
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss38(out *jwriter.Writer, in Scope) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"text\":"
- out.RawString(prefix[1:])
- out.String(string(in.Text))
- }
- if in.Range != nil {
- const prefix string = ",\"range\":"
- out.RawString(prefix)
- (*in.Range).MarshalEasyJSON(out)
- }
- if in.StyleSheetID != "" {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix)
- out.String(string(in.StyleSheetID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Scope) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss38(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Scope) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss38(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Scope) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss38(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Scope) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss38(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss39(in *jlexer.Lexer, out *RuleUsage) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "startOffset":
- out.StartOffset = float64(in.Float64())
- case "endOffset":
- out.EndOffset = float64(in.Float64())
- case "used":
- out.Used = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss39(out *jwriter.Writer, in RuleUsage) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"startOffset\":"
- out.RawString(prefix)
- out.Float64(float64(in.StartOffset))
- }
- {
- const prefix string = ",\"endOffset\":"
- out.RawString(prefix)
- out.Float64(float64(in.EndOffset))
- }
- {
- const prefix string = ",\"used\":"
- out.RawString(prefix)
- out.Bool(bool(in.Used))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v RuleUsage) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss39(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v RuleUsage) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss39(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *RuleUsage) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss39(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *RuleUsage) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss39(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss40(in *jlexer.Lexer, out *RuleMatch) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "rule":
- if in.IsNull() {
- in.Skip()
- out.Rule = nil
- } else {
- if out.Rule == nil {
- out.Rule = new(Rule)
- }
- (*out.Rule).UnmarshalEasyJSON(in)
- }
- case "matchingSelectors":
- if in.IsNull() {
- in.Skip()
- out.MatchingSelectors = nil
- } else {
- in.Delim('[')
- if out.MatchingSelectors == nil {
- if !in.IsDelim(']') {
- out.MatchingSelectors = make([]int64, 0, 8)
- } else {
- out.MatchingSelectors = []int64{}
- }
- } else {
- out.MatchingSelectors = (out.MatchingSelectors)[:0]
- }
- for !in.IsDelim(']') {
- var v28 int64
- v28 = int64(in.Int64())
- out.MatchingSelectors = append(out.MatchingSelectors, v28)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss40(out *jwriter.Writer, in RuleMatch) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"rule\":"
- out.RawString(prefix[1:])
- if in.Rule == nil {
- out.RawString("null")
- } else {
- (*in.Rule).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"matchingSelectors\":"
- out.RawString(prefix)
- if in.MatchingSelectors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v29, v30 := range in.MatchingSelectors {
- if v29 > 0 {
- out.RawByte(',')
- }
- out.Int64(int64(v30))
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v RuleMatch) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss40(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v RuleMatch) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss40(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *RuleMatch) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss40(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *RuleMatch) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss40(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss41(in *jlexer.Lexer, out *Rule) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "selectorList":
- if in.IsNull() {
- in.Skip()
- out.SelectorList = nil
- } else {
- if out.SelectorList == nil {
- out.SelectorList = new(SelectorList)
- }
- (*out.SelectorList).UnmarshalEasyJSON(in)
- }
- case "nestingSelectors":
- if in.IsNull() {
- in.Skip()
- out.NestingSelectors = nil
- } else {
- in.Delim('[')
- if out.NestingSelectors == nil {
- if !in.IsDelim(']') {
- out.NestingSelectors = make([]string, 0, 4)
- } else {
- out.NestingSelectors = []string{}
- }
- } else {
- out.NestingSelectors = (out.NestingSelectors)[:0]
- }
- for !in.IsDelim(']') {
- var v31 string
- v31 = string(in.String())
- out.NestingSelectors = append(out.NestingSelectors, v31)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "origin":
- (out.Origin).UnmarshalEasyJSON(in)
- case "style":
- if in.IsNull() {
- in.Skip()
- out.Style = nil
- } else {
- if out.Style == nil {
- out.Style = new(Style)
- }
- (*out.Style).UnmarshalEasyJSON(in)
- }
- case "media":
- if in.IsNull() {
- in.Skip()
- out.Media = nil
- } else {
- in.Delim('[')
- if out.Media == nil {
- if !in.IsDelim(']') {
- out.Media = make([]*Media, 0, 8)
- } else {
- out.Media = []*Media{}
- }
- } else {
- out.Media = (out.Media)[:0]
- }
- for !in.IsDelim(']') {
- var v32 *Media
- if in.IsNull() {
- in.Skip()
- v32 = nil
- } else {
- if v32 == nil {
- v32 = new(Media)
- }
- (*v32).UnmarshalEasyJSON(in)
- }
- out.Media = append(out.Media, v32)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "containerQueries":
- if in.IsNull() {
- in.Skip()
- out.ContainerQueries = nil
- } else {
- in.Delim('[')
- if out.ContainerQueries == nil {
- if !in.IsDelim(']') {
- out.ContainerQueries = make([]*ContainerQuery, 0, 8)
- } else {
- out.ContainerQueries = []*ContainerQuery{}
- }
- } else {
- out.ContainerQueries = (out.ContainerQueries)[:0]
- }
- for !in.IsDelim(']') {
- var v33 *ContainerQuery
- if in.IsNull() {
- in.Skip()
- v33 = nil
- } else {
- if v33 == nil {
- v33 = new(ContainerQuery)
- }
- (*v33).UnmarshalEasyJSON(in)
- }
- out.ContainerQueries = append(out.ContainerQueries, v33)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "supports":
- if in.IsNull() {
- in.Skip()
- out.Supports = nil
- } else {
- in.Delim('[')
- if out.Supports == nil {
- if !in.IsDelim(']') {
- out.Supports = make([]*Supports, 0, 8)
- } else {
- out.Supports = []*Supports{}
- }
- } else {
- out.Supports = (out.Supports)[:0]
- }
- for !in.IsDelim(']') {
- var v34 *Supports
- if in.IsNull() {
- in.Skip()
- v34 = nil
- } else {
- if v34 == nil {
- v34 = new(Supports)
- }
- (*v34).UnmarshalEasyJSON(in)
- }
- out.Supports = append(out.Supports, v34)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "layers":
- if in.IsNull() {
- in.Skip()
- out.Layers = nil
- } else {
- in.Delim('[')
- if out.Layers == nil {
- if !in.IsDelim(']') {
- out.Layers = make([]*Layer, 0, 8)
- } else {
- out.Layers = []*Layer{}
- }
- } else {
- out.Layers = (out.Layers)[:0]
- }
- for !in.IsDelim(']') {
- var v35 *Layer
- if in.IsNull() {
- in.Skip()
- v35 = nil
- } else {
- if v35 == nil {
- v35 = new(Layer)
- }
- (*v35).UnmarshalEasyJSON(in)
- }
- out.Layers = append(out.Layers, v35)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "scopes":
- if in.IsNull() {
- in.Skip()
- out.Scopes = nil
- } else {
- in.Delim('[')
- if out.Scopes == nil {
- if !in.IsDelim(']') {
- out.Scopes = make([]*Scope, 0, 8)
- } else {
- out.Scopes = []*Scope{}
- }
- } else {
- out.Scopes = (out.Scopes)[:0]
- }
- for !in.IsDelim(']') {
- var v36 *Scope
- if in.IsNull() {
- in.Skip()
- v36 = nil
- } else {
- if v36 == nil {
- v36 = new(Scope)
- }
- (*v36).UnmarshalEasyJSON(in)
- }
- out.Scopes = append(out.Scopes, v36)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "ruleTypes":
- if in.IsNull() {
- in.Skip()
- out.RuleTypes = nil
- } else {
- in.Delim('[')
- if out.RuleTypes == nil {
- if !in.IsDelim(']') {
- out.RuleTypes = make([]RuleType, 0, 4)
- } else {
- out.RuleTypes = []RuleType{}
- }
- } else {
- out.RuleTypes = (out.RuleTypes)[:0]
- }
- for !in.IsDelim(']') {
- var v37 RuleType
- (v37).UnmarshalEasyJSON(in)
- out.RuleTypes = append(out.RuleTypes, v37)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss41(out *jwriter.Writer, in Rule) {
- out.RawByte('{')
- first := true
- _ = first
- if in.StyleSheetID != "" {
- const prefix string = ",\"styleSheetId\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"selectorList\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- if in.SelectorList == nil {
- out.RawString("null")
- } else {
- (*in.SelectorList).MarshalEasyJSON(out)
- }
- }
- if len(in.NestingSelectors) != 0 {
- const prefix string = ",\"nestingSelectors\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v38, v39 := range in.NestingSelectors {
- if v38 > 0 {
- out.RawByte(',')
- }
- out.String(string(v39))
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix)
- (in.Origin).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"style\":"
- out.RawString(prefix)
- if in.Style == nil {
- out.RawString("null")
- } else {
- (*in.Style).MarshalEasyJSON(out)
- }
- }
- if len(in.Media) != 0 {
- const prefix string = ",\"media\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v40, v41 := range in.Media {
- if v40 > 0 {
- out.RawByte(',')
- }
- if v41 == nil {
- out.RawString("null")
- } else {
- (*v41).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if len(in.ContainerQueries) != 0 {
- const prefix string = ",\"containerQueries\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v42, v43 := range in.ContainerQueries {
- if v42 > 0 {
- out.RawByte(',')
- }
- if v43 == nil {
- out.RawString("null")
- } else {
- (*v43).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if len(in.Supports) != 0 {
- const prefix string = ",\"supports\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v44, v45 := range in.Supports {
- if v44 > 0 {
- out.RawByte(',')
- }
- if v45 == nil {
- out.RawString("null")
- } else {
- (*v45).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if len(in.Layers) != 0 {
- const prefix string = ",\"layers\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v46, v47 := range in.Layers {
- if v46 > 0 {
- out.RawByte(',')
- }
- if v47 == nil {
- out.RawString("null")
- } else {
- (*v47).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if len(in.Scopes) != 0 {
- const prefix string = ",\"scopes\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v48, v49 := range in.Scopes {
- if v48 > 0 {
- out.RawByte(',')
- }
- if v49 == nil {
- out.RawString("null")
- } else {
- (*v49).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if len(in.RuleTypes) != 0 {
- const prefix string = ",\"ruleTypes\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v50, v51 := range in.RuleTypes {
- if v50 > 0 {
- out.RawByte(',')
- }
- (v51).MarshalEasyJSON(out)
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Rule) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss41(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Rule) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss41(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Rule) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss41(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Rule) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss41(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss42(in *jlexer.Lexer, out *PseudoElementMatches) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "pseudoType":
- (out.PseudoType).UnmarshalEasyJSON(in)
- case "pseudoIdentifier":
- out.PseudoIdentifier = string(in.String())
- case "matches":
- if in.IsNull() {
- in.Skip()
- out.Matches = nil
- } else {
- in.Delim('[')
- if out.Matches == nil {
- if !in.IsDelim(']') {
- out.Matches = make([]*RuleMatch, 0, 8)
- } else {
- out.Matches = []*RuleMatch{}
- }
- } else {
- out.Matches = (out.Matches)[:0]
- }
- for !in.IsDelim(']') {
- var v52 *RuleMatch
- if in.IsNull() {
- in.Skip()
- v52 = nil
- } else {
- if v52 == nil {
- v52 = new(RuleMatch)
- }
- (*v52).UnmarshalEasyJSON(in)
- }
- out.Matches = append(out.Matches, v52)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss42(out *jwriter.Writer, in PseudoElementMatches) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"pseudoType\":"
- out.RawString(prefix[1:])
- (in.PseudoType).MarshalEasyJSON(out)
- }
- if in.PseudoIdentifier != "" {
- const prefix string = ",\"pseudoIdentifier\":"
- out.RawString(prefix)
- out.String(string(in.PseudoIdentifier))
- }
- {
- const prefix string = ",\"matches\":"
- out.RawString(prefix)
- if in.Matches == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v53, v54 := range in.Matches {
- if v53 > 0 {
- out.RawByte(',')
- }
- if v54 == nil {
- out.RawString("null")
- } else {
- (*v54).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v PseudoElementMatches) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss42(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v PseudoElementMatches) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss42(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *PseudoElementMatches) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss42(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *PseudoElementMatches) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss42(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss43(in *jlexer.Lexer, out *PropertyRule) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "origin":
- (out.Origin).UnmarshalEasyJSON(in)
- case "propertyName":
- if in.IsNull() {
- in.Skip()
- out.PropertyName = nil
- } else {
- if out.PropertyName == nil {
- out.PropertyName = new(Value)
- }
- (*out.PropertyName).UnmarshalEasyJSON(in)
- }
- case "style":
- if in.IsNull() {
- in.Skip()
- out.Style = nil
- } else {
- if out.Style == nil {
- out.Style = new(Style)
- }
- (*out.Style).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss43(out *jwriter.Writer, in PropertyRule) {
- out.RawByte('{')
- first := true
- _ = first
- if in.StyleSheetID != "" {
- const prefix string = ",\"styleSheetId\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"origin\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- (in.Origin).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"propertyName\":"
- out.RawString(prefix)
- if in.PropertyName == nil {
- out.RawString("null")
- } else {
- (*in.PropertyName).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"style\":"
- out.RawString(prefix)
- if in.Style == nil {
- out.RawString("null")
- } else {
- (*in.Style).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v PropertyRule) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss43(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v PropertyRule) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss43(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *PropertyRule) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss43(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *PropertyRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss43(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss44(in *jlexer.Lexer, out *PropertyRegistration) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "propertyName":
- out.PropertyName = string(in.String())
- case "initialValue":
- if in.IsNull() {
- in.Skip()
- out.InitialValue = nil
- } else {
- if out.InitialValue == nil {
- out.InitialValue = new(Value)
- }
- (*out.InitialValue).UnmarshalEasyJSON(in)
- }
- case "inherits":
- out.Inherits = bool(in.Bool())
- case "syntax":
- out.Syntax = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss44(out *jwriter.Writer, in PropertyRegistration) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"propertyName\":"
- out.RawString(prefix[1:])
- out.String(string(in.PropertyName))
- }
- if in.InitialValue != nil {
- const prefix string = ",\"initialValue\":"
- out.RawString(prefix)
- (*in.InitialValue).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"inherits\":"
- out.RawString(prefix)
- out.Bool(bool(in.Inherits))
- }
- {
- const prefix string = ",\"syntax\":"
- out.RawString(prefix)
- out.String(string(in.Syntax))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v PropertyRegistration) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss44(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v PropertyRegistration) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss44(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *PropertyRegistration) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss44(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *PropertyRegistration) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss44(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss45(in *jlexer.Lexer, out *Property) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "name":
- out.Name = string(in.String())
- case "value":
- out.Value = string(in.String())
- case "important":
- out.Important = bool(in.Bool())
- case "implicit":
- out.Implicit = bool(in.Bool())
- case "text":
- out.Text = string(in.String())
- case "parsedOk":
- out.ParsedOk = bool(in.Bool())
- case "disabled":
- out.Disabled = bool(in.Bool())
- case "range":
- if in.IsNull() {
- in.Skip()
- out.Range = nil
- } else {
- if out.Range == nil {
- out.Range = new(SourceRange)
- }
- (*out.Range).UnmarshalEasyJSON(in)
- }
- case "longhandProperties":
- if in.IsNull() {
- in.Skip()
- out.LonghandProperties = nil
- } else {
- in.Delim('[')
- if out.LonghandProperties == nil {
- if !in.IsDelim(']') {
- out.LonghandProperties = make([]*Property, 0, 8)
- } else {
- out.LonghandProperties = []*Property{}
- }
- } else {
- out.LonghandProperties = (out.LonghandProperties)[:0]
- }
- for !in.IsDelim(']') {
- var v55 *Property
- if in.IsNull() {
- in.Skip()
- v55 = nil
- } else {
- if v55 == nil {
- v55 = new(Property)
- }
- (*v55).UnmarshalEasyJSON(in)
- }
- out.LonghandProperties = append(out.LonghandProperties, v55)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss45(out *jwriter.Writer, in Property) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"name\":"
- out.RawString(prefix[1:])
- out.String(string(in.Name))
- }
- {
- const prefix string = ",\"value\":"
- out.RawString(prefix)
- out.String(string(in.Value))
- }
- if in.Important {
- const prefix string = ",\"important\":"
- out.RawString(prefix)
- out.Bool(bool(in.Important))
- }
- if in.Implicit {
- const prefix string = ",\"implicit\":"
- out.RawString(prefix)
- out.Bool(bool(in.Implicit))
- }
- if in.Text != "" {
- const prefix string = ",\"text\":"
- out.RawString(prefix)
- out.String(string(in.Text))
- }
- if in.ParsedOk {
- const prefix string = ",\"parsedOk\":"
- out.RawString(prefix)
- out.Bool(bool(in.ParsedOk))
- }
- if in.Disabled {
- const prefix string = ",\"disabled\":"
- out.RawString(prefix)
- out.Bool(bool(in.Disabled))
- }
- if in.Range != nil {
- const prefix string = ",\"range\":"
- out.RawString(prefix)
- (*in.Range).MarshalEasyJSON(out)
- }
- if len(in.LonghandProperties) != 0 {
- const prefix string = ",\"longhandProperties\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v56, v57 := range in.LonghandProperties {
- if v56 > 0 {
- out.RawByte(',')
- }
- if v57 == nil {
- out.RawString("null")
- } else {
- (*v57).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Property) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss45(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Property) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss45(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Property) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss45(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Property) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss45(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss46(in *jlexer.Lexer, out *PositionTryRule) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "name":
- if in.IsNull() {
- in.Skip()
- out.Name = nil
- } else {
- if out.Name == nil {
- out.Name = new(Value)
- }
- (*out.Name).UnmarshalEasyJSON(in)
- }
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "origin":
- (out.Origin).UnmarshalEasyJSON(in)
- case "style":
- if in.IsNull() {
- in.Skip()
- out.Style = nil
- } else {
- if out.Style == nil {
- out.Style = new(Style)
- }
- (*out.Style).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss46(out *jwriter.Writer, in PositionTryRule) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"name\":"
- out.RawString(prefix[1:])
- if in.Name == nil {
- out.RawString("null")
- } else {
- (*in.Name).MarshalEasyJSON(out)
- }
- }
- if in.StyleSheetID != "" {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix)
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"origin\":"
- out.RawString(prefix)
- (in.Origin).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"style\":"
- out.RawString(prefix)
- if in.Style == nil {
- out.RawString("null")
- } else {
- (*in.Style).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v PositionTryRule) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss46(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v PositionTryRule) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss46(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *PositionTryRule) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss46(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *PositionTryRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss46(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss47(in *jlexer.Lexer, out *PlatformFontUsage) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "familyName":
- out.FamilyName = string(in.String())
- case "postScriptName":
- out.PostScriptName = string(in.String())
- case "isCustomFont":
- out.IsCustomFont = bool(in.Bool())
- case "glyphCount":
- out.GlyphCount = float64(in.Float64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss47(out *jwriter.Writer, in PlatformFontUsage) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"familyName\":"
- out.RawString(prefix[1:])
- out.String(string(in.FamilyName))
- }
- {
- const prefix string = ",\"postScriptName\":"
- out.RawString(prefix)
- out.String(string(in.PostScriptName))
- }
- {
- const prefix string = ",\"isCustomFont\":"
- out.RawString(prefix)
- out.Bool(bool(in.IsCustomFont))
- }
- {
- const prefix string = ",\"glyphCount\":"
- out.RawString(prefix)
- out.Float64(float64(in.GlyphCount))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v PlatformFontUsage) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss47(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v PlatformFontUsage) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss47(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *PlatformFontUsage) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss47(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *PlatformFontUsage) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss47(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss48(in *jlexer.Lexer, out *MediaQueryExpression) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "value":
- out.Value = float64(in.Float64())
- case "unit":
- out.Unit = string(in.String())
- case "feature":
- out.Feature = string(in.String())
- case "valueRange":
- if in.IsNull() {
- in.Skip()
- out.ValueRange = nil
- } else {
- if out.ValueRange == nil {
- out.ValueRange = new(SourceRange)
- }
- (*out.ValueRange).UnmarshalEasyJSON(in)
- }
- case "computedLength":
- out.ComputedLength = float64(in.Float64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss48(out *jwriter.Writer, in MediaQueryExpression) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"value\":"
- out.RawString(prefix[1:])
- out.Float64(float64(in.Value))
- }
- {
- const prefix string = ",\"unit\":"
- out.RawString(prefix)
- out.String(string(in.Unit))
- }
- {
- const prefix string = ",\"feature\":"
- out.RawString(prefix)
- out.String(string(in.Feature))
- }
- if in.ValueRange != nil {
- const prefix string = ",\"valueRange\":"
- out.RawString(prefix)
- (*in.ValueRange).MarshalEasyJSON(out)
- }
- if in.ComputedLength != 0 {
- const prefix string = ",\"computedLength\":"
- out.RawString(prefix)
- out.Float64(float64(in.ComputedLength))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v MediaQueryExpression) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss48(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v MediaQueryExpression) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss48(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *MediaQueryExpression) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss48(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *MediaQueryExpression) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss48(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss49(in *jlexer.Lexer, out *MediaQuery) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "expressions":
- if in.IsNull() {
- in.Skip()
- out.Expressions = nil
- } else {
- in.Delim('[')
- if out.Expressions == nil {
- if !in.IsDelim(']') {
- out.Expressions = make([]*MediaQueryExpression, 0, 8)
- } else {
- out.Expressions = []*MediaQueryExpression{}
- }
- } else {
- out.Expressions = (out.Expressions)[:0]
- }
- for !in.IsDelim(']') {
- var v58 *MediaQueryExpression
- if in.IsNull() {
- in.Skip()
- v58 = nil
- } else {
- if v58 == nil {
- v58 = new(MediaQueryExpression)
- }
- (*v58).UnmarshalEasyJSON(in)
- }
- out.Expressions = append(out.Expressions, v58)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "active":
- out.Active = bool(in.Bool())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss49(out *jwriter.Writer, in MediaQuery) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"expressions\":"
- out.RawString(prefix[1:])
- if in.Expressions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v59, v60 := range in.Expressions {
- if v59 > 0 {
- out.RawByte(',')
- }
- if v60 == nil {
- out.RawString("null")
- } else {
- (*v60).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"active\":"
- out.RawString(prefix)
- out.Bool(bool(in.Active))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v MediaQuery) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss49(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v MediaQuery) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss49(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *MediaQuery) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss49(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *MediaQuery) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss49(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss50(in *jlexer.Lexer, out *Media) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "text":
- out.Text = string(in.String())
- case "source":
- (out.Source).UnmarshalEasyJSON(in)
- case "sourceURL":
- out.SourceURL = string(in.String())
- case "range":
- if in.IsNull() {
- in.Skip()
- out.Range = nil
- } else {
- if out.Range == nil {
- out.Range = new(SourceRange)
- }
- (*out.Range).UnmarshalEasyJSON(in)
- }
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "mediaList":
- if in.IsNull() {
- in.Skip()
- out.MediaList = nil
- } else {
- in.Delim('[')
- if out.MediaList == nil {
- if !in.IsDelim(']') {
- out.MediaList = make([]*MediaQuery, 0, 8)
- } else {
- out.MediaList = []*MediaQuery{}
- }
- } else {
- out.MediaList = (out.MediaList)[:0]
- }
- for !in.IsDelim(']') {
- var v61 *MediaQuery
- if in.IsNull() {
- in.Skip()
- v61 = nil
- } else {
- if v61 == nil {
- v61 = new(MediaQuery)
- }
- (*v61).UnmarshalEasyJSON(in)
- }
- out.MediaList = append(out.MediaList, v61)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss50(out *jwriter.Writer, in Media) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"text\":"
- out.RawString(prefix[1:])
- out.String(string(in.Text))
- }
- {
- const prefix string = ",\"source\":"
- out.RawString(prefix)
- (in.Source).MarshalEasyJSON(out)
- }
- if in.SourceURL != "" {
- const prefix string = ",\"sourceURL\":"
- out.RawString(prefix)
- out.String(string(in.SourceURL))
- }
- if in.Range != nil {
- const prefix string = ",\"range\":"
- out.RawString(prefix)
- (*in.Range).MarshalEasyJSON(out)
- }
- if in.StyleSheetID != "" {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix)
- out.String(string(in.StyleSheetID))
- }
- if len(in.MediaList) != 0 {
- const prefix string = ",\"mediaList\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v62, v63 := range in.MediaList {
- if v62 > 0 {
- out.RawByte(',')
- }
- if v63 == nil {
- out.RawString("null")
- } else {
- (*v63).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Media) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss50(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Media) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss50(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Media) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss50(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Media) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss50(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss51(in *jlexer.Lexer, out *LayerData) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "name":
- out.Name = string(in.String())
- case "subLayers":
- if in.IsNull() {
- in.Skip()
- out.SubLayers = nil
- } else {
- in.Delim('[')
- if out.SubLayers == nil {
- if !in.IsDelim(']') {
- out.SubLayers = make([]*LayerData, 0, 8)
- } else {
- out.SubLayers = []*LayerData{}
- }
- } else {
- out.SubLayers = (out.SubLayers)[:0]
- }
- for !in.IsDelim(']') {
- var v64 *LayerData
- if in.IsNull() {
- in.Skip()
- v64 = nil
- } else {
- if v64 == nil {
- v64 = new(LayerData)
- }
- (*v64).UnmarshalEasyJSON(in)
- }
- out.SubLayers = append(out.SubLayers, v64)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "order":
- out.Order = float64(in.Float64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss51(out *jwriter.Writer, in LayerData) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"name\":"
- out.RawString(prefix[1:])
- out.String(string(in.Name))
- }
- if len(in.SubLayers) != 0 {
- const prefix string = ",\"subLayers\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v65, v66 := range in.SubLayers {
- if v65 > 0 {
- out.RawByte(',')
- }
- if v66 == nil {
- out.RawString("null")
- } else {
- (*v66).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- {
- const prefix string = ",\"order\":"
- out.RawString(prefix)
- out.Float64(float64(in.Order))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v LayerData) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss51(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v LayerData) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss51(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *LayerData) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss51(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *LayerData) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss51(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss52(in *jlexer.Lexer, out *Layer) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "text":
- out.Text = string(in.String())
- case "range":
- if in.IsNull() {
- in.Skip()
- out.Range = nil
- } else {
- if out.Range == nil {
- out.Range = new(SourceRange)
- }
- (*out.Range).UnmarshalEasyJSON(in)
- }
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss52(out *jwriter.Writer, in Layer) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"text\":"
- out.RawString(prefix[1:])
- out.String(string(in.Text))
- }
- if in.Range != nil {
- const prefix string = ",\"range\":"
- out.RawString(prefix)
- (*in.Range).MarshalEasyJSON(out)
- }
- if in.StyleSheetID != "" {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix)
- out.String(string(in.StyleSheetID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v Layer) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss52(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v Layer) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss52(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *Layer) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss52(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *Layer) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss52(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss53(in *jlexer.Lexer, out *KeyframesRule) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "animationName":
- if in.IsNull() {
- in.Skip()
- out.AnimationName = nil
- } else {
- if out.AnimationName == nil {
- out.AnimationName = new(Value)
- }
- (*out.AnimationName).UnmarshalEasyJSON(in)
- }
- case "keyframes":
- if in.IsNull() {
- in.Skip()
- out.Keyframes = nil
- } else {
- in.Delim('[')
- if out.Keyframes == nil {
- if !in.IsDelim(']') {
- out.Keyframes = make([]*KeyframeRule, 0, 8)
- } else {
- out.Keyframes = []*KeyframeRule{}
- }
- } else {
- out.Keyframes = (out.Keyframes)[:0]
- }
- for !in.IsDelim(']') {
- var v67 *KeyframeRule
- if in.IsNull() {
- in.Skip()
- v67 = nil
- } else {
- if v67 == nil {
- v67 = new(KeyframeRule)
- }
- (*v67).UnmarshalEasyJSON(in)
- }
- out.Keyframes = append(out.Keyframes, v67)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss53(out *jwriter.Writer, in KeyframesRule) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"animationName\":"
- out.RawString(prefix[1:])
- if in.AnimationName == nil {
- out.RawString("null")
- } else {
- (*in.AnimationName).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"keyframes\":"
- out.RawString(prefix)
- if in.Keyframes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v68, v69 := range in.Keyframes {
- if v68 > 0 {
- out.RawByte(',')
- }
- if v69 == nil {
- out.RawString("null")
- } else {
- (*v69).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v KeyframesRule) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss53(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v KeyframesRule) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss53(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *KeyframesRule) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss53(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *KeyframesRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss53(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss54(in *jlexer.Lexer, out *KeyframeRule) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "origin":
- (out.Origin).UnmarshalEasyJSON(in)
- case "keyText":
- if in.IsNull() {
- in.Skip()
- out.KeyText = nil
- } else {
- if out.KeyText == nil {
- out.KeyText = new(Value)
- }
- (*out.KeyText).UnmarshalEasyJSON(in)
- }
- case "style":
- if in.IsNull() {
- in.Skip()
- out.Style = nil
- } else {
- if out.Style == nil {
- out.Style = new(Style)
- }
- (*out.Style).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss54(out *jwriter.Writer, in KeyframeRule) {
- out.RawByte('{')
- first := true
- _ = first
- if in.StyleSheetID != "" {
- const prefix string = ",\"styleSheetId\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"origin\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- (in.Origin).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"keyText\":"
- out.RawString(prefix)
- if in.KeyText == nil {
- out.RawString("null")
- } else {
- (*in.KeyText).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"style\":"
- out.RawString(prefix)
- if in.Style == nil {
- out.RawString("null")
- } else {
- (*in.Style).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v KeyframeRule) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss54(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v KeyframeRule) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss54(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *KeyframeRule) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss54(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *KeyframeRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss54(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss55(in *jlexer.Lexer, out *InheritedStyleEntry) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "inlineStyle":
- if in.IsNull() {
- in.Skip()
- out.InlineStyle = nil
- } else {
- if out.InlineStyle == nil {
- out.InlineStyle = new(Style)
- }
- (*out.InlineStyle).UnmarshalEasyJSON(in)
- }
- case "matchedCSSRules":
- if in.IsNull() {
- in.Skip()
- out.MatchedCSSRules = nil
- } else {
- in.Delim('[')
- if out.MatchedCSSRules == nil {
- if !in.IsDelim(']') {
- out.MatchedCSSRules = make([]*RuleMatch, 0, 8)
- } else {
- out.MatchedCSSRules = []*RuleMatch{}
- }
- } else {
- out.MatchedCSSRules = (out.MatchedCSSRules)[:0]
- }
- for !in.IsDelim(']') {
- var v70 *RuleMatch
- if in.IsNull() {
- in.Skip()
- v70 = nil
- } else {
- if v70 == nil {
- v70 = new(RuleMatch)
- }
- (*v70).UnmarshalEasyJSON(in)
- }
- out.MatchedCSSRules = append(out.MatchedCSSRules, v70)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss55(out *jwriter.Writer, in InheritedStyleEntry) {
- out.RawByte('{')
- first := true
- _ = first
- if in.InlineStyle != nil {
- const prefix string = ",\"inlineStyle\":"
- first = false
- out.RawString(prefix[1:])
- (*in.InlineStyle).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"matchedCSSRules\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- if in.MatchedCSSRules == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v71, v72 := range in.MatchedCSSRules {
- if v71 > 0 {
- out.RawByte(',')
- }
- if v72 == nil {
- out.RawString("null")
- } else {
- (*v72).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v InheritedStyleEntry) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss55(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v InheritedStyleEntry) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss55(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *InheritedStyleEntry) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss55(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *InheritedStyleEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss55(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss56(in *jlexer.Lexer, out *InheritedPseudoElementMatches) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "pseudoElements":
- if in.IsNull() {
- in.Skip()
- out.PseudoElements = nil
- } else {
- in.Delim('[')
- if out.PseudoElements == nil {
- if !in.IsDelim(']') {
- out.PseudoElements = make([]*PseudoElementMatches, 0, 8)
- } else {
- out.PseudoElements = []*PseudoElementMatches{}
- }
- } else {
- out.PseudoElements = (out.PseudoElements)[:0]
- }
- for !in.IsDelim(']') {
- var v73 *PseudoElementMatches
- if in.IsNull() {
- in.Skip()
- v73 = nil
- } else {
- if v73 == nil {
- v73 = new(PseudoElementMatches)
- }
- (*v73).UnmarshalEasyJSON(in)
- }
- out.PseudoElements = append(out.PseudoElements, v73)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss56(out *jwriter.Writer, in InheritedPseudoElementMatches) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"pseudoElements\":"
- out.RawString(prefix[1:])
- if in.PseudoElements == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v74, v75 := range in.PseudoElements {
- if v74 > 0 {
- out.RawByte(',')
- }
- if v75 == nil {
- out.RawString("null")
- } else {
- (*v75).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v InheritedPseudoElementMatches) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss56(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v InheritedPseudoElementMatches) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss56(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *InheritedPseudoElementMatches) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss56(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *InheritedPseudoElementMatches) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss56(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss57(in *jlexer.Lexer, out *GetStyleSheetTextReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "text":
- out.Text = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss57(out *jwriter.Writer, in GetStyleSheetTextReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Text != "" {
- const prefix string = ",\"text\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.Text))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetStyleSheetTextReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss57(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss57(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetStyleSheetTextReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss57(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss57(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss58(in *jlexer.Lexer, out *GetStyleSheetTextParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss58(out *jwriter.Writer, in GetStyleSheetTextParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetStyleSheetTextParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss58(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss58(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetStyleSheetTextParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss58(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss58(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss59(in *jlexer.Lexer, out *GetPlatformFontsForNodeReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "fonts":
- if in.IsNull() {
- in.Skip()
- out.Fonts = nil
- } else {
- in.Delim('[')
- if out.Fonts == nil {
- if !in.IsDelim(']') {
- out.Fonts = make([]*PlatformFontUsage, 0, 8)
- } else {
- out.Fonts = []*PlatformFontUsage{}
- }
- } else {
- out.Fonts = (out.Fonts)[:0]
- }
- for !in.IsDelim(']') {
- var v76 *PlatformFontUsage
- if in.IsNull() {
- in.Skip()
- v76 = nil
- } else {
- if v76 == nil {
- v76 = new(PlatformFontUsage)
- }
- (*v76).UnmarshalEasyJSON(in)
- }
- out.Fonts = append(out.Fonts, v76)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss59(out *jwriter.Writer, in GetPlatformFontsForNodeReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.Fonts) != 0 {
- const prefix string = ",\"fonts\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v77, v78 := range in.Fonts {
- if v77 > 0 {
- out.RawByte(',')
- }
- if v78 == nil {
- out.RawString("null")
- } else {
- (*v78).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetPlatformFontsForNodeReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss59(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetPlatformFontsForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss59(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetPlatformFontsForNodeReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss59(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetPlatformFontsForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss59(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss60(in *jlexer.Lexer, out *GetPlatformFontsForNodeParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "nodeId":
- (out.NodeID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss60(out *jwriter.Writer, in GetPlatformFontsForNodeParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"nodeId\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.NodeID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetPlatformFontsForNodeParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss60(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetPlatformFontsForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss60(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetPlatformFontsForNodeParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss60(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetPlatformFontsForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss60(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss61(in *jlexer.Lexer, out *GetMediaQueriesReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "medias":
- if in.IsNull() {
- in.Skip()
- out.Medias = nil
- } else {
- in.Delim('[')
- if out.Medias == nil {
- if !in.IsDelim(']') {
- out.Medias = make([]*Media, 0, 8)
- } else {
- out.Medias = []*Media{}
- }
- } else {
- out.Medias = (out.Medias)[:0]
- }
- for !in.IsDelim(']') {
- var v79 *Media
- if in.IsNull() {
- in.Skip()
- v79 = nil
- } else {
- if v79 == nil {
- v79 = new(Media)
- }
- (*v79).UnmarshalEasyJSON(in)
- }
- out.Medias = append(out.Medias, v79)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss61(out *jwriter.Writer, in GetMediaQueriesReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.Medias) != 0 {
- const prefix string = ",\"medias\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v80, v81 := range in.Medias {
- if v80 > 0 {
- out.RawByte(',')
- }
- if v81 == nil {
- out.RawString("null")
- } else {
- (*v81).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetMediaQueriesReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss61(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetMediaQueriesReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss61(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetMediaQueriesReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss61(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetMediaQueriesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss61(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss62(in *jlexer.Lexer, out *GetMediaQueriesParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss62(out *jwriter.Writer, in GetMediaQueriesParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetMediaQueriesParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss62(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetMediaQueriesParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss62(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetMediaQueriesParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss62(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetMediaQueriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss62(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss63(in *jlexer.Lexer, out *GetMatchedStylesForNodeReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "inlineStyle":
- if in.IsNull() {
- in.Skip()
- out.InlineStyle = nil
- } else {
- if out.InlineStyle == nil {
- out.InlineStyle = new(Style)
- }
- (*out.InlineStyle).UnmarshalEasyJSON(in)
- }
- case "attributesStyle":
- if in.IsNull() {
- in.Skip()
- out.AttributesStyle = nil
- } else {
- if out.AttributesStyle == nil {
- out.AttributesStyle = new(Style)
- }
- (*out.AttributesStyle).UnmarshalEasyJSON(in)
- }
- case "matchedCSSRules":
- if in.IsNull() {
- in.Skip()
- out.MatchedCSSRules = nil
- } else {
- in.Delim('[')
- if out.MatchedCSSRules == nil {
- if !in.IsDelim(']') {
- out.MatchedCSSRules = make([]*RuleMatch, 0, 8)
- } else {
- out.MatchedCSSRules = []*RuleMatch{}
- }
- } else {
- out.MatchedCSSRules = (out.MatchedCSSRules)[:0]
- }
- for !in.IsDelim(']') {
- var v82 *RuleMatch
- if in.IsNull() {
- in.Skip()
- v82 = nil
- } else {
- if v82 == nil {
- v82 = new(RuleMatch)
- }
- (*v82).UnmarshalEasyJSON(in)
- }
- out.MatchedCSSRules = append(out.MatchedCSSRules, v82)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "pseudoElements":
- if in.IsNull() {
- in.Skip()
- out.PseudoElements = nil
- } else {
- in.Delim('[')
- if out.PseudoElements == nil {
- if !in.IsDelim(']') {
- out.PseudoElements = make([]*PseudoElementMatches, 0, 8)
- } else {
- out.PseudoElements = []*PseudoElementMatches{}
- }
- } else {
- out.PseudoElements = (out.PseudoElements)[:0]
- }
- for !in.IsDelim(']') {
- var v83 *PseudoElementMatches
- if in.IsNull() {
- in.Skip()
- v83 = nil
- } else {
- if v83 == nil {
- v83 = new(PseudoElementMatches)
- }
- (*v83).UnmarshalEasyJSON(in)
- }
- out.PseudoElements = append(out.PseudoElements, v83)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "inherited":
- if in.IsNull() {
- in.Skip()
- out.Inherited = nil
- } else {
- in.Delim('[')
- if out.Inherited == nil {
- if !in.IsDelim(']') {
- out.Inherited = make([]*InheritedStyleEntry, 0, 8)
- } else {
- out.Inherited = []*InheritedStyleEntry{}
- }
- } else {
- out.Inherited = (out.Inherited)[:0]
- }
- for !in.IsDelim(']') {
- var v84 *InheritedStyleEntry
- if in.IsNull() {
- in.Skip()
- v84 = nil
- } else {
- if v84 == nil {
- v84 = new(InheritedStyleEntry)
- }
- (*v84).UnmarshalEasyJSON(in)
- }
- out.Inherited = append(out.Inherited, v84)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "inheritedPseudoElements":
- if in.IsNull() {
- in.Skip()
- out.InheritedPseudoElements = nil
- } else {
- in.Delim('[')
- if out.InheritedPseudoElements == nil {
- if !in.IsDelim(']') {
- out.InheritedPseudoElements = make([]*InheritedPseudoElementMatches, 0, 8)
- } else {
- out.InheritedPseudoElements = []*InheritedPseudoElementMatches{}
- }
- } else {
- out.InheritedPseudoElements = (out.InheritedPseudoElements)[:0]
- }
- for !in.IsDelim(']') {
- var v85 *InheritedPseudoElementMatches
- if in.IsNull() {
- in.Skip()
- v85 = nil
- } else {
- if v85 == nil {
- v85 = new(InheritedPseudoElementMatches)
- }
- (*v85).UnmarshalEasyJSON(in)
- }
- out.InheritedPseudoElements = append(out.InheritedPseudoElements, v85)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "cssKeyframesRules":
- if in.IsNull() {
- in.Skip()
- out.CSSKeyframesRules = nil
- } else {
- in.Delim('[')
- if out.CSSKeyframesRules == nil {
- if !in.IsDelim(']') {
- out.CSSKeyframesRules = make([]*KeyframesRule, 0, 8)
- } else {
- out.CSSKeyframesRules = []*KeyframesRule{}
- }
- } else {
- out.CSSKeyframesRules = (out.CSSKeyframesRules)[:0]
- }
- for !in.IsDelim(']') {
- var v86 *KeyframesRule
- if in.IsNull() {
- in.Skip()
- v86 = nil
- } else {
- if v86 == nil {
- v86 = new(KeyframesRule)
- }
- (*v86).UnmarshalEasyJSON(in)
- }
- out.CSSKeyframesRules = append(out.CSSKeyframesRules, v86)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "cssPositionTryRules":
- if in.IsNull() {
- in.Skip()
- out.CSSPositionTryRules = nil
- } else {
- in.Delim('[')
- if out.CSSPositionTryRules == nil {
- if !in.IsDelim(']') {
- out.CSSPositionTryRules = make([]*PositionTryRule, 0, 8)
- } else {
- out.CSSPositionTryRules = []*PositionTryRule{}
- }
- } else {
- out.CSSPositionTryRules = (out.CSSPositionTryRules)[:0]
- }
- for !in.IsDelim(']') {
- var v87 *PositionTryRule
- if in.IsNull() {
- in.Skip()
- v87 = nil
- } else {
- if v87 == nil {
- v87 = new(PositionTryRule)
- }
- (*v87).UnmarshalEasyJSON(in)
- }
- out.CSSPositionTryRules = append(out.CSSPositionTryRules, v87)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "cssPropertyRules":
- if in.IsNull() {
- in.Skip()
- out.CSSPropertyRules = nil
- } else {
- in.Delim('[')
- if out.CSSPropertyRules == nil {
- if !in.IsDelim(']') {
- out.CSSPropertyRules = make([]*PropertyRule, 0, 8)
- } else {
- out.CSSPropertyRules = []*PropertyRule{}
- }
- } else {
- out.CSSPropertyRules = (out.CSSPropertyRules)[:0]
- }
- for !in.IsDelim(']') {
- var v88 *PropertyRule
- if in.IsNull() {
- in.Skip()
- v88 = nil
- } else {
- if v88 == nil {
- v88 = new(PropertyRule)
- }
- (*v88).UnmarshalEasyJSON(in)
- }
- out.CSSPropertyRules = append(out.CSSPropertyRules, v88)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "cssPropertyRegistrations":
- if in.IsNull() {
- in.Skip()
- out.CSSPropertyRegistrations = nil
- } else {
- in.Delim('[')
- if out.CSSPropertyRegistrations == nil {
- if !in.IsDelim(']') {
- out.CSSPropertyRegistrations = make([]*PropertyRegistration, 0, 8)
- } else {
- out.CSSPropertyRegistrations = []*PropertyRegistration{}
- }
- } else {
- out.CSSPropertyRegistrations = (out.CSSPropertyRegistrations)[:0]
- }
- for !in.IsDelim(']') {
- var v89 *PropertyRegistration
- if in.IsNull() {
- in.Skip()
- v89 = nil
- } else {
- if v89 == nil {
- v89 = new(PropertyRegistration)
- }
- (*v89).UnmarshalEasyJSON(in)
- }
- out.CSSPropertyRegistrations = append(out.CSSPropertyRegistrations, v89)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "cssFontPaletteValuesRule":
- if in.IsNull() {
- in.Skip()
- out.CSSFontPaletteValuesRule = nil
- } else {
- if out.CSSFontPaletteValuesRule == nil {
- out.CSSFontPaletteValuesRule = new(FontPaletteValuesRule)
- }
- (*out.CSSFontPaletteValuesRule).UnmarshalEasyJSON(in)
- }
- case "parentLayoutNodeId":
- (out.ParentLayoutNodeID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss63(out *jwriter.Writer, in GetMatchedStylesForNodeReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.InlineStyle != nil {
- const prefix string = ",\"inlineStyle\":"
- first = false
- out.RawString(prefix[1:])
- (*in.InlineStyle).MarshalEasyJSON(out)
- }
- if in.AttributesStyle != nil {
- const prefix string = ",\"attributesStyle\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- (*in.AttributesStyle).MarshalEasyJSON(out)
- }
- if len(in.MatchedCSSRules) != 0 {
- const prefix string = ",\"matchedCSSRules\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v90, v91 := range in.MatchedCSSRules {
- if v90 > 0 {
- out.RawByte(',')
- }
- if v91 == nil {
- out.RawString("null")
- } else {
- (*v91).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if len(in.PseudoElements) != 0 {
- const prefix string = ",\"pseudoElements\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v92, v93 := range in.PseudoElements {
- if v92 > 0 {
- out.RawByte(',')
- }
- if v93 == nil {
- out.RawString("null")
- } else {
- (*v93).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if len(in.Inherited) != 0 {
- const prefix string = ",\"inherited\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v94, v95 := range in.Inherited {
- if v94 > 0 {
- out.RawByte(',')
- }
- if v95 == nil {
- out.RawString("null")
- } else {
- (*v95).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if len(in.InheritedPseudoElements) != 0 {
- const prefix string = ",\"inheritedPseudoElements\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v96, v97 := range in.InheritedPseudoElements {
- if v96 > 0 {
- out.RawByte(',')
- }
- if v97 == nil {
- out.RawString("null")
- } else {
- (*v97).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if len(in.CSSKeyframesRules) != 0 {
- const prefix string = ",\"cssKeyframesRules\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v98, v99 := range in.CSSKeyframesRules {
- if v98 > 0 {
- out.RawByte(',')
- }
- if v99 == nil {
- out.RawString("null")
- } else {
- (*v99).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if len(in.CSSPositionTryRules) != 0 {
- const prefix string = ",\"cssPositionTryRules\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v100, v101 := range in.CSSPositionTryRules {
- if v100 > 0 {
- out.RawByte(',')
- }
- if v101 == nil {
- out.RawString("null")
- } else {
- (*v101).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if len(in.CSSPropertyRules) != 0 {
- const prefix string = ",\"cssPropertyRules\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v102, v103 := range in.CSSPropertyRules {
- if v102 > 0 {
- out.RawByte(',')
- }
- if v103 == nil {
- out.RawString("null")
- } else {
- (*v103).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if len(in.CSSPropertyRegistrations) != 0 {
- const prefix string = ",\"cssPropertyRegistrations\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- {
- out.RawByte('[')
- for v104, v105 := range in.CSSPropertyRegistrations {
- if v104 > 0 {
- out.RawByte(',')
- }
- if v105 == nil {
- out.RawString("null")
- } else {
- (*v105).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- if in.CSSFontPaletteValuesRule != nil {
- const prefix string = ",\"cssFontPaletteValuesRule\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- (*in.CSSFontPaletteValuesRule).MarshalEasyJSON(out)
- }
- if in.ParentLayoutNodeID != 0 {
- const prefix string = ",\"parentLayoutNodeId\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.Int64(int64(in.ParentLayoutNodeID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetMatchedStylesForNodeReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss63(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetMatchedStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss63(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetMatchedStylesForNodeReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss63(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetMatchedStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss63(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss64(in *jlexer.Lexer, out *GetMatchedStylesForNodeParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "nodeId":
- (out.NodeID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss64(out *jwriter.Writer, in GetMatchedStylesForNodeParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"nodeId\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.NodeID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetMatchedStylesForNodeParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss64(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetMatchedStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss64(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetMatchedStylesForNodeParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss64(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetMatchedStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss64(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss65(in *jlexer.Lexer, out *GetLocationForSelectorReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "ranges":
- if in.IsNull() {
- in.Skip()
- out.Ranges = nil
- } else {
- in.Delim('[')
- if out.Ranges == nil {
- if !in.IsDelim(']') {
- out.Ranges = make([]*SourceRange, 0, 8)
- } else {
- out.Ranges = []*SourceRange{}
- }
- } else {
- out.Ranges = (out.Ranges)[:0]
- }
- for !in.IsDelim(']') {
- var v106 *SourceRange
- if in.IsNull() {
- in.Skip()
- v106 = nil
- } else {
- if v106 == nil {
- v106 = new(SourceRange)
- }
- (*v106).UnmarshalEasyJSON(in)
- }
- out.Ranges = append(out.Ranges, v106)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss65(out *jwriter.Writer, in GetLocationForSelectorReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.Ranges) != 0 {
- const prefix string = ",\"ranges\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v107, v108 := range in.Ranges {
- if v107 > 0 {
- out.RawByte(',')
- }
- if v108 == nil {
- out.RawString("null")
- } else {
- (*v108).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetLocationForSelectorReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss65(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetLocationForSelectorReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss65(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetLocationForSelectorReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss65(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetLocationForSelectorReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss65(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss66(in *jlexer.Lexer, out *GetLocationForSelectorParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "selectorText":
- out.SelectorText = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss66(out *jwriter.Writer, in GetLocationForSelectorParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"selectorText\":"
- out.RawString(prefix)
- out.String(string(in.SelectorText))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetLocationForSelectorParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss66(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetLocationForSelectorParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss66(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetLocationForSelectorParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss66(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetLocationForSelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss66(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss67(in *jlexer.Lexer, out *GetLayersForNodeReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "rootLayer":
- if in.IsNull() {
- in.Skip()
- out.RootLayer = nil
- } else {
- if out.RootLayer == nil {
- out.RootLayer = new(LayerData)
- }
- (*out.RootLayer).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss67(out *jwriter.Writer, in GetLayersForNodeReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.RootLayer != nil {
- const prefix string = ",\"rootLayer\":"
- first = false
- out.RawString(prefix[1:])
- (*in.RootLayer).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetLayersForNodeReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss67(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetLayersForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss67(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetLayersForNodeReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss67(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetLayersForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss67(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss68(in *jlexer.Lexer, out *GetLayersForNodeParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "nodeId":
- (out.NodeID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss68(out *jwriter.Writer, in GetLayersForNodeParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"nodeId\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.NodeID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetLayersForNodeParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss68(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetLayersForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss68(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetLayersForNodeParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss68(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetLayersForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss68(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss69(in *jlexer.Lexer, out *GetInlineStylesForNodeReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "inlineStyle":
- if in.IsNull() {
- in.Skip()
- out.InlineStyle = nil
- } else {
- if out.InlineStyle == nil {
- out.InlineStyle = new(Style)
- }
- (*out.InlineStyle).UnmarshalEasyJSON(in)
- }
- case "attributesStyle":
- if in.IsNull() {
- in.Skip()
- out.AttributesStyle = nil
- } else {
- if out.AttributesStyle == nil {
- out.AttributesStyle = new(Style)
- }
- (*out.AttributesStyle).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss69(out *jwriter.Writer, in GetInlineStylesForNodeReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.InlineStyle != nil {
- const prefix string = ",\"inlineStyle\":"
- first = false
- out.RawString(prefix[1:])
- (*in.InlineStyle).MarshalEasyJSON(out)
- }
- if in.AttributesStyle != nil {
- const prefix string = ",\"attributesStyle\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- (*in.AttributesStyle).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetInlineStylesForNodeReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss69(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetInlineStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss69(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetInlineStylesForNodeReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss69(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetInlineStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss69(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss70(in *jlexer.Lexer, out *GetInlineStylesForNodeParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "nodeId":
- (out.NodeID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss70(out *jwriter.Writer, in GetInlineStylesForNodeParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"nodeId\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.NodeID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetInlineStylesForNodeParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss70(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetInlineStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss70(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetInlineStylesForNodeParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss70(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetInlineStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss70(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss71(in *jlexer.Lexer, out *GetComputedStyleForNodeReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "computedStyle":
- if in.IsNull() {
- in.Skip()
- out.ComputedStyle = nil
- } else {
- in.Delim('[')
- if out.ComputedStyle == nil {
- if !in.IsDelim(']') {
- out.ComputedStyle = make([]*ComputedStyleProperty, 0, 8)
- } else {
- out.ComputedStyle = []*ComputedStyleProperty{}
- }
- } else {
- out.ComputedStyle = (out.ComputedStyle)[:0]
- }
- for !in.IsDelim(']') {
- var v109 *ComputedStyleProperty
- if in.IsNull() {
- in.Skip()
- v109 = nil
- } else {
- if v109 == nil {
- v109 = new(ComputedStyleProperty)
- }
- (*v109).UnmarshalEasyJSON(in)
- }
- out.ComputedStyle = append(out.ComputedStyle, v109)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss71(out *jwriter.Writer, in GetComputedStyleForNodeReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.ComputedStyle) != 0 {
- const prefix string = ",\"computedStyle\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v110, v111 := range in.ComputedStyle {
- if v110 > 0 {
- out.RawByte(',')
- }
- if v111 == nil {
- out.RawString("null")
- } else {
- (*v111).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetComputedStyleForNodeReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss71(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetComputedStyleForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss71(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetComputedStyleForNodeReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss71(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetComputedStyleForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss71(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss72(in *jlexer.Lexer, out *GetComputedStyleForNodeParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "nodeId":
- (out.NodeID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss72(out *jwriter.Writer, in GetComputedStyleForNodeParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"nodeId\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.NodeID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetComputedStyleForNodeParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss72(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetComputedStyleForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss72(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetComputedStyleForNodeParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss72(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetComputedStyleForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss72(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss73(in *jlexer.Lexer, out *GetBackgroundColorsReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "backgroundColors":
- if in.IsNull() {
- in.Skip()
- out.BackgroundColors = nil
- } else {
- in.Delim('[')
- if out.BackgroundColors == nil {
- if !in.IsDelim(']') {
- out.BackgroundColors = make([]string, 0, 4)
- } else {
- out.BackgroundColors = []string{}
- }
- } else {
- out.BackgroundColors = (out.BackgroundColors)[:0]
- }
- for !in.IsDelim(']') {
- var v112 string
- v112 = string(in.String())
- out.BackgroundColors = append(out.BackgroundColors, v112)
- in.WantComma()
- }
- in.Delim(']')
- }
- case "computedFontSize":
- out.ComputedFontSize = string(in.String())
- case "computedFontWeight":
- out.ComputedFontWeight = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss73(out *jwriter.Writer, in GetBackgroundColorsReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.BackgroundColors) != 0 {
- const prefix string = ",\"backgroundColors\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v113, v114 := range in.BackgroundColors {
- if v113 > 0 {
- out.RawByte(',')
- }
- out.String(string(v114))
- }
- out.RawByte(']')
- }
- }
- if in.ComputedFontSize != "" {
- const prefix string = ",\"computedFontSize\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.ComputedFontSize))
- }
- if in.ComputedFontWeight != "" {
- const prefix string = ",\"computedFontWeight\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- out.String(string(in.ComputedFontWeight))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetBackgroundColorsReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss73(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetBackgroundColorsReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss73(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetBackgroundColorsReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss73(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetBackgroundColorsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss73(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss74(in *jlexer.Lexer, out *GetBackgroundColorsParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "nodeId":
- (out.NodeID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss74(out *jwriter.Writer, in GetBackgroundColorsParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"nodeId\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.NodeID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v GetBackgroundColorsParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss74(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v GetBackgroundColorsParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss74(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *GetBackgroundColorsParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss74(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *GetBackgroundColorsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss74(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss75(in *jlexer.Lexer, out *ForcePseudoStateParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "nodeId":
- (out.NodeID).UnmarshalEasyJSON(in)
- case "forcedPseudoClasses":
- if in.IsNull() {
- in.Skip()
- out.ForcedPseudoClasses = nil
- } else {
- in.Delim('[')
- if out.ForcedPseudoClasses == nil {
- if !in.IsDelim(']') {
- out.ForcedPseudoClasses = make([]string, 0, 4)
- } else {
- out.ForcedPseudoClasses = []string{}
- }
- } else {
- out.ForcedPseudoClasses = (out.ForcedPseudoClasses)[:0]
- }
- for !in.IsDelim(']') {
- var v115 string
- v115 = string(in.String())
- out.ForcedPseudoClasses = append(out.ForcedPseudoClasses, v115)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss75(out *jwriter.Writer, in ForcePseudoStateParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"nodeId\":"
- out.RawString(prefix[1:])
- out.Int64(int64(in.NodeID))
- }
- {
- const prefix string = ",\"forcedPseudoClasses\":"
- out.RawString(prefix)
- if in.ForcedPseudoClasses == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
- out.RawString("null")
- } else {
- out.RawByte('[')
- for v116, v117 := range in.ForcedPseudoClasses {
- if v116 > 0 {
- out.RawByte(',')
- }
- out.String(string(v117))
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ForcePseudoStateParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss75(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ForcePseudoStateParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss75(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ForcePseudoStateParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss75(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ForcePseudoStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss75(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss76(in *jlexer.Lexer, out *FontVariationAxis) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "tag":
- out.Tag = string(in.String())
- case "name":
- out.Name = string(in.String())
- case "minValue":
- out.MinValue = float64(in.Float64())
- case "maxValue":
- out.MaxValue = float64(in.Float64())
- case "defaultValue":
- out.DefaultValue = float64(in.Float64())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss76(out *jwriter.Writer, in FontVariationAxis) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"tag\":"
- out.RawString(prefix[1:])
- out.String(string(in.Tag))
- }
- {
- const prefix string = ",\"name\":"
- out.RawString(prefix)
- out.String(string(in.Name))
- }
- {
- const prefix string = ",\"minValue\":"
- out.RawString(prefix)
- out.Float64(float64(in.MinValue))
- }
- {
- const prefix string = ",\"maxValue\":"
- out.RawString(prefix)
- out.Float64(float64(in.MaxValue))
- }
- {
- const prefix string = ",\"defaultValue\":"
- out.RawString(prefix)
- out.Float64(float64(in.DefaultValue))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v FontVariationAxis) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss76(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v FontVariationAxis) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss76(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *FontVariationAxis) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss76(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *FontVariationAxis) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss76(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss77(in *jlexer.Lexer, out *FontPaletteValuesRule) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "origin":
- (out.Origin).UnmarshalEasyJSON(in)
- case "fontPaletteName":
- if in.IsNull() {
- in.Skip()
- out.FontPaletteName = nil
- } else {
- if out.FontPaletteName == nil {
- out.FontPaletteName = new(Value)
- }
- (*out.FontPaletteName).UnmarshalEasyJSON(in)
- }
- case "style":
- if in.IsNull() {
- in.Skip()
- out.Style = nil
- } else {
- if out.Style == nil {
- out.Style = new(Style)
- }
- (*out.Style).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss77(out *jwriter.Writer, in FontPaletteValuesRule) {
- out.RawByte('{')
- first := true
- _ = first
- if in.StyleSheetID != "" {
- const prefix string = ",\"styleSheetId\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"origin\":"
- if first {
- first = false
- out.RawString(prefix[1:])
- } else {
- out.RawString(prefix)
- }
- (in.Origin).MarshalEasyJSON(out)
- }
- {
- const prefix string = ",\"fontPaletteName\":"
- out.RawString(prefix)
- if in.FontPaletteName == nil {
- out.RawString("null")
- } else {
- (*in.FontPaletteName).MarshalEasyJSON(out)
- }
- }
- {
- const prefix string = ",\"style\":"
- out.RawString(prefix)
- if in.Style == nil {
- out.RawString("null")
- } else {
- (*in.Style).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v FontPaletteValuesRule) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss77(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v FontPaletteValuesRule) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss77(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *FontPaletteValuesRule) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss77(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *FontPaletteValuesRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss77(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss78(in *jlexer.Lexer, out *FontFace) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "fontFamily":
- out.FontFamily = string(in.String())
- case "fontStyle":
- out.FontStyle = string(in.String())
- case "fontVariant":
- out.FontVariant = string(in.String())
- case "fontWeight":
- out.FontWeight = string(in.String())
- case "fontStretch":
- out.FontStretch = string(in.String())
- case "fontDisplay":
- out.FontDisplay = string(in.String())
- case "unicodeRange":
- out.UnicodeRange = string(in.String())
- case "src":
- out.Src = string(in.String())
- case "platformFontFamily":
- out.PlatformFontFamily = string(in.String())
- case "fontVariationAxes":
- if in.IsNull() {
- in.Skip()
- out.FontVariationAxes = nil
- } else {
- in.Delim('[')
- if out.FontVariationAxes == nil {
- if !in.IsDelim(']') {
- out.FontVariationAxes = make([]*FontVariationAxis, 0, 8)
- } else {
- out.FontVariationAxes = []*FontVariationAxis{}
- }
- } else {
- out.FontVariationAxes = (out.FontVariationAxes)[:0]
- }
- for !in.IsDelim(']') {
- var v118 *FontVariationAxis
- if in.IsNull() {
- in.Skip()
- v118 = nil
- } else {
- if v118 == nil {
- v118 = new(FontVariationAxis)
- }
- (*v118).UnmarshalEasyJSON(in)
- }
- out.FontVariationAxes = append(out.FontVariationAxes, v118)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss78(out *jwriter.Writer, in FontFace) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"fontFamily\":"
- out.RawString(prefix[1:])
- out.String(string(in.FontFamily))
- }
- {
- const prefix string = ",\"fontStyle\":"
- out.RawString(prefix)
- out.String(string(in.FontStyle))
- }
- {
- const prefix string = ",\"fontVariant\":"
- out.RawString(prefix)
- out.String(string(in.FontVariant))
- }
- {
- const prefix string = ",\"fontWeight\":"
- out.RawString(prefix)
- out.String(string(in.FontWeight))
- }
- {
- const prefix string = ",\"fontStretch\":"
- out.RawString(prefix)
- out.String(string(in.FontStretch))
- }
- {
- const prefix string = ",\"fontDisplay\":"
- out.RawString(prefix)
- out.String(string(in.FontDisplay))
- }
- {
- const prefix string = ",\"unicodeRange\":"
- out.RawString(prefix)
- out.String(string(in.UnicodeRange))
- }
- {
- const prefix string = ",\"src\":"
- out.RawString(prefix)
- out.String(string(in.Src))
- }
- {
- const prefix string = ",\"platformFontFamily\":"
- out.RawString(prefix)
- out.String(string(in.PlatformFontFamily))
- }
- if len(in.FontVariationAxes) != 0 {
- const prefix string = ",\"fontVariationAxes\":"
- out.RawString(prefix)
- {
- out.RawByte('[')
- for v119, v120 := range in.FontVariationAxes {
- if v119 > 0 {
- out.RawByte(',')
- }
- if v120 == nil {
- out.RawString("null")
- } else {
- (*v120).MarshalEasyJSON(out)
- }
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v FontFace) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss78(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v FontFace) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss78(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *FontFace) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss78(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *FontFace) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss78(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss79(in *jlexer.Lexer, out *EventStyleSheetRemoved) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss79(out *jwriter.Writer, in EventStyleSheetRemoved) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventStyleSheetRemoved) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss79(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventStyleSheetRemoved) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss79(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventStyleSheetRemoved) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss79(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventStyleSheetRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss79(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss80(in *jlexer.Lexer, out *EventStyleSheetChanged) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss80(out *jwriter.Writer, in EventStyleSheetChanged) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventStyleSheetChanged) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss80(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventStyleSheetChanged) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss80(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventStyleSheetChanged) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss80(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventStyleSheetChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss80(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss81(in *jlexer.Lexer, out *EventStyleSheetAdded) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "header":
- if in.IsNull() {
- in.Skip()
- out.Header = nil
- } else {
- if out.Header == nil {
- out.Header = new(StyleSheetHeader)
- }
- (*out.Header).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss81(out *jwriter.Writer, in EventStyleSheetAdded) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"header\":"
- out.RawString(prefix[1:])
- if in.Header == nil {
- out.RawString("null")
- } else {
- (*in.Header).MarshalEasyJSON(out)
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventStyleSheetAdded) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss81(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventStyleSheetAdded) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss81(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventStyleSheetAdded) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss81(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventStyleSheetAdded) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss81(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss82(in *jlexer.Lexer, out *EventMediaQueryResultChanged) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss82(out *jwriter.Writer, in EventMediaQueryResultChanged) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventMediaQueryResultChanged) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss82(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventMediaQueryResultChanged) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss82(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventMediaQueryResultChanged) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss82(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventMediaQueryResultChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss82(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss83(in *jlexer.Lexer, out *EventFontsUpdated) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "font":
- if in.IsNull() {
- in.Skip()
- out.Font = nil
- } else {
- if out.Font == nil {
- out.Font = new(FontFace)
- }
- (*out.Font).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss83(out *jwriter.Writer, in EventFontsUpdated) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Font != nil {
- const prefix string = ",\"font\":"
- first = false
- out.RawString(prefix[1:])
- (*in.Font).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EventFontsUpdated) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss83(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EventFontsUpdated) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss83(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EventFontsUpdated) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss83(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EventFontsUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss83(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss84(in *jlexer.Lexer, out *EnableParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss84(out *jwriter.Writer, in EnableParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v EnableParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss84(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss84(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *EnableParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss84(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss84(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss85(in *jlexer.Lexer, out *DisableParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss85(out *jwriter.Writer, in DisableParams) {
- out.RawByte('{')
- first := true
- _ = first
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v DisableParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss85(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss85(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *DisableParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss85(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss85(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss86(in *jlexer.Lexer, out *CreateStyleSheetReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss86(out *jwriter.Writer, in CreateStyleSheetReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.StyleSheetID != "" {
- const prefix string = ",\"styleSheetId\":"
- first = false
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CreateStyleSheetReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss86(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CreateStyleSheetReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss86(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CreateStyleSheetReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss86(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CreateStyleSheetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss86(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss87(in *jlexer.Lexer, out *CreateStyleSheetParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "frameId":
- (out.FrameID).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss87(out *jwriter.Writer, in CreateStyleSheetParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"frameId\":"
- out.RawString(prefix[1:])
- out.String(string(in.FrameID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CreateStyleSheetParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss87(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CreateStyleSheetParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss87(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CreateStyleSheetParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss87(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CreateStyleSheetParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss87(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss88(in *jlexer.Lexer, out *ContainerQuery) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "text":
- out.Text = string(in.String())
- case "range":
- if in.IsNull() {
- in.Skip()
- out.Range = nil
- } else {
- if out.Range == nil {
- out.Range = new(SourceRange)
- }
- (*out.Range).UnmarshalEasyJSON(in)
- }
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "name":
- out.Name = string(in.String())
- case "physicalAxes":
- (out.PhysicalAxes).UnmarshalEasyJSON(in)
- case "logicalAxes":
- (out.LogicalAxes).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss88(out *jwriter.Writer, in ContainerQuery) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"text\":"
- out.RawString(prefix[1:])
- out.String(string(in.Text))
- }
- if in.Range != nil {
- const prefix string = ",\"range\":"
- out.RawString(prefix)
- (*in.Range).MarshalEasyJSON(out)
- }
- if in.StyleSheetID != "" {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix)
- out.String(string(in.StyleSheetID))
- }
- if in.Name != "" {
- const prefix string = ",\"name\":"
- out.RawString(prefix)
- out.String(string(in.Name))
- }
- if in.PhysicalAxes != "" {
- const prefix string = ",\"physicalAxes\":"
- out.RawString(prefix)
- (in.PhysicalAxes).MarshalEasyJSON(out)
- }
- if in.LogicalAxes != "" {
- const prefix string = ",\"logicalAxes\":"
- out.RawString(prefix)
- (in.LogicalAxes).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ContainerQuery) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss88(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ContainerQuery) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss88(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ContainerQuery) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss88(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ContainerQuery) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss88(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss89(in *jlexer.Lexer, out *ComputedStyleProperty) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "name":
- out.Name = string(in.String())
- case "value":
- out.Value = string(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss89(out *jwriter.Writer, in ComputedStyleProperty) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"name\":"
- out.RawString(prefix[1:])
- out.String(string(in.Name))
- }
- {
- const prefix string = ",\"value\":"
- out.RawString(prefix)
- out.String(string(in.Value))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v ComputedStyleProperty) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss89(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v ComputedStyleProperty) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss89(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *ComputedStyleProperty) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss89(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *ComputedStyleProperty) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss89(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss90(in *jlexer.Lexer, out *CollectClassNamesReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "classNames":
- if in.IsNull() {
- in.Skip()
- out.ClassNames = nil
- } else {
- in.Delim('[')
- if out.ClassNames == nil {
- if !in.IsDelim(']') {
- out.ClassNames = make([]string, 0, 4)
- } else {
- out.ClassNames = []string{}
- }
- } else {
- out.ClassNames = (out.ClassNames)[:0]
- }
- for !in.IsDelim(']') {
- var v121 string
- v121 = string(in.String())
- out.ClassNames = append(out.ClassNames, v121)
- in.WantComma()
- }
- in.Delim(']')
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss90(out *jwriter.Writer, in CollectClassNamesReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if len(in.ClassNames) != 0 {
- const prefix string = ",\"classNames\":"
- first = false
- out.RawString(prefix[1:])
- {
- out.RawByte('[')
- for v122, v123 := range in.ClassNames {
- if v122 > 0 {
- out.RawByte(',')
- }
- out.String(string(v123))
- }
- out.RawByte(']')
- }
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CollectClassNamesReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss90(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CollectClassNamesReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss90(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CollectClassNamesReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss90(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CollectClassNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss90(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss91(in *jlexer.Lexer, out *CollectClassNamesParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss91(out *jwriter.Writer, in CollectClassNamesParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v CollectClassNamesParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss91(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v CollectClassNamesParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss91(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *CollectClassNamesParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss91(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *CollectClassNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss91(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss92(in *jlexer.Lexer, out *AddRuleReturns) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "rule":
- if in.IsNull() {
- in.Skip()
- out.Rule = nil
- } else {
- if out.Rule == nil {
- out.Rule = new(Rule)
- }
- (*out.Rule).UnmarshalEasyJSON(in)
- }
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss92(out *jwriter.Writer, in AddRuleReturns) {
- out.RawByte('{')
- first := true
- _ = first
- if in.Rule != nil {
- const prefix string = ",\"rule\":"
- first = false
- out.RawString(prefix[1:])
- (*in.Rule).MarshalEasyJSON(out)
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AddRuleReturns) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss92(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AddRuleReturns) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss92(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AddRuleReturns) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss92(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AddRuleReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss92(l, v)
- }
- func easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss93(in *jlexer.Lexer, out *AddRuleParams) {
- isTopLevel := in.IsStart()
- if in.IsNull() {
- if isTopLevel {
- in.Consumed()
- }
- in.Skip()
- return
- }
- in.Delim('{')
- for !in.IsDelim('}') {
- key := in.UnsafeFieldName(false)
- in.WantColon()
- if in.IsNull() {
- in.Skip()
- in.WantComma()
- continue
- }
- switch key {
- case "styleSheetId":
- out.StyleSheetID = StyleSheetID(in.String())
- case "ruleText":
- out.RuleText = string(in.String())
- case "location":
- if in.IsNull() {
- in.Skip()
- out.Location = nil
- } else {
- if out.Location == nil {
- out.Location = new(SourceRange)
- }
- (*out.Location).UnmarshalEasyJSON(in)
- }
- case "nodeForPropertySyntaxValidation":
- (out.NodeForPropertySyntaxValidation).UnmarshalEasyJSON(in)
- default:
- in.SkipRecursive()
- }
- in.WantComma()
- }
- in.Delim('}')
- if isTopLevel {
- in.Consumed()
- }
- }
- func easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss93(out *jwriter.Writer, in AddRuleParams) {
- out.RawByte('{')
- first := true
- _ = first
- {
- const prefix string = ",\"styleSheetId\":"
- out.RawString(prefix[1:])
- out.String(string(in.StyleSheetID))
- }
- {
- const prefix string = ",\"ruleText\":"
- out.RawString(prefix)
- out.String(string(in.RuleText))
- }
- {
- const prefix string = ",\"location\":"
- out.RawString(prefix)
- if in.Location == nil {
- out.RawString("null")
- } else {
- (*in.Location).MarshalEasyJSON(out)
- }
- }
- if in.NodeForPropertySyntaxValidation != 0 {
- const prefix string = ",\"nodeForPropertySyntaxValidation\":"
- out.RawString(prefix)
- out.Int64(int64(in.NodeForPropertySyntaxValidation))
- }
- out.RawByte('}')
- }
- // MarshalJSON supports json.Marshaler interface
- func (v AddRuleParams) MarshalJSON() ([]byte, error) {
- w := jwriter.Writer{}
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss93(&w, v)
- return w.Buffer.BuildBytes(), w.Error
- }
- // MarshalEasyJSON supports easyjson.Marshaler interface
- func (v AddRuleParams) MarshalEasyJSON(w *jwriter.Writer) {
- easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss93(w, v)
- }
- // UnmarshalJSON supports json.Unmarshaler interface
- func (v *AddRuleParams) UnmarshalJSON(data []byte) error {
- r := jlexer.Lexer{Data: data}
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss93(&r, v)
- return r.Error()
- }
- // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
- func (v *AddRuleParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
- easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss93(l, v)
- }
|