@@ -155,13 +155,17 @@ object NameOps {
155
155
156
156
/** The expanded name of `name` relative to given class `base`.
157
157
*/
158
- def expandedName (base : Symbol )(implicit ctx : Context ): N =
159
- expandedName(if (base is Flags .ExpandedName ) base.name else base.fullNameSeparated(" $" ))
158
+ def expandedName (base : Symbol , separator : Name )(implicit ctx : Context ): N =
159
+ expandedName(if (base is Flags .ExpandedName ) base.name else base.fullNameSeparated(" $" ), separator)
160
+
161
+ def expandedName (base : Symbol )(implicit ctx : Context ): N = expandedName(base, nme.EXPAND_SEPARATOR )
160
162
161
163
/** The expanded name of `name` relative to `basename` with given `separator`
162
164
*/
163
- def expandedName (prefix : Name ): N =
164
- name.fromName(prefix ++ nme.EXPAND_SEPARATOR ++ name).asInstanceOf [N ]
165
+ def expandedName (prefix : Name , separator : Name = nme.EXPAND_SEPARATOR ): N =
166
+ name.fromName(prefix ++ separator ++ name).asInstanceOf [N ]
167
+
168
+ def expandedName (prefix : Name ): N = expandedName(prefix, nme.EXPAND_SEPARATOR )
165
169
166
170
def unexpandedName : N = {
167
171
val idx = name.lastIndexOfSlice(nme.EXPAND_SEPARATOR )
@@ -178,6 +182,8 @@ object NameOps {
178
182
179
183
def revertShadowed : N = likeTyped(name.drop(nme.SHADOWED .length))
180
184
185
+ def implClassName : N = likeTyped(name ++ tpnme.IMPL_CLASS_SUFFIX )
186
+
181
187
/** Translate a name into a list of simple TypeNames and TermNames.
182
188
* In all segments before the last, type/term is determined by whether
183
189
* the following separator char is '.' or '#'. The last segment
0 commit comments