Skip to content

Commit

Permalink
Disable Xml Rewrite in pattern position
Browse files Browse the repository at this point in the history
We first need to fix scalameta/scalameta/issues/870 and figure
out how to rewrite `e match { case <a>{_*}< => }
  • Loading branch information
allanrenucci committed May 17, 2017
1 parent 864dc01 commit ed4ef25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ case object RemoveXmlLiterals extends Rewrite {
object Xml {
def unapply(tree: Tree): Option[Seq[Lit]] =
tree match {
case Pat.Xml(parts, _) => Some(parts)
//case Pat.Xml(parts, _) => Some(parts) // Not stable
case Term.Xml(parts, _) => Some(parts)
case _ => None
}
Expand Down

0 comments on commit ed4ef25

Please sign in to comment.