Packages

macro class instantiable extends internal.instantiable

Classes or traits which will be used with the Definition + Instance api should be marked with the instantiable annotation at the class/trait definition.

Annotations
@compileTimeOnly("macro annotation could not be expanded (since these are experimental, you must enable them with -Ymacro-annotations)")
Source
package.scala
Example:
  1. @instantiable
    class MyModule extends Module {
      ...
    }
    
    val d = Definition(new MyModule)
    val i0 = Instance(d)
    val i1 = Instance(d)
Linear Supertypes
internal.instantiable, StaticAnnotation, Annotation, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. instantiable
  2. instantiable
  3. StaticAnnotation
  4. Annotation
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new instantiable()

Value Members

  1. macro def macroTransform(annottees: Any*): Any
    Definition Classes
    instantiable