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

Method Less

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

Source from the content-addressed store, hash-verified

684type decl_slice []*decl
685
686func (s decl_slice) Less(i, j int) bool {
687 if s[i].class != s[j].class {
688 return s[i].name < s[j].name
689 }
690 return s[i].class < s[j].class
691}
692func (s decl_slice) Len() int { return len(s) }
693func (s decl_slice) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
694

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected