MCPcopy Index your code
hub / github.com/maruel/panicparse / merge

Method merge

stack/stack.go:546–556  ·  view source on GitHub ↗

merge merges two similar Stack, zapping out differences.

(r *Stack)

Source from the content-addressed store, hash-verified

544
545// merge merges two similar Stack, zapping out differences.
546func (s *Stack) merge(r *Stack) *Stack {
547 // Assumes similar stacks have the same length.
548 out := &Stack{
549 Calls: make([]Call, len(s.Calls)),
550 Elided: s.Elided,
551 }
552 for i := range s.Calls {
553 out.Calls[i] = s.Calls[i].merge(&r.Calls[i])
554 }
555 return out
556}
557
558// less compares two Stack, where the ones that are less are more
559// important, so they come up front.

Callers

nothing calls this directly

Calls 1

mergeMethod · 0.45

Tested by

no test coverage detected