SymUtils

object SymUtils
class Object
trait Matchable
class Any

Extensions

Extensions

extension (self: Symbol)
def accessorNamed(name: TermName)(using Context): Symbol

The declared self type of this class, as seen from site, stripping all refinements for opaque types.

The declared self type of this class, as seen from site, stripping all refinements for opaque types.

def deriveTargetNameAnnotation(original: Symbol, nameFn: Name => Name)(using Context): Unit

If original has a target name annotation, add one to this symbol as well such that the new target name is original's target name transformed by nameFn.

If original has a target name annotation, add one to this symbol as well such that the new target name is original's target name transformed by nameFn.

All traits implemented by a class or trait except for those inherited through the superclass. Traits are given in the order they appear in the parents clause (which is the reverse of their order in baseClasses)

All traits implemented by a class or trait except for those inherited through the superclass. Traits are given in the order they appear in the parents clause (which is the reverse of their order in baseClasses)

The closest enclosing method or class of this symbol

The closest enclosing method or class of this symbol

final def enclosure(using Context): Symbol

The closest properly enclosing method or class of this symbol.

The closest properly enclosing method or class of this symbol.

def field(using Context): Symbol
def getter(using Context): Symbol

Is symbol assumed or declared as an infix symbol?

Is symbol assumed or declared as an infix symbol?

def isEnum(using Context): Boolean

Does this symbol refer to anonymous classes synthesized by enum desugaring?

Does this symbol refer to anonymous classes synthesized by enum desugaring?

Is symbol a term splice operation?

Is symbol a term splice operation?

def isField(using Context): Boolean
def isGenericSum(declScope: Symbol)(using Context): Boolean

Is this symbol defined locally (i.e. at some level owned by a term) so that it cannot be seen from parent class cls?

Is this symbol defined locally (i.e. at some level owned by a term) so that it cannot be seen from parent class cls?

final def isLocal(using Context): Boolean

Is symbol directly or indirectly owned by a term symbol?

Is symbol directly or indirectly owned by a term symbol?

Is this symbol directly owner by a term symbol, i.e., is it local to a block?

Is this symbol directly owner by a term symbol, i.e., is it local to a block?

Is this a type or term parameter or a term parameter accessor?

Is this a type or term parameter or a term parameter accessor?

def isQuote(using Context): Boolean

Is symbol a quote operation?

Is symbol a quote operation?

Is symbol a type splice operation?

Is symbol a type splice operation?

All traits implemented by a class, except for those inherited through the superclass. The empty list if self is a trait.

All traits implemented by a class, except for those inherited through the superclass. The empty list if self is a trait.

The reachable typeRef with wildcard arguments for each type parameter

The reachable typeRef with wildcard arguments for each type parameter

def setter(using Context): Symbol
final def skipConstructor(using Context): Symbol

If this is a constructor, its owner: otherwise this.

If this is a constructor, its owner: otherwise this.

def subst(from: List[Symbol], to: List[Symbol]): Symbol

Apply symbol/symbol substitution to this symbol

Apply symbol/symbol substitution to this symbol

Is this a case class for which a product mirror is generated? Excluded are value classes, abstract classes and case classes with more than one parameter section.

Is this a case class for which a product mirror is generated? Excluded are value classes, abstract classes and case classes with more than one parameter section.

def whyNotGenericSum(declScope: Symbol)(using Context): String

Is this a sealed class or trait for which a sum mirror is generated? It must satisfy the following conditions:

Is this a sealed class or trait for which a sum mirror is generated? It must satisfy the following conditions:

  • it has at least one child class or object
  • none of its children are anonymous classes
  • all of its children are addressable through a path from the parent class and also the location of the generated mirror.
  • all of its children are generic products or singletons
def withAnnotationsCarrying(from: Symbol, meta: ClassSymbol)(using Context): self