-
Notifications
You must be signed in to change notification settings - Fork 17
Does unused imports support @_exported? #67
Copy link
Copy link
Open
Description
Hello,
How hard would it be for this unused imports script to support the usage of @_exported?
For example, say I have a module X that does this:
// My custom module `X`
@_exported import SwiftUIThen in some other module, Y, we reference the exported module, but no symbols in the actual module `X:
// Inside module `Y`
import X
print(String(describing: Text("Hello world")) // usage of SwiftUI, but no usage of module `X` symbolsWould the unused imports job remove import X because it thinks its "unused", when in reality, its exported symbols/module is still referenced, therefore it shouldn't be removed?
| let alwaysKeepImports: Set<String> |
Any help or guidance would be greatly appreciated, thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels