diff --git a/chapi-application/src/main/kotlin/chapi/app/analyser/CSharpAnalyserApp.kt b/chapi-application/src/main/kotlin/chapi/app/analyser/CSharpAnalyserApp.kt index 577a114b..543cf403 100644 --- a/chapi-application/src/main/kotlin/chapi/app/analyser/CSharpAnalyserApp.kt +++ b/chapi-application/src/main/kotlin/chapi/app/analyser/CSharpAnalyserApp.kt @@ -20,8 +20,10 @@ open class CSharpAnalyserApp(var config: ChapiConfig = ChapiConfig(language = La return codeContainer.Containers.flatMap { container -> container.DataStructures.map { - it.FilePath = file.absolutePath - it + it.apply { + it.Imports = codeContainer.Imports + it.FilePath = file.absolutePath + } } }.toList() }