mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
Kotlin: Fix a label
We want the .javaResult.id of a TypeResults.
This commit is contained in:
@@ -1514,7 +1514,7 @@ open class KotlinUsesExtractor(
|
|||||||
// otherwise two extension properties declared in the same enclosing context will get
|
// otherwise two extension properties declared in the same enclosing context will get
|
||||||
// clashing trap labels. These are always private, so we can just make up a label without
|
// clashing trap labels. These are always private, so we can just make up a label without
|
||||||
// worrying about their names as seen from Java.
|
// worrying about their names as seen from Java.
|
||||||
val extensionPropertyDiscriminator = getExtensionReceiverType(f)?.let { "extension;${useType(it)}" } ?: ""
|
val extensionPropertyDiscriminator = getExtensionReceiverType(f)?.let { "extension;${useType(it).javaResult.id}" } ?: ""
|
||||||
return "@\"field;{$parentId};${extensionPropertyDiscriminator}${f.name.asString()}\""
|
return "@\"field;{$parentId};${extensionPropertyDiscriminator}${f.name.asString()}\""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user