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