Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Give Tree::Optimizer::CombinedPass the transformer-class treatment.

  • Loading branch information...
commit 91e9a41ed009904cc432a483d46d245fd1345127 1 parent 34eb267
tcurtis authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/Tree/Optimizer/CombinedPass.nqp
View
6 src/Tree/Optimizer/CombinedPass.nqp
@@ -9,7 +9,11 @@ method new (@passes) {
}
method BUILD (:@passes) {
- $!transformer := Tree::Optimizer::Transformer::Combined.new(@passes)
+ $!transformer := self.transformer-class.new(@passes)
+}
+
+method transformer-class () {
+ Tree::Optimizer::Transformer::Combined;
}
method run ($tree) {
Please sign in to comment.
Something went wrong with that request. Please try again.