2017-01-24 15:09:23 +00:00
|
|
|
// AUTOGENERATED FILE: easyjson marshaler/unmarshalers.
|
|
|
|
|
|
|
|
package css
|
|
|
|
|
|
|
|
import (
|
|
|
|
json "encoding/json"
|
|
|
|
dom "github.com/knq/chromedp/cdp/dom"
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss(in *jlexer.Lexer, out *Value) {
|
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 "text":
|
|
|
|
out.Text = string(in.String())
|
|
|
|
case "range":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Range = nil
|
|
|
|
} else {
|
|
|
|
if out.Range == nil {
|
|
|
|
out.Range = new(SourceRange)
|
|
|
|
}
|
|
|
|
(*out.Range).UnmarshalEasyJSON(in)
|
|
|
|
}
|
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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss(out *jwriter.Writer, in Value) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Text != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"text\":")
|
|
|
|
out.String(string(in.Text))
|
|
|
|
}
|
|
|
|
if in.Range != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"range\":")
|
|
|
|
if in.Range == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Range).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 Value) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v Value) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Value) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Value) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss(l, v)
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss1(in *jlexer.Lexer, out *TakeCoverageDeltaReturns) {
|
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "coverage":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Coverage = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.Coverage == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Coverage = make([]*RuleUsage, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Coverage = []*RuleUsage{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Coverage = (out.Coverage)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
|
|
|
var v1 *RuleUsage
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
v1 = nil
|
|
|
|
} else {
|
|
|
|
if v1 == nil {
|
|
|
|
v1 = new(RuleUsage)
|
|
|
|
}
|
|
|
|
(*v1).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
out.Coverage = append(out.Coverage, v1)
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss1(out *jwriter.Writer, in TakeCoverageDeltaReturns) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if len(in.Coverage) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"coverage\":")
|
|
|
|
if in.Coverage == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v2, v3 := range in.Coverage {
|
|
|
|
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 TakeCoverageDeltaReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss1(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v TakeCoverageDeltaReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss1(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *TakeCoverageDeltaReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss1(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *TakeCoverageDeltaReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss1(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss2(in *jlexer.Lexer, out *TakeCoverageDeltaParams) {
|
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss2(out *jwriter.Writer, in TakeCoverageDeltaParams) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v TakeCoverageDeltaParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss2(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v TakeCoverageDeltaParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss2(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *TakeCoverageDeltaParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss2(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *TakeCoverageDeltaParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss2(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss3(in *jlexer.Lexer, out *StyleSheetHeader) {
|
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 "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(in.String())
|
|
|
|
case "frameId":
|
|
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
|
|
|
case "sourceURL":
|
|
|
|
out.SourceURL = string(in.String())
|
|
|
|
case "sourceMapURL":
|
|
|
|
out.SourceMapURL = string(in.String())
|
|
|
|
case "origin":
|
|
|
|
(out.Origin).UnmarshalEasyJSON(in)
|
|
|
|
case "title":
|
|
|
|
out.Title = string(in.String())
|
|
|
|
case "ownerNode":
|
|
|
|
(out.OwnerNode).UnmarshalEasyJSON(in)
|
|
|
|
case "disabled":
|
|
|
|
out.Disabled = bool(in.Bool())
|
|
|
|
case "hasSourceURL":
|
|
|
|
out.HasSourceURL = bool(in.Bool())
|
|
|
|
case "isInline":
|
|
|
|
out.IsInline = bool(in.Bool())
|
|
|
|
case "startLine":
|
|
|
|
out.StartLine = float64(in.Float64())
|
|
|
|
case "startColumn":
|
|
|
|
out.StartColumn = float64(in.Float64())
|
2017-03-13 02:29:26 +00:00
|
|
|
case "length":
|
|
|
|
out.Length = float64(in.Float64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss3(out *jwriter.Writer, in StyleSheetHeader) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.StyleSheetID != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
}
|
|
|
|
if in.FrameID != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"frameId\":")
|
|
|
|
out.String(string(in.FrameID))
|
|
|
|
}
|
|
|
|
if in.SourceURL != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"sourceURL\":")
|
|
|
|
out.String(string(in.SourceURL))
|
|
|
|
}
|
|
|
|
if in.SourceMapURL != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"sourceMapURL\":")
|
|
|
|
out.String(string(in.SourceMapURL))
|
|
|
|
}
|
|
|
|
if in.Origin != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"origin\":")
|
|
|
|
(in.Origin).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if in.Title != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"title\":")
|
|
|
|
out.String(string(in.Title))
|
|
|
|
}
|
|
|
|
if in.OwnerNode != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"ownerNode\":")
|
|
|
|
out.Int64(int64(in.OwnerNode))
|
|
|
|
}
|
|
|
|
if in.Disabled {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"disabled\":")
|
|
|
|
out.Bool(bool(in.Disabled))
|
|
|
|
}
|
|
|
|
if in.HasSourceURL {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"hasSourceURL\":")
|
|
|
|
out.Bool(bool(in.HasSourceURL))
|
|
|
|
}
|
|
|
|
if in.IsInline {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"isInline\":")
|
|
|
|
out.Bool(bool(in.IsInline))
|
|
|
|
}
|
|
|
|
if in.StartLine != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"startLine\":")
|
|
|
|
out.Float64(float64(in.StartLine))
|
|
|
|
}
|
|
|
|
if in.StartColumn != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"startColumn\":")
|
|
|
|
out.Float64(float64(in.StartColumn))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-13 02:29:26 +00:00
|
|
|
if in.Length != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"length\":")
|
|
|
|
out.Float64(float64(in.Length))
|
|
|
|
}
|
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 StyleSheetHeader) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss3(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v StyleSheetHeader) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss3(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *StyleSheetHeader) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss3(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *StyleSheetHeader) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss3(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss4(in *jlexer.Lexer, out *StyleDeclarationEdit) {
|
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 {
|
|
|
|
case "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(in.String())
|
2017-02-18 03:58:29 +00:00
|
|
|
case "range":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Range = nil
|
|
|
|
} else {
|
|
|
|
if out.Range == nil {
|
|
|
|
out.Range = new(SourceRange)
|
|
|
|
}
|
|
|
|
(*out.Range).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "text":
|
|
|
|
out.Text = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss4(out *jwriter.Writer, in StyleDeclarationEdit) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if in.StyleSheetID != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Range != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"range\":")
|
|
|
|
if in.Range == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Range).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.Text != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
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 StyleDeclarationEdit) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss4(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v StyleDeclarationEdit) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss4(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *StyleDeclarationEdit) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss4(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *StyleDeclarationEdit) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss4(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss5(in *jlexer.Lexer, out *Style) {
|
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 "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(in.String())
|
|
|
|
case "cssProperties":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.CSSProperties = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.CSSProperties == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.CSSProperties = make([]*Property, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.CSSProperties = []*Property{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.CSSProperties = (out.CSSProperties)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v4 *Property
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v4 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v4 == nil {
|
|
|
|
v4 = new(Property)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v4).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.CSSProperties = append(out.CSSProperties, v4)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
case "shorthandEntries":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.ShorthandEntries = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.ShorthandEntries == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.ShorthandEntries = make([]*ShorthandEntry, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.ShorthandEntries = []*ShorthandEntry{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.ShorthandEntries = (out.ShorthandEntries)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v5 *ShorthandEntry
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v5 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v5 == nil {
|
|
|
|
v5 = new(ShorthandEntry)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v5).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.ShorthandEntries = append(out.ShorthandEntries, v5)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
case "cssText":
|
|
|
|
out.CSSText = string(in.String())
|
|
|
|
case "range":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Range = nil
|
|
|
|
} else {
|
|
|
|
if out.Range == nil {
|
|
|
|
out.Range = new(SourceRange)
|
|
|
|
}
|
|
|
|
(*out.Range).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss5(out *jwriter.Writer, in Style) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.StyleSheetID != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
}
|
|
|
|
if len(in.CSSProperties) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"cssProperties\":")
|
|
|
|
if in.CSSProperties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v6, v7 := range in.CSSProperties {
|
|
|
|
if v6 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v7 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v7).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(in.ShorthandEntries) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"shorthandEntries\":")
|
|
|
|
if in.ShorthandEntries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v8, v9 := range in.ShorthandEntries {
|
|
|
|
if v8 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v9 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v9).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.CSSText != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"cssText\":")
|
|
|
|
out.String(string(in.CSSText))
|
|
|
|
}
|
|
|
|
if in.Range != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"range\":")
|
|
|
|
if in.Range == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Range).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 Style) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss5(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v Style) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss5(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Style) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss5(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Style) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss5(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss6(in *jlexer.Lexer, out *StopRuleUsageTrackingReturns) {
|
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 "ruleUsage":
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RuleUsage = nil
|
2017-02-14 08:41:23 +00:00
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.RuleUsage == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.RuleUsage = make([]*RuleUsage, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.RuleUsage = []*RuleUsage{}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RuleUsage = (out.RuleUsage)[:0]
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v10 *RuleUsage
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v10 = nil
|
2017-02-14 08:41:23 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v10 == nil {
|
|
|
|
v10 = new(RuleUsage)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v10).UnmarshalEasyJSON(in)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.RuleUsage = append(out.RuleUsage, v10)
|
2017-02-14 08:41:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss6(out *jwriter.Writer, in StopRuleUsageTrackingReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.RuleUsage) != 0 {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"ruleUsage\":")
|
|
|
|
if in.RuleUsage == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v11, v12 := range in.RuleUsage {
|
|
|
|
if v11 > 0 {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v12 == nil {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v12).MarshalEasyJSON(out)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
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 StopRuleUsageTrackingReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss6(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v StopRuleUsageTrackingReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss6(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *StopRuleUsageTrackingReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss6(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *StopRuleUsageTrackingReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss6(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss7(in *jlexer.Lexer, out *StopRuleUsageTrackingParams) {
|
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 {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss7(out *jwriter.Writer, in StopRuleUsageTrackingParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v StopRuleUsageTrackingParams) MarshalJSON() ([]byte, error) {
|
2017-02-14 08:41:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss7(&w, v)
|
2017-02-14 08:41:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v StopRuleUsageTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss7(w, v)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *StopRuleUsageTrackingParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss7(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *StopRuleUsageTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss7(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss8(in *jlexer.Lexer, out *StartRuleUsageTrackingParams) {
|
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 {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss8(out *jwriter.Writer, in StartRuleUsageTrackingParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v StartRuleUsageTrackingParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss8(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v StartRuleUsageTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss8(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *StartRuleUsageTrackingParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss8(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *StartRuleUsageTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss8(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss9(in *jlexer.Lexer, out *SourceRange) {
|
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 "startLine":
|
|
|
|
out.StartLine = int64(in.Int64())
|
|
|
|
case "startColumn":
|
|
|
|
out.StartColumn = int64(in.Int64())
|
|
|
|
case "endLine":
|
|
|
|
out.EndLine = int64(in.Int64())
|
|
|
|
case "endColumn":
|
|
|
|
out.EndColumn = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss9(out *jwriter.Writer, in SourceRange) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.StartLine != 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("\"startLine\":")
|
|
|
|
out.Int64(int64(in.StartLine))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.StartColumn != 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("\"startColumn\":")
|
|
|
|
out.Int64(int64(in.StartColumn))
|
|
|
|
}
|
|
|
|
if in.EndLine != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"endLine\":")
|
|
|
|
out.Int64(int64(in.EndLine))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.EndColumn != 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("\"endColumn\":")
|
|
|
|
out.Int64(int64(in.EndColumn))
|
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 SourceRange) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss9(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SourceRange) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss9(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SourceRange) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss9(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SourceRange) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss9(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss10(in *jlexer.Lexer, out *ShorthandEntry) {
|
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":
|
|
|
|
out.Value = string(in.String())
|
|
|
|
case "important":
|
|
|
|
out.Important = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss10(out *jwriter.Writer, in ShorthandEntry) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Name != "" {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"name\":")
|
|
|
|
out.String(string(in.Name))
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Value != "" {
|
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\":")
|
|
|
|
out.String(string(in.Value))
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Important {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"important\":")
|
|
|
|
out.Bool(bool(in.Important))
|
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 ShorthandEntry) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss10(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ShorthandEntry) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss10(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ShorthandEntry) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss10(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ShorthandEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss10(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss11(in *jlexer.Lexer, out *SetStyleTextsReturns) {
|
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 "styles":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Styles = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.Styles == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Styles = make([]*Style, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Styles = []*Style{}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Styles = (out.Styles)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v13 *Style
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v13 = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v13 == nil {
|
|
|
|
v13 = new(Style)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v13).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.Styles = append(out.Styles, v13)
|
2017-01-24 15:09:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss11(out *jwriter.Writer, in SetStyleTextsReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.Styles) != 0 {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"styles\":")
|
|
|
|
if in.Styles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v14, v15 := range in.Styles {
|
|
|
|
if v14 > 0 {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v15 == nil {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v15).MarshalEasyJSON(out)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawByte(']')
|
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 SetStyleTextsReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss11(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetStyleTextsReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss11(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetStyleTextsReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss11(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetStyleTextsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss11(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss12(in *jlexer.Lexer, out *SetStyleTextsParams) {
|
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 "edits":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Edits = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.Edits == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Edits = make([]*StyleDeclarationEdit, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Edits = []*StyleDeclarationEdit{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Edits = (out.Edits)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v16 *StyleDeclarationEdit
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v16 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v16 == nil {
|
|
|
|
v16 = new(StyleDeclarationEdit)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v16).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.Edits = append(out.Edits, v16)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss12(out *jwriter.Writer, in SetStyleTextsParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"edits\":")
|
|
|
|
if in.Edits == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v17, v18 := range in.Edits {
|
|
|
|
if v17 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v18 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v18).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(']')
|
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 SetStyleTextsParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss12(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetStyleTextsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss12(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetStyleTextsParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss12(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetStyleTextsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss12(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss13(in *jlexer.Lexer, out *SetStyleSheetTextReturns) {
|
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 "sourceMapURL":
|
|
|
|
out.SourceMapURL = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss13(out *jwriter.Writer, in SetStyleSheetTextReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.SourceMapURL != "" {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"sourceMapURL\":")
|
|
|
|
out.String(string(in.SourceMapURL))
|
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 SetStyleSheetTextReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss13(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss13(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetStyleSheetTextReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss13(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss13(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss14(in *jlexer.Lexer, out *SetStyleSheetTextParams) {
|
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 "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(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-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss14(out *jwriter.Writer, in SetStyleSheetTextParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"text\":")
|
|
|
|
out.String(string(in.Text))
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetStyleSheetTextParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss14(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss14(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetStyleSheetTextParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss14(&r, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss14(l, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss15(in *jlexer.Lexer, out *SetRuleSelectorReturns) {
|
2017-02-18 03:58:29 +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 {
|
|
|
|
case "selectorList":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.SelectorList = nil
|
|
|
|
} else {
|
|
|
|
if out.SelectorList == nil {
|
|
|
|
out.SelectorList = new(SelectorList)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.SelectorList).UnmarshalEasyJSON(in)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss15(out *jwriter.Writer, in SetRuleSelectorReturns) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if in.SelectorList != 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("\"selectorList\":")
|
|
|
|
if in.SelectorList == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.SelectorList).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetRuleSelectorReturns) MarshalJSON() ([]byte, error) {
|
2017-02-14 08:41:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss15(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetRuleSelectorReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss15(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetRuleSelectorReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss15(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetRuleSelectorReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss15(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss16(in *jlexer.Lexer, out *SetRuleSelectorParams) {
|
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 "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
case "range":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Range = nil
|
|
|
|
} else {
|
|
|
|
if out.Range == nil {
|
|
|
|
out.Range = new(SourceRange)
|
|
|
|
}
|
|
|
|
(*out.Range).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "selector":
|
|
|
|
out.Selector = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss16(out *jwriter.Writer, in SetRuleSelectorParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"range\":")
|
|
|
|
if in.Range == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Range).MarshalEasyJSON(out)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"selector\":")
|
|
|
|
out.String(string(in.Selector))
|
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 SetRuleSelectorParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss16(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetRuleSelectorParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss16(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetRuleSelectorParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss16(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetRuleSelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss16(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss17(in *jlexer.Lexer, out *SetMediaTextReturns) {
|
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 "media":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Media = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.Media == nil {
|
|
|
|
out.Media = new(Media)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.Media).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss17(out *jwriter.Writer, in SetMediaTextReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Media != 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("\"media\":")
|
|
|
|
if in.Media == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Media).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 SetMediaTextReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss17(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetMediaTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss17(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetMediaTextReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss17(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetMediaTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss17(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss18(in *jlexer.Lexer, out *SetMediaTextParams) {
|
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 {
|
|
|
|
case "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(in.String())
|
2017-02-14 08:41:23 +00:00
|
|
|
case "range":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Range = nil
|
|
|
|
} else {
|
|
|
|
if out.Range == nil {
|
|
|
|
out.Range = new(SourceRange)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
(*out.Range).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
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-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss18(out *jwriter.Writer, in SetMediaTextParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"range\":")
|
|
|
|
if in.Range == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Range).MarshalEasyJSON(out)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
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 SetMediaTextParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss18(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetMediaTextParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss18(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetMediaTextParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss18(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetMediaTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss18(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss19(in *jlexer.Lexer, out *SetKeyframeKeyReturns) {
|
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 "keyText":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.KeyText = nil
|
|
|
|
} else {
|
|
|
|
if out.KeyText == nil {
|
|
|
|
out.KeyText = new(Value)
|
|
|
|
}
|
|
|
|
(*out.KeyText).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss19(out *jwriter.Writer, in SetKeyframeKeyReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.KeyText != 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("\"keyText\":")
|
|
|
|
if in.KeyText == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.KeyText).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 SetKeyframeKeyReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss19(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetKeyframeKeyReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss19(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetKeyframeKeyReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss19(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetKeyframeKeyReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss19(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss20(in *jlexer.Lexer, out *SetKeyframeKeyParams) {
|
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 "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(in.String())
|
|
|
|
case "range":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Range = nil
|
|
|
|
} else {
|
|
|
|
if out.Range == nil {
|
|
|
|
out.Range = new(SourceRange)
|
|
|
|
}
|
|
|
|
(*out.Range).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "keyText":
|
|
|
|
out.KeyText = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss20(out *jwriter.Writer, in SetKeyframeKeyParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"range\":")
|
|
|
|
if in.Range == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Range).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"keyText\":")
|
|
|
|
out.String(string(in.KeyText))
|
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 SetKeyframeKeyParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss20(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetKeyframeKeyParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss20(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetKeyframeKeyParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss20(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetKeyframeKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss20(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss21(in *jlexer.Lexer, out *SetEffectivePropertyValueForNodeParams) {
|
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).UnmarshalEasyJSON(in)
|
|
|
|
case "propertyName":
|
|
|
|
out.PropertyName = string(in.String())
|
|
|
|
case "value":
|
|
|
|
out.Value = string(in.String())
|
2017-02-14 08:41:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss21(out *jwriter.Writer, in SetEffectivePropertyValueForNodeParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"nodeId\":")
|
|
|
|
out.Int64(int64(in.NodeID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"propertyName\":")
|
|
|
|
out.String(string(in.PropertyName))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"value\":")
|
|
|
|
out.String(string(in.Value))
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetEffectivePropertyValueForNodeParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss21(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetEffectivePropertyValueForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss21(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetEffectivePropertyValueForNodeParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss21(&r, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetEffectivePropertyValueForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss21(l, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss22(in *jlexer.Lexer, out *SelectorList) {
|
2017-02-18 03:58:29 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Skip()
|
|
|
|
return
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
switch key {
|
|
|
|
case "selectors":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Selectors = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.Selectors == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Selectors = make([]*Value, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Selectors = []*Value{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Selectors = (out.Selectors)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v19 *Value
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v19 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v19 == nil {
|
|
|
|
v19 = new(Value)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v19).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.Selectors = append(out.Selectors, v19)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
case "text":
|
|
|
|
out.Text = string(in.String())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss22(out *jwriter.Writer, in SelectorList) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if len(in.Selectors) != 0 {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"selectors\":")
|
|
|
|
if in.Selectors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v20, v21 := range in.Selectors {
|
|
|
|
if v20 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v21 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v21).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Text != "" {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
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 SelectorList) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss22(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SelectorList) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss22(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SelectorList) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss22(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SelectorList) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss22(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss23(in *jlexer.Lexer, out *RuleUsage) {
|
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-14 08:41:23 +00:00
|
|
|
case "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(in.String())
|
2017-03-13 02:29:26 +00:00
|
|
|
case "startOffset":
|
|
|
|
out.StartOffset = float64(in.Float64())
|
|
|
|
case "endOffset":
|
|
|
|
out.EndOffset = float64(in.Float64())
|
2017-02-14 08:41:23 +00:00
|
|
|
case "used":
|
|
|
|
out.Used = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss23(out *jwriter.Writer, in RuleUsage) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.StyleSheetID != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
}
|
2017-03-13 02:29:26 +00:00
|
|
|
if in.StartOffset != 0 {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-03-13 02:29:26 +00:00
|
|
|
out.RawString("\"startOffset\":")
|
|
|
|
out.Float64(float64(in.StartOffset))
|
|
|
|
}
|
|
|
|
if in.EndOffset != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-13 02:29:26 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"endOffset\":")
|
|
|
|
out.Float64(float64(in.EndOffset))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Used {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"used\":")
|
|
|
|
out.Bool(bool(in.Used))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v RuleUsage) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss23(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v RuleUsage) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss23(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *RuleUsage) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss23(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *RuleUsage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss23(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss24(in *jlexer.Lexer, out *RuleMatch) {
|
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 "rule":
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Rule = nil
|
2017-02-14 08:41:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.Rule == nil {
|
|
|
|
out.Rule = new(Rule)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.Rule).UnmarshalEasyJSON(in)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "matchingSelectors":
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.MatchingSelectors = nil
|
2017-02-14 08:41:23 +00:00
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.MatchingSelectors == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.MatchingSelectors = make([]int64, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.MatchingSelectors = []int64{}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.MatchingSelectors = (out.MatchingSelectors)[:0]
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v22 int64
|
|
|
|
v22 = int64(in.Int64())
|
|
|
|
out.MatchingSelectors = append(out.MatchingSelectors, v22)
|
2017-02-14 08:41:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss24(out *jwriter.Writer, in RuleMatch) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Rule != 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("\"rule\":")
|
|
|
|
if in.Rule == nil {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
(*in.Rule).MarshalEasyJSON(out)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.MatchingSelectors) != 0 {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"matchingSelectors\":")
|
|
|
|
if in.MatchingSelectors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v23, v24 := range in.MatchingSelectors {
|
|
|
|
if v23 > 0 {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.Int64(int64(v24))
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
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 RuleMatch) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss24(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v RuleMatch) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss24(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *RuleMatch) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss24(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *RuleMatch) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss24(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss25(in *jlexer.Lexer, out *Rule) {
|
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-14 08:41:23 +00:00
|
|
|
case "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(in.String())
|
2017-02-18 03:58:29 +00:00
|
|
|
case "selectorList":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.SelectorList = nil
|
|
|
|
} else {
|
|
|
|
if out.SelectorList == nil {
|
|
|
|
out.SelectorList = new(SelectorList)
|
|
|
|
}
|
|
|
|
(*out.SelectorList).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
case "origin":
|
|
|
|
(out.Origin).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
case "style":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Style = nil
|
|
|
|
} else {
|
|
|
|
if out.Style == nil {
|
|
|
|
out.Style = new(Style)
|
|
|
|
}
|
|
|
|
(*out.Style).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "media":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Media = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.Media == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Media = make([]*Media, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Media = []*Media{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Media = (out.Media)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v25 *Media
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v25 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v25 == nil {
|
|
|
|
v25 = new(Media)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v25).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.Media = append(out.Media, v25)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss25(out *jwriter.Writer, in Rule) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.StyleSheetID != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.SelectorList != 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("\"selectorList\":")
|
|
|
|
if in.SelectorList == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.SelectorList).MarshalEasyJSON(out)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.Origin != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"origin\":")
|
|
|
|
(in.Origin).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Style != 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("\"style\":")
|
|
|
|
if in.Style == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Style).MarshalEasyJSON(out)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.Media) != 0 {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"media\":")
|
|
|
|
if in.Media == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v26, v27 := range in.Media {
|
|
|
|
if v26 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v27 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v27).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
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 Rule) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss25(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v Rule) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss25(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Rule) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss25(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Rule) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss25(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss26(in *jlexer.Lexer, out *PseudoElementMatches) {
|
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 "pseudoType":
|
|
|
|
(out.PseudoType).UnmarshalEasyJSON(in)
|
|
|
|
case "matches":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Matches = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.Matches == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Matches = make([]*RuleMatch, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Matches = []*RuleMatch{}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Matches = (out.Matches)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v28 *RuleMatch
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v28 = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v28 == nil {
|
|
|
|
v28 = new(RuleMatch)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v28).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.Matches = append(out.Matches, v28)
|
2017-01-24 15:09:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss26(out *jwriter.Writer, in PseudoElementMatches) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.PseudoType != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"pseudoType\":")
|
|
|
|
(in.PseudoType).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if len(in.Matches) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"matches\":")
|
|
|
|
if in.Matches == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v29, v30 := range in.Matches {
|
|
|
|
if v29 > 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v30 == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v30).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v PseudoElementMatches) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss26(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v PseudoElementMatches) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss26(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *PseudoElementMatches) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss26(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *PseudoElementMatches) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss26(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss27(in *jlexer.Lexer, out *Property) {
|
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":
|
|
|
|
out.Value = string(in.String())
|
|
|
|
case "important":
|
|
|
|
out.Important = bool(in.Bool())
|
|
|
|
case "implicit":
|
|
|
|
out.Implicit = bool(in.Bool())
|
2017-02-14 08:41:23 +00:00
|
|
|
case "text":
|
|
|
|
out.Text = string(in.String())
|
2017-02-18 03:58:29 +00:00
|
|
|
case "parsedOk":
|
|
|
|
out.ParsedOk = bool(in.Bool())
|
|
|
|
case "disabled":
|
|
|
|
out.Disabled = bool(in.Bool())
|
2017-02-14 08:41:23 +00:00
|
|
|
case "range":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-14 08:41:23 +00:00
|
|
|
out.Range = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-14 08:41:23 +00:00
|
|
|
if out.Range == nil {
|
|
|
|
out.Range = new(SourceRange)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
(*out.Range).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss27(out *jwriter.Writer, in Property) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Name != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"name\":")
|
|
|
|
out.String(string(in.Name))
|
|
|
|
}
|
|
|
|
if in.Value != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"value\":")
|
|
|
|
out.String(string(in.Value))
|
|
|
|
}
|
|
|
|
if in.Important {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"important\":")
|
|
|
|
out.Bool(bool(in.Important))
|
|
|
|
}
|
|
|
|
if in.Implicit {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"implicit\":")
|
|
|
|
out.Bool(bool(in.Implicit))
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Text != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"text\":")
|
|
|
|
out.String(string(in.Text))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.ParsedOk {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"parsedOk\":")
|
|
|
|
out.Bool(bool(in.ParsedOk))
|
|
|
|
}
|
|
|
|
if in.Disabled {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"disabled\":")
|
|
|
|
out.Bool(bool(in.Disabled))
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Range != nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("\"range\":")
|
|
|
|
if in.Range == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-14 08:41:23 +00:00
|
|
|
(*in.Range).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 Property) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss27(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v Property) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss27(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Property) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss27(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Property) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss27(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss28(in *jlexer.Lexer, out *PlatformFontUsage) {
|
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 "familyName":
|
|
|
|
out.FamilyName = string(in.String())
|
|
|
|
case "isCustomFont":
|
|
|
|
out.IsCustomFont = bool(in.Bool())
|
|
|
|
case "glyphCount":
|
|
|
|
out.GlyphCount = float64(in.Float64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss28(out *jwriter.Writer, in PlatformFontUsage) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.FamilyName != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"familyName\":")
|
|
|
|
out.String(string(in.FamilyName))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsCustomFont {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"isCustomFont\":")
|
|
|
|
out.Bool(bool(in.IsCustomFont))
|
|
|
|
}
|
|
|
|
if in.GlyphCount != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"glyphCount\":")
|
|
|
|
out.Float64(float64(in.GlyphCount))
|
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 PlatformFontUsage) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss28(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v PlatformFontUsage) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss28(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *PlatformFontUsage) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss28(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *PlatformFontUsage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss28(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss29(in *jlexer.Lexer, out *MediaQueryExpression) {
|
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 "value":
|
|
|
|
out.Value = float64(in.Float64())
|
|
|
|
case "unit":
|
|
|
|
out.Unit = string(in.String())
|
|
|
|
case "feature":
|
|
|
|
out.Feature = string(in.String())
|
|
|
|
case "valueRange":
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.ValueRange = nil
|
2017-02-14 08:41:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.ValueRange == nil {
|
|
|
|
out.ValueRange = new(SourceRange)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.ValueRange).UnmarshalEasyJSON(in)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "computedLength":
|
|
|
|
out.ComputedLength = float64(in.Float64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss29(out *jwriter.Writer, in MediaQueryExpression) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Value != 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("\"value\":")
|
|
|
|
out.Float64(float64(in.Value))
|
|
|
|
}
|
|
|
|
if in.Unit != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"unit\":")
|
|
|
|
out.String(string(in.Unit))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Feature != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"feature\":")
|
|
|
|
out.String(string(in.Feature))
|
|
|
|
}
|
|
|
|
if in.ValueRange != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"valueRange\":")
|
|
|
|
if in.ValueRange == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.ValueRange).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.ComputedLength != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"computedLength\":")
|
|
|
|
out.Float64(float64(in.ComputedLength))
|
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 MediaQueryExpression) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss29(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v MediaQueryExpression) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss29(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *MediaQueryExpression) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss29(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *MediaQueryExpression) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss29(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss30(in *jlexer.Lexer, out *MediaQuery) {
|
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 "expressions":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Expressions = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-14 08:41:23 +00:00
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.Expressions == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Expressions = make([]*MediaQueryExpression, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Expressions = []*MediaQueryExpression{}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Expressions = (out.Expressions)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v31 *MediaQueryExpression
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v31 = nil
|
2017-02-14 08:41:23 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v31 == nil {
|
|
|
|
v31 = new(MediaQueryExpression)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v31).UnmarshalEasyJSON(in)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.Expressions = append(out.Expressions, v31)
|
2017-02-14 08:41:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "active":
|
|
|
|
out.Active = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss30(out *jwriter.Writer, in MediaQuery) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.Expressions) != 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("\"expressions\":")
|
|
|
|
if in.Expressions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v32, v33 := range in.Expressions {
|
|
|
|
if v32 > 0 {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v33 == nil {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v33).MarshalEasyJSON(out)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Active {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"active\":")
|
|
|
|
out.Bool(bool(in.Active))
|
|
|
|
}
|
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 MediaQuery) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss30(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v MediaQuery) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss30(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *MediaQuery) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss30(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *MediaQuery) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss30(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss31(in *jlexer.Lexer, out *Media) {
|
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 "text":
|
|
|
|
out.Text = string(in.String())
|
|
|
|
case "source":
|
|
|
|
(out.Source).UnmarshalEasyJSON(in)
|
|
|
|
case "sourceURL":
|
|
|
|
out.SourceURL = string(in.String())
|
|
|
|
case "range":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Range = nil
|
|
|
|
} else {
|
|
|
|
if out.Range == nil {
|
|
|
|
out.Range = new(SourceRange)
|
|
|
|
}
|
|
|
|
(*out.Range).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(in.String())
|
|
|
|
case "mediaList":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.MediaList = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.MediaList == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.MediaList = make([]*MediaQuery, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.MediaList = []*MediaQuery{}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.MediaList = (out.MediaList)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v34 *MediaQuery
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v34 = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v34 == nil {
|
|
|
|
v34 = new(MediaQuery)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v34).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.MediaList = append(out.MediaList, v34)
|
2017-01-24 15:09:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss31(out *jwriter.Writer, in Media) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Text != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"text\":")
|
|
|
|
out.String(string(in.Text))
|
|
|
|
}
|
|
|
|
if in.Source != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"source\":")
|
|
|
|
(in.Source).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if in.SourceURL != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"sourceURL\":")
|
|
|
|
out.String(string(in.SourceURL))
|
|
|
|
}
|
|
|
|
if in.Range != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"range\":")
|
|
|
|
if in.Range == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Range).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.StyleSheetID != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
}
|
|
|
|
if len(in.MediaList) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"mediaList\":")
|
|
|
|
if in.MediaList == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v35, v36 := range in.MediaList {
|
|
|
|
if v35 > 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v36 == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v36).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v Media) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss31(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v Media) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss31(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Media) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss31(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Media) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss31(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss32(in *jlexer.Lexer, out *LayoutTreeNode) {
|
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).UnmarshalEasyJSON(in)
|
|
|
|
case "boundingBox":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.BoundingBox = nil
|
|
|
|
} else {
|
|
|
|
if out.BoundingBox == nil {
|
|
|
|
out.BoundingBox = new(dom.Rect)
|
|
|
|
}
|
|
|
|
(*out.BoundingBox).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "layoutText":
|
|
|
|
out.LayoutText = string(in.String())
|
|
|
|
case "inlineTextNodes":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.InlineTextNodes = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.InlineTextNodes == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.InlineTextNodes = make([]*InlineTextBox, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.InlineTextNodes = []*InlineTextBox{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.InlineTextNodes = (out.InlineTextNodes)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v37 *InlineTextBox
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v37 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v37 == nil {
|
|
|
|
v37 = new(InlineTextBox)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v37).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.InlineTextNodes = append(out.InlineTextNodes, v37)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
case "styleIndex":
|
|
|
|
out.StyleIndex = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss32(out *jwriter.Writer, in LayoutTreeNode) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.NodeID != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"nodeId\":")
|
|
|
|
out.Int64(int64(in.NodeID))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.BoundingBox != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"boundingBox\":")
|
|
|
|
if in.BoundingBox == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.BoundingBox).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.LayoutText != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"layoutText\":")
|
|
|
|
out.String(string(in.LayoutText))
|
|
|
|
}
|
|
|
|
if len(in.InlineTextNodes) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"inlineTextNodes\":")
|
|
|
|
if in.InlineTextNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v38, v39 := range in.InlineTextNodes {
|
|
|
|
if v38 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v39 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v39).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.StyleIndex != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"styleIndex\":")
|
|
|
|
out.Int64(int64(in.StyleIndex))
|
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 LayoutTreeNode) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss32(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v LayoutTreeNode) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss32(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *LayoutTreeNode) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss32(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *LayoutTreeNode) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss32(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss33(in *jlexer.Lexer, out *KeyframesRule) {
|
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 "animationName":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.AnimationName = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.AnimationName == nil {
|
|
|
|
out.AnimationName = new(Value)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.AnimationName).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "keyframes":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Keyframes = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.Keyframes == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Keyframes = make([]*KeyframeRule, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Keyframes = []*KeyframeRule{}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Keyframes = (out.Keyframes)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v40 *KeyframeRule
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v40 = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v40 == nil {
|
|
|
|
v40 = new(KeyframeRule)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v40).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.Keyframes = append(out.Keyframes, v40)
|
2017-01-24 15:09:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss33(out *jwriter.Writer, in KeyframesRule) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.AnimationName != 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("\"animationName\":")
|
|
|
|
if in.AnimationName == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
(*in.AnimationName).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.Keyframes) != 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("\"keyframes\":")
|
|
|
|
if in.Keyframes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v41, v42 := range in.Keyframes {
|
|
|
|
if v41 > 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v42 == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v42).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v KeyframesRule) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss33(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v KeyframesRule) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss33(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *KeyframesRule) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss33(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *KeyframesRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss33(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(in *jlexer.Lexer, out *KeyframeRule) {
|
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 "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(in.String())
|
|
|
|
case "origin":
|
|
|
|
(out.Origin).UnmarshalEasyJSON(in)
|
|
|
|
case "keyText":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.KeyText = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.KeyText == nil {
|
|
|
|
out.KeyText = new(Value)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.KeyText).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "style":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Style = nil
|
|
|
|
} else {
|
|
|
|
if out.Style == nil {
|
|
|
|
out.Style = new(Style)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.Style).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(out *jwriter.Writer, in KeyframeRule) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.StyleSheetID != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Origin != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"origin\":")
|
|
|
|
(in.Origin).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if in.KeyText != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"keyText\":")
|
|
|
|
if in.KeyText == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.KeyText).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.Style != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"style\":")
|
|
|
|
if in.Style == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Style).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 KeyframeRule) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v KeyframeRule) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *KeyframeRule) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *KeyframeRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(in *jlexer.Lexer, out *InlineTextBox) {
|
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 "boundingBox":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.BoundingBox = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.BoundingBox == nil {
|
|
|
|
out.BoundingBox = new(dom.Rect)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.BoundingBox).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "startCharacterIndex":
|
|
|
|
out.StartCharacterIndex = int64(in.Int64())
|
|
|
|
case "numCharacters":
|
|
|
|
out.NumCharacters = int64(in.Int64())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(out *jwriter.Writer, in InlineTextBox) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.BoundingBox != 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("\"boundingBox\":")
|
|
|
|
if in.BoundingBox == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
(*in.BoundingBox).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.StartCharacterIndex != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"startCharacterIndex\":")
|
|
|
|
out.Int64(int64(in.StartCharacterIndex))
|
|
|
|
}
|
|
|
|
if in.NumCharacters != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"numCharacters\":")
|
|
|
|
out.Int64(int64(in.NumCharacters))
|
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 InlineTextBox) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v InlineTextBox) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *InlineTextBox) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *InlineTextBox) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(in *jlexer.Lexer, out *InheritedStyleEntry) {
|
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 "inlineStyle":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.InlineStyle = nil
|
|
|
|
} else {
|
|
|
|
if out.InlineStyle == nil {
|
|
|
|
out.InlineStyle = new(Style)
|
|
|
|
}
|
|
|
|
(*out.InlineStyle).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "matchedCSSRules":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.MatchedCSSRules = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.MatchedCSSRules == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.MatchedCSSRules = make([]*RuleMatch, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.MatchedCSSRules = []*RuleMatch{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.MatchedCSSRules = (out.MatchedCSSRules)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v43 *RuleMatch
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v43 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v43 == nil {
|
|
|
|
v43 = new(RuleMatch)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v43).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.MatchedCSSRules = append(out.MatchedCSSRules, v43)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(out *jwriter.Writer, in InheritedStyleEntry) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.InlineStyle != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"inlineStyle\":")
|
|
|
|
if in.InlineStyle == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.InlineStyle).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(in.MatchedCSSRules) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"matchedCSSRules\":")
|
|
|
|
if in.MatchedCSSRules == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v44, v45 := range in.MatchedCSSRules {
|
|
|
|
if v44 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v45 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v45).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
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 InheritedStyleEntry) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v InheritedStyleEntry) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *InheritedStyleEntry) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *InheritedStyleEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(in *jlexer.Lexer, out *GetStyleSheetTextReturns) {
|
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 "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-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(out *jwriter.Writer, in GetStyleSheetTextReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Text != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
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 GetStyleSheetTextReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetStyleSheetTextReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(in *jlexer.Lexer, out *GetStyleSheetTextParams) {
|
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 "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(out *jwriter.Writer, in GetStyleSheetTextParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
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 GetStyleSheetTextParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetStyleSheetTextParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(in *jlexer.Lexer, out *GetPlatformFontsForNodeReturns) {
|
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 "fonts":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Fonts = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.Fonts == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Fonts = make([]*PlatformFontUsage, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Fonts = []*PlatformFontUsage{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Fonts = (out.Fonts)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v46 *PlatformFontUsage
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v46 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v46 == nil {
|
|
|
|
v46 = new(PlatformFontUsage)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v46).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.Fonts = append(out.Fonts, v46)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(out *jwriter.Writer, in GetPlatformFontsForNodeReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.Fonts) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"fonts\":")
|
|
|
|
if in.Fonts == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v47, v48 := range in.Fonts {
|
|
|
|
if v47 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v48 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v48).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v GetPlatformFontsForNodeReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v GetPlatformFontsForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *GetPlatformFontsForNodeReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetPlatformFontsForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(in *jlexer.Lexer, out *GetPlatformFontsForNodeParams) {
|
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 {
|
|
|
|
case "nodeId":
|
|
|
|
(out.NodeID).UnmarshalEasyJSON(in)
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(out *jwriter.Writer, in GetPlatformFontsForNodeParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"nodeId\":")
|
|
|
|
out.Int64(int64(in.NodeID))
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetPlatformFontsForNodeParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetPlatformFontsForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetPlatformFontsForNodeParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetPlatformFontsForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(in *jlexer.Lexer, out *GetMediaQueriesReturns) {
|
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 "medias":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Medias = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('[')
|
|
|
|
if out.Medias == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Medias = make([]*Media, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Medias = []*Media{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Medias = (out.Medias)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v49 *Media
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v49 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v49 == nil {
|
|
|
|
v49 = new(Media)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v49).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.Medias = append(out.Medias, v49)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(out *jwriter.Writer, in GetMediaQueriesReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.Medias) != 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("\"medias\":")
|
|
|
|
if in.Medias == 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('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v50, v51 := range in.Medias {
|
|
|
|
if v50 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v51 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v51).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
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 GetMediaQueriesReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetMediaQueriesReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetMediaQueriesReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetMediaQueriesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(in *jlexer.Lexer, out *GetMediaQueriesParams) {
|
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 {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(out *jwriter.Writer, in GetMediaQueriesParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetMediaQueriesParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetMediaQueriesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetMediaQueriesParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetMediaQueriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(in *jlexer.Lexer, out *GetMatchedStylesForNodeReturns) {
|
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 "inlineStyle":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.InlineStyle = nil
|
|
|
|
} else {
|
|
|
|
if out.InlineStyle == nil {
|
|
|
|
out.InlineStyle = new(Style)
|
|
|
|
}
|
|
|
|
(*out.InlineStyle).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "attributesStyle":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.AttributesStyle = nil
|
|
|
|
} else {
|
|
|
|
if out.AttributesStyle == nil {
|
|
|
|
out.AttributesStyle = new(Style)
|
|
|
|
}
|
|
|
|
(*out.AttributesStyle).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "matchedCSSRules":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.MatchedCSSRules = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.MatchedCSSRules == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.MatchedCSSRules = make([]*RuleMatch, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.MatchedCSSRules = []*RuleMatch{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.MatchedCSSRules = (out.MatchedCSSRules)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v52 *RuleMatch
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v52 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v52 == nil {
|
|
|
|
v52 = new(RuleMatch)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v52).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.MatchedCSSRules = append(out.MatchedCSSRules, v52)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
case "pseudoElements":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.PseudoElements = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.PseudoElements == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.PseudoElements = make([]*PseudoElementMatches, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.PseudoElements = []*PseudoElementMatches{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.PseudoElements = (out.PseudoElements)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v53 *PseudoElementMatches
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v53 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v53 == nil {
|
|
|
|
v53 = new(PseudoElementMatches)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v53).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.PseudoElements = append(out.PseudoElements, v53)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
case "inherited":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Inherited = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.Inherited == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Inherited = make([]*InheritedStyleEntry, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Inherited = []*InheritedStyleEntry{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Inherited = (out.Inherited)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v54 *InheritedStyleEntry
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v54 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v54 == nil {
|
|
|
|
v54 = new(InheritedStyleEntry)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v54).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.Inherited = append(out.Inherited, v54)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
case "cssKeyframesRules":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.CSSKeyframesRules = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.CSSKeyframesRules == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.CSSKeyframesRules = make([]*KeyframesRule, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.CSSKeyframesRules = []*KeyframesRule{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.CSSKeyframesRules = (out.CSSKeyframesRules)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v55 *KeyframesRule
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v55 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v55 == nil {
|
|
|
|
v55 = new(KeyframesRule)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v55).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.CSSKeyframesRules = append(out.CSSKeyframesRules, v55)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(out *jwriter.Writer, in GetMatchedStylesForNodeReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.InlineStyle != 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("\"inlineStyle\":")
|
|
|
|
if in.InlineStyle == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.InlineStyle).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.AttributesStyle != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"attributesStyle\":")
|
|
|
|
if in.AttributesStyle == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.AttributesStyle).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.MatchedCSSRules) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"matchedCSSRules\":")
|
|
|
|
if in.MatchedCSSRules == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v56, v57 := range in.MatchedCSSRules {
|
|
|
|
if v56 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v57 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v57).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.PseudoElements) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"pseudoElements\":")
|
|
|
|
if in.PseudoElements == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v58, v59 := range in.PseudoElements {
|
|
|
|
if v58 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v59 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v59).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.Inherited) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"inherited\":")
|
|
|
|
if in.Inherited == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v60, v61 := range in.Inherited {
|
|
|
|
if v60 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v61 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v61).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.CSSKeyframesRules) != 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("\"cssKeyframesRules\":")
|
|
|
|
if in.CSSKeyframesRules == 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('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v62, v63 := range in.CSSKeyframesRules {
|
|
|
|
if v62 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v63 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v63).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
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 GetMatchedStylesForNodeReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetMatchedStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetMatchedStylesForNodeReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetMatchedStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(in *jlexer.Lexer, out *GetMatchedStylesForNodeParams) {
|
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
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "nodeId":
|
|
|
|
(out.NodeID).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(out *jwriter.Writer, in GetMatchedStylesForNodeParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"nodeId\":")
|
|
|
|
out.Int64(int64(in.NodeID))
|
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 GetMatchedStylesForNodeParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetMatchedStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetMatchedStylesForNodeParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetMatchedStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(in *jlexer.Lexer, out *GetLayoutTreeAndStylesReturns) {
|
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 "layoutTreeNodes":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.LayoutTreeNodes = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.LayoutTreeNodes == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.LayoutTreeNodes = make([]*LayoutTreeNode, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.LayoutTreeNodes = []*LayoutTreeNode{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.LayoutTreeNodes = (out.LayoutTreeNodes)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v64 *LayoutTreeNode
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v64 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v64 == nil {
|
|
|
|
v64 = new(LayoutTreeNode)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v64).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.LayoutTreeNodes = append(out.LayoutTreeNodes, v64)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
case "computedStyles":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.ComputedStyles = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.ComputedStyles == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.ComputedStyles = make([]*ComputedStyle, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.ComputedStyles = []*ComputedStyle{}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.ComputedStyles = (out.ComputedStyles)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v65 *ComputedStyle
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v65 = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v65 == nil {
|
|
|
|
v65 = new(ComputedStyle)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v65).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.ComputedStyles = append(out.ComputedStyles, v65)
|
2017-01-24 15:09:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(out *jwriter.Writer, in GetLayoutTreeAndStylesReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.LayoutTreeNodes) != 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("\"layoutTreeNodes\":")
|
|
|
|
if in.LayoutTreeNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v66, v67 := range in.LayoutTreeNodes {
|
|
|
|
if v66 > 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v67 == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v67).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(in.ComputedStyles) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"computedStyles\":")
|
|
|
|
if in.ComputedStyles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v68, v69 := range in.ComputedStyles {
|
|
|
|
if v68 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v69 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v69).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetLayoutTreeAndStylesReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetLayoutTreeAndStylesReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetLayoutTreeAndStylesReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetLayoutTreeAndStylesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(in *jlexer.Lexer, out *GetLayoutTreeAndStylesParams) {
|
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 "computedStyleWhitelist":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.ComputedStyleWhitelist = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.ComputedStyleWhitelist == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.ComputedStyleWhitelist = make([]string, 0, 4)
|
|
|
|
} else {
|
|
|
|
out.ComputedStyleWhitelist = []string{}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.ComputedStyleWhitelist = (out.ComputedStyleWhitelist)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v70 string
|
|
|
|
v70 = string(in.String())
|
|
|
|
out.ComputedStyleWhitelist = append(out.ComputedStyleWhitelist, v70)
|
2017-01-24 15:09:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(out *jwriter.Writer, in GetLayoutTreeAndStylesParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"computedStyleWhitelist\":")
|
|
|
|
if in.ComputedStyleWhitelist == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v71, v72 := range in.ComputedStyleWhitelist {
|
|
|
|
if v71 > 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.String(string(v72))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetLayoutTreeAndStylesParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetLayoutTreeAndStylesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetLayoutTreeAndStylesParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetLayoutTreeAndStylesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(in *jlexer.Lexer, out *GetInlineStylesForNodeReturns) {
|
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 "inlineStyle":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.InlineStyle = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.InlineStyle == nil {
|
|
|
|
out.InlineStyle = new(Style)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.InlineStyle).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "attributesStyle":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.AttributesStyle = nil
|
|
|
|
} else {
|
|
|
|
if out.AttributesStyle == nil {
|
|
|
|
out.AttributesStyle = new(Style)
|
|
|
|
}
|
|
|
|
(*out.AttributesStyle).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(out *jwriter.Writer, in GetInlineStylesForNodeReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.InlineStyle != 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("\"inlineStyle\":")
|
|
|
|
if in.InlineStyle == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
(*in.InlineStyle).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.AttributesStyle != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"attributesStyle\":")
|
|
|
|
if in.AttributesStyle == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.AttributesStyle).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 GetInlineStylesForNodeReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetInlineStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetInlineStylesForNodeReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetInlineStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(in *jlexer.Lexer, out *GetInlineStylesForNodeParams) {
|
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()
|
2017-02-18 03:58:29 +00:00
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "nodeId":
|
|
|
|
(out.NodeID).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(out *jwriter.Writer, in GetInlineStylesForNodeParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"nodeId\":")
|
|
|
|
out.Int64(int64(in.NodeID))
|
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 GetInlineStylesForNodeParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetInlineStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetInlineStylesForNodeParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetInlineStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(in *jlexer.Lexer, out *GetComputedStyleForNodeReturns) {
|
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 "computedStyle":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.ComputedStyle = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('[')
|
|
|
|
if out.ComputedStyle == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.ComputedStyle = make([]*ComputedProperty, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.ComputedStyle = []*ComputedProperty{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.ComputedStyle = (out.ComputedStyle)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v73 *ComputedProperty
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v73 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v73 == nil {
|
|
|
|
v73 = new(ComputedProperty)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v73).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.ComputedStyle = append(out.ComputedStyle, v73)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(out *jwriter.Writer, in GetComputedStyleForNodeReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.ComputedStyle) != 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("\"computedStyle\":")
|
|
|
|
if in.ComputedStyle == 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('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v74, v75 := range in.ComputedStyle {
|
|
|
|
if v74 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v75 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v75).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
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 GetComputedStyleForNodeReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetComputedStyleForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetComputedStyleForNodeReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetComputedStyleForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(in *jlexer.Lexer, out *GetComputedStyleForNodeParams) {
|
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).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(out *jwriter.Writer, in GetComputedStyleForNodeParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"nodeId\":")
|
|
|
|
out.Int64(int64(in.NodeID))
|
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 GetComputedStyleForNodeParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetComputedStyleForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetComputedStyleForNodeParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetComputedStyleForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(in *jlexer.Lexer, out *GetBackgroundColorsReturns) {
|
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 "backgroundColors":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.BackgroundColors = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.BackgroundColors == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.BackgroundColors = make([]string, 0, 4)
|
|
|
|
} else {
|
|
|
|
out.BackgroundColors = []string{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.BackgroundColors = (out.BackgroundColors)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v76 string
|
|
|
|
v76 = string(in.String())
|
|
|
|
out.BackgroundColors = append(out.BackgroundColors, v76)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(out *jwriter.Writer, in GetBackgroundColorsReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.BackgroundColors) != 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("\"backgroundColors\":")
|
|
|
|
if in.BackgroundColors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v77, v78 := range in.BackgroundColors {
|
|
|
|
if v77 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.String(string(v78))
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
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 GetBackgroundColorsReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetBackgroundColorsReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetBackgroundColorsReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetBackgroundColorsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(in *jlexer.Lexer, out *GetBackgroundColorsParams) {
|
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).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(out *jwriter.Writer, in GetBackgroundColorsParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"nodeId\":")
|
|
|
|
out.Int64(int64(in.NodeID))
|
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 GetBackgroundColorsParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetBackgroundColorsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetBackgroundColorsParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetBackgroundColorsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(in *jlexer.Lexer, out *ForcePseudoStateParams) {
|
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).UnmarshalEasyJSON(in)
|
|
|
|
case "forcedPseudoClasses":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.ForcedPseudoClasses = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.ForcedPseudoClasses == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.ForcedPseudoClasses = make([]PseudoClass, 0, 4)
|
|
|
|
} else {
|
|
|
|
out.ForcedPseudoClasses = []PseudoClass{}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.ForcedPseudoClasses = (out.ForcedPseudoClasses)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v79 PseudoClass
|
|
|
|
(v79).UnmarshalEasyJSON(in)
|
|
|
|
out.ForcedPseudoClasses = append(out.ForcedPseudoClasses, v79)
|
2017-01-24 15:09:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(out *jwriter.Writer, in ForcePseudoStateParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"nodeId\":")
|
|
|
|
out.Int64(int64(in.NodeID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"forcedPseudoClasses\":")
|
|
|
|
if in.ForcedPseudoClasses == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v80, v81 := range in.ForcedPseudoClasses {
|
|
|
|
if v80 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(v81).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(']')
|
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 ForcePseudoStateParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ForcePseudoStateParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ForcePseudoStateParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ForcePseudoStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(in *jlexer.Lexer, out *EventStyleSheetRemoved) {
|
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 {
|
|
|
|
case "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(in.String())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(out *jwriter.Writer, in EventStyleSheetRemoved) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.StyleSheetID != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
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 EventStyleSheetRemoved) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventStyleSheetRemoved) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventStyleSheetRemoved) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventStyleSheetRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(in *jlexer.Lexer, out *EventStyleSheetChanged) {
|
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 "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(out *jwriter.Writer, in EventStyleSheetChanged) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.StyleSheetID != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
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 EventStyleSheetChanged) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventStyleSheetChanged) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventStyleSheetChanged) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventStyleSheetChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(in *jlexer.Lexer, out *EventStyleSheetAdded) {
|
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 "header":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Header = nil
|
|
|
|
} else {
|
|
|
|
if out.Header == nil {
|
|
|
|
out.Header = new(StyleSheetHeader)
|
|
|
|
}
|
|
|
|
(*out.Header).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(out *jwriter.Writer, in EventStyleSheetAdded) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Header != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"header\":")
|
|
|
|
if in.Header == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Header).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 EventStyleSheetAdded) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventStyleSheetAdded) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventStyleSheetAdded) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventStyleSheetAdded) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(in *jlexer.Lexer, out *EventMediaQueryResultChanged) {
|
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 {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(out *jwriter.Writer, in EventMediaQueryResultChanged) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventMediaQueryResultChanged) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventMediaQueryResultChanged) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventMediaQueryResultChanged) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventMediaQueryResultChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(in *jlexer.Lexer, out *EventFontsUpdated) {
|
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 {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(out *jwriter.Writer, in EventFontsUpdated) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventFontsUpdated) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventFontsUpdated) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventFontsUpdated) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventFontsUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(in *jlexer.Lexer, out *EnableParams) {
|
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 {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(out *jwriter.Writer, in EnableParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
2017-02-18 03:58:29 +00:00
|
|
|
first := true
|
|
|
|
_ = first
|
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 EnableParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EnableParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(in *jlexer.Lexer, out *DisableParams) {
|
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 {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(out *jwriter.Writer, in DisableParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v DisableParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *DisableParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(in *jlexer.Lexer, out *CreateStyleSheetReturns) {
|
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 "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(out *jwriter.Writer, in CreateStyleSheetReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.StyleSheetID != "" {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
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 CreateStyleSheetReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CreateStyleSheetReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CreateStyleSheetReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CreateStyleSheetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(in *jlexer.Lexer, out *CreateStyleSheetParams) {
|
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 "frameId":
|
|
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(out *jwriter.Writer, in CreateStyleSheetParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"frameId\":")
|
|
|
|
out.String(string(in.FrameID))
|
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 CreateStyleSheetParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CreateStyleSheetParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CreateStyleSheetParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CreateStyleSheetParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(in *jlexer.Lexer, out *ComputedStyle) {
|
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 "properties":
|
2017-02-14 08:41: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 {
|
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.Properties == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Properties = make([]*ComputedProperty, 0, 8)
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Properties = []*ComputedProperty{}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Properties = (out.Properties)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v82 *ComputedProperty
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-03-24 22:51:18 +00:00
|
|
|
v82 = nil
|
2017-02-14 08:41:23 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
if v82 == nil {
|
|
|
|
v82 = new(ComputedProperty)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v82).UnmarshalEasyJSON(in)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.Properties = append(out.Properties, v82)
|
2017-02-14 08:41:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(out *jwriter.Writer, in ComputedStyle) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if len(in.Properties) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"properties\":")
|
|
|
|
if in.Properties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v83, v84 := range in.Properties {
|
|
|
|
if v83 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
if v84 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
2017-02-14 08:41:23 +00:00
|
|
|
} else {
|
2017-03-24 22:51:18 +00:00
|
|
|
(*v84).MarshalEasyJSON(out)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v ComputedStyle) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v ComputedStyle) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *ComputedStyle) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(&r, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *ComputedStyle) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(l, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(in *jlexer.Lexer, out *ComputedProperty) {
|
2017-02-18 03:58:29 +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 {
|
|
|
|
case "name":
|
|
|
|
out.Name = string(in.String())
|
|
|
|
case "value":
|
|
|
|
out.Value = string(in.String())
|
2017-01-26 07:28:34 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(out *jwriter.Writer, in ComputedProperty) {
|
2017-01-26 07:28:34 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Name != "" {
|
2017-01-26 07:28:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"name\":")
|
|
|
|
out.String(string(in.Name))
|
2017-01-26 07:28:34 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Value != "" {
|
2017-01-26 07:28:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"value\":")
|
|
|
|
out.String(string(in.Value))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v ComputedProperty) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v ComputedProperty) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *ComputedProperty) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(&r, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *ComputedProperty) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(l, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss65(in *jlexer.Lexer, out *CollectClassNamesReturns) {
|
2017-02-18 03:58:29 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Skip()
|
|
|
|
return
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
switch key {
|
|
|
|
case "classNames":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.ClassNames = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.ClassNames == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.ClassNames = make([]string, 0, 4)
|
|
|
|
} else {
|
|
|
|
out.ClassNames = []string{}
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.ClassNames = (out.ClassNames)[:0]
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
for !in.IsDelim(']') {
|
2017-03-24 22:51:18 +00:00
|
|
|
var v85 string
|
|
|
|
v85 = string(in.String())
|
|
|
|
out.ClassNames = append(out.ClassNames, v85)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim(']')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss65(out *jwriter.Writer, in CollectClassNamesReturns) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if len(in.ClassNames) != 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("\"classNames\":")
|
|
|
|
if in.ClassNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-03-24 22:51:18 +00:00
|
|
|
for v86, v87 := range in.ClassNames {
|
|
|
|
if v86 > 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
out.String(string(v87))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CollectClassNamesReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss65(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CollectClassNamesReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss65(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CollectClassNamesReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss65(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CollectClassNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss65(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss66(in *jlexer.Lexer, out *CollectClassNamesParams) {
|
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 "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss66(out *jwriter.Writer, in CollectClassNamesParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
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 CollectClassNamesParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss66(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CollectClassNamesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss66(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CollectClassNamesParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss66(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CollectClassNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss66(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss67(in *jlexer.Lexer, out *AddRuleReturns) {
|
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 "rule":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Rule = nil
|
|
|
|
} else {
|
|
|
|
if out.Rule == nil {
|
|
|
|
out.Rule = new(Rule)
|
|
|
|
}
|
|
|
|
(*out.Rule).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss67(out *jwriter.Writer, in AddRuleReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Rule != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"rule\":")
|
|
|
|
if in.Rule == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Rule).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 AddRuleReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss67(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v AddRuleReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss67(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *AddRuleReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss67(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *AddRuleReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss67(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss68(in *jlexer.Lexer, out *AddRuleParams) {
|
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 "styleSheetId":
|
|
|
|
out.StyleSheetID = StyleSheetID(in.String())
|
|
|
|
case "ruleText":
|
|
|
|
out.RuleText = string(in.String())
|
|
|
|
case "location":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Location = nil
|
|
|
|
} else {
|
|
|
|
if out.Location == nil {
|
|
|
|
out.Location = new(SourceRange)
|
|
|
|
}
|
|
|
|
(*out.Location).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-03-24 22:51:18 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss68(out *jwriter.Writer, in AddRuleParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"styleSheetId\":")
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"ruleText\":")
|
|
|
|
out.String(string(in.RuleText))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"location\":")
|
|
|
|
if in.Location == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Location).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 AddRuleParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss68(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v AddRuleParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss68(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *AddRuleParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss68(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *AddRuleParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-03-24 22:51:18 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss68(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|