easyjson.go 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package accessibility
  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 easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility(in *jlexer.Lexer, out *ValueSource) {
  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 "type":
  37. (out.Type).UnmarshalEasyJSON(in)
  38. case "value":
  39. if in.IsNull() {
  40. in.Skip()
  41. out.Value = nil
  42. } else {
  43. if out.Value == nil {
  44. out.Value = new(Value)
  45. }
  46. (*out.Value).UnmarshalEasyJSON(in)
  47. }
  48. case "attribute":
  49. out.Attribute = string(in.String())
  50. case "attributeValue":
  51. if in.IsNull() {
  52. in.Skip()
  53. out.AttributeValue = nil
  54. } else {
  55. if out.AttributeValue == nil {
  56. out.AttributeValue = new(Value)
  57. }
  58. (*out.AttributeValue).UnmarshalEasyJSON(in)
  59. }
  60. case "superseded":
  61. out.Superseded = bool(in.Bool())
  62. case "nativeSource":
  63. (out.NativeSource).UnmarshalEasyJSON(in)
  64. case "nativeSourceValue":
  65. if in.IsNull() {
  66. in.Skip()
  67. out.NativeSourceValue = nil
  68. } else {
  69. if out.NativeSourceValue == nil {
  70. out.NativeSourceValue = new(Value)
  71. }
  72. (*out.NativeSourceValue).UnmarshalEasyJSON(in)
  73. }
  74. case "invalid":
  75. out.Invalid = bool(in.Bool())
  76. case "invalidReason":
  77. out.InvalidReason = string(in.String())
  78. default:
  79. in.SkipRecursive()
  80. }
  81. in.WantComma()
  82. }
  83. in.Delim('}')
  84. if isTopLevel {
  85. in.Consumed()
  86. }
  87. }
  88. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility(out *jwriter.Writer, in ValueSource) {
  89. out.RawByte('{')
  90. first := true
  91. _ = first
  92. {
  93. const prefix string = ",\"type\":"
  94. out.RawString(prefix[1:])
  95. (in.Type).MarshalEasyJSON(out)
  96. }
  97. if in.Value != nil {
  98. const prefix string = ",\"value\":"
  99. out.RawString(prefix)
  100. (*in.Value).MarshalEasyJSON(out)
  101. }
  102. if in.Attribute != "" {
  103. const prefix string = ",\"attribute\":"
  104. out.RawString(prefix)
  105. out.String(string(in.Attribute))
  106. }
  107. if in.AttributeValue != nil {
  108. const prefix string = ",\"attributeValue\":"
  109. out.RawString(prefix)
  110. (*in.AttributeValue).MarshalEasyJSON(out)
  111. }
  112. if in.Superseded {
  113. const prefix string = ",\"superseded\":"
  114. out.RawString(prefix)
  115. out.Bool(bool(in.Superseded))
  116. }
  117. if in.NativeSource != "" {
  118. const prefix string = ",\"nativeSource\":"
  119. out.RawString(prefix)
  120. (in.NativeSource).MarshalEasyJSON(out)
  121. }
  122. if in.NativeSourceValue != nil {
  123. const prefix string = ",\"nativeSourceValue\":"
  124. out.RawString(prefix)
  125. (*in.NativeSourceValue).MarshalEasyJSON(out)
  126. }
  127. if in.Invalid {
  128. const prefix string = ",\"invalid\":"
  129. out.RawString(prefix)
  130. out.Bool(bool(in.Invalid))
  131. }
  132. if in.InvalidReason != "" {
  133. const prefix string = ",\"invalidReason\":"
  134. out.RawString(prefix)
  135. out.String(string(in.InvalidReason))
  136. }
  137. out.RawByte('}')
  138. }
  139. // MarshalJSON supports json.Marshaler interface
  140. func (v ValueSource) MarshalJSON() ([]byte, error) {
  141. w := jwriter.Writer{}
  142. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility(&w, v)
  143. return w.Buffer.BuildBytes(), w.Error
  144. }
  145. // MarshalEasyJSON supports easyjson.Marshaler interface
  146. func (v ValueSource) MarshalEasyJSON(w *jwriter.Writer) {
  147. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility(w, v)
  148. }
  149. // UnmarshalJSON supports json.Unmarshaler interface
  150. func (v *ValueSource) UnmarshalJSON(data []byte) error {
  151. r := jlexer.Lexer{Data: data}
  152. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility(&r, v)
  153. return r.Error()
  154. }
  155. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  156. func (v *ValueSource) UnmarshalEasyJSON(l *jlexer.Lexer) {
  157. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility(l, v)
  158. }
  159. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility1(in *jlexer.Lexer, out *Value) {
  160. isTopLevel := in.IsStart()
  161. if in.IsNull() {
  162. if isTopLevel {
  163. in.Consumed()
  164. }
  165. in.Skip()
  166. return
  167. }
  168. in.Delim('{')
  169. for !in.IsDelim('}') {
  170. key := in.UnsafeFieldName(false)
  171. in.WantColon()
  172. if in.IsNull() {
  173. in.Skip()
  174. in.WantComma()
  175. continue
  176. }
  177. switch key {
  178. case "type":
  179. (out.Type).UnmarshalEasyJSON(in)
  180. case "value":
  181. (out.Value).UnmarshalEasyJSON(in)
  182. case "relatedNodes":
  183. if in.IsNull() {
  184. in.Skip()
  185. out.RelatedNodes = nil
  186. } else {
  187. in.Delim('[')
  188. if out.RelatedNodes == nil {
  189. if !in.IsDelim(']') {
  190. out.RelatedNodes = make([]*RelatedNode, 0, 8)
  191. } else {
  192. out.RelatedNodes = []*RelatedNode{}
  193. }
  194. } else {
  195. out.RelatedNodes = (out.RelatedNodes)[:0]
  196. }
  197. for !in.IsDelim(']') {
  198. var v1 *RelatedNode
  199. if in.IsNull() {
  200. in.Skip()
  201. v1 = nil
  202. } else {
  203. if v1 == nil {
  204. v1 = new(RelatedNode)
  205. }
  206. (*v1).UnmarshalEasyJSON(in)
  207. }
  208. out.RelatedNodes = append(out.RelatedNodes, v1)
  209. in.WantComma()
  210. }
  211. in.Delim(']')
  212. }
  213. case "sources":
  214. if in.IsNull() {
  215. in.Skip()
  216. out.Sources = nil
  217. } else {
  218. in.Delim('[')
  219. if out.Sources == nil {
  220. if !in.IsDelim(']') {
  221. out.Sources = make([]*ValueSource, 0, 8)
  222. } else {
  223. out.Sources = []*ValueSource{}
  224. }
  225. } else {
  226. out.Sources = (out.Sources)[:0]
  227. }
  228. for !in.IsDelim(']') {
  229. var v2 *ValueSource
  230. if in.IsNull() {
  231. in.Skip()
  232. v2 = nil
  233. } else {
  234. if v2 == nil {
  235. v2 = new(ValueSource)
  236. }
  237. (*v2).UnmarshalEasyJSON(in)
  238. }
  239. out.Sources = append(out.Sources, v2)
  240. in.WantComma()
  241. }
  242. in.Delim(']')
  243. }
  244. default:
  245. in.SkipRecursive()
  246. }
  247. in.WantComma()
  248. }
  249. in.Delim('}')
  250. if isTopLevel {
  251. in.Consumed()
  252. }
  253. }
  254. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility1(out *jwriter.Writer, in Value) {
  255. out.RawByte('{')
  256. first := true
  257. _ = first
  258. {
  259. const prefix string = ",\"type\":"
  260. out.RawString(prefix[1:])
  261. (in.Type).MarshalEasyJSON(out)
  262. }
  263. if (in.Value).IsDefined() {
  264. const prefix string = ",\"value\":"
  265. out.RawString(prefix)
  266. (in.Value).MarshalEasyJSON(out)
  267. }
  268. if len(in.RelatedNodes) != 0 {
  269. const prefix string = ",\"relatedNodes\":"
  270. out.RawString(prefix)
  271. {
  272. out.RawByte('[')
  273. for v3, v4 := range in.RelatedNodes {
  274. if v3 > 0 {
  275. out.RawByte(',')
  276. }
  277. if v4 == nil {
  278. out.RawString("null")
  279. } else {
  280. (*v4).MarshalEasyJSON(out)
  281. }
  282. }
  283. out.RawByte(']')
  284. }
  285. }
  286. if len(in.Sources) != 0 {
  287. const prefix string = ",\"sources\":"
  288. out.RawString(prefix)
  289. {
  290. out.RawByte('[')
  291. for v5, v6 := range in.Sources {
  292. if v5 > 0 {
  293. out.RawByte(',')
  294. }
  295. if v6 == nil {
  296. out.RawString("null")
  297. } else {
  298. (*v6).MarshalEasyJSON(out)
  299. }
  300. }
  301. out.RawByte(']')
  302. }
  303. }
  304. out.RawByte('}')
  305. }
  306. // MarshalJSON supports json.Marshaler interface
  307. func (v Value) MarshalJSON() ([]byte, error) {
  308. w := jwriter.Writer{}
  309. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility1(&w, v)
  310. return w.Buffer.BuildBytes(), w.Error
  311. }
  312. // MarshalEasyJSON supports easyjson.Marshaler interface
  313. func (v Value) MarshalEasyJSON(w *jwriter.Writer) {
  314. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility1(w, v)
  315. }
  316. // UnmarshalJSON supports json.Unmarshaler interface
  317. func (v *Value) UnmarshalJSON(data []byte) error {
  318. r := jlexer.Lexer{Data: data}
  319. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility1(&r, v)
  320. return r.Error()
  321. }
  322. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  323. func (v *Value) UnmarshalEasyJSON(l *jlexer.Lexer) {
  324. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility1(l, v)
  325. }
  326. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility2(in *jlexer.Lexer, out *RelatedNode) {
  327. isTopLevel := in.IsStart()
  328. if in.IsNull() {
  329. if isTopLevel {
  330. in.Consumed()
  331. }
  332. in.Skip()
  333. return
  334. }
  335. in.Delim('{')
  336. for !in.IsDelim('}') {
  337. key := in.UnsafeFieldName(false)
  338. in.WantColon()
  339. if in.IsNull() {
  340. in.Skip()
  341. in.WantComma()
  342. continue
  343. }
  344. switch key {
  345. case "backendDOMNodeId":
  346. (out.BackendDOMNodeID).UnmarshalEasyJSON(in)
  347. case "idref":
  348. out.Idref = string(in.String())
  349. case "text":
  350. out.Text = string(in.String())
  351. default:
  352. in.SkipRecursive()
  353. }
  354. in.WantComma()
  355. }
  356. in.Delim('}')
  357. if isTopLevel {
  358. in.Consumed()
  359. }
  360. }
  361. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility2(out *jwriter.Writer, in RelatedNode) {
  362. out.RawByte('{')
  363. first := true
  364. _ = first
  365. {
  366. const prefix string = ",\"backendDOMNodeId\":"
  367. out.RawString(prefix[1:])
  368. out.Int64(int64(in.BackendDOMNodeID))
  369. }
  370. if in.Idref != "" {
  371. const prefix string = ",\"idref\":"
  372. out.RawString(prefix)
  373. out.String(string(in.Idref))
  374. }
  375. if in.Text != "" {
  376. const prefix string = ",\"text\":"
  377. out.RawString(prefix)
  378. out.String(string(in.Text))
  379. }
  380. out.RawByte('}')
  381. }
  382. // MarshalJSON supports json.Marshaler interface
  383. func (v RelatedNode) MarshalJSON() ([]byte, error) {
  384. w := jwriter.Writer{}
  385. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility2(&w, v)
  386. return w.Buffer.BuildBytes(), w.Error
  387. }
  388. // MarshalEasyJSON supports easyjson.Marshaler interface
  389. func (v RelatedNode) MarshalEasyJSON(w *jwriter.Writer) {
  390. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility2(w, v)
  391. }
  392. // UnmarshalJSON supports json.Unmarshaler interface
  393. func (v *RelatedNode) UnmarshalJSON(data []byte) error {
  394. r := jlexer.Lexer{Data: data}
  395. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility2(&r, v)
  396. return r.Error()
  397. }
  398. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  399. func (v *RelatedNode) UnmarshalEasyJSON(l *jlexer.Lexer) {
  400. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility2(l, v)
  401. }
  402. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility3(in *jlexer.Lexer, out *QueryAXTreeReturns) {
  403. isTopLevel := in.IsStart()
  404. if in.IsNull() {
  405. if isTopLevel {
  406. in.Consumed()
  407. }
  408. in.Skip()
  409. return
  410. }
  411. in.Delim('{')
  412. for !in.IsDelim('}') {
  413. key := in.UnsafeFieldName(false)
  414. in.WantColon()
  415. if in.IsNull() {
  416. in.Skip()
  417. in.WantComma()
  418. continue
  419. }
  420. switch key {
  421. case "nodes":
  422. if in.IsNull() {
  423. in.Skip()
  424. out.Nodes = nil
  425. } else {
  426. in.Delim('[')
  427. if out.Nodes == nil {
  428. if !in.IsDelim(']') {
  429. out.Nodes = make([]*Node, 0, 8)
  430. } else {
  431. out.Nodes = []*Node{}
  432. }
  433. } else {
  434. out.Nodes = (out.Nodes)[:0]
  435. }
  436. for !in.IsDelim(']') {
  437. var v7 *Node
  438. if in.IsNull() {
  439. in.Skip()
  440. v7 = nil
  441. } else {
  442. if v7 == nil {
  443. v7 = new(Node)
  444. }
  445. (*v7).UnmarshalEasyJSON(in)
  446. }
  447. out.Nodes = append(out.Nodes, v7)
  448. in.WantComma()
  449. }
  450. in.Delim(']')
  451. }
  452. default:
  453. in.SkipRecursive()
  454. }
  455. in.WantComma()
  456. }
  457. in.Delim('}')
  458. if isTopLevel {
  459. in.Consumed()
  460. }
  461. }
  462. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility3(out *jwriter.Writer, in QueryAXTreeReturns) {
  463. out.RawByte('{')
  464. first := true
  465. _ = first
  466. if len(in.Nodes) != 0 {
  467. const prefix string = ",\"nodes\":"
  468. first = false
  469. out.RawString(prefix[1:])
  470. {
  471. out.RawByte('[')
  472. for v8, v9 := range in.Nodes {
  473. if v8 > 0 {
  474. out.RawByte(',')
  475. }
  476. if v9 == nil {
  477. out.RawString("null")
  478. } else {
  479. (*v9).MarshalEasyJSON(out)
  480. }
  481. }
  482. out.RawByte(']')
  483. }
  484. }
  485. out.RawByte('}')
  486. }
  487. // MarshalJSON supports json.Marshaler interface
  488. func (v QueryAXTreeReturns) MarshalJSON() ([]byte, error) {
  489. w := jwriter.Writer{}
  490. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility3(&w, v)
  491. return w.Buffer.BuildBytes(), w.Error
  492. }
  493. // MarshalEasyJSON supports easyjson.Marshaler interface
  494. func (v QueryAXTreeReturns) MarshalEasyJSON(w *jwriter.Writer) {
  495. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility3(w, v)
  496. }
  497. // UnmarshalJSON supports json.Unmarshaler interface
  498. func (v *QueryAXTreeReturns) UnmarshalJSON(data []byte) error {
  499. r := jlexer.Lexer{Data: data}
  500. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility3(&r, v)
  501. return r.Error()
  502. }
  503. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  504. func (v *QueryAXTreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  505. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility3(l, v)
  506. }
  507. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility4(in *jlexer.Lexer, out *QueryAXTreeParams) {
  508. isTopLevel := in.IsStart()
  509. if in.IsNull() {
  510. if isTopLevel {
  511. in.Consumed()
  512. }
  513. in.Skip()
  514. return
  515. }
  516. in.Delim('{')
  517. for !in.IsDelim('}') {
  518. key := in.UnsafeFieldName(false)
  519. in.WantColon()
  520. if in.IsNull() {
  521. in.Skip()
  522. in.WantComma()
  523. continue
  524. }
  525. switch key {
  526. case "nodeId":
  527. (out.NodeID).UnmarshalEasyJSON(in)
  528. case "backendNodeId":
  529. (out.BackendNodeID).UnmarshalEasyJSON(in)
  530. case "objectId":
  531. out.ObjectID = runtime.RemoteObjectID(in.String())
  532. case "accessibleName":
  533. out.AccessibleName = string(in.String())
  534. case "role":
  535. out.Role = string(in.String())
  536. default:
  537. in.SkipRecursive()
  538. }
  539. in.WantComma()
  540. }
  541. in.Delim('}')
  542. if isTopLevel {
  543. in.Consumed()
  544. }
  545. }
  546. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility4(out *jwriter.Writer, in QueryAXTreeParams) {
  547. out.RawByte('{')
  548. first := true
  549. _ = first
  550. if in.NodeID != 0 {
  551. const prefix string = ",\"nodeId\":"
  552. first = false
  553. out.RawString(prefix[1:])
  554. out.Int64(int64(in.NodeID))
  555. }
  556. if in.BackendNodeID != 0 {
  557. const prefix string = ",\"backendNodeId\":"
  558. if first {
  559. first = false
  560. out.RawString(prefix[1:])
  561. } else {
  562. out.RawString(prefix)
  563. }
  564. out.Int64(int64(in.BackendNodeID))
  565. }
  566. if in.ObjectID != "" {
  567. const prefix string = ",\"objectId\":"
  568. if first {
  569. first = false
  570. out.RawString(prefix[1:])
  571. } else {
  572. out.RawString(prefix)
  573. }
  574. out.String(string(in.ObjectID))
  575. }
  576. if in.AccessibleName != "" {
  577. const prefix string = ",\"accessibleName\":"
  578. if first {
  579. first = false
  580. out.RawString(prefix[1:])
  581. } else {
  582. out.RawString(prefix)
  583. }
  584. out.String(string(in.AccessibleName))
  585. }
  586. if in.Role != "" {
  587. const prefix string = ",\"role\":"
  588. if first {
  589. first = false
  590. out.RawString(prefix[1:])
  591. } else {
  592. out.RawString(prefix)
  593. }
  594. out.String(string(in.Role))
  595. }
  596. out.RawByte('}')
  597. }
  598. // MarshalJSON supports json.Marshaler interface
  599. func (v QueryAXTreeParams) MarshalJSON() ([]byte, error) {
  600. w := jwriter.Writer{}
  601. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility4(&w, v)
  602. return w.Buffer.BuildBytes(), w.Error
  603. }
  604. // MarshalEasyJSON supports easyjson.Marshaler interface
  605. func (v QueryAXTreeParams) MarshalEasyJSON(w *jwriter.Writer) {
  606. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility4(w, v)
  607. }
  608. // UnmarshalJSON supports json.Unmarshaler interface
  609. func (v *QueryAXTreeParams) UnmarshalJSON(data []byte) error {
  610. r := jlexer.Lexer{Data: data}
  611. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility4(&r, v)
  612. return r.Error()
  613. }
  614. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  615. func (v *QueryAXTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  616. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility4(l, v)
  617. }
  618. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility5(in *jlexer.Lexer, out *Property) {
  619. isTopLevel := in.IsStart()
  620. if in.IsNull() {
  621. if isTopLevel {
  622. in.Consumed()
  623. }
  624. in.Skip()
  625. return
  626. }
  627. in.Delim('{')
  628. for !in.IsDelim('}') {
  629. key := in.UnsafeFieldName(false)
  630. in.WantColon()
  631. if in.IsNull() {
  632. in.Skip()
  633. in.WantComma()
  634. continue
  635. }
  636. switch key {
  637. case "name":
  638. (out.Name).UnmarshalEasyJSON(in)
  639. case "value":
  640. if in.IsNull() {
  641. in.Skip()
  642. out.Value = nil
  643. } else {
  644. if out.Value == nil {
  645. out.Value = new(Value)
  646. }
  647. (*out.Value).UnmarshalEasyJSON(in)
  648. }
  649. default:
  650. in.SkipRecursive()
  651. }
  652. in.WantComma()
  653. }
  654. in.Delim('}')
  655. if isTopLevel {
  656. in.Consumed()
  657. }
  658. }
  659. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility5(out *jwriter.Writer, in Property) {
  660. out.RawByte('{')
  661. first := true
  662. _ = first
  663. {
  664. const prefix string = ",\"name\":"
  665. out.RawString(prefix[1:])
  666. (in.Name).MarshalEasyJSON(out)
  667. }
  668. {
  669. const prefix string = ",\"value\":"
  670. out.RawString(prefix)
  671. if in.Value == nil {
  672. out.RawString("null")
  673. } else {
  674. (*in.Value).MarshalEasyJSON(out)
  675. }
  676. }
  677. out.RawByte('}')
  678. }
  679. // MarshalJSON supports json.Marshaler interface
  680. func (v Property) MarshalJSON() ([]byte, error) {
  681. w := jwriter.Writer{}
  682. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility5(&w, v)
  683. return w.Buffer.BuildBytes(), w.Error
  684. }
  685. // MarshalEasyJSON supports easyjson.Marshaler interface
  686. func (v Property) MarshalEasyJSON(w *jwriter.Writer) {
  687. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility5(w, v)
  688. }
  689. // UnmarshalJSON supports json.Unmarshaler interface
  690. func (v *Property) UnmarshalJSON(data []byte) error {
  691. r := jlexer.Lexer{Data: data}
  692. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility5(&r, v)
  693. return r.Error()
  694. }
  695. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  696. func (v *Property) UnmarshalEasyJSON(l *jlexer.Lexer) {
  697. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility5(l, v)
  698. }
  699. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility6(in *jlexer.Lexer, out *Node) {
  700. isTopLevel := in.IsStart()
  701. if in.IsNull() {
  702. if isTopLevel {
  703. in.Consumed()
  704. }
  705. in.Skip()
  706. return
  707. }
  708. in.Delim('{')
  709. for !in.IsDelim('}') {
  710. key := in.UnsafeFieldName(false)
  711. in.WantColon()
  712. if in.IsNull() {
  713. in.Skip()
  714. in.WantComma()
  715. continue
  716. }
  717. switch key {
  718. case "nodeId":
  719. out.NodeID = NodeID(in.String())
  720. case "ignored":
  721. out.Ignored = bool(in.Bool())
  722. case "ignoredReasons":
  723. if in.IsNull() {
  724. in.Skip()
  725. out.IgnoredReasons = nil
  726. } else {
  727. in.Delim('[')
  728. if out.IgnoredReasons == nil {
  729. if !in.IsDelim(']') {
  730. out.IgnoredReasons = make([]*Property, 0, 8)
  731. } else {
  732. out.IgnoredReasons = []*Property{}
  733. }
  734. } else {
  735. out.IgnoredReasons = (out.IgnoredReasons)[:0]
  736. }
  737. for !in.IsDelim(']') {
  738. var v10 *Property
  739. if in.IsNull() {
  740. in.Skip()
  741. v10 = nil
  742. } else {
  743. if v10 == nil {
  744. v10 = new(Property)
  745. }
  746. (*v10).UnmarshalEasyJSON(in)
  747. }
  748. out.IgnoredReasons = append(out.IgnoredReasons, v10)
  749. in.WantComma()
  750. }
  751. in.Delim(']')
  752. }
  753. case "role":
  754. if in.IsNull() {
  755. in.Skip()
  756. out.Role = nil
  757. } else {
  758. if out.Role == nil {
  759. out.Role = new(Value)
  760. }
  761. (*out.Role).UnmarshalEasyJSON(in)
  762. }
  763. case "chromeRole":
  764. if in.IsNull() {
  765. in.Skip()
  766. out.ChromeRole = nil
  767. } else {
  768. if out.ChromeRole == nil {
  769. out.ChromeRole = new(Value)
  770. }
  771. (*out.ChromeRole).UnmarshalEasyJSON(in)
  772. }
  773. case "name":
  774. if in.IsNull() {
  775. in.Skip()
  776. out.Name = nil
  777. } else {
  778. if out.Name == nil {
  779. out.Name = new(Value)
  780. }
  781. (*out.Name).UnmarshalEasyJSON(in)
  782. }
  783. case "description":
  784. if in.IsNull() {
  785. in.Skip()
  786. out.Description = nil
  787. } else {
  788. if out.Description == nil {
  789. out.Description = new(Value)
  790. }
  791. (*out.Description).UnmarshalEasyJSON(in)
  792. }
  793. case "value":
  794. if in.IsNull() {
  795. in.Skip()
  796. out.Value = nil
  797. } else {
  798. if out.Value == nil {
  799. out.Value = new(Value)
  800. }
  801. (*out.Value).UnmarshalEasyJSON(in)
  802. }
  803. case "properties":
  804. if in.IsNull() {
  805. in.Skip()
  806. out.Properties = nil
  807. } else {
  808. in.Delim('[')
  809. if out.Properties == nil {
  810. if !in.IsDelim(']') {
  811. out.Properties = make([]*Property, 0, 8)
  812. } else {
  813. out.Properties = []*Property{}
  814. }
  815. } else {
  816. out.Properties = (out.Properties)[:0]
  817. }
  818. for !in.IsDelim(']') {
  819. var v11 *Property
  820. if in.IsNull() {
  821. in.Skip()
  822. v11 = nil
  823. } else {
  824. if v11 == nil {
  825. v11 = new(Property)
  826. }
  827. (*v11).UnmarshalEasyJSON(in)
  828. }
  829. out.Properties = append(out.Properties, v11)
  830. in.WantComma()
  831. }
  832. in.Delim(']')
  833. }
  834. case "parentId":
  835. out.ParentID = NodeID(in.String())
  836. case "childIds":
  837. if in.IsNull() {
  838. in.Skip()
  839. out.ChildIDs = nil
  840. } else {
  841. in.Delim('[')
  842. if out.ChildIDs == nil {
  843. if !in.IsDelim(']') {
  844. out.ChildIDs = make([]NodeID, 0, 4)
  845. } else {
  846. out.ChildIDs = []NodeID{}
  847. }
  848. } else {
  849. out.ChildIDs = (out.ChildIDs)[:0]
  850. }
  851. for !in.IsDelim(']') {
  852. var v12 NodeID
  853. v12 = NodeID(in.String())
  854. out.ChildIDs = append(out.ChildIDs, v12)
  855. in.WantComma()
  856. }
  857. in.Delim(']')
  858. }
  859. case "backendDOMNodeId":
  860. (out.BackendDOMNodeID).UnmarshalEasyJSON(in)
  861. case "frameId":
  862. (out.FrameID).UnmarshalEasyJSON(in)
  863. default:
  864. in.SkipRecursive()
  865. }
  866. in.WantComma()
  867. }
  868. in.Delim('}')
  869. if isTopLevel {
  870. in.Consumed()
  871. }
  872. }
  873. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility6(out *jwriter.Writer, in Node) {
  874. out.RawByte('{')
  875. first := true
  876. _ = first
  877. {
  878. const prefix string = ",\"nodeId\":"
  879. out.RawString(prefix[1:])
  880. out.String(string(in.NodeID))
  881. }
  882. {
  883. const prefix string = ",\"ignored\":"
  884. out.RawString(prefix)
  885. out.Bool(bool(in.Ignored))
  886. }
  887. if len(in.IgnoredReasons) != 0 {
  888. const prefix string = ",\"ignoredReasons\":"
  889. out.RawString(prefix)
  890. {
  891. out.RawByte('[')
  892. for v13, v14 := range in.IgnoredReasons {
  893. if v13 > 0 {
  894. out.RawByte(',')
  895. }
  896. if v14 == nil {
  897. out.RawString("null")
  898. } else {
  899. (*v14).MarshalEasyJSON(out)
  900. }
  901. }
  902. out.RawByte(']')
  903. }
  904. }
  905. if in.Role != nil {
  906. const prefix string = ",\"role\":"
  907. out.RawString(prefix)
  908. (*in.Role).MarshalEasyJSON(out)
  909. }
  910. if in.ChromeRole != nil {
  911. const prefix string = ",\"chromeRole\":"
  912. out.RawString(prefix)
  913. (*in.ChromeRole).MarshalEasyJSON(out)
  914. }
  915. if in.Name != nil {
  916. const prefix string = ",\"name\":"
  917. out.RawString(prefix)
  918. (*in.Name).MarshalEasyJSON(out)
  919. }
  920. if in.Description != nil {
  921. const prefix string = ",\"description\":"
  922. out.RawString(prefix)
  923. (*in.Description).MarshalEasyJSON(out)
  924. }
  925. if in.Value != nil {
  926. const prefix string = ",\"value\":"
  927. out.RawString(prefix)
  928. (*in.Value).MarshalEasyJSON(out)
  929. }
  930. if len(in.Properties) != 0 {
  931. const prefix string = ",\"properties\":"
  932. out.RawString(prefix)
  933. {
  934. out.RawByte('[')
  935. for v15, v16 := range in.Properties {
  936. if v15 > 0 {
  937. out.RawByte(',')
  938. }
  939. if v16 == nil {
  940. out.RawString("null")
  941. } else {
  942. (*v16).MarshalEasyJSON(out)
  943. }
  944. }
  945. out.RawByte(']')
  946. }
  947. }
  948. if in.ParentID != "" {
  949. const prefix string = ",\"parentId\":"
  950. out.RawString(prefix)
  951. out.String(string(in.ParentID))
  952. }
  953. if len(in.ChildIDs) != 0 {
  954. const prefix string = ",\"childIds\":"
  955. out.RawString(prefix)
  956. {
  957. out.RawByte('[')
  958. for v17, v18 := range in.ChildIDs {
  959. if v17 > 0 {
  960. out.RawByte(',')
  961. }
  962. out.String(string(v18))
  963. }
  964. out.RawByte(']')
  965. }
  966. }
  967. if in.BackendDOMNodeID != 0 {
  968. const prefix string = ",\"backendDOMNodeId\":"
  969. out.RawString(prefix)
  970. out.Int64(int64(in.BackendDOMNodeID))
  971. }
  972. if in.FrameID != "" {
  973. const prefix string = ",\"frameId\":"
  974. out.RawString(prefix)
  975. out.String(string(in.FrameID))
  976. }
  977. out.RawByte('}')
  978. }
  979. // MarshalJSON supports json.Marshaler interface
  980. func (v Node) MarshalJSON() ([]byte, error) {
  981. w := jwriter.Writer{}
  982. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility6(&w, v)
  983. return w.Buffer.BuildBytes(), w.Error
  984. }
  985. // MarshalEasyJSON supports easyjson.Marshaler interface
  986. func (v Node) MarshalEasyJSON(w *jwriter.Writer) {
  987. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility6(w, v)
  988. }
  989. // UnmarshalJSON supports json.Unmarshaler interface
  990. func (v *Node) UnmarshalJSON(data []byte) error {
  991. r := jlexer.Lexer{Data: data}
  992. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility6(&r, v)
  993. return r.Error()
  994. }
  995. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  996. func (v *Node) UnmarshalEasyJSON(l *jlexer.Lexer) {
  997. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility6(l, v)
  998. }
  999. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility7(in *jlexer.Lexer, out *GetRootAXNodeReturns) {
  1000. isTopLevel := in.IsStart()
  1001. if in.IsNull() {
  1002. if isTopLevel {
  1003. in.Consumed()
  1004. }
  1005. in.Skip()
  1006. return
  1007. }
  1008. in.Delim('{')
  1009. for !in.IsDelim('}') {
  1010. key := in.UnsafeFieldName(false)
  1011. in.WantColon()
  1012. if in.IsNull() {
  1013. in.Skip()
  1014. in.WantComma()
  1015. continue
  1016. }
  1017. switch key {
  1018. case "node":
  1019. if in.IsNull() {
  1020. in.Skip()
  1021. out.Node = nil
  1022. } else {
  1023. if out.Node == nil {
  1024. out.Node = new(Node)
  1025. }
  1026. (*out.Node).UnmarshalEasyJSON(in)
  1027. }
  1028. default:
  1029. in.SkipRecursive()
  1030. }
  1031. in.WantComma()
  1032. }
  1033. in.Delim('}')
  1034. if isTopLevel {
  1035. in.Consumed()
  1036. }
  1037. }
  1038. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility7(out *jwriter.Writer, in GetRootAXNodeReturns) {
  1039. out.RawByte('{')
  1040. first := true
  1041. _ = first
  1042. if in.Node != nil {
  1043. const prefix string = ",\"node\":"
  1044. first = false
  1045. out.RawString(prefix[1:])
  1046. (*in.Node).MarshalEasyJSON(out)
  1047. }
  1048. out.RawByte('}')
  1049. }
  1050. // MarshalJSON supports json.Marshaler interface
  1051. func (v GetRootAXNodeReturns) MarshalJSON() ([]byte, error) {
  1052. w := jwriter.Writer{}
  1053. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility7(&w, v)
  1054. return w.Buffer.BuildBytes(), w.Error
  1055. }
  1056. // MarshalEasyJSON supports easyjson.Marshaler interface
  1057. func (v GetRootAXNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1058. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility7(w, v)
  1059. }
  1060. // UnmarshalJSON supports json.Unmarshaler interface
  1061. func (v *GetRootAXNodeReturns) UnmarshalJSON(data []byte) error {
  1062. r := jlexer.Lexer{Data: data}
  1063. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility7(&r, v)
  1064. return r.Error()
  1065. }
  1066. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1067. func (v *GetRootAXNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1068. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility7(l, v)
  1069. }
  1070. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility8(in *jlexer.Lexer, out *GetRootAXNodeParams) {
  1071. isTopLevel := in.IsStart()
  1072. if in.IsNull() {
  1073. if isTopLevel {
  1074. in.Consumed()
  1075. }
  1076. in.Skip()
  1077. return
  1078. }
  1079. in.Delim('{')
  1080. for !in.IsDelim('}') {
  1081. key := in.UnsafeFieldName(false)
  1082. in.WantColon()
  1083. if in.IsNull() {
  1084. in.Skip()
  1085. in.WantComma()
  1086. continue
  1087. }
  1088. switch key {
  1089. case "frameId":
  1090. (out.FrameID).UnmarshalEasyJSON(in)
  1091. default:
  1092. in.SkipRecursive()
  1093. }
  1094. in.WantComma()
  1095. }
  1096. in.Delim('}')
  1097. if isTopLevel {
  1098. in.Consumed()
  1099. }
  1100. }
  1101. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility8(out *jwriter.Writer, in GetRootAXNodeParams) {
  1102. out.RawByte('{')
  1103. first := true
  1104. _ = first
  1105. if in.FrameID != "" {
  1106. const prefix string = ",\"frameId\":"
  1107. first = false
  1108. out.RawString(prefix[1:])
  1109. out.String(string(in.FrameID))
  1110. }
  1111. out.RawByte('}')
  1112. }
  1113. // MarshalJSON supports json.Marshaler interface
  1114. func (v GetRootAXNodeParams) MarshalJSON() ([]byte, error) {
  1115. w := jwriter.Writer{}
  1116. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility8(&w, v)
  1117. return w.Buffer.BuildBytes(), w.Error
  1118. }
  1119. // MarshalEasyJSON supports easyjson.Marshaler interface
  1120. func (v GetRootAXNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
  1121. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility8(w, v)
  1122. }
  1123. // UnmarshalJSON supports json.Unmarshaler interface
  1124. func (v *GetRootAXNodeParams) UnmarshalJSON(data []byte) error {
  1125. r := jlexer.Lexer{Data: data}
  1126. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility8(&r, v)
  1127. return r.Error()
  1128. }
  1129. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1130. func (v *GetRootAXNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1131. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility8(l, v)
  1132. }
  1133. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility9(in *jlexer.Lexer, out *GetPartialAXTreeReturns) {
  1134. isTopLevel := in.IsStart()
  1135. if in.IsNull() {
  1136. if isTopLevel {
  1137. in.Consumed()
  1138. }
  1139. in.Skip()
  1140. return
  1141. }
  1142. in.Delim('{')
  1143. for !in.IsDelim('}') {
  1144. key := in.UnsafeFieldName(false)
  1145. in.WantColon()
  1146. if in.IsNull() {
  1147. in.Skip()
  1148. in.WantComma()
  1149. continue
  1150. }
  1151. switch key {
  1152. case "nodes":
  1153. if in.IsNull() {
  1154. in.Skip()
  1155. out.Nodes = nil
  1156. } else {
  1157. in.Delim('[')
  1158. if out.Nodes == nil {
  1159. if !in.IsDelim(']') {
  1160. out.Nodes = make([]*Node, 0, 8)
  1161. } else {
  1162. out.Nodes = []*Node{}
  1163. }
  1164. } else {
  1165. out.Nodes = (out.Nodes)[:0]
  1166. }
  1167. for !in.IsDelim(']') {
  1168. var v19 *Node
  1169. if in.IsNull() {
  1170. in.Skip()
  1171. v19 = nil
  1172. } else {
  1173. if v19 == nil {
  1174. v19 = new(Node)
  1175. }
  1176. (*v19).UnmarshalEasyJSON(in)
  1177. }
  1178. out.Nodes = append(out.Nodes, v19)
  1179. in.WantComma()
  1180. }
  1181. in.Delim(']')
  1182. }
  1183. default:
  1184. in.SkipRecursive()
  1185. }
  1186. in.WantComma()
  1187. }
  1188. in.Delim('}')
  1189. if isTopLevel {
  1190. in.Consumed()
  1191. }
  1192. }
  1193. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility9(out *jwriter.Writer, in GetPartialAXTreeReturns) {
  1194. out.RawByte('{')
  1195. first := true
  1196. _ = first
  1197. if len(in.Nodes) != 0 {
  1198. const prefix string = ",\"nodes\":"
  1199. first = false
  1200. out.RawString(prefix[1:])
  1201. {
  1202. out.RawByte('[')
  1203. for v20, v21 := range in.Nodes {
  1204. if v20 > 0 {
  1205. out.RawByte(',')
  1206. }
  1207. if v21 == nil {
  1208. out.RawString("null")
  1209. } else {
  1210. (*v21).MarshalEasyJSON(out)
  1211. }
  1212. }
  1213. out.RawByte(']')
  1214. }
  1215. }
  1216. out.RawByte('}')
  1217. }
  1218. // MarshalJSON supports json.Marshaler interface
  1219. func (v GetPartialAXTreeReturns) MarshalJSON() ([]byte, error) {
  1220. w := jwriter.Writer{}
  1221. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility9(&w, v)
  1222. return w.Buffer.BuildBytes(), w.Error
  1223. }
  1224. // MarshalEasyJSON supports easyjson.Marshaler interface
  1225. func (v GetPartialAXTreeReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1226. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility9(w, v)
  1227. }
  1228. // UnmarshalJSON supports json.Unmarshaler interface
  1229. func (v *GetPartialAXTreeReturns) UnmarshalJSON(data []byte) error {
  1230. r := jlexer.Lexer{Data: data}
  1231. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility9(&r, v)
  1232. return r.Error()
  1233. }
  1234. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1235. func (v *GetPartialAXTreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1236. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility9(l, v)
  1237. }
  1238. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility10(in *jlexer.Lexer, out *GetPartialAXTreeParams) {
  1239. isTopLevel := in.IsStart()
  1240. if in.IsNull() {
  1241. if isTopLevel {
  1242. in.Consumed()
  1243. }
  1244. in.Skip()
  1245. return
  1246. }
  1247. in.Delim('{')
  1248. for !in.IsDelim('}') {
  1249. key := in.UnsafeFieldName(false)
  1250. in.WantColon()
  1251. if in.IsNull() {
  1252. in.Skip()
  1253. in.WantComma()
  1254. continue
  1255. }
  1256. switch key {
  1257. case "nodeId":
  1258. (out.NodeID).UnmarshalEasyJSON(in)
  1259. case "backendNodeId":
  1260. (out.BackendNodeID).UnmarshalEasyJSON(in)
  1261. case "objectId":
  1262. out.ObjectID = runtime.RemoteObjectID(in.String())
  1263. case "fetchRelatives":
  1264. out.FetchRelatives = bool(in.Bool())
  1265. default:
  1266. in.SkipRecursive()
  1267. }
  1268. in.WantComma()
  1269. }
  1270. in.Delim('}')
  1271. if isTopLevel {
  1272. in.Consumed()
  1273. }
  1274. }
  1275. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility10(out *jwriter.Writer, in GetPartialAXTreeParams) {
  1276. out.RawByte('{')
  1277. first := true
  1278. _ = first
  1279. if in.NodeID != 0 {
  1280. const prefix string = ",\"nodeId\":"
  1281. first = false
  1282. out.RawString(prefix[1:])
  1283. out.Int64(int64(in.NodeID))
  1284. }
  1285. if in.BackendNodeID != 0 {
  1286. const prefix string = ",\"backendNodeId\":"
  1287. if first {
  1288. first = false
  1289. out.RawString(prefix[1:])
  1290. } else {
  1291. out.RawString(prefix)
  1292. }
  1293. out.Int64(int64(in.BackendNodeID))
  1294. }
  1295. if in.ObjectID != "" {
  1296. const prefix string = ",\"objectId\":"
  1297. if first {
  1298. first = false
  1299. out.RawString(prefix[1:])
  1300. } else {
  1301. out.RawString(prefix)
  1302. }
  1303. out.String(string(in.ObjectID))
  1304. }
  1305. if in.FetchRelatives {
  1306. const prefix string = ",\"fetchRelatives\":"
  1307. if first {
  1308. first = false
  1309. out.RawString(prefix[1:])
  1310. } else {
  1311. out.RawString(prefix)
  1312. }
  1313. out.Bool(bool(in.FetchRelatives))
  1314. }
  1315. out.RawByte('}')
  1316. }
  1317. // MarshalJSON supports json.Marshaler interface
  1318. func (v GetPartialAXTreeParams) MarshalJSON() ([]byte, error) {
  1319. w := jwriter.Writer{}
  1320. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility10(&w, v)
  1321. return w.Buffer.BuildBytes(), w.Error
  1322. }
  1323. // MarshalEasyJSON supports easyjson.Marshaler interface
  1324. func (v GetPartialAXTreeParams) MarshalEasyJSON(w *jwriter.Writer) {
  1325. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility10(w, v)
  1326. }
  1327. // UnmarshalJSON supports json.Unmarshaler interface
  1328. func (v *GetPartialAXTreeParams) UnmarshalJSON(data []byte) error {
  1329. r := jlexer.Lexer{Data: data}
  1330. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility10(&r, v)
  1331. return r.Error()
  1332. }
  1333. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1334. func (v *GetPartialAXTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1335. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility10(l, v)
  1336. }
  1337. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility11(in *jlexer.Lexer, out *GetFullAXTreeReturns) {
  1338. isTopLevel := in.IsStart()
  1339. if in.IsNull() {
  1340. if isTopLevel {
  1341. in.Consumed()
  1342. }
  1343. in.Skip()
  1344. return
  1345. }
  1346. in.Delim('{')
  1347. for !in.IsDelim('}') {
  1348. key := in.UnsafeFieldName(false)
  1349. in.WantColon()
  1350. if in.IsNull() {
  1351. in.Skip()
  1352. in.WantComma()
  1353. continue
  1354. }
  1355. switch key {
  1356. case "nodes":
  1357. if in.IsNull() {
  1358. in.Skip()
  1359. out.Nodes = nil
  1360. } else {
  1361. in.Delim('[')
  1362. if out.Nodes == nil {
  1363. if !in.IsDelim(']') {
  1364. out.Nodes = make([]*Node, 0, 8)
  1365. } else {
  1366. out.Nodes = []*Node{}
  1367. }
  1368. } else {
  1369. out.Nodes = (out.Nodes)[:0]
  1370. }
  1371. for !in.IsDelim(']') {
  1372. var v22 *Node
  1373. if in.IsNull() {
  1374. in.Skip()
  1375. v22 = nil
  1376. } else {
  1377. if v22 == nil {
  1378. v22 = new(Node)
  1379. }
  1380. (*v22).UnmarshalEasyJSON(in)
  1381. }
  1382. out.Nodes = append(out.Nodes, v22)
  1383. in.WantComma()
  1384. }
  1385. in.Delim(']')
  1386. }
  1387. default:
  1388. in.SkipRecursive()
  1389. }
  1390. in.WantComma()
  1391. }
  1392. in.Delim('}')
  1393. if isTopLevel {
  1394. in.Consumed()
  1395. }
  1396. }
  1397. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility11(out *jwriter.Writer, in GetFullAXTreeReturns) {
  1398. out.RawByte('{')
  1399. first := true
  1400. _ = first
  1401. if len(in.Nodes) != 0 {
  1402. const prefix string = ",\"nodes\":"
  1403. first = false
  1404. out.RawString(prefix[1:])
  1405. {
  1406. out.RawByte('[')
  1407. for v23, v24 := range in.Nodes {
  1408. if v23 > 0 {
  1409. out.RawByte(',')
  1410. }
  1411. if v24 == nil {
  1412. out.RawString("null")
  1413. } else {
  1414. (*v24).MarshalEasyJSON(out)
  1415. }
  1416. }
  1417. out.RawByte(']')
  1418. }
  1419. }
  1420. out.RawByte('}')
  1421. }
  1422. // MarshalJSON supports json.Marshaler interface
  1423. func (v GetFullAXTreeReturns) MarshalJSON() ([]byte, error) {
  1424. w := jwriter.Writer{}
  1425. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility11(&w, v)
  1426. return w.Buffer.BuildBytes(), w.Error
  1427. }
  1428. // MarshalEasyJSON supports easyjson.Marshaler interface
  1429. func (v GetFullAXTreeReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1430. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility11(w, v)
  1431. }
  1432. // UnmarshalJSON supports json.Unmarshaler interface
  1433. func (v *GetFullAXTreeReturns) UnmarshalJSON(data []byte) error {
  1434. r := jlexer.Lexer{Data: data}
  1435. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility11(&r, v)
  1436. return r.Error()
  1437. }
  1438. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1439. func (v *GetFullAXTreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1440. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility11(l, v)
  1441. }
  1442. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility12(in *jlexer.Lexer, out *GetFullAXTreeParams) {
  1443. isTopLevel := in.IsStart()
  1444. if in.IsNull() {
  1445. if isTopLevel {
  1446. in.Consumed()
  1447. }
  1448. in.Skip()
  1449. return
  1450. }
  1451. in.Delim('{')
  1452. for !in.IsDelim('}') {
  1453. key := in.UnsafeFieldName(false)
  1454. in.WantColon()
  1455. if in.IsNull() {
  1456. in.Skip()
  1457. in.WantComma()
  1458. continue
  1459. }
  1460. switch key {
  1461. case "depth":
  1462. out.Depth = int64(in.Int64())
  1463. case "frameId":
  1464. (out.FrameID).UnmarshalEasyJSON(in)
  1465. default:
  1466. in.SkipRecursive()
  1467. }
  1468. in.WantComma()
  1469. }
  1470. in.Delim('}')
  1471. if isTopLevel {
  1472. in.Consumed()
  1473. }
  1474. }
  1475. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility12(out *jwriter.Writer, in GetFullAXTreeParams) {
  1476. out.RawByte('{')
  1477. first := true
  1478. _ = first
  1479. if in.Depth != 0 {
  1480. const prefix string = ",\"depth\":"
  1481. first = false
  1482. out.RawString(prefix[1:])
  1483. out.Int64(int64(in.Depth))
  1484. }
  1485. if in.FrameID != "" {
  1486. const prefix string = ",\"frameId\":"
  1487. if first {
  1488. first = false
  1489. out.RawString(prefix[1:])
  1490. } else {
  1491. out.RawString(prefix)
  1492. }
  1493. out.String(string(in.FrameID))
  1494. }
  1495. out.RawByte('}')
  1496. }
  1497. // MarshalJSON supports json.Marshaler interface
  1498. func (v GetFullAXTreeParams) MarshalJSON() ([]byte, error) {
  1499. w := jwriter.Writer{}
  1500. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility12(&w, v)
  1501. return w.Buffer.BuildBytes(), w.Error
  1502. }
  1503. // MarshalEasyJSON supports easyjson.Marshaler interface
  1504. func (v GetFullAXTreeParams) MarshalEasyJSON(w *jwriter.Writer) {
  1505. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility12(w, v)
  1506. }
  1507. // UnmarshalJSON supports json.Unmarshaler interface
  1508. func (v *GetFullAXTreeParams) UnmarshalJSON(data []byte) error {
  1509. r := jlexer.Lexer{Data: data}
  1510. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility12(&r, v)
  1511. return r.Error()
  1512. }
  1513. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1514. func (v *GetFullAXTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1515. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility12(l, v)
  1516. }
  1517. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility13(in *jlexer.Lexer, out *GetChildAXNodesReturns) {
  1518. isTopLevel := in.IsStart()
  1519. if in.IsNull() {
  1520. if isTopLevel {
  1521. in.Consumed()
  1522. }
  1523. in.Skip()
  1524. return
  1525. }
  1526. in.Delim('{')
  1527. for !in.IsDelim('}') {
  1528. key := in.UnsafeFieldName(false)
  1529. in.WantColon()
  1530. if in.IsNull() {
  1531. in.Skip()
  1532. in.WantComma()
  1533. continue
  1534. }
  1535. switch key {
  1536. case "nodes":
  1537. if in.IsNull() {
  1538. in.Skip()
  1539. out.Nodes = nil
  1540. } else {
  1541. in.Delim('[')
  1542. if out.Nodes == nil {
  1543. if !in.IsDelim(']') {
  1544. out.Nodes = make([]*Node, 0, 8)
  1545. } else {
  1546. out.Nodes = []*Node{}
  1547. }
  1548. } else {
  1549. out.Nodes = (out.Nodes)[:0]
  1550. }
  1551. for !in.IsDelim(']') {
  1552. var v25 *Node
  1553. if in.IsNull() {
  1554. in.Skip()
  1555. v25 = nil
  1556. } else {
  1557. if v25 == nil {
  1558. v25 = new(Node)
  1559. }
  1560. (*v25).UnmarshalEasyJSON(in)
  1561. }
  1562. out.Nodes = append(out.Nodes, v25)
  1563. in.WantComma()
  1564. }
  1565. in.Delim(']')
  1566. }
  1567. default:
  1568. in.SkipRecursive()
  1569. }
  1570. in.WantComma()
  1571. }
  1572. in.Delim('}')
  1573. if isTopLevel {
  1574. in.Consumed()
  1575. }
  1576. }
  1577. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility13(out *jwriter.Writer, in GetChildAXNodesReturns) {
  1578. out.RawByte('{')
  1579. first := true
  1580. _ = first
  1581. if len(in.Nodes) != 0 {
  1582. const prefix string = ",\"nodes\":"
  1583. first = false
  1584. out.RawString(prefix[1:])
  1585. {
  1586. out.RawByte('[')
  1587. for v26, v27 := range in.Nodes {
  1588. if v26 > 0 {
  1589. out.RawByte(',')
  1590. }
  1591. if v27 == nil {
  1592. out.RawString("null")
  1593. } else {
  1594. (*v27).MarshalEasyJSON(out)
  1595. }
  1596. }
  1597. out.RawByte(']')
  1598. }
  1599. }
  1600. out.RawByte('}')
  1601. }
  1602. // MarshalJSON supports json.Marshaler interface
  1603. func (v GetChildAXNodesReturns) MarshalJSON() ([]byte, error) {
  1604. w := jwriter.Writer{}
  1605. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility13(&w, v)
  1606. return w.Buffer.BuildBytes(), w.Error
  1607. }
  1608. // MarshalEasyJSON supports easyjson.Marshaler interface
  1609. func (v GetChildAXNodesReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1610. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility13(w, v)
  1611. }
  1612. // UnmarshalJSON supports json.Unmarshaler interface
  1613. func (v *GetChildAXNodesReturns) UnmarshalJSON(data []byte) error {
  1614. r := jlexer.Lexer{Data: data}
  1615. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility13(&r, v)
  1616. return r.Error()
  1617. }
  1618. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1619. func (v *GetChildAXNodesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1620. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility13(l, v)
  1621. }
  1622. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility14(in *jlexer.Lexer, out *GetChildAXNodesParams) {
  1623. isTopLevel := in.IsStart()
  1624. if in.IsNull() {
  1625. if isTopLevel {
  1626. in.Consumed()
  1627. }
  1628. in.Skip()
  1629. return
  1630. }
  1631. in.Delim('{')
  1632. for !in.IsDelim('}') {
  1633. key := in.UnsafeFieldName(false)
  1634. in.WantColon()
  1635. if in.IsNull() {
  1636. in.Skip()
  1637. in.WantComma()
  1638. continue
  1639. }
  1640. switch key {
  1641. case "id":
  1642. out.ID = NodeID(in.String())
  1643. case "frameId":
  1644. (out.FrameID).UnmarshalEasyJSON(in)
  1645. default:
  1646. in.SkipRecursive()
  1647. }
  1648. in.WantComma()
  1649. }
  1650. in.Delim('}')
  1651. if isTopLevel {
  1652. in.Consumed()
  1653. }
  1654. }
  1655. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility14(out *jwriter.Writer, in GetChildAXNodesParams) {
  1656. out.RawByte('{')
  1657. first := true
  1658. _ = first
  1659. {
  1660. const prefix string = ",\"id\":"
  1661. out.RawString(prefix[1:])
  1662. out.String(string(in.ID))
  1663. }
  1664. if in.FrameID != "" {
  1665. const prefix string = ",\"frameId\":"
  1666. out.RawString(prefix)
  1667. out.String(string(in.FrameID))
  1668. }
  1669. out.RawByte('}')
  1670. }
  1671. // MarshalJSON supports json.Marshaler interface
  1672. func (v GetChildAXNodesParams) MarshalJSON() ([]byte, error) {
  1673. w := jwriter.Writer{}
  1674. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility14(&w, v)
  1675. return w.Buffer.BuildBytes(), w.Error
  1676. }
  1677. // MarshalEasyJSON supports easyjson.Marshaler interface
  1678. func (v GetChildAXNodesParams) MarshalEasyJSON(w *jwriter.Writer) {
  1679. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility14(w, v)
  1680. }
  1681. // UnmarshalJSON supports json.Unmarshaler interface
  1682. func (v *GetChildAXNodesParams) UnmarshalJSON(data []byte) error {
  1683. r := jlexer.Lexer{Data: data}
  1684. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility14(&r, v)
  1685. return r.Error()
  1686. }
  1687. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1688. func (v *GetChildAXNodesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1689. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility14(l, v)
  1690. }
  1691. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility15(in *jlexer.Lexer, out *GetAXNodeAndAncestorsReturns) {
  1692. isTopLevel := in.IsStart()
  1693. if in.IsNull() {
  1694. if isTopLevel {
  1695. in.Consumed()
  1696. }
  1697. in.Skip()
  1698. return
  1699. }
  1700. in.Delim('{')
  1701. for !in.IsDelim('}') {
  1702. key := in.UnsafeFieldName(false)
  1703. in.WantColon()
  1704. if in.IsNull() {
  1705. in.Skip()
  1706. in.WantComma()
  1707. continue
  1708. }
  1709. switch key {
  1710. case "nodes":
  1711. if in.IsNull() {
  1712. in.Skip()
  1713. out.Nodes = nil
  1714. } else {
  1715. in.Delim('[')
  1716. if out.Nodes == nil {
  1717. if !in.IsDelim(']') {
  1718. out.Nodes = make([]*Node, 0, 8)
  1719. } else {
  1720. out.Nodes = []*Node{}
  1721. }
  1722. } else {
  1723. out.Nodes = (out.Nodes)[:0]
  1724. }
  1725. for !in.IsDelim(']') {
  1726. var v28 *Node
  1727. if in.IsNull() {
  1728. in.Skip()
  1729. v28 = nil
  1730. } else {
  1731. if v28 == nil {
  1732. v28 = new(Node)
  1733. }
  1734. (*v28).UnmarshalEasyJSON(in)
  1735. }
  1736. out.Nodes = append(out.Nodes, v28)
  1737. in.WantComma()
  1738. }
  1739. in.Delim(']')
  1740. }
  1741. default:
  1742. in.SkipRecursive()
  1743. }
  1744. in.WantComma()
  1745. }
  1746. in.Delim('}')
  1747. if isTopLevel {
  1748. in.Consumed()
  1749. }
  1750. }
  1751. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility15(out *jwriter.Writer, in GetAXNodeAndAncestorsReturns) {
  1752. out.RawByte('{')
  1753. first := true
  1754. _ = first
  1755. if len(in.Nodes) != 0 {
  1756. const prefix string = ",\"nodes\":"
  1757. first = false
  1758. out.RawString(prefix[1:])
  1759. {
  1760. out.RawByte('[')
  1761. for v29, v30 := range in.Nodes {
  1762. if v29 > 0 {
  1763. out.RawByte(',')
  1764. }
  1765. if v30 == nil {
  1766. out.RawString("null")
  1767. } else {
  1768. (*v30).MarshalEasyJSON(out)
  1769. }
  1770. }
  1771. out.RawByte(']')
  1772. }
  1773. }
  1774. out.RawByte('}')
  1775. }
  1776. // MarshalJSON supports json.Marshaler interface
  1777. func (v GetAXNodeAndAncestorsReturns) MarshalJSON() ([]byte, error) {
  1778. w := jwriter.Writer{}
  1779. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility15(&w, v)
  1780. return w.Buffer.BuildBytes(), w.Error
  1781. }
  1782. // MarshalEasyJSON supports easyjson.Marshaler interface
  1783. func (v GetAXNodeAndAncestorsReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1784. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility15(w, v)
  1785. }
  1786. // UnmarshalJSON supports json.Unmarshaler interface
  1787. func (v *GetAXNodeAndAncestorsReturns) UnmarshalJSON(data []byte) error {
  1788. r := jlexer.Lexer{Data: data}
  1789. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility15(&r, v)
  1790. return r.Error()
  1791. }
  1792. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1793. func (v *GetAXNodeAndAncestorsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1794. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility15(l, v)
  1795. }
  1796. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility16(in *jlexer.Lexer, out *GetAXNodeAndAncestorsParams) {
  1797. isTopLevel := in.IsStart()
  1798. if in.IsNull() {
  1799. if isTopLevel {
  1800. in.Consumed()
  1801. }
  1802. in.Skip()
  1803. return
  1804. }
  1805. in.Delim('{')
  1806. for !in.IsDelim('}') {
  1807. key := in.UnsafeFieldName(false)
  1808. in.WantColon()
  1809. if in.IsNull() {
  1810. in.Skip()
  1811. in.WantComma()
  1812. continue
  1813. }
  1814. switch key {
  1815. case "nodeId":
  1816. (out.NodeID).UnmarshalEasyJSON(in)
  1817. case "backendNodeId":
  1818. (out.BackendNodeID).UnmarshalEasyJSON(in)
  1819. case "objectId":
  1820. out.ObjectID = runtime.RemoteObjectID(in.String())
  1821. default:
  1822. in.SkipRecursive()
  1823. }
  1824. in.WantComma()
  1825. }
  1826. in.Delim('}')
  1827. if isTopLevel {
  1828. in.Consumed()
  1829. }
  1830. }
  1831. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility16(out *jwriter.Writer, in GetAXNodeAndAncestorsParams) {
  1832. out.RawByte('{')
  1833. first := true
  1834. _ = first
  1835. if in.NodeID != 0 {
  1836. const prefix string = ",\"nodeId\":"
  1837. first = false
  1838. out.RawString(prefix[1:])
  1839. out.Int64(int64(in.NodeID))
  1840. }
  1841. if in.BackendNodeID != 0 {
  1842. const prefix string = ",\"backendNodeId\":"
  1843. if first {
  1844. first = false
  1845. out.RawString(prefix[1:])
  1846. } else {
  1847. out.RawString(prefix)
  1848. }
  1849. out.Int64(int64(in.BackendNodeID))
  1850. }
  1851. if in.ObjectID != "" {
  1852. const prefix string = ",\"objectId\":"
  1853. if first {
  1854. first = false
  1855. out.RawString(prefix[1:])
  1856. } else {
  1857. out.RawString(prefix)
  1858. }
  1859. out.String(string(in.ObjectID))
  1860. }
  1861. out.RawByte('}')
  1862. }
  1863. // MarshalJSON supports json.Marshaler interface
  1864. func (v GetAXNodeAndAncestorsParams) MarshalJSON() ([]byte, error) {
  1865. w := jwriter.Writer{}
  1866. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility16(&w, v)
  1867. return w.Buffer.BuildBytes(), w.Error
  1868. }
  1869. // MarshalEasyJSON supports easyjson.Marshaler interface
  1870. func (v GetAXNodeAndAncestorsParams) MarshalEasyJSON(w *jwriter.Writer) {
  1871. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility16(w, v)
  1872. }
  1873. // UnmarshalJSON supports json.Unmarshaler interface
  1874. func (v *GetAXNodeAndAncestorsParams) UnmarshalJSON(data []byte) error {
  1875. r := jlexer.Lexer{Data: data}
  1876. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility16(&r, v)
  1877. return r.Error()
  1878. }
  1879. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1880. func (v *GetAXNodeAndAncestorsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1881. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility16(l, v)
  1882. }
  1883. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility17(in *jlexer.Lexer, out *EventNodesUpdated) {
  1884. isTopLevel := in.IsStart()
  1885. if in.IsNull() {
  1886. if isTopLevel {
  1887. in.Consumed()
  1888. }
  1889. in.Skip()
  1890. return
  1891. }
  1892. in.Delim('{')
  1893. for !in.IsDelim('}') {
  1894. key := in.UnsafeFieldName(false)
  1895. in.WantColon()
  1896. if in.IsNull() {
  1897. in.Skip()
  1898. in.WantComma()
  1899. continue
  1900. }
  1901. switch key {
  1902. case "nodes":
  1903. if in.IsNull() {
  1904. in.Skip()
  1905. out.Nodes = nil
  1906. } else {
  1907. in.Delim('[')
  1908. if out.Nodes == nil {
  1909. if !in.IsDelim(']') {
  1910. out.Nodes = make([]*Node, 0, 8)
  1911. } else {
  1912. out.Nodes = []*Node{}
  1913. }
  1914. } else {
  1915. out.Nodes = (out.Nodes)[:0]
  1916. }
  1917. for !in.IsDelim(']') {
  1918. var v31 *Node
  1919. if in.IsNull() {
  1920. in.Skip()
  1921. v31 = nil
  1922. } else {
  1923. if v31 == nil {
  1924. v31 = new(Node)
  1925. }
  1926. (*v31).UnmarshalEasyJSON(in)
  1927. }
  1928. out.Nodes = append(out.Nodes, v31)
  1929. in.WantComma()
  1930. }
  1931. in.Delim(']')
  1932. }
  1933. default:
  1934. in.SkipRecursive()
  1935. }
  1936. in.WantComma()
  1937. }
  1938. in.Delim('}')
  1939. if isTopLevel {
  1940. in.Consumed()
  1941. }
  1942. }
  1943. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility17(out *jwriter.Writer, in EventNodesUpdated) {
  1944. out.RawByte('{')
  1945. first := true
  1946. _ = first
  1947. {
  1948. const prefix string = ",\"nodes\":"
  1949. out.RawString(prefix[1:])
  1950. if in.Nodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  1951. out.RawString("null")
  1952. } else {
  1953. out.RawByte('[')
  1954. for v32, v33 := range in.Nodes {
  1955. if v32 > 0 {
  1956. out.RawByte(',')
  1957. }
  1958. if v33 == nil {
  1959. out.RawString("null")
  1960. } else {
  1961. (*v33).MarshalEasyJSON(out)
  1962. }
  1963. }
  1964. out.RawByte(']')
  1965. }
  1966. }
  1967. out.RawByte('}')
  1968. }
  1969. // MarshalJSON supports json.Marshaler interface
  1970. func (v EventNodesUpdated) MarshalJSON() ([]byte, error) {
  1971. w := jwriter.Writer{}
  1972. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility17(&w, v)
  1973. return w.Buffer.BuildBytes(), w.Error
  1974. }
  1975. // MarshalEasyJSON supports easyjson.Marshaler interface
  1976. func (v EventNodesUpdated) MarshalEasyJSON(w *jwriter.Writer) {
  1977. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility17(w, v)
  1978. }
  1979. // UnmarshalJSON supports json.Unmarshaler interface
  1980. func (v *EventNodesUpdated) UnmarshalJSON(data []byte) error {
  1981. r := jlexer.Lexer{Data: data}
  1982. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility17(&r, v)
  1983. return r.Error()
  1984. }
  1985. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1986. func (v *EventNodesUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1987. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility17(l, v)
  1988. }
  1989. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility18(in *jlexer.Lexer, out *EventLoadComplete) {
  1990. isTopLevel := in.IsStart()
  1991. if in.IsNull() {
  1992. if isTopLevel {
  1993. in.Consumed()
  1994. }
  1995. in.Skip()
  1996. return
  1997. }
  1998. in.Delim('{')
  1999. for !in.IsDelim('}') {
  2000. key := in.UnsafeFieldName(false)
  2001. in.WantColon()
  2002. if in.IsNull() {
  2003. in.Skip()
  2004. in.WantComma()
  2005. continue
  2006. }
  2007. switch key {
  2008. case "root":
  2009. if in.IsNull() {
  2010. in.Skip()
  2011. out.Root = nil
  2012. } else {
  2013. if out.Root == nil {
  2014. out.Root = new(Node)
  2015. }
  2016. (*out.Root).UnmarshalEasyJSON(in)
  2017. }
  2018. default:
  2019. in.SkipRecursive()
  2020. }
  2021. in.WantComma()
  2022. }
  2023. in.Delim('}')
  2024. if isTopLevel {
  2025. in.Consumed()
  2026. }
  2027. }
  2028. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility18(out *jwriter.Writer, in EventLoadComplete) {
  2029. out.RawByte('{')
  2030. first := true
  2031. _ = first
  2032. {
  2033. const prefix string = ",\"root\":"
  2034. out.RawString(prefix[1:])
  2035. if in.Root == nil {
  2036. out.RawString("null")
  2037. } else {
  2038. (*in.Root).MarshalEasyJSON(out)
  2039. }
  2040. }
  2041. out.RawByte('}')
  2042. }
  2043. // MarshalJSON supports json.Marshaler interface
  2044. func (v EventLoadComplete) MarshalJSON() ([]byte, error) {
  2045. w := jwriter.Writer{}
  2046. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility18(&w, v)
  2047. return w.Buffer.BuildBytes(), w.Error
  2048. }
  2049. // MarshalEasyJSON supports easyjson.Marshaler interface
  2050. func (v EventLoadComplete) MarshalEasyJSON(w *jwriter.Writer) {
  2051. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility18(w, v)
  2052. }
  2053. // UnmarshalJSON supports json.Unmarshaler interface
  2054. func (v *EventLoadComplete) UnmarshalJSON(data []byte) error {
  2055. r := jlexer.Lexer{Data: data}
  2056. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility18(&r, v)
  2057. return r.Error()
  2058. }
  2059. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2060. func (v *EventLoadComplete) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2061. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility18(l, v)
  2062. }
  2063. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility19(in *jlexer.Lexer, out *EnableParams) {
  2064. isTopLevel := in.IsStart()
  2065. if in.IsNull() {
  2066. if isTopLevel {
  2067. in.Consumed()
  2068. }
  2069. in.Skip()
  2070. return
  2071. }
  2072. in.Delim('{')
  2073. for !in.IsDelim('}') {
  2074. key := in.UnsafeFieldName(false)
  2075. in.WantColon()
  2076. if in.IsNull() {
  2077. in.Skip()
  2078. in.WantComma()
  2079. continue
  2080. }
  2081. switch key {
  2082. default:
  2083. in.SkipRecursive()
  2084. }
  2085. in.WantComma()
  2086. }
  2087. in.Delim('}')
  2088. if isTopLevel {
  2089. in.Consumed()
  2090. }
  2091. }
  2092. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility19(out *jwriter.Writer, in EnableParams) {
  2093. out.RawByte('{')
  2094. first := true
  2095. _ = first
  2096. out.RawByte('}')
  2097. }
  2098. // MarshalJSON supports json.Marshaler interface
  2099. func (v EnableParams) MarshalJSON() ([]byte, error) {
  2100. w := jwriter.Writer{}
  2101. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility19(&w, v)
  2102. return w.Buffer.BuildBytes(), w.Error
  2103. }
  2104. // MarshalEasyJSON supports easyjson.Marshaler interface
  2105. func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
  2106. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility19(w, v)
  2107. }
  2108. // UnmarshalJSON supports json.Unmarshaler interface
  2109. func (v *EnableParams) UnmarshalJSON(data []byte) error {
  2110. r := jlexer.Lexer{Data: data}
  2111. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility19(&r, v)
  2112. return r.Error()
  2113. }
  2114. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2115. func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2116. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility19(l, v)
  2117. }
  2118. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility20(in *jlexer.Lexer, out *DisableParams) {
  2119. isTopLevel := in.IsStart()
  2120. if in.IsNull() {
  2121. if isTopLevel {
  2122. in.Consumed()
  2123. }
  2124. in.Skip()
  2125. return
  2126. }
  2127. in.Delim('{')
  2128. for !in.IsDelim('}') {
  2129. key := in.UnsafeFieldName(false)
  2130. in.WantColon()
  2131. if in.IsNull() {
  2132. in.Skip()
  2133. in.WantComma()
  2134. continue
  2135. }
  2136. switch key {
  2137. default:
  2138. in.SkipRecursive()
  2139. }
  2140. in.WantComma()
  2141. }
  2142. in.Delim('}')
  2143. if isTopLevel {
  2144. in.Consumed()
  2145. }
  2146. }
  2147. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility20(out *jwriter.Writer, in DisableParams) {
  2148. out.RawByte('{')
  2149. first := true
  2150. _ = first
  2151. out.RawByte('}')
  2152. }
  2153. // MarshalJSON supports json.Marshaler interface
  2154. func (v DisableParams) MarshalJSON() ([]byte, error) {
  2155. w := jwriter.Writer{}
  2156. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility20(&w, v)
  2157. return w.Buffer.BuildBytes(), w.Error
  2158. }
  2159. // MarshalEasyJSON supports easyjson.Marshaler interface
  2160. func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
  2161. easyjsonC5a4559bEncodeGithubComChromedpCdprotoAccessibility20(w, v)
  2162. }
  2163. // UnmarshalJSON supports json.Unmarshaler interface
  2164. func (v *DisableParams) UnmarshalJSON(data []byte) error {
  2165. r := jlexer.Lexer{Data: data}
  2166. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility20(&r, v)
  2167. return r.Error()
  2168. }
  2169. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  2170. func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  2171. easyjsonC5a4559bDecodeGithubComChromedpCdprotoAccessibility20(l, v)
  2172. }