mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Extract override modifier for lambda and reflection-like constructs
This commit is contained in:
@@ -2670,6 +2670,8 @@ open class KotlinFileExtractor(
|
||||
val isBigArity = types.size > BuiltInFunctionArity.BIG_ARITY
|
||||
if (isBigArity) {
|
||||
implementFunctionNInvoke(e.function, ids, locId, parameters)
|
||||
} else {
|
||||
addModifiers(ids.function, "override")
|
||||
}
|
||||
|
||||
val exprParent = parent.expr(e, callable)
|
||||
@@ -3394,6 +3396,7 @@ open class KotlinFileExtractor(
|
||||
tw.writeHasLocation(methodId, locId)
|
||||
|
||||
addModifiers(methodId, "public")
|
||||
addModifiers(methodId, "override")
|
||||
|
||||
// Block
|
||||
val blockId = tw.getFreshIdLabel<DbBlock>()
|
||||
|
||||
Reference in New Issue
Block a user