MCPcopy Index your code
hub / github.com/bytebase/bytebase / Candidate

Struct Candidate

backend/plugin/parser/base/complete.go:36–43  ·  view source on GitHub ↗

Candidate is the candidate for auto-completion.

Source from the content-addressed store, hash-verified

34
35// Candidate is the candidate for auto-completion.
36type Candidate struct {
37 Text string
38 Type CandidateType
39 Definition string
40 Comment string
41 // The smaller the number, the higher the priority.
42 Priority int
43}
44
45func (c Candidate) TextWithPriority() string {
46 return fmt.Sprintf("%d.%s", c.Priority, c.Text)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected