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/typer/Namer.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/typer/Namer.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Namer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Namer.scala b/src/dotty/tools/dotc/typer/Namer.scala index e0a65bb52..45f788e15 100644 --- a/src/dotty/tools/dotc/typer/Namer.scala +++ b/src/dotty/tools/dotc/typer/Namer.scala @@ -120,7 +120,7 @@ abstract class Namer { typer: Typer => sym } tree match { - case tree: ModDefTree => + case tree: MemberDef => val sym = createSym(tree.name, tree.mods.flags, privateWithinClass(tree.mods)) ctx.enterSym(sym) sym |