If we are looking for a non-existing term name in a package, assume it is a package for which we do not have a directory and enter it.
The current denotation of the static reference given by path, or a MissingRef or NoQualifyingRef instance, if it does not exist.
The current denotation of the static reference given by path, or a MissingRef or NoQualifyingRef instance, if it does not exist. if generateStubs is set, generates stubs for missing top-level symbols