diff options
author | Martin Odersky <odersky@gmail.com> | 2014-01-02 16:04:49 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-01-02 16:04:49 +0100 |
commit | 37002e9fb650510e16cd038c5d7026bed50060f9 (patch) | |
tree | daff067213353f2bad5107bbeeabc1fc29898d9b /src/dotty/tools/dotc/core/Scopes.scala | |
parent | 09fdc8ee5705a80c361d3c07c49a5a660809a222 (diff) | |
download | dotty-37002e9fb650510e16cd038c5d7026bed50060f9.tar.gz dotty-37002e9fb650510e16cd038c5d7026bed50060f9.tar.bz2 dotty-37002e9fb650510e16cd038c5d7026bed50060f9.zip |
Some cleanups.
Diffstat (limited to 'src/dotty/tools/dotc/core/Scopes.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Scopes.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Scopes.scala b/src/dotty/tools/dotc/core/Scopes.scala index ef1ddc8b3..06f9ea6c1 100644 --- a/src/dotty/tools/dotc/core/Scopes.scala +++ b/src/dotty/tools/dotc/core/Scopes.scala @@ -17,6 +17,7 @@ import Denotations._ import SymDenotations._ import printing.Texts._ import printing.Printer +import util.common._ import SymDenotations.NoDenotation import collection.mutable.ListBuffer @@ -342,7 +343,7 @@ object Scopes { */ def scopeTransform(owner: Symbol)(op: => MutableScope): MutableScope = op - val selectAll: SymDenotation => Boolean = Function.const(true) + val selectAll: SymDenotation => Boolean = alwaysTrue val selectPrivate: SymDenotation => Boolean = d => (d is Flags.Private) val selectNonPrivate: SymDenotation => Boolean = d => !(d is Flags.Private) |