(cands []base.Candidate)
| 215 | } |
| 216 | |
| 217 | func candidateSummary(cands []base.Candidate) []string { |
| 218 | out := make([]string, 0, len(cands)) |
| 219 | for _, c := range cands { |
| 220 | if c.Type == base.CandidateTypeKeyword { |
| 221 | continue |
| 222 | } |
| 223 | out = append(out, string(c.Type)+":"+c.Text) |
| 224 | } |
| 225 | return out |
| 226 | } |
| 227 | |
| 228 | func getCaretPosition(statement string) (string, int, int) { |
| 229 | lines := strings.Split(statement, "\n") |