# File lib/treetop/compiler/node_classes/predicate_block.rb, line 4
4: def compile(index, builder, parent_expression = nil)
5: super
6: # REVISIT: This is distinctly dodgey, but since we can only be called from
7: # two contexts, and it works in both those, I'm going with it for now, as
8: # opposed to doing the major refactor of providing a proper way of accessing
9: # the parent's accumulator variable.
10: p = parent
11: p = p.parent while p && !p.respond_to?(:accumulator_var)
12: assign_result "lambda #{text_value}.call(#{p ? p.accumulator_var : ""})"
13: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.