@@ -848,7 +848,7 @@ class Namer { typer: Typer =>
848
848
else
849
849
try
850
850
completeInCreationContext(denot)
851
- if (denot.isCompleted) registerIfChild (denot)
851
+ if (denot.isCompleted) registerIfChildInCreationContext (denot)
852
852
catch
853
853
case ex : CompilationUnit .SuspendException =>
854
854
val completer = SuspendCompleter ()
@@ -937,10 +937,12 @@ class Namer { typer: Typer =>
937
937
denot.markAbsent()
938
938
end invalidateIfClashingSynthetic
939
939
940
- /** If completed symbol is an enum value or a named class, register it as a child
940
+ /** Intentionally left without `using Context` parameter.
941
+ * This action should be performed in the context of where the completer was created.
942
+ * If completed symbol is an enum value or a named class, register it as a child
941
943
* in all direct parent classes which are sealed.
942
944
*/
943
- def registerIfChild (denot : SymDenotation )( using Context ): Unit = {
945
+ def registerIfChildInCreationContext (denot : SymDenotation ): Unit = {
944
946
val sym = denot.symbol
945
947
946
948
def register (child : Symbol , parentCls : ClassSymbol ) = {
@@ -964,7 +966,7 @@ class Namer { typer: Typer =>
964
966
end if
965
967
}
966
968
967
- /** Intentionally left without `implicit ctx ` parameter. We need
969
+ /** Intentionally left without `using Context ` parameter. We need
968
970
* to pick up the context at the point where the completer was created.
969
971
*/
970
972
def completeInCreationContext (denot : SymDenotation ): Unit = {
0 commit comments