File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
engine/runtime-compiler/src/main/scala/org/enso/compiler/data Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -108,14 +108,13 @@ case class BindingsMap(
108
108
private def ensureConvertedToConcrete (): Option [BindingsMap ] = {
109
109
val r = pendingRepository
110
110
if (r != null ) {
111
- val res = toConcrete(r, r.getModuleMap).map { b =>
111
+ toConcrete(r, r.getModuleMap).map { b =>
112
112
pendingRepository = null
113
113
this ._currentModule = b._currentModule
114
114
this ._exportedSymbols = b._exportedSymbols
115
115
this ._resolvedImports = b._resolvedImports
116
116
this
117
117
}
118
- res
119
118
} else {
120
119
Some (this )
121
120
}
@@ -127,17 +126,14 @@ case class BindingsMap(
127
126
): Option [BindingsMap ] = {
128
127
val newMap = this ._currentModule
129
128
.toConcrete(moduleMap)
130
- .map { c =>
131
- this ._currentModule = c
132
- c
133
- }
134
129
.map { module =>
135
- this .copy(_currentModule = module)
130
+ this ._currentModule = module
131
+ this
136
132
}
137
133
138
134
val withImports : Option [BindingsMap ] = newMap.flatMap { bindings =>
139
135
val newImports = this ._resolvedImports.map { imp =>
140
- imp.targets.map { t =>
136
+ imp.targets.foreach { t =>
141
137
r.ensurePackageIsLoaded(
142
138
LibraryName (t.qualifiedName.path(0 ), t.qualifiedName.path(1 ))
143
139
)
You can’t perform that action at this time.
0 commit comments