diff --git a/cdp/cdp.go b/cdp/cdp.go index 3bca356..351acd6 100644 --- a/cdp/cdp.go +++ b/cdp/cdp.go @@ -400,10 +400,6 @@ const ( CommandRuntimeSetCustomObjectFormatterEnabled MethodType = "Runtime.setCustomObjectFormatterEnabled" CommandRuntimeCompileScript MethodType = "Runtime.compileScript" CommandRuntimeRunScript MethodType = "Runtime.runScript" - CommandRuntimeStartPreciseCoverage MethodType = "Runtime.startPreciseCoverage" - CommandRuntimeStopPreciseCoverage MethodType = "Runtime.stopPreciseCoverage" - CommandRuntimeTakePreciseCoverage MethodType = "Runtime.takePreciseCoverage" - CommandRuntimeGetBestEffortCoverage MethodType = "Runtime.getBestEffortCoverage" EventDebuggerScriptParsed MethodType = "Debugger.scriptParsed" EventDebuggerScriptFailedToParse MethodType = "Debugger.scriptFailedToParse" EventDebuggerBreakpointResolved MethodType = "Debugger.breakpointResolved" @@ -440,6 +436,10 @@ const ( CommandProfilerSetSamplingInterval MethodType = "Profiler.setSamplingInterval" CommandProfilerStart MethodType = "Profiler.start" CommandProfilerStop MethodType = "Profiler.stop" + CommandProfilerStartPreciseCoverage MethodType = "Profiler.startPreciseCoverage" + CommandProfilerStopPreciseCoverage MethodType = "Profiler.stopPreciseCoverage" + CommandProfilerTakePreciseCoverage MethodType = "Profiler.takePreciseCoverage" + CommandProfilerGetBestEffortCoverage MethodType = "Profiler.getBestEffortCoverage" EventHeapProfilerAddHeapSnapshotChunk MethodType = "HeapProfiler.addHeapSnapshotChunk" EventHeapProfilerResetProfiles MethodType = "HeapProfiler.resetProfiles" EventHeapProfilerReportHeapSnapshotProgress MethodType = "HeapProfiler.reportHeapSnapshotProgress" @@ -1173,14 +1173,6 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = CommandRuntimeCompileScript case CommandRuntimeRunScript: *t = CommandRuntimeRunScript - case CommandRuntimeStartPreciseCoverage: - *t = CommandRuntimeStartPreciseCoverage - case CommandRuntimeStopPreciseCoverage: - *t = CommandRuntimeStopPreciseCoverage - case CommandRuntimeTakePreciseCoverage: - *t = CommandRuntimeTakePreciseCoverage - case CommandRuntimeGetBestEffortCoverage: - *t = CommandRuntimeGetBestEffortCoverage case EventDebuggerScriptParsed: *t = EventDebuggerScriptParsed case EventDebuggerScriptFailedToParse: @@ -1253,6 +1245,14 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = CommandProfilerStart case CommandProfilerStop: *t = CommandProfilerStop + case CommandProfilerStartPreciseCoverage: + *t = CommandProfilerStartPreciseCoverage + case CommandProfilerStopPreciseCoverage: + *t = CommandProfilerStopPreciseCoverage + case CommandProfilerTakePreciseCoverage: + *t = CommandProfilerTakePreciseCoverage + case CommandProfilerGetBestEffortCoverage: + *t = CommandProfilerGetBestEffortCoverage case EventHeapProfilerAddHeapSnapshotChunk: *t = EventHeapProfilerAddHeapSnapshotChunk case EventHeapProfilerResetProfiles: diff --git a/cdp/cdputil/cdputil.go b/cdp/cdputil/cdputil.go index 41b6e9b..ad97918 100644 --- a/cdp/cdputil/cdputil.go +++ b/cdp/cdputil/cdputil.go @@ -1078,18 +1078,6 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) { case cdp.CommandRuntimeRunScript: v = new(runtime.RunScriptReturns) - case cdp.CommandRuntimeStartPreciseCoverage: - return emptyVal, nil - - case cdp.CommandRuntimeStopPreciseCoverage: - return emptyVal, nil - - case cdp.CommandRuntimeTakePreciseCoverage: - v = new(runtime.TakePreciseCoverageReturns) - - case cdp.CommandRuntimeGetBestEffortCoverage: - v = new(runtime.GetBestEffortCoverageReturns) - case cdp.EventRuntimeExecutionContextCreated: v = new(runtime.EventExecutionContextCreated) @@ -1213,6 +1201,18 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) { case cdp.CommandProfilerStop: v = new(profiler.StopReturns) + case cdp.CommandProfilerStartPreciseCoverage: + return emptyVal, nil + + case cdp.CommandProfilerStopPreciseCoverage: + return emptyVal, nil + + case cdp.CommandProfilerTakePreciseCoverage: + v = new(profiler.TakePreciseCoverageReturns) + + case cdp.CommandProfilerGetBestEffortCoverage: + v = new(profiler.GetBestEffortCoverageReturns) + case cdp.EventProfilerConsoleProfileStarted: v = new(profiler.EventConsoleProfileStarted) diff --git a/cdp/debugger/debugger.go b/cdp/debugger/debugger.go index d3aba52..9572248 100644 --- a/cdp/debugger/debugger.go +++ b/cdp/debugger/debugger.go @@ -242,8 +242,9 @@ func (p *RemoveBreakpointParams) Do(ctxt context.Context, h cdp.Handler) (err er // GetPossibleBreakpointsParams returns possible locations for breakpoint. // scriptId in start and end range locations should be the same. type GetPossibleBreakpointsParams struct { - Start *Location `json:"start"` // Start of range to search possible breakpoint locations in. - End *Location `json:"end,omitempty"` // End of range to search possible breakpoint locations in (excluding). When not specifed, end of scripts is used as end of range. + Start *Location `json:"start"` // Start of range to search possible breakpoint locations in. + End *Location `json:"end,omitempty"` // End of range to search possible breakpoint locations in (excluding). When not specifed, end of scripts is used as end of range. + RestrictToFunction bool `json:"restrictToFunction,omitempty"` // Only consider locations which are in the same (non-nested) function as start. } // GetPossibleBreakpoints returns possible locations for breakpoint. scriptId @@ -264,6 +265,13 @@ func (p GetPossibleBreakpointsParams) WithEnd(end *Location) *GetPossibleBreakpo return &p } +// WithRestrictToFunction only consider locations which are in the same +// (non-nested) function as start. +func (p GetPossibleBreakpointsParams) WithRestrictToFunction(restrictToFunction bool) *GetPossibleBreakpointsParams { + p.RestrictToFunction = restrictToFunction + return &p +} + // GetPossibleBreakpointsReturns return values. type GetPossibleBreakpointsReturns struct { Locations []*Location `json:"locations,omitempty"` // List of the possible breakpoint locations. diff --git a/cdp/debugger/easyjson.go b/cdp/debugger/easyjson.go index 955567d..1a61a43 100644 --- a/cdp/debugger/easyjson.go +++ b/cdp/debugger/easyjson.go @@ -2721,6 +2721,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(in *jlexer.Lexer, o } (*out.End).UnmarshalEasyJSON(in) } + case "restrictToFunction": + out.RestrictToFunction = bool(in.Bool()) default: in.SkipRecursive() } @@ -2757,6 +2759,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(out *jwriter.Writer (*in.End).MarshalEasyJSON(out) } } + if in.RestrictToFunction { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"restrictToFunction\":") + out.Bool(bool(in.RestrictToFunction)) + } out.RawByte('}') } diff --git a/cdp/profiler/easyjson.go b/cdp/profiler/easyjson.go index d7a1f06..818a566 100644 --- a/cdp/profiler/easyjson.go +++ b/cdp/profiler/easyjson.go @@ -19,7 +19,179 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(in *jlexer.Lexer, out *StopReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(in *jlexer.Lexer, out *TakePreciseCoverageReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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([]*ScriptCoverage, 0, 8) + } else { + out.Result = []*ScriptCoverage{} + } + } else { + out.Result = (out.Result)[:0] + } + for !in.IsDelim(']') { + var v1 *ScriptCoverage + if in.IsNull() { + in.Skip() + v1 = nil + } else { + if v1 == nil { + v1 = new(ScriptCoverage) + } + (*v1).UnmarshalEasyJSON(in) + } + out.Result = append(out.Result, v1) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(out *jwriter.Writer, in TakePreciseCoverageReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.Result) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"result\":") + if in.Result == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v2, v3 := range in.Result { + if v2 > 0 { + out.RawByte(',') + } + if v3 == nil { + out.RawString("null") + } else { + (*v3).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v TakePreciseCoverageReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v TakePreciseCoverageReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *TakePreciseCoverageReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *TakePreciseCoverageReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(in *jlexer.Lexer, out *TakePreciseCoverageParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(out *jwriter.Writer, in TakePreciseCoverageParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v TakePreciseCoverageParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v TakePreciseCoverageParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *TakePreciseCoverageParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *TakePreciseCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(in *jlexer.Lexer, out *StopReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -58,7 +230,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(out *jwriter.Writer, in StopReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(out *jwriter.Writer, in StopReturns) { out.RawByte('{') first := true _ = first @@ -80,27 +252,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v StopReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v StopReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *StopReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *StopReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(in *jlexer.Lexer, out *StopParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(in *jlexer.Lexer, out *StopPreciseCoverageParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -129,7 +301,66 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(out *jwriter.Writer, in StopParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(out *jwriter.Writer, in StopPreciseCoverageParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v StopPreciseCoverageParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StopPreciseCoverageParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StopPreciseCoverageParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StopPreciseCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(in *jlexer.Lexer, out *StopParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(out *jwriter.Writer, in StopParams) { out.RawByte('{') first := true _ = first @@ -139,27 +370,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v StopParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v StopParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *StopParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *StopParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(in *jlexer.Lexer, out *StartParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(in *jlexer.Lexer, out *StartPreciseCoverageParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -188,7 +419,66 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(out *jwriter.Writer, in StartParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(out *jwriter.Writer, in StartPreciseCoverageParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v StartPreciseCoverageParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StartPreciseCoverageParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StartPreciseCoverageParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StartPreciseCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(in *jlexer.Lexer, out *StartParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(out *jwriter.Writer, in StartParams) { out.RawByte('{') first := true _ = first @@ -198,27 +488,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v StartParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v StartParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *StartParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *StartParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(in *jlexer.Lexer, out *SetSamplingIntervalParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(in *jlexer.Lexer, out *SetSamplingIntervalParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -249,7 +539,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(out *jwriter.Writer, in SetSamplingIntervalParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(out *jwriter.Writer, in SetSamplingIntervalParams) { out.RawByte('{') first := true _ = first @@ -265,27 +555,160 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetSamplingIntervalParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetSamplingIntervalParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetSamplingIntervalParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetSamplingIntervalParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(in *jlexer.Lexer, out *ProfileNode) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(in *jlexer.Lexer, out *ScriptCoverage) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 "functions": + if in.IsNull() { + in.Skip() + out.Functions = nil + } else { + in.Delim('[') + if out.Functions == nil { + if !in.IsDelim(']') { + out.Functions = make([]*FunctionCoverage, 0, 8) + } else { + out.Functions = []*FunctionCoverage{} + } + } else { + out.Functions = (out.Functions)[:0] + } + for !in.IsDelim(']') { + var v4 *FunctionCoverage + if in.IsNull() { + in.Skip() + v4 = nil + } else { + if v4 == nil { + v4 = new(FunctionCoverage) + } + (*v4).UnmarshalEasyJSON(in) + } + out.Functions = append(out.Functions, v4) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(out *jwriter.Writer, in ScriptCoverage) { + out.RawByte('{') + first := true + _ = first + if in.ScriptID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptId\":") + out.String(string(in.ScriptID)) + } + if in.URL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + } + if len(in.Functions) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"functions\":") + if in.Functions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v5, v6 := range in.Functions { + 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 ScriptCoverage) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ScriptCoverage) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ScriptCoverage) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ScriptCoverage) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(in *jlexer.Lexer, out *ProfileNode) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -334,9 +757,9 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(in *jlexer.Lexer, ou out.Children = (out.Children)[:0] } for !in.IsDelim(']') { - var v1 int64 - v1 = int64(in.Int64()) - out.Children = append(out.Children, v1) + var v7 int64 + v7 = int64(in.Int64()) + out.Children = append(out.Children, v7) in.WantComma() } in.Delim(']') @@ -359,17 +782,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(in *jlexer.Lexer, ou out.PositionTicks = (out.PositionTicks)[:0] } for !in.IsDelim(']') { - var v2 *PositionTickInfo + var v8 *PositionTickInfo if in.IsNull() { in.Skip() - v2 = nil + v8 = nil } else { - if v2 == nil { - v2 = new(PositionTickInfo) + if v8 == nil { + v8 = new(PositionTickInfo) } - (*v2).UnmarshalEasyJSON(in) + (*v8).UnmarshalEasyJSON(in) } - out.PositionTicks = append(out.PositionTicks, v2) + out.PositionTicks = append(out.PositionTicks, v8) in.WantComma() } in.Delim(']') @@ -384,7 +807,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(out *jwriter.Writer, in ProfileNode) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(out *jwriter.Writer, in ProfileNode) { out.RawByte('{') first := true _ = first @@ -426,11 +849,11 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v3, v4 := range in.Children { - if v3 > 0 { + for v9, v10 := range in.Children { + if v9 > 0 { out.RawByte(',') } - out.Int64(int64(v4)) + out.Int64(int64(v10)) } out.RawByte(']') } @@ -453,14 +876,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v5, v6 := range in.PositionTicks { - if v5 > 0 { + for v11, v12 := range in.PositionTicks { + if v11 > 0 { out.RawByte(',') } - if v6 == nil { + if v12 == nil { out.RawString("null") } else { - (*v6).MarshalEasyJSON(out) + (*v12).MarshalEasyJSON(out) } } out.RawByte(']') @@ -472,27 +895,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ProfileNode) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ProfileNode) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ProfileNode) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ProfileNode) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(in *jlexer.Lexer, out *Profile) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(in *jlexer.Lexer, out *Profile) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -527,17 +950,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(in *jlexer.Lexer, ou out.Nodes = (out.Nodes)[:0] } for !in.IsDelim(']') { - var v7 *ProfileNode + var v13 *ProfileNode if in.IsNull() { in.Skip() - v7 = nil + v13 = nil } else { - if v7 == nil { - v7 = new(ProfileNode) + if v13 == nil { + v13 = new(ProfileNode) } - (*v7).UnmarshalEasyJSON(in) + (*v13).UnmarshalEasyJSON(in) } - out.Nodes = append(out.Nodes, v7) + out.Nodes = append(out.Nodes, v13) in.WantComma() } in.Delim(']') @@ -562,9 +985,9 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(in *jlexer.Lexer, ou out.Samples = (out.Samples)[:0] } for !in.IsDelim(']') { - var v8 int64 - v8 = int64(in.Int64()) - out.Samples = append(out.Samples, v8) + var v14 int64 + v14 = int64(in.Int64()) + out.Samples = append(out.Samples, v14) in.WantComma() } in.Delim(']') @@ -585,9 +1008,9 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(in *jlexer.Lexer, ou out.TimeDeltas = (out.TimeDeltas)[:0] } for !in.IsDelim(']') { - var v9 int64 - v9 = int64(in.Int64()) - out.TimeDeltas = append(out.TimeDeltas, v9) + var v15 int64 + v15 = int64(in.Int64()) + out.TimeDeltas = append(out.TimeDeltas, v15) in.WantComma() } in.Delim(']') @@ -602,7 +1025,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(out *jwriter.Writer, in Profile) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(out *jwriter.Writer, in Profile) { out.RawByte('{') first := true _ = first @@ -616,14 +1039,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v10, v11 := range in.Nodes { - if v10 > 0 { + for v16, v17 := range in.Nodes { + if v16 > 0 { out.RawByte(',') } - if v11 == nil { + if v17 == nil { out.RawString("null") } else { - (*v11).MarshalEasyJSON(out) + (*v17).MarshalEasyJSON(out) } } out.RawByte(']') @@ -655,11 +1078,11 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v12, v13 := range in.Samples { - if v12 > 0 { + for v18, v19 := range in.Samples { + if v18 > 0 { out.RawByte(',') } - out.Int64(int64(v13)) + out.Int64(int64(v19)) } out.RawByte(']') } @@ -674,11 +1097,11 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v14, v15 := range in.TimeDeltas { - if v14 > 0 { + for v20, v21 := range in.TimeDeltas { + if v20 > 0 { out.RawByte(',') } - out.Int64(int64(v15)) + out.Int64(int64(v21)) } out.RawByte(']') } @@ -689,27 +1112,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Profile) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Profile) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Profile) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Profile) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(in *jlexer.Lexer, out *PositionTickInfo) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler11(in *jlexer.Lexer, out *PositionTickInfo) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -742,7 +1165,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(out *jwriter.Writer, in PositionTickInfo) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler11(out *jwriter.Writer, in PositionTickInfo) { out.RawByte('{') first := true _ = first @@ -768,27 +1191,322 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v PositionTickInfo) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v PositionTickInfo) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *PositionTickInfo) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *PositionTickInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler11(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(in *jlexer.Lexer, out *EventConsoleProfileStarted) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler12(in *jlexer.Lexer, out *GetBestEffortCoverageReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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([]*ScriptCoverage, 0, 8) + } else { + out.Result = []*ScriptCoverage{} + } + } else { + out.Result = (out.Result)[:0] + } + for !in.IsDelim(']') { + var v22 *ScriptCoverage + if in.IsNull() { + in.Skip() + v22 = nil + } else { + if v22 == nil { + v22 = new(ScriptCoverage) + } + (*v22).UnmarshalEasyJSON(in) + } + out.Result = append(out.Result, v22) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler12(out *jwriter.Writer, in GetBestEffortCoverageReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.Result) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"result\":") + if in.Result == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v23, v24 := range in.Result { + if v23 > 0 { + out.RawByte(',') + } + if v24 == nil { + out.RawString("null") + } else { + (*v24).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetBestEffortCoverageReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler12(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetBestEffortCoverageReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler12(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetBestEffortCoverageReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler12(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetBestEffortCoverageReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler12(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler13(in *jlexer.Lexer, out *GetBestEffortCoverageParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler13(out *jwriter.Writer, in GetBestEffortCoverageParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetBestEffortCoverageParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler13(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetBestEffortCoverageParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler13(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetBestEffortCoverageParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler13(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetBestEffortCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler13(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler14(in *jlexer.Lexer, out *FunctionCoverage) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 "functionName": + out.FunctionName = string(in.String()) + case "ranges": + if in.IsNull() { + in.Skip() + out.Ranges = nil + } else { + in.Delim('[') + if out.Ranges == nil { + if !in.IsDelim(']') { + out.Ranges = make([]*CoverageRange, 0, 8) + } else { + out.Ranges = []*CoverageRange{} + } + } else { + out.Ranges = (out.Ranges)[:0] + } + for !in.IsDelim(']') { + var v25 *CoverageRange + if in.IsNull() { + in.Skip() + v25 = nil + } else { + if v25 == nil { + v25 = new(CoverageRange) + } + (*v25).UnmarshalEasyJSON(in) + } + out.Ranges = append(out.Ranges, v25) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler14(out *jwriter.Writer, in FunctionCoverage) { + out.RawByte('{') + first := true + _ = first + if in.FunctionName != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"functionName\":") + out.String(string(in.FunctionName)) + } + if len(in.Ranges) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"ranges\":") + if in.Ranges == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v26, v27 := range in.Ranges { + if v26 > 0 { + out.RawByte(',') + } + if v27 == nil { + out.RawString("null") + } else { + (*v27).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v FunctionCoverage) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler14(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v FunctionCoverage) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler14(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *FunctionCoverage) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler14(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *FunctionCoverage) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler14(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler15(in *jlexer.Lexer, out *EventConsoleProfileStarted) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -831,7 +1549,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(out *jwriter.Writer, in EventConsoleProfileStarted) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler15(out *jwriter.Writer, in EventConsoleProfileStarted) { out.RawByte('{') first := true _ = first @@ -869,27 +1587,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventConsoleProfileStarted) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler15(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventConsoleProfileStarted) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler15(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventConsoleProfileStarted) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler15(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventConsoleProfileStarted) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler15(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(in *jlexer.Lexer, out *EventConsoleProfileFinished) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler16(in *jlexer.Lexer, out *EventConsoleProfileFinished) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -942,7 +1660,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(out *jwriter.Writer, in EventConsoleProfileFinished) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler16(out *jwriter.Writer, in EventConsoleProfileFinished) { out.RawByte('{') first := true _ = first @@ -992,27 +1710,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventConsoleProfileFinished) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventConsoleProfileFinished) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventConsoleProfileFinished) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventConsoleProfileFinished) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler16(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler17(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1041,7 +1759,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler17(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -1051,27 +1769,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler17(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler17(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler17(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler17(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler18(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1100,7 +1818,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler18(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first @@ -1110,23 +1828,132 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler18(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler19(in *jlexer.Lexer, out *CoverageRange) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 "startLineNumber": + out.StartLineNumber = int64(in.Int64()) + case "startColumnNumber": + out.StartColumnNumber = int64(in.Int64()) + case "endLineNumber": + out.EndLineNumber = int64(in.Int64()) + case "endColumnNumber": + out.EndColumnNumber = int64(in.Int64()) + case "count": + out.Count = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler19(out *jwriter.Writer, in CoverageRange) { + out.RawByte('{') + first := true + _ = first + if in.StartLineNumber != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"startLineNumber\":") + out.Int64(int64(in.StartLineNumber)) + } + if in.StartColumnNumber != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"startColumnNumber\":") + out.Int64(int64(in.StartColumnNumber)) + } + if in.EndLineNumber != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"endLineNumber\":") + out.Int64(int64(in.EndLineNumber)) + } + if in.EndColumnNumber != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"endColumnNumber\":") + out.Int64(int64(in.EndColumnNumber)) + } + if in.Count != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"count\":") + out.Int64(int64(in.Count)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CoverageRange) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler19(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CoverageRange) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler19(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CoverageRange) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler19(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CoverageRange) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler19(l, v) } diff --git a/cdp/profiler/profiler.go b/cdp/profiler/profiler.go index 91a28c5..5b0ee16 100644 --- a/cdp/profiler/profiler.go +++ b/cdp/profiler/profiler.go @@ -105,3 +105,100 @@ func (p *StopParams) Do(ctxt context.Context, h cdp.Handler) (profile *Profile, return res.Profile, nil } + +// StartPreciseCoverageParams enable precise code coverage. Coverage data for +// JavaScript executed before enabling precise code coverage may be incomplete. +// Enabling prevents running optimized code and resets execution counters. +type StartPreciseCoverageParams struct{} + +// StartPreciseCoverage enable precise code coverage. Coverage data for +// JavaScript executed before enabling precise code coverage may be incomplete. +// Enabling prevents running optimized code and resets execution counters. +func StartPreciseCoverage() *StartPreciseCoverageParams { + return &StartPreciseCoverageParams{} +} + +// Do executes Profiler.startPreciseCoverage against the provided context and +// target handler. +func (p *StartPreciseCoverageParams) Do(ctxt context.Context, h cdp.Handler) (err error) { + return h.Execute(ctxt, cdp.CommandProfilerStartPreciseCoverage, nil, nil) +} + +// StopPreciseCoverageParams disable precise code coverage. Disabling +// releases unnecessary execution count records and allows executing optimized +// code. +type StopPreciseCoverageParams struct{} + +// StopPreciseCoverage disable precise code coverage. Disabling releases +// unnecessary execution count records and allows executing optimized code. +func StopPreciseCoverage() *StopPreciseCoverageParams { + return &StopPreciseCoverageParams{} +} + +// Do executes Profiler.stopPreciseCoverage against the provided context and +// target handler. +func (p *StopPreciseCoverageParams) Do(ctxt context.Context, h cdp.Handler) (err error) { + return h.Execute(ctxt, cdp.CommandProfilerStopPreciseCoverage, nil, nil) +} + +// TakePreciseCoverageParams collect coverage data for the current isolate, +// and resets execution counters. Precise code coverage needs to have started. +type TakePreciseCoverageParams struct{} + +// TakePreciseCoverage collect coverage data for the current isolate, and +// resets execution counters. Precise code coverage needs to have started. +func TakePreciseCoverage() *TakePreciseCoverageParams { + return &TakePreciseCoverageParams{} +} + +// TakePreciseCoverageReturns return values. +type TakePreciseCoverageReturns struct { + Result []*ScriptCoverage `json:"result,omitempty"` // Coverage data for the current isolate. +} + +// Do executes Profiler.takePreciseCoverage against the provided context and +// target handler. +// +// returns: +// result - Coverage data for the current isolate. +func (p *TakePreciseCoverageParams) Do(ctxt context.Context, h cdp.Handler) (result []*ScriptCoverage, err error) { + // execute + var res TakePreciseCoverageReturns + err = h.Execute(ctxt, cdp.CommandProfilerTakePreciseCoverage, nil, &res) + if err != nil { + return nil, err + } + + return res.Result, nil +} + +// GetBestEffortCoverageParams collect coverage data for the current isolate. +// The coverage data may be incomplete due to garbage collection. +type GetBestEffortCoverageParams struct{} + +// GetBestEffortCoverage collect coverage data for the current isolate. The +// coverage data may be incomplete due to garbage collection. +func GetBestEffortCoverage() *GetBestEffortCoverageParams { + return &GetBestEffortCoverageParams{} +} + +// GetBestEffortCoverageReturns return values. +type GetBestEffortCoverageReturns struct { + Result []*ScriptCoverage `json:"result,omitempty"` // Coverage data for the current isolate. +} + +// Do executes Profiler.getBestEffortCoverage against the provided context and +// target handler. +// +// returns: +// result - Coverage data for the current isolate. +func (p *GetBestEffortCoverageParams) Do(ctxt context.Context, h cdp.Handler) (result []*ScriptCoverage, err error) { + // execute + var res GetBestEffortCoverageReturns + err = h.Execute(ctxt, cdp.CommandProfilerGetBestEffortCoverage, nil, &res) + if err != nil { + return nil, err + } + + return res.Result, nil +} diff --git a/cdp/profiler/types.go b/cdp/profiler/types.go index 22a5383..9a9de51 100644 --- a/cdp/profiler/types.go +++ b/cdp/profiler/types.go @@ -30,3 +30,25 @@ type PositionTickInfo struct { Line int64 `json:"line,omitempty"` // Source line number (1-based). Ticks int64 `json:"ticks,omitempty"` // Number of samples attributed to the source line. } + +// CoverageRange coverage data for a source range. +type CoverageRange struct { + StartLineNumber int64 `json:"startLineNumber,omitempty"` // JavaScript script line number (0-based) for the range start. + StartColumnNumber int64 `json:"startColumnNumber,omitempty"` // JavaScript script column number (0-based) for the range start. + EndLineNumber int64 `json:"endLineNumber,omitempty"` // JavaScript script line number (0-based) for the range end. + EndColumnNumber int64 `json:"endColumnNumber,omitempty"` // JavaScript script column number (0-based) for the range end. + Count int64 `json:"count,omitempty"` // Collected execution count of the source range. +} + +// FunctionCoverage coverage data for a JavaScript function. +type FunctionCoverage struct { + FunctionName string `json:"functionName,omitempty"` // JavaScript function name. + Ranges []*CoverageRange `json:"ranges,omitempty"` // Source ranges inside the function with coverage data. +} + +// ScriptCoverage coverage data for a JavaScript script. +type ScriptCoverage struct { + ScriptID runtime.ScriptID `json:"scriptId,omitempty"` // JavaScript script id. + URL string `json:"url,omitempty"` // JavaScript script name or url. + Functions []*FunctionCoverage `json:"functions,omitempty"` // Functions contained in the script that has coverage data. +} diff --git a/cdp/runtime/easyjson.go b/cdp/runtime/easyjson.go index d7fe5d1..4934e80 100644 --- a/cdp/runtime/easyjson.go +++ b/cdp/runtime/easyjson.go @@ -17,297 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime(in *jlexer.Lexer, out *TakePreciseCoverageReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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([]*ScriptCoverage, 0, 8) - } else { - out.Result = []*ScriptCoverage{} - } - } else { - out.Result = (out.Result)[:0] - } - for !in.IsDelim(']') { - var v1 *ScriptCoverage - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ScriptCoverage) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Result = append(out.Result, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime(out *jwriter.Writer, in TakePreciseCoverageReturns) { - out.RawByte('{') - first := true - _ = first - if len(in.Result) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"result\":") - if in.Result == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Result { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v TakePreciseCoverageReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v TakePreciseCoverageReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *TakePreciseCoverageReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *TakePreciseCoverageReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime1(in *jlexer.Lexer, out *TakePreciseCoverageParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime1(out *jwriter.Writer, in TakePreciseCoverageParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v TakePreciseCoverageParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v TakePreciseCoverageParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *TakePreciseCoverageParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *TakePreciseCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime1(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime2(in *jlexer.Lexer, out *StopPreciseCoverageParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime2(out *jwriter.Writer, in StopPreciseCoverageParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StopPreciseCoverageParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StopPreciseCoverageParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StopPreciseCoverageParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StopPreciseCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime2(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime3(in *jlexer.Lexer, out *StartPreciseCoverageParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime3(out *jwriter.Writer, in StartPreciseCoverageParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StartPreciseCoverageParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StartPreciseCoverageParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StartPreciseCoverageParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StartPreciseCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime3(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime4(in *jlexer.Lexer, out *StackTrace) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime(in *jlexer.Lexer, out *StackTrace) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -344,17 +54,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime4(in *jlexer.Lexer, out out.CallFrames = (out.CallFrames)[:0] } for !in.IsDelim(']') { - var v4 *CallFrame + var v1 *CallFrame if in.IsNull() { in.Skip() - v4 = nil + v1 = nil } else { - if v4 == nil { - v4 = new(CallFrame) + if v1 == nil { + v1 = new(CallFrame) } - (*v4).UnmarshalEasyJSON(in) + (*v1).UnmarshalEasyJSON(in) } - out.CallFrames = append(out.CallFrames, v4) + out.CallFrames = append(out.CallFrames, v1) in.WantComma() } in.Delim(']') @@ -389,7 +99,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime4(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime4(out *jwriter.Writer, in StackTrace) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime(out *jwriter.Writer, in StackTrace) { out.RawByte('{') first := true _ = first @@ -411,14 +121,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime4(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v5, v6 := range in.CallFrames { - if v5 > 0 { + for v2, v3 := range in.CallFrames { + if v2 > 0 { out.RawByte(',') } - if v6 == nil { + if v3 == nil { out.RawString("null") } else { - (*v6).MarshalEasyJSON(out) + (*v3).MarshalEasyJSON(out) } } out.RawByte(']') @@ -454,27 +164,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime4(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v StackTrace) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime4(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v StackTrace) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime4(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *StackTrace) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime4(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *StackTrace) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime4(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime5(in *jlexer.Lexer, out *SetCustomObjectFormatterEnabledParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime1(in *jlexer.Lexer, out *SetCustomObjectFormatterEnabledParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -505,7 +215,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime5(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime5(out *jwriter.Writer, in SetCustomObjectFormatterEnabledParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime1(out *jwriter.Writer, in SetCustomObjectFormatterEnabledParams) { out.RawByte('{') first := true _ = first @@ -521,160 +231,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime5(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetCustomObjectFormatterEnabledParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime5(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetCustomObjectFormatterEnabledParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime5(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetCustomObjectFormatterEnabledParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime5(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetCustomObjectFormatterEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime5(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime6(in *jlexer.Lexer, out *ScriptCoverage) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 = ScriptID(in.String()) - case "url": - out.URL = string(in.String()) - case "functions": - if in.IsNull() { - in.Skip() - out.Functions = nil - } else { - in.Delim('[') - if out.Functions == nil { - if !in.IsDelim(']') { - out.Functions = make([]*FunctionCoverage, 0, 8) - } else { - out.Functions = []*FunctionCoverage{} - } - } else { - out.Functions = (out.Functions)[:0] - } - for !in.IsDelim(']') { - var v7 *FunctionCoverage - if in.IsNull() { - in.Skip() - v7 = nil - } else { - if v7 == nil { - v7 = new(FunctionCoverage) - } - (*v7).UnmarshalEasyJSON(in) - } - out.Functions = append(out.Functions, v7) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime6(out *jwriter.Writer, in ScriptCoverage) { - out.RawByte('{') - first := true - _ = first - if in.ScriptID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"scriptId\":") - out.String(string(in.ScriptID)) - } - if in.URL != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"url\":") - out.String(string(in.URL)) - } - if len(in.Functions) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"functions\":") - if in.Functions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v8, v9 := range in.Functions { - if v8 > 0 { - out.RawByte(',') - } - if v9 == nil { - out.RawString("null") - } else { - (*v9).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ScriptCoverage) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ScriptCoverage) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime6(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ScriptCoverage) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime6(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ScriptCoverage) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime6(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime7(in *jlexer.Lexer, out *RunScriptReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime2(in *jlexer.Lexer, out *RunScriptReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -723,7 +300,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime7(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime7(out *jwriter.Writer, in RunScriptReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime2(out *jwriter.Writer, in RunScriptReturns) { out.RawByte('{') first := true _ = first @@ -757,27 +334,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime7(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v RunScriptReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime7(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RunScriptReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime7(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RunScriptReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime7(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RunScriptReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime7(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime2(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime8(in *jlexer.Lexer, out *RunScriptParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime3(in *jlexer.Lexer, out *RunScriptParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -822,7 +399,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime8(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime8(out *jwriter.Writer, in RunScriptParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime3(out *jwriter.Writer, in RunScriptParams) { out.RawByte('{') first := true _ = first @@ -894,27 +471,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime8(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v RunScriptParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime8(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RunScriptParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime8(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RunScriptParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime8(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RunScriptParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime8(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime3(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime9(in *jlexer.Lexer, out *RunIfWaitingForDebuggerParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime4(in *jlexer.Lexer, out *RunIfWaitingForDebuggerParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -943,7 +520,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime9(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime9(out *jwriter.Writer, in RunIfWaitingForDebuggerParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime4(out *jwriter.Writer, in RunIfWaitingForDebuggerParams) { out.RawByte('{') first := true _ = first @@ -953,27 +530,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime9(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v RunIfWaitingForDebuggerParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime9(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RunIfWaitingForDebuggerParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime9(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RunIfWaitingForDebuggerParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime9(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RunIfWaitingForDebuggerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime9(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime4(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime10(in *jlexer.Lexer, out *RemoteObject) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime5(in *jlexer.Lexer, out *RemoteObject) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1036,7 +613,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime10(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime10(out *jwriter.Writer, in RemoteObject) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime5(out *jwriter.Writer, in RemoteObject) { out.RawByte('{') first := true _ = first @@ -1126,27 +703,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime10(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v RemoteObject) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime10(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RemoteObject) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime10(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RemoteObject) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime10(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RemoteObject) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime10(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime5(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime11(in *jlexer.Lexer, out *ReleaseObjectParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime6(in *jlexer.Lexer, out *ReleaseObjectParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1177,7 +754,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime11(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime11(out *jwriter.Writer, in ReleaseObjectParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime6(out *jwriter.Writer, in ReleaseObjectParams) { out.RawByte('{') first := true _ = first @@ -1193,27 +770,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime11(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ReleaseObjectParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime11(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ReleaseObjectParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime11(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ReleaseObjectParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime11(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ReleaseObjectParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime11(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime6(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime12(in *jlexer.Lexer, out *ReleaseObjectGroupParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime7(in *jlexer.Lexer, out *ReleaseObjectGroupParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1244,7 +821,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime12(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime12(out *jwriter.Writer, in ReleaseObjectGroupParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime7(out *jwriter.Writer, in ReleaseObjectGroupParams) { out.RawByte('{') first := true _ = first @@ -1260,27 +837,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime12(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ReleaseObjectGroupParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime12(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ReleaseObjectGroupParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime12(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ReleaseObjectGroupParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime12(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ReleaseObjectGroupParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime12(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime7(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime13(in *jlexer.Lexer, out *PropertyPreview) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime8(in *jlexer.Lexer, out *PropertyPreview) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1327,7 +904,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime13(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime13(out *jwriter.Writer, in PropertyPreview) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime8(out *jwriter.Writer, in PropertyPreview) { out.RawByte('{') first := true _ = first @@ -1381,27 +958,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime13(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v PropertyPreview) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime13(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v PropertyPreview) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime13(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *PropertyPreview) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime13(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *PropertyPreview) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime13(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime8(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime14(in *jlexer.Lexer, out *PropertyDescriptor) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime9(in *jlexer.Lexer, out *PropertyDescriptor) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1482,7 +1059,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime14(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime14(out *jwriter.Writer, in PropertyDescriptor) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime9(out *jwriter.Writer, in PropertyDescriptor) { out.RawByte('{') first := true _ = first @@ -1588,27 +1165,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime14(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v PropertyDescriptor) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime14(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v PropertyDescriptor) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime14(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *PropertyDescriptor) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime14(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *PropertyDescriptor) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime14(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime9(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime15(in *jlexer.Lexer, out *ObjectPreview) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime10(in *jlexer.Lexer, out *ObjectPreview) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1651,17 +1228,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime15(in *jlexer.Lexer, ou out.Properties = (out.Properties)[:0] } for !in.IsDelim(']') { - var v10 *PropertyPreview + var v4 *PropertyPreview if in.IsNull() { in.Skip() - v10 = nil + v4 = nil } else { - if v10 == nil { - v10 = new(PropertyPreview) + if v4 == nil { + v4 = new(PropertyPreview) } - (*v10).UnmarshalEasyJSON(in) + (*v4).UnmarshalEasyJSON(in) } - out.Properties = append(out.Properties, v10) + out.Properties = append(out.Properties, v4) in.WantComma() } in.Delim(']') @@ -1682,17 +1259,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime15(in *jlexer.Lexer, ou out.Entries = (out.Entries)[:0] } for !in.IsDelim(']') { - var v11 *EntryPreview + var v5 *EntryPreview if in.IsNull() { in.Skip() - v11 = nil + v5 = nil } else { - if v11 == nil { - v11 = new(EntryPreview) + if v5 == nil { + v5 = new(EntryPreview) } - (*v11).UnmarshalEasyJSON(in) + (*v5).UnmarshalEasyJSON(in) } - out.Entries = append(out.Entries, v11) + out.Entries = append(out.Entries, v5) in.WantComma() } in.Delim(']') @@ -1707,7 +1284,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime15(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime15(out *jwriter.Writer, in ObjectPreview) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime10(out *jwriter.Writer, in ObjectPreview) { out.RawByte('{') first := true _ = first @@ -1753,14 +1330,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime15(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v12, v13 := range in.Properties { - if v12 > 0 { + for v6, v7 := range in.Properties { + if v6 > 0 { out.RawByte(',') } - if v13 == nil { + if v7 == nil { out.RawString("null") } else { - (*v13).MarshalEasyJSON(out) + (*v7).MarshalEasyJSON(out) } } out.RawByte(']') @@ -1776,14 +1353,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime15(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v14, v15 := range in.Entries { - if v14 > 0 { + for v8, v9 := range in.Entries { + if v8 > 0 { out.RawByte(',') } - if v15 == nil { + if v9 == nil { out.RawString("null") } else { - (*v15).MarshalEasyJSON(out) + (*v9).MarshalEasyJSON(out) } } out.RawByte(']') @@ -1795,27 +1372,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime15(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ObjectPreview) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime15(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ObjectPreview) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime15(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ObjectPreview) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime15(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ObjectPreview) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime15(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime10(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime16(in *jlexer.Lexer, out *InternalPropertyDescriptor) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime11(in *jlexer.Lexer, out *InternalPropertyDescriptor) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1856,7 +1433,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime16(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime16(out *jwriter.Writer, in InternalPropertyDescriptor) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime11(out *jwriter.Writer, in InternalPropertyDescriptor) { out.RawByte('{') first := true _ = first @@ -1886,27 +1463,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime16(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v InternalPropertyDescriptor) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime16(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v InternalPropertyDescriptor) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime16(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *InternalPropertyDescriptor) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime16(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *InternalPropertyDescriptor) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime16(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime11(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime17(in *jlexer.Lexer, out *GetPropertiesReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime12(in *jlexer.Lexer, out *GetPropertiesReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1941,17 +1518,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime17(in *jlexer.Lexer, ou out.Result = (out.Result)[:0] } for !in.IsDelim(']') { - var v16 *PropertyDescriptor + var v10 *PropertyDescriptor if in.IsNull() { in.Skip() - v16 = nil + v10 = nil } else { - if v16 == nil { - v16 = new(PropertyDescriptor) + if v10 == nil { + v10 = new(PropertyDescriptor) } - (*v16).UnmarshalEasyJSON(in) + (*v10).UnmarshalEasyJSON(in) } - out.Result = append(out.Result, v16) + out.Result = append(out.Result, v10) in.WantComma() } in.Delim(']') @@ -1972,17 +1549,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime17(in *jlexer.Lexer, ou out.InternalProperties = (out.InternalProperties)[:0] } for !in.IsDelim(']') { - var v17 *InternalPropertyDescriptor + var v11 *InternalPropertyDescriptor if in.IsNull() { in.Skip() - v17 = nil + v11 = nil } else { - if v17 == nil { - v17 = new(InternalPropertyDescriptor) + if v11 == nil { + v11 = new(InternalPropertyDescriptor) } - (*v17).UnmarshalEasyJSON(in) + (*v11).UnmarshalEasyJSON(in) } - out.InternalProperties = append(out.InternalProperties, v17) + out.InternalProperties = append(out.InternalProperties, v11) in.WantComma() } in.Delim(']') @@ -2007,7 +1584,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime17(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime17(out *jwriter.Writer, in GetPropertiesReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime12(out *jwriter.Writer, in GetPropertiesReturns) { out.RawByte('{') first := true _ = first @@ -2021,14 +1598,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime17(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v18, v19 := range in.Result { - if v18 > 0 { + for v12, v13 := range in.Result { + if v12 > 0 { out.RawByte(',') } - if v19 == nil { + if v13 == nil { out.RawString("null") } else { - (*v19).MarshalEasyJSON(out) + (*v13).MarshalEasyJSON(out) } } out.RawByte(']') @@ -2044,14 +1621,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime17(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v20, v21 := range in.InternalProperties { - if v20 > 0 { + for v14, v15 := range in.InternalProperties { + if v14 > 0 { out.RawByte(',') } - if v21 == nil { + if v15 == nil { out.RawString("null") } else { - (*v21).MarshalEasyJSON(out) + (*v15).MarshalEasyJSON(out) } } out.RawByte(']') @@ -2075,27 +1652,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime17(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetPropertiesReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime17(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetPropertiesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime17(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetPropertiesReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime17(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetPropertiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime17(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime12(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime18(in *jlexer.Lexer, out *GetPropertiesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime13(in *jlexer.Lexer, out *GetPropertiesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2132,7 +1709,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime18(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime18(out *jwriter.Writer, in GetPropertiesParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime13(out *jwriter.Writer, in GetPropertiesParams) { out.RawByte('{') first := true _ = first @@ -2172,322 +1749,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime18(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetPropertiesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime18(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetPropertiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime18(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetPropertiesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime18(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetPropertiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime18(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime13(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime19(in *jlexer.Lexer, out *GetBestEffortCoverageReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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([]*ScriptCoverage, 0, 8) - } else { - out.Result = []*ScriptCoverage{} - } - } else { - out.Result = (out.Result)[:0] - } - for !in.IsDelim(']') { - var v22 *ScriptCoverage - if in.IsNull() { - in.Skip() - v22 = nil - } else { - if v22 == nil { - v22 = new(ScriptCoverage) - } - (*v22).UnmarshalEasyJSON(in) - } - out.Result = append(out.Result, v22) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime19(out *jwriter.Writer, in GetBestEffortCoverageReturns) { - out.RawByte('{') - first := true - _ = first - if len(in.Result) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"result\":") - if in.Result == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v23, v24 := range in.Result { - if v23 > 0 { - out.RawByte(',') - } - if v24 == nil { - out.RawString("null") - } else { - (*v24).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetBestEffortCoverageReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime19(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetBestEffortCoverageReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime19(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetBestEffortCoverageReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime19(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetBestEffortCoverageReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime19(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime20(in *jlexer.Lexer, out *GetBestEffortCoverageParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime20(out *jwriter.Writer, in GetBestEffortCoverageParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetBestEffortCoverageParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime20(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetBestEffortCoverageParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime20(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetBestEffortCoverageParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime20(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetBestEffortCoverageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime20(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime21(in *jlexer.Lexer, out *FunctionCoverage) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 "functionName": - out.FunctionName = string(in.String()) - case "ranges": - if in.IsNull() { - in.Skip() - out.Ranges = nil - } else { - in.Delim('[') - if out.Ranges == nil { - if !in.IsDelim(']') { - out.Ranges = make([]*CoverageRange, 0, 8) - } else { - out.Ranges = []*CoverageRange{} - } - } else { - out.Ranges = (out.Ranges)[:0] - } - for !in.IsDelim(']') { - var v25 *CoverageRange - if in.IsNull() { - in.Skip() - v25 = nil - } else { - if v25 == nil { - v25 = new(CoverageRange) - } - (*v25).UnmarshalEasyJSON(in) - } - out.Ranges = append(out.Ranges, v25) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime21(out *jwriter.Writer, in FunctionCoverage) { - out.RawByte('{') - first := true - _ = first - if in.FunctionName != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"functionName\":") - out.String(string(in.FunctionName)) - } - if len(in.Ranges) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"ranges\":") - if in.Ranges == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v26, v27 := range in.Ranges { - if v26 > 0 { - out.RawByte(',') - } - if v27 == nil { - out.RawString("null") - } else { - (*v27).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v FunctionCoverage) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime21(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v FunctionCoverage) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime21(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *FunctionCoverage) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime21(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *FunctionCoverage) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime21(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime22(in *jlexer.Lexer, out *ExecutionContextDescription) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime14(in *jlexer.Lexer, out *ExecutionContextDescription) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2524,7 +1806,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime22(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime22(out *jwriter.Writer, in ExecutionContextDescription) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime14(out *jwriter.Writer, in ExecutionContextDescription) { out.RawByte('{') first := true _ = first @@ -2566,27 +1848,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime22(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ExecutionContextDescription) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime22(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ExecutionContextDescription) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime22(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ExecutionContextDescription) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime22(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ExecutionContextDescription) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime22(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime14(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime23(in *jlexer.Lexer, out *ExceptionDetails) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime15(in *jlexer.Lexer, out *ExceptionDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2649,7 +1931,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime23(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime23(out *jwriter.Writer, in ExceptionDetails) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime15(out *jwriter.Writer, in ExceptionDetails) { out.RawByte('{') first := true _ = first @@ -2739,27 +2021,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime23(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ExceptionDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime23(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime15(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ExceptionDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime23(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime15(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ExceptionDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime23(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime15(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ExceptionDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime23(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime15(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime24(in *jlexer.Lexer, out *EventInspectRequested) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime16(in *jlexer.Lexer, out *EventInspectRequested) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2800,7 +2082,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime24(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime24(out *jwriter.Writer, in EventInspectRequested) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime16(out *jwriter.Writer, in EventInspectRequested) { out.RawByte('{') first := true _ = first @@ -2830,27 +2112,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime24(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventInspectRequested) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime24(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventInspectRequested) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime24(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventInspectRequested) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime24(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventInspectRequested) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime24(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime16(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime25(in *jlexer.Lexer, out *EventExecutionContextsCleared) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime17(in *jlexer.Lexer, out *EventExecutionContextsCleared) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2879,7 +2161,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime25(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime25(out *jwriter.Writer, in EventExecutionContextsCleared) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime17(out *jwriter.Writer, in EventExecutionContextsCleared) { out.RawByte('{') first := true _ = first @@ -2889,27 +2171,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime25(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventExecutionContextsCleared) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime25(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime17(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventExecutionContextsCleared) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime25(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime17(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventExecutionContextsCleared) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime25(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime17(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventExecutionContextsCleared) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime25(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime17(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime26(in *jlexer.Lexer, out *EventExecutionContextDestroyed) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime18(in *jlexer.Lexer, out *EventExecutionContextDestroyed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2940,7 +2222,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime26(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime26(out *jwriter.Writer, in EventExecutionContextDestroyed) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime18(out *jwriter.Writer, in EventExecutionContextDestroyed) { out.RawByte('{') first := true _ = first @@ -2958,27 +2240,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime26(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventExecutionContextDestroyed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime26(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventExecutionContextDestroyed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime26(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventExecutionContextDestroyed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime26(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventExecutionContextDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime26(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime18(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime27(in *jlexer.Lexer, out *EventExecutionContextCreated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime19(in *jlexer.Lexer, out *EventExecutionContextCreated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3017,7 +2299,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime27(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime27(out *jwriter.Writer, in EventExecutionContextCreated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime19(out *jwriter.Writer, in EventExecutionContextCreated) { out.RawByte('{') first := true _ = first @@ -3039,27 +2321,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime27(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventExecutionContextCreated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime27(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime19(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventExecutionContextCreated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime27(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime19(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventExecutionContextCreated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime27(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime19(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventExecutionContextCreated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime27(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime19(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime28(in *jlexer.Lexer, out *EventExceptionThrown) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime20(in *jlexer.Lexer, out *EventExceptionThrown) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3100,7 +2382,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime28(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime28(out *jwriter.Writer, in EventExceptionThrown) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime20(out *jwriter.Writer, in EventExceptionThrown) { out.RawByte('{') first := true _ = first @@ -3130,27 +2412,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime28(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventExceptionThrown) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime28(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime20(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventExceptionThrown) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime28(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime20(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventExceptionThrown) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime28(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime20(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventExceptionThrown) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime28(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime20(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime29(in *jlexer.Lexer, out *EventExceptionRevoked) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime21(in *jlexer.Lexer, out *EventExceptionRevoked) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3183,7 +2465,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime29(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime29(out *jwriter.Writer, in EventExceptionRevoked) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime21(out *jwriter.Writer, in EventExceptionRevoked) { out.RawByte('{') first := true _ = first @@ -3209,27 +2491,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime29(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventExceptionRevoked) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime29(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime21(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventExceptionRevoked) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime29(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime21(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventExceptionRevoked) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime29(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime21(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventExceptionRevoked) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime29(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime21(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime30(in *jlexer.Lexer, out *EventConsoleAPICalled) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime22(in *jlexer.Lexer, out *EventConsoleAPICalled) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3266,17 +2548,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime30(in *jlexer.Lexer, ou out.Args = (out.Args)[:0] } for !in.IsDelim(']') { - var v28 *RemoteObject + var v16 *RemoteObject if in.IsNull() { in.Skip() - v28 = nil + v16 = nil } else { - if v28 == nil { - v28 = new(RemoteObject) + if v16 == nil { + v16 = new(RemoteObject) } - (*v28).UnmarshalEasyJSON(in) + (*v16).UnmarshalEasyJSON(in) } - out.Args = append(out.Args, v28) + out.Args = append(out.Args, v16) in.WantComma() } in.Delim(']') @@ -3305,7 +2587,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime30(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime30(out *jwriter.Writer, in EventConsoleAPICalled) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime22(out *jwriter.Writer, in EventConsoleAPICalled) { out.RawByte('{') first := true _ = first @@ -3327,14 +2609,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime30(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v29, v30 := range in.Args { - if v29 > 0 { + for v17, v18 := range in.Args { + if v17 > 0 { out.RawByte(',') } - if v30 == nil { + if v18 == nil { out.RawString("null") } else { - (*v30).MarshalEasyJSON(out) + (*v18).MarshalEasyJSON(out) } } out.RawByte(']') @@ -3374,27 +2656,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime30(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventConsoleAPICalled) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime30(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime22(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventConsoleAPICalled) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime30(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime22(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventConsoleAPICalled) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime30(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime22(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventConsoleAPICalled) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime30(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime22(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime31(in *jlexer.Lexer, out *EvaluateReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime23(in *jlexer.Lexer, out *EvaluateReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3443,7 +2725,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime31(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime31(out *jwriter.Writer, in EvaluateReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime23(out *jwriter.Writer, in EvaluateReturns) { out.RawByte('{') first := true _ = first @@ -3477,27 +2759,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime31(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EvaluateReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime31(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime23(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EvaluateReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime31(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime23(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EvaluateReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime31(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime23(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EvaluateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime31(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime23(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime32(in *jlexer.Lexer, out *EvaluateParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime24(in *jlexer.Lexer, out *EvaluateParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3544,7 +2826,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime32(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime32(out *jwriter.Writer, in EvaluateParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime24(out *jwriter.Writer, in EvaluateParams) { out.RawByte('{') first := true _ = first @@ -3624,27 +2906,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime32(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EvaluateParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime32(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime24(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EvaluateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime32(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime24(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EvaluateParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime32(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime24(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EvaluateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime32(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime24(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime33(in *jlexer.Lexer, out *EntryPreview) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime25(in *jlexer.Lexer, out *EntryPreview) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3693,7 +2975,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime33(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime33(out *jwriter.Writer, in EntryPreview) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime25(out *jwriter.Writer, in EntryPreview) { out.RawByte('{') first := true _ = first @@ -3727,27 +3009,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime33(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EntryPreview) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime33(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime25(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EntryPreview) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime33(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime25(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EntryPreview) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime33(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime25(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EntryPreview) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime33(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime25(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime34(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime26(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3776,7 +3058,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime34(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime34(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime26(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -3786,27 +3068,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime34(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime34(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime26(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime34(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime26(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime34(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime26(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime34(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime26(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime35(in *jlexer.Lexer, out *DiscardConsoleEntriesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime27(in *jlexer.Lexer, out *DiscardConsoleEntriesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3835,7 +3117,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime35(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime35(out *jwriter.Writer, in DiscardConsoleEntriesParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime27(out *jwriter.Writer, in DiscardConsoleEntriesParams) { out.RawByte('{') first := true _ = first @@ -3845,27 +3127,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime35(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v DiscardConsoleEntriesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime35(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime27(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DiscardConsoleEntriesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime35(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime27(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DiscardConsoleEntriesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime35(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime27(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DiscardConsoleEntriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime35(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime27(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime36(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime28(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3894,7 +3176,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime36(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime36(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime28(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first @@ -3904,27 +3186,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime36(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime36(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime28(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime36(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime28(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime36(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime28(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime36(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime28(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime37(in *jlexer.Lexer, out *CustomPreview) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime29(in *jlexer.Lexer, out *CustomPreview) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3963,7 +3245,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime37(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime37(out *jwriter.Writer, in CustomPreview) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime29(out *jwriter.Writer, in CustomPreview) { out.RawByte('{') first := true _ = first @@ -4013,136 +3295,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime37(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CustomPreview) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime37(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime29(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CustomPreview) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime37(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime29(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CustomPreview) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime37(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime29(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CustomPreview) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime37(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime29(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime38(in *jlexer.Lexer, out *CoverageRange) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 "startLineNumber": - out.StartLineNumber = int64(in.Int64()) - case "startColumnNumber": - out.StartColumnNumber = int64(in.Int64()) - case "endLineNumber": - out.EndLineNumber = int64(in.Int64()) - case "endColumnNumber": - out.EndColumnNumber = int64(in.Int64()) - case "count": - out.Count = int64(in.Int64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime38(out *jwriter.Writer, in CoverageRange) { - out.RawByte('{') - first := true - _ = first - if in.StartLineNumber != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"startLineNumber\":") - out.Int64(int64(in.StartLineNumber)) - } - if in.StartColumnNumber != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"startColumnNumber\":") - out.Int64(int64(in.StartColumnNumber)) - } - if in.EndLineNumber != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"endLineNumber\":") - out.Int64(int64(in.EndLineNumber)) - } - if in.EndColumnNumber != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"endColumnNumber\":") - out.Int64(int64(in.EndColumnNumber)) - } - if in.Count != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"count\":") - out.Int64(int64(in.Count)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CoverageRange) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime38(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CoverageRange) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime38(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CoverageRange) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime38(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CoverageRange) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime38(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime39(in *jlexer.Lexer, out *CompileScriptReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime30(in *jlexer.Lexer, out *CompileScriptReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4183,7 +3356,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime39(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime39(out *jwriter.Writer, in CompileScriptReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime30(out *jwriter.Writer, in CompileScriptReturns) { out.RawByte('{') first := true _ = first @@ -4213,27 +3386,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime39(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CompileScriptReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime39(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime30(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CompileScriptReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime39(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime30(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CompileScriptReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime39(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime30(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CompileScriptReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime39(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime30(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime40(in *jlexer.Lexer, out *CompileScriptParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime31(in *jlexer.Lexer, out *CompileScriptParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4270,7 +3443,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime40(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime40(out *jwriter.Writer, in CompileScriptParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime31(out *jwriter.Writer, in CompileScriptParams) { out.RawByte('{') first := true _ = first @@ -4306,27 +3479,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime40(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CompileScriptParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime40(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime31(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CompileScriptParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime40(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime31(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CompileScriptParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime40(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime31(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CompileScriptParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime40(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime31(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime41(in *jlexer.Lexer, out *CallFunctionOnReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime32(in *jlexer.Lexer, out *CallFunctionOnReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4375,7 +3548,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime41(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime41(out *jwriter.Writer, in CallFunctionOnReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime32(out *jwriter.Writer, in CallFunctionOnReturns) { out.RawByte('{') first := true _ = first @@ -4409,27 +3582,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime41(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CallFunctionOnReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime41(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime32(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CallFunctionOnReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime41(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime32(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CallFunctionOnReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime41(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime32(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CallFunctionOnReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime41(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime32(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime42(in *jlexer.Lexer, out *CallFunctionOnParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime33(in *jlexer.Lexer, out *CallFunctionOnParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4468,17 +3641,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime42(in *jlexer.Lexer, ou out.Arguments = (out.Arguments)[:0] } for !in.IsDelim(']') { - var v31 *CallArgument + var v19 *CallArgument if in.IsNull() { in.Skip() - v31 = nil + v19 = nil } else { - if v31 == nil { - v31 = new(CallArgument) + if v19 == nil { + v19 = new(CallArgument) } - (*v31).UnmarshalEasyJSON(in) + (*v19).UnmarshalEasyJSON(in) } - out.Arguments = append(out.Arguments, v31) + out.Arguments = append(out.Arguments, v19) in.WantComma() } in.Delim(']') @@ -4503,7 +3676,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime42(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime42(out *jwriter.Writer, in CallFunctionOnParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime33(out *jwriter.Writer, in CallFunctionOnParams) { out.RawByte('{') first := true _ = first @@ -4529,14 +3702,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime42(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v32, v33 := range in.Arguments { - if v32 > 0 { + for v20, v21 := range in.Arguments { + if v20 > 0 { out.RawByte(',') } - if v33 == nil { + if v21 == nil { out.RawString("null") } else { - (*v33).MarshalEasyJSON(out) + (*v21).MarshalEasyJSON(out) } } out.RawByte(']') @@ -4588,27 +3761,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime42(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CallFunctionOnParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime42(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime33(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CallFunctionOnParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime42(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime33(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CallFunctionOnParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime42(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime33(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CallFunctionOnParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime42(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime33(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime43(in *jlexer.Lexer, out *CallFrame) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime34(in *jlexer.Lexer, out *CallFrame) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4647,7 +3820,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime43(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime43(out *jwriter.Writer, in CallFrame) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime34(out *jwriter.Writer, in CallFrame) { out.RawByte('{') first := true _ = first @@ -4697,27 +3870,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime43(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CallFrame) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime43(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime34(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CallFrame) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime43(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime34(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CallFrame) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime43(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime34(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CallFrame) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime43(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime34(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime44(in *jlexer.Lexer, out *CallArgument) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime35(in *jlexer.Lexer, out *CallArgument) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4752,7 +3925,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime44(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime44(out *jwriter.Writer, in CallArgument) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime35(out *jwriter.Writer, in CallArgument) { out.RawByte('{') first := true _ = first @@ -4786,27 +3959,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime44(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CallArgument) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime44(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime35(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CallArgument) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime44(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime35(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CallArgument) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime44(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime35(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CallArgument) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime44(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime35(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime45(in *jlexer.Lexer, out *AwaitPromiseReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime36(in *jlexer.Lexer, out *AwaitPromiseReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4855,7 +4028,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime45(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime45(out *jwriter.Writer, in AwaitPromiseReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime36(out *jwriter.Writer, in AwaitPromiseReturns) { out.RawByte('{') first := true _ = first @@ -4889,27 +4062,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime45(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AwaitPromiseReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime45(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime36(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AwaitPromiseReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime45(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime36(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AwaitPromiseReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime45(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime36(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AwaitPromiseReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime45(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime36(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime46(in *jlexer.Lexer, out *AwaitPromiseParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime37(in *jlexer.Lexer, out *AwaitPromiseParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4944,7 +4117,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime46(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime46(out *jwriter.Writer, in AwaitPromiseParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime37(out *jwriter.Writer, in AwaitPromiseParams) { out.RawByte('{') first := true _ = first @@ -4976,23 +4149,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime46(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AwaitPromiseParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime46(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime37(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AwaitPromiseParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime46(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime37(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AwaitPromiseParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime46(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime37(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AwaitPromiseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime46(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime37(l, v) } diff --git a/cdp/runtime/runtime.go b/cdp/runtime/runtime.go index a1ac6d8..f7826ed 100644 --- a/cdp/runtime/runtime.go +++ b/cdp/runtime/runtime.go @@ -603,100 +603,3 @@ func (p *RunScriptParams) Do(ctxt context.Context, h cdp.Handler) (result *Remot return res.Result, res.ExceptionDetails, nil } - -// StartPreciseCoverageParams enable precise code coverage. Coverage data for -// JavaScript executed before enabling precise code coverage may be incomplete. -// Enabling prevents running optimized code and resets execution counters. -type StartPreciseCoverageParams struct{} - -// StartPreciseCoverage enable precise code coverage. Coverage data for -// JavaScript executed before enabling precise code coverage may be incomplete. -// Enabling prevents running optimized code and resets execution counters. -func StartPreciseCoverage() *StartPreciseCoverageParams { - return &StartPreciseCoverageParams{} -} - -// Do executes Runtime.startPreciseCoverage against the provided context and -// target handler. -func (p *StartPreciseCoverageParams) Do(ctxt context.Context, h cdp.Handler) (err error) { - return h.Execute(ctxt, cdp.CommandRuntimeStartPreciseCoverage, nil, nil) -} - -// StopPreciseCoverageParams disable precise code coverage. Disabling -// releases unnecessary execution count records and allows executing optimized -// code. -type StopPreciseCoverageParams struct{} - -// StopPreciseCoverage disable precise code coverage. Disabling releases -// unnecessary execution count records and allows executing optimized code. -func StopPreciseCoverage() *StopPreciseCoverageParams { - return &StopPreciseCoverageParams{} -} - -// Do executes Runtime.stopPreciseCoverage against the provided context and -// target handler. -func (p *StopPreciseCoverageParams) Do(ctxt context.Context, h cdp.Handler) (err error) { - return h.Execute(ctxt, cdp.CommandRuntimeStopPreciseCoverage, nil, nil) -} - -// TakePreciseCoverageParams collect coverage data for the current isolate, -// and resets execution counters. Precise code coverage needs to have started. -type TakePreciseCoverageParams struct{} - -// TakePreciseCoverage collect coverage data for the current isolate, and -// resets execution counters. Precise code coverage needs to have started. -func TakePreciseCoverage() *TakePreciseCoverageParams { - return &TakePreciseCoverageParams{} -} - -// TakePreciseCoverageReturns return values. -type TakePreciseCoverageReturns struct { - Result []*ScriptCoverage `json:"result,omitempty"` // Coverage data for the current isolate. -} - -// Do executes Runtime.takePreciseCoverage against the provided context and -// target handler. -// -// returns: -// result - Coverage data for the current isolate. -func (p *TakePreciseCoverageParams) Do(ctxt context.Context, h cdp.Handler) (result []*ScriptCoverage, err error) { - // execute - var res TakePreciseCoverageReturns - err = h.Execute(ctxt, cdp.CommandRuntimeTakePreciseCoverage, nil, &res) - if err != nil { - return nil, err - } - - return res.Result, nil -} - -// GetBestEffortCoverageParams collect coverage data for the current isolate. -// The coverage data may be incomplete due to garbage collection. -type GetBestEffortCoverageParams struct{} - -// GetBestEffortCoverage collect coverage data for the current isolate. The -// coverage data may be incomplete due to garbage collection. -func GetBestEffortCoverage() *GetBestEffortCoverageParams { - return &GetBestEffortCoverageParams{} -} - -// GetBestEffortCoverageReturns return values. -type GetBestEffortCoverageReturns struct { - Result []*ScriptCoverage `json:"result,omitempty"` // Coverage data for the current isolate. -} - -// Do executes Runtime.getBestEffortCoverage against the provided context and -// target handler. -// -// returns: -// result - Coverage data for the current isolate. -func (p *GetBestEffortCoverageParams) Do(ctxt context.Context, h cdp.Handler) (result []*ScriptCoverage, err error) { - // execute - var res GetBestEffortCoverageReturns - err = h.Execute(ctxt, cdp.CommandRuntimeGetBestEffortCoverage, nil, &res) - if err != nil { - return nil, err - } - - return res.Result, nil -} diff --git a/cdp/runtime/types.go b/cdp/runtime/types.go index 746f755..4c1c785 100644 --- a/cdp/runtime/types.go +++ b/cdp/runtime/types.go @@ -206,28 +206,6 @@ type StackTrace struct { PromiseCreationFrame *CallFrame `json:"promiseCreationFrame,omitempty"` // Creation frame of the Promise which produced the next synchronous trace when resolved, if available. } -// CoverageRange coverage data for a source range. -type CoverageRange struct { - StartLineNumber int64 `json:"startLineNumber,omitempty"` // JavaScript script line number (0-based) for the range start. - StartColumnNumber int64 `json:"startColumnNumber,omitempty"` // JavaScript script column number (0-based) for the range start. - EndLineNumber int64 `json:"endLineNumber,omitempty"` // JavaScript script line number (0-based) for the range end. - EndColumnNumber int64 `json:"endColumnNumber,omitempty"` // JavaScript script column number (0-based) for the range end. - Count int64 `json:"count,omitempty"` // Collected execution count of the source range. -} - -// FunctionCoverage coverage data for a JavaScript function. -type FunctionCoverage struct { - FunctionName string `json:"functionName,omitempty"` // JavaScript function name. - Ranges []*CoverageRange `json:"ranges,omitempty"` // Source ranges inside the function with coverage data. -} - -// ScriptCoverage coverage data for a JavaScript script. -type ScriptCoverage struct { - ScriptID ScriptID `json:"scriptId,omitempty"` // JavaScript script id. - URL string `json:"url,omitempty"` // JavaScript script name or url. - Functions []*FunctionCoverage `json:"functions,omitempty"` // Functions contained in the script that has coverage data. -} - // Type object type. type Type string diff --git a/cmd/chromedp-gen/protocol.json b/cmd/chromedp-gen/protocol.json index 5226151..5cd61da 100644 --- a/cmd/chromedp-gen/protocol.json +++ b/cmd/chromedp-gen/protocol.json @@ -10716,86 +10716,6 @@ "description": "Creation frame of the Promise which produced the next synchronous trace when resolved, if available." } ] - }, - { - "id": "CoverageRange", - "type": "object", - "description": "Coverage data for a source range.", - "properties": [ - { - "name": "startLineNumber", - "type": "integer", - "description": "JavaScript script line number (0-based) for the range start." - }, - { - "name": "startColumnNumber", - "type": "integer", - "description": "JavaScript script column number (0-based) for the range start." - }, - { - "name": "endLineNumber", - "type": "integer", - "description": "JavaScript script line number (0-based) for the range end." - }, - { - "name": "endColumnNumber", - "type": "integer", - "description": "JavaScript script column number (0-based) for the range end." - }, - { - "name": "count", - "type": "integer", - "description": "Collected execution count of the source range." - } - ], - "experimental": "true" - }, - { - "id": "FunctionCoverage", - "type": "object", - "description": "Coverage data for a JavaScript function.", - "properties": [ - { - "name": "functionName", - "type": "string", - "description": "JavaScript function name." - }, - { - "name": "ranges", - "type": "array", - "items": { - "$ref": "CoverageRange" - }, - "description": "Source ranges inside the function with coverage data." - } - ], - "experimental": "true" - }, - { - "id": "ScriptCoverage", - "type": "object", - "description": "Coverage data for a JavaScript script.", - "properties": [ - { - "name": "scriptId", - "$ref": "ScriptId", - "description": "JavaScript script id." - }, - { - "name": "url", - "type": "string", - "description": "JavaScript script name or url." - }, - { - "name": "functions", - "type": "array", - "items": { - "$ref": "FunctionCoverage" - }, - "description": "Functions contained in the script that has coverage data." - } - ], - "experimental": "true" } ], "commands": [ @@ -11190,46 +11110,6 @@ } ], "description": "Runs script with given id in a given context." - }, - { - "name": "startPreciseCoverage", - "description": "Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.", - "experimental": true - }, - { - "name": "stopPreciseCoverage", - "description": "Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.", - "experimental": true - }, - { - "name": "takePreciseCoverage", - "returns": [ - { - "name": "result", - "type": "array", - "items": { - "$ref": "ScriptCoverage" - }, - "description": "Coverage data for the current isolate." - } - ], - "description": "Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.", - "experimental": true - }, - { - "name": "getBestEffortCoverage", - "returns": [ - { - "name": "result", - "type": "array", - "items": { - "$ref": "ScriptCoverage" - }, - "description": "Coverage data for the current isolate." - } - ], - "description": "Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.", - "experimental": true } ], "events": [ @@ -11662,6 +11542,12 @@ "$ref": "Location", "optional": true, "description": "End of range to search possible breakpoint locations in (excluding). When not specifed, end of scripts is used as end of range." + }, + { + "name": "restrictToFunction", + "type": "boolean", + "optional": true, + "description": "Only consider locations which are in the same (non-nested) function as start." } ], "returns": [ @@ -12437,6 +12323,86 @@ "description": "Number of samples attributed to the source line." } ] + }, + { + "id": "CoverageRange", + "type": "object", + "description": "Coverage data for a source range.", + "properties": [ + { + "name": "startLineNumber", + "type": "integer", + "description": "JavaScript script line number (0-based) for the range start." + }, + { + "name": "startColumnNumber", + "type": "integer", + "description": "JavaScript script column number (0-based) for the range start." + }, + { + "name": "endLineNumber", + "type": "integer", + "description": "JavaScript script line number (0-based) for the range end." + }, + { + "name": "endColumnNumber", + "type": "integer", + "description": "JavaScript script column number (0-based) for the range end." + }, + { + "name": "count", + "type": "integer", + "description": "Collected execution count of the source range." + } + ], + "experimental": true + }, + { + "id": "FunctionCoverage", + "type": "object", + "description": "Coverage data for a JavaScript function.", + "properties": [ + { + "name": "functionName", + "type": "string", + "description": "JavaScript function name." + }, + { + "name": "ranges", + "type": "array", + "items": { + "$ref": "CoverageRange" + }, + "description": "Source ranges inside the function with coverage data." + } + ], + "experimental": true + }, + { + "id": "ScriptCoverage", + "type": "object", + "description": "Coverage data for a JavaScript script.", + "properties": [ + { + "name": "scriptId", + "$ref": "Runtime.ScriptId", + "description": "JavaScript script id." + }, + { + "name": "url", + "type": "string", + "description": "JavaScript script name or url." + }, + { + "name": "functions", + "type": "array", + "items": { + "$ref": "FunctionCoverage" + }, + "description": "Functions contained in the script that has coverage data." + } + ], + "experimental": true } ], "commands": [ @@ -12469,6 +12435,46 @@ "description": "Recorded profile." } ] + }, + { + "name": "startPreciseCoverage", + "description": "Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.", + "experimental": true + }, + { + "name": "stopPreciseCoverage", + "description": "Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.", + "experimental": true + }, + { + "name": "takePreciseCoverage", + "returns": [ + { + "name": "result", + "type": "array", + "items": { + "$ref": "ScriptCoverage" + }, + "description": "Coverage data for the current isolate." + } + ], + "description": "Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.", + "experimental": true + }, + { + "name": "getBestEffortCoverage", + "returns": [ + { + "name": "result", + "type": "array", + "items": { + "$ref": "ScriptCoverage" + }, + "description": "Coverage data for the current isolate." + } + ], + "description": "Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.", + "experimental": true } ], "events": [