diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-01-22 13:43:20 +0300 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-02-10 09:16:17 +0100 |
commit | c32dee8c304973835129bf394e11e34d9ab70a89 (patch) | |
tree | 08a01d24b194327f5f1e742c684a48a5e8d93a48 /src | |
parent | 9eead7fdcec4c23df0276e004bd6b91297f8b18c (diff) | |
download | scala-c32dee8c304973835129bf394e11e34d9ab70a89.tar.gz scala-c32dee8c304973835129bf394e11e34d9ab70a89.tar.bz2 scala-c32dee8c304973835129bf394e11e34d9ab70a89.zip |
deduplication in Symbol.nameString
Since now it uses idString to print out the id part of the name when
-uniqid is turned on, instead of duplicating the code from idString.
Diffstat (limited to 'src')
-rw-r--r-- | src/reflect/scala/reflect/internal/Symbols.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/reflect/scala/reflect/internal/Symbols.scala b/src/reflect/scala/reflect/internal/Symbols.scala index 7638380c41..b363123542 100644 --- a/src/reflect/scala/reflect/internal/Symbols.scala +++ b/src/reflect/scala/reflect/internal/Symbols.scala @@ -2476,10 +2476,9 @@ trait Symbols extends api.Symbols { self: SymbolTable => */ def nameString: String = { val name_s = if (settings.debug.value) "" + unexpandedName else unexpandedName.dropLocal.decode - val id_s = if (settings.uniqid.value) "#" + id else "" val kind_s = if (settings.Yshowsymkinds.value) "#" + abbreviatedKindString else "" - name_s + id_s + kind_s + name_s + idString + kind_s } def fullNameString: String = { |