File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
jacodb-core/src/main/kotlin/org/jacodb/impl/features Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ import org.jacodb.impl.storage.defaultBatchSize
3434import org.jacodb.impl.storage.dslContext
3535import org.jacodb.impl.storage.eqOrNull
3636import org.jacodb.impl.storage.ers.filterDeleted
37+ import org.jacodb.impl.storage.ers.filterLocations
3738import org.jacodb.impl.storage.ers.toClassSource
3839import org.jacodb.impl.storage.execute
3940import org.jacodb.impl.storage.executeQueries
@@ -279,11 +280,12 @@ object Usages : JcFeature<UsageFeatureRequest, UsageFeatureResponse> {
279280 val locationId = callee.getCompressed<Long >(" locationId" )!!
280281 callee.getLinks(" calls" ).map { it to locationId }
281282 }
282- .map { (call, _ ) ->
283+ .map { (call, callerLocationId ) ->
283284 val callerId = call.getCompressedBlob<Long >(" callerId" )!!
284285 val caller = symbolInterner.findSymbolName(callerId)!!
285286 val clazz = txn.find(" Class" , " nameId" , callerId.compressed)
286287 .filterDeleted()
288+ .filterLocations(callerLocationId)
287289 .first()
288290 val classId = clazz.id.instanceId
289291 UsageFeatureResponse (
You can’t perform that action at this time.
0 commit comments