mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
Kotlin: extract isEnumConstant relation
This commit is contained in:
@@ -1054,6 +1054,7 @@ open class KotlinFileExtractor(
|
||||
tw.writeFieldsKotlinType(id, type.kotlinResult.id)
|
||||
val locId = tw.getLocation(ee)
|
||||
tw.writeHasLocation(id, locId)
|
||||
tw.writeIsEnumConst(id)
|
||||
|
||||
if (extractTypeAccess) {
|
||||
val fieldDeclarationId = tw.getFreshIdLabel<DbFielddecl>()
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
enumConstants
|
||||
| enumUser.kt:3:16:3:17 | A |
|
||||
| enumUser.kt:3:19:3:20 | B |
|
||||
| enumUser.kt:3:22:3:22 | C |
|
||||
#select
|
||||
| addAll |
|
||||
| addRange |
|
||||
|
||||
Reference in New Issue
Block a user