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 49fff98607..146125e73b 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 @@ -199,6 +199,9 @@ class ScopeManager : ScopeProvider { // scope. scopeMap.putAll(manager.scopeMap.filter { it.key != null }) + // Merge aliases + aliases.putAll(manager.aliases) + // free the maps, just to clear up some things. this scope manager will not be used // anymore manager.fqnScopeMap.clear()