(query *index.Query)
| 274 | } |
| 275 | return possible, nil |
| 276 | } |
| 277 | |
| 278 | func hasFoldCase(re *syntax.Regexp) bool { |
| 279 | if re.Flags&syntax.FoldCase != 0 { |
| 280 | return true |
| 281 | } |
| 282 | return slices.ContainsFunc(re.Sub, hasFoldCase) |
| 283 | } |
| 284 | |
| 285 | type SearchSink interface { |
| 286 | // Match is called for each found match. |
| 287 | // Returning an error stops the search. |
| 288 | Match(*sourcebackendpb.Match) error |
| 289 | |
| 290 | // Returning an error stops the search. |
| 291 | Progress(filesProcessed, filesTotal int, readBytes uint64) error |
| 292 |
no test coverage detected