(tokens []mysqlparser.Token, byteOffset int)
| 140 | } |
| 141 | |
| 142 | func findCaretTokenIndex(tokens []mysqlparser.Token, byteOffset int) int { |
| 143 | for i, tok := range tokens { |
| 144 | if tok.Loc >= byteOffset { |
| 145 | return i |
| 146 | } |
| 147 | } |
| 148 | return len(tokens) |
| 149 | } |
| 150 | |
| 151 | func (c *Completer) completion() ([]base.Candidate, error) { |
| 152 | // Check if the caret is inside or at the start of a backtick-quoted identifier. |
no outgoing calls
no test coverage detected