(tokens []oracleparser.Token, byteOffset int)
| 123 | } |
| 124 | |
| 125 | func findCaretTokenIndex(tokens []oracleparser.Token, byteOffset int) int { |
| 126 | for i, tok := range tokens { |
| 127 | if tok.Loc >= byteOffset { |
| 128 | return i |
| 129 | } |
| 130 | } |
| 131 | return len(tokens) |
| 132 | } |
| 133 | |
| 134 | func (c *Completer) completion() ([]base.Candidate, error) { |
| 135 | checkTokenQuoted := func(idx int) bool { |