@@ -531,18 +531,6 @@ object Symbols {
531
531
/** The current name of this symbol */
532
532
final def name (implicit ctx : Context ): ThisName = denot.name.asInstanceOf [ThisName ]
533
533
534
- def isHigherOrderTypeParameter (implicit ctx : Context ): Boolean = this .maybeOwner.isTypeParameterOrSkolem
535
- def isTypeParameterOrSkolem (implicit ctx : Context ): Boolean = this .isTypeParam
536
- def enclClassChain (implicit ctx : Context ): List [Symbol ] = this .maybeOwner.enclClassChain
537
- final def isDerivedValueClass (implicit ctx : Context ): Boolean =
538
- isClass && ! denot.is(Flags .Package ) && ! denot.is(Flags .Trait ) &&
539
- ! ctx.phase.erasedTypes && denot.info.firstParent.typeSymbol == defn.AnyValClass && ! denot.isPrimitiveValueClass
540
-
541
- /** If this is a derived value class, return its unbox method
542
- * or NoSymbol if it does not exist.
543
- */
544
- def derivedValueClassUnbox (implicit ctx : Context ): Symbol = NoSymbol
545
-
546
534
/** The source or class file from which this class or
547
535
* the class containing this symbol was generated, null if not applicable.
548
536
* Overridden in ClassSymbol
@@ -649,30 +637,17 @@ object Symbols {
649
637
denot.asInstanceOf [ClassDenotation ]
650
638
651
639
override protected def prefixString = " ClassSymbol"
652
-
653
- override def enclClassChain (implicit ctx : Context ): List [Symbol ] =
654
- if (this .is(Flags .PackageClass )) Nil
655
- else this :: denot.owner.enclClassChain
656
-
657
- override def derivedValueClassUnbox (implicit ctx : Context ): Symbol =
658
- // (info.decl(nme.unbox)) orElse uncomment once we accept unbox methods
659
- (denot.info.decls.find(_.denot.is(Flags .ParamAccessor | Flags .Method )))
660
-
661
640
}
662
641
663
642
class ErrorSymbol (val underlying : Symbol , msg : => String )(implicit ctx : Context ) extends Symbol (NoCoord , ctx.nextId) {
664
643
type ThisName = underlying.ThisName
665
644
denot = underlying.denot
666
-
667
- override def enclClassChain (implicit ctx : Context ): List [Symbol ] = Nil
668
645
}
669
646
670
647
@ sharable object NoSymbol extends Symbol (NoCoord , 0 ) {
671
648
denot = NoDenotation
672
649
override def associatedFile (implicit ctx : Context ): AbstractFile = NoSource .file
673
650
override def recomputeDenot (lastd : SymDenotation )(implicit ctx : Context ): SymDenotation = NoDenotation
674
-
675
- override def enclClassChain (implicit ctx : Context ): List [Symbol ] = Nil
676
651
}
677
652
678
653
implicit class Copier [N <: Name ](sym : Symbol { type ThisName = N })(implicit ctx : Context ) {
0 commit comments