def method_declr(self):
    localctx = decafJavierParser.Method_declrContext(self, self._ctx, self.state)
    self.enterRule(localctx, 12, self.RULE_method_declr)
    self._la = 0
    try:
        self.enterOuterAlt(localctx, 1)
        self.state = 103
        self.return_type()
        self.state = 104
        self.method_name()
        self.state = 105
        self.match(decafJavierParser.LROUND)
        self.state = 118
        self._errHandler.sync(self)
        _la = self._input.LA(1)
        if ((_la == decafJavierParser.BOOLEAN) or (_la == decafJavierParser.INT)):
            self.state = 106
            self.var_type()
            self.state = 107
            self.var_id()
            self.state = 115
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (_la == decafJavierParser.COMMA):
                self.state = 109
                self.match(decafJavierParser.COMMA)
                self.state = 110
                self.var_type()
                self.state = 111
                self.var_id()
                self.state = 117
                self._errHandler.sync(self)
                _la = self._input.LA(1)
        self.state = 120
        self.match(decafJavierParser.RROUND)
        self.state = 121
        self.block()
    except RecognitionException as re:
        localctx.exception = re
        self._errHandler.reportError(self, re)
        self._errHandler.recover(self, re)
    finally:
        self.exitRule()
    return localctx
def method_declr(self):
    localctx = decafJavierParser.Method_declrContext(self, self._ctx, self.state)
    self.enterRule(localctx, 12, self.RULE_method_declr)
    self._la = 0
    try:
        self.enterOuterAlt(localctx, 1)
        self.state = 103
        self.return_type()
        self.state = 104
        self.method_name()
        self.state = 105
        self.match(decafJavierParser.LROUND)
        self.state = 118
        self._errHandler.sync(self)
        _la = self._input.LA(1)
        if ((_la == decafJavierParser.BOOLEAN) or (_la == decafJavierParser.INT)):
            self.state = 106
            self.var_type()
            self.state = 107
            self.var_id()
            self.state = 115
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while (_la == decafJavierParser.COMMA):
                self.state = 109
                self.match(decafJavierParser.COMMA)
                self.state = 110
                self.var_type()
                self.state = 111
                self.var_id()
                self.state = 117
                self._errHandler.sync(self)
                _la = self._input.LA(1)
        self.state = 120
        self.match(decafJavierParser.RROUND)
        self.state = 121
        self.block()
    except RecognitionException as re:
        localctx.exception = re
        self._errHandler.reportError(self, re)
        self._errHandler.recover(self, re)
    finally:
        self.exitRule()
    return localctx