isMacosSwiftModule function
Returns true when the module has a Swift implementation on macOS.
Implementation
bool isMacosSwiftModule(File specFile) {
final a = PlatformTargetAnalyzer.fromSpec(specFile);
return a.declaresNothing || a.swiftOnMacos;
}