2017-09-15 23:56:18 +00:00
|
|
|
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
package debugger
|
2017-01-24 15:09:23 +00:00
|
|
|
|
|
|
|
import (
|
2017-09-15 23:56:18 +00:00
|
|
|
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"
|
2017-01-24 15:09:23 +00:00
|
|
|
)
|
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// suppress unused package warning
|
|
|
|
var (
|
|
|
|
_ *json.RawMessage
|
|
|
|
_ *jlexer.Lexer
|
|
|
|
_ *jwriter.Writer
|
|
|
|
_ easyjson.Marshaler
|
|
|
|
)
|
|
|
|
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger(in *jlexer.Lexer, out *StepOverParams) {
|
|
|
|
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) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v StepOverParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v StepOverParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *StepOverParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *StepOverParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger1(in *jlexer.Lexer, out *StepOutParams) {
|
|
|
|
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) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v StepOutParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger1(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v StepOutParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger1(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *StepOutParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger1(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *StepOutParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
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 {
|
2017-11-22 05:01:27 +00:00
|
|
|
case "breakOnAsyncCall":
|
|
|
|
out.BreakOnAsyncCall = bool(in.Bool())
|
2017-09-15 23:56:18 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger2(out *jwriter.Writer, in StepIntoParams) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
if in.BreakOnAsyncCall {
|
|
|
|
const prefix string = ",\"breakOnAsyncCall\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Bool(bool(in.BreakOnAsyncCall))
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
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) {
|
|
|
|
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())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger3(out *jwriter.Writer, in SetVariableValueParams) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"scopeNumber\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.ScopeNumber))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"variableName\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.VariableName))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"newValue\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.NewValue == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.NewValue).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"callFrameId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.CallFrameID))
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetVariableValueParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger3(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetVariableValueParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger3(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetVariableValueParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger3(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetVariableValueParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger3(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger4(in *jlexer.Lexer, out *SetSkipAllPausesParams) {
|
|
|
|
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())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(out *jwriter.Writer, in SetSkipAllPausesParams) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"skip\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Bool(bool(in.Skip))
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetSkipAllPausesParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetSkipAllPausesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetSkipAllPausesParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger4(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetSkipAllPausesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger4(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger5(in *jlexer.Lexer, out *SetScriptSourceReturns) {
|
|
|
|
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 v1 *CallFrame
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
v1 = nil
|
|
|
|
} else {
|
|
|
|
if v1 == nil {
|
|
|
|
v1 = new(CallFrame)
|
|
|
|
}
|
|
|
|
(*v1).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
out.CallFrames = append(out.CallFrames, v1)
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
case "stackChanged":
|
|
|
|
out.StackChanged = bool(in.Bool())
|
|
|
|
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-11-28 02:41:21 +00:00
|
|
|
case "asyncStackTraceId":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.AsyncStackTraceID = nil
|
|
|
|
} else {
|
|
|
|
if out.AsyncStackTraceID == nil {
|
|
|
|
out.AsyncStackTraceID = new(runtime.StackTraceID)
|
|
|
|
}
|
|
|
|
(*out.AsyncStackTraceID).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-09-15 23:56:18 +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)
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger5(out *jwriter.Writer, in SetScriptSourceReturns) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if len(in.CallFrames) != 0 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"callFrames\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('[')
|
|
|
|
for v2, v3 := range in.CallFrames {
|
|
|
|
if v2 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v3 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v3).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.StackChanged {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"stackChanged\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.StackChanged))
|
|
|
|
}
|
|
|
|
if in.AsyncStackTrace != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"asyncStackTrace\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.AsyncStackTrace).MarshalEasyJSON(out)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
if in.AsyncStackTraceID != nil {
|
|
|
|
const prefix string = ",\"asyncStackTraceId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(*in.AsyncStackTraceID).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
if in.ExceptionDetails != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"exceptionDetails\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.ExceptionDetails).MarshalEasyJSON(out)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetScriptSourceReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger5(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetScriptSourceReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger5(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetScriptSourceReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger5(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetScriptSourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger5(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger6(in *jlexer.Lexer, out *SetScriptSourceParams) {
|
|
|
|
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())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger6(out *jwriter.Writer, in SetScriptSourceParams) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"scriptId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.ScriptID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"scriptSource\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.ScriptSource))
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
if in.DryRun {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"dryRun\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.DryRun))
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetScriptSourceParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger6(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetScriptSourceParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger6(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetScriptSourceParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger6(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetScriptSourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger6(l, v)
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger7(in *jlexer.Lexer, out *SetReturnValueParams) {
|
|
|
|
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 "newValue":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.NewValue = nil
|
|
|
|
} else {
|
|
|
|
if out.NewValue == nil {
|
|
|
|
out.NewValue = new(runtime.CallArgument)
|
|
|
|
}
|
|
|
|
(*out.NewValue).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger7(out *jwriter.Writer, in SetReturnValueParams) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
{
|
|
|
|
const prefix string = ",\"newValue\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.NewValue == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.NewValue).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetReturnValueParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger7(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetReturnValueParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger7(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetReturnValueParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger7(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetReturnValueParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger7(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger8(in *jlexer.Lexer, out *SetPauseOnExceptionsParams) {
|
2017-09-15 23:56:18 +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)
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger8(out *jwriter.Writer, in SetPauseOnExceptionsParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"state\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(in.State).MarshalEasyJSON(out)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetPauseOnExceptionsParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger8(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetPauseOnExceptionsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger8(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetPauseOnExceptionsParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger8(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetPauseOnExceptionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger8(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger9(in *jlexer.Lexer, out *SetBreakpointsActiveParams) {
|
2017-09-15 23:56:18 +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())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(out *jwriter.Writer, in SetBreakpointsActiveParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"active\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Bool(bool(in.Active))
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetBreakpointsActiveParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetBreakpointsActiveParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetBreakpointsActiveParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger9(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetBreakpointsActiveParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger9(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger10(in *jlexer.Lexer, out *SetBreakpointReturns) {
|
2017-09-15 23:56:18 +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":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.ActualLocation = nil
|
|
|
|
} else {
|
|
|
|
if out.ActualLocation == nil {
|
|
|
|
out.ActualLocation = new(Location)
|
|
|
|
}
|
|
|
|
(*out.ActualLocation).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger10(out *jwriter.Writer, in SetBreakpointReturns) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if in.BreakpointID != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"breakpointId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.BreakpointID))
|
|
|
|
}
|
|
|
|
if in.ActualLocation != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"actualLocation\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.ActualLocation).MarshalEasyJSON(out)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetBreakpointReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger10(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetBreakpointReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger10(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetBreakpointReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger10(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetBreakpointReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger10(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger11(in *jlexer.Lexer, out *SetBreakpointParams) {
|
2017-09-15 23:56:18 +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)
|
|
|
|
}
|
|
|
|
case "condition":
|
|
|
|
out.Condition = string(in.String())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger11(out *jwriter.Writer, in SetBreakpointParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"location\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.Location == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Location).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
if in.Condition != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"condition\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.Condition))
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetBreakpointParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger11(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger11(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetBreakpointParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger11(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger11(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger12(in *jlexer.Lexer, out *SetBreakpointByURLReturns) {
|
2017-09-15 23:56:18 +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(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger12(out *jwriter.Writer, in SetBreakpointByURLReturns) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if in.BreakpointID != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"breakpointId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.BreakpointID))
|
|
|
|
}
|
|
|
|
if len(in.Locations) != 0 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"locations\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-09-15 23:56:18 +00:00
|
|
|
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(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetBreakpointByURLReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger12(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetBreakpointByURLReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger12(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetBreakpointByURLReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger12(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetBreakpointByURLReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger12(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger13(in *jlexer.Lexer, out *SetBreakpointByURLParams) {
|
2017-09-15 23:56:18 +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())
|
2017-10-15 05:47:06 +00:00
|
|
|
case "scriptHash":
|
|
|
|
out.ScriptHash = string(in.String())
|
2017-09-15 23:56:18 +00:00
|
|
|
case "columnNumber":
|
|
|
|
out.ColumnNumber = int64(in.Int64())
|
|
|
|
case "condition":
|
|
|
|
out.Condition = string(in.String())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger13(out *jwriter.Writer, in SetBreakpointByURLParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"lineNumber\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.LineNumber))
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
if in.URL != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"url\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.URL))
|
|
|
|
}
|
|
|
|
if in.URLRegex != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"urlRegex\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.URLRegex))
|
|
|
|
}
|
2017-10-15 05:47:06 +00:00
|
|
|
if in.ScriptHash != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"scriptHash\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-10-15 05:47:06 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.ScriptHash))
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
if in.ColumnNumber != 0 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"columnNumber\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Int64(int64(in.ColumnNumber))
|
|
|
|
}
|
|
|
|
if in.Condition != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"condition\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.Condition))
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetBreakpointByURLParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger13(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetBreakpointByURLParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger13(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetBreakpointByURLParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger13(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetBreakpointByURLParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger13(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger14(in *jlexer.Lexer, out *SetBlackboxedRangesParams) {
|
2017-09-15 23:56:18 +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":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Positions = nil
|
|
|
|
} 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]
|
|
|
|
}
|
|
|
|
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()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(out *jwriter.Writer, in SetBlackboxedRangesParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"scriptId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.ScriptID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"positions\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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)
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawByte(']')
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetBlackboxedRangesParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetBlackboxedRangesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetBlackboxedRangesParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger14(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetBlackboxedRangesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger14(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger15(in *jlexer.Lexer, out *SetBlackboxPatternsParams) {
|
2017-09-15 23:56:18 +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 "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()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(out *jwriter.Writer, in SetBlackboxPatternsParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"patterns\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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))
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawByte(']')
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetBlackboxPatternsParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetBlackboxPatternsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetBlackboxPatternsParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger15(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetBlackboxPatternsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger15(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(in *jlexer.Lexer, out *SetAsyncCallStackDepthParams) {
|
2017-09-15 23:56:18 +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())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(out *jwriter.Writer, in SetAsyncCallStackDepthParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"maxDepth\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.MaxDepth))
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetAsyncCallStackDepthParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetAsyncCallStackDepthParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetAsyncCallStackDepthParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetAsyncCallStackDepthParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger17(in *jlexer.Lexer, out *SearchMatch) {
|
2017-09-15 23:56:18 +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())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger17(out *jwriter.Writer, in SearchMatch) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"lineNumber\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Float64(float64(in.LineNumber))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"lineContent\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.LineContent))
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SearchMatch) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger17(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SearchMatch) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger17(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SearchMatch) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger17(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SearchMatch) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger17(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger18(in *jlexer.Lexer, out *SearchInContentReturns) {
|
2017-09-15 23:56:18 +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(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger18(out *jwriter.Writer, in SearchInContentReturns) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if len(in.Result) != 0 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"result\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-09-15 23:56:18 +00:00
|
|
|
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(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SearchInContentReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger18(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SearchInContentReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger18(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SearchInContentReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger18(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SearchInContentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger18(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger19(in *jlexer.Lexer, out *SearchInContentParams) {
|
2017-09-15 23:56:18 +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())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger19(out *jwriter.Writer, in SearchInContentParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"scriptId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.ScriptID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"query\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Query))
|
|
|
|
}
|
|
|
|
if in.CaseSensitive {
|
|
|
|
const prefix string = ",\"caseSensitive\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.CaseSensitive))
|
|
|
|
}
|
|
|
|
if in.IsRegex {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"isRegex\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.IsRegex))
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SearchInContentParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger19(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SearchInContentParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger19(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SearchInContentParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger19(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SearchInContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger19(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger20(in *jlexer.Lexer, out *ScriptPosition) {
|
2017-09-15 23:56:18 +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())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(out *jwriter.Writer, in ScriptPosition) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"lineNumber\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.LineNumber))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"columnNumber\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.ColumnNumber))
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v ScriptPosition) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v ScriptPosition) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *ScriptPosition) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger20(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *ScriptPosition) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger20(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger21(in *jlexer.Lexer, out *Scope) {
|
2017-09-15 23:56:18 +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":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Object = nil
|
|
|
|
} else {
|
|
|
|
if out.Object == nil {
|
|
|
|
out.Object = new(runtime.RemoteObject)
|
|
|
|
}
|
|
|
|
(*out.Object).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "name":
|
|
|
|
out.Name = string(in.String())
|
|
|
|
case "startLocation":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.StartLocation = nil
|
|
|
|
} else {
|
|
|
|
if out.StartLocation == nil {
|
|
|
|
out.StartLocation = new(Location)
|
|
|
|
}
|
|
|
|
(*out.StartLocation).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "endLocation":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.EndLocation = nil
|
|
|
|
} else {
|
|
|
|
if out.EndLocation == nil {
|
|
|
|
out.EndLocation = new(Location)
|
|
|
|
}
|
|
|
|
(*out.EndLocation).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger21(out *jwriter.Writer, in Scope) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"type\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"object\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.Object == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Object).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
if in.Name != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"name\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.Name))
|
|
|
|
}
|
|
|
|
if in.StartLocation != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"startLocation\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.StartLocation).MarshalEasyJSON(out)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
if in.EndLocation != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"endLocation\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.EndLocation).MarshalEasyJSON(out)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v Scope) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger21(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v Scope) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger21(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *Scope) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger21(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *Scope) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger21(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger22(in *jlexer.Lexer, out *ScheduleStepIntoAsyncParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger22(out *jwriter.Writer, in ScheduleStepIntoAsyncParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v ScheduleStepIntoAsyncParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger22(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v ScheduleStepIntoAsyncParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger22(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *ScheduleStepIntoAsyncParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger22(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *ScheduleStepIntoAsyncParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger22(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger23(in *jlexer.Lexer, out *ResumeParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger23(out *jwriter.Writer, in ResumeParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v ResumeParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger23(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-03-13 02:29:26 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v ResumeParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger23(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-03-13 02:29:26 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *ResumeParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger23(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-03-13 02:29:26 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *ResumeParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger23(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger24(in *jlexer.Lexer, out *RestartFrameReturns) {
|
2017-09-15 23:56:18 +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{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.CallFrames = (out.CallFrames)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
|
|
|
var v16 *CallFrame
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
v16 = nil
|
|
|
|
} else {
|
|
|
|
if v16 == nil {
|
|
|
|
v16 = new(CallFrame)
|
|
|
|
}
|
|
|
|
(*v16).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
out.CallFrames = append(out.CallFrames, v16)
|
|
|
|
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-11-28 02:41:21 +00:00
|
|
|
case "asyncStackTraceId":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.AsyncStackTraceID = nil
|
|
|
|
} else {
|
|
|
|
if out.AsyncStackTraceID == nil {
|
|
|
|
out.AsyncStackTraceID = new(runtime.StackTraceID)
|
|
|
|
}
|
|
|
|
(*out.AsyncStackTraceID).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger24(out *jwriter.Writer, in RestartFrameReturns) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if len(in.CallFrames) != 0 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"callFrames\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('[')
|
|
|
|
for v17, v18 := range in.CallFrames {
|
|
|
|
if v17 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v18 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v18).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.AsyncStackTrace != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"asyncStackTrace\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.AsyncStackTrace).MarshalEasyJSON(out)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
if in.AsyncStackTraceID != nil {
|
|
|
|
const prefix string = ",\"asyncStackTraceId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(*in.AsyncStackTraceID).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v RestartFrameReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger24(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v RestartFrameReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger24(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *RestartFrameReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger24(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *RestartFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger24(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger25(in *jlexer.Lexer, out *RestartFrameParams) {
|
2017-09-15 23:56:18 +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())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger25(out *jwriter.Writer, in RestartFrameParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"callFrameId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.CallFrameID))
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v RestartFrameParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger25(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v RestartFrameParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger25(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *RestartFrameParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger25(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *RestartFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger25(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger26(in *jlexer.Lexer, out *RemoveBreakpointParams) {
|
2017-09-15 23:56:18 +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())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger26(out *jwriter.Writer, in RemoveBreakpointParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"breakpointId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.BreakpointID))
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v RemoveBreakpointParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger26(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v RemoveBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger26(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *RemoveBreakpointParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger26(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *RemoveBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger26(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger27(in *jlexer.Lexer, out *PauseParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger27(out *jwriter.Writer, in PauseParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v PauseParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger27(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v PauseParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger27(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *PauseParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger27(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *PauseParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger27(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger28(in *jlexer.Lexer, out *PauseOnAsyncCallParams) {
|
2017-11-22 05:01:27 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-11-28 02:41:21 +00:00
|
|
|
case "parentStackTraceId":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.ParentStackTraceID = nil
|
|
|
|
} else {
|
|
|
|
if out.ParentStackTraceID == nil {
|
|
|
|
out.ParentStackTraceID = new(runtime.StackTraceID)
|
|
|
|
}
|
|
|
|
(*out.ParentStackTraceID).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger28(out *jwriter.Writer, in PauseOnAsyncCallParams) {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
{
|
2017-11-28 02:41:21 +00:00
|
|
|
const prefix string = ",\"parentStackTraceId\":"
|
2017-11-22 05:01:27 +00:00
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
if in.ParentStackTraceID == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.ParentStackTraceID).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-11-28 02:41:21 +00:00
|
|
|
func (v PauseOnAsyncCallParams) MarshalJSON() ([]byte, error) {
|
2017-11-22 05:01:27 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger28(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-11-28 02:41:21 +00:00
|
|
|
func (v PauseOnAsyncCallParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger28(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-11-28 02:41:21 +00:00
|
|
|
func (v *PauseOnAsyncCallParams) UnmarshalJSON(data []byte) error {
|
2017-11-22 05:01:27 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger28(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-11-28 02:41:21 +00:00
|
|
|
func (v *PauseOnAsyncCallParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger28(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger29(in *jlexer.Lexer, out *Location) {
|
2017-09-15 23:56:18 +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())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger29(out *jwriter.Writer, in Location) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"scriptId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.ScriptID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"lineNumber\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.LineNumber))
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
if in.ColumnNumber != 0 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"columnNumber\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Int64(int64(in.ColumnNumber))
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v Location) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger29(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v Location) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger29(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *Location) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger29(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *Location) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-22 05:01:27 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger29(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(in *jlexer.Lexer, out *GetStackTraceReturns) {
|
|
|
|
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 "stackTrace":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.StackTrace = nil
|
|
|
|
} else {
|
|
|
|
if out.StackTrace == nil {
|
|
|
|
out.StackTrace = new(runtime.StackTrace)
|
|
|
|
}
|
|
|
|
(*out.StackTrace).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(out *jwriter.Writer, in GetStackTraceReturns) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if in.StackTrace != nil {
|
|
|
|
const prefix string = ",\"stackTrace\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(*in.StackTrace).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v GetStackTraceReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v GetStackTraceReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *GetStackTraceReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *GetStackTraceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger31(in *jlexer.Lexer, out *GetStackTraceParams) {
|
|
|
|
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 "stackTraceId":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.StackTraceID = nil
|
|
|
|
} else {
|
|
|
|
if out.StackTraceID == nil {
|
|
|
|
out.StackTraceID = new(runtime.StackTraceID)
|
|
|
|
}
|
|
|
|
(*out.StackTraceID).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger31(out *jwriter.Writer, in GetStackTraceParams) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
{
|
|
|
|
const prefix string = ",\"stackTraceId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.StackTraceID == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.StackTraceID).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v GetStackTraceParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger31(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v GetStackTraceParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger31(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *GetStackTraceParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger31(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *GetStackTraceParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger31(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger32(in *jlexer.Lexer, out *GetScriptSourceReturns) {
|
2017-09-15 23:56:18 +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())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger32(out *jwriter.Writer, in GetScriptSourceReturns) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if in.ScriptSource != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"scriptSource\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.ScriptSource))
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v GetScriptSourceReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger32(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v GetScriptSourceReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger32(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *GetScriptSourceReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger32(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *GetScriptSourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger32(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger33(in *jlexer.Lexer, out *GetScriptSourceParams) {
|
2017-09-15 23:56:18 +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())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger33(out *jwriter.Writer, in GetScriptSourceParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"scriptId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.ScriptID))
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v GetScriptSourceParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger33(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v GetScriptSourceParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger33(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *GetScriptSourceParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger33(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *GetScriptSourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger33(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger34(in *jlexer.Lexer, out *GetPossibleBreakpointsReturns) {
|
2017-09-15 23:56:18 +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(']') {
|
|
|
|
out.Locations = make([]*BreakLocation, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Locations = []*BreakLocation{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Locations = (out.Locations)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
|
|
|
var v19 *BreakLocation
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
v19 = nil
|
|
|
|
} else {
|
|
|
|
if v19 == nil {
|
|
|
|
v19 = new(BreakLocation)
|
|
|
|
}
|
|
|
|
(*v19).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
out.Locations = append(out.Locations, v19)
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger34(out *jwriter.Writer, in GetPossibleBreakpointsReturns) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if len(in.Locations) != 0 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"locations\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-09-15 23:56:18 +00:00
|
|
|
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(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v GetPossibleBreakpointsReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger34(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v GetPossibleBreakpointsReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger34(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *GetPossibleBreakpointsReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger34(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *GetPossibleBreakpointsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger34(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger35(in *jlexer.Lexer, out *GetPossibleBreakpointsParams) {
|
2017-09-15 23:56:18 +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":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Start = nil
|
|
|
|
} else {
|
|
|
|
if out.Start == nil {
|
|
|
|
out.Start = new(Location)
|
|
|
|
}
|
|
|
|
(*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)
|
|
|
|
}
|
|
|
|
case "restrictToFunction":
|
|
|
|
out.RestrictToFunction = bool(in.Bool())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger35(out *jwriter.Writer, in GetPossibleBreakpointsParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"start\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
if in.Start == nil {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.Start).MarshalEasyJSON(out)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
if in.End != nil {
|
|
|
|
const prefix string = ",\"end\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(*in.End).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
if in.RestrictToFunction {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"restrictToFunction\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.RestrictToFunction))
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v GetPossibleBreakpointsParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger35(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v GetPossibleBreakpointsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger35(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *GetPossibleBreakpointsParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger35(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *GetPossibleBreakpointsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger35(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger36(in *jlexer.Lexer, out *EventScriptParsed) {
|
2017-09-15 23:56:18 +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())
|
|
|
|
case "length":
|
|
|
|
out.Length = int64(in.Int64())
|
|
|
|
case "stackTrace":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.StackTrace = nil
|
|
|
|
} else {
|
|
|
|
if out.StackTrace == nil {
|
|
|
|
out.StackTrace = new(runtime.StackTrace)
|
|
|
|
}
|
|
|
|
(*out.StackTrace).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger36(out *jwriter.Writer, in EventScriptParsed) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"scriptId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.ScriptID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"url\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.URL))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"startLine\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.StartLine))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"startColumn\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.StartColumn))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"endLine\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.EndLine))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"endColumn\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.EndColumn))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"executionContextId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.ExecutionContextID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"hash\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Hash))
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
if (in.ExecutionContextAuxData).IsDefined() {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"executionContextAuxData\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
(in.ExecutionContextAuxData).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if in.IsLiveEdit {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"isLiveEdit\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.IsLiveEdit))
|
|
|
|
}
|
|
|
|
if in.SourceMapURL != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"sourceMapURL\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.SourceMapURL))
|
|
|
|
}
|
|
|
|
if in.HasSourceURL {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"hasSourceURL\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.HasSourceURL))
|
|
|
|
}
|
|
|
|
if in.IsModule {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"isModule\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.IsModule))
|
|
|
|
}
|
|
|
|
if in.Length != 0 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"length\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Int64(int64(in.Length))
|
|
|
|
}
|
|
|
|
if in.StackTrace != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"stackTrace\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.StackTrace).MarshalEasyJSON(out)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v EventScriptParsed) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger36(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v EventScriptParsed) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger36(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *EventScriptParsed) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger36(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *EventScriptParsed) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger36(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger37(in *jlexer.Lexer, out *EventScriptFailedToParse) {
|
2017-09-15 23:56:18 +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())
|
|
|
|
case "length":
|
|
|
|
out.Length = int64(in.Int64())
|
|
|
|
case "stackTrace":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.StackTrace = nil
|
|
|
|
} else {
|
|
|
|
if out.StackTrace == nil {
|
|
|
|
out.StackTrace = new(runtime.StackTrace)
|
|
|
|
}
|
|
|
|
(*out.StackTrace).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger37(out *jwriter.Writer, in EventScriptFailedToParse) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"scriptId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.ScriptID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"url\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.URL))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"startLine\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.StartLine))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"startColumn\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.StartColumn))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"endLine\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.EndLine))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"endColumn\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.EndColumn))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"executionContextId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.ExecutionContextID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"hash\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Hash))
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
if (in.ExecutionContextAuxData).IsDefined() {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"executionContextAuxData\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
(in.ExecutionContextAuxData).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if in.SourceMapURL != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"sourceMapURL\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.SourceMapURL))
|
|
|
|
}
|
|
|
|
if in.HasSourceURL {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"hasSourceURL\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.HasSourceURL))
|
|
|
|
}
|
|
|
|
if in.IsModule {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"isModule\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.IsModule))
|
|
|
|
}
|
|
|
|
if in.Length != 0 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"length\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Int64(int64(in.Length))
|
|
|
|
}
|
|
|
|
if in.StackTrace != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"stackTrace\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.StackTrace).MarshalEasyJSON(out)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v EventScriptFailedToParse) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger37(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v EventScriptFailedToParse) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger37(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *EventScriptFailedToParse) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger37(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *EventScriptFailedToParse) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger37(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger38(in *jlexer.Lexer, out *EventResumed) {
|
2017-09-15 23:56:18 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger38(out *jwriter.Writer, in EventResumed) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v EventResumed) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger38(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v EventResumed) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger38(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *EventResumed) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger38(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *EventResumed) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger38(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger39(in *jlexer.Lexer, out *EventPaused) {
|
2017-09-15 23:56:18 +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{}
|
|
|
|
}
|
|
|
|
} 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":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.HitBreakpoints = nil
|
|
|
|
} 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]
|
|
|
|
}
|
|
|
|
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-11-28 02:41:21 +00:00
|
|
|
case "asyncStackTraceId":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.AsyncStackTraceID = nil
|
|
|
|
} else {
|
|
|
|
if out.AsyncStackTraceID == nil {
|
|
|
|
out.AsyncStackTraceID = new(runtime.StackTraceID)
|
|
|
|
}
|
|
|
|
(*out.AsyncStackTraceID).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "asyncCallStackTraceId":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.AsyncCallStackTraceID = nil
|
|
|
|
} else {
|
|
|
|
if out.AsyncCallStackTraceID == nil {
|
|
|
|
out.AsyncCallStackTraceID = new(runtime.StackTraceID)
|
|
|
|
}
|
|
|
|
(*out.AsyncCallStackTraceID).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger39(out *jwriter.Writer, in EventPaused) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"callFrames\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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)
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawByte(']')
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"reason\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(in.Reason).MarshalEasyJSON(out)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
if (in.Data).IsDefined() {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"data\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
(in.Data).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if len(in.HitBreakpoints) != 0 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"hitBreakpoints\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
{
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('[')
|
|
|
|
for v26, v27 := range in.HitBreakpoints {
|
|
|
|
if v26 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
out.String(string(v27))
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.AsyncStackTrace != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"asyncStackTrace\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.AsyncStackTrace).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
if in.AsyncStackTraceID != nil {
|
|
|
|
const prefix string = ",\"asyncStackTraceId\":"
|
2017-11-22 05:01:27 +00:00
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
(*in.AsyncStackTraceID).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if in.AsyncCallStackTraceID != nil {
|
|
|
|
const prefix string = ",\"asyncCallStackTraceId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(*in.AsyncCallStackTraceID).MarshalEasyJSON(out)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v EventPaused) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger39(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v EventPaused) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger39(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *EventPaused) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger39(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *EventPaused) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger39(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger40(in *jlexer.Lexer, out *EventBreakpointResolved) {
|
2017-09-15 23:56:18 +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 "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-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger40(out *jwriter.Writer, in EventBreakpointResolved) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"breakpointId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.BreakpointID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"location\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.Location == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Location).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v EventBreakpointResolved) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger40(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v EventBreakpointResolved) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger40(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *EventBreakpointResolved) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger40(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *EventBreakpointResolved) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger40(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger41(in *jlexer.Lexer, out *EvaluateOnCallFrameReturns) {
|
2017-09-15 23:56:18 +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 {
|
|
|
|
if out.Result == nil {
|
|
|
|
out.Result = new(runtime.RemoteObject)
|
|
|
|
}
|
|
|
|
(*out.Result).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "exceptionDetails":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.ExceptionDetails = nil
|
|
|
|
} else {
|
|
|
|
if out.ExceptionDetails == nil {
|
|
|
|
out.ExceptionDetails = new(runtime.ExceptionDetails)
|
|
|
|
}
|
|
|
|
(*out.ExceptionDetails).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger41(out *jwriter.Writer, in EvaluateOnCallFrameReturns) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if in.Result != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"result\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.Result).MarshalEasyJSON(out)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
if in.ExceptionDetails != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"exceptionDetails\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
2017-09-15 23:56:18 +00:00
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.ExceptionDetails).MarshalEasyJSON(out)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v EvaluateOnCallFrameReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger41(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v EvaluateOnCallFrameReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger41(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *EvaluateOnCallFrameReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger41(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *EvaluateOnCallFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger41(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger42(in *jlexer.Lexer, out *EvaluateOnCallFrameParams) {
|
2017-09-15 23:56:18 +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())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger42(out *jwriter.Writer, in EvaluateOnCallFrameParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"callFrameId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.CallFrameID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"expression\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Expression))
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
if in.ObjectGroup != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"objectGroup\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.ObjectGroup))
|
|
|
|
}
|
|
|
|
if in.IncludeCommandLineAPI {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"includeCommandLineAPI\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.IncludeCommandLineAPI))
|
|
|
|
}
|
|
|
|
if in.Silent {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"silent\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.Silent))
|
|
|
|
}
|
|
|
|
if in.ReturnByValue {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"returnByValue\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.ReturnByValue))
|
|
|
|
}
|
|
|
|
if in.GeneratePreview {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"generatePreview\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.GeneratePreview))
|
|
|
|
}
|
|
|
|
if in.ThrowOnSideEffect {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"throwOnSideEffect\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Bool(bool(in.ThrowOnSideEffect))
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v EvaluateOnCallFrameParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger42(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v EvaluateOnCallFrameParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger42(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *EvaluateOnCallFrameParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger42(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *EvaluateOnCallFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger42(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger43(in *jlexer.Lexer, out *EnableReturns) {
|
2017-09-15 23:56:18 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-11-28 02:41:21 +00:00
|
|
|
case "debuggerId":
|
|
|
|
out.DebuggerID = runtime.UniqueDebuggerID(in.String())
|
2017-09-15 23:56:18 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger43(out *jwriter.Writer, in EnableReturns) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if in.DebuggerID != "" {
|
|
|
|
const prefix string = ",\"debuggerId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.DebuggerID))
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v EnableReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger43(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v EnableReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger43(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *EnableReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger43(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *EnableReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger43(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger44(in *jlexer.Lexer, out *EnableParams) {
|
|
|
|
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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger44(out *jwriter.Writer, in EnableParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v EnableParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger44(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger44(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *EnableParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger44(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger44(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger45(in *jlexer.Lexer, out *DisableParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger45(out *jwriter.Writer, in DisableParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v DisableParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger45(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger45(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *DisableParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger45(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger45(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger46(in *jlexer.Lexer, out *ContinueToLocationParams) {
|
2017-09-15 23:56:18 +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)
|
|
|
|
}
|
|
|
|
case "targetCallFrames":
|
|
|
|
(out.TargetCallFrames).UnmarshalEasyJSON(in)
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger46(out *jwriter.Writer, in ContinueToLocationParams) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"location\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.Location == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Location).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
if in.TargetCallFrames != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"targetCallFrames\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
(in.TargetCallFrames).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v ContinueToLocationParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger46(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v ContinueToLocationParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger46(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *ContinueToLocationParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger46(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *ContinueToLocationParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger46(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger47(in *jlexer.Lexer, out *CallFrame) {
|
2017-09-15 23:56:18 +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 "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger47(out *jwriter.Writer, in CallFrame) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"callFrameId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.CallFrameID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"functionName\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.FunctionName))
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
if in.FunctionLocation != nil {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"functionLocation\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(*in.FunctionLocation).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"location\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
if in.Location == nil {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.Location).MarshalEasyJSON(out)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"url\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.URL))
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"scopeChain\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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(']')
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"this\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
if in.This == nil {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-11-22 05:01:27 +00:00
|
|
|
(*in.This).MarshalEasyJSON(out)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
if in.ReturnValue != nil {
|
|
|
|
const prefix string = ",\"returnValue\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(*in.ReturnValue).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v CallFrame) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger47(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v CallFrame) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger47(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *CallFrame) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger47(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *CallFrame) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger47(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger48(in *jlexer.Lexer, out *BreakLocation) {
|
2017-09-15 23:56:18 +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())
|
|
|
|
case "type":
|
|
|
|
(out.Type).UnmarshalEasyJSON(in)
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-11-28 02:41:21 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger48(out *jwriter.Writer, in BreakLocation) {
|
2017-09-15 23:56:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"scriptId\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.ScriptID))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"lineNumber\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Int64(int64(in.LineNumber))
|
|
|
|
}
|
2017-09-15 23:56:18 +00:00
|
|
|
if in.ColumnNumber != 0 {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"columnNumber\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
out.Int64(int64(in.ColumnNumber))
|
|
|
|
}
|
|
|
|
if in.Type != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"type\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
2017-03-13 02:29:26 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v BreakLocation) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger48(&w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-03-13 02:29:26 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v BreakLocation) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger48(w, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|
2017-03-13 02:29:26 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *BreakLocation) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger48(&r, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
2017-03-13 02:29:26 +00:00
|
|
|
|
2017-09-15 23:56:18 +00:00
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *BreakLocation) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-11-28 02:41:21 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger48(l, v)
|
2017-09-15 23:56:18 +00:00
|
|
|
}
|