Skip to content

Commit

Permalink
Fix MatchError in tree dumps.
Browse files Browse the repository at this point in the history
The bug was introduced in 83c487d.
  • Loading branch information
szeiger committed Sep 2, 2013
1 parent 27853a9 commit 56cdd2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/scala/scala/slick/ast/Dump.scala
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ class DumpContext(val out: PrintWriter, val typed: Boolean = true) {
tree match {
// Omit path details unless dumpPaths is set
case Path(l @ (_ :: _ :: _)) if !dumpPaths =>
tree.foreach { case Ref(s) => addRef(s) }
tree.foreach {
case Ref(s) => addRef(s)
case _ =>
}
case _ =>
for((chg, n) <- tree.nodeChildren.zip(tree.nodeChildNames))
dump(chg, prefix + " ", n+": ", false)
Expand Down

0 comments on commit 56cdd2d

Please sign in to comment.