mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
Merge pull request #10091 from tamasvajk/kotlin-data-class
Kotlin: Identify data classes during extraction
This commit is contained in:
@@ -435,6 +435,10 @@ open class KotlinFileExtractor(
|
||||
} else if (kind != ClassKind.CLASS && kind != ClassKind.OBJECT) {
|
||||
logger.warnElement("Unrecognised class kind $kind", c)
|
||||
}
|
||||
|
||||
if (c.isData) {
|
||||
tw.writeKtDataClasses(classId)
|
||||
}
|
||||
}
|
||||
|
||||
val locId = tw.getLocation(c)
|
||||
|
||||
Reference in New Issue
Block a user