We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isEnumConstant
1 parent 876bea6 commit 09051e7Copy full SHA for 09051e7
java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt
@@ -1054,6 +1054,7 @@ open class KotlinFileExtractor(
1054
tw.writeFieldsKotlinType(id, type.kotlinResult.id)
1055
val locId = tw.getLocation(ee)
1056
tw.writeHasLocation(id, locId)
1057
+ tw.writeIsEnumConst(id)
1058
1059
if (extractTypeAccess) {
1060
val fieldDeclarationId = tw.getFreshIdLabel<DbFielddecl>()
java/ql/test/kotlin/library-tests/enum/test.expected
@@ -1,4 +1,7 @@
1
enumConstants
2
+| enumUser.kt:3:16:3:17 | A |
3
+| enumUser.kt:3:19:3:20 | B |
4
+| enumUser.kt:3:22:3:22 | C |
5
#select
6
| addAll |
7
| addRange |
0 commit comments