aboutsummaryrefslogtreecommitdiff
path: root/core/shared/src/main/scala/interface.scala
diff options
context:
space:
mode:
Diffstat (limited to 'core/shared/src/main/scala/interface.scala')
-rw-r--r--core/shared/src/main/scala/interface.scala12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/shared/src/main/scala/interface.scala b/core/shared/src/main/scala/interface.scala
index 05803f0..51abc22 100644
--- a/core/shared/src/main/scala/interface.scala
+++ b/core/shared/src/main/scala/interface.scala
@@ -188,4 +188,14 @@ final class SealedTrait[Typeclass[_], Type](val typeName: TypeName,
*/
final case class TypeName(owner: String, short: String) {
def full: String = s"$owner.$short"
-} \ No newline at end of file
+}
+
+/**
+ * This annotation can be attached to the implicit `gen` method of a type class companion,
+ * which is implemented by the `Magnolia.gen` macro.
+ * It causes magnolia to dump the macro-generated code to the console during compilation.
+ *
+ * @param typeNamePart If non-empty restricts the output generation to types
+ * whose full name contains the given [[String]]
+ */
+final class debug(typeNamePart: String = "") extends scala.annotation.StaticAnnotation