mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Serialize symbol graphs for extended modules separately
When a module extends a type from another module, serialize those symbols into separated files dedicated to those extended modules. This makes it easier to ingest and categorize those symbols under the extended module if desired. rdar://58941718
This commit is contained in:
20
test/SymbolGraph/Module/Module.swift
Normal file
20
test/SymbolGraph/Module/Module.swift
Normal file
@@ -0,0 +1,20 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-build-swift %s -module-name SymbolGraphModule -emit-module -emit-module-path %t/
|
||||
// RUN: %target-swift-symbolgraph-extract -module-name SymbolGraphModule -I %t -pretty-print -output-dir %t
|
||||
// RUN: %FileCheck %s --input-file %t/SymbolGraphModule.symbols.json
|
||||
|
||||
public struct S {
|
||||
public var x: Int
|
||||
}
|
||||
|
||||
// CHECK: module
|
||||
// CHECK-NEXT: "name": "SymbolGraphModule"
|
||||
// CHECK-NEXT: platform
|
||||
// CHECK-NEXT: architecture
|
||||
// CHECK: vendor
|
||||
// CHECK-NEXT: operatingSystem
|
||||
// CHECK-NEXT: name
|
||||
// CHECK-NEXT: minimumVersion
|
||||
// CHECK-NEXT: major
|
||||
// CHECK-NEXT: minor
|
||||
// CHECK-NEXT: patch
|
||||
Reference in New Issue
Block a user