File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ extension FFMSwift2JavaGenerator {
126126 let loweredSignature = try lowering. lowerFunctionSignature ( decl. functionSignature)
127127
128128 // Name.
129+ let returnsBoolean = decl. functionSignature. result. type. asNominalTypeDeclaration? . knownTypeKind == . bool
129130 let javaName = switch decl. apiKind {
130131 case . getter: decl. javaGetterName
131132 case . setter: decl. javaSetterName
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ public final class ImportedFunc: ImportedDecl, CustomStringConvertible {
9191 }
9292 return false
9393 }
94-
94+
9595 /// If this function/method is member of a class/struct/protocol,
9696 /// this will contain that declaration's imported name.
9797 ///
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ extension JNISwift2JavaGenerator {
3838 let parentName = decl. parentType? . asNominalType? . nominalTypeDecl. qualifiedName ?? swiftModuleName
3939
4040 // Name.
41+ let returnsBoolean = translatedFunctionSignature. resultType == . boolean
4142 let javaName = switch decl. apiKind {
4243 case . getter: decl. javaGetterName
4344 case . setter: decl. javaSetterName
You can’t perform that action at this time.
0 commit comments