chromedp/cdp/css/easyjson.go

6492 lines
148 KiB
Go
Raw Normal View History

// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
2017-01-24 15:09:23 +00:00
package css
import (
json "encoding/json"
dom "github.com/knq/chromedp/cdp/dom"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
// suppress unused package warning
var (
_ *json.RawMessage
_ *jlexer.Lexer
_ *jwriter.Writer
_ easyjson.Marshaler
)
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 {
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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss(out *jwriter.Writer, in Value) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.Text != "" {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"text\":")
out.String(string(in.Text))
}
if in.Range != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"range\":")
if in.Range == nil {
out.RawString("null")
} else {
(*in.Range).MarshalEasyJSON(out)
}
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
func (v Value) MarshalEasyJSON(w *jwriter.Writer) {
2017-01-24 15:09:23 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
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
func (v *Value) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-01-24 15:09:23 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss(l, v)
}
2017-03-24 22:51:18 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss1(in *jlexer.Lexer, out *TakeCoverageDeltaReturns) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "coverage":
if in.IsNull() {
in.Skip()
out.Coverage = nil
} else {
in.Delim('[')
if out.Coverage == nil {
if !in.IsDelim(']') {
out.Coverage = make([]*RuleUsage, 0, 8)
} else {
out.Coverage = []*RuleUsage{}
}
} else {
out.Coverage = (out.Coverage)[:0]
}
for !in.IsDelim(']') {
var v1 *RuleUsage
if in.IsNull() {
in.Skip()
v1 = nil
} else {
if v1 == nil {
v1 = new(RuleUsage)
}
(*v1).UnmarshalEasyJSON(in)
}
out.Coverage = append(out.Coverage, v1)
in.WantComma()
}
in.Delim(']')
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss1(out *jwriter.Writer, in TakeCoverageDeltaReturns) {
out.RawByte('{')
first := true
_ = first
if len(in.Coverage) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"coverage\":")
if in.Coverage == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v2, v3 := range in.Coverage {
if v2 > 0 {
out.RawByte(',')
}
if v3 == nil {
out.RawString("null")
} else {
(*v3).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v TakeCoverageDeltaReturns) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss1(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v TakeCoverageDeltaReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss1(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *TakeCoverageDeltaReturns) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss1(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *TakeCoverageDeltaReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss1(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss2(in *jlexer.Lexer, out *TakeCoverageDeltaParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss2(out *jwriter.Writer, in TakeCoverageDeltaParams) {
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v TakeCoverageDeltaParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss2(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v TakeCoverageDeltaParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss2(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *TakeCoverageDeltaParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss2(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *TakeCoverageDeltaParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss2(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss3(in *jlexer.Lexer, out *StyleSheetHeader) {
2017-01-24 15:09:23 +00:00
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
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
if in.StyleSheetID != "" {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
}
if in.FrameID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"frameId\":")
out.String(string(in.FrameID))
}
if in.SourceURL != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"sourceURL\":")
out.String(string(in.SourceURL))
}
if in.SourceMapURL != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"sourceMapURL\":")
out.String(string(in.SourceMapURL))
}
if in.Origin != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"origin\":")
(in.Origin).MarshalEasyJSON(out)
}
if in.Title != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"title\":")
out.String(string(in.Title))
}
if in.OwnerNode != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"ownerNode\":")
out.Int64(int64(in.OwnerNode))
}
if in.Disabled {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"disabled\":")
out.Bool(bool(in.Disabled))
}
if in.HasSourceURL {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"hasSourceURL\":")
out.Bool(bool(in.HasSourceURL))
}
if in.IsInline {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"isInline\":")
out.Bool(bool(in.IsInline))
}
if in.StartLine != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"startLine\":")
out.Float64(float64(in.StartLine))
}
if in.StartColumn != 0 {
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
first = false
out.RawString("\"startColumn\":")
out.Float64(float64(in.StartColumn))
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
if in.Length != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"length\":")
out.Float64(float64(in.Length))
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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())
case "range":
if in.IsNull() {
in.Skip()
out.Range = nil
} else {
if out.Range == nil {
out.Range = new(SourceRange)
}
(*out.Range).UnmarshalEasyJSON(in)
}
case "text":
out.Text = string(in.String())
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-24 22:51:18 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss4(out *jwriter.Writer, in StyleDeclarationEdit) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.StyleSheetID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
}
if in.Range != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"range\":")
if in.Range == nil {
out.RawString("null")
} else {
(*in.Range).MarshalEasyJSON(out)
}
}
if in.Text != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"text\":")
out.String(string(in.Text))
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
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
if in.IsNull() {
in.Skip()
2017-03-24 22:51:18 +00:00
v4 = nil
} else {
2017-03-24 22:51:18 +00:00
if v4 == nil {
v4 = new(Property)
}
2017-03-24 22:51:18 +00:00
(*v4).UnmarshalEasyJSON(in)
}
2017-03-24 22:51:18 +00:00
out.CSSProperties = append(out.CSSProperties, v4)
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
if in.IsNull() {
in.Skip()
2017-03-24 22:51:18 +00:00
v5 = nil
} else {
2017-03-24 22:51:18 +00:00
if v5 == nil {
v5 = new(ShorthandEntry)
}
2017-03-24 22:51:18 +00:00
(*v5).UnmarshalEasyJSON(in)
}
2017-03-24 22:51:18 +00:00
out.ShorthandEntries = append(out.ShorthandEntries, v5)
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
if in.StyleSheetID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
}
if len(in.CSSProperties) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"cssProperties\":")
if in.CSSProperties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
2017-03-24 22:51:18 +00:00
for v6, v7 := range in.CSSProperties {
if v6 > 0 {
out.RawByte(',')
}
2017-03-24 22:51:18 +00:00
if v7 == nil {
out.RawString("null")
} else {
2017-03-24 22:51:18 +00:00
(*v7).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
}
if len(in.ShorthandEntries) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"shorthandEntries\":")
if in.ShorthandEntries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
2017-03-24 22:51:18 +00:00
for v8, v9 := range in.ShorthandEntries {
if v8 > 0 {
out.RawByte(',')
}
2017-03-24 22:51:18 +00:00
if v9 == nil {
out.RawString("null")
} else {
2017-03-24 22:51:18 +00:00
(*v9).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
}
if in.CSSText != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"cssText\":")
out.String(string(in.CSSText))
}
if in.Range != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"range\":")
if in.Range == nil {
out.RawString("null")
} else {
(*in.Range).MarshalEasyJSON(out)
}
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
case "ruleUsage":
if in.IsNull() {
in.Skip()
out.RuleUsage = nil
} else {
in.Delim('[')
if out.RuleUsage == nil {
if !in.IsDelim(']') {
out.RuleUsage = make([]*RuleUsage, 0, 8)
} else {
out.RuleUsage = []*RuleUsage{}
}
} else {
out.RuleUsage = (out.RuleUsage)[:0]
}
for !in.IsDelim(']') {
2017-03-24 22:51:18 +00:00
var v10 *RuleUsage
if in.IsNull() {
in.Skip()
2017-03-24 22:51:18 +00:00
v10 = nil
} else {
2017-03-24 22:51:18 +00:00
if v10 == nil {
v10 = new(RuleUsage)
}
2017-03-24 22:51:18 +00:00
(*v10).UnmarshalEasyJSON(in)
}
2017-03-24 22:51:18 +00:00
out.RuleUsage = append(out.RuleUsage, v10)
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
if len(in.RuleUsage) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"ruleUsage\":")
if in.RuleUsage == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
2017-03-24 22:51:18 +00:00
for v11, v12 := range in.RuleUsage {
if v11 > 0 {
out.RawByte(',')
}
2017-03-24 22:51:18 +00:00
if v12 == nil {
out.RawString("null")
} else {
2017-03-24 22:51:18 +00:00
(*v12).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v StopRuleUsageTrackingParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
2017-03-24 22:51:18 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss7(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v StopRuleUsageTrackingParams) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-24 22:51:18 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss7(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
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
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
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
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
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
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 {
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
if in.StartLine != 0 {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"startLine\":")
out.Int64(int64(in.StartLine))
2017-01-24 15:09:23 +00:00
}
if in.StartColumn != 0 {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"startColumn\":")
out.Int64(int64(in.StartColumn))
}
if in.EndLine != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"endLine\":")
out.Int64(int64(in.EndLine))
2017-01-24 15:09:23 +00:00
}
if in.EndColumn != 0 {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"endColumn\":")
out.Int64(int64(in.EndColumn))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
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
if in.Name != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"name\":")
out.String(string(in.Name))
}
if in.Value != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"value\":")
out.String(string(in.Value))
}
if in.Important {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"important\":")
out.Bool(bool(in.Important))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
case "styles":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.Styles = nil
2017-01-24 15:09:23 +00:00
} else {
in.Delim('[')
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 {
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
if len(in.Styles) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"styles\":")
if in.Styles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
2017-03-24 22:51:18 +00:00
for v14, v15 := range in.Styles {
if v14 > 0 {
out.RawByte(',')
}
2017-03-24 22:51:18 +00:00
if v15 == nil {
out.RawString("null")
} else {
2017-03-24 22:51:18 +00:00
(*v15).MarshalEasyJSON(out)
}
2017-01-24 15:09:23 +00:00
}
out.RawByte(']')
2017-01-24 15:09:23 +00:00
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
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
if in.IsNull() {
in.Skip()
2017-03-24 22:51:18 +00:00
v16 = nil
} else {
2017-03-24 22:51:18 +00:00
if v16 == nil {
v16 = new(StyleDeclarationEdit)
}
2017-03-24 22:51:18 +00:00
(*v16).UnmarshalEasyJSON(in)
}
2017-03-24 22:51:18 +00:00
out.Edits = append(out.Edits, v16)
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
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"edits\":")
if in.Edits == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
2017-03-24 22:51:18 +00:00
for v17, v18 := range in.Edits {
if v17 > 0 {
out.RawByte(',')
}
2017-03-24 22:51:18 +00:00
if v18 == nil {
out.RawString("null")
} else {
2017-03-24 22:51:18 +00:00
(*v18).MarshalEasyJSON(out)
}
}
out.RawByte(']')
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
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
if in.SourceMapURL != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"sourceMapURL\":")
out.String(string(in.SourceMapURL))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
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
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"text\":")
out.String(string(in.Text))
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetStyleSheetTextParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
2017-03-24 22:51:18 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss14(&w, v)
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)
}
// 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)
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-03-24 22:51:18 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss15(in *jlexer.Lexer, out *SetRuleSelectorReturns) {
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)
}
(*out.SelectorList).UnmarshalEasyJSON(in)
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-24 22:51:18 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss15(out *jwriter.Writer, in SetRuleSelectorReturns) {
out.RawByte('{')
first := true
_ = first
if in.SelectorList != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"selectorList\":")
if in.SelectorList == nil {
out.RawString("null")
} else {
(*in.SelectorList).MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetRuleSelectorReturns) MarshalJSON() ([]byte, error) {
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
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
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
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 {
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)
}
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
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"range\":")
if in.Range == nil {
out.RawString("null")
} else {
(*in.Range).MarshalEasyJSON(out)
}
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
first = false
out.RawString("\"selector\":")
out.String(string(in.Selector))
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
case "media":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.Media = nil
2017-01-24 15:09:23 +00:00
} else {
if out.Media == nil {
out.Media = new(Media)
2017-01-24 15:09:23 +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
if in.Media != nil {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"media\":")
if in.Media == nil {
out.RawString("null")
} else {
(*in.Media).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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())
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)
}
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
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
first = false
out.RawString("\"range\":")
if in.Range == nil {
out.RawString("null")
} else {
(*in.Range).MarshalEasyJSON(out)
}
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
first = false
out.RawString("\"text\":")
out.String(string(in.Text))
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
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
if in.KeyText != nil {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"keyText\":")
if in.KeyText == nil {
out.RawString("null")
} else {
(*in.KeyText).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
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
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
first = false
out.RawString("\"range\":")
if in.Range == nil {
out.RawString("null")
} else {
(*in.Range).MarshalEasyJSON(out)
}
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
first = false
out.RawString("\"keyText\":")
out.String(string(in.KeyText))
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
case "nodeId":
(out.NodeID).UnmarshalEasyJSON(in)
case "propertyName":
out.PropertyName = string(in.String())
case "value":
out.Value = string(in.String())
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
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"nodeId\":")
out.Int64(int64(in.NodeID))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"propertyName\":")
out.String(string(in.PropertyName))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"value\":")
out.String(string(in.Value))
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetEffectivePropertyValueForNodeParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
2017-03-24 22:51:18 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss21(&w, v)
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)
}
// 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)
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-03-24 22:51:18 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss22(in *jlexer.Lexer, out *SelectorList) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
2017-01-24 15:09:23 +00:00
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
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
if in.IsNull() {
in.Skip()
2017-03-24 22:51:18 +00:00
v19 = nil
} else {
2017-03-24 22:51:18 +00:00
if v19 == nil {
v19 = new(Value)
}
2017-03-24 22:51:18 +00:00
(*v19).UnmarshalEasyJSON(in)
}
2017-03-24 22:51:18 +00:00
out.Selectors = append(out.Selectors, v19)
in.WantComma()
}
in.Delim(']')
}
case "text":
out.Text = string(in.String())
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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss22(out *jwriter.Writer, in SelectorList) {
out.RawByte('{')
first := true
_ = first
if len(in.Selectors) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"selectors\":")
if in.Selectors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
2017-03-24 22:51:18 +00:00
for v20, v21 := range in.Selectors {
if v20 > 0 {
out.RawByte(',')
}
2017-03-24 22:51:18 +00:00
if v21 == nil {
out.RawString("null")
} else {
2017-03-24 22:51:18 +00:00
(*v21).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
}
if in.Text != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"text\":")
out.String(string(in.Text))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
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())
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
if in.StyleSheetID != "" {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
}
2017-03-13 02:29:26 +00:00
if in.StartOffset != 0 {
if !first {
out.RawByte(',')
}
first = false
2017-03-13 02:29:26 +00:00
out.RawString("\"startOffset\":")
out.Float64(float64(in.StartOffset))
}
if in.EndOffset != 0 {
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
first = false
out.RawString("\"endOffset\":")
out.Float64(float64(in.EndOffset))
2017-01-24 15:09:23 +00:00
}
if in.Used {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"used\":")
out.Bool(bool(in.Used))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
case "rule":
if in.IsNull() {
in.Skip()
out.Rule = nil
} else {
if out.Rule == nil {
out.Rule = new(Rule)
}
(*out.Rule).UnmarshalEasyJSON(in)
}
case "matchingSelectors":
if in.IsNull() {
in.Skip()
out.MatchingSelectors = nil
} else {
in.Delim('[')
if out.MatchingSelectors == nil {
if !in.IsDelim(']') {
out.MatchingSelectors = make([]int64, 0, 8)
} else {
out.MatchingSelectors = []int64{}
}
} else {
out.MatchingSelectors = (out.MatchingSelectors)[:0]
}
for !in.IsDelim(']') {
2017-03-24 22:51:18 +00:00
var v22 int64
v22 = int64(in.Int64())
out.MatchingSelectors = append(out.MatchingSelectors, v22)
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
if in.Rule != nil {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"rule\":")
if in.Rule == nil {
out.RawString("null")
} else {
(*in.Rule).MarshalEasyJSON(out)
}
}
if len(in.MatchingSelectors) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"matchingSelectors\":")
if in.MatchingSelectors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
2017-03-24 22:51:18 +00:00
for v23, v24 := range in.MatchingSelectors {
if v23 > 0 {
out.RawByte(',')
}
2017-03-24 22:51:18 +00:00
out.Int64(int64(v24))
}
out.RawByte(']')
}
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
case "styleSheetId":
out.StyleSheetID = StyleSheetID(in.String())
case "selectorList":
if in.IsNull() {
in.Skip()
out.SelectorList = nil
} else {
if out.SelectorList == nil {
out.SelectorList = new(SelectorList)
}
(*out.SelectorList).UnmarshalEasyJSON(in)
}
case "origin":
(out.Origin).UnmarshalEasyJSON(in)
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
if in.IsNull() {
in.Skip()
2017-03-24 22:51:18 +00:00
v25 = nil
} else {
2017-03-24 22:51:18 +00:00
if v25 == nil {
v25 = new(Media)
}
2017-03-24 22:51:18 +00:00
(*v25).UnmarshalEasyJSON(in)
}
2017-03-24 22:51:18 +00:00
out.Media = append(out.Media, v25)
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
if in.StyleSheetID != "" {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
}
if in.SelectorList != nil {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"selectorList\":")
if in.SelectorList == nil {
out.RawString("null")
} else {
(*in.SelectorList).MarshalEasyJSON(out)
}
}
if in.Origin != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"origin\":")
(in.Origin).MarshalEasyJSON(out)
}
if in.Style != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"style\":")
if in.Style == nil {
out.RawString("null")
} else {
(*in.Style).MarshalEasyJSON(out)
}
}
if len(in.Media) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"media\":")
if in.Media == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
2017-03-24 22:51:18 +00:00
for v26, v27 := range in.Media {
if v26 > 0 {
out.RawByte(',')
}
2017-03-24 22:51:18 +00:00
if v27 == nil {
out.RawString("null")
} else {
2017-03-24 22:51:18 +00:00
(*v27).MarshalEasyJSON(out)
}
}
out.RawByte(']')
2017-01-24 15:09:23 +00:00
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
case "pseudoType":
(out.PseudoType).UnmarshalEasyJSON(in)
case "matches":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.Matches = nil
2017-01-24 15:09:23 +00:00
} else {
in.Delim('[')
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 {
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
if in.PseudoType != "" {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"pseudoType\":")
(in.PseudoType).MarshalEasyJSON(out)
}
if len(in.Matches) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"matches\":")
if in.Matches == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
2017-03-24 22:51:18 +00:00
for v29, v30 := range in.Matches {
if v29 > 0 {
2017-01-24 15:09:23 +00:00
out.RawByte(',')
}
2017-03-24 22:51:18 +00:00
if v30 == nil {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
2017-03-24 22:51:18 +00:00
(*v30).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
out.RawByte(']')
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
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())
case "text":
out.Text = string(in.String())
case "parsedOk":
out.ParsedOk = bool(in.Bool())
case "disabled":
out.Disabled = bool(in.Bool())
case "range":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.Range = nil
2017-01-24 15:09:23 +00:00
} else {
if out.Range == nil {
out.Range = new(SourceRange)
2017-01-24 15:09: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
if in.Name != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"name\":")
out.String(string(in.Name))
}
if in.Value != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"value\":")
out.String(string(in.Value))
}
if in.Important {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"important\":")
out.Bool(bool(in.Important))
}
if in.Implicit {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"implicit\":")
out.Bool(bool(in.Implicit))
}
if in.Text != "" {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"text\":")
out.String(string(in.Text))
2017-01-24 15:09:23 +00:00
}
if in.ParsedOk {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"parsedOk\":")
out.Bool(bool(in.ParsedOk))
}
if in.Disabled {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"disabled\":")
out.Bool(bool(in.Disabled))
}
if in.Range != nil {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"range\":")
if in.Range == nil {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
(*in.Range).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
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
if in.FamilyName != "" {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"familyName\":")
out.String(string(in.FamilyName))
2017-01-24 15:09:23 +00:00
}
if in.IsCustomFont {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"isCustomFont\":")
out.Bool(bool(in.IsCustomFont))
}
if in.GlyphCount != 0 {
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
first = false
out.RawString("\"glyphCount\":")
out.Float64(float64(in.GlyphCount))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
case "value":
out.Value = float64(in.Float64())
case "unit":
out.Unit = string(in.String())
case "feature":
out.Feature = string(in.String())
case "valueRange":
if in.IsNull() {
in.Skip()
out.ValueRange = nil
} else {
if out.ValueRange == nil {
out.ValueRange = new(SourceRange)
}
(*out.ValueRange).UnmarshalEasyJSON(in)
}
case "computedLength":
out.ComputedLength = float64(in.Float64())
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-24 22:51:18 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss29(out *jwriter.Writer, in MediaQueryExpression) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.Value != 0 {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"value\":")
out.Float64(float64(in.Value))
}
if in.Unit != "" {
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
first = false
out.RawString("\"unit\":")
out.String(string(in.Unit))
2017-01-24 15:09:23 +00:00
}
if in.Feature != "" {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"feature\":")
out.String(string(in.Feature))
}
if in.ValueRange != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"valueRange\":")
if in.ValueRange == nil {
out.RawString("null")
} else {
(*in.ValueRange).MarshalEasyJSON(out)
}
}
if in.ComputedLength != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"computedLength\":")
out.Float64(float64(in.ComputedLength))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
case "expressions":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.Expressions = nil
2017-01-24 15:09:23 +00:00
} else {
in.Delim('[')
if out.Expressions == nil {
if !in.IsDelim(']') {
out.Expressions = make([]*MediaQueryExpression, 0, 8)
} else {
out.Expressions = []*MediaQueryExpression{}
}
} else {
out.Expressions = (out.Expressions)[:0]
2017-01-24 15:09:23 +00:00
}
for !in.IsDelim(']') {
2017-03-24 22:51:18 +00:00
var v31 *MediaQueryExpression
if in.IsNull() {
in.Skip()
2017-03-24 22:51:18 +00:00
v31 = nil
} else {
2017-03-24 22:51:18 +00:00
if v31 == nil {
v31 = new(MediaQueryExpression)
}
2017-03-24 22:51:18 +00:00
(*v31).UnmarshalEasyJSON(in)
}
2017-03-24 22:51:18 +00:00
out.Expressions = append(out.Expressions, v31)
in.WantComma()
}
in.Delim(']')
2017-01-24 15:09:23 +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
if len(in.Expressions) != 0 {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"expressions\":")
if in.Expressions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
out.RawByte('[')
2017-03-24 22:51:18 +00:00
for v32, v33 := range in.Expressions {
if v32 > 0 {
out.RawByte(',')
}
2017-03-24 22:51:18 +00:00
if v33 == nil {
out.RawString("null")
} else {
2017-03-24 22:51:18 +00:00
(*v33).MarshalEasyJSON(out)
}
}
out.RawByte(']')
2017-01-24 15:09:23 +00:00
}
}
if in.Active {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"active\":")
out.Bool(bool(in.Active))
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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 {
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()
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('[')
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 {
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
if in.Text != "" {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"text\":")
out.String(string(in.Text))
}
if in.Source != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"source\":")
(in.Source).MarshalEasyJSON(out)
}
if in.SourceURL != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"sourceURL\":")
out.String(string(in.SourceURL))
}
if in.Range != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"range\":")
if in.Range == nil {
out.RawString("null")
} else {
(*in.Range).MarshalEasyJSON(out)
}
}
if in.StyleSheetID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
}
if len(in.MediaList) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"mediaList\":")
if in.MediaList == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
out.RawByte('[')
2017-03-24 22:51:18 +00:00
for v35, v36 := range in.MediaList {
if v35 > 0 {
2017-01-24 15:09:23 +00:00
out.RawByte(',')
}
2017-03-24 22:51:18 +00:00
if v36 == nil {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
2017-03-24 22:51:18 +00:00
(*v36).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
out.RawByte(']')
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
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
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
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
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
}
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 {
case "animationName":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.AnimationName = nil
2017-01-24 15:09:23 +00:00
} else {
if out.AnimationName == nil {
out.AnimationName = new(Value)
}
(*out.AnimationName).UnmarshalEasyJSON(in)
2017-01-24 15:09:23 +00:00
}
case "keyframes":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.Keyframes = nil
2017-01-24 15:09:23 +00:00
} else {
in.Delim('[')
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 {
out.Keyframes = (out.Keyframes)[:0]
2017-01-24 15:09:23 +00:00
}
for !in.IsDelim(']') {
var v37 *KeyframeRule
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
v37 = nil
2017-01-24 15:09:23 +00:00
} else {
if v37 == nil {
v37 = new(KeyframeRule)
2017-01-24 15:09:23 +00:00
}
(*v37).UnmarshalEasyJSON(in)
2017-01-24 15:09:23 +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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss32(out *jwriter.Writer, in KeyframesRule) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.AnimationName != nil {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"animationName\":")
if in.AnimationName == nil {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
(*in.AnimationName).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
if len(in.Keyframes) != 0 {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"keyframes\":")
if in.Keyframes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
out.RawByte('[')
for v38, v39 := range in.Keyframes {
if v38 > 0 {
2017-01-24 15:09:23 +00:00
out.RawByte(',')
}
if v39 == nil {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
(*v39).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
out.RawByte(']')
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v KeyframesRule) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss32(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v KeyframesRule) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss32(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *KeyframesRule) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss32(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *KeyframesRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss32(l, v)
2017-01-24 15:09:23 +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 {
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()
out.KeyText = nil
2017-01-24 15:09:23 +00:00
} else {
if out.KeyText == nil {
out.KeyText = new(Value)
2017-01-24 15:09:23 +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
}
(*out.Style).UnmarshalEasyJSON(in)
2017-01-24 15:09:23 +00:00
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss33(out *jwriter.Writer, in KeyframeRule) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.StyleSheetID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
2017-01-24 15:09:23 +00:00
}
if in.Origin != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"origin\":")
(in.Origin).MarshalEasyJSON(out)
}
if in.KeyText != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"keyText\":")
if in.KeyText == nil {
out.RawString("null")
} else {
(*in.KeyText).MarshalEasyJSON(out)
}
}
if in.Style != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"style\":")
if in.Style == nil {
out.RawString("null")
} else {
(*in.Style).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v KeyframeRule) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss33(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v KeyframeRule) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss33(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *KeyframeRule) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss33(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *KeyframeRule) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss33(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(in *jlexer.Lexer, out *InlineTextBox) {
2017-01-24 15:09:23 +00:00
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "boundingBox":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.BoundingBox = nil
2017-01-24 15:09:23 +00:00
} else {
if out.BoundingBox == nil {
out.BoundingBox = new(dom.Rect)
}
(*out.BoundingBox).UnmarshalEasyJSON(in)
2017-01-24 15:09:23 +00:00
}
case "startCharacterIndex":
out.StartCharacterIndex = int64(in.Int64())
case "numCharacters":
out.NumCharacters = int64(in.Int64())
default:
in.SkipRecursive()
}
2017-01-24 15:09:23 +00:00
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(out *jwriter.Writer, in InlineTextBox) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.BoundingBox != nil {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"boundingBox\":")
if in.BoundingBox == nil {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
(*in.BoundingBox).MarshalEasyJSON(out)
}
}
if in.StartCharacterIndex != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"startCharacterIndex\":")
out.Int64(int64(in.StartCharacterIndex))
}
if in.NumCharacters != 0 {
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
first = false
out.RawString("\"numCharacters\":")
out.Int64(int64(in.NumCharacters))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v InlineTextBox) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v InlineTextBox) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *InlineTextBox) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *InlineTextBox) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(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 {
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(']') {
var v40 *RuleMatch
if in.IsNull() {
in.Skip()
v40 = nil
} else {
if v40 == nil {
v40 = new(RuleMatch)
}
(*v40).UnmarshalEasyJSON(in)
}
out.MatchedCSSRules = append(out.MatchedCSSRules, v40)
in.WantComma()
}
in.Delim(']')
}
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(out *jwriter.Writer, in InheritedStyleEntry) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.InlineStyle != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"inlineStyle\":")
if in.InlineStyle == nil {
out.RawString("null")
} else {
(*in.InlineStyle).MarshalEasyJSON(out)
}
}
if len(in.MatchedCSSRules) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"matchedCSSRules\":")
if in.MatchedCSSRules == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v41, v42 := range in.MatchedCSSRules {
if v41 > 0 {
out.RawByte(',')
}
if v42 == nil {
out.RawString("null")
} else {
(*v42).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v InheritedStyleEntry) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v InheritedStyleEntry) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *InheritedStyleEntry) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *InheritedStyleEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(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 {
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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(out *jwriter.Writer, in GetStyleSheetTextReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.Text != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"text\":")
out.String(string(in.Text))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetStyleSheetTextReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetStyleSheetTextReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(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 {
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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(out *jwriter.Writer, in GetStyleSheetTextParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetStyleSheetTextParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetStyleSheetTextParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(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 {
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(']') {
var v43 *PlatformFontUsage
if in.IsNull() {
in.Skip()
v43 = nil
} else {
if v43 == nil {
v43 = new(PlatformFontUsage)
}
(*v43).UnmarshalEasyJSON(in)
}
out.Fonts = append(out.Fonts, v43)
in.WantComma()
}
in.Delim(']')
}
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(out *jwriter.Writer, in GetPlatformFontsForNodeReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if len(in.Fonts) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"fonts\":")
if in.Fonts == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v44, v45 := range in.Fonts {
if v44 > 0 {
out.RawByte(',')
}
if v45 == nil {
out.RawString("null")
} else {
(*v45).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetPlatformFontsForNodeReturns) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetPlatformFontsForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetPlatformFontsForNodeReturns) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetPlatformFontsForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(out *jwriter.Writer, in GetPlatformFontsForNodeParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"nodeId\":")
out.Int64(int64(in.NodeID))
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetPlatformFontsForNodeParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetPlatformFontsForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetPlatformFontsForNodeParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetPlatformFontsForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(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 {
case "medias":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.Medias = nil
2017-01-24 15:09:23 +00:00
} else {
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
}
for !in.IsDelim(']') {
var v46 *Media
if in.IsNull() {
in.Skip()
v46 = nil
} else {
if v46 == nil {
v46 = new(Media)
}
(*v46).UnmarshalEasyJSON(in)
}
out.Medias = append(out.Medias, v46)
in.WantComma()
}
in.Delim(']')
2017-01-24 15:09:23 +00:00
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(out *jwriter.Writer, in GetMediaQueriesReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if len(in.Medias) != 0 {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"medias\":")
if in.Medias == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
out.RawByte('[')
for v47, v48 := range in.Medias {
if v47 > 0 {
out.RawByte(',')
}
if v48 == nil {
out.RawString("null")
} else {
(*v48).MarshalEasyJSON(out)
}
}
out.RawByte(']')
2017-01-24 15:09:23 +00:00
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetMediaQueriesReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetMediaQueriesReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetMediaQueriesReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetMediaQueriesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(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
func (v GetMediaQueriesParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetMediaQueriesParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetMediaQueriesParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetMediaQueriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(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 {
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(']') {
var v49 *RuleMatch
if in.IsNull() {
in.Skip()
v49 = nil
} else {
if v49 == nil {
v49 = new(RuleMatch)
}
(*v49).UnmarshalEasyJSON(in)
}
out.MatchedCSSRules = append(out.MatchedCSSRules, v49)
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(']') {
var v50 *PseudoElementMatches
if in.IsNull() {
in.Skip()
v50 = nil
} else {
if v50 == nil {
v50 = new(PseudoElementMatches)
}
(*v50).UnmarshalEasyJSON(in)
}
out.PseudoElements = append(out.PseudoElements, v50)
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(']') {
var v51 *InheritedStyleEntry
if in.IsNull() {
in.Skip()
v51 = nil
} else {
if v51 == nil {
v51 = new(InheritedStyleEntry)
}
(*v51).UnmarshalEasyJSON(in)
}
out.Inherited = append(out.Inherited, v51)
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(']') {
var v52 *KeyframesRule
if in.IsNull() {
in.Skip()
v52 = nil
} else {
if v52 == nil {
v52 = new(KeyframesRule)
}
(*v52).UnmarshalEasyJSON(in)
}
out.CSSKeyframesRules = append(out.CSSKeyframesRules, v52)
in.WantComma()
}
in.Delim(']')
}
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(out *jwriter.Writer, in GetMatchedStylesForNodeReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.InlineStyle != nil {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"inlineStyle\":")
if in.InlineStyle == nil {
out.RawString("null")
} else {
(*in.InlineStyle).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
if in.AttributesStyle != nil {
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
first = false
out.RawString("\"attributesStyle\":")
if in.AttributesStyle == nil {
out.RawString("null")
} else {
(*in.AttributesStyle).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
if len(in.MatchedCSSRules) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"matchedCSSRules\":")
if in.MatchedCSSRules == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v53, v54 := range in.MatchedCSSRules {
if v53 > 0 {
out.RawByte(',')
}
if v54 == nil {
out.RawString("null")
} else {
(*v54).MarshalEasyJSON(out)
}
}
out.RawByte(']')
2017-01-24 15:09:23 +00:00
}
}
if len(in.PseudoElements) != 0 {
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
first = false
out.RawString("\"pseudoElements\":")
if in.PseudoElements == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v55, v56 := range in.PseudoElements {
if v55 > 0 {
out.RawByte(',')
}
if v56 == nil {
out.RawString("null")
} else {
(*v56).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
out.RawByte(']')
2017-01-24 15:09:23 +00:00
}
}
if len(in.Inherited) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"inherited\":")
if in.Inherited == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v57, v58 := range in.Inherited {
if v57 > 0 {
out.RawByte(',')
}
if v58 == nil {
out.RawString("null")
} else {
(*v58).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
}
if len(in.CSSKeyframesRules) != 0 {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"cssKeyframesRules\":")
if in.CSSKeyframesRules == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
out.RawByte('[')
for v59, v60 := range in.CSSKeyframesRules {
if v59 > 0 {
out.RawByte(',')
}
if v60 == nil {
out.RawString("null")
} else {
(*v60).MarshalEasyJSON(out)
}
}
out.RawByte(']')
2017-01-24 15:09:23 +00:00
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetMatchedStylesForNodeReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetMatchedStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetMatchedStylesForNodeReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetMatchedStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(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
}
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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(out *jwriter.Writer, in GetMatchedStylesForNodeParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"nodeId\":")
out.Int64(int64(in.NodeID))
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetMatchedStylesForNodeParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetMatchedStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetMatchedStylesForNodeParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetMatchedStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(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 {
case "inlineStyle":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.InlineStyle = nil
2017-01-24 15:09:23 +00:00
} else {
if out.InlineStyle == nil {
out.InlineStyle = new(Style)
2017-01-24 15:09:23 +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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(out *jwriter.Writer, in GetInlineStylesForNodeReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.InlineStyle != nil {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"inlineStyle\":")
if in.InlineStyle == nil {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
(*in.InlineStyle).MarshalEasyJSON(out)
}
}
if in.AttributesStyle != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"attributesStyle\":")
if in.AttributesStyle == nil {
out.RawString("null")
} else {
(*in.AttributesStyle).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetInlineStylesForNodeReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetInlineStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetInlineStylesForNodeReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetInlineStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(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()
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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(out *jwriter.Writer, in GetInlineStylesForNodeParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"nodeId\":")
out.Int64(int64(in.NodeID))
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetInlineStylesForNodeParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetInlineStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetInlineStylesForNodeParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetInlineStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(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 {
case "computedStyle":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.ComputedStyle = nil
2017-01-24 15:09:23 +00:00
} else {
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
}
for !in.IsDelim(']') {
var v61 *ComputedProperty
if in.IsNull() {
in.Skip()
v61 = nil
} else {
if v61 == nil {
v61 = new(ComputedProperty)
}
(*v61).UnmarshalEasyJSON(in)
}
out.ComputedStyle = append(out.ComputedStyle, v61)
in.WantComma()
}
in.Delim(']')
2017-01-24 15:09:23 +00:00
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(out *jwriter.Writer, in GetComputedStyleForNodeReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if len(in.ComputedStyle) != 0 {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"computedStyle\":")
if in.ComputedStyle == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
out.RawByte('[')
for v62, v63 := range in.ComputedStyle {
if v62 > 0 {
out.RawByte(',')
}
if v63 == nil {
out.RawString("null")
} else {
(*v63).MarshalEasyJSON(out)
}
}
out.RawByte(']')
2017-01-24 15:09:23 +00:00
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetComputedStyleForNodeReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetComputedStyleForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetComputedStyleForNodeReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetComputedStyleForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(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 {
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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(out *jwriter.Writer, in GetComputedStyleForNodeParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"nodeId\":")
out.Int64(int64(in.NodeID))
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetComputedStyleForNodeParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetComputedStyleForNodeParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetComputedStyleForNodeParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetComputedStyleForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(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 {
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(']') {
var v64 string
v64 = string(in.String())
out.BackgroundColors = append(out.BackgroundColors, v64)
in.WantComma()
}
in.Delim(']')
}
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(out *jwriter.Writer, in GetBackgroundColorsReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if len(in.BackgroundColors) != 0 {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"backgroundColors\":")
if in.BackgroundColors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v65, v66 := range in.BackgroundColors {
if v65 > 0 {
out.RawByte(',')
}
out.String(string(v66))
}
out.RawByte(']')
}
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetBackgroundColorsReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetBackgroundColorsReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetBackgroundColorsReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetBackgroundColorsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(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 {
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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(out *jwriter.Writer, in GetBackgroundColorsParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"nodeId\":")
out.Int64(int64(in.NodeID))
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetBackgroundColorsParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetBackgroundColorsParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetBackgroundColorsParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetBackgroundColorsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(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 {
case "nodeId":
(out.NodeID).UnmarshalEasyJSON(in)
case "forcedPseudoClasses":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.ForcedPseudoClasses = nil
2017-01-24 15:09:23 +00:00
} else {
in.Delim('[')
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 {
out.ForcedPseudoClasses = (out.ForcedPseudoClasses)[:0]
2017-01-24 15:09:23 +00:00
}
for !in.IsDelim(']') {
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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(out *jwriter.Writer, in ForcePseudoStateParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"nodeId\":")
out.Int64(int64(in.NodeID))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"forcedPseudoClasses\":")
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(',')
2017-01-24 15:09:23 +00:00
}
(v69).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
out.RawByte(']')
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v ForcePseudoStateParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v ForcePseudoStateParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *ForcePseudoStateParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ForcePseudoStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(out *jwriter.Writer, in EventStyleSheetRemoved) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.StyleSheetID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EventStyleSheetRemoved) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventStyleSheetRemoved) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventStyleSheetRemoved) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventStyleSheetRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(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 {
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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(out *jwriter.Writer, in EventStyleSheetChanged) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.StyleSheetID != "" {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EventStyleSheetChanged) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventStyleSheetChanged) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventStyleSheetChanged) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventStyleSheetChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(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 {
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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(out *jwriter.Writer, in EventStyleSheetAdded) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.Header != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"header\":")
if in.Header == nil {
out.RawString("null")
} else {
(*in.Header).MarshalEasyJSON(out)
}
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EventStyleSheetAdded) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventStyleSheetAdded) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventStyleSheetAdded) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventStyleSheetAdded) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(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
func (v EventMediaQueryResultChanged) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventMediaQueryResultChanged) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventMediaQueryResultChanged) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventMediaQueryResultChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(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
func (v EventFontsUpdated) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventFontsUpdated) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventFontsUpdated) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventFontsUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(out *jwriter.Writer, in EnableParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EnableParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EnableParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(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
func (v DisableParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *DisableParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(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 {
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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(out *jwriter.Writer, in CreateStyleSheetReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.StyleSheetID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v CreateStyleSheetReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v CreateStyleSheetReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *CreateStyleSheetReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CreateStyleSheetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(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 {
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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(out *jwriter.Writer, in CreateStyleSheetParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"frameId\":")
out.String(string(in.FrameID))
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v CreateStyleSheetParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v CreateStyleSheetParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *CreateStyleSheetParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CreateStyleSheetParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(in *jlexer.Lexer, out *ComputedProperty) {
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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(out *jwriter.Writer, in ComputedProperty) {
2017-01-26 07:28:34 +00:00
out.RawByte('{')
first := true
_ = first
if in.Name != "" {
2017-01-26 07:28:34 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"name\":")
out.String(string(in.Name))
2017-01-26 07:28:34 +00:00
}
if in.Value != "" {
2017-01-26 07:28:34 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"value\":")
out.String(string(in.Value))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v ComputedProperty) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v ComputedProperty) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *ComputedProperty) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ComputedProperty) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(in *jlexer.Lexer, out *CollectClassNamesReturns) {
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 "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{}
}
} else {
out.ClassNames = (out.ClassNames)[:0]
}
for !in.IsDelim(']') {
var v70 string
v70 = string(in.String())
out.ClassNames = append(out.ClassNames, v70)
in.WantComma()
}
in.Delim(']')
}
default:
in.SkipRecursive()
}
in.WantComma()
2017-01-24 15:09:23 +00:00
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(out *jwriter.Writer, in CollectClassNamesReturns) {
out.RawByte('{')
first := true
_ = first
if len(in.ClassNames) != 0 {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"classNames\":")
if in.ClassNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
out.RawByte('[')
for v71, v72 := range in.ClassNames {
if v71 > 0 {
2017-01-24 15:09:23 +00:00
out.RawByte(',')
}
out.String(string(v72))
2017-01-24 15:09:23 +00:00
}
out.RawByte(']')
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v CollectClassNamesReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v CollectClassNamesReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *CollectClassNamesReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CollectClassNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(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 {
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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(out *jwriter.Writer, in CollectClassNamesParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v CollectClassNamesParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v CollectClassNamesParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *CollectClassNamesParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CollectClassNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(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 {
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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(out *jwriter.Writer, in AddRuleReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.Rule != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"rule\":")
if in.Rule == nil {
out.RawString("null")
} else {
(*in.Rule).MarshalEasyJSON(out)
}
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v AddRuleReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v AddRuleReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *AddRuleReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *AddRuleReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(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 {
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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(out *jwriter.Writer, in AddRuleParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"styleSheetId\":")
out.String(string(in.StyleSheetID))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"ruleText\":")
out.String(string(in.RuleText))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"location\":")
if in.Location == nil {
out.RawString("null")
} else {
(*in.Location).MarshalEasyJSON(out)
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v AddRuleParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v AddRuleParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *AddRuleParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *AddRuleParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(l, v)
2017-01-24 15:09:23 +00:00
}