Last active
August 29, 2015 14:22
-
-
Save johannegger/051a6c125b00c412951f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.meta.internal.ast._ | |
import scala.meta.tql._ | |
def message(tree: Tree) = s"found culprit at line ${tree.position.start.line}" | |
val tryMatcher = collect{ | |
case tr: Term.TryWithCases => message(tr) | |
case tr: Term.TryWithTerm => message(tr) | |
}.topDown |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment