diff options
author | paltherr <paltherr@epfl.ch> | 2003-10-06 07:01:56 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-10-06 07:01:56 +0000 |
commit | 35342050b6db180023aa2d4eb63b5a930f6b1c6c (patch) | |
tree | 4544967add3908501e9dba0da136b296eb06cda5 | |
parent | 4c20ac96504e908715dd4936e1239cb1c816ceb0 (diff) | |
download | scala-35342050b6db180023aa2d4eb63b5a930f6b1c6c.tar.gz scala-35342050b6db180023aa2d4eb63b5a930f6b1c6c.tar.bz2 scala-35342050b6db180023aa2d4eb63b5a930f6b1c6c.zip |
- Changed uniqueName to use Symbol.fullname()
-rw-r--r-- | sources/scalac/transformer/AddInterfacesPhase.java | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sources/scalac/transformer/AddInterfacesPhase.java b/sources/scalac/transformer/AddInterfacesPhase.java index ca3342a86b..b5145f4a97 100644 --- a/sources/scalac/transformer/AddInterfacesPhase.java +++ b/sources/scalac/transformer/AddInterfacesPhase.java @@ -141,21 +141,9 @@ public class AddInterfacesPhase extends Phase { } } - protected void uniqueName(Symbol sym, StringBuffer buf) { - Symbol owner = sym.owner(); - - if (owner != Symbol.NONE) { - uniqueName(owner, buf); - buf.append('$'); - } - - buf.append(sym.name.toString()); - } - protected Name uniqueName(Symbol sym) { - StringBuffer buf = new StringBuffer(); - uniqueName(sym, buf); - Name newName = Name.fromString(buf.toString()); + Name owner = sym.owner().fullName().replace((byte)'.', (byte)'$'); + Name newName = Name.fromString(owner.toString() + '$' + sym.name); if (sym.name.isTypeName()) return newName.toTypeName(); else return newName; } |