Skip to content

search: create symbol search over repos function

Administrator requested to merge backend-integration/rvt/symbols-job-1 into main

Created by: rvantonder

Semantics preserving, but see inline comments. This takes roughly the second half of symbol.Search and puts it in a symbolSearchInRepos function, analogous to SearchedFilesInRepos for text search (the function signature is similar).

The symbolSearchInRepos will become the entry point of a symbol search job.


Additional background (don't read if you just want to stamp and trust me):

The previous symbol.Search is not a good entrypoint because it handles two kinds of searches global and nonglobal symbol searches. I can't convert both of these kinds of searches to jobs at the same time, because of their runtime dependencies. I need to first separate an entrypoint that is agnostic to global/nonglobal symbol searches, create a job for nonglobal symbol search, and then I can create global search jobs for both text and symbol search.

Merge request reports

Loading