diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-03-03 17:40:13 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-03-03 17:40:13 +0100 |
commit | 2b4e7659237fe0e6eb5425ebe50ceab79af49816 (patch) | |
tree | 131f10e44f0904988ded6c1cb894246a31ed37df /src/dotty/tools/dotc/core/Scopes.scala | |
parent | 18cf5d280e3f63213fd6bddbe8e1ed5b5d40b595 (diff) | |
download | dotty-2b4e7659237fe0e6eb5425ebe50ceab79af49816.tar.gz dotty-2b4e7659237fe0e6eb5425ebe50ceab79af49816.tar.bz2 dotty-2b4e7659237fe0e6eb5425ebe50ceab79af49816.zip |
Typos corrected.
More verbose assertions.
Unnecessary semicolons removed.
Diffstat (limited to 'src/dotty/tools/dotc/core/Scopes.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Scopes.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Scopes.scala b/src/dotty/tools/dotc/core/Scopes.scala index a20433b1f..367713d11 100644 --- a/src/dotty/tools/dotc/core/Scopes.scala +++ b/src/dotty/tools/dotc/core/Scopes.scala @@ -231,7 +231,7 @@ object Scopes { if (e1 == e) hashTable(index) = e.tail else { - while (e1.tail != e) e1 = e1.tail; + while (e1.tail != e) e1 = e1.tail e1.tail = e.tail } } @@ -243,7 +243,7 @@ object Scopes { final def unlink(sym: Symbol)(implicit ctx: Context): Unit = { var e = lookupEntry(sym.name) while (e ne null) { - if (e.sym == sym) unlink(e); + if (e.sym == sym) unlink(e) e = lookupNextEntry(e) } } |