touch .travis.yml
- Copy paste the following
language: node_js
node_js: stable
import scala.tools.nsc.interpreter._ | |
import scala.tools.nsc.Settings | |
//USAGE EXAMPLE: import break._;break[someClass]("MainObject" -> MainObject) | |
object break{ | |
def echo(x: Any) = Console.println(x) | |
def break[T: Manifest](args: NamedParam*) = { | |
class MacroBundle(val c: Context) { | |
/* etc */ | |
/** Typecheck singleton types so as to obtain indirectly | |
* available known-at-compile-time values. | |
*/ | |
object Const { | |
def unapply(tp: Type): Option[Constant] = tp match { | |
case ConstantType(c) => Some(c) | |
case SingleType(_, sym) => unapply(c.typecheck(q"$sym").tpe) |