Closed GoogleCodeExporter closed 9 years ago
Original comment by ctjoreilly@gmail.com
on 30 Sep 2014 at 6:01
Fix applied in r911. The problem was that the logic in HasKind, which was
renamed from HasFunctor, was only intended to work with functors and when it
received a KindAttribute.<constant predicate> was wrappering this inside a
Symbol i.e.:
Expressions.makeSymbol(kindValue)
instead now this only occurs if this is not true:
kindValue instanceof Expression || KindAttribute.isKindPredicate(kindValue)
In addition, all other code that was using KindAttribute predicates in the
following way:
this.setReifiedTests(new DefaultRewriterTest(KindAttribute.INSTANCE,
KindAttribute.VALUE_SCOPED_VARIABLES));
have been updated to use the new unified HasKind mechanism, i.e.:
this.setReifiedTests(new HasKind(KindAttribute.VALUE_SCOPED_VARIABLES));
in order to keep things consistent.
Original comment by ctjoreilly@gmail.com
on 30 Sep 2014 at 8:53
Original issue reported on code.google.com by
rodrigob...@gmail.com
on 30 Sep 2014 at 6:55