summaryrefslogblamecommitdiff
path: root/src/compiler/scala/reflect/macros/contexts/Infrastructure.scala
blob: 7088058145d9d9c3d38b41658431d1f9df549966 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
                            
                











                                                                                                                         
                                                                    
 
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.toList
}