isMacosSwiftModule function

bool isMacosSwiftModule(
  1. File specFile
)

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;
}