mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Extract locations for generic instantiations
This commit is contained in:
committed by
Ian Lynagh
parent
f06285e9c7
commit
5ec546bcb0
@@ -306,7 +306,7 @@ val primitiveTypeMapping = mapOf(
|
||||
|
||||
open class KotlinUsesExtractor(
|
||||
open val logger: Logger,
|
||||
open val tw: TrapWriter,
|
||||
open val tw: FileTrapWriter,
|
||||
val dependencyCollector: TrapFileManager?,
|
||||
val externalClassExtractor: ExternalClassExtractor,
|
||||
val pluginContext: IrPluginContext) {
|
||||
@@ -511,6 +511,9 @@ open class KotlinUsesExtractor(
|
||||
extractClassModifiers(c, id)
|
||||
extractClassSupertypes(c, id)
|
||||
|
||||
val locId = tw.getLocation(c)
|
||||
tw.writeHasLocation(id, locId)
|
||||
|
||||
return id
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user