Quieting down mr. lifty, no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25415 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
f286c27088
commit
58784b2d2a
|
@ -56,7 +56,7 @@ abstract class LiftCode extends Transform with TypingTransformers {
|
||||||
case _ => transform(rhs)
|
case _ => transform(rhs)
|
||||||
}
|
}
|
||||||
val rhs1 = typer.typedPos(rhs.pos) {
|
val rhs1 = typer.typedPos(rhs.pos) {
|
||||||
util.errtrace("lifted rhs for "+tree+" in "+unit) (
|
/*util.errtrace("lifted rhs for "+tree+" in "+unit)*/(
|
||||||
Apply(Select(New(TypeTree(sym.tpe)), nme.CONSTRUCTOR), List(constructorArg)))
|
Apply(Select(New(TypeTree(sym.tpe)), nme.CONSTRUCTOR), List(constructorArg)))
|
||||||
}
|
}
|
||||||
sym resetFlag MUTABLE
|
sym resetFlag MUTABLE
|
||||||
|
@ -64,7 +64,7 @@ abstract class LiftCode extends Transform with TypingTransformers {
|
||||||
treeCopy.ValDef(tree, mods &~ MUTABLE, name, tpt1, rhs1)
|
treeCopy.ValDef(tree, mods &~ MUTABLE, name, tpt1, rhs1)
|
||||||
case Ident(name) if freeMutableVars(sym) =>
|
case Ident(name) if freeMutableVars(sym) =>
|
||||||
localTyper.typedPos(tree.pos) {
|
localTyper.typedPos(tree.pos) {
|
||||||
util.errtrace("lifting ")(Select(tree setType sym.tpe, nme.elem))
|
/*util.errtrace("lifting ")*/(Select(tree setType sym.tpe, nme.elem))
|
||||||
}
|
}
|
||||||
case _ =>
|
case _ =>
|
||||||
super.transform(tree)
|
super.transform(tree)
|
||||||
|
|
|
@ -7,7 +7,7 @@ object trace extends SimpleTracer(System.out)
|
||||||
object errtrace extends SimpleTracer(System.err)
|
object errtrace extends SimpleTracer(System.err)
|
||||||
|
|
||||||
class SimpleTracer(out: PrintStream) {
|
class SimpleTracer(out: PrintStream) {
|
||||||
def apply[T](msg: String)(value: T): T = {
|
def apply[T](msg: String)(value: T): T = {
|
||||||
out.println(msg+value)
|
out.println(msg+value)
|
||||||
value
|
value
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue