Skip to content

Commit

Permalink
Update cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/ScopeManager.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto authored Nov 21, 2024
1 parent bfe4dff commit 68cbcae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ class ScopeManager : ScopeProvider {
*/
fun lookupSymbolByNameOfNode(
node: HasNameAndLocation,
scope: Scope? = currentScope,
scope: Scope? = node.scope,
predicate: ((Declaration) -> Boolean)? = null,
): List<Declaration> {
return lookupSymbolByName(node.name, node.language, node.location, scope, predicate)
Expand Down

0 comments on commit 68cbcae

Please sign in to comment.