MobileNativeFoundation / swift-index-store

Library to read from Swift / clang source code indexes
Apache License 2.0
137 stars 11 forks source link

Fix generated file references #32

Closed keith closed 1 year ago

keith commented 1 year ago

Even though we don't evaluate generated files for testable imports, we should take generated files into account for definitions in modules we are importing with testable in other files. This fixes the I18N case which was very Lyft specific as well.

This fixes the case where an internal type is defined in a generated file, and therefore requires testable to be used. Previously if this was the only definition being used we'd have a false positive.