2017-05-06 01:20:24 +00:00
|
|
|
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
|
2017-01-24 15:09:23 +00:00
|
|
|
|
|
|
|
package css
|
|
|
|
|
|
|
|
import (
|
|
|
|
json "encoding/json"
|
|
|
|
easyjson "github.com/mailru/easyjson"
|
|
|
|
jlexer "github.com/mailru/easyjson/jlexer"
|
|
|
|
jwriter "github.com/mailru/easyjson/jwriter"
|
|
|
|
)
|
|
|
|
|
|
|
|
// suppress unused package warning
|
|
|
|
var (
|
|
|
|
_ *json.RawMessage
|
|
|
|
_ *jlexer.Lexer
|
|
|
|
_ *jwriter.Writer
|
|
|
|
_ easyjson.Marshaler
|
|
|
|
)
|
|
|
|
|
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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"text\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Text))
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
if in.Range != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"range\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +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 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 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"coverage\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-03-24 22:51:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-03-24 22:51:18 +00:00
|
|
|
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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"frameId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.FrameID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"sourceURL\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.SourceURL))
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.SourceMapURL != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"sourceMapURL\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.SourceMapURL))
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"origin\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(in.Origin).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"title\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Title))
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
if in.OwnerNode != 0 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"ownerNode\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.Int64(int64(in.OwnerNode))
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"disabled\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Bool(bool(in.Disabled))
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
if in.HasSourceURL {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"hasSourceURL\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.HasSourceURL))
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"isInline\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Bool(bool(in.IsInline))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"startLine\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Float64(float64(in.StartLine))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"startColumn\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Float64(float64(in.StartColumn))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"length\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"range\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.Range == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Range).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"text\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Text))
|
2017-07-02 11:44:34 +00:00
|
|
|
}
|
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 != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"cssProperties\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.CSSProperties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v6, v7 := range in.CSSProperties {
|
|
|
|
if v6 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v7 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v7).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawByte(']')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"shorthandEntries\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.ShorthandEntries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v8, v9 := range in.ShorthandEntries {
|
|
|
|
if v8 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v9 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v9).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawByte(']')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.CSSText != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"cssText\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.CSSText))
|
|
|
|
}
|
|
|
|
if in.Range != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"range\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.Range).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
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-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"ruleUsage\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-14 08:41:23 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-02-14 08:41:23 +00:00
|
|
|
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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"startLine\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.StartLine))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"startColumn\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.StartColumn))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"endLine\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.EndLine))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"endColumn\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"name\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Name))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"value\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Value))
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Important {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"important\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
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-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"styles\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-14 08:41:23 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-02-14 08:41:23 +00:00
|
|
|
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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"edits\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.Edits == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v17, v18 := range in.Edits {
|
|
|
|
if v17 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v18 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v18).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawByte(']')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
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-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"sourceMapURL\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"text\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Text))
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
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-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"selectorList\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"range\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.Range == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Range).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"selector\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"media\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"range\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.Range == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Range).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"text\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"keyText\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.StyleSheetID))
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"range\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.Range == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Range).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"keyText\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"nodeId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.NodeID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"propertyName\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.PropertyName))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"value\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Value))
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
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
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"selectors\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.Selectors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v20, v21 := range in.Selectors {
|
|
|
|
if v20 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v21 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v21).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawByte(']')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"text\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"startOffset\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Float64(float64(in.StartOffset))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"endOffset\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Float64(float64(in.EndOffset))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"used\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"rule\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.Rule == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Rule).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"matchingSelectors\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.MatchingSelectors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v23, v24 := range in.MatchingSelectors {
|
|
|
|
if v23 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
out.Int64(int64(v24))
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawByte(']')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
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-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"selectorList\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.SelectorList == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.SelectorList).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"origin\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(in.Origin).MarshalEasyJSON(out)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"style\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
if in.Style == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.Style).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if len(in.Media) != 0 {
|
|
|
|
const prefix string = ",\"media\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-02-18 03:58:29 +00:00
|
|
|
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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"pseudoType\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(in.PseudoType).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"matches\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.Matches == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v29, v30 := range in.Matches {
|
|
|
|
if v29 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v30 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v30).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +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 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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"name\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Name))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"value\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Value))
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Important {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"important\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.Important))
|
|
|
|
}
|
|
|
|
if in.Implicit {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"implicit\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.Implicit))
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Text != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"text\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
out.String(string(in.Text))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.ParsedOk {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"parsedOk\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.ParsedOk))
|
|
|
|
}
|
|
|
|
if in.Disabled {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"disabled\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.Disabled))
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
if in.Range != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"range\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"familyName\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.FamilyName))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"isCustomFont\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Bool(bool(in.IsCustomFont))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"glyphCount\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-07-02 11:44:34 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"value\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
out.Float64(float64(in.Value))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"unit\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Unit))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"feature\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Feature))
|
|
|
|
}
|
|
|
|
if in.ValueRange != nil {
|
|
|
|
const prefix string = ",\"valueRange\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.ValueRange).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
if in.ComputedLength != 0 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"computedLength\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"expressions\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.Expressions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v32, v33 := range in.Expressions {
|
|
|
|
if v32 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v33 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v33).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawByte(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"active\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Bool(bool(in.Active))
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
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-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"text\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Text))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"source\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(in.Source).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.SourceURL != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"sourceURL\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.SourceURL))
|
|
|
|
}
|
|
|
|
if in.Range != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"range\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.Range).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
if in.StyleSheetID != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
}
|
|
|
|
if len(in.MediaList) != 0 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"mediaList\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-01-24 15:09:23 +00:00
|
|
|
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-06-18 00:55:45 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss32(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-06-18 00:55:45 +00:00
|
|
|
var v37 *KeyframeRule
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-06-18 00:55:45 +00:00
|
|
|
v37 = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-06-18 00:55:45 +00:00
|
|
|
if v37 == nil {
|
|
|
|
v37 = new(KeyframeRule)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
(*v37).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
out.Keyframes = append(out.Keyframes, v37)
|
2017-01-24 15:09:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss32(out *jwriter.Writer, in KeyframesRule) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"animationName\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.AnimationName == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.AnimationName).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"keyframes\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.Keyframes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v38, v39 := range in.Keyframes {
|
|
|
|
if v38 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v39 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v39).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +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 KeyframesRule) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-06-18 00:55:45 +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 KeyframesRule) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 00:55:45 +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 *KeyframesRule) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 00:55:45 +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 *KeyframesRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 00:55:45 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss32(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss33(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-06-18 00:55:45 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss33(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 != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.StyleSheetID))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"origin\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(in.Origin).MarshalEasyJSON(out)
|
2017-07-02 11:44:34 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"keyText\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.KeyText == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.KeyText).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"style\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-06-18 00:55:45 +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 KeyframeRule) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 00:55:45 +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 *KeyframeRule) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 00:55:45 +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 *KeyframeRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 00:55:45 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss33(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(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-06-18 00:55:45 +00:00
|
|
|
var v40 *RuleMatch
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-06-18 00:55:45 +00:00
|
|
|
v40 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-06-18 00:55:45 +00:00
|
|
|
if v40 == nil {
|
|
|
|
v40 = new(RuleMatch)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
(*v40).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
out.MatchedCSSRules = append(out.MatchedCSSRules, v40)
|
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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(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 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"inlineStyle\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.InlineStyle).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"matchedCSSRules\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.MatchedCSSRules == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v41, v42 := range in.MatchedCSSRules {
|
|
|
|
if v41 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v42 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v42).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawByte(']')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
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-11-02 04:49:15 +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 InheritedStyleEntry) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *InheritedStyleEntry) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *InheritedStyleEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(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 != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"text\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
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-11-02 04:49:15 +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 GetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *GetStyleSheetTextReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *GetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(out *jwriter.Writer, in GetStyleSheetTextParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-11-02 04:49:15 +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 GetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *GetStyleSheetTextParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *GetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(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-06-18 00:55:45 +00:00
|
|
|
var v43 *PlatformFontUsage
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-06-18 00:55:45 +00:00
|
|
|
v43 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-06-18 00:55:45 +00:00
|
|
|
if v43 == nil {
|
|
|
|
v43 = new(PlatformFontUsage)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
(*v43).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
out.Fonts = append(out.Fonts, 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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(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 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"fonts\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('[')
|
2017-06-18 00:55:45 +00:00
|
|
|
for v44, v45 := range in.Fonts {
|
|
|
|
if v44 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
if v45 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-06-18 00:55:45 +00:00
|
|
|
(*v45).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-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(&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-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(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-11-02 04:49:15 +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 *GetPlatformFontsForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(out *jwriter.Writer, in GetPlatformFontsForNodeParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"nodeId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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 GetPlatformFontsForNodeParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-11-02 04:49:15 +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 GetPlatformFontsForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *GetPlatformFontsForNodeParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *GetPlatformFontsForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(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-06-18 00:55:45 +00:00
|
|
|
var v46 *Media
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-06-18 00:55:45 +00:00
|
|
|
v46 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-06-18 00:55:45 +00:00
|
|
|
if v46 == nil {
|
|
|
|
v46 = new(Media)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
(*v46).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
out.Medias = append(out.Medias, 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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(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-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"medias\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('[')
|
2017-06-18 00:55:45 +00:00
|
|
|
for v47, v48 := range in.Medias {
|
|
|
|
if v47 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
if v48 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-06-18 00:55:45 +00:00
|
|
|
(*v48).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-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(&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-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(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-11-02 04:49:15 +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 *GetMediaQueriesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(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-11-02 04:49:15 +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 GetMediaQueriesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *GetMediaQueriesParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *GetMediaQueriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(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-06-18 00:55:45 +00:00
|
|
|
var v49 *RuleMatch
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-06-18 00:55:45 +00:00
|
|
|
v49 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-06-18 00:55:45 +00:00
|
|
|
if v49 == nil {
|
|
|
|
v49 = new(RuleMatch)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
(*v49).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
out.MatchedCSSRules = append(out.MatchedCSSRules, v49)
|
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-06-18 00:55:45 +00:00
|
|
|
var v50 *PseudoElementMatches
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-06-18 00:55:45 +00:00
|
|
|
v50 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-06-18 00:55:45 +00:00
|
|
|
if v50 == nil {
|
|
|
|
v50 = new(PseudoElementMatches)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
(*v50).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
out.PseudoElements = append(out.PseudoElements, v50)
|
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-06-18 00:55:45 +00:00
|
|
|
var v51 *InheritedStyleEntry
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-06-18 00:55:45 +00:00
|
|
|
v51 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-06-18 00:55:45 +00:00
|
|
|
if v51 == nil {
|
|
|
|
v51 = new(InheritedStyleEntry)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
(*v51).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
out.Inherited = append(out.Inherited, v51)
|
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-06-18 00:55:45 +00:00
|
|
|
var v52 *KeyframesRule
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-06-18 00:55:45 +00:00
|
|
|
v52 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-06-18 00:55:45 +00:00
|
|
|
if v52 == nil {
|
|
|
|
v52 = new(KeyframesRule)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
(*v52).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
out.CSSKeyframesRules = append(out.CSSKeyframesRules, v52)
|
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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(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-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"inlineStyle\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.InlineStyle).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.AttributesStyle != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"attributesStyle\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*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 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"matchedCSSRules\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('[')
|
2017-06-18 00:55:45 +00:00
|
|
|
for v53, v54 := range in.MatchedCSSRules {
|
|
|
|
if v53 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
if v54 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-06-18 00:55:45 +00:00
|
|
|
(*v54).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 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"pseudoElements\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('[')
|
2017-06-18 00:55:45 +00:00
|
|
|
for v55, v56 := range in.PseudoElements {
|
|
|
|
if v55 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
if v56 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-06-18 00:55:45 +00:00
|
|
|
(*v56).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 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"inherited\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('[')
|
2017-06-18 00:55:45 +00:00
|
|
|
for v57, v58 := range in.Inherited {
|
|
|
|
if v57 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
if v58 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-06-18 00:55:45 +00:00
|
|
|
(*v58).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-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"cssKeyframesRules\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('[')
|
2017-06-18 00:55:45 +00:00
|
|
|
for v59, v60 := range in.CSSKeyframesRules {
|
|
|
|
if v59 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
if v60 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-06-18 00:55:45 +00:00
|
|
|
(*v60).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-11-02 04:49:15 +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 GetMatchedStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *GetMatchedStylesForNodeReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *GetMatchedStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(out *jwriter.Writer, in GetMatchedStylesForNodeParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"nodeId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-11-02 04:49:15 +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-06-18 00:55:45 +00:00
|
|
|
func (v GetMatchedStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-06-18 00:55:45 +00:00
|
|
|
func (v *GetMatchedStylesForNodeParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-06-18 00:55:45 +00:00
|
|
|
func (v *GetMatchedStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(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-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"inlineStyle\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.InlineStyle).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
if in.AttributesStyle != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"attributesStyle\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*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-11-02 04:49:15 +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 GetInlineStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *GetInlineStylesForNodeReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *GetInlineStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(out *jwriter.Writer, in GetInlineStylesForNodeParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"nodeId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-11-02 04:49:15 +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 GetInlineStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *GetInlineStylesForNodeParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *GetInlineStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(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-06-18 00:55:45 +00:00
|
|
|
var v61 *ComputedProperty
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-06-18 00:55:45 +00:00
|
|
|
v61 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-06-18 00:55:45 +00:00
|
|
|
if v61 == nil {
|
|
|
|
v61 = new(ComputedProperty)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
(*v61).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
out.ComputedStyle = append(out.ComputedStyle, v61)
|
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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(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-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"computedStyle\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('[')
|
2017-06-18 00:55:45 +00:00
|
|
|
for v62, v63 := range in.ComputedStyle {
|
|
|
|
if v62 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
if v63 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-06-18 00:55:45 +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 GetComputedStyleForNodeReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-11-02 04:49:15 +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 GetComputedStyleForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *GetComputedStyleForNodeReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *GetComputedStyleForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(out *jwriter.Writer, in GetComputedStyleForNodeParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"nodeId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-11-02 04:49:15 +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 GetComputedStyleForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *GetComputedStyleForNodeParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *GetComputedStyleForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(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-06-18 00:55:45 +00:00
|
|
|
var v64 string
|
|
|
|
v64 = string(in.String())
|
|
|
|
out.BackgroundColors = append(out.BackgroundColors, v64)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
2017-08-11 02:28:38 +00:00
|
|
|
case "computedFontSize":
|
|
|
|
out.ComputedFontSize = string(in.String())
|
|
|
|
case "computedFontWeight":
|
|
|
|
out.ComputedFontWeight = string(in.String())
|
|
|
|
case "computedBodyFontSize":
|
|
|
|
out.ComputedBodyFontSize = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(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-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"backgroundColors\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('[')
|
2017-06-18 00:55:45 +00:00
|
|
|
for v65, v66 := range in.BackgroundColors {
|
|
|
|
if v65 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
out.String(string(v66))
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-11 02:28:38 +00:00
|
|
|
if in.ComputedFontSize != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"computedFontSize\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-08-11 02:28:38 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.ComputedFontSize))
|
|
|
|
}
|
|
|
|
if in.ComputedFontWeight != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"computedFontWeight\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-08-11 02:28:38 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.ComputedFontWeight))
|
|
|
|
}
|
|
|
|
if in.ComputedBodyFontSize != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"computedBodyFontSize\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-08-11 02:28:38 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.ComputedBodyFontSize))
|
|
|
|
}
|
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-11-02 04:49:15 +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 GetBackgroundColorsReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *GetBackgroundColorsReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *GetBackgroundColorsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(out *jwriter.Writer, in GetBackgroundColorsParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"nodeId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-11-02 04:49:15 +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 GetBackgroundColorsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *GetBackgroundColorsParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *GetBackgroundColorsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(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-06-18 00:55:45 +00:00
|
|
|
var v67 PseudoClass
|
|
|
|
(v67).UnmarshalEasyJSON(in)
|
|
|
|
out.ForcedPseudoClasses = append(out.ForcedPseudoClasses, v67)
|
2017-01-24 15:09:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(out *jwriter.Writer, in ForcePseudoStateParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"nodeId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.NodeID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"forcedPseudoClasses\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.ForcedPseudoClasses == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v68, v69 := range in.ForcedPseudoClasses {
|
|
|
|
if v68 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
(v69).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +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-11-02 04:49:15 +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 ForcePseudoStateParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *ForcePseudoStateParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *ForcePseudoStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(out *jwriter.Writer, in EventStyleSheetRemoved) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-11-02 04:49:15 +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 EventStyleSheetRemoved) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *EventStyleSheetRemoved) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *EventStyleSheetRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(out *jwriter.Writer, in EventStyleSheetChanged) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-11-02 04:49:15 +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 EventStyleSheetChanged) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *EventStyleSheetChanged) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *EventStyleSheetChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(out *jwriter.Writer, in EventStyleSheetAdded) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"header\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-11-02 04:49:15 +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 EventStyleSheetAdded) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *EventStyleSheetAdded) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *EventStyleSheetAdded) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(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-11-02 04:49:15 +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 EventMediaQueryResultChanged) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *EventMediaQueryResultChanged) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *EventMediaQueryResultChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(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-11-02 04:49:15 +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 EventFontsUpdated) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *EventFontsUpdated) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *EventFontsUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(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-11-02 04:49:15 +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 EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *EnableParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(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-11-02 04:49:15 +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 DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *DisableParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(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-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
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-11-02 04:49:15 +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 CreateStyleSheetReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *CreateStyleSheetReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *CreateStyleSheetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(out *jwriter.Writer, in CreateStyleSheetParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"frameId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-11-02 04:49:15 +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 CreateStyleSheetParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *CreateStyleSheetParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *CreateStyleSheetParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(l, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(out *jwriter.Writer, in ComputedProperty) {
|
2017-01-26 07:28:34 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"name\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Name))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"value\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Value))
|
|
|
|
}
|
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-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(&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-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(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-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(&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-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(l, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(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-06-18 00:55:45 +00:00
|
|
|
var v70 string
|
|
|
|
v70 = string(in.String())
|
|
|
|
out.ClassNames = append(out.ClassNames, v70)
|
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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(out *jwriter.Writer, in CollectClassNamesReturns) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if len(in.ClassNames) != 0 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"classNames\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('[')
|
2017-06-18 00:55:45 +00:00
|
|
|
for v71, v72 := range in.ClassNames {
|
|
|
|
if v71 > 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-06-18 00:55:45 +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 CollectClassNamesReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-11-02 04:49:15 +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 CollectClassNamesReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *CollectClassNamesReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *CollectClassNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(out *jwriter.Writer, in CollectClassNamesParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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-11-02 04:49:15 +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 CollectClassNamesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *CollectClassNamesParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *CollectClassNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(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 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"rule\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.Rule).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
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-11-02 04:49:15 +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 AddRuleReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-02 04:49:15 +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 *AddRuleReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-02 04:49:15 +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 *AddRuleReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(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-11-02 04:49:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(out *jwriter.Writer, in AddRuleParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"styleSheetId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.StyleSheetID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"ruleText\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.RuleText))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"location\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.Location == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Location).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
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-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(&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-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(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-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(&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-11-02 04:49:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|