MCPcopy Index your code
hub / github.com/google/codesearch / push

Method push

index/write.go:413–419  ·  view source on GitHub ↗
(ch *postChunk)

Source from the content-addressed store, hash-verified

411}
412
413func (h *postHeap) push(ch *postChunk) {
414 n := len(h.ch)
415 h.ch = append(h.ch, ch)
416 if len(h.ch) >= 2 {
417 h.siftUp(n)
418 }
419}
420
421func (h *postHeap) siftDown(i int) {
422 ch := h.ch

Callers 1

addMethod · 0.95

Calls 1

siftUpMethod · 0.95

Tested by

no test coverage detected