diff options
author | Martin Odersky <odersky@gmail.com> | 2013-06-03 11:48:03 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-06-03 11:48:03 +0200 |
commit | 4fc1d8501a3937547e05f14aa4f4423a2c0d6a1d (patch) | |
tree | dfcba8807fbb3118d971e7ecf9f18e78d3f55858 /src/dotty/tools/dotc/core/Denotations.scala | |
parent | 339809ed82e14699681a5a7765c87133cd681ec0 (diff) | |
download | dotty-4fc1d8501a3937547e05f14aa4f4423a2c0d6a1d.tar.gz dotty-4fc1d8501a3937547e05f14aa4f4423a2c0d6a1d.tar.bz2 dotty-4fc1d8501a3937547e05f14aa4f4423a2c0d6a1d.zip |
Refactorings: ModDefTree renamed to MemberDef and removed EmptyFlags comparisons.
EmptyFlags comparisons were eliminated and replaced bu .isEmpty tests.
The problem this solves is that more than one flag value can represent an empty flag set.
Diffstat (limited to 'src/dotty/tools/dotc/core/Denotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Denotations.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala index 9c89a28cf..b585fb0ef 100644 --- a/src/dotty/tools/dotc/core/Denotations.scala +++ b/src/dotty/tools/dotc/core/Denotations.scala @@ -498,7 +498,7 @@ object Denotations { if (isType) filterDisjoint(denots).asSeenFrom(pre) else asSeenFrom(pre).filterDisjoint(denots) final def filterExcluded(excluded: FlagSet)(implicit ctx: Context): SingleDenotation = - if (excluded == EmptyFlags) this + if (excluded.isEmpty) this else this match { case thisd: SymDenotation => if (thisd is excluded) NoDenotation else this |