11
11
12
12
@ SuppressWarnings ({"all" , "warnings" , "unchecked" , "unused" , "cast" })
13
13
class PainlessParser extends Parser {
14
- static { RuntimeMetaData .checkVersion ("4.5.1 " , RuntimeMetaData .VERSION ); }
14
+ static { RuntimeMetaData .checkVersion ("4.5.3 " , RuntimeMetaData .VERSION ); }
15
15
16
16
protected static final DFA [] _decisionToDFA ;
17
17
protected static final PredictionContextCache _sharedContextCache =
@@ -579,6 +579,7 @@ public final StatementContext statement() throws RecognitionException {
579
579
try {
580
580
int _alt ;
581
581
setState (185 );
582
+ _errHandler .sync (this );
582
583
switch ( getInterpreter ().adaptivePredict (_input ,11 ,_ctx ) ) {
583
584
case 1 :
584
585
_localctx = new IfContext (_localctx );
@@ -595,6 +596,7 @@ public final StatementContext statement() throws RecognitionException {
595
596
setState (103 );
596
597
trailer ();
597
598
setState (107 );
599
+ _errHandler .sync (this );
598
600
switch ( getInterpreter ().adaptivePredict (_input ,4 ,_ctx ) ) {
599
601
case 1 :
600
602
{
@@ -1127,6 +1129,7 @@ public final InitializerContext initializer() throws RecognitionException {
1127
1129
enterRule (_localctx , 14 , RULE_initializer );
1128
1130
try {
1129
1131
setState (204 );
1132
+ _errHandler .sync (this );
1130
1133
switch ( getInterpreter ().adaptivePredict (_input ,14 ,_ctx ) ) {
1131
1134
case 1 :
1132
1135
enterOuterAlt (_localctx , 1 );
@@ -1653,6 +1656,7 @@ private ExpressionContext expression(int _p) throws RecognitionException {
1653
1656
_prevctx = _localctx ;
1654
1657
{
1655
1658
setState (290 );
1659
+ _errHandler .sync (this );
1656
1660
switch ( getInterpreter ().adaptivePredict (_input ,18 ,_ctx ) ) {
1657
1661
case 1 :
1658
1662
{
@@ -1979,6 +1983,7 @@ public final UnaryContext unary() throws RecognitionException {
1979
1983
int _la ;
1980
1984
try {
1981
1985
setState (308 );
1986
+ _errHandler .sync (this );
1982
1987
switch ( getInterpreter ().adaptivePredict (_input ,20 ,_ctx ) ) {
1983
1988
case 1 :
1984
1989
_localctx = new PreContext (_localctx );
@@ -2126,6 +2131,7 @@ public final ChainContext chain() throws RecognitionException {
2126
2131
try {
2127
2132
int _alt ;
2128
2133
setState (326 );
2134
+ _errHandler .sync (this );
2129
2135
switch ( getInterpreter ().adaptivePredict (_input ,23 ,_ctx ) ) {
2130
2136
case 1 :
2131
2137
_localctx = new DynamicContext (_localctx );
@@ -2342,6 +2348,7 @@ public final PrimaryContext primary() throws RecognitionException {
2342
2348
int _la ;
2343
2349
try {
2344
2350
setState (346 );
2351
+ _errHandler .sync (this );
2345
2352
switch ( getInterpreter ().adaptivePredict (_input ,24 ,_ctx ) ) {
2346
2353
case 1 :
2347
2354
_localctx = new PrecedenceContext (_localctx );
@@ -2493,6 +2500,7 @@ public final PostfixContext postfix() throws RecognitionException {
2493
2500
enterRule (_localctx , 36 , RULE_postfix );
2494
2501
try {
2495
2502
setState (351 );
2503
+ _errHandler .sync (this );
2496
2504
switch ( getInterpreter ().adaptivePredict (_input ,25 ,_ctx ) ) {
2497
2505
case 1 :
2498
2506
enterOuterAlt (_localctx , 1 );
@@ -2551,6 +2559,7 @@ public final PostdotContext postdot() throws RecognitionException {
2551
2559
enterRule (_localctx , 38 , RULE_postdot );
2552
2560
try {
2553
2561
setState (355 );
2562
+ _errHandler .sync (this );
2554
2563
switch ( getInterpreter ().adaptivePredict (_input ,26 ,_ctx ) ) {
2555
2564
case 1 :
2556
2565
enterOuterAlt (_localctx , 1 );
@@ -2803,6 +2812,7 @@ public final ArrayinitializerContext arrayinitializer() throws RecognitionExcept
2803
2812
try {
2804
2813
int _alt ;
2805
2814
setState (412 );
2815
+ _errHandler .sync (this );
2806
2816
switch ( getInterpreter ().adaptivePredict (_input ,34 ,_ctx ) ) {
2807
2817
case 1 :
2808
2818
_localctx = new NewstandardarrayContext (_localctx );
@@ -2837,6 +2847,7 @@ public final ArrayinitializerContext arrayinitializer() throws RecognitionExcept
2837
2847
_alt = getInterpreter ().adaptivePredict (_input ,27 ,_ctx );
2838
2848
} while ( _alt !=2 && _alt !=org .antlr .v4 .runtime .atn .ATN .INVALID_ALT_NUMBER );
2839
2849
setState (385 );
2850
+ _errHandler .sync (this );
2840
2851
switch ( getInterpreter ().adaptivePredict (_input ,29 ,_ctx ) ) {
2841
2852
case 1 :
2842
2853
{
@@ -2974,6 +2985,7 @@ public final ListinitializerContext listinitializer() throws RecognitionExceptio
2974
2985
int _la ;
2975
2986
try {
2976
2987
setState (427 );
2988
+ _errHandler .sync (this );
2977
2989
switch ( getInterpreter ().adaptivePredict (_input ,36 ,_ctx ) ) {
2978
2990
case 1 :
2979
2991
enterOuterAlt (_localctx , 1 );
@@ -3055,6 +3067,7 @@ public final MapinitializerContext mapinitializer() throws RecognitionException
3055
3067
int _la ;
3056
3068
try {
3057
3069
setState (443 );
3070
+ _errHandler .sync (this );
3058
3071
switch ( getInterpreter ().adaptivePredict (_input ,38 ,_ctx ) ) {
3059
3072
case 1 :
3060
3073
enterOuterAlt (_localctx , 1 );
@@ -3252,6 +3265,7 @@ public final ArgumentContext argument() throws RecognitionException {
3252
3265
enterRule (_localctx , 56 , RULE_argument );
3253
3266
try {
3254
3267
setState (465 );
3268
+ _errHandler .sync (this );
3255
3269
switch ( getInterpreter ().adaptivePredict (_input ,41 ,_ctx ) ) {
3256
3270
case 1 :
3257
3271
enterOuterAlt (_localctx , 1 );
@@ -3533,6 +3547,7 @@ public final FuncrefContext funcref() throws RecognitionException {
3533
3547
enterRule (_localctx , 62 , RULE_funcref );
3534
3548
try {
3535
3549
setState (505 );
3550
+ _errHandler .sync (this );
3536
3551
switch ( getInterpreter ().adaptivePredict (_input ,47 ,_ctx ) ) {
3537
3552
case 1 :
3538
3553
_localctx = new ClassfuncrefContext (_localctx );
0 commit comments