diff options
author | Paul Phillips <paulp@improving.org> | 2012-11-30 16:23:11 +0100 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-12-01 09:31:13 +0100 |
commit | 47245f547f55df1feff9add1e8cd73edd8d0b154 (patch) | |
tree | 0bad23966dfaa8a7258b2d73a40a3a78658dc0ec /src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala | |
parent | 08e717eaee731456a51adb08f72aa5d9f083a29a (diff) | |
download | scala-47245f547f55df1feff9add1e8cd73edd8d0b154.tar.gz scala-47245f547f55df1feff9add1e8cd73edd8d0b154.tar.bz2 scala-47245f547f55df1feff9add1e8cd73edd8d0b154.zip |
Remove Name -> TermName implicit.
And simplify the name implicits.
Diffstat (limited to 'src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala index b5459ec773..79b08bcabf 100644 --- a/src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala +++ b/src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala @@ -80,7 +80,7 @@ abstract class ICodeReader extends ClassfileParser { val jflags = in.nextChar val name = pool getName in.nextChar val owner = getOwner(jflags) - val dummySym = owner.newMethod(name, owner.pos, toScalaMethodFlags(jflags)) + val dummySym = owner.newMethod(name.toTermName, owner.pos, toScalaMethodFlags(jflags)) try { val ch = in.nextChar @@ -94,7 +94,7 @@ abstract class ICodeReader extends ClassfileParser { if (sym == NoSymbol) sym = owner.info.findMember(newTermName(name + nme.LOCAL_SUFFIX_STRING), 0, 0, false).suchThat(_.tpe =:= tpe) if (sym == NoSymbol) { - sym = if (field) owner.newValue(name, owner.pos, toScalaFieldFlags(jflags)) else dummySym + sym = if (field) owner.newValue(name.toTermName, owner.pos, toScalaFieldFlags(jflags)) else dummySym sym setInfoAndEnter tpe log(s"ICodeReader could not locate ${name.decode} in $owner. Created ${sym.defString}.") } |