mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Kotlin: Mark <clinit> as compiler-generated
This commit is contained in:
@@ -595,6 +595,8 @@ open class KotlinFileExtractor(
|
|||||||
tw.writeMethods(clinitId, "<clinit>", "<clinit>()", returnType.javaResult.id, parentId, clinitId)
|
tw.writeMethods(clinitId, "<clinit>", "<clinit>()", returnType.javaResult.id, parentId, clinitId)
|
||||||
tw.writeMethodsKotlinType(clinitId, returnType.kotlinResult.id)
|
tw.writeMethodsKotlinType(clinitId, returnType.kotlinResult.id)
|
||||||
|
|
||||||
|
tw.writeCompiler_generated(clinitId, 4)
|
||||||
|
|
||||||
val locId = tw.getWholeFileLocation()
|
val locId = tw.getWholeFileLocation()
|
||||||
tw.writeHasLocation(clinitId, locId)
|
tw.writeHasLocation(clinitId, locId)
|
||||||
|
|
||||||
|
|||||||
@@ -53,6 +53,8 @@ class Element extends @element, Top {
|
|||||||
i = 2 and result = "Generated data class member"
|
i = 2 and result = "Generated data class member"
|
||||||
or
|
or
|
||||||
i = 3 and result = "Default property accessor"
|
i = 3 and result = "Default property accessor"
|
||||||
|
or
|
||||||
|
i = 4 and result = "Class initialisation method <clinit>"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user