chromedp/cdp/debugger/easyjson.go

4389 lines
102 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 debugger
import (
json "encoding/json"
runtime "github.com/knq/chromedp/cdp/runtime"
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 easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger(in *jlexer.Lexer, out *StepOverParams) {
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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger(out *jwriter.Writer, in StepOverParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v StepOverParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v StepOverParams) MarshalEasyJSON(w *jwriter.Writer) {
2017-01-24 15:09:23 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *StepOverParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *StepOverParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-01-24 15:09:23 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger1(in *jlexer.Lexer, out *StepOutParams) {
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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger1(out *jwriter.Writer, in StepOutParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v StepOutParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger1(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v StepOutParams) MarshalEasyJSON(w *jwriter.Writer) {
2017-01-24 15:09:23 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger1(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *StepOutParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger1(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *StepOutParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-01-24 15:09:23 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger1(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger2(in *jlexer.Lexer, out *StepIntoParams) {
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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger2(out *jwriter.Writer, in StepIntoParams) {
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v StepIntoParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger2(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v StepIntoParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger2(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *StepIntoParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger2(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *StepIntoParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger2(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger3(in *jlexer.Lexer, out *SetVariableValueParams) {
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 "scopeNumber":
out.ScopeNumber = int64(in.Int64())
case "variableName":
out.VariableName = string(in.String())
case "newValue":
if in.IsNull() {
in.Skip()
out.NewValue = nil
} else {
if out.NewValue == nil {
out.NewValue = new(runtime.CallArgument)
}
(*out.NewValue).UnmarshalEasyJSON(in)
}
case "callFrameId":
out.CallFrameID = CallFrameID(in.String())
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger3(out *jwriter.Writer, in SetVariableValueParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"scopeNumber\":")
out.Int64(int64(in.ScopeNumber))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"variableName\":")
out.String(string(in.VariableName))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"newValue\":")
if in.NewValue == nil {
out.RawString("null")
} else {
(*in.NewValue).MarshalEasyJSON(out)
}
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"callFrameId\":")
out.String(string(in.CallFrameID))
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetVariableValueParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger3(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetVariableValueParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger3(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SetVariableValueParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger3(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetVariableValueParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger3(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger4(in *jlexer.Lexer, out *SetSkipAllPausesParams) {
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 "skip":
out.Skip = bool(in.Bool())
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(out *jwriter.Writer, in SetSkipAllPausesParams) {
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("\"skip\":")
out.Bool(bool(in.Skip))
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetSkipAllPausesParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetSkipAllPausesParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SetSkipAllPausesParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger4(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetSkipAllPausesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger4(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger5(in *jlexer.Lexer, out *SetScriptSourceReturns) {
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 "callFrames":
if in.IsNull() {
in.Skip()
out.CallFrames = nil
} else {
in.Delim('[')
if out.CallFrames == nil {
if !in.IsDelim(']') {
out.CallFrames = make([]*CallFrame, 0, 8)
} else {
out.CallFrames = []*CallFrame{}
}
2017-01-24 15:09:23 +00:00
} else {
out.CallFrames = (out.CallFrames)[:0]
2017-01-24 15:09:23 +00:00
}
for !in.IsDelim(']') {
var v1 *CallFrame
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
v1 = nil
2017-01-24 15:09:23 +00:00
} else {
if v1 == nil {
v1 = new(CallFrame)
}
(*v1).UnmarshalEasyJSON(in)
}
out.CallFrames = append(out.CallFrames, v1)
in.WantComma()
}
in.Delim(']')
2017-01-24 15:09:23 +00:00
}
case "stackChanged":
out.StackChanged = bool(in.Bool())
case "asyncStackTrace":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.AsyncStackTrace = nil
2017-01-24 15:09:23 +00:00
} else {
if out.AsyncStackTrace == nil {
out.AsyncStackTrace = new(runtime.StackTrace)
2017-01-24 15:09:23 +00:00
}
(*out.AsyncStackTrace).UnmarshalEasyJSON(in)
2017-01-24 15:09:23 +00:00
}
case "exceptionDetails":
if in.IsNull() {
in.Skip()
out.ExceptionDetails = nil
} else {
if out.ExceptionDetails == nil {
out.ExceptionDetails = new(runtime.ExceptionDetails)
}
(*out.ExceptionDetails).UnmarshalEasyJSON(in)
}
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger5(out *jwriter.Writer, in SetScriptSourceReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if len(in.CallFrames) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"callFrames\":")
if in.CallFrames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v2, v3 := range in.CallFrames {
if v2 > 0 {
2017-01-24 15:09:23 +00:00
out.RawByte(',')
}
if v3 == nil {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
(*v3).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
out.RawByte(']')
}
}
if in.StackChanged {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"stackChanged\":")
out.Bool(bool(in.StackChanged))
2017-01-24 15:09:23 +00:00
}
if in.AsyncStackTrace != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"asyncStackTrace\":")
if in.AsyncStackTrace == nil {
out.RawString("null")
} else {
(*in.AsyncStackTrace).MarshalEasyJSON(out)
}
2017-01-24 15:09:23 +00:00
}
if in.ExceptionDetails != nil {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"exceptionDetails\":")
if in.ExceptionDetails == nil {
out.RawString("null")
} else {
(*in.ExceptionDetails).MarshalEasyJSON(out)
}
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetScriptSourceReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger5(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetScriptSourceReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger5(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SetScriptSourceReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger5(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetScriptSourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger5(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger6(in *jlexer.Lexer, out *SetScriptSourceParams) {
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 "scriptId":
out.ScriptID = runtime.ScriptID(in.String())
case "scriptSource":
out.ScriptSource = string(in.String())
case "dryRun":
out.DryRun = bool(in.Bool())
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger6(out *jwriter.Writer, in SetScriptSourceParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"scriptId\":")
out.String(string(in.ScriptID))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"scriptSource\":")
out.String(string(in.ScriptSource))
if in.DryRun {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"dryRun\":")
out.Bool(bool(in.DryRun))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetScriptSourceParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger6(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetScriptSourceParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger6(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SetScriptSourceParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger6(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetScriptSourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger6(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger7(in *jlexer.Lexer, out *SetPauseOnExceptionsParams) {
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 "state":
(out.State).UnmarshalEasyJSON(in)
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger7(out *jwriter.Writer, in SetPauseOnExceptionsParams) {
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("\"state\":")
(in.State).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetPauseOnExceptionsParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger7(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetPauseOnExceptionsParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger7(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SetPauseOnExceptionsParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger7(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetPauseOnExceptionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger7(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger8(in *jlexer.Lexer, out *SetBreakpointsActiveParams) {
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 "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()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger8(out *jwriter.Writer, in SetBreakpointsActiveParams) {
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("\"active\":")
out.Bool(bool(in.Active))
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetBreakpointsActiveParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger8(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetBreakpointsActiveParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger8(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SetBreakpointsActiveParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger8(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetBreakpointsActiveParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger8(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger9(in *jlexer.Lexer, out *SetBreakpointReturns) {
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 "breakpointId":
out.BreakpointID = BreakpointID(in.String())
case "actualLocation":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.ActualLocation = nil
2017-01-24 15:09:23 +00:00
} else {
if out.ActualLocation == nil {
out.ActualLocation = new(Location)
}
(*out.ActualLocation).UnmarshalEasyJSON(in)
2017-01-24 15:09:23 +00:00
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(out *jwriter.Writer, in SetBreakpointReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.BreakpointID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"breakpointId\":")
out.String(string(in.BreakpointID))
}
if in.ActualLocation != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"actualLocation\":")
if in.ActualLocation == nil {
out.RawString("null")
} else {
(*in.ActualLocation).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetBreakpointReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetBreakpointReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SetBreakpointReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger9(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetBreakpointReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger9(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger10(in *jlexer.Lexer, out *SetBreakpointParams) {
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 "location":
if in.IsNull() {
in.Skip()
out.Location = nil
} else {
if out.Location == nil {
out.Location = new(Location)
2017-01-24 15:09:23 +00:00
}
(*out.Location).UnmarshalEasyJSON(in)
2017-01-24 15:09:23 +00:00
}
case "condition":
out.Condition = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger10(out *jwriter.Writer, in SetBreakpointParams) {
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"location\":")
if in.Location == nil {
out.RawString("null")
} else {
(*in.Location).MarshalEasyJSON(out)
}
if in.Condition != "" {
if !first {
out.RawByte(',')
2017-01-24 15:09:23 +00:00
}
first = false
out.RawString("\"condition\":")
out.String(string(in.Condition))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetBreakpointParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger10(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger10(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SetBreakpointParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger10(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger10(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger11(in *jlexer.Lexer, out *SetBreakpointByURLReturns) {
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 "breakpointId":
out.BreakpointID = BreakpointID(in.String())
case "locations":
if in.IsNull() {
in.Skip()
out.Locations = nil
} else {
in.Delim('[')
if out.Locations == nil {
if !in.IsDelim(']') {
out.Locations = make([]*Location, 0, 8)
} else {
out.Locations = []*Location{}
}
} else {
out.Locations = (out.Locations)[:0]
}
for !in.IsDelim(']') {
var v4 *Location
if in.IsNull() {
in.Skip()
v4 = nil
} else {
if v4 == nil {
v4 = new(Location)
}
(*v4).UnmarshalEasyJSON(in)
}
out.Locations = append(out.Locations, v4)
in.WantComma()
}
in.Delim(']')
}
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger11(out *jwriter.Writer, in SetBreakpointByURLReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.BreakpointID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"breakpointId\":")
out.String(string(in.BreakpointID))
}
if len(in.Locations) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"locations\":")
if in.Locations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v5, v6 := range in.Locations {
if v5 > 0 {
out.RawByte(',')
}
if v6 == nil {
out.RawString("null")
} else {
(*v6).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetBreakpointByURLReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger11(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetBreakpointByURLReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger11(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SetBreakpointByURLReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger11(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetBreakpointByURLReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger11(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger12(in *jlexer.Lexer, out *SetBreakpointByURLParams) {
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 "lineNumber":
out.LineNumber = int64(in.Int64())
case "url":
out.URL = string(in.String())
case "urlRegex":
out.URLRegex = string(in.String())
case "columnNumber":
out.ColumnNumber = int64(in.Int64())
case "condition":
out.Condition = string(in.String())
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger12(out *jwriter.Writer, in SetBreakpointByURLParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"lineNumber\":")
out.Int64(int64(in.LineNumber))
if in.URL != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"url\":")
out.String(string(in.URL))
2017-01-24 15:09:23 +00:00
}
if in.URLRegex != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"urlRegex\":")
out.String(string(in.URLRegex))
}
if in.ColumnNumber != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"columnNumber\":")
out.Int64(int64(in.ColumnNumber))
}
if in.Condition != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"condition\":")
out.String(string(in.Condition))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetBreakpointByURLParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger12(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetBreakpointByURLParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger12(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SetBreakpointByURLParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger12(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetBreakpointByURLParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger12(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger13(in *jlexer.Lexer, out *SetBlackboxedRangesParams) {
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 "scriptId":
out.ScriptID = runtime.ScriptID(in.String())
case "positions":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.Positions = nil
2017-01-24 15:09:23 +00:00
} else {
in.Delim('[')
if out.Positions == nil {
if !in.IsDelim(']') {
out.Positions = make([]*ScriptPosition, 0, 8)
} else {
out.Positions = []*ScriptPosition{}
}
} else {
out.Positions = (out.Positions)[:0]
2017-01-24 15:09:23 +00:00
}
for !in.IsDelim(']') {
var v7 *ScriptPosition
if in.IsNull() {
in.Skip()
v7 = nil
} else {
if v7 == nil {
v7 = new(ScriptPosition)
}
(*v7).UnmarshalEasyJSON(in)
}
out.Positions = append(out.Positions, v7)
in.WantComma()
2017-01-24 15:09:23 +00:00
}
in.Delim(']')
2017-01-24 15:09:23 +00:00
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger13(out *jwriter.Writer, in SetBlackboxedRangesParams) {
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"scriptId\":")
out.String(string(in.ScriptID))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"positions\":")
if in.Positions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v8, v9 := range in.Positions {
if v8 > 0 {
out.RawByte(',')
}
if v9 == nil {
out.RawString("null")
} else {
(*v9).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetBlackboxedRangesParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger13(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetBlackboxedRangesParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger13(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SetBlackboxedRangesParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger13(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetBlackboxedRangesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger13(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger14(in *jlexer.Lexer, out *SetBlackboxPatternsParams) {
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 "patterns":
if in.IsNull() {
in.Skip()
out.Patterns = nil
} else {
in.Delim('[')
if out.Patterns == nil {
if !in.IsDelim(']') {
out.Patterns = make([]string, 0, 4)
} else {
out.Patterns = []string{}
}
} else {
out.Patterns = (out.Patterns)[:0]
}
for !in.IsDelim(']') {
var v10 string
v10 = string(in.String())
out.Patterns = append(out.Patterns, v10)
in.WantComma()
}
in.Delim(']')
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(out *jwriter.Writer, in SetBlackboxPatternsParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"patterns\":")
if in.Patterns == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v11, v12 := range in.Patterns {
if v11 > 0 {
out.RawByte(',')
}
out.String(string(v12))
}
out.RawByte(']')
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetBlackboxPatternsParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetBlackboxPatternsParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SetBlackboxPatternsParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger14(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetBlackboxPatternsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger14(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger15(in *jlexer.Lexer, out *SetAsyncCallStackDepthParams) {
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 "maxDepth":
out.MaxDepth = int64(in.Int64())
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(out *jwriter.Writer, in SetAsyncCallStackDepthParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"maxDepth\":")
out.Int64(int64(in.MaxDepth))
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetAsyncCallStackDepthParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetAsyncCallStackDepthParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SetAsyncCallStackDepthParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger15(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetAsyncCallStackDepthParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger15(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(in *jlexer.Lexer, out *SearchMatch) {
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 "lineNumber":
out.LineNumber = float64(in.Float64())
case "lineContent":
out.LineContent = string(in.String())
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(out *jwriter.Writer, in SearchMatch) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.LineNumber != 0 {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"lineNumber\":")
out.Float64(float64(in.LineNumber))
}
if in.LineContent != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"lineContent\":")
out.String(string(in.LineContent))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SearchMatch) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SearchMatch) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SearchMatch) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SearchMatch) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger17(in *jlexer.Lexer, out *SearchInContentReturns) {
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 "result":
if in.IsNull() {
in.Skip()
out.Result = nil
} else {
in.Delim('[')
if out.Result == nil {
if !in.IsDelim(']') {
out.Result = make([]*SearchMatch, 0, 8)
} else {
out.Result = []*SearchMatch{}
}
} else {
out.Result = (out.Result)[:0]
}
for !in.IsDelim(']') {
var v13 *SearchMatch
if in.IsNull() {
in.Skip()
v13 = nil
} else {
if v13 == nil {
v13 = new(SearchMatch)
}
(*v13).UnmarshalEasyJSON(in)
}
out.Result = append(out.Result, v13)
in.WantComma()
}
in.Delim(']')
}
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger17(out *jwriter.Writer, in SearchInContentReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if len(in.Result) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"result\":")
if in.Result == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v14, v15 := range in.Result {
if v14 > 0 {
out.RawByte(',')
}
if v15 == nil {
out.RawString("null")
} else {
(*v15).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SearchInContentReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger17(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SearchInContentReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger17(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SearchInContentReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger17(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SearchInContentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger17(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger18(in *jlexer.Lexer, out *SearchInContentParams) {
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 "scriptId":
out.ScriptID = runtime.ScriptID(in.String())
case "query":
out.Query = string(in.String())
case "caseSensitive":
out.CaseSensitive = bool(in.Bool())
case "isRegex":
out.IsRegex = bool(in.Bool())
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger18(out *jwriter.Writer, in SearchInContentParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"scriptId\":")
out.String(string(in.ScriptID))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"query\":")
out.String(string(in.Query))
if in.CaseSensitive {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"caseSensitive\":")
out.Bool(bool(in.CaseSensitive))
2017-01-24 15:09:23 +00:00
}
if in.IsRegex {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"isRegex\":")
out.Bool(bool(in.IsRegex))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SearchInContentParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger18(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SearchInContentParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger18(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SearchInContentParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger18(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SearchInContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger18(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger19(in *jlexer.Lexer, out *ScriptPosition) {
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 "lineNumber":
out.LineNumber = int64(in.Int64())
case "columnNumber":
out.ColumnNumber = int64(in.Int64())
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger19(out *jwriter.Writer, in ScriptPosition) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.LineNumber != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"lineNumber\":")
out.Int64(int64(in.LineNumber))
}
if in.ColumnNumber != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"columnNumber\":")
out.Int64(int64(in.ColumnNumber))
2017-01-24 15:09:23 +00:00
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v ScriptPosition) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger19(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v ScriptPosition) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger19(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *ScriptPosition) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger19(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ScriptPosition) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger19(l, v)
2017-01-24 15:09:23 +00:00
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger20(in *jlexer.Lexer, out *Scope) {
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 "type":
(out.Type).UnmarshalEasyJSON(in)
case "object":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.Object = nil
2017-01-24 15:09:23 +00:00
} else {
if out.Object == nil {
out.Object = new(runtime.RemoteObject)
}
(*out.Object).UnmarshalEasyJSON(in)
2017-01-24 15:09:23 +00:00
}
case "name":
out.Name = string(in.String())
case "startLocation":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.StartLocation = nil
2017-01-24 15:09:23 +00:00
} else {
if out.StartLocation == nil {
out.StartLocation = new(Location)
2017-01-24 15:09:23 +00:00
}
(*out.StartLocation).UnmarshalEasyJSON(in)
2017-01-24 15:09:23 +00:00
}
case "endLocation":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.EndLocation = nil
2017-01-24 15:09:23 +00:00
} else {
if out.EndLocation == nil {
out.EndLocation = new(Location)
2017-01-24 15:09:23 +00:00
}
(*out.EndLocation).UnmarshalEasyJSON(in)
2017-01-24 15:09:23 +00:00
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(out *jwriter.Writer, in Scope) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.Type != "" {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"type\":")
(in.Type).MarshalEasyJSON(out)
}
if in.Object != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"object\":")
if in.Object == nil {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
(*in.Object).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
if in.Name != "" {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"name\":")
out.String(string(in.Name))
2017-01-24 15:09:23 +00:00
}
if in.StartLocation != nil {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"startLocation\":")
if in.StartLocation == nil {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
(*in.StartLocation).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
if in.EndLocation != nil {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"endLocation\":")
if in.EndLocation == nil {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
(*in.EndLocation).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v Scope) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v Scope) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *Scope) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger20(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *Scope) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger20(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger21(in *jlexer.Lexer, out *ScheduleStepIntoAsyncParams) {
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-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger21(out *jwriter.Writer, in ScheduleStepIntoAsyncParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
2017-03-13 02:29:26 +00:00
func (v ScheduleStepIntoAsyncParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger21(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
2017-03-13 02:29:26 +00:00
func (v ScheduleStepIntoAsyncParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger21(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
2017-03-13 02:29:26 +00:00
func (v *ScheduleStepIntoAsyncParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger21(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
2017-03-13 02:29:26 +00:00
func (v *ScheduleStepIntoAsyncParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger21(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger22(in *jlexer.Lexer, out *ResumeParams) {
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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger22(out *jwriter.Writer, in ResumeParams) {
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v ResumeParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger22(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v ResumeParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger22(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *ResumeParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger22(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ResumeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger22(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger23(in *jlexer.Lexer, out *RestartFrameReturns) {
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 "callFrames":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.CallFrames = nil
2017-01-24 15:09:23 +00:00
} else {
in.Delim('[')
if out.CallFrames == nil {
if !in.IsDelim(']') {
out.CallFrames = make([]*CallFrame, 0, 8)
} else {
out.CallFrames = []*CallFrame{}
}
2017-01-24 15:09:23 +00:00
} else {
out.CallFrames = (out.CallFrames)[:0]
2017-01-24 15:09:23 +00:00
}
for !in.IsDelim(']') {
var v16 *CallFrame
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
v16 = nil
2017-01-24 15:09:23 +00:00
} else {
if v16 == nil {
v16 = new(CallFrame)
2017-01-24 15:09:23 +00:00
}
(*v16).UnmarshalEasyJSON(in)
2017-01-24 15:09:23 +00:00
}
out.CallFrames = append(out.CallFrames, v16)
2017-01-24 15:09:23 +00:00
in.WantComma()
}
in.Delim(']')
}
case "asyncStackTrace":
if in.IsNull() {
in.Skip()
out.AsyncStackTrace = nil
} else {
if out.AsyncStackTrace == nil {
out.AsyncStackTrace = new(runtime.StackTrace)
}
(*out.AsyncStackTrace).UnmarshalEasyJSON(in)
}
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger23(out *jwriter.Writer, in RestartFrameReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if len(in.CallFrames) != 0 {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"callFrames\":")
if in.CallFrames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
out.RawByte('[')
for v17, v18 := range in.CallFrames {
if v17 > 0 {
2017-01-24 15:09:23 +00:00
out.RawByte(',')
}
if v18 == nil {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
(*v18).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
out.RawByte(']')
}
}
if in.AsyncStackTrace != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"asyncStackTrace\":")
if in.AsyncStackTrace == nil {
out.RawString("null")
} else {
(*in.AsyncStackTrace).MarshalEasyJSON(out)
}
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v RestartFrameReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger23(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v RestartFrameReturns) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger23(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *RestartFrameReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger23(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *RestartFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger23(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger24(in *jlexer.Lexer, out *RestartFrameParams) {
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 "callFrameId":
out.CallFrameID = CallFrameID(in.String())
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger24(out *jwriter.Writer, in RestartFrameParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"callFrameId\":")
out.String(string(in.CallFrameID))
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v RestartFrameParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger24(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v RestartFrameParams) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger24(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *RestartFrameParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger24(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *RestartFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger24(l, v)
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger25(in *jlexer.Lexer, out *RemoveBreakpointParams) {
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 "breakpointId":
out.BreakpointID = BreakpointID(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger25(out *jwriter.Writer, in RemoveBreakpointParams) {
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"breakpointId\":")
out.String(string(in.BreakpointID))
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v RemoveBreakpointParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger25(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v RemoveBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger25(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *RemoveBreakpointParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger25(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *RemoveBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger25(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger26(in *jlexer.Lexer, out *PauseParams) {
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-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger26(out *jwriter.Writer, in PauseParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v PauseParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger26(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v PauseParams) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger26(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *PauseParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger26(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *PauseParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger26(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger27(in *jlexer.Lexer, out *Location) {
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 "scriptId":
out.ScriptID = runtime.ScriptID(in.String())
case "lineNumber":
out.LineNumber = int64(in.Int64())
case "columnNumber":
out.ColumnNumber = int64(in.Int64())
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger27(out *jwriter.Writer, in Location) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.ScriptID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"scriptId\":")
out.String(string(in.ScriptID))
}
if in.LineNumber != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"lineNumber\":")
out.Int64(int64(in.LineNumber))
}
if in.ColumnNumber != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"columnNumber\":")
out.Int64(int64(in.ColumnNumber))
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v Location) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger27(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v Location) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger27(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *Location) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger27(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *Location) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger27(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger28(in *jlexer.Lexer, out *GetScriptSourceReturns) {
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 "scriptSource":
out.ScriptSource = string(in.String())
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger28(out *jwriter.Writer, in GetScriptSourceReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.ScriptSource != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"scriptSource\":")
out.String(string(in.ScriptSource))
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetScriptSourceReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger28(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetScriptSourceReturns) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger28(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetScriptSourceReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger28(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetScriptSourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger28(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger29(in *jlexer.Lexer, out *GetScriptSourceParams) {
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 "scriptId":
out.ScriptID = runtime.ScriptID(in.String())
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger29(out *jwriter.Writer, in GetScriptSourceParams) {
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"scriptId\":")
out.String(string(in.ScriptID))
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetScriptSourceParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger29(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetScriptSourceParams) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger29(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetScriptSourceParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger29(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetScriptSourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger29(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(in *jlexer.Lexer, out *GetPossibleBreakpointsReturns) {
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 "locations":
if in.IsNull() {
in.Skip()
out.Locations = nil
} else {
in.Delim('[')
if out.Locations == nil {
if !in.IsDelim(']') {
2017-03-13 02:29:26 +00:00
out.Locations = make([]*BreakLocation, 0, 8)
} else {
2017-03-13 02:29:26 +00:00
out.Locations = []*BreakLocation{}
}
} else {
out.Locations = (out.Locations)[:0]
}
for !in.IsDelim(']') {
2017-03-13 02:29:26 +00:00
var v19 *BreakLocation
if in.IsNull() {
in.Skip()
v19 = nil
} else {
if v19 == nil {
2017-03-13 02:29:26 +00:00
v19 = new(BreakLocation)
}
(*v19).UnmarshalEasyJSON(in)
}
out.Locations = append(out.Locations, v19)
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-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(out *jwriter.Writer, in GetPossibleBreakpointsReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if len(in.Locations) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"locations\":")
if in.Locations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v20, v21 := range in.Locations {
if v20 > 0 {
out.RawByte(',')
}
if v21 == nil {
out.RawString("null")
} else {
(*v21).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetPossibleBreakpointsReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetPossibleBreakpointsReturns) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetPossibleBreakpointsReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetPossibleBreakpointsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger31(in *jlexer.Lexer, out *GetPossibleBreakpointsParams) {
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 "start":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.Start = nil
2017-01-24 15:09:23 +00:00
} else {
if out.Start == nil {
out.Start = new(Location)
2017-01-24 15:09:23 +00:00
}
(*out.Start).UnmarshalEasyJSON(in)
}
case "end":
if in.IsNull() {
in.Skip()
out.End = nil
} else {
if out.End == nil {
out.End = new(Location)
}
(*out.End).UnmarshalEasyJSON(in)
2017-01-24 15:09:23 +00:00
}
2017-03-02 01:16:48 +00:00
case "restrictToFunction":
out.RestrictToFunction = bool(in.Bool())
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger31(out *jwriter.Writer, in GetPossibleBreakpointsParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"start\":")
if in.Start == nil {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
(*in.Start).MarshalEasyJSON(out)
}
if in.End != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"end\":")
if in.End == nil {
out.RawString("null")
} else {
(*in.End).MarshalEasyJSON(out)
}
2017-01-24 15:09:23 +00:00
}
2017-03-02 01:16:48 +00:00
if in.RestrictToFunction {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"restrictToFunction\":")
out.Bool(bool(in.RestrictToFunction))
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetPossibleBreakpointsParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger31(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetPossibleBreakpointsParams) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger31(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetPossibleBreakpointsParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger31(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetPossibleBreakpointsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger31(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger32(in *jlexer.Lexer, out *EventScriptParsed) {
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 "scriptId":
out.ScriptID = runtime.ScriptID(in.String())
case "url":
out.URL = string(in.String())
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())
case "executionContextId":
out.ExecutionContextID = runtime.ExecutionContextID(in.Int64())
case "hash":
out.Hash = string(in.String())
case "executionContextAuxData":
(out.ExecutionContextAuxData).UnmarshalEasyJSON(in)
case "isLiveEdit":
out.IsLiveEdit = bool(in.Bool())
case "sourceMapURL":
out.SourceMapURL = string(in.String())
case "hasSourceURL":
out.HasSourceURL = bool(in.Bool())
case "isModule":
out.IsModule = bool(in.Bool())
2017-03-13 02:29:26 +00:00
case "length":
out.Length = int64(in.Int64())
2017-03-18 16:48:19 +00:00
case "stackTrace":
if in.IsNull() {
in.Skip()
out.StackTrace = nil
} else {
if out.StackTrace == nil {
out.StackTrace = new(runtime.StackTrace)
}
(*out.StackTrace).UnmarshalEasyJSON(in)
}
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger32(out *jwriter.Writer, in EventScriptParsed) {
out.RawByte('{')
first := true
_ = first
if in.ScriptID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"scriptId\":")
out.String(string(in.ScriptID))
}
if in.URL != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"url\":")
out.String(string(in.URL))
}
if in.StartLine != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"startLine\":")
out.Int64(int64(in.StartLine))
}
if in.StartColumn != 0 {
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))
}
if in.EndColumn != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"endColumn\":")
out.Int64(int64(in.EndColumn))
}
if in.ExecutionContextID != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"executionContextId\":")
out.Int64(int64(in.ExecutionContextID))
}
if in.Hash != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"hash\":")
out.String(string(in.Hash))
2017-01-24 15:09:23 +00:00
}
if (in.ExecutionContextAuxData).IsDefined() {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"executionContextAuxData\":")
(in.ExecutionContextAuxData).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
if in.IsLiveEdit {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"isLiveEdit\":")
out.Bool(bool(in.IsLiveEdit))
}
if in.SourceMapURL != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"sourceMapURL\":")
out.String(string(in.SourceMapURL))
}
if in.HasSourceURL {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"hasSourceURL\":")
out.Bool(bool(in.HasSourceURL))
}
if in.IsModule {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"isModule\":")
out.Bool(bool(in.IsModule))
}
2017-03-13 02:29:26 +00:00
if in.Length != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"length\":")
out.Int64(int64(in.Length))
}
2017-03-18 16:48:19 +00:00
if in.StackTrace != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"stackTrace\":")
if in.StackTrace == nil {
out.RawString("null")
} else {
(*in.StackTrace).MarshalEasyJSON(out)
}
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EventScriptParsed) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger32(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventScriptParsed) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger32(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventScriptParsed) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger32(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventScriptParsed) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger32(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger33(in *jlexer.Lexer, out *EventScriptFailedToParse) {
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 "scriptId":
out.ScriptID = runtime.ScriptID(in.String())
case "url":
out.URL = string(in.String())
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())
case "executionContextId":
out.ExecutionContextID = runtime.ExecutionContextID(in.Int64())
case "hash":
out.Hash = string(in.String())
case "executionContextAuxData":
(out.ExecutionContextAuxData).UnmarshalEasyJSON(in)
case "sourceMapURL":
out.SourceMapURL = string(in.String())
case "hasSourceURL":
out.HasSourceURL = bool(in.Bool())
case "isModule":
out.IsModule = bool(in.Bool())
2017-03-13 02:29:26 +00:00
case "length":
out.Length = int64(in.Int64())
2017-03-18 16:48:19 +00:00
case "stackTrace":
if in.IsNull() {
in.Skip()
out.StackTrace = nil
} else {
if out.StackTrace == nil {
out.StackTrace = new(runtime.StackTrace)
}
(*out.StackTrace).UnmarshalEasyJSON(in)
}
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger33(out *jwriter.Writer, in EventScriptFailedToParse) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.ScriptID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"scriptId\":")
out.String(string(in.ScriptID))
2017-01-24 15:09:23 +00:00
}
if in.URL != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"url\":")
out.String(string(in.URL))
2017-01-24 15:09:23 +00:00
}
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))
}
if in.StartColumn != 0 {
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))
}
if in.EndColumn != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"endColumn\":")
out.Int64(int64(in.EndColumn))
}
if in.ExecutionContextID != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"executionContextId\":")
out.Int64(int64(in.ExecutionContextID))
}
if in.Hash != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"hash\":")
out.String(string(in.Hash))
}
if (in.ExecutionContextAuxData).IsDefined() {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"executionContextAuxData\":")
(in.ExecutionContextAuxData).MarshalEasyJSON(out)
}
if in.SourceMapURL != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"sourceMapURL\":")
out.String(string(in.SourceMapURL))
}
if in.HasSourceURL {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"hasSourceURL\":")
out.Bool(bool(in.HasSourceURL))
}
if in.IsModule {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"isModule\":")
out.Bool(bool(in.IsModule))
}
2017-03-13 02:29:26 +00:00
if in.Length != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"length\":")
out.Int64(int64(in.Length))
}
2017-03-18 16:48:19 +00:00
if in.StackTrace != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"stackTrace\":")
if in.StackTrace == nil {
out.RawString("null")
} else {
(*in.StackTrace).MarshalEasyJSON(out)
}
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EventScriptFailedToParse) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger33(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventScriptFailedToParse) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger33(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventScriptFailedToParse) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger33(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventScriptFailedToParse) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger33(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger34(in *jlexer.Lexer, out *EventResumed) {
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-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger34(out *jwriter.Writer, in EventResumed) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EventResumed) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger34(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventResumed) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger34(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventResumed) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger34(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventResumed) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger34(l, v)
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger35(in *jlexer.Lexer, out *EventPaused) {
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 "callFrames":
if in.IsNull() {
in.Skip()
out.CallFrames = nil
} else {
in.Delim('[')
if out.CallFrames == nil {
if !in.IsDelim(']') {
out.CallFrames = make([]*CallFrame, 0, 8)
} else {
out.CallFrames = []*CallFrame{}
}
} else {
out.CallFrames = (out.CallFrames)[:0]
}
for !in.IsDelim(']') {
var v22 *CallFrame
if in.IsNull() {
in.Skip()
v22 = nil
} else {
if v22 == nil {
v22 = new(CallFrame)
}
(*v22).UnmarshalEasyJSON(in)
}
out.CallFrames = append(out.CallFrames, v22)
in.WantComma()
}
in.Delim(']')
}
case "reason":
(out.Reason).UnmarshalEasyJSON(in)
case "data":
(out.Data).UnmarshalEasyJSON(in)
case "hitBreakpoints":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.HitBreakpoints = nil
2017-01-24 15:09:23 +00:00
} else {
in.Delim('[')
if out.HitBreakpoints == nil {
if !in.IsDelim(']') {
out.HitBreakpoints = make([]string, 0, 4)
} else {
out.HitBreakpoints = []string{}
}
} else {
out.HitBreakpoints = (out.HitBreakpoints)[:0]
2017-01-24 15:09:23 +00:00
}
for !in.IsDelim(']') {
var v23 string
v23 = string(in.String())
out.HitBreakpoints = append(out.HitBreakpoints, v23)
in.WantComma()
}
in.Delim(']')
}
case "asyncStackTrace":
if in.IsNull() {
in.Skip()
out.AsyncStackTrace = nil
} else {
if out.AsyncStackTrace == nil {
out.AsyncStackTrace = new(runtime.StackTrace)
}
(*out.AsyncStackTrace).UnmarshalEasyJSON(in)
2017-01-24 15:09:23 +00:00
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger35(out *jwriter.Writer, in EventPaused) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if len(in.CallFrames) != 0 {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"callFrames\":")
if in.CallFrames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v24, v25 := range in.CallFrames {
if v24 > 0 {
out.RawByte(',')
}
if v25 == nil {
out.RawString("null")
} else {
(*v25).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
2017-01-24 15:09:23 +00:00
}
if in.Reason != "" {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"reason\":")
(in.Reason).MarshalEasyJSON(out)
}
if (in.Data).IsDefined() {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"data\":")
(in.Data).MarshalEasyJSON(out)
}
if len(in.HitBreakpoints) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"hitBreakpoints\":")
if in.HitBreakpoints == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
out.RawByte('[')
for v26, v27 := range in.HitBreakpoints {
if v26 > 0 {
out.RawByte(',')
}
out.String(string(v27))
}
out.RawByte(']')
}
}
if in.AsyncStackTrace != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"asyncStackTrace\":")
if in.AsyncStackTrace == nil {
out.RawString("null")
} else {
(*in.AsyncStackTrace).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EventPaused) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger35(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventPaused) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger35(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventPaused) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger35(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventPaused) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger35(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger36(in *jlexer.Lexer, out *EventBreakpointResolved) {
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 "breakpointId":
out.BreakpointID = BreakpointID(in.String())
2017-01-24 15:09:23 +00:00
case "location":
if in.IsNull() {
in.Skip()
out.Location = nil
} else {
if out.Location == nil {
out.Location = new(Location)
}
(*out.Location).UnmarshalEasyJSON(in)
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger36(out *jwriter.Writer, in EventBreakpointResolved) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.BreakpointID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"breakpointId\":")
out.String(string(in.BreakpointID))
}
if in.Location != nil {
2017-01-24 15:09:23 +00:00
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 EventBreakpointResolved) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger36(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventBreakpointResolved) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger36(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventBreakpointResolved) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger36(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventBreakpointResolved) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger36(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger37(in *jlexer.Lexer, out *EvaluateOnCallFrameReturns) {
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 "result":
2017-01-24 15:09:23 +00:00
if in.IsNull() {
in.Skip()
out.Result = nil
2017-01-24 15:09:23 +00:00
} else {
if out.Result == nil {
out.Result = new(runtime.RemoteObject)
2017-01-24 15:09:23 +00:00
}
(*out.Result).UnmarshalEasyJSON(in)
}
case "exceptionDetails":
if in.IsNull() {
in.Skip()
out.ExceptionDetails = nil
} else {
if out.ExceptionDetails == nil {
out.ExceptionDetails = new(runtime.ExceptionDetails)
2017-01-24 15:09:23 +00:00
}
(*out.ExceptionDetails).UnmarshalEasyJSON(in)
2017-01-24 15:09:23 +00:00
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger37(out *jwriter.Writer, in EvaluateOnCallFrameReturns) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.Result != nil {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"result\":")
if in.Result == nil {
out.RawString("null")
} else {
(*in.Result).MarshalEasyJSON(out)
}
2017-01-24 15:09:23 +00:00
}
if in.ExceptionDetails != nil {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"exceptionDetails\":")
if in.ExceptionDetails == nil {
2017-01-24 15:09:23 +00:00
out.RawString("null")
} else {
(*in.ExceptionDetails).MarshalEasyJSON(out)
2017-01-24 15:09:23 +00:00
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EvaluateOnCallFrameReturns) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger37(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EvaluateOnCallFrameReturns) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger37(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EvaluateOnCallFrameReturns) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger37(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EvaluateOnCallFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger37(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger38(in *jlexer.Lexer, out *EvaluateOnCallFrameParams) {
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 "callFrameId":
out.CallFrameID = CallFrameID(in.String())
case "expression":
out.Expression = string(in.String())
case "objectGroup":
out.ObjectGroup = string(in.String())
case "includeCommandLineAPI":
out.IncludeCommandLineAPI = bool(in.Bool())
case "silent":
out.Silent = bool(in.Bool())
case "returnByValue":
out.ReturnByValue = bool(in.Bool())
case "generatePreview":
out.GeneratePreview = bool(in.Bool())
case "throwOnSideEffect":
out.ThrowOnSideEffect = bool(in.Bool())
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger38(out *jwriter.Writer, in EvaluateOnCallFrameParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"callFrameId\":")
out.String(string(in.CallFrameID))
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"expression\":")
out.String(string(in.Expression))
if in.ObjectGroup != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"objectGroup\":")
out.String(string(in.ObjectGroup))
}
if in.IncludeCommandLineAPI {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"includeCommandLineAPI\":")
out.Bool(bool(in.IncludeCommandLineAPI))
}
if in.Silent {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"silent\":")
out.Bool(bool(in.Silent))
2017-01-24 15:09:23 +00:00
}
if in.ReturnByValue {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"returnByValue\":")
out.Bool(bool(in.ReturnByValue))
2017-01-24 15:09:23 +00:00
}
if in.GeneratePreview {
2017-01-24 15:09:23 +00:00
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"generatePreview\":")
out.Bool(bool(in.GeneratePreview))
2017-01-24 15:09:23 +00:00
}
if in.ThrowOnSideEffect {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"throwOnSideEffect\":")
out.Bool(bool(in.ThrowOnSideEffect))
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EvaluateOnCallFrameParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger38(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EvaluateOnCallFrameParams) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger38(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EvaluateOnCallFrameParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger38(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EvaluateOnCallFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger38(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger39(in *jlexer.Lexer, out *EnableParams) {
2017-01-24 15:09:23 +00:00
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger39(out *jwriter.Writer, in EnableParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EnableParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger39(&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) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger39(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}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger39(&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) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger39(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger40(in *jlexer.Lexer, out *DisableParams) {
2017-01-24 15:09:23 +00:00
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeString()
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger40(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{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger40(&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) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger40(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}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger40(&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) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger40(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger41(in *jlexer.Lexer, out *ContinueToLocationParams) {
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 "location":
if in.IsNull() {
in.Skip()
out.Location = nil
} else {
if out.Location == nil {
out.Location = new(Location)
}
(*out.Location).UnmarshalEasyJSON(in)
}
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger41(out *jwriter.Writer, in ContinueToLocationParams) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
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 ContinueToLocationParams) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger41(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v ContinueToLocationParams) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger41(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *ContinueToLocationParams) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger41(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ContinueToLocationParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger41(l, v)
2017-01-24 15:09:23 +00:00
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger42(in *jlexer.Lexer, out *CallFrame) {
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 "callFrameId":
out.CallFrameID = CallFrameID(in.String())
case "functionName":
out.FunctionName = string(in.String())
case "functionLocation":
if in.IsNull() {
in.Skip()
out.FunctionLocation = nil
} else {
if out.FunctionLocation == nil {
out.FunctionLocation = new(Location)
}
(*out.FunctionLocation).UnmarshalEasyJSON(in)
}
case "location":
if in.IsNull() {
in.Skip()
out.Location = nil
} else {
if out.Location == nil {
out.Location = new(Location)
}
(*out.Location).UnmarshalEasyJSON(in)
}
case "scopeChain":
if in.IsNull() {
in.Skip()
out.ScopeChain = nil
} else {
in.Delim('[')
if out.ScopeChain == nil {
if !in.IsDelim(']') {
out.ScopeChain = make([]*Scope, 0, 8)
} else {
out.ScopeChain = []*Scope{}
}
} else {
out.ScopeChain = (out.ScopeChain)[:0]
}
for !in.IsDelim(']') {
var v28 *Scope
if in.IsNull() {
in.Skip()
v28 = nil
} else {
if v28 == nil {
v28 = new(Scope)
}
(*v28).UnmarshalEasyJSON(in)
}
out.ScopeChain = append(out.ScopeChain, v28)
in.WantComma()
}
in.Delim(']')
}
case "this":
if in.IsNull() {
in.Skip()
out.This = nil
} else {
if out.This == nil {
out.This = new(runtime.RemoteObject)
}
(*out.This).UnmarshalEasyJSON(in)
}
case "returnValue":
if in.IsNull() {
in.Skip()
out.ReturnValue = nil
} else {
if out.ReturnValue == nil {
out.ReturnValue = new(runtime.RemoteObject)
}
(*out.ReturnValue).UnmarshalEasyJSON(in)
}
2017-01-24 15:09:23 +00:00
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
2017-03-13 02:29:26 +00:00
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger42(out *jwriter.Writer, in CallFrame) {
2017-01-24 15:09:23 +00:00
out.RawByte('{')
first := true
_ = first
if in.CallFrameID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"callFrameId\":")
out.String(string(in.CallFrameID))
}
if in.FunctionName != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"functionName\":")
out.String(string(in.FunctionName))
}
if in.FunctionLocation != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"functionLocation\":")
if in.FunctionLocation == nil {
out.RawString("null")
} else {
(*in.FunctionLocation).MarshalEasyJSON(out)
}
}
if in.Location != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"location\":")
if in.Location == nil {
out.RawString("null")
} else {
(*in.Location).MarshalEasyJSON(out)
}
}
if len(in.ScopeChain) != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"scopeChain\":")
if in.ScopeChain == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v29, v30 := range in.ScopeChain {
if v29 > 0 {
out.RawByte(',')
}
if v30 == nil {
out.RawString("null")
} else {
(*v30).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
}
if in.This != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"this\":")
if in.This == nil {
out.RawString("null")
} else {
(*in.This).MarshalEasyJSON(out)
}
}
if in.ReturnValue != nil {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"returnValue\":")
if in.ReturnValue == nil {
out.RawString("null")
} else {
(*in.ReturnValue).MarshalEasyJSON(out)
}
}
2017-01-24 15:09:23 +00:00
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v CallFrame) MarshalJSON() ([]byte, error) {
2017-01-24 15:09:23 +00:00
w := jwriter.Writer{}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger42(&w, v)
2017-01-24 15:09:23 +00:00
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v CallFrame) MarshalEasyJSON(w *jwriter.Writer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger42(w, v)
2017-01-24 15:09:23 +00:00
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *CallFrame) UnmarshalJSON(data []byte) error {
2017-01-24 15:09:23 +00:00
r := jlexer.Lexer{Data: data}
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger42(&r, v)
2017-01-24 15:09:23 +00:00
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CallFrame) UnmarshalEasyJSON(l *jlexer.Lexer) {
2017-03-13 02:29:26 +00:00
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger42(l, v)
}
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger43(in *jlexer.Lexer, out *BreakLocation) {
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 "scriptId":
out.ScriptID = runtime.ScriptID(in.String())
case "lineNumber":
out.LineNumber = int64(in.Int64())
case "columnNumber":
out.ColumnNumber = int64(in.Int64())
case "type":
(out.Type).UnmarshalEasyJSON(in)
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger43(out *jwriter.Writer, in BreakLocation) {
out.RawByte('{')
first := true
_ = first
if in.ScriptID != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"scriptId\":")
out.String(string(in.ScriptID))
}
if in.LineNumber != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"lineNumber\":")
out.Int64(int64(in.LineNumber))
}
if in.ColumnNumber != 0 {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"columnNumber\":")
out.Int64(int64(in.ColumnNumber))
}
if in.Type != "" {
if !first {
out.RawByte(',')
}
first = false
out.RawString("\"type\":")
(in.Type).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v BreakLocation) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger43(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v BreakLocation) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger43(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *BreakLocation) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger43(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *BreakLocation) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger43(l, v)
2017-01-24 15:09:23 +00:00
}