summaryrefslogtreecommitdiff
path: root/src/compiler/scala/reflect/macros/contexts/Infrastructure.scala
blob: df7aa4d2bee8fcb9fc191ee0acf7b38798ee7d49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package scala.reflect.macros
package contexts

trait Infrastructure {
  self: Context =>

  def settings: List[String] = {
    val us = universe.settings
    import us._
    userSetSettings collectFirst { case x: MultiStringSetting if x.name == XmacroSettings.name => x.value } getOrElse Nil
  }

  def compilerSettings: List[String] = universe.settings.recreateArgs

  def classPath: List[java.net.URL] = global.classPath.asURLs
}