Packages

a

react

deriveForwardingTrait

macro class deriveForwardingTrait extends Annotation with StaticAnnotation

"Exports" all defs and val/vars from a source object to another trait by creating static forwarders in the annotated trait. This allows you to proxy methods imported from a js module into any trait easily. Only vals (or readers for vars) and defs are exported from the source.

NOT FULLY TESTED YET!

Annotations
@compileTimeOnly("Enable macros -Ymacro-annotations (2.13+) to expand macro annotation")
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. deriveForwardingTrait
  2. StaticAnnotation
  3. Annotation
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new deriveForwardingTrait(source: Any)

Value Members

  1. macro def macroTransform(annottees: Any*): Any