mirror of
https://github.com/apple/swift.git
synced 2025-12-25 12:15:36 +01:00
This is necessary to disambiguate some symbols with the same path components and makes the data clearer to debug. rdar://problem/59841727
18 lines
510 B
Swift
18 lines
510 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift %s -module-name Init -emit-module -emit-module-path %t/
|
|
// RUN: %target-swift-symbolgraph-extract -module-name Init -I %t -pretty-print -output-dir %t
|
|
// RUN: %FileCheck %s --input-file %t/Init.symbols.json
|
|
|
|
public struct S {
|
|
public var x: Int
|
|
|
|
// CHECK: "identifier": "swift.init"
|
|
// CHECK-NEXT: "displayName": "Initializer"
|
|
// CHECK: pathComponents
|
|
// CHECK-NEXT: "S"
|
|
// CHECK-NEXT: "init(x:)"
|
|
public init(x: Int) {
|
|
self.x = x
|
|
}
|
|
}
|