mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
Add ktLocalFunction relation and tests for local and anonymous classes
This commit is contained in:
@@ -662,6 +662,8 @@ open class KotlinFileExtractor(
|
||||
if (s.isLocalFunction()) {
|
||||
val classId = extractGeneratedClass(s, listOf(pluginContext.irBuiltIns.anyType))
|
||||
extractLocalTypeDeclStmt(classId, s, callable, parent, idx)
|
||||
val ids = getLocallyVisibleFunctionLabels(s)
|
||||
tw.writeKtLocalFunction(ids.function)
|
||||
} else {
|
||||
logger.warnElement(Severity.ErrorSevere, "Expected to find local function", s)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user