Skip to content
Permalink
Browse files

Do not reuse stateful transformers in the query compiler

  • Loading branch information
szeiger committed Aug 16, 2012
1 parent be1c55e commit 1e87e1fc9404fd0581d7f2fcb8902e05e535c133
@@ -78,7 +78,7 @@ class ReconstructProducts extends Phase {
}

/** Replace matching products */
private object transformer extends Transformer.Defs {
private def transformer = new Transformer.Defs {
// Narrow the target of a ref to the actual Pure value produced
def narrow(n: Node): Option[Pure] = n match {
case n: Pure => Some(n)
@@ -170,7 +170,7 @@ class PruneFields extends Phase {

def apply(n: Node, state: CompilationState) = prune.repeat(n)

val prune = new Transformer {
def prune = new Transformer {
val refs = new HashSet[Symbol]()
override def initTree(n: Node) {
super.initTree(n)

0 comments on commit 1e87e1f

Please sign in to comment.
You can’t perform that action at this time.