easyjson.go 130 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package debugger
  3. import (
  4. json "encoding/json"
  5. runtime "github.com/chromedp/cdproto/runtime"
  6. easyjson "github.com/mailru/easyjson"
  7. jlexer "github.com/mailru/easyjson/jlexer"
  8. jwriter "github.com/mailru/easyjson/jwriter"
  9. )
  10. // suppress unused package warning
  11. var (
  12. _ *json.RawMessage
  13. _ *jlexer.Lexer
  14. _ *jwriter.Writer
  15. _ easyjson.Marshaler
  16. )
  17. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger(in *jlexer.Lexer, out *WasmDisassemblyChunk) {
  18. isTopLevel := in.IsStart()
  19. if in.IsNull() {
  20. if isTopLevel {
  21. in.Consumed()
  22. }
  23. in.Skip()
  24. return
  25. }
  26. in.Delim('{')
  27. for !in.IsDelim('}') {
  28. key := in.UnsafeFieldName(false)
  29. in.WantColon()
  30. if in.IsNull() {
  31. in.Skip()
  32. in.WantComma()
  33. continue
  34. }
  35. switch key {
  36. case "lines":
  37. if in.IsNull() {
  38. in.Skip()
  39. out.Lines = nil
  40. } else {
  41. in.Delim('[')
  42. if out.Lines == nil {
  43. if !in.IsDelim(']') {
  44. out.Lines = make([]string, 0, 4)
  45. } else {
  46. out.Lines = []string{}
  47. }
  48. } else {
  49. out.Lines = (out.Lines)[:0]
  50. }
  51. for !in.IsDelim(']') {
  52. var v1 string
  53. v1 = string(in.String())
  54. out.Lines = append(out.Lines, v1)
  55. in.WantComma()
  56. }
  57. in.Delim(']')
  58. }
  59. case "bytecodeOffsets":
  60. if in.IsNull() {
  61. in.Skip()
  62. out.BytecodeOffsets = nil
  63. } else {
  64. in.Delim('[')
  65. if out.BytecodeOffsets == nil {
  66. if !in.IsDelim(']') {
  67. out.BytecodeOffsets = make([]int64, 0, 8)
  68. } else {
  69. out.BytecodeOffsets = []int64{}
  70. }
  71. } else {
  72. out.BytecodeOffsets = (out.BytecodeOffsets)[:0]
  73. }
  74. for !in.IsDelim(']') {
  75. var v2 int64
  76. v2 = int64(in.Int64())
  77. out.BytecodeOffsets = append(out.BytecodeOffsets, v2)
  78. in.WantComma()
  79. }
  80. in.Delim(']')
  81. }
  82. default:
  83. in.SkipRecursive()
  84. }
  85. in.WantComma()
  86. }
  87. in.Delim('}')
  88. if isTopLevel {
  89. in.Consumed()
  90. }
  91. }
  92. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger(out *jwriter.Writer, in WasmDisassemblyChunk) {
  93. out.RawByte('{')
  94. first := true
  95. _ = first
  96. {
  97. const prefix string = ",\"lines\":"
  98. out.RawString(prefix[1:])
  99. if in.Lines == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  100. out.RawString("null")
  101. } else {
  102. out.RawByte('[')
  103. for v3, v4 := range in.Lines {
  104. if v3 > 0 {
  105. out.RawByte(',')
  106. }
  107. out.String(string(v4))
  108. }
  109. out.RawByte(']')
  110. }
  111. }
  112. {
  113. const prefix string = ",\"bytecodeOffsets\":"
  114. out.RawString(prefix)
  115. if in.BytecodeOffsets == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  116. out.RawString("null")
  117. } else {
  118. out.RawByte('[')
  119. for v5, v6 := range in.BytecodeOffsets {
  120. if v5 > 0 {
  121. out.RawByte(',')
  122. }
  123. out.Int64(int64(v6))
  124. }
  125. out.RawByte(']')
  126. }
  127. }
  128. out.RawByte('}')
  129. }
  130. // MarshalJSON supports json.Marshaler interface
  131. func (v WasmDisassemblyChunk) MarshalJSON() ([]byte, error) {
  132. w := jwriter.Writer{}
  133. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger(&w, v)
  134. return w.Buffer.BuildBytes(), w.Error
  135. }
  136. // MarshalEasyJSON supports easyjson.Marshaler interface
  137. func (v WasmDisassemblyChunk) MarshalEasyJSON(w *jwriter.Writer) {
  138. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger(w, v)
  139. }
  140. // UnmarshalJSON supports json.Unmarshaler interface
  141. func (v *WasmDisassemblyChunk) UnmarshalJSON(data []byte) error {
  142. r := jlexer.Lexer{Data: data}
  143. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger(&r, v)
  144. return r.Error()
  145. }
  146. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  147. func (v *WasmDisassemblyChunk) UnmarshalEasyJSON(l *jlexer.Lexer) {
  148. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger(l, v)
  149. }
  150. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger1(in *jlexer.Lexer, out *StepOverParams) {
  151. isTopLevel := in.IsStart()
  152. if in.IsNull() {
  153. if isTopLevel {
  154. in.Consumed()
  155. }
  156. in.Skip()
  157. return
  158. }
  159. in.Delim('{')
  160. for !in.IsDelim('}') {
  161. key := in.UnsafeFieldName(false)
  162. in.WantColon()
  163. if in.IsNull() {
  164. in.Skip()
  165. in.WantComma()
  166. continue
  167. }
  168. switch key {
  169. case "skipList":
  170. if in.IsNull() {
  171. in.Skip()
  172. out.SkipList = nil
  173. } else {
  174. in.Delim('[')
  175. if out.SkipList == nil {
  176. if !in.IsDelim(']') {
  177. out.SkipList = make([]*LocationRange, 0, 8)
  178. } else {
  179. out.SkipList = []*LocationRange{}
  180. }
  181. } else {
  182. out.SkipList = (out.SkipList)[:0]
  183. }
  184. for !in.IsDelim(']') {
  185. var v7 *LocationRange
  186. if in.IsNull() {
  187. in.Skip()
  188. v7 = nil
  189. } else {
  190. if v7 == nil {
  191. v7 = new(LocationRange)
  192. }
  193. (*v7).UnmarshalEasyJSON(in)
  194. }
  195. out.SkipList = append(out.SkipList, v7)
  196. in.WantComma()
  197. }
  198. in.Delim(']')
  199. }
  200. default:
  201. in.SkipRecursive()
  202. }
  203. in.WantComma()
  204. }
  205. in.Delim('}')
  206. if isTopLevel {
  207. in.Consumed()
  208. }
  209. }
  210. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger1(out *jwriter.Writer, in StepOverParams) {
  211. out.RawByte('{')
  212. first := true
  213. _ = first
  214. if len(in.SkipList) != 0 {
  215. const prefix string = ",\"skipList\":"
  216. first = false
  217. out.RawString(prefix[1:])
  218. {
  219. out.RawByte('[')
  220. for v8, v9 := range in.SkipList {
  221. if v8 > 0 {
  222. out.RawByte(',')
  223. }
  224. if v9 == nil {
  225. out.RawString("null")
  226. } else {
  227. (*v9).MarshalEasyJSON(out)
  228. }
  229. }
  230. out.RawByte(']')
  231. }
  232. }
  233. out.RawByte('}')
  234. }
  235. // MarshalJSON supports json.Marshaler interface
  236. func (v StepOverParams) MarshalJSON() ([]byte, error) {
  237. w := jwriter.Writer{}
  238. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger1(&w, v)
  239. return w.Buffer.BuildBytes(), w.Error
  240. }
  241. // MarshalEasyJSON supports easyjson.Marshaler interface
  242. func (v StepOverParams) MarshalEasyJSON(w *jwriter.Writer) {
  243. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger1(w, v)
  244. }
  245. // UnmarshalJSON supports json.Unmarshaler interface
  246. func (v *StepOverParams) UnmarshalJSON(data []byte) error {
  247. r := jlexer.Lexer{Data: data}
  248. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger1(&r, v)
  249. return r.Error()
  250. }
  251. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  252. func (v *StepOverParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  253. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger1(l, v)
  254. }
  255. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger2(in *jlexer.Lexer, out *StepOutParams) {
  256. isTopLevel := in.IsStart()
  257. if in.IsNull() {
  258. if isTopLevel {
  259. in.Consumed()
  260. }
  261. in.Skip()
  262. return
  263. }
  264. in.Delim('{')
  265. for !in.IsDelim('}') {
  266. key := in.UnsafeFieldName(false)
  267. in.WantColon()
  268. if in.IsNull() {
  269. in.Skip()
  270. in.WantComma()
  271. continue
  272. }
  273. switch key {
  274. default:
  275. in.SkipRecursive()
  276. }
  277. in.WantComma()
  278. }
  279. in.Delim('}')
  280. if isTopLevel {
  281. in.Consumed()
  282. }
  283. }
  284. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger2(out *jwriter.Writer, in StepOutParams) {
  285. out.RawByte('{')
  286. first := true
  287. _ = first
  288. out.RawByte('}')
  289. }
  290. // MarshalJSON supports json.Marshaler interface
  291. func (v StepOutParams) MarshalJSON() ([]byte, error) {
  292. w := jwriter.Writer{}
  293. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger2(&w, v)
  294. return w.Buffer.BuildBytes(), w.Error
  295. }
  296. // MarshalEasyJSON supports easyjson.Marshaler interface
  297. func (v StepOutParams) MarshalEasyJSON(w *jwriter.Writer) {
  298. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger2(w, v)
  299. }
  300. // UnmarshalJSON supports json.Unmarshaler interface
  301. func (v *StepOutParams) UnmarshalJSON(data []byte) error {
  302. r := jlexer.Lexer{Data: data}
  303. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger2(&r, v)
  304. return r.Error()
  305. }
  306. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  307. func (v *StepOutParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  308. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger2(l, v)
  309. }
  310. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger3(in *jlexer.Lexer, out *StepIntoParams) {
  311. isTopLevel := in.IsStart()
  312. if in.IsNull() {
  313. if isTopLevel {
  314. in.Consumed()
  315. }
  316. in.Skip()
  317. return
  318. }
  319. in.Delim('{')
  320. for !in.IsDelim('}') {
  321. key := in.UnsafeFieldName(false)
  322. in.WantColon()
  323. if in.IsNull() {
  324. in.Skip()
  325. in.WantComma()
  326. continue
  327. }
  328. switch key {
  329. case "breakOnAsyncCall":
  330. out.BreakOnAsyncCall = bool(in.Bool())
  331. case "skipList":
  332. if in.IsNull() {
  333. in.Skip()
  334. out.SkipList = nil
  335. } else {
  336. in.Delim('[')
  337. if out.SkipList == nil {
  338. if !in.IsDelim(']') {
  339. out.SkipList = make([]*LocationRange, 0, 8)
  340. } else {
  341. out.SkipList = []*LocationRange{}
  342. }
  343. } else {
  344. out.SkipList = (out.SkipList)[:0]
  345. }
  346. for !in.IsDelim(']') {
  347. var v10 *LocationRange
  348. if in.IsNull() {
  349. in.Skip()
  350. v10 = nil
  351. } else {
  352. if v10 == nil {
  353. v10 = new(LocationRange)
  354. }
  355. (*v10).UnmarshalEasyJSON(in)
  356. }
  357. out.SkipList = append(out.SkipList, v10)
  358. in.WantComma()
  359. }
  360. in.Delim(']')
  361. }
  362. default:
  363. in.SkipRecursive()
  364. }
  365. in.WantComma()
  366. }
  367. in.Delim('}')
  368. if isTopLevel {
  369. in.Consumed()
  370. }
  371. }
  372. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger3(out *jwriter.Writer, in StepIntoParams) {
  373. out.RawByte('{')
  374. first := true
  375. _ = first
  376. if in.BreakOnAsyncCall {
  377. const prefix string = ",\"breakOnAsyncCall\":"
  378. first = false
  379. out.RawString(prefix[1:])
  380. out.Bool(bool(in.BreakOnAsyncCall))
  381. }
  382. if len(in.SkipList) != 0 {
  383. const prefix string = ",\"skipList\":"
  384. if first {
  385. first = false
  386. out.RawString(prefix[1:])
  387. } else {
  388. out.RawString(prefix)
  389. }
  390. {
  391. out.RawByte('[')
  392. for v11, v12 := range in.SkipList {
  393. if v11 > 0 {
  394. out.RawByte(',')
  395. }
  396. if v12 == nil {
  397. out.RawString("null")
  398. } else {
  399. (*v12).MarshalEasyJSON(out)
  400. }
  401. }
  402. out.RawByte(']')
  403. }
  404. }
  405. out.RawByte('}')
  406. }
  407. // MarshalJSON supports json.Marshaler interface
  408. func (v StepIntoParams) MarshalJSON() ([]byte, error) {
  409. w := jwriter.Writer{}
  410. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger3(&w, v)
  411. return w.Buffer.BuildBytes(), w.Error
  412. }
  413. // MarshalEasyJSON supports easyjson.Marshaler interface
  414. func (v StepIntoParams) MarshalEasyJSON(w *jwriter.Writer) {
  415. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger3(w, v)
  416. }
  417. // UnmarshalJSON supports json.Unmarshaler interface
  418. func (v *StepIntoParams) UnmarshalJSON(data []byte) error {
  419. r := jlexer.Lexer{Data: data}
  420. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger3(&r, v)
  421. return r.Error()
  422. }
  423. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  424. func (v *StepIntoParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  425. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger3(l, v)
  426. }
  427. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger4(in *jlexer.Lexer, out *SetVariableValueParams) {
  428. isTopLevel := in.IsStart()
  429. if in.IsNull() {
  430. if isTopLevel {
  431. in.Consumed()
  432. }
  433. in.Skip()
  434. return
  435. }
  436. in.Delim('{')
  437. for !in.IsDelim('}') {
  438. key := in.UnsafeFieldName(false)
  439. in.WantColon()
  440. if in.IsNull() {
  441. in.Skip()
  442. in.WantComma()
  443. continue
  444. }
  445. switch key {
  446. case "scopeNumber":
  447. out.ScopeNumber = int64(in.Int64())
  448. case "variableName":
  449. out.VariableName = string(in.String())
  450. case "newValue":
  451. if in.IsNull() {
  452. in.Skip()
  453. out.NewValue = nil
  454. } else {
  455. if out.NewValue == nil {
  456. out.NewValue = new(runtime.CallArgument)
  457. }
  458. (*out.NewValue).UnmarshalEasyJSON(in)
  459. }
  460. case "callFrameId":
  461. out.CallFrameID = CallFrameID(in.String())
  462. default:
  463. in.SkipRecursive()
  464. }
  465. in.WantComma()
  466. }
  467. in.Delim('}')
  468. if isTopLevel {
  469. in.Consumed()
  470. }
  471. }
  472. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger4(out *jwriter.Writer, in SetVariableValueParams) {
  473. out.RawByte('{')
  474. first := true
  475. _ = first
  476. {
  477. const prefix string = ",\"scopeNumber\":"
  478. out.RawString(prefix[1:])
  479. out.Int64(int64(in.ScopeNumber))
  480. }
  481. {
  482. const prefix string = ",\"variableName\":"
  483. out.RawString(prefix)
  484. out.String(string(in.VariableName))
  485. }
  486. {
  487. const prefix string = ",\"newValue\":"
  488. out.RawString(prefix)
  489. if in.NewValue == nil {
  490. out.RawString("null")
  491. } else {
  492. (*in.NewValue).MarshalEasyJSON(out)
  493. }
  494. }
  495. {
  496. const prefix string = ",\"callFrameId\":"
  497. out.RawString(prefix)
  498. out.String(string(in.CallFrameID))
  499. }
  500. out.RawByte('}')
  501. }
  502. // MarshalJSON supports json.Marshaler interface
  503. func (v SetVariableValueParams) MarshalJSON() ([]byte, error) {
  504. w := jwriter.Writer{}
  505. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger4(&w, v)
  506. return w.Buffer.BuildBytes(), w.Error
  507. }
  508. // MarshalEasyJSON supports easyjson.Marshaler interface
  509. func (v SetVariableValueParams) MarshalEasyJSON(w *jwriter.Writer) {
  510. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger4(w, v)
  511. }
  512. // UnmarshalJSON supports json.Unmarshaler interface
  513. func (v *SetVariableValueParams) UnmarshalJSON(data []byte) error {
  514. r := jlexer.Lexer{Data: data}
  515. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger4(&r, v)
  516. return r.Error()
  517. }
  518. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  519. func (v *SetVariableValueParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  520. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger4(l, v)
  521. }
  522. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger5(in *jlexer.Lexer, out *SetSkipAllPausesParams) {
  523. isTopLevel := in.IsStart()
  524. if in.IsNull() {
  525. if isTopLevel {
  526. in.Consumed()
  527. }
  528. in.Skip()
  529. return
  530. }
  531. in.Delim('{')
  532. for !in.IsDelim('}') {
  533. key := in.UnsafeFieldName(false)
  534. in.WantColon()
  535. if in.IsNull() {
  536. in.Skip()
  537. in.WantComma()
  538. continue
  539. }
  540. switch key {
  541. case "skip":
  542. out.Skip = bool(in.Bool())
  543. default:
  544. in.SkipRecursive()
  545. }
  546. in.WantComma()
  547. }
  548. in.Delim('}')
  549. if isTopLevel {
  550. in.Consumed()
  551. }
  552. }
  553. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger5(out *jwriter.Writer, in SetSkipAllPausesParams) {
  554. out.RawByte('{')
  555. first := true
  556. _ = first
  557. {
  558. const prefix string = ",\"skip\":"
  559. out.RawString(prefix[1:])
  560. out.Bool(bool(in.Skip))
  561. }
  562. out.RawByte('}')
  563. }
  564. // MarshalJSON supports json.Marshaler interface
  565. func (v SetSkipAllPausesParams) MarshalJSON() ([]byte, error) {
  566. w := jwriter.Writer{}
  567. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger5(&w, v)
  568. return w.Buffer.BuildBytes(), w.Error
  569. }
  570. // MarshalEasyJSON supports easyjson.Marshaler interface
  571. func (v SetSkipAllPausesParams) MarshalEasyJSON(w *jwriter.Writer) {
  572. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger5(w, v)
  573. }
  574. // UnmarshalJSON supports json.Unmarshaler interface
  575. func (v *SetSkipAllPausesParams) UnmarshalJSON(data []byte) error {
  576. r := jlexer.Lexer{Data: data}
  577. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger5(&r, v)
  578. return r.Error()
  579. }
  580. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  581. func (v *SetSkipAllPausesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  582. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger5(l, v)
  583. }
  584. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger6(in *jlexer.Lexer, out *SetScriptSourceReturns) {
  585. isTopLevel := in.IsStart()
  586. if in.IsNull() {
  587. if isTopLevel {
  588. in.Consumed()
  589. }
  590. in.Skip()
  591. return
  592. }
  593. in.Delim('{')
  594. for !in.IsDelim('}') {
  595. key := in.UnsafeFieldName(false)
  596. in.WantColon()
  597. if in.IsNull() {
  598. in.Skip()
  599. in.WantComma()
  600. continue
  601. }
  602. switch key {
  603. case "status":
  604. (out.Status).UnmarshalEasyJSON(in)
  605. case "exceptionDetails":
  606. if in.IsNull() {
  607. in.Skip()
  608. out.ExceptionDetails = nil
  609. } else {
  610. if out.ExceptionDetails == nil {
  611. out.ExceptionDetails = new(runtime.ExceptionDetails)
  612. }
  613. (*out.ExceptionDetails).UnmarshalEasyJSON(in)
  614. }
  615. default:
  616. in.SkipRecursive()
  617. }
  618. in.WantComma()
  619. }
  620. in.Delim('}')
  621. if isTopLevel {
  622. in.Consumed()
  623. }
  624. }
  625. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger6(out *jwriter.Writer, in SetScriptSourceReturns) {
  626. out.RawByte('{')
  627. first := true
  628. _ = first
  629. if in.Status != "" {
  630. const prefix string = ",\"status\":"
  631. first = false
  632. out.RawString(prefix[1:])
  633. (in.Status).MarshalEasyJSON(out)
  634. }
  635. if in.ExceptionDetails != nil {
  636. const prefix string = ",\"exceptionDetails\":"
  637. if first {
  638. first = false
  639. out.RawString(prefix[1:])
  640. } else {
  641. out.RawString(prefix)
  642. }
  643. (*in.ExceptionDetails).MarshalEasyJSON(out)
  644. }
  645. out.RawByte('}')
  646. }
  647. // MarshalJSON supports json.Marshaler interface
  648. func (v SetScriptSourceReturns) MarshalJSON() ([]byte, error) {
  649. w := jwriter.Writer{}
  650. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger6(&w, v)
  651. return w.Buffer.BuildBytes(), w.Error
  652. }
  653. // MarshalEasyJSON supports easyjson.Marshaler interface
  654. func (v SetScriptSourceReturns) MarshalEasyJSON(w *jwriter.Writer) {
  655. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger6(w, v)
  656. }
  657. // UnmarshalJSON supports json.Unmarshaler interface
  658. func (v *SetScriptSourceReturns) UnmarshalJSON(data []byte) error {
  659. r := jlexer.Lexer{Data: data}
  660. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger6(&r, v)
  661. return r.Error()
  662. }
  663. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  664. func (v *SetScriptSourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  665. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger6(l, v)
  666. }
  667. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger7(in *jlexer.Lexer, out *SetScriptSourceParams) {
  668. isTopLevel := in.IsStart()
  669. if in.IsNull() {
  670. if isTopLevel {
  671. in.Consumed()
  672. }
  673. in.Skip()
  674. return
  675. }
  676. in.Delim('{')
  677. for !in.IsDelim('}') {
  678. key := in.UnsafeFieldName(false)
  679. in.WantColon()
  680. if in.IsNull() {
  681. in.Skip()
  682. in.WantComma()
  683. continue
  684. }
  685. switch key {
  686. case "scriptId":
  687. out.ScriptID = runtime.ScriptID(in.String())
  688. case "scriptSource":
  689. out.ScriptSource = string(in.String())
  690. case "dryRun":
  691. out.DryRun = bool(in.Bool())
  692. case "allowTopFrameEditing":
  693. out.AllowTopFrameEditing = bool(in.Bool())
  694. default:
  695. in.SkipRecursive()
  696. }
  697. in.WantComma()
  698. }
  699. in.Delim('}')
  700. if isTopLevel {
  701. in.Consumed()
  702. }
  703. }
  704. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger7(out *jwriter.Writer, in SetScriptSourceParams) {
  705. out.RawByte('{')
  706. first := true
  707. _ = first
  708. {
  709. const prefix string = ",\"scriptId\":"
  710. out.RawString(prefix[1:])
  711. out.String(string(in.ScriptID))
  712. }
  713. {
  714. const prefix string = ",\"scriptSource\":"
  715. out.RawString(prefix)
  716. out.String(string(in.ScriptSource))
  717. }
  718. if in.DryRun {
  719. const prefix string = ",\"dryRun\":"
  720. out.RawString(prefix)
  721. out.Bool(bool(in.DryRun))
  722. }
  723. if in.AllowTopFrameEditing {
  724. const prefix string = ",\"allowTopFrameEditing\":"
  725. out.RawString(prefix)
  726. out.Bool(bool(in.AllowTopFrameEditing))
  727. }
  728. out.RawByte('}')
  729. }
  730. // MarshalJSON supports json.Marshaler interface
  731. func (v SetScriptSourceParams) MarshalJSON() ([]byte, error) {
  732. w := jwriter.Writer{}
  733. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger7(&w, v)
  734. return w.Buffer.BuildBytes(), w.Error
  735. }
  736. // MarshalEasyJSON supports easyjson.Marshaler interface
  737. func (v SetScriptSourceParams) MarshalEasyJSON(w *jwriter.Writer) {
  738. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger7(w, v)
  739. }
  740. // UnmarshalJSON supports json.Unmarshaler interface
  741. func (v *SetScriptSourceParams) UnmarshalJSON(data []byte) error {
  742. r := jlexer.Lexer{Data: data}
  743. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger7(&r, v)
  744. return r.Error()
  745. }
  746. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  747. func (v *SetScriptSourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  748. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger7(l, v)
  749. }
  750. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger8(in *jlexer.Lexer, out *SetReturnValueParams) {
  751. isTopLevel := in.IsStart()
  752. if in.IsNull() {
  753. if isTopLevel {
  754. in.Consumed()
  755. }
  756. in.Skip()
  757. return
  758. }
  759. in.Delim('{')
  760. for !in.IsDelim('}') {
  761. key := in.UnsafeFieldName(false)
  762. in.WantColon()
  763. if in.IsNull() {
  764. in.Skip()
  765. in.WantComma()
  766. continue
  767. }
  768. switch key {
  769. case "newValue":
  770. if in.IsNull() {
  771. in.Skip()
  772. out.NewValue = nil
  773. } else {
  774. if out.NewValue == nil {
  775. out.NewValue = new(runtime.CallArgument)
  776. }
  777. (*out.NewValue).UnmarshalEasyJSON(in)
  778. }
  779. default:
  780. in.SkipRecursive()
  781. }
  782. in.WantComma()
  783. }
  784. in.Delim('}')
  785. if isTopLevel {
  786. in.Consumed()
  787. }
  788. }
  789. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger8(out *jwriter.Writer, in SetReturnValueParams) {
  790. out.RawByte('{')
  791. first := true
  792. _ = first
  793. {
  794. const prefix string = ",\"newValue\":"
  795. out.RawString(prefix[1:])
  796. if in.NewValue == nil {
  797. out.RawString("null")
  798. } else {
  799. (*in.NewValue).MarshalEasyJSON(out)
  800. }
  801. }
  802. out.RawByte('}')
  803. }
  804. // MarshalJSON supports json.Marshaler interface
  805. func (v SetReturnValueParams) MarshalJSON() ([]byte, error) {
  806. w := jwriter.Writer{}
  807. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger8(&w, v)
  808. return w.Buffer.BuildBytes(), w.Error
  809. }
  810. // MarshalEasyJSON supports easyjson.Marshaler interface
  811. func (v SetReturnValueParams) MarshalEasyJSON(w *jwriter.Writer) {
  812. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger8(w, v)
  813. }
  814. // UnmarshalJSON supports json.Unmarshaler interface
  815. func (v *SetReturnValueParams) UnmarshalJSON(data []byte) error {
  816. r := jlexer.Lexer{Data: data}
  817. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger8(&r, v)
  818. return r.Error()
  819. }
  820. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  821. func (v *SetReturnValueParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  822. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger8(l, v)
  823. }
  824. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger9(in *jlexer.Lexer, out *SetPauseOnExceptionsParams) {
  825. isTopLevel := in.IsStart()
  826. if in.IsNull() {
  827. if isTopLevel {
  828. in.Consumed()
  829. }
  830. in.Skip()
  831. return
  832. }
  833. in.Delim('{')
  834. for !in.IsDelim('}') {
  835. key := in.UnsafeFieldName(false)
  836. in.WantColon()
  837. if in.IsNull() {
  838. in.Skip()
  839. in.WantComma()
  840. continue
  841. }
  842. switch key {
  843. case "state":
  844. (out.State).UnmarshalEasyJSON(in)
  845. default:
  846. in.SkipRecursive()
  847. }
  848. in.WantComma()
  849. }
  850. in.Delim('}')
  851. if isTopLevel {
  852. in.Consumed()
  853. }
  854. }
  855. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger9(out *jwriter.Writer, in SetPauseOnExceptionsParams) {
  856. out.RawByte('{')
  857. first := true
  858. _ = first
  859. {
  860. const prefix string = ",\"state\":"
  861. out.RawString(prefix[1:])
  862. (in.State).MarshalEasyJSON(out)
  863. }
  864. out.RawByte('}')
  865. }
  866. // MarshalJSON supports json.Marshaler interface
  867. func (v SetPauseOnExceptionsParams) MarshalJSON() ([]byte, error) {
  868. w := jwriter.Writer{}
  869. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger9(&w, v)
  870. return w.Buffer.BuildBytes(), w.Error
  871. }
  872. // MarshalEasyJSON supports easyjson.Marshaler interface
  873. func (v SetPauseOnExceptionsParams) MarshalEasyJSON(w *jwriter.Writer) {
  874. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger9(w, v)
  875. }
  876. // UnmarshalJSON supports json.Unmarshaler interface
  877. func (v *SetPauseOnExceptionsParams) UnmarshalJSON(data []byte) error {
  878. r := jlexer.Lexer{Data: data}
  879. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger9(&r, v)
  880. return r.Error()
  881. }
  882. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  883. func (v *SetPauseOnExceptionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  884. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger9(l, v)
  885. }
  886. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger10(in *jlexer.Lexer, out *SetInstrumentationBreakpointReturns) {
  887. isTopLevel := in.IsStart()
  888. if in.IsNull() {
  889. if isTopLevel {
  890. in.Consumed()
  891. }
  892. in.Skip()
  893. return
  894. }
  895. in.Delim('{')
  896. for !in.IsDelim('}') {
  897. key := in.UnsafeFieldName(false)
  898. in.WantColon()
  899. if in.IsNull() {
  900. in.Skip()
  901. in.WantComma()
  902. continue
  903. }
  904. switch key {
  905. case "breakpointId":
  906. out.BreakpointID = BreakpointID(in.String())
  907. default:
  908. in.SkipRecursive()
  909. }
  910. in.WantComma()
  911. }
  912. in.Delim('}')
  913. if isTopLevel {
  914. in.Consumed()
  915. }
  916. }
  917. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger10(out *jwriter.Writer, in SetInstrumentationBreakpointReturns) {
  918. out.RawByte('{')
  919. first := true
  920. _ = first
  921. if in.BreakpointID != "" {
  922. const prefix string = ",\"breakpointId\":"
  923. first = false
  924. out.RawString(prefix[1:])
  925. out.String(string(in.BreakpointID))
  926. }
  927. out.RawByte('}')
  928. }
  929. // MarshalJSON supports json.Marshaler interface
  930. func (v SetInstrumentationBreakpointReturns) MarshalJSON() ([]byte, error) {
  931. w := jwriter.Writer{}
  932. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger10(&w, v)
  933. return w.Buffer.BuildBytes(), w.Error
  934. }
  935. // MarshalEasyJSON supports easyjson.Marshaler interface
  936. func (v SetInstrumentationBreakpointReturns) MarshalEasyJSON(w *jwriter.Writer) {
  937. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger10(w, v)
  938. }
  939. // UnmarshalJSON supports json.Unmarshaler interface
  940. func (v *SetInstrumentationBreakpointReturns) UnmarshalJSON(data []byte) error {
  941. r := jlexer.Lexer{Data: data}
  942. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger10(&r, v)
  943. return r.Error()
  944. }
  945. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  946. func (v *SetInstrumentationBreakpointReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  947. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger10(l, v)
  948. }
  949. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger11(in *jlexer.Lexer, out *SetInstrumentationBreakpointParams) {
  950. isTopLevel := in.IsStart()
  951. if in.IsNull() {
  952. if isTopLevel {
  953. in.Consumed()
  954. }
  955. in.Skip()
  956. return
  957. }
  958. in.Delim('{')
  959. for !in.IsDelim('}') {
  960. key := in.UnsafeFieldName(false)
  961. in.WantColon()
  962. if in.IsNull() {
  963. in.Skip()
  964. in.WantComma()
  965. continue
  966. }
  967. switch key {
  968. case "instrumentation":
  969. (out.Instrumentation).UnmarshalEasyJSON(in)
  970. default:
  971. in.SkipRecursive()
  972. }
  973. in.WantComma()
  974. }
  975. in.Delim('}')
  976. if isTopLevel {
  977. in.Consumed()
  978. }
  979. }
  980. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger11(out *jwriter.Writer, in SetInstrumentationBreakpointParams) {
  981. out.RawByte('{')
  982. first := true
  983. _ = first
  984. {
  985. const prefix string = ",\"instrumentation\":"
  986. out.RawString(prefix[1:])
  987. (in.Instrumentation).MarshalEasyJSON(out)
  988. }
  989. out.RawByte('}')
  990. }
  991. // MarshalJSON supports json.Marshaler interface
  992. func (v SetInstrumentationBreakpointParams) MarshalJSON() ([]byte, error) {
  993. w := jwriter.Writer{}
  994. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger11(&w, v)
  995. return w.Buffer.BuildBytes(), w.Error
  996. }
  997. // MarshalEasyJSON supports easyjson.Marshaler interface
  998. func (v SetInstrumentationBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) {
  999. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger11(w, v)
  1000. }
  1001. // UnmarshalJSON supports json.Unmarshaler interface
  1002. func (v *SetInstrumentationBreakpointParams) UnmarshalJSON(data []byte) error {
  1003. r := jlexer.Lexer{Data: data}
  1004. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger11(&r, v)
  1005. return r.Error()
  1006. }
  1007. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1008. func (v *SetInstrumentationBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1009. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger11(l, v)
  1010. }
  1011. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger12(in *jlexer.Lexer, out *SetBreakpointsActiveParams) {
  1012. isTopLevel := in.IsStart()
  1013. if in.IsNull() {
  1014. if isTopLevel {
  1015. in.Consumed()
  1016. }
  1017. in.Skip()
  1018. return
  1019. }
  1020. in.Delim('{')
  1021. for !in.IsDelim('}') {
  1022. key := in.UnsafeFieldName(false)
  1023. in.WantColon()
  1024. if in.IsNull() {
  1025. in.Skip()
  1026. in.WantComma()
  1027. continue
  1028. }
  1029. switch key {
  1030. case "active":
  1031. out.Active = bool(in.Bool())
  1032. default:
  1033. in.SkipRecursive()
  1034. }
  1035. in.WantComma()
  1036. }
  1037. in.Delim('}')
  1038. if isTopLevel {
  1039. in.Consumed()
  1040. }
  1041. }
  1042. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger12(out *jwriter.Writer, in SetBreakpointsActiveParams) {
  1043. out.RawByte('{')
  1044. first := true
  1045. _ = first
  1046. {
  1047. const prefix string = ",\"active\":"
  1048. out.RawString(prefix[1:])
  1049. out.Bool(bool(in.Active))
  1050. }
  1051. out.RawByte('}')
  1052. }
  1053. // MarshalJSON supports json.Marshaler interface
  1054. func (v SetBreakpointsActiveParams) MarshalJSON() ([]byte, error) {
  1055. w := jwriter.Writer{}
  1056. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger12(&w, v)
  1057. return w.Buffer.BuildBytes(), w.Error
  1058. }
  1059. // MarshalEasyJSON supports easyjson.Marshaler interface
  1060. func (v SetBreakpointsActiveParams) MarshalEasyJSON(w *jwriter.Writer) {
  1061. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger12(w, v)
  1062. }
  1063. // UnmarshalJSON supports json.Unmarshaler interface
  1064. func (v *SetBreakpointsActiveParams) UnmarshalJSON(data []byte) error {
  1065. r := jlexer.Lexer{Data: data}
  1066. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger12(&r, v)
  1067. return r.Error()
  1068. }
  1069. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1070. func (v *SetBreakpointsActiveParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1071. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger12(l, v)
  1072. }
  1073. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger13(in *jlexer.Lexer, out *SetBreakpointReturns) {
  1074. isTopLevel := in.IsStart()
  1075. if in.IsNull() {
  1076. if isTopLevel {
  1077. in.Consumed()
  1078. }
  1079. in.Skip()
  1080. return
  1081. }
  1082. in.Delim('{')
  1083. for !in.IsDelim('}') {
  1084. key := in.UnsafeFieldName(false)
  1085. in.WantColon()
  1086. if in.IsNull() {
  1087. in.Skip()
  1088. in.WantComma()
  1089. continue
  1090. }
  1091. switch key {
  1092. case "breakpointId":
  1093. out.BreakpointID = BreakpointID(in.String())
  1094. case "actualLocation":
  1095. if in.IsNull() {
  1096. in.Skip()
  1097. out.ActualLocation = nil
  1098. } else {
  1099. if out.ActualLocation == nil {
  1100. out.ActualLocation = new(Location)
  1101. }
  1102. (*out.ActualLocation).UnmarshalEasyJSON(in)
  1103. }
  1104. default:
  1105. in.SkipRecursive()
  1106. }
  1107. in.WantComma()
  1108. }
  1109. in.Delim('}')
  1110. if isTopLevel {
  1111. in.Consumed()
  1112. }
  1113. }
  1114. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger13(out *jwriter.Writer, in SetBreakpointReturns) {
  1115. out.RawByte('{')
  1116. first := true
  1117. _ = first
  1118. if in.BreakpointID != "" {
  1119. const prefix string = ",\"breakpointId\":"
  1120. first = false
  1121. out.RawString(prefix[1:])
  1122. out.String(string(in.BreakpointID))
  1123. }
  1124. if in.ActualLocation != nil {
  1125. const prefix string = ",\"actualLocation\":"
  1126. if first {
  1127. first = false
  1128. out.RawString(prefix[1:])
  1129. } else {
  1130. out.RawString(prefix)
  1131. }
  1132. (*in.ActualLocation).MarshalEasyJSON(out)
  1133. }
  1134. out.RawByte('}')
  1135. }
  1136. // MarshalJSON supports json.Marshaler interface
  1137. func (v SetBreakpointReturns) MarshalJSON() ([]byte, error) {
  1138. w := jwriter.Writer{}
  1139. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger13(&w, v)
  1140. return w.Buffer.BuildBytes(), w.Error
  1141. }
  1142. // MarshalEasyJSON supports easyjson.Marshaler interface
  1143. func (v SetBreakpointReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1144. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger13(w, v)
  1145. }
  1146. // UnmarshalJSON supports json.Unmarshaler interface
  1147. func (v *SetBreakpointReturns) UnmarshalJSON(data []byte) error {
  1148. r := jlexer.Lexer{Data: data}
  1149. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger13(&r, v)
  1150. return r.Error()
  1151. }
  1152. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1153. func (v *SetBreakpointReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1154. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger13(l, v)
  1155. }
  1156. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger14(in *jlexer.Lexer, out *SetBreakpointParams) {
  1157. isTopLevel := in.IsStart()
  1158. if in.IsNull() {
  1159. if isTopLevel {
  1160. in.Consumed()
  1161. }
  1162. in.Skip()
  1163. return
  1164. }
  1165. in.Delim('{')
  1166. for !in.IsDelim('}') {
  1167. key := in.UnsafeFieldName(false)
  1168. in.WantColon()
  1169. if in.IsNull() {
  1170. in.Skip()
  1171. in.WantComma()
  1172. continue
  1173. }
  1174. switch key {
  1175. case "location":
  1176. if in.IsNull() {
  1177. in.Skip()
  1178. out.Location = nil
  1179. } else {
  1180. if out.Location == nil {
  1181. out.Location = new(Location)
  1182. }
  1183. (*out.Location).UnmarshalEasyJSON(in)
  1184. }
  1185. case "condition":
  1186. out.Condition = string(in.String())
  1187. default:
  1188. in.SkipRecursive()
  1189. }
  1190. in.WantComma()
  1191. }
  1192. in.Delim('}')
  1193. if isTopLevel {
  1194. in.Consumed()
  1195. }
  1196. }
  1197. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger14(out *jwriter.Writer, in SetBreakpointParams) {
  1198. out.RawByte('{')
  1199. first := true
  1200. _ = first
  1201. {
  1202. const prefix string = ",\"location\":"
  1203. out.RawString(prefix[1:])
  1204. if in.Location == nil {
  1205. out.RawString("null")
  1206. } else {
  1207. (*in.Location).MarshalEasyJSON(out)
  1208. }
  1209. }
  1210. if in.Condition != "" {
  1211. const prefix string = ",\"condition\":"
  1212. out.RawString(prefix)
  1213. out.String(string(in.Condition))
  1214. }
  1215. out.RawByte('}')
  1216. }
  1217. // MarshalJSON supports json.Marshaler interface
  1218. func (v SetBreakpointParams) MarshalJSON() ([]byte, error) {
  1219. w := jwriter.Writer{}
  1220. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger14(&w, v)
  1221. return w.Buffer.BuildBytes(), w.Error
  1222. }
  1223. // MarshalEasyJSON supports easyjson.Marshaler interface
  1224. func (v SetBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) {
  1225. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger14(w, v)
  1226. }
  1227. // UnmarshalJSON supports json.Unmarshaler interface
  1228. func (v *SetBreakpointParams) UnmarshalJSON(data []byte) error {
  1229. r := jlexer.Lexer{Data: data}
  1230. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger14(&r, v)
  1231. return r.Error()
  1232. }
  1233. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1234. func (v *SetBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1235. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger14(l, v)
  1236. }
  1237. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger15(in *jlexer.Lexer, out *SetBreakpointOnFunctionCallReturns) {
  1238. isTopLevel := in.IsStart()
  1239. if in.IsNull() {
  1240. if isTopLevel {
  1241. in.Consumed()
  1242. }
  1243. in.Skip()
  1244. return
  1245. }
  1246. in.Delim('{')
  1247. for !in.IsDelim('}') {
  1248. key := in.UnsafeFieldName(false)
  1249. in.WantColon()
  1250. if in.IsNull() {
  1251. in.Skip()
  1252. in.WantComma()
  1253. continue
  1254. }
  1255. switch key {
  1256. case "breakpointId":
  1257. out.BreakpointID = BreakpointID(in.String())
  1258. default:
  1259. in.SkipRecursive()
  1260. }
  1261. in.WantComma()
  1262. }
  1263. in.Delim('}')
  1264. if isTopLevel {
  1265. in.Consumed()
  1266. }
  1267. }
  1268. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger15(out *jwriter.Writer, in SetBreakpointOnFunctionCallReturns) {
  1269. out.RawByte('{')
  1270. first := true
  1271. _ = first
  1272. if in.BreakpointID != "" {
  1273. const prefix string = ",\"breakpointId\":"
  1274. first = false
  1275. out.RawString(prefix[1:])
  1276. out.String(string(in.BreakpointID))
  1277. }
  1278. out.RawByte('}')
  1279. }
  1280. // MarshalJSON supports json.Marshaler interface
  1281. func (v SetBreakpointOnFunctionCallReturns) MarshalJSON() ([]byte, error) {
  1282. w := jwriter.Writer{}
  1283. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger15(&w, v)
  1284. return w.Buffer.BuildBytes(), w.Error
  1285. }
  1286. // MarshalEasyJSON supports easyjson.Marshaler interface
  1287. func (v SetBreakpointOnFunctionCallReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1288. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger15(w, v)
  1289. }
  1290. // UnmarshalJSON supports json.Unmarshaler interface
  1291. func (v *SetBreakpointOnFunctionCallReturns) UnmarshalJSON(data []byte) error {
  1292. r := jlexer.Lexer{Data: data}
  1293. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger15(&r, v)
  1294. return r.Error()
  1295. }
  1296. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1297. func (v *SetBreakpointOnFunctionCallReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1298. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger15(l, v)
  1299. }
  1300. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger16(in *jlexer.Lexer, out *SetBreakpointOnFunctionCallParams) {
  1301. isTopLevel := in.IsStart()
  1302. if in.IsNull() {
  1303. if isTopLevel {
  1304. in.Consumed()
  1305. }
  1306. in.Skip()
  1307. return
  1308. }
  1309. in.Delim('{')
  1310. for !in.IsDelim('}') {
  1311. key := in.UnsafeFieldName(false)
  1312. in.WantColon()
  1313. if in.IsNull() {
  1314. in.Skip()
  1315. in.WantComma()
  1316. continue
  1317. }
  1318. switch key {
  1319. case "objectId":
  1320. out.ObjectID = runtime.RemoteObjectID(in.String())
  1321. case "condition":
  1322. out.Condition = string(in.String())
  1323. default:
  1324. in.SkipRecursive()
  1325. }
  1326. in.WantComma()
  1327. }
  1328. in.Delim('}')
  1329. if isTopLevel {
  1330. in.Consumed()
  1331. }
  1332. }
  1333. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger16(out *jwriter.Writer, in SetBreakpointOnFunctionCallParams) {
  1334. out.RawByte('{')
  1335. first := true
  1336. _ = first
  1337. {
  1338. const prefix string = ",\"objectId\":"
  1339. out.RawString(prefix[1:])
  1340. out.String(string(in.ObjectID))
  1341. }
  1342. if in.Condition != "" {
  1343. const prefix string = ",\"condition\":"
  1344. out.RawString(prefix)
  1345. out.String(string(in.Condition))
  1346. }
  1347. out.RawByte('}')
  1348. }
  1349. // MarshalJSON supports json.Marshaler interface
  1350. func (v SetBreakpointOnFunctionCallParams) MarshalJSON() ([]byte, error) {
  1351. w := jwriter.Writer{}
  1352. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger16(&w, v)
  1353. return w.Buffer.BuildBytes(), w.Error
  1354. }
  1355. // MarshalEasyJSON supports easyjson.Marshaler interface
  1356. func (v SetBreakpointOnFunctionCallParams) MarshalEasyJSON(w *jwriter.Writer) {
  1357. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger16(w, v)
  1358. }
  1359. // UnmarshalJSON supports json.Unmarshaler interface
  1360. func (v *SetBreakpointOnFunctionCallParams) UnmarshalJSON(data []byte) error {
  1361. r := jlexer.Lexer{Data: data}
  1362. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger16(&r, v)
  1363. return r.Error()
  1364. }
  1365. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1366. func (v *SetBreakpointOnFunctionCallParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1367. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger16(l, v)
  1368. }
  1369. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger17(in *jlexer.Lexer, out *SetBreakpointByURLReturns) {
  1370. isTopLevel := in.IsStart()
  1371. if in.IsNull() {
  1372. if isTopLevel {
  1373. in.Consumed()
  1374. }
  1375. in.Skip()
  1376. return
  1377. }
  1378. in.Delim('{')
  1379. for !in.IsDelim('}') {
  1380. key := in.UnsafeFieldName(false)
  1381. in.WantColon()
  1382. if in.IsNull() {
  1383. in.Skip()
  1384. in.WantComma()
  1385. continue
  1386. }
  1387. switch key {
  1388. case "breakpointId":
  1389. out.BreakpointID = BreakpointID(in.String())
  1390. case "locations":
  1391. if in.IsNull() {
  1392. in.Skip()
  1393. out.Locations = nil
  1394. } else {
  1395. in.Delim('[')
  1396. if out.Locations == nil {
  1397. if !in.IsDelim(']') {
  1398. out.Locations = make([]*Location, 0, 8)
  1399. } else {
  1400. out.Locations = []*Location{}
  1401. }
  1402. } else {
  1403. out.Locations = (out.Locations)[:0]
  1404. }
  1405. for !in.IsDelim(']') {
  1406. var v13 *Location
  1407. if in.IsNull() {
  1408. in.Skip()
  1409. v13 = nil
  1410. } else {
  1411. if v13 == nil {
  1412. v13 = new(Location)
  1413. }
  1414. (*v13).UnmarshalEasyJSON(in)
  1415. }
  1416. out.Locations = append(out.Locations, v13)
  1417. in.WantComma()
  1418. }
  1419. in.Delim(']')
  1420. }
  1421. default:
  1422. in.SkipRecursive()
  1423. }
  1424. in.WantComma()
  1425. }
  1426. in.Delim('}')
  1427. if isTopLevel {
  1428. in.Consumed()
  1429. }
  1430. }
  1431. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger17(out *jwriter.Writer, in SetBreakpointByURLReturns) {
  1432. out.RawByte('{')
  1433. first := true
  1434. _ = first
  1435. if in.BreakpointID != "" {
  1436. const prefix string = ",\"breakpointId\":"
  1437. first = false
  1438. out.RawString(prefix[1:])
  1439. out.String(string(in.BreakpointID))
  1440. }
  1441. if len(in.Locations) != 0 {
  1442. const prefix string = ",\"locations\":"
  1443. if first {
  1444. first = false
  1445. out.RawString(prefix[1:])
  1446. } else {
  1447. out.RawString(prefix)
  1448. }
  1449. {
  1450. out.RawByte('[')
  1451. for v14, v15 := range in.Locations {
  1452. if v14 > 0 {
  1453. out.RawByte(',')
  1454. }
  1455. if v15 == nil {
  1456. out.RawString("null")
  1457. } else {
  1458. (*v15).MarshalEasyJSON(out)
  1459. }
  1460. }
  1461. out.RawByte(']')
  1462. }
  1463. }
  1464. out.RawByte('}')
  1465. }
  1466. // MarshalJSON supports json.Marshaler interface
  1467. func (v SetBreakpointByURLReturns) MarshalJSON() ([]byte, error) {
  1468. w := jwriter.Writer{}
  1469. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger17(&w, v)
  1470. return w.Buffer.BuildBytes(), w.Error
  1471. }
  1472. // MarshalEasyJSON supports easyjson.Marshaler interface
  1473. func (v SetBreakpointByURLReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1474. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger17(w, v)
  1475. }
  1476. // UnmarshalJSON supports json.Unmarshaler interface
  1477. func (v *SetBreakpointByURLReturns) UnmarshalJSON(data []byte) error {
  1478. r := jlexer.Lexer{Data: data}
  1479. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger17(&r, v)
  1480. return r.Error()
  1481. }
  1482. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1483. func (v *SetBreakpointByURLReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1484. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger17(l, v)
  1485. }
  1486. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger18(in *jlexer.Lexer, out *SetBreakpointByURLParams) {
  1487. isTopLevel := in.IsStart()
  1488. if in.IsNull() {
  1489. if isTopLevel {
  1490. in.Consumed()
  1491. }
  1492. in.Skip()
  1493. return
  1494. }
  1495. in.Delim('{')
  1496. for !in.IsDelim('}') {
  1497. key := in.UnsafeFieldName(false)
  1498. in.WantColon()
  1499. if in.IsNull() {
  1500. in.Skip()
  1501. in.WantComma()
  1502. continue
  1503. }
  1504. switch key {
  1505. case "lineNumber":
  1506. out.LineNumber = int64(in.Int64())
  1507. case "url":
  1508. out.URL = string(in.String())
  1509. case "urlRegex":
  1510. out.URLRegex = string(in.String())
  1511. case "scriptHash":
  1512. out.ScriptHash = string(in.String())
  1513. case "columnNumber":
  1514. out.ColumnNumber = int64(in.Int64())
  1515. case "condition":
  1516. out.Condition = string(in.String())
  1517. default:
  1518. in.SkipRecursive()
  1519. }
  1520. in.WantComma()
  1521. }
  1522. in.Delim('}')
  1523. if isTopLevel {
  1524. in.Consumed()
  1525. }
  1526. }
  1527. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger18(out *jwriter.Writer, in SetBreakpointByURLParams) {
  1528. out.RawByte('{')
  1529. first := true
  1530. _ = first
  1531. {
  1532. const prefix string = ",\"lineNumber\":"
  1533. out.RawString(prefix[1:])
  1534. out.Int64(int64(in.LineNumber))
  1535. }
  1536. if in.URL != "" {
  1537. const prefix string = ",\"url\":"
  1538. out.RawString(prefix)
  1539. out.String(string(in.URL))
  1540. }
  1541. if in.URLRegex != "" {
  1542. const prefix string = ",\"urlRegex\":"
  1543. out.RawString(prefix)
  1544. out.String(string(in.URLRegex))
  1545. }
  1546. if in.ScriptHash != "" {
  1547. const prefix string = ",\"scriptHash\":"
  1548. out.RawString(prefix)
  1549. out.String(string(in.ScriptHash))
  1550. }
  1551. if in.ColumnNumber != 0 {
  1552. const prefix string = ",\"columnNumber\":"
  1553. out.RawString(prefix)
  1554. out.Int64(int64(in.ColumnNumber))
  1555. }
  1556. if in.Condition != "" {
  1557. const prefix string = ",\"condition\":"
  1558. out.RawString(prefix)
  1559. out.String(string(in.Condition))
  1560. }
  1561. out.RawByte('}')
  1562. }
  1563. // MarshalJSON supports json.Marshaler interface
  1564. func (v SetBreakpointByURLParams) MarshalJSON() ([]byte, error) {
  1565. w := jwriter.Writer{}
  1566. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger18(&w, v)
  1567. return w.Buffer.BuildBytes(), w.Error
  1568. }
  1569. // MarshalEasyJSON supports easyjson.Marshaler interface
  1570. func (v SetBreakpointByURLParams) MarshalEasyJSON(w *jwriter.Writer) {
  1571. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger18(w, v)
  1572. }
  1573. // UnmarshalJSON supports json.Unmarshaler interface
  1574. func (v *SetBreakpointByURLParams) UnmarshalJSON(data []byte) error {
  1575. r := jlexer.Lexer{Data: data}
  1576. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger18(&r, v)
  1577. return r.Error()
  1578. }
  1579. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1580. func (v *SetBreakpointByURLParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1581. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger18(l, v)
  1582. }
  1583. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger19(in *jlexer.Lexer, out *SetBlackboxedRangesParams) {
  1584. isTopLevel := in.IsStart()
  1585. if in.IsNull() {
  1586. if isTopLevel {
  1587. in.Consumed()
  1588. }
  1589. in.Skip()
  1590. return
  1591. }
  1592. in.Delim('{')
  1593. for !in.IsDelim('}') {
  1594. key := in.UnsafeFieldName(false)
  1595. in.WantColon()
  1596. if in.IsNull() {
  1597. in.Skip()
  1598. in.WantComma()
  1599. continue
  1600. }
  1601. switch key {
  1602. case "scriptId":
  1603. out.ScriptID = runtime.ScriptID(in.String())
  1604. case "positions":
  1605. if in.IsNull() {
  1606. in.Skip()
  1607. out.Positions = nil
  1608. } else {
  1609. in.Delim('[')
  1610. if out.Positions == nil {
  1611. if !in.IsDelim(']') {
  1612. out.Positions = make([]*ScriptPosition, 0, 8)
  1613. } else {
  1614. out.Positions = []*ScriptPosition{}
  1615. }
  1616. } else {
  1617. out.Positions = (out.Positions)[:0]
  1618. }
  1619. for !in.IsDelim(']') {
  1620. var v16 *ScriptPosition
  1621. if in.IsNull() {
  1622. in.Skip()
  1623. v16 = nil
  1624. } else {
  1625. if v16 == nil {
  1626. v16 = new(ScriptPosition)
  1627. }
  1628. (*v16).UnmarshalEasyJSON(in)
  1629. }
  1630. out.Positions = append(out.Positions, v16)
  1631. in.WantComma()
  1632. }
  1633. in.Delim(']')
  1634. }
  1635. default:
  1636. in.SkipRecursive()
  1637. }
  1638. in.WantComma()
  1639. }
  1640. in.Delim('}')
  1641. if isTopLevel {
  1642. in.Consumed()
  1643. }
  1644. }
  1645. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger19(out *jwriter.Writer, in SetBlackboxedRangesParams) {
  1646. out.RawByte('{')
  1647. first := true
  1648. _ = first
  1649. {
  1650. const prefix string = ",\"scriptId\":"
  1651. out.RawString(prefix[1:])
  1652. out.String(string(in.ScriptID))
  1653. }
  1654. {
  1655. const prefix string = ",\"positions\":"
  1656. out.RawString(prefix)
  1657. if in.Positions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1658. out.RawString("null")
  1659. } else {
  1660. out.RawByte('[')
  1661. for v17, v18 := range in.Positions {
  1662. if v17 > 0 {
  1663. out.RawByte(',')
  1664. }
  1665. if v18 == nil {
  1666. out.RawString("null")
  1667. } else {
  1668. (*v18).MarshalEasyJSON(out)
  1669. }
  1670. }
  1671. out.RawByte(']')
  1672. }
  1673. }
  1674. out.RawByte('}')
  1675. }
  1676. // MarshalJSON supports json.Marshaler interface
  1677. func (v SetBlackboxedRangesParams) MarshalJSON() ([]byte, error) {
  1678. w := jwriter.Writer{}
  1679. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger19(&w, v)
  1680. return w.Buffer.BuildBytes(), w.Error
  1681. }
  1682. // MarshalEasyJSON supports easyjson.Marshaler interface
  1683. func (v SetBlackboxedRangesParams) MarshalEasyJSON(w *jwriter.Writer) {
  1684. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger19(w, v)
  1685. }
  1686. // UnmarshalJSON supports json.Unmarshaler interface
  1687. func (v *SetBlackboxedRangesParams) UnmarshalJSON(data []byte) error {
  1688. r := jlexer.Lexer{Data: data}
  1689. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger19(&r, v)
  1690. return r.Error()
  1691. }
  1692. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1693. func (v *SetBlackboxedRangesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1694. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger19(l, v)
  1695. }
  1696. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger20(in *jlexer.Lexer, out *SetBlackboxPatternsParams) {
  1697. isTopLevel := in.IsStart()
  1698. if in.IsNull() {
  1699. if isTopLevel {
  1700. in.Consumed()
  1701. }
  1702. in.Skip()
  1703. return
  1704. }
  1705. in.Delim('{')
  1706. for !in.IsDelim('}') {
  1707. key := in.UnsafeFieldName(false)
  1708. in.WantColon()
  1709. if in.IsNull() {
  1710. in.Skip()
  1711. in.WantComma()
  1712. continue
  1713. }
  1714. switch key {
  1715. case "patterns":
  1716. if in.IsNull() {
  1717. in.Skip()
  1718. out.Patterns = nil
  1719. } else {
  1720. in.Delim('[')
  1721. if out.Patterns == nil {
  1722. if !in.IsDelim(']') {
  1723. out.Patterns = make([]string, 0, 4)
  1724. } else {
  1725. out.Patterns = []string{}
  1726. }
  1727. } else {
  1728. out.Patterns = (out.Patterns)[:0]
  1729. }
  1730. for !in.IsDelim(']') {
  1731. var v19 string
  1732. v19 = string(in.String())
  1733. out.Patterns = append(out.Patterns, v19)
  1734. in.WantComma()
  1735. }
  1736. in.Delim(']')
  1737. }
  1738. default:
  1739. in.SkipRecursive()
  1740. }
  1741. in.WantComma()
  1742. }
  1743. in.Delim('}')
  1744. if isTopLevel {
  1745. in.Consumed()
  1746. }
  1747. }
  1748. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger20(out *jwriter.Writer, in SetBlackboxPatternsParams) {
  1749. out.RawByte('{')
  1750. first := true
  1751. _ = first
  1752. {
  1753. const prefix string = ",\"patterns\":"
  1754. out.RawString(prefix[1:])
  1755. if in.Patterns == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1756. out.RawString("null")
  1757. } else {
  1758. out.RawByte('[')
  1759. for v20, v21 := range in.Patterns {
  1760. if v20 > 0 {
  1761. out.RawByte(',')
  1762. }
  1763. out.String(string(v21))
  1764. }
  1765. out.RawByte(']')
  1766. }
  1767. }
  1768. out.RawByte('}')
  1769. }
  1770. // MarshalJSON supports json.Marshaler interface
  1771. func (v SetBlackboxPatternsParams) MarshalJSON() ([]byte, error) {
  1772. w := jwriter.Writer{}
  1773. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger20(&w, v)
  1774. return w.Buffer.BuildBytes(), w.Error
  1775. }
  1776. // MarshalEasyJSON supports easyjson.Marshaler interface
  1777. func (v SetBlackboxPatternsParams) MarshalEasyJSON(w *jwriter.Writer) {
  1778. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger20(w, v)
  1779. }
  1780. // UnmarshalJSON supports json.Unmarshaler interface
  1781. func (v *SetBlackboxPatternsParams) UnmarshalJSON(data []byte) error {
  1782. r := jlexer.Lexer{Data: data}
  1783. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger20(&r, v)
  1784. return r.Error()
  1785. }
  1786. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1787. func (v *SetBlackboxPatternsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1788. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger20(l, v)
  1789. }
  1790. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger21(in *jlexer.Lexer, out *SetAsyncCallStackDepthParams) {
  1791. isTopLevel := in.IsStart()
  1792. if in.IsNull() {
  1793. if isTopLevel {
  1794. in.Consumed()
  1795. }
  1796. in.Skip()
  1797. return
  1798. }
  1799. in.Delim('{')
  1800. for !in.IsDelim('}') {
  1801. key := in.UnsafeFieldName(false)
  1802. in.WantColon()
  1803. if in.IsNull() {
  1804. in.Skip()
  1805. in.WantComma()
  1806. continue
  1807. }
  1808. switch key {
  1809. case "maxDepth":
  1810. out.MaxDepth = int64(in.Int64())
  1811. default:
  1812. in.SkipRecursive()
  1813. }
  1814. in.WantComma()
  1815. }
  1816. in.Delim('}')
  1817. if isTopLevel {
  1818. in.Consumed()
  1819. }
  1820. }
  1821. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger21(out *jwriter.Writer, in SetAsyncCallStackDepthParams) {
  1822. out.RawByte('{')
  1823. first := true
  1824. _ = first
  1825. {
  1826. const prefix string = ",\"maxDepth\":"
  1827. out.RawString(prefix[1:])
  1828. out.Int64(int64(in.MaxDepth))
  1829. }
  1830. out.RawByte('}')
  1831. }
  1832. // MarshalJSON supports json.Marshaler interface
  1833. func (v SetAsyncCallStackDepthParams) MarshalJSON() ([]byte, error) {
  1834. w := jwriter.Writer{}
  1835. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger21(&w, v)
  1836. return w.Buffer.BuildBytes(), w.Error
  1837. }
  1838. // MarshalEasyJSON supports easyjson.Marshaler interface
  1839. func (v SetAsyncCallStackDepthParams) MarshalEasyJSON(w *jwriter.Writer) {
  1840. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger21(w, v)
  1841. }
  1842. // UnmarshalJSON supports json.Unmarshaler interface
  1843. func (v *SetAsyncCallStackDepthParams) UnmarshalJSON(data []byte) error {
  1844. r := jlexer.Lexer{Data: data}
  1845. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger21(&r, v)
  1846. return r.Error()
  1847. }
  1848. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1849. func (v *SetAsyncCallStackDepthParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1850. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger21(l, v)
  1851. }
  1852. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger22(in *jlexer.Lexer, out *SearchMatch) {
  1853. isTopLevel := in.IsStart()
  1854. if in.IsNull() {
  1855. if isTopLevel {
  1856. in.Consumed()
  1857. }
  1858. in.Skip()
  1859. return
  1860. }
  1861. in.Delim('{')
  1862. for !in.IsDelim('}') {
  1863. key := in.UnsafeFieldName(false)
  1864. in.WantColon()
  1865. if in.IsNull() {
  1866. in.Skip()
  1867. in.WantComma()
  1868. continue
  1869. }
  1870. switch key {
  1871. case "lineNumber":
  1872. out.LineNumber = float64(in.Float64())
  1873. case "lineContent":
  1874. out.LineContent = string(in.String())
  1875. default:
  1876. in.SkipRecursive()
  1877. }
  1878. in.WantComma()
  1879. }
  1880. in.Delim('}')
  1881. if isTopLevel {
  1882. in.Consumed()
  1883. }
  1884. }
  1885. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger22(out *jwriter.Writer, in SearchMatch) {
  1886. out.RawByte('{')
  1887. first := true
  1888. _ = first
  1889. {
  1890. const prefix string = ",\"lineNumber\":"
  1891. out.RawString(prefix[1:])
  1892. out.Float64(float64(in.LineNumber))
  1893. }
  1894. {
  1895. const prefix string = ",\"lineContent\":"
  1896. out.RawString(prefix)
  1897. out.String(string(in.LineContent))
  1898. }
  1899. out.RawByte('}')
  1900. }
  1901. // MarshalJSON supports json.Marshaler interface
  1902. func (v SearchMatch) MarshalJSON() ([]byte, error) {
  1903. w := jwriter.Writer{}
  1904. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger22(&w, v)
  1905. return w.Buffer.BuildBytes(), w.Error
  1906. }
  1907. // MarshalEasyJSON supports easyjson.Marshaler interface
  1908. func (v SearchMatch) MarshalEasyJSON(w *jwriter.Writer) {
  1909. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger22(w, v)
  1910. }
  1911. // UnmarshalJSON supports json.Unmarshaler interface
  1912. func (v *SearchMatch) UnmarshalJSON(data []byte) error {
  1913. r := jlexer.Lexer{Data: data}
  1914. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger22(&r, v)
  1915. return r.Error()
  1916. }
  1917. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1918. func (v *SearchMatch) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1919. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger22(l, v)
  1920. }
  1921. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger23(in *jlexer.Lexer, out *SearchInContentReturns) {
  1922. isTopLevel := in.IsStart()
  1923. if in.IsNull() {
  1924. if isTopLevel {
  1925. in.Consumed()
  1926. }
  1927. in.Skip()
  1928. return
  1929. }
  1930. in.Delim('{')
  1931. for !in.IsDelim('}') {
  1932. key := in.UnsafeFieldName(false)
  1933. in.WantColon()
  1934. if in.IsNull() {
  1935. in.Skip()
  1936. in.WantComma()
  1937. continue
  1938. }
  1939. switch key {
  1940. case "result":
  1941. if in.IsNull() {
  1942. in.Skip()
  1943. out.Result = nil
  1944. } else {
  1945. in.Delim('[')
  1946. if out.Result == nil {
  1947. if !in.IsDelim(']') {
  1948. out.Result = make([]*SearchMatch, 0, 8)
  1949. } else {
  1950. out.Result = []*SearchMatch{}
  1951. }
  1952. } else {
  1953. out.Result = (out.Result)[:0]
  1954. }
  1955. for !in.IsDelim(']') {
  1956. var v22 *SearchMatch
  1957. if in.IsNull() {
  1958. in.Skip()
  1959. v22 = nil
  1960. } else {
  1961. if v22 == nil {
  1962. v22 = new(SearchMatch)
  1963. }
  1964. (*v22).UnmarshalEasyJSON(in)
  1965. }
  1966. out.Result = append(out.Result, v22)
  1967. in.WantComma()
  1968. }
  1969. in.Delim(']')
  1970. }
  1971. default:
  1972. in.SkipRecursive()
  1973. }
  1974. in.WantComma()
  1975. }
  1976. in.Delim('}')
  1977. if isTopLevel {
  1978. in.Consumed()
  1979. }
  1980. }
  1981. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger23(out *jwriter.Writer, in SearchInContentReturns) {
  1982. out.RawByte('{')
  1983. first := true
  1984. _ = first
  1985. if len(in.Result) != 0 {
  1986. const prefix string = ",\"result\":"
  1987. first = false
  1988. out.RawString(prefix[1:])
  1989. {
  1990. out.RawByte('[')
  1991. for v23, v24 := range in.Result {
  1992. if v23 > 0 {
  1993. out.RawByte(',')
  1994. }
  1995. if v24 == nil {
  1996. out.RawString("null")
  1997. } else {
  1998. (*v24).MarshalEasyJSON(out)
  1999. }
  2000. }
  2001. out.RawByte(']')
  2002. }
  2003. }
  2004. out.RawByte('}')
  2005. }
  2006. // MarshalJSON supports json.Marshaler interface
  2007. func (v SearchInContentReturns) MarshalJSON() ([]byte, error) {
  2008. w := jwriter.Writer{}
  2009. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger23(&w, v)
  2010. return w.Buffer.BuildBytes(), w.Error
  2011. }
  2012. // MarshalEasyJSON supports easyjson.Marshaler interface
  2013. func (v SearchInContentReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2014. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger23(w, v)
  2015. }
  2016. // UnmarshalJSON supports json.Unmarshaler interface
  2017. func (v *SearchInContentReturns) UnmarshalJSON(data []byte) error {
  2018. r := jlexer.Lexer{Data: data}
  2019. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger23(&r, v)
  2020. return r.Error()
  2021. }
  2022. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2023. func (v *SearchInContentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2024. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger23(l, v)
  2025. }
  2026. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger24(in *jlexer.Lexer, out *SearchInContentParams) {
  2027. isTopLevel := in.IsStart()
  2028. if in.IsNull() {
  2029. if isTopLevel {
  2030. in.Consumed()
  2031. }
  2032. in.Skip()
  2033. return
  2034. }
  2035. in.Delim('{')
  2036. for !in.IsDelim('}') {
  2037. key := in.UnsafeFieldName(false)
  2038. in.WantColon()
  2039. if in.IsNull() {
  2040. in.Skip()
  2041. in.WantComma()
  2042. continue
  2043. }
  2044. switch key {
  2045. case "scriptId":
  2046. out.ScriptID = runtime.ScriptID(in.String())
  2047. case "query":
  2048. out.Query = string(in.String())
  2049. case "caseSensitive":
  2050. out.CaseSensitive = bool(in.Bool())
  2051. case "isRegex":
  2052. out.IsRegex = bool(in.Bool())
  2053. default:
  2054. in.SkipRecursive()
  2055. }
  2056. in.WantComma()
  2057. }
  2058. in.Delim('}')
  2059. if isTopLevel {
  2060. in.Consumed()
  2061. }
  2062. }
  2063. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger24(out *jwriter.Writer, in SearchInContentParams) {
  2064. out.RawByte('{')
  2065. first := true
  2066. _ = first
  2067. {
  2068. const prefix string = ",\"scriptId\":"
  2069. out.RawString(prefix[1:])
  2070. out.String(string(in.ScriptID))
  2071. }
  2072. {
  2073. const prefix string = ",\"query\":"
  2074. out.RawString(prefix)
  2075. out.String(string(in.Query))
  2076. }
  2077. if in.CaseSensitive {
  2078. const prefix string = ",\"caseSensitive\":"
  2079. out.RawString(prefix)
  2080. out.Bool(bool(in.CaseSensitive))
  2081. }
  2082. if in.IsRegex {
  2083. const prefix string = ",\"isRegex\":"
  2084. out.RawString(prefix)
  2085. out.Bool(bool(in.IsRegex))
  2086. }
  2087. out.RawByte('}')
  2088. }
  2089. // MarshalJSON supports json.Marshaler interface
  2090. func (v SearchInContentParams) MarshalJSON() ([]byte, error) {
  2091. w := jwriter.Writer{}
  2092. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger24(&w, v)
  2093. return w.Buffer.BuildBytes(), w.Error
  2094. }
  2095. // MarshalEasyJSON supports easyjson.Marshaler interface
  2096. func (v SearchInContentParams) MarshalEasyJSON(w *jwriter.Writer) {
  2097. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger24(w, v)
  2098. }
  2099. // UnmarshalJSON supports json.Unmarshaler interface
  2100. func (v *SearchInContentParams) UnmarshalJSON(data []byte) error {
  2101. r := jlexer.Lexer{Data: data}
  2102. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger24(&r, v)
  2103. return r.Error()
  2104. }
  2105. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2106. func (v *SearchInContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2107. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger24(l, v)
  2108. }
  2109. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger25(in *jlexer.Lexer, out *ScriptPosition) {
  2110. isTopLevel := in.IsStart()
  2111. if in.IsNull() {
  2112. if isTopLevel {
  2113. in.Consumed()
  2114. }
  2115. in.Skip()
  2116. return
  2117. }
  2118. in.Delim('{')
  2119. for !in.IsDelim('}') {
  2120. key := in.UnsafeFieldName(false)
  2121. in.WantColon()
  2122. if in.IsNull() {
  2123. in.Skip()
  2124. in.WantComma()
  2125. continue
  2126. }
  2127. switch key {
  2128. case "lineNumber":
  2129. out.LineNumber = int64(in.Int64())
  2130. case "columnNumber":
  2131. out.ColumnNumber = int64(in.Int64())
  2132. default:
  2133. in.SkipRecursive()
  2134. }
  2135. in.WantComma()
  2136. }
  2137. in.Delim('}')
  2138. if isTopLevel {
  2139. in.Consumed()
  2140. }
  2141. }
  2142. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger25(out *jwriter.Writer, in ScriptPosition) {
  2143. out.RawByte('{')
  2144. first := true
  2145. _ = first
  2146. {
  2147. const prefix string = ",\"lineNumber\":"
  2148. out.RawString(prefix[1:])
  2149. out.Int64(int64(in.LineNumber))
  2150. }
  2151. {
  2152. const prefix string = ",\"columnNumber\":"
  2153. out.RawString(prefix)
  2154. out.Int64(int64(in.ColumnNumber))
  2155. }
  2156. out.RawByte('}')
  2157. }
  2158. // MarshalJSON supports json.Marshaler interface
  2159. func (v ScriptPosition) MarshalJSON() ([]byte, error) {
  2160. w := jwriter.Writer{}
  2161. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger25(&w, v)
  2162. return w.Buffer.BuildBytes(), w.Error
  2163. }
  2164. // MarshalEasyJSON supports easyjson.Marshaler interface
  2165. func (v ScriptPosition) MarshalEasyJSON(w *jwriter.Writer) {
  2166. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger25(w, v)
  2167. }
  2168. // UnmarshalJSON supports json.Unmarshaler interface
  2169. func (v *ScriptPosition) UnmarshalJSON(data []byte) error {
  2170. r := jlexer.Lexer{Data: data}
  2171. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger25(&r, v)
  2172. return r.Error()
  2173. }
  2174. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2175. func (v *ScriptPosition) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2176. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger25(l, v)
  2177. }
  2178. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger26(in *jlexer.Lexer, out *Scope) {
  2179. isTopLevel := in.IsStart()
  2180. if in.IsNull() {
  2181. if isTopLevel {
  2182. in.Consumed()
  2183. }
  2184. in.Skip()
  2185. return
  2186. }
  2187. in.Delim('{')
  2188. for !in.IsDelim('}') {
  2189. key := in.UnsafeFieldName(false)
  2190. in.WantColon()
  2191. if in.IsNull() {
  2192. in.Skip()
  2193. in.WantComma()
  2194. continue
  2195. }
  2196. switch key {
  2197. case "type":
  2198. (out.Type).UnmarshalEasyJSON(in)
  2199. case "object":
  2200. if in.IsNull() {
  2201. in.Skip()
  2202. out.Object = nil
  2203. } else {
  2204. if out.Object == nil {
  2205. out.Object = new(runtime.RemoteObject)
  2206. }
  2207. (*out.Object).UnmarshalEasyJSON(in)
  2208. }
  2209. case "name":
  2210. out.Name = string(in.String())
  2211. case "startLocation":
  2212. if in.IsNull() {
  2213. in.Skip()
  2214. out.StartLocation = nil
  2215. } else {
  2216. if out.StartLocation == nil {
  2217. out.StartLocation = new(Location)
  2218. }
  2219. (*out.StartLocation).UnmarshalEasyJSON(in)
  2220. }
  2221. case "endLocation":
  2222. if in.IsNull() {
  2223. in.Skip()
  2224. out.EndLocation = nil
  2225. } else {
  2226. if out.EndLocation == nil {
  2227. out.EndLocation = new(Location)
  2228. }
  2229. (*out.EndLocation).UnmarshalEasyJSON(in)
  2230. }
  2231. default:
  2232. in.SkipRecursive()
  2233. }
  2234. in.WantComma()
  2235. }
  2236. in.Delim('}')
  2237. if isTopLevel {
  2238. in.Consumed()
  2239. }
  2240. }
  2241. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger26(out *jwriter.Writer, in Scope) {
  2242. out.RawByte('{')
  2243. first := true
  2244. _ = first
  2245. {
  2246. const prefix string = ",\"type\":"
  2247. out.RawString(prefix[1:])
  2248. (in.Type).MarshalEasyJSON(out)
  2249. }
  2250. {
  2251. const prefix string = ",\"object\":"
  2252. out.RawString(prefix)
  2253. if in.Object == nil {
  2254. out.RawString("null")
  2255. } else {
  2256. (*in.Object).MarshalEasyJSON(out)
  2257. }
  2258. }
  2259. if in.Name != "" {
  2260. const prefix string = ",\"name\":"
  2261. out.RawString(prefix)
  2262. out.String(string(in.Name))
  2263. }
  2264. if in.StartLocation != nil {
  2265. const prefix string = ",\"startLocation\":"
  2266. out.RawString(prefix)
  2267. (*in.StartLocation).MarshalEasyJSON(out)
  2268. }
  2269. if in.EndLocation != nil {
  2270. const prefix string = ",\"endLocation\":"
  2271. out.RawString(prefix)
  2272. (*in.EndLocation).MarshalEasyJSON(out)
  2273. }
  2274. out.RawByte('}')
  2275. }
  2276. // MarshalJSON supports json.Marshaler interface
  2277. func (v Scope) MarshalJSON() ([]byte, error) {
  2278. w := jwriter.Writer{}
  2279. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger26(&w, v)
  2280. return w.Buffer.BuildBytes(), w.Error
  2281. }
  2282. // MarshalEasyJSON supports easyjson.Marshaler interface
  2283. func (v Scope) MarshalEasyJSON(w *jwriter.Writer) {
  2284. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger26(w, v)
  2285. }
  2286. // UnmarshalJSON supports json.Unmarshaler interface
  2287. func (v *Scope) UnmarshalJSON(data []byte) error {
  2288. r := jlexer.Lexer{Data: data}
  2289. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger26(&r, v)
  2290. return r.Error()
  2291. }
  2292. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2293. func (v *Scope) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2294. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger26(l, v)
  2295. }
  2296. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger27(in *jlexer.Lexer, out *ResumeParams) {
  2297. isTopLevel := in.IsStart()
  2298. if in.IsNull() {
  2299. if isTopLevel {
  2300. in.Consumed()
  2301. }
  2302. in.Skip()
  2303. return
  2304. }
  2305. in.Delim('{')
  2306. for !in.IsDelim('}') {
  2307. key := in.UnsafeFieldName(false)
  2308. in.WantColon()
  2309. if in.IsNull() {
  2310. in.Skip()
  2311. in.WantComma()
  2312. continue
  2313. }
  2314. switch key {
  2315. case "terminateOnResume":
  2316. out.TerminateOnResume = bool(in.Bool())
  2317. default:
  2318. in.SkipRecursive()
  2319. }
  2320. in.WantComma()
  2321. }
  2322. in.Delim('}')
  2323. if isTopLevel {
  2324. in.Consumed()
  2325. }
  2326. }
  2327. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger27(out *jwriter.Writer, in ResumeParams) {
  2328. out.RawByte('{')
  2329. first := true
  2330. _ = first
  2331. if in.TerminateOnResume {
  2332. const prefix string = ",\"terminateOnResume\":"
  2333. first = false
  2334. out.RawString(prefix[1:])
  2335. out.Bool(bool(in.TerminateOnResume))
  2336. }
  2337. out.RawByte('}')
  2338. }
  2339. // MarshalJSON supports json.Marshaler interface
  2340. func (v ResumeParams) MarshalJSON() ([]byte, error) {
  2341. w := jwriter.Writer{}
  2342. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger27(&w, v)
  2343. return w.Buffer.BuildBytes(), w.Error
  2344. }
  2345. // MarshalEasyJSON supports easyjson.Marshaler interface
  2346. func (v ResumeParams) MarshalEasyJSON(w *jwriter.Writer) {
  2347. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger27(w, v)
  2348. }
  2349. // UnmarshalJSON supports json.Unmarshaler interface
  2350. func (v *ResumeParams) UnmarshalJSON(data []byte) error {
  2351. r := jlexer.Lexer{Data: data}
  2352. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger27(&r, v)
  2353. return r.Error()
  2354. }
  2355. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2356. func (v *ResumeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2357. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger27(l, v)
  2358. }
  2359. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger28(in *jlexer.Lexer, out *RestartFrameParams) {
  2360. isTopLevel := in.IsStart()
  2361. if in.IsNull() {
  2362. if isTopLevel {
  2363. in.Consumed()
  2364. }
  2365. in.Skip()
  2366. return
  2367. }
  2368. in.Delim('{')
  2369. for !in.IsDelim('}') {
  2370. key := in.UnsafeFieldName(false)
  2371. in.WantColon()
  2372. if in.IsNull() {
  2373. in.Skip()
  2374. in.WantComma()
  2375. continue
  2376. }
  2377. switch key {
  2378. case "callFrameId":
  2379. out.CallFrameID = CallFrameID(in.String())
  2380. case "mode":
  2381. (out.Mode).UnmarshalEasyJSON(in)
  2382. default:
  2383. in.SkipRecursive()
  2384. }
  2385. in.WantComma()
  2386. }
  2387. in.Delim('}')
  2388. if isTopLevel {
  2389. in.Consumed()
  2390. }
  2391. }
  2392. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger28(out *jwriter.Writer, in RestartFrameParams) {
  2393. out.RawByte('{')
  2394. first := true
  2395. _ = first
  2396. {
  2397. const prefix string = ",\"callFrameId\":"
  2398. out.RawString(prefix[1:])
  2399. out.String(string(in.CallFrameID))
  2400. }
  2401. if in.Mode != "" {
  2402. const prefix string = ",\"mode\":"
  2403. out.RawString(prefix)
  2404. (in.Mode).MarshalEasyJSON(out)
  2405. }
  2406. out.RawByte('}')
  2407. }
  2408. // MarshalJSON supports json.Marshaler interface
  2409. func (v RestartFrameParams) MarshalJSON() ([]byte, error) {
  2410. w := jwriter.Writer{}
  2411. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger28(&w, v)
  2412. return w.Buffer.BuildBytes(), w.Error
  2413. }
  2414. // MarshalEasyJSON supports easyjson.Marshaler interface
  2415. func (v RestartFrameParams) MarshalEasyJSON(w *jwriter.Writer) {
  2416. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger28(w, v)
  2417. }
  2418. // UnmarshalJSON supports json.Unmarshaler interface
  2419. func (v *RestartFrameParams) UnmarshalJSON(data []byte) error {
  2420. r := jlexer.Lexer{Data: data}
  2421. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger28(&r, v)
  2422. return r.Error()
  2423. }
  2424. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2425. func (v *RestartFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2426. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger28(l, v)
  2427. }
  2428. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger29(in *jlexer.Lexer, out *RemoveBreakpointParams) {
  2429. isTopLevel := in.IsStart()
  2430. if in.IsNull() {
  2431. if isTopLevel {
  2432. in.Consumed()
  2433. }
  2434. in.Skip()
  2435. return
  2436. }
  2437. in.Delim('{')
  2438. for !in.IsDelim('}') {
  2439. key := in.UnsafeFieldName(false)
  2440. in.WantColon()
  2441. if in.IsNull() {
  2442. in.Skip()
  2443. in.WantComma()
  2444. continue
  2445. }
  2446. switch key {
  2447. case "breakpointId":
  2448. out.BreakpointID = BreakpointID(in.String())
  2449. default:
  2450. in.SkipRecursive()
  2451. }
  2452. in.WantComma()
  2453. }
  2454. in.Delim('}')
  2455. if isTopLevel {
  2456. in.Consumed()
  2457. }
  2458. }
  2459. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger29(out *jwriter.Writer, in RemoveBreakpointParams) {
  2460. out.RawByte('{')
  2461. first := true
  2462. _ = first
  2463. {
  2464. const prefix string = ",\"breakpointId\":"
  2465. out.RawString(prefix[1:])
  2466. out.String(string(in.BreakpointID))
  2467. }
  2468. out.RawByte('}')
  2469. }
  2470. // MarshalJSON supports json.Marshaler interface
  2471. func (v RemoveBreakpointParams) MarshalJSON() ([]byte, error) {
  2472. w := jwriter.Writer{}
  2473. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger29(&w, v)
  2474. return w.Buffer.BuildBytes(), w.Error
  2475. }
  2476. // MarshalEasyJSON supports easyjson.Marshaler interface
  2477. func (v RemoveBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) {
  2478. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger29(w, v)
  2479. }
  2480. // UnmarshalJSON supports json.Unmarshaler interface
  2481. func (v *RemoveBreakpointParams) UnmarshalJSON(data []byte) error {
  2482. r := jlexer.Lexer{Data: data}
  2483. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger29(&r, v)
  2484. return r.Error()
  2485. }
  2486. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2487. func (v *RemoveBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2488. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger29(l, v)
  2489. }
  2490. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger30(in *jlexer.Lexer, out *PauseParams) {
  2491. isTopLevel := in.IsStart()
  2492. if in.IsNull() {
  2493. if isTopLevel {
  2494. in.Consumed()
  2495. }
  2496. in.Skip()
  2497. return
  2498. }
  2499. in.Delim('{')
  2500. for !in.IsDelim('}') {
  2501. key := in.UnsafeFieldName(false)
  2502. in.WantColon()
  2503. if in.IsNull() {
  2504. in.Skip()
  2505. in.WantComma()
  2506. continue
  2507. }
  2508. switch key {
  2509. default:
  2510. in.SkipRecursive()
  2511. }
  2512. in.WantComma()
  2513. }
  2514. in.Delim('}')
  2515. if isTopLevel {
  2516. in.Consumed()
  2517. }
  2518. }
  2519. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger30(out *jwriter.Writer, in PauseParams) {
  2520. out.RawByte('{')
  2521. first := true
  2522. _ = first
  2523. out.RawByte('}')
  2524. }
  2525. // MarshalJSON supports json.Marshaler interface
  2526. func (v PauseParams) MarshalJSON() ([]byte, error) {
  2527. w := jwriter.Writer{}
  2528. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger30(&w, v)
  2529. return w.Buffer.BuildBytes(), w.Error
  2530. }
  2531. // MarshalEasyJSON supports easyjson.Marshaler interface
  2532. func (v PauseParams) MarshalEasyJSON(w *jwriter.Writer) {
  2533. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger30(w, v)
  2534. }
  2535. // UnmarshalJSON supports json.Unmarshaler interface
  2536. func (v *PauseParams) UnmarshalJSON(data []byte) error {
  2537. r := jlexer.Lexer{Data: data}
  2538. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger30(&r, v)
  2539. return r.Error()
  2540. }
  2541. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2542. func (v *PauseParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2543. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger30(l, v)
  2544. }
  2545. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger31(in *jlexer.Lexer, out *NextWasmDisassemblyChunkReturns) {
  2546. isTopLevel := in.IsStart()
  2547. if in.IsNull() {
  2548. if isTopLevel {
  2549. in.Consumed()
  2550. }
  2551. in.Skip()
  2552. return
  2553. }
  2554. in.Delim('{')
  2555. for !in.IsDelim('}') {
  2556. key := in.UnsafeFieldName(false)
  2557. in.WantColon()
  2558. if in.IsNull() {
  2559. in.Skip()
  2560. in.WantComma()
  2561. continue
  2562. }
  2563. switch key {
  2564. case "chunk":
  2565. if in.IsNull() {
  2566. in.Skip()
  2567. out.Chunk = nil
  2568. } else {
  2569. if out.Chunk == nil {
  2570. out.Chunk = new(WasmDisassemblyChunk)
  2571. }
  2572. (*out.Chunk).UnmarshalEasyJSON(in)
  2573. }
  2574. default:
  2575. in.SkipRecursive()
  2576. }
  2577. in.WantComma()
  2578. }
  2579. in.Delim('}')
  2580. if isTopLevel {
  2581. in.Consumed()
  2582. }
  2583. }
  2584. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger31(out *jwriter.Writer, in NextWasmDisassemblyChunkReturns) {
  2585. out.RawByte('{')
  2586. first := true
  2587. _ = first
  2588. if in.Chunk != nil {
  2589. const prefix string = ",\"chunk\":"
  2590. first = false
  2591. out.RawString(prefix[1:])
  2592. (*in.Chunk).MarshalEasyJSON(out)
  2593. }
  2594. out.RawByte('}')
  2595. }
  2596. // MarshalJSON supports json.Marshaler interface
  2597. func (v NextWasmDisassemblyChunkReturns) MarshalJSON() ([]byte, error) {
  2598. w := jwriter.Writer{}
  2599. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger31(&w, v)
  2600. return w.Buffer.BuildBytes(), w.Error
  2601. }
  2602. // MarshalEasyJSON supports easyjson.Marshaler interface
  2603. func (v NextWasmDisassemblyChunkReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2604. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger31(w, v)
  2605. }
  2606. // UnmarshalJSON supports json.Unmarshaler interface
  2607. func (v *NextWasmDisassemblyChunkReturns) UnmarshalJSON(data []byte) error {
  2608. r := jlexer.Lexer{Data: data}
  2609. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger31(&r, v)
  2610. return r.Error()
  2611. }
  2612. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2613. func (v *NextWasmDisassemblyChunkReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2614. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger31(l, v)
  2615. }
  2616. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger32(in *jlexer.Lexer, out *NextWasmDisassemblyChunkParams) {
  2617. isTopLevel := in.IsStart()
  2618. if in.IsNull() {
  2619. if isTopLevel {
  2620. in.Consumed()
  2621. }
  2622. in.Skip()
  2623. return
  2624. }
  2625. in.Delim('{')
  2626. for !in.IsDelim('}') {
  2627. key := in.UnsafeFieldName(false)
  2628. in.WantColon()
  2629. if in.IsNull() {
  2630. in.Skip()
  2631. in.WantComma()
  2632. continue
  2633. }
  2634. switch key {
  2635. case "streamId":
  2636. out.StreamID = string(in.String())
  2637. default:
  2638. in.SkipRecursive()
  2639. }
  2640. in.WantComma()
  2641. }
  2642. in.Delim('}')
  2643. if isTopLevel {
  2644. in.Consumed()
  2645. }
  2646. }
  2647. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger32(out *jwriter.Writer, in NextWasmDisassemblyChunkParams) {
  2648. out.RawByte('{')
  2649. first := true
  2650. _ = first
  2651. {
  2652. const prefix string = ",\"streamId\":"
  2653. out.RawString(prefix[1:])
  2654. out.String(string(in.StreamID))
  2655. }
  2656. out.RawByte('}')
  2657. }
  2658. // MarshalJSON supports json.Marshaler interface
  2659. func (v NextWasmDisassemblyChunkParams) MarshalJSON() ([]byte, error) {
  2660. w := jwriter.Writer{}
  2661. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger32(&w, v)
  2662. return w.Buffer.BuildBytes(), w.Error
  2663. }
  2664. // MarshalEasyJSON supports easyjson.Marshaler interface
  2665. func (v NextWasmDisassemblyChunkParams) MarshalEasyJSON(w *jwriter.Writer) {
  2666. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger32(w, v)
  2667. }
  2668. // UnmarshalJSON supports json.Unmarshaler interface
  2669. func (v *NextWasmDisassemblyChunkParams) UnmarshalJSON(data []byte) error {
  2670. r := jlexer.Lexer{Data: data}
  2671. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger32(&r, v)
  2672. return r.Error()
  2673. }
  2674. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2675. func (v *NextWasmDisassemblyChunkParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2676. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger32(l, v)
  2677. }
  2678. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger33(in *jlexer.Lexer, out *LocationRange) {
  2679. isTopLevel := in.IsStart()
  2680. if in.IsNull() {
  2681. if isTopLevel {
  2682. in.Consumed()
  2683. }
  2684. in.Skip()
  2685. return
  2686. }
  2687. in.Delim('{')
  2688. for !in.IsDelim('}') {
  2689. key := in.UnsafeFieldName(false)
  2690. in.WantColon()
  2691. if in.IsNull() {
  2692. in.Skip()
  2693. in.WantComma()
  2694. continue
  2695. }
  2696. switch key {
  2697. case "scriptId":
  2698. out.ScriptID = runtime.ScriptID(in.String())
  2699. case "start":
  2700. if in.IsNull() {
  2701. in.Skip()
  2702. out.Start = nil
  2703. } else {
  2704. if out.Start == nil {
  2705. out.Start = new(ScriptPosition)
  2706. }
  2707. (*out.Start).UnmarshalEasyJSON(in)
  2708. }
  2709. case "end":
  2710. if in.IsNull() {
  2711. in.Skip()
  2712. out.End = nil
  2713. } else {
  2714. if out.End == nil {
  2715. out.End = new(ScriptPosition)
  2716. }
  2717. (*out.End).UnmarshalEasyJSON(in)
  2718. }
  2719. default:
  2720. in.SkipRecursive()
  2721. }
  2722. in.WantComma()
  2723. }
  2724. in.Delim('}')
  2725. if isTopLevel {
  2726. in.Consumed()
  2727. }
  2728. }
  2729. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger33(out *jwriter.Writer, in LocationRange) {
  2730. out.RawByte('{')
  2731. first := true
  2732. _ = first
  2733. {
  2734. const prefix string = ",\"scriptId\":"
  2735. out.RawString(prefix[1:])
  2736. out.String(string(in.ScriptID))
  2737. }
  2738. {
  2739. const prefix string = ",\"start\":"
  2740. out.RawString(prefix)
  2741. if in.Start == nil {
  2742. out.RawString("null")
  2743. } else {
  2744. (*in.Start).MarshalEasyJSON(out)
  2745. }
  2746. }
  2747. {
  2748. const prefix string = ",\"end\":"
  2749. out.RawString(prefix)
  2750. if in.End == nil {
  2751. out.RawString("null")
  2752. } else {
  2753. (*in.End).MarshalEasyJSON(out)
  2754. }
  2755. }
  2756. out.RawByte('}')
  2757. }
  2758. // MarshalJSON supports json.Marshaler interface
  2759. func (v LocationRange) MarshalJSON() ([]byte, error) {
  2760. w := jwriter.Writer{}
  2761. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger33(&w, v)
  2762. return w.Buffer.BuildBytes(), w.Error
  2763. }
  2764. // MarshalEasyJSON supports easyjson.Marshaler interface
  2765. func (v LocationRange) MarshalEasyJSON(w *jwriter.Writer) {
  2766. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger33(w, v)
  2767. }
  2768. // UnmarshalJSON supports json.Unmarshaler interface
  2769. func (v *LocationRange) UnmarshalJSON(data []byte) error {
  2770. r := jlexer.Lexer{Data: data}
  2771. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger33(&r, v)
  2772. return r.Error()
  2773. }
  2774. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2775. func (v *LocationRange) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2776. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger33(l, v)
  2777. }
  2778. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger34(in *jlexer.Lexer, out *Location) {
  2779. isTopLevel := in.IsStart()
  2780. if in.IsNull() {
  2781. if isTopLevel {
  2782. in.Consumed()
  2783. }
  2784. in.Skip()
  2785. return
  2786. }
  2787. in.Delim('{')
  2788. for !in.IsDelim('}') {
  2789. key := in.UnsafeFieldName(false)
  2790. in.WantColon()
  2791. if in.IsNull() {
  2792. in.Skip()
  2793. in.WantComma()
  2794. continue
  2795. }
  2796. switch key {
  2797. case "scriptId":
  2798. out.ScriptID = runtime.ScriptID(in.String())
  2799. case "lineNumber":
  2800. out.LineNumber = int64(in.Int64())
  2801. case "columnNumber":
  2802. out.ColumnNumber = int64(in.Int64())
  2803. default:
  2804. in.SkipRecursive()
  2805. }
  2806. in.WantComma()
  2807. }
  2808. in.Delim('}')
  2809. if isTopLevel {
  2810. in.Consumed()
  2811. }
  2812. }
  2813. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger34(out *jwriter.Writer, in Location) {
  2814. out.RawByte('{')
  2815. first := true
  2816. _ = first
  2817. {
  2818. const prefix string = ",\"scriptId\":"
  2819. out.RawString(prefix[1:])
  2820. out.String(string(in.ScriptID))
  2821. }
  2822. {
  2823. const prefix string = ",\"lineNumber\":"
  2824. out.RawString(prefix)
  2825. out.Int64(int64(in.LineNumber))
  2826. }
  2827. if in.ColumnNumber != 0 {
  2828. const prefix string = ",\"columnNumber\":"
  2829. out.RawString(prefix)
  2830. out.Int64(int64(in.ColumnNumber))
  2831. }
  2832. out.RawByte('}')
  2833. }
  2834. // MarshalJSON supports json.Marshaler interface
  2835. func (v Location) MarshalJSON() ([]byte, error) {
  2836. w := jwriter.Writer{}
  2837. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger34(&w, v)
  2838. return w.Buffer.BuildBytes(), w.Error
  2839. }
  2840. // MarshalEasyJSON supports easyjson.Marshaler interface
  2841. func (v Location) MarshalEasyJSON(w *jwriter.Writer) {
  2842. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger34(w, v)
  2843. }
  2844. // UnmarshalJSON supports json.Unmarshaler interface
  2845. func (v *Location) UnmarshalJSON(data []byte) error {
  2846. r := jlexer.Lexer{Data: data}
  2847. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger34(&r, v)
  2848. return r.Error()
  2849. }
  2850. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2851. func (v *Location) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2852. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger34(l, v)
  2853. }
  2854. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger35(in *jlexer.Lexer, out *GetStackTraceReturns) {
  2855. isTopLevel := in.IsStart()
  2856. if in.IsNull() {
  2857. if isTopLevel {
  2858. in.Consumed()
  2859. }
  2860. in.Skip()
  2861. return
  2862. }
  2863. in.Delim('{')
  2864. for !in.IsDelim('}') {
  2865. key := in.UnsafeFieldName(false)
  2866. in.WantColon()
  2867. if in.IsNull() {
  2868. in.Skip()
  2869. in.WantComma()
  2870. continue
  2871. }
  2872. switch key {
  2873. case "stackTrace":
  2874. if in.IsNull() {
  2875. in.Skip()
  2876. out.StackTrace = nil
  2877. } else {
  2878. if out.StackTrace == nil {
  2879. out.StackTrace = new(runtime.StackTrace)
  2880. }
  2881. (*out.StackTrace).UnmarshalEasyJSON(in)
  2882. }
  2883. default:
  2884. in.SkipRecursive()
  2885. }
  2886. in.WantComma()
  2887. }
  2888. in.Delim('}')
  2889. if isTopLevel {
  2890. in.Consumed()
  2891. }
  2892. }
  2893. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger35(out *jwriter.Writer, in GetStackTraceReturns) {
  2894. out.RawByte('{')
  2895. first := true
  2896. _ = first
  2897. if in.StackTrace != nil {
  2898. const prefix string = ",\"stackTrace\":"
  2899. first = false
  2900. out.RawString(prefix[1:])
  2901. (*in.StackTrace).MarshalEasyJSON(out)
  2902. }
  2903. out.RawByte('}')
  2904. }
  2905. // MarshalJSON supports json.Marshaler interface
  2906. func (v GetStackTraceReturns) MarshalJSON() ([]byte, error) {
  2907. w := jwriter.Writer{}
  2908. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger35(&w, v)
  2909. return w.Buffer.BuildBytes(), w.Error
  2910. }
  2911. // MarshalEasyJSON supports easyjson.Marshaler interface
  2912. func (v GetStackTraceReturns) MarshalEasyJSON(w *jwriter.Writer) {
  2913. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger35(w, v)
  2914. }
  2915. // UnmarshalJSON supports json.Unmarshaler interface
  2916. func (v *GetStackTraceReturns) UnmarshalJSON(data []byte) error {
  2917. r := jlexer.Lexer{Data: data}
  2918. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger35(&r, v)
  2919. return r.Error()
  2920. }
  2921. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2922. func (v *GetStackTraceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2923. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger35(l, v)
  2924. }
  2925. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger36(in *jlexer.Lexer, out *GetStackTraceParams) {
  2926. isTopLevel := in.IsStart()
  2927. if in.IsNull() {
  2928. if isTopLevel {
  2929. in.Consumed()
  2930. }
  2931. in.Skip()
  2932. return
  2933. }
  2934. in.Delim('{')
  2935. for !in.IsDelim('}') {
  2936. key := in.UnsafeFieldName(false)
  2937. in.WantColon()
  2938. if in.IsNull() {
  2939. in.Skip()
  2940. in.WantComma()
  2941. continue
  2942. }
  2943. switch key {
  2944. case "stackTraceId":
  2945. if in.IsNull() {
  2946. in.Skip()
  2947. out.StackTraceID = nil
  2948. } else {
  2949. if out.StackTraceID == nil {
  2950. out.StackTraceID = new(runtime.StackTraceID)
  2951. }
  2952. (*out.StackTraceID).UnmarshalEasyJSON(in)
  2953. }
  2954. default:
  2955. in.SkipRecursive()
  2956. }
  2957. in.WantComma()
  2958. }
  2959. in.Delim('}')
  2960. if isTopLevel {
  2961. in.Consumed()
  2962. }
  2963. }
  2964. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger36(out *jwriter.Writer, in GetStackTraceParams) {
  2965. out.RawByte('{')
  2966. first := true
  2967. _ = first
  2968. {
  2969. const prefix string = ",\"stackTraceId\":"
  2970. out.RawString(prefix[1:])
  2971. if in.StackTraceID == nil {
  2972. out.RawString("null")
  2973. } else {
  2974. (*in.StackTraceID).MarshalEasyJSON(out)
  2975. }
  2976. }
  2977. out.RawByte('}')
  2978. }
  2979. // MarshalJSON supports json.Marshaler interface
  2980. func (v GetStackTraceParams) MarshalJSON() ([]byte, error) {
  2981. w := jwriter.Writer{}
  2982. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger36(&w, v)
  2983. return w.Buffer.BuildBytes(), w.Error
  2984. }
  2985. // MarshalEasyJSON supports easyjson.Marshaler interface
  2986. func (v GetStackTraceParams) MarshalEasyJSON(w *jwriter.Writer) {
  2987. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger36(w, v)
  2988. }
  2989. // UnmarshalJSON supports json.Unmarshaler interface
  2990. func (v *GetStackTraceParams) UnmarshalJSON(data []byte) error {
  2991. r := jlexer.Lexer{Data: data}
  2992. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger36(&r, v)
  2993. return r.Error()
  2994. }
  2995. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2996. func (v *GetStackTraceParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2997. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger36(l, v)
  2998. }
  2999. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger37(in *jlexer.Lexer, out *GetScriptSourceReturns) {
  3000. isTopLevel := in.IsStart()
  3001. if in.IsNull() {
  3002. if isTopLevel {
  3003. in.Consumed()
  3004. }
  3005. in.Skip()
  3006. return
  3007. }
  3008. in.Delim('{')
  3009. for !in.IsDelim('}') {
  3010. key := in.UnsafeFieldName(false)
  3011. in.WantColon()
  3012. if in.IsNull() {
  3013. in.Skip()
  3014. in.WantComma()
  3015. continue
  3016. }
  3017. switch key {
  3018. case "scriptSource":
  3019. out.ScriptSource = string(in.String())
  3020. case "bytecode":
  3021. out.Bytecode = string(in.String())
  3022. default:
  3023. in.SkipRecursive()
  3024. }
  3025. in.WantComma()
  3026. }
  3027. in.Delim('}')
  3028. if isTopLevel {
  3029. in.Consumed()
  3030. }
  3031. }
  3032. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger37(out *jwriter.Writer, in GetScriptSourceReturns) {
  3033. out.RawByte('{')
  3034. first := true
  3035. _ = first
  3036. if in.ScriptSource != "" {
  3037. const prefix string = ",\"scriptSource\":"
  3038. first = false
  3039. out.RawString(prefix[1:])
  3040. out.String(string(in.ScriptSource))
  3041. }
  3042. if in.Bytecode != "" {
  3043. const prefix string = ",\"bytecode\":"
  3044. if first {
  3045. first = false
  3046. out.RawString(prefix[1:])
  3047. } else {
  3048. out.RawString(prefix)
  3049. }
  3050. out.String(string(in.Bytecode))
  3051. }
  3052. out.RawByte('}')
  3053. }
  3054. // MarshalJSON supports json.Marshaler interface
  3055. func (v GetScriptSourceReturns) MarshalJSON() ([]byte, error) {
  3056. w := jwriter.Writer{}
  3057. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger37(&w, v)
  3058. return w.Buffer.BuildBytes(), w.Error
  3059. }
  3060. // MarshalEasyJSON supports easyjson.Marshaler interface
  3061. func (v GetScriptSourceReturns) MarshalEasyJSON(w *jwriter.Writer) {
  3062. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger37(w, v)
  3063. }
  3064. // UnmarshalJSON supports json.Unmarshaler interface
  3065. func (v *GetScriptSourceReturns) UnmarshalJSON(data []byte) error {
  3066. r := jlexer.Lexer{Data: data}
  3067. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger37(&r, v)
  3068. return r.Error()
  3069. }
  3070. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3071. func (v *GetScriptSourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3072. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger37(l, v)
  3073. }
  3074. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger38(in *jlexer.Lexer, out *GetScriptSourceParams) {
  3075. isTopLevel := in.IsStart()
  3076. if in.IsNull() {
  3077. if isTopLevel {
  3078. in.Consumed()
  3079. }
  3080. in.Skip()
  3081. return
  3082. }
  3083. in.Delim('{')
  3084. for !in.IsDelim('}') {
  3085. key := in.UnsafeFieldName(false)
  3086. in.WantColon()
  3087. if in.IsNull() {
  3088. in.Skip()
  3089. in.WantComma()
  3090. continue
  3091. }
  3092. switch key {
  3093. case "scriptId":
  3094. out.ScriptID = runtime.ScriptID(in.String())
  3095. default:
  3096. in.SkipRecursive()
  3097. }
  3098. in.WantComma()
  3099. }
  3100. in.Delim('}')
  3101. if isTopLevel {
  3102. in.Consumed()
  3103. }
  3104. }
  3105. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger38(out *jwriter.Writer, in GetScriptSourceParams) {
  3106. out.RawByte('{')
  3107. first := true
  3108. _ = first
  3109. {
  3110. const prefix string = ",\"scriptId\":"
  3111. out.RawString(prefix[1:])
  3112. out.String(string(in.ScriptID))
  3113. }
  3114. out.RawByte('}')
  3115. }
  3116. // MarshalJSON supports json.Marshaler interface
  3117. func (v GetScriptSourceParams) MarshalJSON() ([]byte, error) {
  3118. w := jwriter.Writer{}
  3119. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger38(&w, v)
  3120. return w.Buffer.BuildBytes(), w.Error
  3121. }
  3122. // MarshalEasyJSON supports easyjson.Marshaler interface
  3123. func (v GetScriptSourceParams) MarshalEasyJSON(w *jwriter.Writer) {
  3124. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger38(w, v)
  3125. }
  3126. // UnmarshalJSON supports json.Unmarshaler interface
  3127. func (v *GetScriptSourceParams) UnmarshalJSON(data []byte) error {
  3128. r := jlexer.Lexer{Data: data}
  3129. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger38(&r, v)
  3130. return r.Error()
  3131. }
  3132. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3133. func (v *GetScriptSourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3134. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger38(l, v)
  3135. }
  3136. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger39(in *jlexer.Lexer, out *GetPossibleBreakpointsReturns) {
  3137. isTopLevel := in.IsStart()
  3138. if in.IsNull() {
  3139. if isTopLevel {
  3140. in.Consumed()
  3141. }
  3142. in.Skip()
  3143. return
  3144. }
  3145. in.Delim('{')
  3146. for !in.IsDelim('}') {
  3147. key := in.UnsafeFieldName(false)
  3148. in.WantColon()
  3149. if in.IsNull() {
  3150. in.Skip()
  3151. in.WantComma()
  3152. continue
  3153. }
  3154. switch key {
  3155. case "locations":
  3156. if in.IsNull() {
  3157. in.Skip()
  3158. out.Locations = nil
  3159. } else {
  3160. in.Delim('[')
  3161. if out.Locations == nil {
  3162. if !in.IsDelim(']') {
  3163. out.Locations = make([]*BreakLocation, 0, 8)
  3164. } else {
  3165. out.Locations = []*BreakLocation{}
  3166. }
  3167. } else {
  3168. out.Locations = (out.Locations)[:0]
  3169. }
  3170. for !in.IsDelim(']') {
  3171. var v25 *BreakLocation
  3172. if in.IsNull() {
  3173. in.Skip()
  3174. v25 = nil
  3175. } else {
  3176. if v25 == nil {
  3177. v25 = new(BreakLocation)
  3178. }
  3179. (*v25).UnmarshalEasyJSON(in)
  3180. }
  3181. out.Locations = append(out.Locations, v25)
  3182. in.WantComma()
  3183. }
  3184. in.Delim(']')
  3185. }
  3186. default:
  3187. in.SkipRecursive()
  3188. }
  3189. in.WantComma()
  3190. }
  3191. in.Delim('}')
  3192. if isTopLevel {
  3193. in.Consumed()
  3194. }
  3195. }
  3196. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger39(out *jwriter.Writer, in GetPossibleBreakpointsReturns) {
  3197. out.RawByte('{')
  3198. first := true
  3199. _ = first
  3200. if len(in.Locations) != 0 {
  3201. const prefix string = ",\"locations\":"
  3202. first = false
  3203. out.RawString(prefix[1:])
  3204. {
  3205. out.RawByte('[')
  3206. for v26, v27 := range in.Locations {
  3207. if v26 > 0 {
  3208. out.RawByte(',')
  3209. }
  3210. if v27 == nil {
  3211. out.RawString("null")
  3212. } else {
  3213. (*v27).MarshalEasyJSON(out)
  3214. }
  3215. }
  3216. out.RawByte(']')
  3217. }
  3218. }
  3219. out.RawByte('}')
  3220. }
  3221. // MarshalJSON supports json.Marshaler interface
  3222. func (v GetPossibleBreakpointsReturns) MarshalJSON() ([]byte, error) {
  3223. w := jwriter.Writer{}
  3224. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger39(&w, v)
  3225. return w.Buffer.BuildBytes(), w.Error
  3226. }
  3227. // MarshalEasyJSON supports easyjson.Marshaler interface
  3228. func (v GetPossibleBreakpointsReturns) MarshalEasyJSON(w *jwriter.Writer) {
  3229. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger39(w, v)
  3230. }
  3231. // UnmarshalJSON supports json.Unmarshaler interface
  3232. func (v *GetPossibleBreakpointsReturns) UnmarshalJSON(data []byte) error {
  3233. r := jlexer.Lexer{Data: data}
  3234. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger39(&r, v)
  3235. return r.Error()
  3236. }
  3237. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3238. func (v *GetPossibleBreakpointsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3239. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger39(l, v)
  3240. }
  3241. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger40(in *jlexer.Lexer, out *GetPossibleBreakpointsParams) {
  3242. isTopLevel := in.IsStart()
  3243. if in.IsNull() {
  3244. if isTopLevel {
  3245. in.Consumed()
  3246. }
  3247. in.Skip()
  3248. return
  3249. }
  3250. in.Delim('{')
  3251. for !in.IsDelim('}') {
  3252. key := in.UnsafeFieldName(false)
  3253. in.WantColon()
  3254. if in.IsNull() {
  3255. in.Skip()
  3256. in.WantComma()
  3257. continue
  3258. }
  3259. switch key {
  3260. case "start":
  3261. if in.IsNull() {
  3262. in.Skip()
  3263. out.Start = nil
  3264. } else {
  3265. if out.Start == nil {
  3266. out.Start = new(Location)
  3267. }
  3268. (*out.Start).UnmarshalEasyJSON(in)
  3269. }
  3270. case "end":
  3271. if in.IsNull() {
  3272. in.Skip()
  3273. out.End = nil
  3274. } else {
  3275. if out.End == nil {
  3276. out.End = new(Location)
  3277. }
  3278. (*out.End).UnmarshalEasyJSON(in)
  3279. }
  3280. case "restrictToFunction":
  3281. out.RestrictToFunction = bool(in.Bool())
  3282. default:
  3283. in.SkipRecursive()
  3284. }
  3285. in.WantComma()
  3286. }
  3287. in.Delim('}')
  3288. if isTopLevel {
  3289. in.Consumed()
  3290. }
  3291. }
  3292. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger40(out *jwriter.Writer, in GetPossibleBreakpointsParams) {
  3293. out.RawByte('{')
  3294. first := true
  3295. _ = first
  3296. {
  3297. const prefix string = ",\"start\":"
  3298. out.RawString(prefix[1:])
  3299. if in.Start == nil {
  3300. out.RawString("null")
  3301. } else {
  3302. (*in.Start).MarshalEasyJSON(out)
  3303. }
  3304. }
  3305. if in.End != nil {
  3306. const prefix string = ",\"end\":"
  3307. out.RawString(prefix)
  3308. (*in.End).MarshalEasyJSON(out)
  3309. }
  3310. if in.RestrictToFunction {
  3311. const prefix string = ",\"restrictToFunction\":"
  3312. out.RawString(prefix)
  3313. out.Bool(bool(in.RestrictToFunction))
  3314. }
  3315. out.RawByte('}')
  3316. }
  3317. // MarshalJSON supports json.Marshaler interface
  3318. func (v GetPossibleBreakpointsParams) MarshalJSON() ([]byte, error) {
  3319. w := jwriter.Writer{}
  3320. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger40(&w, v)
  3321. return w.Buffer.BuildBytes(), w.Error
  3322. }
  3323. // MarshalEasyJSON supports easyjson.Marshaler interface
  3324. func (v GetPossibleBreakpointsParams) MarshalEasyJSON(w *jwriter.Writer) {
  3325. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger40(w, v)
  3326. }
  3327. // UnmarshalJSON supports json.Unmarshaler interface
  3328. func (v *GetPossibleBreakpointsParams) UnmarshalJSON(data []byte) error {
  3329. r := jlexer.Lexer{Data: data}
  3330. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger40(&r, v)
  3331. return r.Error()
  3332. }
  3333. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3334. func (v *GetPossibleBreakpointsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3335. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger40(l, v)
  3336. }
  3337. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger41(in *jlexer.Lexer, out *EventScriptParsed) {
  3338. isTopLevel := in.IsStart()
  3339. if in.IsNull() {
  3340. if isTopLevel {
  3341. in.Consumed()
  3342. }
  3343. in.Skip()
  3344. return
  3345. }
  3346. in.Delim('{')
  3347. for !in.IsDelim('}') {
  3348. key := in.UnsafeFieldName(false)
  3349. in.WantColon()
  3350. if in.IsNull() {
  3351. in.Skip()
  3352. in.WantComma()
  3353. continue
  3354. }
  3355. switch key {
  3356. case "scriptId":
  3357. out.ScriptID = runtime.ScriptID(in.String())
  3358. case "url":
  3359. out.URL = string(in.String())
  3360. case "startLine":
  3361. out.StartLine = int64(in.Int64())
  3362. case "startColumn":
  3363. out.StartColumn = int64(in.Int64())
  3364. case "endLine":
  3365. out.EndLine = int64(in.Int64())
  3366. case "endColumn":
  3367. out.EndColumn = int64(in.Int64())
  3368. case "executionContextId":
  3369. out.ExecutionContextID = runtime.ExecutionContextID(in.Int64())
  3370. case "hash":
  3371. out.Hash = string(in.String())
  3372. case "executionContextAuxData":
  3373. (out.ExecutionContextAuxData).UnmarshalEasyJSON(in)
  3374. case "isLiveEdit":
  3375. out.IsLiveEdit = bool(in.Bool())
  3376. case "sourceMapURL":
  3377. out.SourceMapURL = string(in.String())
  3378. case "hasSourceURL":
  3379. out.HasSourceURL = bool(in.Bool())
  3380. case "isModule":
  3381. out.IsModule = bool(in.Bool())
  3382. case "length":
  3383. out.Length = int64(in.Int64())
  3384. case "stackTrace":
  3385. if in.IsNull() {
  3386. in.Skip()
  3387. out.StackTrace = nil
  3388. } else {
  3389. if out.StackTrace == nil {
  3390. out.StackTrace = new(runtime.StackTrace)
  3391. }
  3392. (*out.StackTrace).UnmarshalEasyJSON(in)
  3393. }
  3394. case "codeOffset":
  3395. out.CodeOffset = int64(in.Int64())
  3396. case "scriptLanguage":
  3397. (out.ScriptLanguage).UnmarshalEasyJSON(in)
  3398. case "debugSymbols":
  3399. if in.IsNull() {
  3400. in.Skip()
  3401. out.DebugSymbols = nil
  3402. } else {
  3403. if out.DebugSymbols == nil {
  3404. out.DebugSymbols = new(DebugSymbols)
  3405. }
  3406. (*out.DebugSymbols).UnmarshalEasyJSON(in)
  3407. }
  3408. case "embedderName":
  3409. out.EmbedderName = string(in.String())
  3410. default:
  3411. in.SkipRecursive()
  3412. }
  3413. in.WantComma()
  3414. }
  3415. in.Delim('}')
  3416. if isTopLevel {
  3417. in.Consumed()
  3418. }
  3419. }
  3420. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger41(out *jwriter.Writer, in EventScriptParsed) {
  3421. out.RawByte('{')
  3422. first := true
  3423. _ = first
  3424. {
  3425. const prefix string = ",\"scriptId\":"
  3426. out.RawString(prefix[1:])
  3427. out.String(string(in.ScriptID))
  3428. }
  3429. {
  3430. const prefix string = ",\"url\":"
  3431. out.RawString(prefix)
  3432. out.String(string(in.URL))
  3433. }
  3434. {
  3435. const prefix string = ",\"startLine\":"
  3436. out.RawString(prefix)
  3437. out.Int64(int64(in.StartLine))
  3438. }
  3439. {
  3440. const prefix string = ",\"startColumn\":"
  3441. out.RawString(prefix)
  3442. out.Int64(int64(in.StartColumn))
  3443. }
  3444. {
  3445. const prefix string = ",\"endLine\":"
  3446. out.RawString(prefix)
  3447. out.Int64(int64(in.EndLine))
  3448. }
  3449. {
  3450. const prefix string = ",\"endColumn\":"
  3451. out.RawString(prefix)
  3452. out.Int64(int64(in.EndColumn))
  3453. }
  3454. {
  3455. const prefix string = ",\"executionContextId\":"
  3456. out.RawString(prefix)
  3457. out.Int64(int64(in.ExecutionContextID))
  3458. }
  3459. {
  3460. const prefix string = ",\"hash\":"
  3461. out.RawString(prefix)
  3462. out.String(string(in.Hash))
  3463. }
  3464. if (in.ExecutionContextAuxData).IsDefined() {
  3465. const prefix string = ",\"executionContextAuxData\":"
  3466. out.RawString(prefix)
  3467. (in.ExecutionContextAuxData).MarshalEasyJSON(out)
  3468. }
  3469. if in.IsLiveEdit {
  3470. const prefix string = ",\"isLiveEdit\":"
  3471. out.RawString(prefix)
  3472. out.Bool(bool(in.IsLiveEdit))
  3473. }
  3474. if in.SourceMapURL != "" {
  3475. const prefix string = ",\"sourceMapURL\":"
  3476. out.RawString(prefix)
  3477. out.String(string(in.SourceMapURL))
  3478. }
  3479. if in.HasSourceURL {
  3480. const prefix string = ",\"hasSourceURL\":"
  3481. out.RawString(prefix)
  3482. out.Bool(bool(in.HasSourceURL))
  3483. }
  3484. if in.IsModule {
  3485. const prefix string = ",\"isModule\":"
  3486. out.RawString(prefix)
  3487. out.Bool(bool(in.IsModule))
  3488. }
  3489. if in.Length != 0 {
  3490. const prefix string = ",\"length\":"
  3491. out.RawString(prefix)
  3492. out.Int64(int64(in.Length))
  3493. }
  3494. if in.StackTrace != nil {
  3495. const prefix string = ",\"stackTrace\":"
  3496. out.RawString(prefix)
  3497. (*in.StackTrace).MarshalEasyJSON(out)
  3498. }
  3499. if in.CodeOffset != 0 {
  3500. const prefix string = ",\"codeOffset\":"
  3501. out.RawString(prefix)
  3502. out.Int64(int64(in.CodeOffset))
  3503. }
  3504. if in.ScriptLanguage != "" {
  3505. const prefix string = ",\"scriptLanguage\":"
  3506. out.RawString(prefix)
  3507. (in.ScriptLanguage).MarshalEasyJSON(out)
  3508. }
  3509. if in.DebugSymbols != nil {
  3510. const prefix string = ",\"debugSymbols\":"
  3511. out.RawString(prefix)
  3512. (*in.DebugSymbols).MarshalEasyJSON(out)
  3513. }
  3514. if in.EmbedderName != "" {
  3515. const prefix string = ",\"embedderName\":"
  3516. out.RawString(prefix)
  3517. out.String(string(in.EmbedderName))
  3518. }
  3519. out.RawByte('}')
  3520. }
  3521. // MarshalJSON supports json.Marshaler interface
  3522. func (v EventScriptParsed) MarshalJSON() ([]byte, error) {
  3523. w := jwriter.Writer{}
  3524. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger41(&w, v)
  3525. return w.Buffer.BuildBytes(), w.Error
  3526. }
  3527. // MarshalEasyJSON supports easyjson.Marshaler interface
  3528. func (v EventScriptParsed) MarshalEasyJSON(w *jwriter.Writer) {
  3529. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger41(w, v)
  3530. }
  3531. // UnmarshalJSON supports json.Unmarshaler interface
  3532. func (v *EventScriptParsed) UnmarshalJSON(data []byte) error {
  3533. r := jlexer.Lexer{Data: data}
  3534. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger41(&r, v)
  3535. return r.Error()
  3536. }
  3537. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3538. func (v *EventScriptParsed) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3539. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger41(l, v)
  3540. }
  3541. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger42(in *jlexer.Lexer, out *EventScriptFailedToParse) {
  3542. isTopLevel := in.IsStart()
  3543. if in.IsNull() {
  3544. if isTopLevel {
  3545. in.Consumed()
  3546. }
  3547. in.Skip()
  3548. return
  3549. }
  3550. in.Delim('{')
  3551. for !in.IsDelim('}') {
  3552. key := in.UnsafeFieldName(false)
  3553. in.WantColon()
  3554. if in.IsNull() {
  3555. in.Skip()
  3556. in.WantComma()
  3557. continue
  3558. }
  3559. switch key {
  3560. case "scriptId":
  3561. out.ScriptID = runtime.ScriptID(in.String())
  3562. case "url":
  3563. out.URL = string(in.String())
  3564. case "startLine":
  3565. out.StartLine = int64(in.Int64())
  3566. case "startColumn":
  3567. out.StartColumn = int64(in.Int64())
  3568. case "endLine":
  3569. out.EndLine = int64(in.Int64())
  3570. case "endColumn":
  3571. out.EndColumn = int64(in.Int64())
  3572. case "executionContextId":
  3573. out.ExecutionContextID = runtime.ExecutionContextID(in.Int64())
  3574. case "hash":
  3575. out.Hash = string(in.String())
  3576. case "executionContextAuxData":
  3577. (out.ExecutionContextAuxData).UnmarshalEasyJSON(in)
  3578. case "sourceMapURL":
  3579. out.SourceMapURL = string(in.String())
  3580. case "hasSourceURL":
  3581. out.HasSourceURL = bool(in.Bool())
  3582. case "isModule":
  3583. out.IsModule = bool(in.Bool())
  3584. case "length":
  3585. out.Length = int64(in.Int64())
  3586. case "stackTrace":
  3587. if in.IsNull() {
  3588. in.Skip()
  3589. out.StackTrace = nil
  3590. } else {
  3591. if out.StackTrace == nil {
  3592. out.StackTrace = new(runtime.StackTrace)
  3593. }
  3594. (*out.StackTrace).UnmarshalEasyJSON(in)
  3595. }
  3596. case "codeOffset":
  3597. out.CodeOffset = int64(in.Int64())
  3598. case "scriptLanguage":
  3599. (out.ScriptLanguage).UnmarshalEasyJSON(in)
  3600. case "embedderName":
  3601. out.EmbedderName = string(in.String())
  3602. default:
  3603. in.SkipRecursive()
  3604. }
  3605. in.WantComma()
  3606. }
  3607. in.Delim('}')
  3608. if isTopLevel {
  3609. in.Consumed()
  3610. }
  3611. }
  3612. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger42(out *jwriter.Writer, in EventScriptFailedToParse) {
  3613. out.RawByte('{')
  3614. first := true
  3615. _ = first
  3616. {
  3617. const prefix string = ",\"scriptId\":"
  3618. out.RawString(prefix[1:])
  3619. out.String(string(in.ScriptID))
  3620. }
  3621. {
  3622. const prefix string = ",\"url\":"
  3623. out.RawString(prefix)
  3624. out.String(string(in.URL))
  3625. }
  3626. {
  3627. const prefix string = ",\"startLine\":"
  3628. out.RawString(prefix)
  3629. out.Int64(int64(in.StartLine))
  3630. }
  3631. {
  3632. const prefix string = ",\"startColumn\":"
  3633. out.RawString(prefix)
  3634. out.Int64(int64(in.StartColumn))
  3635. }
  3636. {
  3637. const prefix string = ",\"endLine\":"
  3638. out.RawString(prefix)
  3639. out.Int64(int64(in.EndLine))
  3640. }
  3641. {
  3642. const prefix string = ",\"endColumn\":"
  3643. out.RawString(prefix)
  3644. out.Int64(int64(in.EndColumn))
  3645. }
  3646. {
  3647. const prefix string = ",\"executionContextId\":"
  3648. out.RawString(prefix)
  3649. out.Int64(int64(in.ExecutionContextID))
  3650. }
  3651. {
  3652. const prefix string = ",\"hash\":"
  3653. out.RawString(prefix)
  3654. out.String(string(in.Hash))
  3655. }
  3656. if (in.ExecutionContextAuxData).IsDefined() {
  3657. const prefix string = ",\"executionContextAuxData\":"
  3658. out.RawString(prefix)
  3659. (in.ExecutionContextAuxData).MarshalEasyJSON(out)
  3660. }
  3661. if in.SourceMapURL != "" {
  3662. const prefix string = ",\"sourceMapURL\":"
  3663. out.RawString(prefix)
  3664. out.String(string(in.SourceMapURL))
  3665. }
  3666. if in.HasSourceURL {
  3667. const prefix string = ",\"hasSourceURL\":"
  3668. out.RawString(prefix)
  3669. out.Bool(bool(in.HasSourceURL))
  3670. }
  3671. if in.IsModule {
  3672. const prefix string = ",\"isModule\":"
  3673. out.RawString(prefix)
  3674. out.Bool(bool(in.IsModule))
  3675. }
  3676. if in.Length != 0 {
  3677. const prefix string = ",\"length\":"
  3678. out.RawString(prefix)
  3679. out.Int64(int64(in.Length))
  3680. }
  3681. if in.StackTrace != nil {
  3682. const prefix string = ",\"stackTrace\":"
  3683. out.RawString(prefix)
  3684. (*in.StackTrace).MarshalEasyJSON(out)
  3685. }
  3686. if in.CodeOffset != 0 {
  3687. const prefix string = ",\"codeOffset\":"
  3688. out.RawString(prefix)
  3689. out.Int64(int64(in.CodeOffset))
  3690. }
  3691. if in.ScriptLanguage != "" {
  3692. const prefix string = ",\"scriptLanguage\":"
  3693. out.RawString(prefix)
  3694. (in.ScriptLanguage).MarshalEasyJSON(out)
  3695. }
  3696. if in.EmbedderName != "" {
  3697. const prefix string = ",\"embedderName\":"
  3698. out.RawString(prefix)
  3699. out.String(string(in.EmbedderName))
  3700. }
  3701. out.RawByte('}')
  3702. }
  3703. // MarshalJSON supports json.Marshaler interface
  3704. func (v EventScriptFailedToParse) MarshalJSON() ([]byte, error) {
  3705. w := jwriter.Writer{}
  3706. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger42(&w, v)
  3707. return w.Buffer.BuildBytes(), w.Error
  3708. }
  3709. // MarshalEasyJSON supports easyjson.Marshaler interface
  3710. func (v EventScriptFailedToParse) MarshalEasyJSON(w *jwriter.Writer) {
  3711. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger42(w, v)
  3712. }
  3713. // UnmarshalJSON supports json.Unmarshaler interface
  3714. func (v *EventScriptFailedToParse) UnmarshalJSON(data []byte) error {
  3715. r := jlexer.Lexer{Data: data}
  3716. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger42(&r, v)
  3717. return r.Error()
  3718. }
  3719. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3720. func (v *EventScriptFailedToParse) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3721. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger42(l, v)
  3722. }
  3723. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger43(in *jlexer.Lexer, out *EventResumed) {
  3724. isTopLevel := in.IsStart()
  3725. if in.IsNull() {
  3726. if isTopLevel {
  3727. in.Consumed()
  3728. }
  3729. in.Skip()
  3730. return
  3731. }
  3732. in.Delim('{')
  3733. for !in.IsDelim('}') {
  3734. key := in.UnsafeFieldName(false)
  3735. in.WantColon()
  3736. if in.IsNull() {
  3737. in.Skip()
  3738. in.WantComma()
  3739. continue
  3740. }
  3741. switch key {
  3742. default:
  3743. in.SkipRecursive()
  3744. }
  3745. in.WantComma()
  3746. }
  3747. in.Delim('}')
  3748. if isTopLevel {
  3749. in.Consumed()
  3750. }
  3751. }
  3752. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger43(out *jwriter.Writer, in EventResumed) {
  3753. out.RawByte('{')
  3754. first := true
  3755. _ = first
  3756. out.RawByte('}')
  3757. }
  3758. // MarshalJSON supports json.Marshaler interface
  3759. func (v EventResumed) MarshalJSON() ([]byte, error) {
  3760. w := jwriter.Writer{}
  3761. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger43(&w, v)
  3762. return w.Buffer.BuildBytes(), w.Error
  3763. }
  3764. // MarshalEasyJSON supports easyjson.Marshaler interface
  3765. func (v EventResumed) MarshalEasyJSON(w *jwriter.Writer) {
  3766. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger43(w, v)
  3767. }
  3768. // UnmarshalJSON supports json.Unmarshaler interface
  3769. func (v *EventResumed) UnmarshalJSON(data []byte) error {
  3770. r := jlexer.Lexer{Data: data}
  3771. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger43(&r, v)
  3772. return r.Error()
  3773. }
  3774. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3775. func (v *EventResumed) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3776. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger43(l, v)
  3777. }
  3778. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger44(in *jlexer.Lexer, out *EventPaused) {
  3779. isTopLevel := in.IsStart()
  3780. if in.IsNull() {
  3781. if isTopLevel {
  3782. in.Consumed()
  3783. }
  3784. in.Skip()
  3785. return
  3786. }
  3787. in.Delim('{')
  3788. for !in.IsDelim('}') {
  3789. key := in.UnsafeFieldName(false)
  3790. in.WantColon()
  3791. if in.IsNull() {
  3792. in.Skip()
  3793. in.WantComma()
  3794. continue
  3795. }
  3796. switch key {
  3797. case "callFrames":
  3798. if in.IsNull() {
  3799. in.Skip()
  3800. out.CallFrames = nil
  3801. } else {
  3802. in.Delim('[')
  3803. if out.CallFrames == nil {
  3804. if !in.IsDelim(']') {
  3805. out.CallFrames = make([]*CallFrame, 0, 8)
  3806. } else {
  3807. out.CallFrames = []*CallFrame{}
  3808. }
  3809. } else {
  3810. out.CallFrames = (out.CallFrames)[:0]
  3811. }
  3812. for !in.IsDelim(']') {
  3813. var v28 *CallFrame
  3814. if in.IsNull() {
  3815. in.Skip()
  3816. v28 = nil
  3817. } else {
  3818. if v28 == nil {
  3819. v28 = new(CallFrame)
  3820. }
  3821. (*v28).UnmarshalEasyJSON(in)
  3822. }
  3823. out.CallFrames = append(out.CallFrames, v28)
  3824. in.WantComma()
  3825. }
  3826. in.Delim(']')
  3827. }
  3828. case "reason":
  3829. (out.Reason).UnmarshalEasyJSON(in)
  3830. case "data":
  3831. (out.Data).UnmarshalEasyJSON(in)
  3832. case "hitBreakpoints":
  3833. if in.IsNull() {
  3834. in.Skip()
  3835. out.HitBreakpoints = nil
  3836. } else {
  3837. in.Delim('[')
  3838. if out.HitBreakpoints == nil {
  3839. if !in.IsDelim(']') {
  3840. out.HitBreakpoints = make([]string, 0, 4)
  3841. } else {
  3842. out.HitBreakpoints = []string{}
  3843. }
  3844. } else {
  3845. out.HitBreakpoints = (out.HitBreakpoints)[:0]
  3846. }
  3847. for !in.IsDelim(']') {
  3848. var v29 string
  3849. v29 = string(in.String())
  3850. out.HitBreakpoints = append(out.HitBreakpoints, v29)
  3851. in.WantComma()
  3852. }
  3853. in.Delim(']')
  3854. }
  3855. case "asyncStackTrace":
  3856. if in.IsNull() {
  3857. in.Skip()
  3858. out.AsyncStackTrace = nil
  3859. } else {
  3860. if out.AsyncStackTrace == nil {
  3861. out.AsyncStackTrace = new(runtime.StackTrace)
  3862. }
  3863. (*out.AsyncStackTrace).UnmarshalEasyJSON(in)
  3864. }
  3865. case "asyncStackTraceId":
  3866. if in.IsNull() {
  3867. in.Skip()
  3868. out.AsyncStackTraceID = nil
  3869. } else {
  3870. if out.AsyncStackTraceID == nil {
  3871. out.AsyncStackTraceID = new(runtime.StackTraceID)
  3872. }
  3873. (*out.AsyncStackTraceID).UnmarshalEasyJSON(in)
  3874. }
  3875. default:
  3876. in.SkipRecursive()
  3877. }
  3878. in.WantComma()
  3879. }
  3880. in.Delim('}')
  3881. if isTopLevel {
  3882. in.Consumed()
  3883. }
  3884. }
  3885. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger44(out *jwriter.Writer, in EventPaused) {
  3886. out.RawByte('{')
  3887. first := true
  3888. _ = first
  3889. {
  3890. const prefix string = ",\"callFrames\":"
  3891. out.RawString(prefix[1:])
  3892. if in.CallFrames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  3893. out.RawString("null")
  3894. } else {
  3895. out.RawByte('[')
  3896. for v30, v31 := range in.CallFrames {
  3897. if v30 > 0 {
  3898. out.RawByte(',')
  3899. }
  3900. if v31 == nil {
  3901. out.RawString("null")
  3902. } else {
  3903. (*v31).MarshalEasyJSON(out)
  3904. }
  3905. }
  3906. out.RawByte(']')
  3907. }
  3908. }
  3909. {
  3910. const prefix string = ",\"reason\":"
  3911. out.RawString(prefix)
  3912. (in.Reason).MarshalEasyJSON(out)
  3913. }
  3914. if (in.Data).IsDefined() {
  3915. const prefix string = ",\"data\":"
  3916. out.RawString(prefix)
  3917. (in.Data).MarshalEasyJSON(out)
  3918. }
  3919. if len(in.HitBreakpoints) != 0 {
  3920. const prefix string = ",\"hitBreakpoints\":"
  3921. out.RawString(prefix)
  3922. {
  3923. out.RawByte('[')
  3924. for v32, v33 := range in.HitBreakpoints {
  3925. if v32 > 0 {
  3926. out.RawByte(',')
  3927. }
  3928. out.String(string(v33))
  3929. }
  3930. out.RawByte(']')
  3931. }
  3932. }
  3933. if in.AsyncStackTrace != nil {
  3934. const prefix string = ",\"asyncStackTrace\":"
  3935. out.RawString(prefix)
  3936. (*in.AsyncStackTrace).MarshalEasyJSON(out)
  3937. }
  3938. if in.AsyncStackTraceID != nil {
  3939. const prefix string = ",\"asyncStackTraceId\":"
  3940. out.RawString(prefix)
  3941. (*in.AsyncStackTraceID).MarshalEasyJSON(out)
  3942. }
  3943. out.RawByte('}')
  3944. }
  3945. // MarshalJSON supports json.Marshaler interface
  3946. func (v EventPaused) MarshalJSON() ([]byte, error) {
  3947. w := jwriter.Writer{}
  3948. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger44(&w, v)
  3949. return w.Buffer.BuildBytes(), w.Error
  3950. }
  3951. // MarshalEasyJSON supports easyjson.Marshaler interface
  3952. func (v EventPaused) MarshalEasyJSON(w *jwriter.Writer) {
  3953. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger44(w, v)
  3954. }
  3955. // UnmarshalJSON supports json.Unmarshaler interface
  3956. func (v *EventPaused) UnmarshalJSON(data []byte) error {
  3957. r := jlexer.Lexer{Data: data}
  3958. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger44(&r, v)
  3959. return r.Error()
  3960. }
  3961. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  3962. func (v *EventPaused) UnmarshalEasyJSON(l *jlexer.Lexer) {
  3963. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger44(l, v)
  3964. }
  3965. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger45(in *jlexer.Lexer, out *EventBreakpointResolved) {
  3966. isTopLevel := in.IsStart()
  3967. if in.IsNull() {
  3968. if isTopLevel {
  3969. in.Consumed()
  3970. }
  3971. in.Skip()
  3972. return
  3973. }
  3974. in.Delim('{')
  3975. for !in.IsDelim('}') {
  3976. key := in.UnsafeFieldName(false)
  3977. in.WantColon()
  3978. if in.IsNull() {
  3979. in.Skip()
  3980. in.WantComma()
  3981. continue
  3982. }
  3983. switch key {
  3984. case "breakpointId":
  3985. out.BreakpointID = BreakpointID(in.String())
  3986. case "location":
  3987. if in.IsNull() {
  3988. in.Skip()
  3989. out.Location = nil
  3990. } else {
  3991. if out.Location == nil {
  3992. out.Location = new(Location)
  3993. }
  3994. (*out.Location).UnmarshalEasyJSON(in)
  3995. }
  3996. default:
  3997. in.SkipRecursive()
  3998. }
  3999. in.WantComma()
  4000. }
  4001. in.Delim('}')
  4002. if isTopLevel {
  4003. in.Consumed()
  4004. }
  4005. }
  4006. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger45(out *jwriter.Writer, in EventBreakpointResolved) {
  4007. out.RawByte('{')
  4008. first := true
  4009. _ = first
  4010. {
  4011. const prefix string = ",\"breakpointId\":"
  4012. out.RawString(prefix[1:])
  4013. out.String(string(in.BreakpointID))
  4014. }
  4015. {
  4016. const prefix string = ",\"location\":"
  4017. out.RawString(prefix)
  4018. if in.Location == nil {
  4019. out.RawString("null")
  4020. } else {
  4021. (*in.Location).MarshalEasyJSON(out)
  4022. }
  4023. }
  4024. out.RawByte('}')
  4025. }
  4026. // MarshalJSON supports json.Marshaler interface
  4027. func (v EventBreakpointResolved) MarshalJSON() ([]byte, error) {
  4028. w := jwriter.Writer{}
  4029. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger45(&w, v)
  4030. return w.Buffer.BuildBytes(), w.Error
  4031. }
  4032. // MarshalEasyJSON supports easyjson.Marshaler interface
  4033. func (v EventBreakpointResolved) MarshalEasyJSON(w *jwriter.Writer) {
  4034. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger45(w, v)
  4035. }
  4036. // UnmarshalJSON supports json.Unmarshaler interface
  4037. func (v *EventBreakpointResolved) UnmarshalJSON(data []byte) error {
  4038. r := jlexer.Lexer{Data: data}
  4039. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger45(&r, v)
  4040. return r.Error()
  4041. }
  4042. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4043. func (v *EventBreakpointResolved) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4044. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger45(l, v)
  4045. }
  4046. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger46(in *jlexer.Lexer, out *EvaluateOnCallFrameReturns) {
  4047. isTopLevel := in.IsStart()
  4048. if in.IsNull() {
  4049. if isTopLevel {
  4050. in.Consumed()
  4051. }
  4052. in.Skip()
  4053. return
  4054. }
  4055. in.Delim('{')
  4056. for !in.IsDelim('}') {
  4057. key := in.UnsafeFieldName(false)
  4058. in.WantColon()
  4059. if in.IsNull() {
  4060. in.Skip()
  4061. in.WantComma()
  4062. continue
  4063. }
  4064. switch key {
  4065. case "result":
  4066. if in.IsNull() {
  4067. in.Skip()
  4068. out.Result = nil
  4069. } else {
  4070. if out.Result == nil {
  4071. out.Result = new(runtime.RemoteObject)
  4072. }
  4073. (*out.Result).UnmarshalEasyJSON(in)
  4074. }
  4075. case "exceptionDetails":
  4076. if in.IsNull() {
  4077. in.Skip()
  4078. out.ExceptionDetails = nil
  4079. } else {
  4080. if out.ExceptionDetails == nil {
  4081. out.ExceptionDetails = new(runtime.ExceptionDetails)
  4082. }
  4083. (*out.ExceptionDetails).UnmarshalEasyJSON(in)
  4084. }
  4085. default:
  4086. in.SkipRecursive()
  4087. }
  4088. in.WantComma()
  4089. }
  4090. in.Delim('}')
  4091. if isTopLevel {
  4092. in.Consumed()
  4093. }
  4094. }
  4095. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger46(out *jwriter.Writer, in EvaluateOnCallFrameReturns) {
  4096. out.RawByte('{')
  4097. first := true
  4098. _ = first
  4099. if in.Result != nil {
  4100. const prefix string = ",\"result\":"
  4101. first = false
  4102. out.RawString(prefix[1:])
  4103. (*in.Result).MarshalEasyJSON(out)
  4104. }
  4105. if in.ExceptionDetails != nil {
  4106. const prefix string = ",\"exceptionDetails\":"
  4107. if first {
  4108. first = false
  4109. out.RawString(prefix[1:])
  4110. } else {
  4111. out.RawString(prefix)
  4112. }
  4113. (*in.ExceptionDetails).MarshalEasyJSON(out)
  4114. }
  4115. out.RawByte('}')
  4116. }
  4117. // MarshalJSON supports json.Marshaler interface
  4118. func (v EvaluateOnCallFrameReturns) MarshalJSON() ([]byte, error) {
  4119. w := jwriter.Writer{}
  4120. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger46(&w, v)
  4121. return w.Buffer.BuildBytes(), w.Error
  4122. }
  4123. // MarshalEasyJSON supports easyjson.Marshaler interface
  4124. func (v EvaluateOnCallFrameReturns) MarshalEasyJSON(w *jwriter.Writer) {
  4125. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger46(w, v)
  4126. }
  4127. // UnmarshalJSON supports json.Unmarshaler interface
  4128. func (v *EvaluateOnCallFrameReturns) UnmarshalJSON(data []byte) error {
  4129. r := jlexer.Lexer{Data: data}
  4130. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger46(&r, v)
  4131. return r.Error()
  4132. }
  4133. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4134. func (v *EvaluateOnCallFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4135. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger46(l, v)
  4136. }
  4137. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger47(in *jlexer.Lexer, out *EvaluateOnCallFrameParams) {
  4138. isTopLevel := in.IsStart()
  4139. if in.IsNull() {
  4140. if isTopLevel {
  4141. in.Consumed()
  4142. }
  4143. in.Skip()
  4144. return
  4145. }
  4146. in.Delim('{')
  4147. for !in.IsDelim('}') {
  4148. key := in.UnsafeFieldName(false)
  4149. in.WantColon()
  4150. if in.IsNull() {
  4151. in.Skip()
  4152. in.WantComma()
  4153. continue
  4154. }
  4155. switch key {
  4156. case "callFrameId":
  4157. out.CallFrameID = CallFrameID(in.String())
  4158. case "expression":
  4159. out.Expression = string(in.String())
  4160. case "objectGroup":
  4161. out.ObjectGroup = string(in.String())
  4162. case "includeCommandLineAPI":
  4163. out.IncludeCommandLineAPI = bool(in.Bool())
  4164. case "silent":
  4165. out.Silent = bool(in.Bool())
  4166. case "returnByValue":
  4167. out.ReturnByValue = bool(in.Bool())
  4168. case "generatePreview":
  4169. out.GeneratePreview = bool(in.Bool())
  4170. case "throwOnSideEffect":
  4171. out.ThrowOnSideEffect = bool(in.Bool())
  4172. case "timeout":
  4173. out.Timeout = runtime.TimeDelta(in.Float64())
  4174. default:
  4175. in.SkipRecursive()
  4176. }
  4177. in.WantComma()
  4178. }
  4179. in.Delim('}')
  4180. if isTopLevel {
  4181. in.Consumed()
  4182. }
  4183. }
  4184. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger47(out *jwriter.Writer, in EvaluateOnCallFrameParams) {
  4185. out.RawByte('{')
  4186. first := true
  4187. _ = first
  4188. {
  4189. const prefix string = ",\"callFrameId\":"
  4190. out.RawString(prefix[1:])
  4191. out.String(string(in.CallFrameID))
  4192. }
  4193. {
  4194. const prefix string = ",\"expression\":"
  4195. out.RawString(prefix)
  4196. out.String(string(in.Expression))
  4197. }
  4198. if in.ObjectGroup != "" {
  4199. const prefix string = ",\"objectGroup\":"
  4200. out.RawString(prefix)
  4201. out.String(string(in.ObjectGroup))
  4202. }
  4203. if in.IncludeCommandLineAPI {
  4204. const prefix string = ",\"includeCommandLineAPI\":"
  4205. out.RawString(prefix)
  4206. out.Bool(bool(in.IncludeCommandLineAPI))
  4207. }
  4208. if in.Silent {
  4209. const prefix string = ",\"silent\":"
  4210. out.RawString(prefix)
  4211. out.Bool(bool(in.Silent))
  4212. }
  4213. if in.ReturnByValue {
  4214. const prefix string = ",\"returnByValue\":"
  4215. out.RawString(prefix)
  4216. out.Bool(bool(in.ReturnByValue))
  4217. }
  4218. if in.GeneratePreview {
  4219. const prefix string = ",\"generatePreview\":"
  4220. out.RawString(prefix)
  4221. out.Bool(bool(in.GeneratePreview))
  4222. }
  4223. if in.ThrowOnSideEffect {
  4224. const prefix string = ",\"throwOnSideEffect\":"
  4225. out.RawString(prefix)
  4226. out.Bool(bool(in.ThrowOnSideEffect))
  4227. }
  4228. if in.Timeout != 0 {
  4229. const prefix string = ",\"timeout\":"
  4230. out.RawString(prefix)
  4231. out.Float64(float64(in.Timeout))
  4232. }
  4233. out.RawByte('}')
  4234. }
  4235. // MarshalJSON supports json.Marshaler interface
  4236. func (v EvaluateOnCallFrameParams) MarshalJSON() ([]byte, error) {
  4237. w := jwriter.Writer{}
  4238. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger47(&w, v)
  4239. return w.Buffer.BuildBytes(), w.Error
  4240. }
  4241. // MarshalEasyJSON supports easyjson.Marshaler interface
  4242. func (v EvaluateOnCallFrameParams) MarshalEasyJSON(w *jwriter.Writer) {
  4243. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger47(w, v)
  4244. }
  4245. // UnmarshalJSON supports json.Unmarshaler interface
  4246. func (v *EvaluateOnCallFrameParams) UnmarshalJSON(data []byte) error {
  4247. r := jlexer.Lexer{Data: data}
  4248. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger47(&r, v)
  4249. return r.Error()
  4250. }
  4251. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4252. func (v *EvaluateOnCallFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4253. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger47(l, v)
  4254. }
  4255. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger48(in *jlexer.Lexer, out *EnableReturns) {
  4256. isTopLevel := in.IsStart()
  4257. if in.IsNull() {
  4258. if isTopLevel {
  4259. in.Consumed()
  4260. }
  4261. in.Skip()
  4262. return
  4263. }
  4264. in.Delim('{')
  4265. for !in.IsDelim('}') {
  4266. key := in.UnsafeFieldName(false)
  4267. in.WantColon()
  4268. if in.IsNull() {
  4269. in.Skip()
  4270. in.WantComma()
  4271. continue
  4272. }
  4273. switch key {
  4274. case "debuggerId":
  4275. out.DebuggerID = runtime.UniqueDebuggerID(in.String())
  4276. default:
  4277. in.SkipRecursive()
  4278. }
  4279. in.WantComma()
  4280. }
  4281. in.Delim('}')
  4282. if isTopLevel {
  4283. in.Consumed()
  4284. }
  4285. }
  4286. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger48(out *jwriter.Writer, in EnableReturns) {
  4287. out.RawByte('{')
  4288. first := true
  4289. _ = first
  4290. if in.DebuggerID != "" {
  4291. const prefix string = ",\"debuggerId\":"
  4292. first = false
  4293. out.RawString(prefix[1:])
  4294. out.String(string(in.DebuggerID))
  4295. }
  4296. out.RawByte('}')
  4297. }
  4298. // MarshalJSON supports json.Marshaler interface
  4299. func (v EnableReturns) MarshalJSON() ([]byte, error) {
  4300. w := jwriter.Writer{}
  4301. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger48(&w, v)
  4302. return w.Buffer.BuildBytes(), w.Error
  4303. }
  4304. // MarshalEasyJSON supports easyjson.Marshaler interface
  4305. func (v EnableReturns) MarshalEasyJSON(w *jwriter.Writer) {
  4306. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger48(w, v)
  4307. }
  4308. // UnmarshalJSON supports json.Unmarshaler interface
  4309. func (v *EnableReturns) UnmarshalJSON(data []byte) error {
  4310. r := jlexer.Lexer{Data: data}
  4311. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger48(&r, v)
  4312. return r.Error()
  4313. }
  4314. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4315. func (v *EnableReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4316. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger48(l, v)
  4317. }
  4318. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger49(in *jlexer.Lexer, out *EnableParams) {
  4319. isTopLevel := in.IsStart()
  4320. if in.IsNull() {
  4321. if isTopLevel {
  4322. in.Consumed()
  4323. }
  4324. in.Skip()
  4325. return
  4326. }
  4327. in.Delim('{')
  4328. for !in.IsDelim('}') {
  4329. key := in.UnsafeFieldName(false)
  4330. in.WantColon()
  4331. if in.IsNull() {
  4332. in.Skip()
  4333. in.WantComma()
  4334. continue
  4335. }
  4336. switch key {
  4337. case "maxScriptsCacheSize":
  4338. out.MaxScriptsCacheSize = float64(in.Float64())
  4339. default:
  4340. in.SkipRecursive()
  4341. }
  4342. in.WantComma()
  4343. }
  4344. in.Delim('}')
  4345. if isTopLevel {
  4346. in.Consumed()
  4347. }
  4348. }
  4349. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger49(out *jwriter.Writer, in EnableParams) {
  4350. out.RawByte('{')
  4351. first := true
  4352. _ = first
  4353. if in.MaxScriptsCacheSize != 0 {
  4354. const prefix string = ",\"maxScriptsCacheSize\":"
  4355. first = false
  4356. out.RawString(prefix[1:])
  4357. out.Float64(float64(in.MaxScriptsCacheSize))
  4358. }
  4359. out.RawByte('}')
  4360. }
  4361. // MarshalJSON supports json.Marshaler interface
  4362. func (v EnableParams) MarshalJSON() ([]byte, error) {
  4363. w := jwriter.Writer{}
  4364. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger49(&w, v)
  4365. return w.Buffer.BuildBytes(), w.Error
  4366. }
  4367. // MarshalEasyJSON supports easyjson.Marshaler interface
  4368. func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
  4369. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger49(w, v)
  4370. }
  4371. // UnmarshalJSON supports json.Unmarshaler interface
  4372. func (v *EnableParams) UnmarshalJSON(data []byte) error {
  4373. r := jlexer.Lexer{Data: data}
  4374. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger49(&r, v)
  4375. return r.Error()
  4376. }
  4377. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4378. func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4379. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger49(l, v)
  4380. }
  4381. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger50(in *jlexer.Lexer, out *DisassembleWasmModuleReturns) {
  4382. isTopLevel := in.IsStart()
  4383. if in.IsNull() {
  4384. if isTopLevel {
  4385. in.Consumed()
  4386. }
  4387. in.Skip()
  4388. return
  4389. }
  4390. in.Delim('{')
  4391. for !in.IsDelim('}') {
  4392. key := in.UnsafeFieldName(false)
  4393. in.WantColon()
  4394. if in.IsNull() {
  4395. in.Skip()
  4396. in.WantComma()
  4397. continue
  4398. }
  4399. switch key {
  4400. case "streamId":
  4401. out.StreamID = string(in.String())
  4402. case "totalNumberOfLines":
  4403. out.TotalNumberOfLines = int64(in.Int64())
  4404. case "functionBodyOffsets":
  4405. if in.IsNull() {
  4406. in.Skip()
  4407. out.FunctionBodyOffsets = nil
  4408. } else {
  4409. in.Delim('[')
  4410. if out.FunctionBodyOffsets == nil {
  4411. if !in.IsDelim(']') {
  4412. out.FunctionBodyOffsets = make([]int64, 0, 8)
  4413. } else {
  4414. out.FunctionBodyOffsets = []int64{}
  4415. }
  4416. } else {
  4417. out.FunctionBodyOffsets = (out.FunctionBodyOffsets)[:0]
  4418. }
  4419. for !in.IsDelim(']') {
  4420. var v34 int64
  4421. v34 = int64(in.Int64())
  4422. out.FunctionBodyOffsets = append(out.FunctionBodyOffsets, v34)
  4423. in.WantComma()
  4424. }
  4425. in.Delim(']')
  4426. }
  4427. case "chunk":
  4428. if in.IsNull() {
  4429. in.Skip()
  4430. out.Chunk = nil
  4431. } else {
  4432. if out.Chunk == nil {
  4433. out.Chunk = new(WasmDisassemblyChunk)
  4434. }
  4435. (*out.Chunk).UnmarshalEasyJSON(in)
  4436. }
  4437. default:
  4438. in.SkipRecursive()
  4439. }
  4440. in.WantComma()
  4441. }
  4442. in.Delim('}')
  4443. if isTopLevel {
  4444. in.Consumed()
  4445. }
  4446. }
  4447. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger50(out *jwriter.Writer, in DisassembleWasmModuleReturns) {
  4448. out.RawByte('{')
  4449. first := true
  4450. _ = first
  4451. if in.StreamID != "" {
  4452. const prefix string = ",\"streamId\":"
  4453. first = false
  4454. out.RawString(prefix[1:])
  4455. out.String(string(in.StreamID))
  4456. }
  4457. if in.TotalNumberOfLines != 0 {
  4458. const prefix string = ",\"totalNumberOfLines\":"
  4459. if first {
  4460. first = false
  4461. out.RawString(prefix[1:])
  4462. } else {
  4463. out.RawString(prefix)
  4464. }
  4465. out.Int64(int64(in.TotalNumberOfLines))
  4466. }
  4467. if len(in.FunctionBodyOffsets) != 0 {
  4468. const prefix string = ",\"functionBodyOffsets\":"
  4469. if first {
  4470. first = false
  4471. out.RawString(prefix[1:])
  4472. } else {
  4473. out.RawString(prefix)
  4474. }
  4475. {
  4476. out.RawByte('[')
  4477. for v35, v36 := range in.FunctionBodyOffsets {
  4478. if v35 > 0 {
  4479. out.RawByte(',')
  4480. }
  4481. out.Int64(int64(v36))
  4482. }
  4483. out.RawByte(']')
  4484. }
  4485. }
  4486. if in.Chunk != nil {
  4487. const prefix string = ",\"chunk\":"
  4488. if first {
  4489. first = false
  4490. out.RawString(prefix[1:])
  4491. } else {
  4492. out.RawString(prefix)
  4493. }
  4494. (*in.Chunk).MarshalEasyJSON(out)
  4495. }
  4496. out.RawByte('}')
  4497. }
  4498. // MarshalJSON supports json.Marshaler interface
  4499. func (v DisassembleWasmModuleReturns) MarshalJSON() ([]byte, error) {
  4500. w := jwriter.Writer{}
  4501. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger50(&w, v)
  4502. return w.Buffer.BuildBytes(), w.Error
  4503. }
  4504. // MarshalEasyJSON supports easyjson.Marshaler interface
  4505. func (v DisassembleWasmModuleReturns) MarshalEasyJSON(w *jwriter.Writer) {
  4506. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger50(w, v)
  4507. }
  4508. // UnmarshalJSON supports json.Unmarshaler interface
  4509. func (v *DisassembleWasmModuleReturns) UnmarshalJSON(data []byte) error {
  4510. r := jlexer.Lexer{Data: data}
  4511. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger50(&r, v)
  4512. return r.Error()
  4513. }
  4514. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4515. func (v *DisassembleWasmModuleReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4516. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger50(l, v)
  4517. }
  4518. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger51(in *jlexer.Lexer, out *DisassembleWasmModuleParams) {
  4519. isTopLevel := in.IsStart()
  4520. if in.IsNull() {
  4521. if isTopLevel {
  4522. in.Consumed()
  4523. }
  4524. in.Skip()
  4525. return
  4526. }
  4527. in.Delim('{')
  4528. for !in.IsDelim('}') {
  4529. key := in.UnsafeFieldName(false)
  4530. in.WantColon()
  4531. if in.IsNull() {
  4532. in.Skip()
  4533. in.WantComma()
  4534. continue
  4535. }
  4536. switch key {
  4537. case "scriptId":
  4538. out.ScriptID = runtime.ScriptID(in.String())
  4539. default:
  4540. in.SkipRecursive()
  4541. }
  4542. in.WantComma()
  4543. }
  4544. in.Delim('}')
  4545. if isTopLevel {
  4546. in.Consumed()
  4547. }
  4548. }
  4549. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger51(out *jwriter.Writer, in DisassembleWasmModuleParams) {
  4550. out.RawByte('{')
  4551. first := true
  4552. _ = first
  4553. {
  4554. const prefix string = ",\"scriptId\":"
  4555. out.RawString(prefix[1:])
  4556. out.String(string(in.ScriptID))
  4557. }
  4558. out.RawByte('}')
  4559. }
  4560. // MarshalJSON supports json.Marshaler interface
  4561. func (v DisassembleWasmModuleParams) MarshalJSON() ([]byte, error) {
  4562. w := jwriter.Writer{}
  4563. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger51(&w, v)
  4564. return w.Buffer.BuildBytes(), w.Error
  4565. }
  4566. // MarshalEasyJSON supports easyjson.Marshaler interface
  4567. func (v DisassembleWasmModuleParams) MarshalEasyJSON(w *jwriter.Writer) {
  4568. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger51(w, v)
  4569. }
  4570. // UnmarshalJSON supports json.Unmarshaler interface
  4571. func (v *DisassembleWasmModuleParams) UnmarshalJSON(data []byte) error {
  4572. r := jlexer.Lexer{Data: data}
  4573. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger51(&r, v)
  4574. return r.Error()
  4575. }
  4576. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4577. func (v *DisassembleWasmModuleParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4578. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger51(l, v)
  4579. }
  4580. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger52(in *jlexer.Lexer, out *DisableParams) {
  4581. isTopLevel := in.IsStart()
  4582. if in.IsNull() {
  4583. if isTopLevel {
  4584. in.Consumed()
  4585. }
  4586. in.Skip()
  4587. return
  4588. }
  4589. in.Delim('{')
  4590. for !in.IsDelim('}') {
  4591. key := in.UnsafeFieldName(false)
  4592. in.WantColon()
  4593. if in.IsNull() {
  4594. in.Skip()
  4595. in.WantComma()
  4596. continue
  4597. }
  4598. switch key {
  4599. default:
  4600. in.SkipRecursive()
  4601. }
  4602. in.WantComma()
  4603. }
  4604. in.Delim('}')
  4605. if isTopLevel {
  4606. in.Consumed()
  4607. }
  4608. }
  4609. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger52(out *jwriter.Writer, in DisableParams) {
  4610. out.RawByte('{')
  4611. first := true
  4612. _ = first
  4613. out.RawByte('}')
  4614. }
  4615. // MarshalJSON supports json.Marshaler interface
  4616. func (v DisableParams) MarshalJSON() ([]byte, error) {
  4617. w := jwriter.Writer{}
  4618. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger52(&w, v)
  4619. return w.Buffer.BuildBytes(), w.Error
  4620. }
  4621. // MarshalEasyJSON supports easyjson.Marshaler interface
  4622. func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
  4623. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger52(w, v)
  4624. }
  4625. // UnmarshalJSON supports json.Unmarshaler interface
  4626. func (v *DisableParams) UnmarshalJSON(data []byte) error {
  4627. r := jlexer.Lexer{Data: data}
  4628. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger52(&r, v)
  4629. return r.Error()
  4630. }
  4631. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4632. func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4633. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger52(l, v)
  4634. }
  4635. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger53(in *jlexer.Lexer, out *DebugSymbols) {
  4636. isTopLevel := in.IsStart()
  4637. if in.IsNull() {
  4638. if isTopLevel {
  4639. in.Consumed()
  4640. }
  4641. in.Skip()
  4642. return
  4643. }
  4644. in.Delim('{')
  4645. for !in.IsDelim('}') {
  4646. key := in.UnsafeFieldName(false)
  4647. in.WantColon()
  4648. if in.IsNull() {
  4649. in.Skip()
  4650. in.WantComma()
  4651. continue
  4652. }
  4653. switch key {
  4654. case "type":
  4655. (out.Type).UnmarshalEasyJSON(in)
  4656. case "externalURL":
  4657. out.ExternalURL = string(in.String())
  4658. default:
  4659. in.SkipRecursive()
  4660. }
  4661. in.WantComma()
  4662. }
  4663. in.Delim('}')
  4664. if isTopLevel {
  4665. in.Consumed()
  4666. }
  4667. }
  4668. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger53(out *jwriter.Writer, in DebugSymbols) {
  4669. out.RawByte('{')
  4670. first := true
  4671. _ = first
  4672. {
  4673. const prefix string = ",\"type\":"
  4674. out.RawString(prefix[1:])
  4675. (in.Type).MarshalEasyJSON(out)
  4676. }
  4677. if in.ExternalURL != "" {
  4678. const prefix string = ",\"externalURL\":"
  4679. out.RawString(prefix)
  4680. out.String(string(in.ExternalURL))
  4681. }
  4682. out.RawByte('}')
  4683. }
  4684. // MarshalJSON supports json.Marshaler interface
  4685. func (v DebugSymbols) MarshalJSON() ([]byte, error) {
  4686. w := jwriter.Writer{}
  4687. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger53(&w, v)
  4688. return w.Buffer.BuildBytes(), w.Error
  4689. }
  4690. // MarshalEasyJSON supports easyjson.Marshaler interface
  4691. func (v DebugSymbols) MarshalEasyJSON(w *jwriter.Writer) {
  4692. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger53(w, v)
  4693. }
  4694. // UnmarshalJSON supports json.Unmarshaler interface
  4695. func (v *DebugSymbols) UnmarshalJSON(data []byte) error {
  4696. r := jlexer.Lexer{Data: data}
  4697. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger53(&r, v)
  4698. return r.Error()
  4699. }
  4700. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4701. func (v *DebugSymbols) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4702. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger53(l, v)
  4703. }
  4704. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger54(in *jlexer.Lexer, out *ContinueToLocationParams) {
  4705. isTopLevel := in.IsStart()
  4706. if in.IsNull() {
  4707. if isTopLevel {
  4708. in.Consumed()
  4709. }
  4710. in.Skip()
  4711. return
  4712. }
  4713. in.Delim('{')
  4714. for !in.IsDelim('}') {
  4715. key := in.UnsafeFieldName(false)
  4716. in.WantColon()
  4717. if in.IsNull() {
  4718. in.Skip()
  4719. in.WantComma()
  4720. continue
  4721. }
  4722. switch key {
  4723. case "location":
  4724. if in.IsNull() {
  4725. in.Skip()
  4726. out.Location = nil
  4727. } else {
  4728. if out.Location == nil {
  4729. out.Location = new(Location)
  4730. }
  4731. (*out.Location).UnmarshalEasyJSON(in)
  4732. }
  4733. case "targetCallFrames":
  4734. (out.TargetCallFrames).UnmarshalEasyJSON(in)
  4735. default:
  4736. in.SkipRecursive()
  4737. }
  4738. in.WantComma()
  4739. }
  4740. in.Delim('}')
  4741. if isTopLevel {
  4742. in.Consumed()
  4743. }
  4744. }
  4745. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger54(out *jwriter.Writer, in ContinueToLocationParams) {
  4746. out.RawByte('{')
  4747. first := true
  4748. _ = first
  4749. {
  4750. const prefix string = ",\"location\":"
  4751. out.RawString(prefix[1:])
  4752. if in.Location == nil {
  4753. out.RawString("null")
  4754. } else {
  4755. (*in.Location).MarshalEasyJSON(out)
  4756. }
  4757. }
  4758. if in.TargetCallFrames != "" {
  4759. const prefix string = ",\"targetCallFrames\":"
  4760. out.RawString(prefix)
  4761. (in.TargetCallFrames).MarshalEasyJSON(out)
  4762. }
  4763. out.RawByte('}')
  4764. }
  4765. // MarshalJSON supports json.Marshaler interface
  4766. func (v ContinueToLocationParams) MarshalJSON() ([]byte, error) {
  4767. w := jwriter.Writer{}
  4768. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger54(&w, v)
  4769. return w.Buffer.BuildBytes(), w.Error
  4770. }
  4771. // MarshalEasyJSON supports easyjson.Marshaler interface
  4772. func (v ContinueToLocationParams) MarshalEasyJSON(w *jwriter.Writer) {
  4773. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger54(w, v)
  4774. }
  4775. // UnmarshalJSON supports json.Unmarshaler interface
  4776. func (v *ContinueToLocationParams) UnmarshalJSON(data []byte) error {
  4777. r := jlexer.Lexer{Data: data}
  4778. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger54(&r, v)
  4779. return r.Error()
  4780. }
  4781. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4782. func (v *ContinueToLocationParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4783. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger54(l, v)
  4784. }
  4785. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger55(in *jlexer.Lexer, out *CallFrame) {
  4786. isTopLevel := in.IsStart()
  4787. if in.IsNull() {
  4788. if isTopLevel {
  4789. in.Consumed()
  4790. }
  4791. in.Skip()
  4792. return
  4793. }
  4794. in.Delim('{')
  4795. for !in.IsDelim('}') {
  4796. key := in.UnsafeFieldName(false)
  4797. in.WantColon()
  4798. if in.IsNull() {
  4799. in.Skip()
  4800. in.WantComma()
  4801. continue
  4802. }
  4803. switch key {
  4804. case "callFrameId":
  4805. out.CallFrameID = CallFrameID(in.String())
  4806. case "functionName":
  4807. out.FunctionName = string(in.String())
  4808. case "functionLocation":
  4809. if in.IsNull() {
  4810. in.Skip()
  4811. out.FunctionLocation = nil
  4812. } else {
  4813. if out.FunctionLocation == nil {
  4814. out.FunctionLocation = new(Location)
  4815. }
  4816. (*out.FunctionLocation).UnmarshalEasyJSON(in)
  4817. }
  4818. case "location":
  4819. if in.IsNull() {
  4820. in.Skip()
  4821. out.Location = nil
  4822. } else {
  4823. if out.Location == nil {
  4824. out.Location = new(Location)
  4825. }
  4826. (*out.Location).UnmarshalEasyJSON(in)
  4827. }
  4828. case "scopeChain":
  4829. if in.IsNull() {
  4830. in.Skip()
  4831. out.ScopeChain = nil
  4832. } else {
  4833. in.Delim('[')
  4834. if out.ScopeChain == nil {
  4835. if !in.IsDelim(']') {
  4836. out.ScopeChain = make([]*Scope, 0, 8)
  4837. } else {
  4838. out.ScopeChain = []*Scope{}
  4839. }
  4840. } else {
  4841. out.ScopeChain = (out.ScopeChain)[:0]
  4842. }
  4843. for !in.IsDelim(']') {
  4844. var v37 *Scope
  4845. if in.IsNull() {
  4846. in.Skip()
  4847. v37 = nil
  4848. } else {
  4849. if v37 == nil {
  4850. v37 = new(Scope)
  4851. }
  4852. (*v37).UnmarshalEasyJSON(in)
  4853. }
  4854. out.ScopeChain = append(out.ScopeChain, v37)
  4855. in.WantComma()
  4856. }
  4857. in.Delim(']')
  4858. }
  4859. case "this":
  4860. if in.IsNull() {
  4861. in.Skip()
  4862. out.This = nil
  4863. } else {
  4864. if out.This == nil {
  4865. out.This = new(runtime.RemoteObject)
  4866. }
  4867. (*out.This).UnmarshalEasyJSON(in)
  4868. }
  4869. case "returnValue":
  4870. if in.IsNull() {
  4871. in.Skip()
  4872. out.ReturnValue = nil
  4873. } else {
  4874. if out.ReturnValue == nil {
  4875. out.ReturnValue = new(runtime.RemoteObject)
  4876. }
  4877. (*out.ReturnValue).UnmarshalEasyJSON(in)
  4878. }
  4879. case "canBeRestarted":
  4880. out.CanBeRestarted = bool(in.Bool())
  4881. default:
  4882. in.SkipRecursive()
  4883. }
  4884. in.WantComma()
  4885. }
  4886. in.Delim('}')
  4887. if isTopLevel {
  4888. in.Consumed()
  4889. }
  4890. }
  4891. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger55(out *jwriter.Writer, in CallFrame) {
  4892. out.RawByte('{')
  4893. first := true
  4894. _ = first
  4895. {
  4896. const prefix string = ",\"callFrameId\":"
  4897. out.RawString(prefix[1:])
  4898. out.String(string(in.CallFrameID))
  4899. }
  4900. {
  4901. const prefix string = ",\"functionName\":"
  4902. out.RawString(prefix)
  4903. out.String(string(in.FunctionName))
  4904. }
  4905. if in.FunctionLocation != nil {
  4906. const prefix string = ",\"functionLocation\":"
  4907. out.RawString(prefix)
  4908. (*in.FunctionLocation).MarshalEasyJSON(out)
  4909. }
  4910. {
  4911. const prefix string = ",\"location\":"
  4912. out.RawString(prefix)
  4913. if in.Location == nil {
  4914. out.RawString("null")
  4915. } else {
  4916. (*in.Location).MarshalEasyJSON(out)
  4917. }
  4918. }
  4919. {
  4920. const prefix string = ",\"scopeChain\":"
  4921. out.RawString(prefix)
  4922. if in.ScopeChain == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  4923. out.RawString("null")
  4924. } else {
  4925. out.RawByte('[')
  4926. for v38, v39 := range in.ScopeChain {
  4927. if v38 > 0 {
  4928. out.RawByte(',')
  4929. }
  4930. if v39 == nil {
  4931. out.RawString("null")
  4932. } else {
  4933. (*v39).MarshalEasyJSON(out)
  4934. }
  4935. }
  4936. out.RawByte(']')
  4937. }
  4938. }
  4939. {
  4940. const prefix string = ",\"this\":"
  4941. out.RawString(prefix)
  4942. if in.This == nil {
  4943. out.RawString("null")
  4944. } else {
  4945. (*in.This).MarshalEasyJSON(out)
  4946. }
  4947. }
  4948. if in.ReturnValue != nil {
  4949. const prefix string = ",\"returnValue\":"
  4950. out.RawString(prefix)
  4951. (*in.ReturnValue).MarshalEasyJSON(out)
  4952. }
  4953. if in.CanBeRestarted {
  4954. const prefix string = ",\"canBeRestarted\":"
  4955. out.RawString(prefix)
  4956. out.Bool(bool(in.CanBeRestarted))
  4957. }
  4958. out.RawByte('}')
  4959. }
  4960. // MarshalJSON supports json.Marshaler interface
  4961. func (v CallFrame) MarshalJSON() ([]byte, error) {
  4962. w := jwriter.Writer{}
  4963. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger55(&w, v)
  4964. return w.Buffer.BuildBytes(), w.Error
  4965. }
  4966. // MarshalEasyJSON supports easyjson.Marshaler interface
  4967. func (v CallFrame) MarshalEasyJSON(w *jwriter.Writer) {
  4968. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger55(w, v)
  4969. }
  4970. // UnmarshalJSON supports json.Unmarshaler interface
  4971. func (v *CallFrame) UnmarshalJSON(data []byte) error {
  4972. r := jlexer.Lexer{Data: data}
  4973. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger55(&r, v)
  4974. return r.Error()
  4975. }
  4976. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  4977. func (v *CallFrame) UnmarshalEasyJSON(l *jlexer.Lexer) {
  4978. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger55(l, v)
  4979. }
  4980. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger56(in *jlexer.Lexer, out *BreakLocation) {
  4981. isTopLevel := in.IsStart()
  4982. if in.IsNull() {
  4983. if isTopLevel {
  4984. in.Consumed()
  4985. }
  4986. in.Skip()
  4987. return
  4988. }
  4989. in.Delim('{')
  4990. for !in.IsDelim('}') {
  4991. key := in.UnsafeFieldName(false)
  4992. in.WantColon()
  4993. if in.IsNull() {
  4994. in.Skip()
  4995. in.WantComma()
  4996. continue
  4997. }
  4998. switch key {
  4999. case "scriptId":
  5000. out.ScriptID = runtime.ScriptID(in.String())
  5001. case "lineNumber":
  5002. out.LineNumber = int64(in.Int64())
  5003. case "columnNumber":
  5004. out.ColumnNumber = int64(in.Int64())
  5005. case "type":
  5006. (out.Type).UnmarshalEasyJSON(in)
  5007. default:
  5008. in.SkipRecursive()
  5009. }
  5010. in.WantComma()
  5011. }
  5012. in.Delim('}')
  5013. if isTopLevel {
  5014. in.Consumed()
  5015. }
  5016. }
  5017. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger56(out *jwriter.Writer, in BreakLocation) {
  5018. out.RawByte('{')
  5019. first := true
  5020. _ = first
  5021. {
  5022. const prefix string = ",\"scriptId\":"
  5023. out.RawString(prefix[1:])
  5024. out.String(string(in.ScriptID))
  5025. }
  5026. {
  5027. const prefix string = ",\"lineNumber\":"
  5028. out.RawString(prefix)
  5029. out.Int64(int64(in.LineNumber))
  5030. }
  5031. if in.ColumnNumber != 0 {
  5032. const prefix string = ",\"columnNumber\":"
  5033. out.RawString(prefix)
  5034. out.Int64(int64(in.ColumnNumber))
  5035. }
  5036. if in.Type != "" {
  5037. const prefix string = ",\"type\":"
  5038. out.RawString(prefix)
  5039. (in.Type).MarshalEasyJSON(out)
  5040. }
  5041. out.RawByte('}')
  5042. }
  5043. // MarshalJSON supports json.Marshaler interface
  5044. func (v BreakLocation) MarshalJSON() ([]byte, error) {
  5045. w := jwriter.Writer{}
  5046. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger56(&w, v)
  5047. return w.Buffer.BuildBytes(), w.Error
  5048. }
  5049. // MarshalEasyJSON supports easyjson.Marshaler interface
  5050. func (v BreakLocation) MarshalEasyJSON(w *jwriter.Writer) {
  5051. easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger56(w, v)
  5052. }
  5053. // UnmarshalJSON supports json.Unmarshaler interface
  5054. func (v *BreakLocation) UnmarshalJSON(data []byte) error {
  5055. r := jlexer.Lexer{Data: data}
  5056. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger56(&r, v)
  5057. return r.Error()
  5058. }
  5059. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  5060. func (v *BreakLocation) UnmarshalEasyJSON(l *jlexer.Lexer) {
  5061. easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger56(l, v)
  5062. }