mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Merge pull request #10520 from tamasvajk/kotlin-fix-anonymous-object-comment
Kotlin: Fix comment extraction for anonymous objects
This commit is contained in:
@@ -461,6 +461,14 @@ open class KotlinUsesExtractor(
|
||||
)
|
||||
}
|
||||
|
||||
fun getExistingAnonymousClassLabel(c: IrClass): Label<out DbType>? {
|
||||
if (!c.isAnonymousObject){
|
||||
return null
|
||||
}
|
||||
|
||||
return tw.lm.anonymousTypeMapping[c]?.javaResult?.id
|
||||
}
|
||||
|
||||
fun fakeKotlinType(): Label<out DbKt_type> {
|
||||
val fakeKotlinPackageId: Label<DbPackage> = tw.getLabelFor("@\"FakeKotlinPackage\"", {
|
||||
tw.writePackages(it, "fake.kotlin")
|
||||
|
||||
Reference in New Issue
Block a user