Created
February 25, 2016 09:07
-
-
Save pjazdzewski1990/b045ad61ab1fd951a6eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//in class Variable | |
override def toTree(implicit c: blackbox.Context): c.Tree = { | |
import c.universe._ | |
Ident(TermName(name)) | |
} | |
//in class DoubleConstant | |
override def toTree(implicit c: blackbox.Context): c.Tree = { | |
import c.universe._ | |
Literal(Constant(value)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment