We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d684dbd commit 045e3a2Copy full SHA for 045e3a2
java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt
@@ -1243,6 +1243,13 @@ open class KotlinFileExtractor(
1243
if (f.isSuspend) {
1244
addModifiers(id, "suspend")
1245
}
1246
+ if (f.symbol !is IrConstructorSymbol) {
1247
+ when((f as? IrSimpleFunction)?.modality) {
1248
+ Modality.ABSTRACT -> addModifiers(id, "abstract")
1249
+ Modality.FINAL -> addModifiers(id, "final")
1250
+ else -> Unit
1251
+ }
1252
1253
1254
linesOfCode?.linesOfCodeInDeclaration(f, id)
1255
0 commit comments