mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Recursively collect exported imports to allow fetching all visible Decls for symbol graph generation
This change is two fold. Firstly it enables collection of exported imports from non source file units. Additionally this recurses through the exported imports to ensure the transitive set is collected. Fixes https://github.com/apple/swift/issues/59920 rdar://89687175
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %empty-directory(%t/module-generated)
|
||||
// RUN: %target-swift-frontend %S/Inputs/DuplicateExportedImport/A.swift -module-name A -emit-module -emit-module-path %t/A.swiftmodule
|
||||
// RUN: %target-swift-frontend %s -module-name DuplicateExportedImport -emit-module -emit-module-path /dev/null -I %t -emit-symbol-graph -emit-symbol-graph-dir %t/
|
||||
// RUN: %target-swift-frontend %s -module-name DuplicateExportedImport -emit-module -emit-module-path \
|
||||
// RUN: %t/DuplicateExportedImport.swiftmodule -I %t -emit-symbol-graph -emit-symbol-graph-dir %t/
|
||||
// RUN: %FileCheck %s --input-file %t/DuplicateExportedImport.symbols.json
|
||||
// RUN: %target-swift-symbolgraph-extract -module-name DuplicateExportedImport -I %t -output-dir %t/module-generated/ \
|
||||
// RUN: -experimental-allowed-reexported-modules=A
|
||||
// RUN: %FileCheck %s --input-file %t/module-generated/DuplicateExportedImport.symbols.json
|
||||
|
||||
// REQUIRES: asserts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user