Skip to content

Commit

Permalink
Do not reuse stateful transformers in the query compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
szeiger committed Aug 16, 2012
1 parent be1c55e commit 1e87e1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/scala/slick/compiler/RewritePaths.scala
Expand Up @@ -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)
Expand Down

0 comments on commit 1e87e1f

Please sign in to comment.