Skip to content

Commit f37e723

Browse files
authored
Set scene for all files (#324)
1 parent bccc018 commit f37e723

File tree

1 file changed

+5
-0
lines changed
  • jacodb-ets/src/main/kotlin/org/jacodb/ets/model

1 file changed

+5
-0
lines changed

jacodb-ets/src/main/kotlin/org/jacodb/ets/model/Scene.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ class EtsScene(
2222
val projectFiles: List<EtsFile>,
2323
val sdkFiles: List<EtsFile> = emptyList(),
2424
) : CommonProject {
25+
init {
26+
projectFiles.forEach { it.scene = this }
27+
sdkFiles.forEach { it.scene = this }
28+
}
29+
2530
val projectClasses: List<EtsClass>
2631
get() = projectFiles.flatMap { it.allClasses }
2732

0 commit comments

Comments
 (0)