File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -406,14 +406,17 @@ object Types {
406
406
407
407
/** The member of this type with the given name */
408
408
final def member (name : Name )(implicit ctx : Context ): Denotation = /* >|>*/ track(" member" ) /* <|<*/ {
409
- findMember (name, widenIfUnstable , EmptyFlags )
409
+ memberExcluding (name, EmptyFlags )
410
410
}
411
411
412
412
/** The non-private member of this type with the given name. */
413
413
final def nonPrivateMember (name : Name )(implicit ctx : Context ): Denotation = track(" nonPrivateMember" ) {
414
- findMember (name, widenIfUnstable , Flags .Private )
414
+ memberExcluding (name, Flags .Private )
415
415
}
416
416
417
+ final def memberExcluding (name : Name , excluding : FlagSet )(implicit ctx : Context ): Denotation =
418
+ findMember(name, widenIfUnstable, excluding)
419
+
417
420
/** Find member of this type with given name and
418
421
* produce a denotation that contains the type of the member
419
422
* as seen from given prefix `pre`. Exclude all members that have
You can’t perform that action at this time.
0 commit comments