diff options
author | Martin Odersky <odersky@gmail.com> | 2013-01-06 12:24:37 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-01-06 12:24:37 +0100 |
commit | 0811af43037219946d07f83c5a80aeaa2f1d4cfa (patch) | |
tree | 0ec1ea554e041ea6fb8d18a785ff894d9aceff42 /src/dotty/tools/dotc/core/Denotations.scala | |
parent | cd0ed1676ac5529b0c04995b9a26f8e165cad4cf (diff) | |
download | dotty-0811af43037219946d07f83c5a80aeaa2f1d4cfa.tar.gz dotty-0811af43037219946d07f83c5a80aeaa2f1d4cfa.tar.bz2 dotty-0811af43037219946d07f83c5a80aeaa2f1d4cfa.zip |
Fleshed out Types.
Diffstat (limited to 'src/dotty/tools/dotc/core/Denotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Denotations.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala index a1ad814ba..75f040e1d 100644 --- a/src/dotty/tools/dotc/core/Denotations.scala +++ b/src/dotty/tools/dotc/core/Denotations.scala @@ -311,16 +311,16 @@ object Denotations { private var memberNamesCache: Map[NameFilter, Set[Name]] = Map() - def memberNames(pre: Type, filter: NameFilter)(implicit ctx: Context): Set[Name] = - memberNamesCache get filter match { + def memberNames(keepOnly: NameFilter)(implicit ctx: Context): Set[Name] = + memberNamesCache get keepOnly match { case Some(names) => names case _ => - val inheritedNames = (parents flatMap (_.memberNames(thisType, filter))).toSet + val inheritedNames = (parents flatMap (_.memberNames(thisType, keepOnly))).toSet val ownNames = decls.iterator map (_.name) val candidates = inheritedNames ++ ownNames - val names = candidates filter (filter(thisType, _)) - memberNamesCache += (filter -> names) + val names = candidates filter (keepOnly(thisType, _)) + memberNamesCache += (keepOnly -> names) names } } |