Skip to content

Commit 9536b09

Browse files
committed
Move classModule hiding to use completionFilter
1 parent e76e7cd commit 9536b09

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/src/dotty/tools/dotc/interactive/Interactive.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ object Interactive {
105105
buf ++= prefix.member(name).altsWith{ d =>
106106
!d.isAbsent &&
107107
!d.is(Synthetic) && !d.is(Artifact) &&
108-
!d.is(ModuleClass) &&
109108
d.symbol.isAccessibleFrom(prefix)(boundaryCtx)
110109
}
111110
).map(_.symbol).toList
@@ -116,7 +115,7 @@ object Interactive {
116115
/** Filter for names that should appear when looking for completions. */
117116
private[this] object completionsFilter extends NameFilter {
118117
def apply(pre: Type, name: Name)(implicit ctx: Context): Boolean =
119-
!name.isConstructorName && name.is(SimpleNameKind)
118+
!name.isConstructorName && name.toTermName.info.kind == SimpleNameKind
120119
}
121120

122121
/** Find named trees with a non-empty position whose symbol match `sym` in `trees`.

0 commit comments

Comments
 (0)