File tree 1 file changed +4
-6
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1589,9 +1589,9 @@ object SymDenotations {
1589
1589
// If owner is a package, we complete only
1590
1590
// children that are defined in the same file as their parents.
1591
1591
def maybeChild (sym : Symbol ) =
1592
- (sym.isClass && ! this .is(JavaDefined ) || sym.is(EnumVal ))
1592
+ (sym.isClass && ! this .is(JavaDefined ) || sym.originDenotation. is(EnumVal ))
1593
1593
&& ! owner.is(Package )
1594
- || sym.infoOrCompleter.match
1594
+ || sym.originDenotation. infoOrCompleter.match
1595
1595
case _ : SymbolLoaders .SecondCompleter => sym.associatedFile == this .symbol.associatedFile
1596
1596
case _ => false
1597
1597
@@ -1605,10 +1605,8 @@ object SymDenotations {
1605
1605
// Make sure all visible children are completed, so that
1606
1606
// they show up in Child annotations. A possible child is visible if it
1607
1607
// is defined in the same scope as `cls` or in the companion object of `cls`.
1608
- inContext(ctx.withPhase(ctx.typerPhase)) {
1609
- completeChildrenIn(owner)
1610
- completeChildrenIn(companionClass)
1611
- }
1608
+ completeChildrenIn(owner)
1609
+ completeChildrenIn(companionClass)
1612
1610
setFlag(ChildrenQueried )
1613
1611
1614
1612
annotations.collect { case Annotation .Child (child) => child }.reverse
You can’t perform that action at this time.
0 commit comments