mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Identify data classes during extraction
This commit is contained in:
committed by
Chris Smowton
parent
1e78f2893c
commit
25fce5f6bb
@@ -386,6 +386,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