aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dotty/tools/dotc/core/Types.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala
index 4ad6d34d9..98c8138f0 100644
--- a/src/dotty/tools/dotc/core/Types.scala
+++ b/src/dotty/tools/dotc/core/Types.scala
@@ -527,16 +527,16 @@ object Types {
.toList.map(d => TermRef.withSig(this, d.symbol.asTerm))
}
- /** The set of implicit members of this type */
+ /** The set of member classes of this type */
final def memberClasses(implicit ctx: Context): Seq[SingleDenotation] = track("implicitMembers") {
- memberDenots(takeAllFilter,
+ memberDenots(typeNameFilter,
(name, buf) => buf ++= member(name).altsWith(x => x.isClass))
}
- /** The set of implicit members of this type */
+ /** The set of members of this type having at least one of `requiredFlags` but none of `excludedFlags` set */
final def membersBasedOnFlags(requiredFlags: FlagSet, excludedFlags: FlagSet)(implicit ctx: Context): Seq[SingleDenotation] = track("implicitMembers") {
memberDenots(takeAllFilter,
- (name, buf) => buf ++= member(name).altsWith(x => x.is(requiredFlags, excludedFlags)))
+ (name, buf) => buf ++= member(name).altsWith(x => x.is(requiredFlags, butNot = excludedFlags)))
}
/** The info of `sym`, seen as a member of this type. */