From 68cbcaed578a666ef8301820b6c554f227bf0960 Mon Sep 17 00:00:00 2001 From: Christian Banse Date: Thu, 21 Nov 2024 10:30:35 +0100 Subject: [PATCH] Update cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/ScopeManager.kt --- .../src/main/kotlin/de/fraunhofer/aisec/cpg/ScopeManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/ScopeManager.kt b/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/ScopeManager.kt index 1eef33d493..ddcfa11d0e 100644 --- a/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/ScopeManager.kt +++ b/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/ScopeManager.kt @@ -908,7 +908,7 @@ class ScopeManager : ScopeProvider { */ fun lookupSymbolByNameOfNode( node: HasNameAndLocation, - scope: Scope? = currentScope, + scope: Scope? = node.scope, predicate: ((Declaration) -> Boolean)? = null, ): List { return lookupSymbolByName(node.name, node.language, node.location, scope, predicate)