MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

Commit 27a345d5 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[antlr] Update parser: Give up 'returns' keyword of antlr3

parent 59571195
......@@ -88,7 +88,6 @@ class condexpParser ( Parser ):
def __init__(self, parser, parent=None, invokingState=-1):
super(condexpParser.Sig_boolContext, self).__init__(parent, invokingState)
self.parser = parser
self.idents = None
self.id1 = None # Sig_bool1Context
def DOL(self):
......@@ -119,7 +118,7 @@ class condexpParser ( Parser ):
localctx.id1 = self.sig_bool1()
self.state = 11
self.match(condexpParser.DOL)
localctx.idents = id1
localctx.idents = localctx.id1.idents
pass
elif token in [condexpParser.DOL]:
self.enterOuterAlt(localctx, 2)
......@@ -143,7 +142,6 @@ class condexpParser ( Parser ):
def __init__(self, parser, parent=None, invokingState=-1):
super(condexpParser.Sig_bool1Context, self).__init__(parent, invokingState)
self.parser = parser
self.idents = None
self.id1 = None # Sig_bool_andContext
self.id2 = None # Sig_bool_andContext
......@@ -176,7 +174,7 @@ class condexpParser ( Parser ):
self.enterOuterAlt(localctx, 1)
self.state = 17
localctx.id1 = self.sig_bool_and()
localctx.idents = id1
localctx.idents = localctx.id1.idents
self.state = 25
self._errHandler.sync(self)
_la = self._input.LA(1)
......@@ -185,7 +183,7 @@ class condexpParser ( Parser ):
self.match(condexpParser.OR)
self.state = 20
localctx.id2 = self.sig_bool_and()
localctx.idents = localctx.idents | id2
localctx.idents |= localctx.id2.idents
self.state = 27
self._errHandler.sync(self)
_la = self._input.LA(1)
......@@ -204,7 +202,6 @@ class condexpParser ( Parser ):
def __init__(self, parser, parent=None, invokingState=-1):
super(condexpParser.Sig_bool_andContext, self).__init__(parent, invokingState)
self.parser = parser
self.idents = None
self.id1 = None # Sig_primaryContext
self.id2 = None # Sig_primaryContext
......@@ -237,7 +234,7 @@ class condexpParser ( Parser ):
self.enterOuterAlt(localctx, 1)
self.state = 28
localctx.id1 = self.sig_primary()
localctx.idents = id1
localctx.idents = localctx.id1.idents
self.state = 36
self._errHandler.sync(self)
_la = self._input.LA(1)
......@@ -246,7 +243,7 @@ class condexpParser ( Parser ):
self.match(condexpParser.AND)
self.state = 31
localctx.id2 = self.sig_primary()
localctx.idents = localctx.idents | id2
localctx.idents |= localctx.id2.idents
self.state = 38
self._errHandler.sync(self)
_la = self._input.LA(1)
......@@ -265,7 +262,6 @@ class condexpParser ( Parser ):
def __init__(self, parser, parent=None, invokingState=-1):
super(condexpParser.Sig_primaryContext, self).__init__(parent, invokingState)
self.parser = parser
self.idents = None
self.id1 = None # Sig_primaryContext
self.id4 = None # Sig_constantContext
self.id2 = None # Token
......@@ -316,13 +312,13 @@ class condexpParser ( Parser ):
self.match(condexpParser.NOT)
self.state = 40
localctx.id1 = self.sig_primary()
localctx.idents = id1
localctx.idents = localctx.id1.idents
pass
elif token in [condexpParser.T, condexpParser.F]:
self.enterOuterAlt(localctx, 2)
self.state = 43
localctx.id4 = self.sig_constant()
localctx.idents = id4
localctx.idents = localctx.id4.idents
pass
elif token in [condexpParser.IDENT]:
self.enterOuterAlt(localctx, 3)
......@@ -338,7 +334,7 @@ class condexpParser ( Parser ):
localctx.id3 = self.sig_bool1()
self.state = 50
self.match(condexpParser.PD)
localctx.idents = id3
localctx.idents = localctx.id3.idents
pass
else:
raise NoViableAltException(self)
......@@ -357,7 +353,6 @@ class condexpParser ( Parser ):
def __init__(self, parser, parent=None, invokingState=-1):
super(condexpParser.Sig_constantContext, self).__init__(parent, invokingState)
self.parser = parser
self.idents = None
def T(self):
return self.getToken(condexpParser.T, 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment