diff options
author | Den Shabalin <den.shabalin@gmail.com> | 2013-07-08 20:24:45 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-07-08 21:02:30 +0200 |
commit | 310df92551c33ed0242e9a50606732a9b02bfee8 (patch) | |
tree | d605db96d7ce1fa8b590d48617853f46513e0c2c /src/compiler/scala/reflect/reify | |
parent | 9e064f783e7ee42b9d27655e2b15d830f8bae5f0 (diff) | |
download | scala-310df92551c33ed0242e9a50606732a9b02bfee8.tar.gz scala-310df92551c33ed0242e9a50606732a9b02bfee8.tar.bz2 scala-310df92551c33ed0242e9a50606732a9b02bfee8.zip |
moves TreeBuilder into the parser
This is the first of the two patches to the parser necessary for
quasiquotes to function.
This one moves TreeBuilder from Global to the internals of the Parsers,
so that quasiquotes will be able to override it later to support some
corner cases arising from splicing (see the subsequent quasiquote commit
for more details).
Surprisingly enough, almost noone used TreeBuilder outside the parser,
and it was necessary to move just a couple of methods to TreeGen to
satisfy broken dependencies.
Diffstat (limited to 'src/compiler/scala/reflect/reify')
-rw-r--r-- | src/compiler/scala/reflect/reify/package.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/reflect/reify/package.scala b/src/compiler/scala/reflect/reify/package.scala index d3cae3d123..30cfec8e2a 100644 --- a/src/compiler/scala/reflect/reify/package.scala +++ b/src/compiler/scala/reflect/reify/package.scala @@ -32,7 +32,7 @@ package object reify { // If we're in the constructor of an object or others don't have easy access to `this`, we have no good way to grab // the class of that object. Instead, we construct an anonymous class and grab his class file, assuming // this is enough to get the correct class loadeer for the class we *want* a mirror for, the object itself. - rClassTree orElse Apply(Select(treeBuilder.makeAnonymousNew(Nil), sn.GetClass), Nil) + rClassTree orElse Apply(Select(gen.mkAnonymousNew(Nil), sn.GetClass), Nil) } // JavaUniverse is defined in scala-reflect.jar, so we must be very careful in case someone reifies stuff having only scala-library.jar on the classpath val isJavaUniverse = JavaUniverseClass != NoSymbol && universe.tpe <:< JavaUniverseClass.toTypeConstructor |