Thanks for the reply :)
Here's the scenario: In the rewrite rule I was reading an attribute of
the node I was rewriting, and I knew its output had to be of a certain
type. (To follow the terminology in some of the library examples,
let's say the rewrite rule is doing "analyzer.tipe(n)" where "n" is
the node being rewritten; I was doing
"analyzer.tipe(n).asInstanceOf[CollectionType]" since I knew the type
had to be a collection type and wanted to get that specific object
out.) Or I thought I knew :-) So instead of building a typical scala
pattern match, I just called the attribute and did "asInstanceOf" to
the more specific output type that I was expecting. Turns out I made a
mistake, and instead of seeing an exception being thrown at me in the
middle of the rule executng, the rewrite rule was simply not applying.
This was... well... long to debug, because for the life of me I
couldn't understand why the rule didn't seem to apply; I expected it
to apply then just crash the code.