diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-09-26 09:09:34 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-09-27 15:53:15 +0200 |
commit | e74c432fdbce2b3eaaddcba8c733cf7ccc0ee2ed (patch) | |
tree | 60d6f731754304ea8a23ea49d076dd7128449df2 /test | |
parent | 94e280dee6655f9d4242ab5fd1f46c97975c7182 (diff) | |
download | scala-e74c432fdbce2b3eaaddcba8c733cf7ccc0ee2ed.tar.gz scala-e74c432fdbce2b3eaaddcba8c733cf7ccc0ee2ed.tar.bz2 scala-e74c432fdbce2b3eaaddcba8c733cf7ccc0ee2ed.zip |
simplifies Context.Run and Context.CompilationUnit
By turning them from abstract types into full-fledged traits
implemented by our internal Run and CompilationUnit.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/macro-openmacros/Impls_Macros_1.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/files/run/macro-openmacros/Impls_Macros_1.scala b/test/files/run/macro-openmacros/Impls_Macros_1.scala index 38d46c5185..b863ac048b 100644 --- a/test/files/run/macro-openmacros/Impls_Macros_1.scala +++ b/test/files/run/macro-openmacros/Impls_Macros_1.scala @@ -4,8 +4,7 @@ object Macros { def impl(c: Context): c.Expr[Unit] = { // we're macros, so we can reflect against our source path // so we don't need any partests to clean up after us! - val c.CompilationUnit(file, _, _) = c.enclosingUnit - val dir = file.getCanonicalFile.getParentFile + val dir = c.enclosingUnit.source.file.file.getCanonicalFile.getParentFile def normalizePaths(s: String) = { val base = (dir.getCanonicalPath + java.io.File.separator).replace('\\', '/') var regex = """\Q%s\E""" format base |