Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

WIP: Typeclass based generators #43

Closed

Conversation

DavidDudson
Copy link
Member

DO NOT MERGE:

This is an API proof of concept for #35

This is not hooked up to the Runner yet.

In its current state the Runner will NOT be able to support this, thus overhauling the runner is now a top priority.

}

object Abort extends ExtensionGenerator("Abort") {
override def extend(c: Defn.Class): List[Stat] =
override def extend[A <: Tree : StatExtractor](a: A): List[Stat] =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep in mind that the implicit evidence complicates runtime reflection, in case we ever want to reflectively invoke the extend methods.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I my plan works out. we wont use reflection at all.

@DavidDudson
Copy link
Member Author

Closing till later

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants