summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ReflectMain.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2011-08-24 17:04:34 +0000
committerMartin Odersky <odersky@gmail.com>2011-08-24 17:04:34 +0000
commite1a9fd9a7a3092e38915425adbd308b48e48e363 (patch)
treee454bd48ed20dd979195375d668f89ddaa2a53f3 /src/compiler/scala/tools/nsc/ReflectMain.scala
parent77175ede13ac1b0b37e82aabdfe091e0ec592b25 (diff)
downloadscala-e1a9fd9a7a3092e38915425adbd308b48e48e363.tar.gz
scala-e1a9fd9a7a3092e38915425adbd308b48e48e363.tar.bz2
scala-e1a9fd9a7a3092e38915425adbd308b48e48e363.zip
reflection refactoring so that we can now have ...
reflection refactoring so that we can now have a compiler that uses reflection instead of class files (ReflectGlobal/ReflectMain). Still needs some debugging to get it to run.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ReflectMain.scala')
-rw-r--r--src/compiler/scala/tools/nsc/ReflectMain.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/ReflectMain.scala b/src/compiler/scala/tools/nsc/ReflectMain.scala
new file mode 100644
index 0000000000..7167f5aa27
--- /dev/null
+++ b/src/compiler/scala/tools/nsc/ReflectMain.scala
@@ -0,0 +1,7 @@
+package scala.tools.nsc
+
+object ReflectMain extends Driver {
+
+ override def newCompiler(): Global = new ReflectGlobal(settings, reporter)
+
+} \ No newline at end of file