Annotations

class Object
trait Matchable
class Any

Type members

Classlikes

abstract class Annotation extends Showable
Companion:
object
object Annotation
Companion:
class
abstract class BodyAnnotation extends Annotation

An annotation indicating the body of a right-hand side, typically of an inline method. Treated specially in pickling/unpickling and TypeTreeMaps

An annotation indicating the body of a right-hand side, typically of an inline method. Treated specially in pickling/unpickling and TypeTreeMaps

case class ConcreteAnnotation(t: Tree) extends Annotation
abstract class LazyAnnotation extends Annotation
abstract class LazyBodyAnnotation extends BodyAnnotation
Companion:
object
Companion:
class

Extracts the type of the thrown exception from an annotation.

Extracts the type of the thrown exception from an annotation.

Supports both "old-style" @throws(classOf[Exception]) as well as "new-style" @throws[Exception]("cause") annotations.

Value members

Concrete methods

def annotClass(tree: Tree)(using Context): Symbol