mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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
12 lines
477 B
Swift
12 lines
477 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift %s -module-name InheritsFrom -emit-module -emit-module-path %t/
|
|
// RUN: %target-swift-symbolgraph-extract -module-name InheritsFrom -I %t -pretty-print -output-dir %t
|
|
// RUN: %FileCheck %s --input-file %t/InheritsFrom.symbols.json
|
|
|
|
public class Base {}
|
|
public class Derived: Base {}
|
|
|
|
// CHECK: "kind": "inheritsFrom"
|
|
// CHECK-NEXT: "source": "s:12InheritsFrom7DerivedC"
|
|
// CHECK-NEXT: "target": "s:12InheritsFrom4BaseC"
|