@@ -62,7 +62,7 @@ object NameKinds {
62
62
}
63
63
64
64
/** The kind of SimpleNames */
65
- object SimpleNameKind extends NameKind (UTF8 ) { self =>
65
+ val SimpleNameKind = new NameKind (UTF8 ) { self =>
66
66
type ThisInfo = Info
67
67
val info = new Info
68
68
def mkString (underlying : TermName , info : ThisInfo ) = unsupported(" mkString" )
@@ -311,7 +311,7 @@ object NameKinds {
311
311
val PatMatSelectorName = new UniqueNameKind (" selector" )
312
312
313
313
/** The kind of names of default argument getters */
314
- object DefaultGetterName extends NumberedNameKind (DEFAULTGETTER , " DefaultGetter" ) {
314
+ val DefaultGetterName = new NumberedNameKind (DEFAULTGETTER , " DefaultGetter" ) {
315
315
def mkString (underlying : TermName , info : ThisInfo ) = {
316
316
val prefix = if (underlying.isConstructorName) nme.DEFAULT_GETTER_INIT else underlying
317
317
prefix.toString + str.DEFAULT_GETTER + (info.num + 1 )
@@ -330,14 +330,14 @@ object NameKinds {
330
330
}
331
331
332
332
/** The kind of names that also encode a variance: 0 for contravariance, 1 for covariance. */
333
- object VariantName extends NumberedNameKind (VARIANT , " Variant" ) {
333
+ val VariantName = new NumberedNameKind (VARIANT , " Variant" ) {
334
334
def mkString (underlying : TermName , info : ThisInfo ) = " -+" (info.num).toString + underlying
335
335
}
336
336
337
337
/** Names of the form N_<outer>. Emitted by inliner, replaced by outer path
338
338
* in ExplicitOuter.
339
339
*/
340
- object OuterSelectName extends NumberedNameKind (OUTERSELECT , " OuterSelect" ) {
340
+ val OuterSelectName = new NumberedNameKind (OUTERSELECT , " OuterSelect" ) {
341
341
def mkString (underlying : TermName , info : ThisInfo ) = {
342
342
assert(underlying.isEmpty)
343
343
info.num + " _<outer>"
@@ -359,7 +359,7 @@ object NameKinds {
359
359
val ModuleClassName = new SuffixNameKind (OBJECTCLASS , " $" , optInfoString = " ModuleClass" )
360
360
361
361
/** A name together with a signature. Used in Tasty trees. */
362
- object SignedName extends NameKind (63 ) {
362
+ val SignedName = new NameKind (63 ) {
363
363
364
364
case class SignedInfo (sig : Signature ) extends Info {
365
365
override def toString = s " $infoString $sig"
0 commit comments