mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Kotlin: Mark enum class special members as cmopiler-generated
This commit is contained in:
@@ -790,6 +790,8 @@ open class KotlinFileExtractor(
|
|||||||
tw.writeCompiler_generated(methodId, 2)
|
tw.writeCompiler_generated(methodId, 2)
|
||||||
IrDeclarationOrigin.DEFAULT_PROPERTY_ACCESSOR ->
|
IrDeclarationOrigin.DEFAULT_PROPERTY_ACCESSOR ->
|
||||||
tw.writeCompiler_generated(methodId, 3)
|
tw.writeCompiler_generated(methodId, 3)
|
||||||
|
IrDeclarationOrigin.ENUM_CLASS_SPECIAL_MEMBER ->
|
||||||
|
tw.writeCompiler_generated(methodId, 5)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (extractMethodAndParameterTypeAccesses) {
|
if (extractMethodAndParameterTypeAccesses) {
|
||||||
|
|||||||
@@ -55,6 +55,8 @@ class Element extends @element, Top {
|
|||||||
i = 3 and result = "Default property accessor"
|
i = 3 and result = "Default property accessor"
|
||||||
or
|
or
|
||||||
i = 4 and result = "Class initialisation method <clinit>"
|
i = 4 and result = "Class initialisation method <clinit>"
|
||||||
|
or
|
||||||
|
i = 5 and result = "Enum class special member"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user