MCPcopy Create free account
hub / github.com/nsf/gocode / Less

Method Less

autocompletecontext.go:57–64  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

55}
56
57func (b *out_buffers) Less(i, j int) bool {
58 x := b.candidates[i]
59 y := b.candidates[j]
60 if x.Class == y.Class {
61 return x.Name < y.Name
62 }
63 return x.Class < y.Class
64}
65
66func (b *out_buffers) Swap(i, j int) {
67 b.candidates[i], b.candidates[j] = b.candidates[j], b.candidates[i]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected