Method: ReVIEW::Compiler#_CodeBlockElementContents

Defined in:
lib/review/compiler.rb

#_CodeBlockElementContentsObject

CodeBlockElementContents = CodeBlockElementContent+:c { c }



2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
# File 'lib/review/compiler.rb', line 2622

def _CodeBlockElementContents

  _save = self.pos
  while true # sequence
    _save1 = self.pos
    _ary = []
    _tmp = apply(:_CodeBlockElementContent)
    if _tmp
      _ary << @result
      while true
        _tmp = apply(:_CodeBlockElementContent)
        _ary << @result if _tmp
        break unless _tmp
      end
      _tmp = true
      @result = _ary
    else
      self.pos = _save1
    end
    c = @result
    unless _tmp
      self.pos = _save
      break
    end
    @result = begin;  c ; end
    _tmp = true
    unless _tmp
      self.pos = _save
    end
    break
  end # end sequence

  set_failed_rule :_CodeBlockElementContents unless _tmp
  return _tmp
end