MCPcopy Create free account
hub / github.com/bytebase/bytebase / candidateSummary

Function candidateSummary

backend/plugin/parser/trino/completion_test.go:217–226  ·  view source on GitHub ↗
(cands []base.Candidate)

Source from the content-addressed store, hash-verified

215}
216
217func 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
228func getCaretPosition(statement string) (string, int, int) {
229 lines := strings.Split(statement, "\n")

Callers 1

TestCompletionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected