Candidate is the candidate for auto-completion.
| 34 | |
| 35 | // Candidate is the candidate for auto-completion. |
| 36 | type 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 | |
| 45 | func (c Candidate) TextWithPriority() string { |
| 46 | return fmt.Sprintf("%d.%s", c.Priority, c.Text) |
nothing calls this directly
no outgoing calls
no test coverage detected