Files
swift-mirror/test/SymbolGraph/Relationships/TargetFallback.swift
Ashley Garland 7190073a85 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
2020-02-11 13:23:16 -08:00

17 lines
635 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-build-swift %s -module-name TargetFallback -emit-module -emit-module-path %t/
// RUN: %target-swift-symbolgraph-extract -module-name TargetFallback -I %t -pretty-print -output-dir %t
// RUN: %FileCheck %s --input-file %t/TargetFallback.symbols.json
public struct S: CustomStringConvertible {
public var x: Int
public var description: String {
return x.description
}
}
// CHECK: "kind": "conformsTo",
// CHECK-NEXT: "source": "s:14TargetFallback1SV",
// CHECK-NEXT: "target": "s:s23CustomStringConvertibleP",
// CHECK-NEXT: "targetFallback": "Swift.CustomStringConvertible"