Method: MODL::Parser::MODLParser#modl_value_conditional_return

Defined in:
lib/modl/parser/MODLParser.rb

#modl_value_conditional_returnObject



1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
# File 'lib/modl/parser/MODLParser.rb', line 1635

def modl_value_conditional_return()
  _localctx =  Modl_value_conditional_returnContext.new(@_ctx, @_state_number)
  enter_rule(_localctx, 32, RULE_modl_value_conditional_return)
  _la = 0
  begin
    enter_outer_alt(_localctx, 1)

    @_state_number = 243
    modl_value_item()
    @_state_number = 248
    @_err_handler.sync(self)
    _la = @_input.la(1)
    while (_la==COLON)


      @_state_number = 244
      match(COLON)
      @_state_number = 245
      modl_value_item()
      @_state_number = 250
      @_err_handler.sync(self)
      _la = @_input.la(1)
    end
  rescue Antlr4::Runtime::RecognitionException => re
    _localctx.exception = re
    @_err_handler.report_error(self, re)
    @_err_handler.recover(self, re)
  ensure
    exit_rule()
  end
  return _localctx
end