|
4 | 4 | // RUN: %FileCheck %s --input-file %t/FunctionSignature.symbols.json --check-prefix=FUNC
|
5 | 5 | // RUN: %FileCheck %s --input-file %t/FunctionSignature.symbols.json --check-prefix=INIT
|
6 | 6 | // RUN: %FileCheck %s --input-file %t/FunctionSignature.symbols.json --check-prefix=SUBSCRIPT
|
| 7 | +// RUN: %FileCheck %s --input-file %t/FunctionSignature.symbols.json --check-prefix=FUNC2 |
7 | 8 |
|
8 | 9 | public struct MyStruct {
|
9 | 10 | public init(_ noext: Int, ext int: Int) {}
|
@@ -102,4 +103,36 @@ public struct MyStruct {
|
102 | 103 | // FUNC-NEXT: "spelling": "String"
|
103 | 104 | // FUNC-NEXT: "preciseIdentifier": "s:SS"
|
104 | 105 |
|
| 106 | + public func bar(_: Int, ext _: Int) -> Void {} |
| 107 | + |
| 108 | +// FUNC2-LABEL: "precise": "s:17FunctionSignature8MyStructV3bar_3extySi_SitF", |
| 109 | +// FUNC2: "name": "_" |
| 110 | +// FUNC2-NOT: "internalName": "_" |
| 111 | +// FUNC2-NEXT: declarationFragments |
| 112 | + |
| 113 | +// FUNC2: "kind": "identifier" |
| 114 | +// FUNC2-NEXT: "spelling": "_" |
| 115 | +// FUNC2: "kind": "text" |
| 116 | +// FUNC2-NEXT: "spelling": ": " |
| 117 | +// FUNC2: "kind": "typeIdentifier" |
| 118 | +// FUNC2-NEXT: "spelling": "Int" |
| 119 | +// FUNC2-NEXT: "preciseIdentifier": "s:Si" |
| 120 | + |
| 121 | +// FUNC2: "name": "ext" |
| 122 | +// FUNC2-NEXT: "internalName": "_" |
| 123 | +// FUNC2-NEXT: declarationFragments |
| 124 | + |
| 125 | +// FUNC2: "kind": "identifier" |
| 126 | +// FUNC2-NEXT: "spelling": "_" |
| 127 | +// FUNC2: "kind": "text" |
| 128 | +// FUNC2-NEXT: "spelling": ": " |
| 129 | +// FUNC2: "kind": "typeIdentifier" |
| 130 | +// FUNC2-NEXT: "spelling": "Int" |
| 131 | +// FUNC2-NEXT: "preciseIdentifier": "s:Si" |
| 132 | + |
| 133 | +// FUNC2: returns |
| 134 | +// FUNC2: "kind": "typeIdentifier" |
| 135 | +// FUNC2-NEXT: "spelling": "Void" |
| 136 | +// FUNC2-NEXT: "preciseIdentifier": "s:s4Voida" |
| 137 | + |
105 | 138 | }
|
0 commit comments