Automatic construction of an offline Mirror in a properly setup build integration.
Automatic construction of an offline Mirror in a properly setup build integration.
Recommended constructor if using a build integration like sbt-scalahost.
RuntimeException
if system properties is missing necessary values, for
example when the build integration is improperly setup.
Construct offline Mirror from a persisted semantic database.
Construct offline Mirror from a persisted semantic database.
java.io.File.pathSeparator separated list of jar files
or directories containing classfiles and semanticdb
files.
The semanticdb
files are emitted by the scalahost-nsc
compiler plugin and are necessary for the semantic API to
function. The classfiles + jar files are necessary for
runtime compilation of quasiquotes when extracting
symbols (that is, q"scala.Predef".symbol
).
Example:
"foo/target/classes:foo.jar:/home/.ivy2/cache/bar.jar".
java.io.File.pathSeparator separated list of Scala source files OR directories containing Scala source files. For example Example: "src/main/scala:build/Bar.scala".
File path to the scalahost-nsc compiler plugin fatjar,
the same path that is passed in -Xplugin:/scalahost.jar
.
Construct online Mirror from scalac Global instance.
Construct online Mirror from scalac Global instance.
You may wish to use this constructor from within, for example: - a compiler plugin - the presentation compiler