Skip to content

Commit 0830862

Browse files
committed
Drop private enter extension method
1 parent f3b15ed commit 0830862

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

compiler/src/dotty/tools/dotc/core/Symbols.scala

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ object Symbols {
255255
final def entered(using Context): _self.type =
256256
val d = denot
257257
if d.owner.isClass then
258-
d.owner.asClass.enter(_self)
259-
if d.is(Module) then d.owner.asClass.enter(d.moduleClass)
258+
d.owner.classDenot.enter(_self)
259+
if d.is(Module) then d.owner.classDenot.enter(d.moduleClass)
260260
_self
261261

262262

@@ -531,9 +531,6 @@ object Symbols {
531531
}
532532
common.source
533533

534-
private def enter(sym: Symbol, scope: Scope = EmptyScope)(using Context): Unit =
535-
_self.classDenot.enter(sym, scope)
536-
537534
def classInfo(using Context): ClassInfo = _self.classDenot.classInfo
538535

539536
end extension

0 commit comments

Comments
 (0)