findMentions

Find all occurrences of the given nameToFind, invoking the functions as they're found. Ignore the bloomFilterIfPackage, letting the caller to decide how to use it to navigate. Don't search inside submodules. The caller should ensure the version of the file on disk corresponds with this NamesIndex.

Return

The NameOccurrences or null if not found.

Parameters

nameToFind

The NameInModule to search for in the index.