2017-05-06 01:20:24 +00:00
|
|
|
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
|
2017-01-24 15:09:23 +00:00
|
|
|
|
|
|
|
package accessibility
|
|
|
|
|
|
|
|
import (
|
|
|
|
json "encoding/json"
|
|
|
|
easyjson "github.com/mailru/easyjson"
|
|
|
|
jlexer "github.com/mailru/easyjson/jlexer"
|
|
|
|
jwriter "github.com/mailru/easyjson/jwriter"
|
|
|
|
)
|
|
|
|
|
|
|
|
// suppress unused package warning
|
|
|
|
var (
|
|
|
|
_ *json.RawMessage
|
|
|
|
_ *jlexer.Lexer
|
|
|
|
_ *jwriter.Writer
|
|
|
|
_ easyjson.Marshaler
|
|
|
|
)
|
|
|
|
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility(in *jlexer.Lexer, out *GetPartialAXTreeReturns) {
|
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "nodes":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Nodes = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.Nodes == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Nodes = make([]*AXNode, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Nodes = []*AXNode{}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Nodes = (out.Nodes)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
|
|
|
var v1 *AXNode
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
v1 = nil
|
|
|
|
} else {
|
|
|
|
if v1 == nil {
|
|
|
|
v1 = new(AXNode)
|
|
|
|
}
|
|
|
|
(*v1).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
out.Nodes = append(out.Nodes, v1)
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility(out *jwriter.Writer, in GetPartialAXTreeReturns) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if len(in.Nodes) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"nodes\":")
|
|
|
|
if in.Nodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v2, v3 := range in.Nodes {
|
|
|
|
if v2 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v3 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v3).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v GetPartialAXTreeReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v GetPartialAXTreeReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *GetPartialAXTreeReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *GetPartialAXTreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility1(in *jlexer.Lexer, out *GetPartialAXTreeParams) {
|
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "nodeId":
|
|
|
|
(out.NodeID).UnmarshalEasyJSON(in)
|
|
|
|
case "fetchRelatives":
|
|
|
|
out.FetchRelatives = bool(in.Bool())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility1(out *jwriter.Writer, in GetPartialAXTreeParams) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"nodeId\":")
|
|
|
|
out.Int64(int64(in.NodeID))
|
|
|
|
if in.FetchRelatives {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"fetchRelatives\":")
|
|
|
|
out.Bool(bool(in.FetchRelatives))
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v GetPartialAXTreeParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility1(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v GetPartialAXTreeParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility1(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *GetPartialAXTreeParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility1(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *GetPartialAXTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility1(l, v)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility2(in *jlexer.Lexer, out *AXValueSource) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "type":
|
|
|
|
(out.Type).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
case "value":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Value = nil
|
|
|
|
} else {
|
|
|
|
if out.Value == nil {
|
|
|
|
out.Value = new(AXValue)
|
|
|
|
}
|
|
|
|
(*out.Value).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "attribute":
|
|
|
|
out.Attribute = string(in.String())
|
|
|
|
case "attributeValue":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.AttributeValue = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.AttributeValue == nil {
|
|
|
|
out.AttributeValue = new(AXValue)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.AttributeValue).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "superseded":
|
|
|
|
out.Superseded = bool(in.Bool())
|
|
|
|
case "nativeSource":
|
|
|
|
(out.NativeSource).UnmarshalEasyJSON(in)
|
|
|
|
case "nativeSourceValue":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.NativeSourceValue = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.NativeSourceValue == nil {
|
|
|
|
out.NativeSourceValue = new(AXValue)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.NativeSourceValue).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "invalid":
|
|
|
|
out.Invalid = bool(in.Bool())
|
|
|
|
case "invalidReason":
|
|
|
|
out.InvalidReason = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility2(out *jwriter.Writer, in AXValueSource) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"type\":")
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Value != nil {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"value\":")
|
|
|
|
if in.Value == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
(*in.Value).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Attribute != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"attribute\":")
|
|
|
|
out.String(string(in.Attribute))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.AttributeValue != nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"attributeValue\":")
|
|
|
|
if in.AttributeValue == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
(*in.AttributeValue).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Superseded {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"superseded\":")
|
|
|
|
out.Bool(bool(in.Superseded))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.NativeSource != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"nativeSource\":")
|
|
|
|
(in.NativeSource).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.NativeSourceValue != nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"nativeSourceValue\":")
|
|
|
|
if in.NativeSourceValue == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
(*in.NativeSourceValue).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Invalid {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"invalid\":")
|
|
|
|
out.Bool(bool(in.Invalid))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.InvalidReason != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"invalidReason\":")
|
|
|
|
out.String(string(in.InvalidReason))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v AXValueSource) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility2(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v AXValueSource) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility2(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *AXValueSource) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility2(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *AXValueSource) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility2(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility3(in *jlexer.Lexer, out *AXValue) {
|
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "type":
|
|
|
|
(out.Type).UnmarshalEasyJSON(in)
|
|
|
|
case "value":
|
|
|
|
(out.Value).UnmarshalEasyJSON(in)
|
|
|
|
case "relatedNodes":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.RelatedNodes = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.RelatedNodes == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.RelatedNodes = make([]*AXRelatedNode, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.RelatedNodes = []*AXRelatedNode{}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RelatedNodes = (out.RelatedNodes)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-02-18 03:58:29 +00:00
|
|
|
var v4 *AXRelatedNode
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
v4 = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
if v4 == nil {
|
|
|
|
v4 = new(AXRelatedNode)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*v4).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RelatedNodes = append(out.RelatedNodes, v4)
|
2017-01-24 15:09:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
case "sources":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Sources = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.Sources == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Sources = make([]*AXValueSource, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Sources = []*AXValueSource{}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Sources = (out.Sources)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-02-18 03:58:29 +00:00
|
|
|
var v5 *AXValueSource
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
v5 = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
if v5 == nil {
|
|
|
|
v5 = new(AXValueSource)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*v5).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Sources = append(out.Sources, v5)
|
2017-01-24 15:09:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility3(out *jwriter.Writer, in AXValue) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"type\":")
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
if (in.Value).IsDefined() {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"value\":")
|
|
|
|
(in.Value).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if len(in.RelatedNodes) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"relatedNodes\":")
|
|
|
|
if in.RelatedNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
for v6, v7 := range in.RelatedNodes {
|
|
|
|
if v6 > 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if v7 == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
(*v7).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(in.Sources) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"sources\":")
|
|
|
|
if in.Sources == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
for v8, v9 := range in.Sources {
|
|
|
|
if v8 > 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if v9 == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
(*v9).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v AXValue) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility3(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v AXValue) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility3(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *AXValue) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility3(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *AXValue) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility3(l, v)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility4(in *jlexer.Lexer, out *AXRelatedNode) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "backendDOMNodeId":
|
|
|
|
(out.BackendDOMNodeID).UnmarshalEasyJSON(in)
|
|
|
|
case "idref":
|
|
|
|
out.Idref = string(in.String())
|
|
|
|
case "text":
|
|
|
|
out.Text = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility4(out *jwriter.Writer, in AXRelatedNode) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"backendDOMNodeId\":")
|
|
|
|
out.Int64(int64(in.BackendDOMNodeID))
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Idref != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"idref\":")
|
|
|
|
out.String(string(in.Idref))
|
|
|
|
}
|
|
|
|
if in.Text != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"text\":")
|
|
|
|
out.String(string(in.Text))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v AXRelatedNode) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility4(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v AXRelatedNode) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility4(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *AXRelatedNode) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility4(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *AXRelatedNode) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility4(l, v)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility5(in *jlexer.Lexer, out *AXProperty) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "name":
|
|
|
|
out.Name = string(in.String())
|
|
|
|
case "value":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Value = nil
|
|
|
|
} else {
|
|
|
|
if out.Value == nil {
|
|
|
|
out.Value = new(AXValue)
|
|
|
|
}
|
|
|
|
(*out.Value).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility5(out *jwriter.Writer, in AXProperty) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"name\":")
|
|
|
|
out.String(string(in.Name))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"value\":")
|
|
|
|
if in.Value == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Value).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v AXProperty) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility5(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v AXProperty) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility5(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *AXProperty) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility5(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *AXProperty) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility5(l, v)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility6(in *jlexer.Lexer, out *AXNode) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "nodeId":
|
|
|
|
out.NodeID = AXNodeID(in.String())
|
|
|
|
case "ignored":
|
|
|
|
out.Ignored = bool(in.Bool())
|
|
|
|
case "ignoredReasons":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.IgnoredReasons = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.IgnoredReasons == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.IgnoredReasons = make([]*AXProperty, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.IgnoredReasons = []*AXProperty{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.IgnoredReasons = (out.IgnoredReasons)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
|
|
|
var v10 *AXProperty
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
v10 = nil
|
|
|
|
} else {
|
|
|
|
if v10 == nil {
|
|
|
|
v10 = new(AXProperty)
|
|
|
|
}
|
|
|
|
(*v10).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
out.IgnoredReasons = append(out.IgnoredReasons, v10)
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
case "role":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Role = nil
|
|
|
|
} else {
|
|
|
|
if out.Role == nil {
|
|
|
|
out.Role = new(AXValue)
|
|
|
|
}
|
|
|
|
(*out.Role).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "name":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Name = nil
|
|
|
|
} else {
|
|
|
|
if out.Name == nil {
|
|
|
|
out.Name = new(AXValue)
|
|
|
|
}
|
|
|
|
(*out.Name).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "description":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Description = nil
|
|
|
|
} else {
|
|
|
|
if out.Description == nil {
|
|
|
|
out.Description = new(AXValue)
|
|
|
|
}
|
|
|
|
(*out.Description).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
case "value":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Value = nil
|
|
|
|
} else {
|
|
|
|
if out.Value == nil {
|
|
|
|
out.Value = new(AXValue)
|
|
|
|
}
|
|
|
|
(*out.Value).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "properties":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Properties = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('[')
|
|
|
|
if out.Properties == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Properties = make([]*AXProperty, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Properties = []*AXProperty{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Properties = (out.Properties)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
for !in.IsDelim(']') {
|
|
|
|
var v11 *AXProperty
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
v11 = nil
|
|
|
|
} else {
|
|
|
|
if v11 == nil {
|
|
|
|
v11 = new(AXProperty)
|
|
|
|
}
|
|
|
|
(*v11).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
out.Properties = append(out.Properties, v11)
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "childIds":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.ChildIds = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('[')
|
|
|
|
if out.ChildIds == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.ChildIds = make([]AXNodeID, 0, 4)
|
|
|
|
} else {
|
|
|
|
out.ChildIds = []AXNodeID{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.ChildIds = (out.ChildIds)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
for !in.IsDelim(']') {
|
|
|
|
var v12 AXNodeID
|
|
|
|
v12 = AXNodeID(in.String())
|
|
|
|
out.ChildIds = append(out.ChildIds, v12)
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "backendDOMNodeId":
|
|
|
|
(out.BackendDOMNodeID).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility6(out *jwriter.Writer, in AXNode) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"nodeId\":")
|
|
|
|
out.String(string(in.NodeID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"ignored\":")
|
|
|
|
out.Bool(bool(in.Ignored))
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.IgnoredReasons) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"ignoredReasons\":")
|
|
|
|
if in.IgnoredReasons == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('[')
|
|
|
|
for v13, v14 := range in.IgnoredReasons {
|
|
|
|
if v13 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v14 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v14).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Role != nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"role\":")
|
|
|
|
if in.Role == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Role).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Name != nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"name\":")
|
|
|
|
if in.Name == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
(*in.Name).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Description != nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"description\":")
|
|
|
|
if in.Description == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Description).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Value != nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"value\":")
|
|
|
|
if in.Value == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Value).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.Properties) != 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"properties\":")
|
|
|
|
if in.Properties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('[')
|
|
|
|
for v15, v16 := range in.Properties {
|
|
|
|
if v15 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v16 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v16).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.ChildIds) != 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"childIds\":")
|
|
|
|
if in.ChildIds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v17, v18 := range in.ChildIds {
|
|
|
|
if v17 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
out.String(string(v18))
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.BackendDOMNodeID != 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"backendDOMNodeId\":")
|
|
|
|
out.Int64(int64(in.BackendDOMNodeID))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v AXNode) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility6(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v AXNode) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility6(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *AXNode) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility6(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *AXNode) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility6(l, v)
|
|
|
|
}
|