Skip to content

Commit 4c76176

Browse files
Mark Scala2Unpickler-processed denotations as loading
So that we can modify their flags.
1 parent 33670a8 commit 4c76176

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

compiler/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ object Scala2Unpickler {
143143
/** Unpickle symbol table information descending from a class and/or module root
144144
* from an array of bytes.
145145
* @param bytes bytearray from which we unpickle
146-
* @param classroot the top-level class which is unpickled, or NoSymbol if inapplicable
147-
* @param moduleroot the top-level module class which is unpickled, or NoSymbol if inapplicable
146+
* @param classRoot the top-level class which is unpickled, or NoSymbol if inapplicable
147+
* @param moduleClassRoot the top-level module class which is unpickled, or NoSymbol if inapplicable
148148
* @param filename filename associated with bytearray, only used for error messages
149149
*/
150150
class Scala2Unpickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClassRoot: ClassDenotation)(ictx: Context)
@@ -191,6 +191,8 @@ class Scala2Unpickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClas
191191

192192
def run()(implicit ctx: Context): Unit =
193193
try {
194+
classRoot.startedLoading()
195+
moduleRoot.startedLoading()
194196
var i = 0
195197
while (i < index.length) {
196198
if (entries(i) == null && isSymbolEntry(i)) {
@@ -225,6 +227,8 @@ class Scala2Unpickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClas
225227
}
226228
i += 1
227229
}
230+
classRoot.finishedLoading()
231+
moduleRoot.finishedLoading()
228232
}
229233
catch {
230234
case ex: RuntimeException => handleRuntimeException(ex)

0 commit comments

Comments
 (0)