Dotty Documentation

0.2.0-bin-SNAPSHOT

final class SymUtils
extends AnyVal

A decorator that provides methods on symbols that are needed in the transformer pipeline.

[-] Constructors

SymUtils ( self: Symbol )

[-] Members

[+] val self : Symbol
[+] def accessorNamed ( name: TermName ) ( implicit ctx: Context ) : Symbol
[+] def annotationsCarrying ( meta: ClassSymbol ) ( implicit ctx: Context ) : List [ Annotation ]
[+] def caseAccessors ( implicit ctx: Context ) : List [ Symbol ]
[+] def directlyInheritedTraits ( implicit ctx: Context ) : List [ ClassSymbol ]

All traits implemented by a class or trait except for those inherited through the superclass.

[+] @tailrec final def enclosingMethodOrClass ( implicit ctx: Context ) : Symbol

The closest enclosing method or class of this symbol

[+] final def enclosure ( implicit ctx: Context ) : Symbol

The closest properly enclosing method or class of this symbol.

[+] def field ( implicit ctx: Context ) : Symbol
[+] def getter ( implicit ctx: Context ) : Symbol
[+] def implClass ( implicit ctx: Context ) : Symbol
[+] def isAliasPreferred ( implicit ctx: Context ) : Boolean
[+] def isAnyOverride ( implicit ctx: Context ) : Boolean
[+] def isField ( implicit ctx: Context ) : Boolean
[+] def isSuperAccessor ( implicit ctx: Context ) : Boolean
[+] def isTypeTestOrCast ( implicit ctx: Context ) : Boolean
[+] def isVolatile ( implicit ctx: Context ) : Boolean
[+] def mixins ( implicit ctx: Context ) : List [ ClassSymbol ]

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

[+] def registerCompanionMethod ( name: Name , target: Symbol ) ( implicit ctx: Context ) : Any
[+] def setter ( implicit ctx: Context ) : Symbol
[+] final def skipConstructor ( implicit ctx: Context ) : Symbol

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

[+] def termParamAccessors ( implicit ctx: Context ) : List [ Symbol ]
[+] def withAnnotationsCarrying ( from: Symbol , meta: ClassSymbol ) ( implicit ctx: Context ) : self.type