@@ -68,10 +68,10 @@ public enum NominalTypeKind {
6868}
6969
7070public struct ImportedParam {
71- let param : FunctionParameterSyntax
71+ let syntax : FunctionParameterSyntax
7272
7373 var firstName : String ? {
74- let text = param . firstName. trimmed. text
74+ let text = syntax . firstName. trimmed. text
7575 guard text != " _ " else {
7676 return nil
7777 }
@@ -80,7 +80,7 @@ public struct ImportedParam {
8080 }
8181
8282 var secondName : String ? {
83- let text = param . secondName? . trimmed. text
83+ let text = syntax . secondName? . trimmed. text
8484 guard text != " _ " else {
8585 return nil
8686 }
@@ -94,7 +94,7 @@ public struct ImportedParam {
9494
9595 // The Swift type as-is from the swift interface
9696 var swiftType : String {
97- param . type. trimmed. description
97+ syntax . type. trimmed. description
9898 }
9999
100100 // The mapped-to Java type of the above Java type, collections and optionals may be replaced with Java ones etc.
@@ -182,15 +182,15 @@ public struct ImportedFunc: ImportedDecl, CustomStringConvertible {
182182 case . pointer:
183183 let selfParam : FunctionParameterSyntax = " self$: $swift_pointer "
184184 params. append (
185- ImportedParam ( param : selfParam, type: parent)
185+ ImportedParam ( syntax : selfParam, type: parent)
186186 )
187187
188188 case . memorySegment:
189189 let selfParam : FunctionParameterSyntax = " self$: $java_lang_foreign_MemorySegment "
190190 var parentForSelf = parent
191191 parentForSelf. javaType = . javaForeignMemorySegment
192192 params. append (
193- ImportedParam ( param : selfParam, type: parentForSelf)
193+ ImportedParam ( syntax : selfParam, type: parentForSelf)
194194 )
195195
196196 case . swiftThunkSelf:
@@ -205,10 +205,6 @@ public struct ImportedFunc: ImportedDecl, CustomStringConvertible {
205205 }
206206 }
207207
208- public var accessorThunkName : String {
209- SwiftKitPrinting . Names. functionThunk ( module: self . module, function: self )
210- }
211-
212208 public var swiftDecl : any DeclSyntaxProtocol
213209
214210 public var syntax : String ? {
@@ -236,7 +232,6 @@ public struct ImportedFunc: ImportedDecl, CustomStringConvertible {
236232 public var description : String {
237233 """
238234 ImportedFunc {
239- accessorThunkName: \( self . accessorThunkName)
240235 identifier: \( identifier)
241236 returnType: \( returnType)
242237 parameters: \( parameters)
@@ -312,7 +307,7 @@ public struct ImportedVariable: ImportedDecl, CustomStringConvertible {
312307 parent: self . parentName,
313308 identifier: self . identifier,
314309 returnType: TranslatedType . void,
315- parameters: [ . init( param : newValueParam, type: self . returnType) ] )
310+ parameters: [ . init( syntax : newValueParam, type: self . returnType) ] )
316311 return funcDecl
317312
318313 case . get:
@@ -337,7 +332,7 @@ public struct ImportedVariable: ImportedDecl, CustomStringConvertible {
337332 " _ newValue: \( raw: self . returnType. swiftTypeName) "
338333 params. append (
339334 ImportedParam (
340- param : newValueParam,
335+ syntax : newValueParam,
341336 type: self . returnType)
342337 )
343338 }
@@ -351,7 +346,7 @@ public struct ImportedVariable: ImportedDecl, CustomStringConvertible {
351346 let selfParam : FunctionParameterSyntax = " self$: $swift_pointer "
352347 params. append (
353348 ImportedParam (
354- param : selfParam,
349+ syntax : selfParam,
355350 type: parentName
356351 )
357352 )
@@ -362,7 +357,7 @@ public struct ImportedVariable: ImportedDecl, CustomStringConvertible {
362357 parentForSelf. javaType = . javaForeignMemorySegment
363358 params. append (
364359 ImportedParam (
365- param : selfParam,
360+ syntax : selfParam,
366361 type: parentForSelf
367362 )
368363 )
0 commit comments