mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Kotlin: Record "file class" info from the compiler
We were making file classes when the parent was a file, but not when it was a class marked as one.
This commit is contained in:
@@ -643,6 +643,10 @@ open class KotlinFileExtractor(
|
||||
logger.warnElement("Unrecognised class kind $kind", c)
|
||||
}
|
||||
|
||||
if (c.origin == IrDeclarationOrigin.FILE_CLASS) {
|
||||
tw.writeFile_class(id)
|
||||
}
|
||||
|
||||
if (c.isData) {
|
||||
tw.writeKtDataClasses(id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user