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 5e2c607 commit 58cb544Copy full SHA for 58cb544
java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt
@@ -1590,7 +1590,9 @@ open class KotlinUsesExtractor(
1590
fun getValueParameterLabel(vp: IrValueParameter, parent: Label<out DbCallable>?): String {
1591
val declarationParent = vp.parent
1592
val overriddenParentAttributes = (declarationParent as? IrFunction)?.let {
1593
- if (this is KotlinFileExtractor)
+ // Note the check 'vp.fileOrNull?.path == this.filePath' should never actually do anything, since references
1594
+ // to a value parameter should always come from within the same .kt file.
1595
+ if (this is KotlinFileExtractor && vp.fileOrNull?.path == this.filePath)
1596
this.declarationStack.findOverriddenAttributes(it)
1597
else
1598
null
0 commit comments