mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Retain Member.getInitializer for Kotlin programs
I opt to identify any syntactic initializer. These are broader in scope than Java's member initializers, which are necessarily context-free, whereas in Kotlin the primary constructor's parameters can be referred to.
This commit is contained in:
committed by
Ian Lynagh
parent
37543e7a86
commit
13cd145a76
@@ -500,6 +500,7 @@ open class KotlinFileExtractor(
|
||||
tw.writeHasLocation(assignmentId, declLocId)
|
||||
tw.writeCallableEnclosingExpr(assignmentId, constructorId)
|
||||
tw.writeStatementEnclosingExpr(assignmentId, stmtId)
|
||||
tw.writeKtInitializerAssignment(assignmentId)
|
||||
|
||||
val lhsId = tw.getFreshIdLabel<DbVaraccess>()
|
||||
val lhsType = useType(backingField.type)
|
||||
|
||||
Reference in New Issue
Block a user