mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-30 04:29:15 +01:00
Make class constants fully dereferencable
This commit is contained in:
parent
c1eaa0d5cd
commit
8999a13cb2
@ -892,12 +892,12 @@ fully_dereferencable:
|
||||
variable { $$ = $1; }
|
||||
| '(' expr ')' { $$ = $2; }
|
||||
| dereferencable_scalar { $$ = $1; }
|
||||
| class_constant { $$ = $1; }
|
||||
;
|
||||
|
||||
array_object_dereferencable:
|
||||
fully_dereferencable { $$ = $1; }
|
||||
| constant { $$ = $1; }
|
||||
| class_constant { $$ = $1; }
|
||||
;
|
||||
|
||||
callable_expr:
|
||||
|
@ -18,7 +18,7 @@ use PhpParser\Node\Stmt;
|
||||
class Php7 extends \PhpParser\ParserAbstract
|
||||
{
|
||||
protected $tokenToSymbolMapSize = 394;
|
||||
protected $actionTableSize = 920;
|
||||
protected $actionTableSize = 919;
|
||||
protected $gotoTableSize = 499;
|
||||
|
||||
protected $invalidSymbol = 159;
|
||||
@ -260,73 +260,73 @@ class Php7 extends \PhpParser\ParserAbstract
|
||||
-32766, 1042, 1043, 419, 586, 1077, 129, 754,-32766, 1040,
|
||||
36, 20, 420, 1077, 421, 353, 422, -178, 423,-32766,
|
||||
505, 424, 547, 548, -177, 38, 39, 365, 373, 367,
|
||||
-463, 40, 425, -466, 559, 64, 1024, 370, 301, 285,
|
||||
-463, 40, 425, -466, 559, 64, 1024, 370, 301, 286,
|
||||
133, 882, 687, 232, -463, 1114, 428, 429, 430, 1123,
|
||||
234, -463, 1124, -469, 1077, -263, 431, 432, 820, 1047,
|
||||
1048, 1049, 1050, 1044, 1045, 250, 246,-32766, 580, 682,
|
||||
440, 1051, 1046, 370, 848, 849, 573, -465, 65,-32766,
|
||||
440, 1051, 1046, 370, 848, 849, 573, 42, 65,-32766,
|
||||
264, 688, 269, 274, 125, 684, 272, 880, 1017,-32766,
|
||||
856, 274,-32766,-32766,-32766, -466,-32766, 767,-32766, 358,
|
||||
-32766, -462, 229,-32766, 29, 230, -234,-32766,-32766,-32766,
|
||||
-32766,-32766,-32766,-32766,-32766, 1077, -466,-32766, 255,-32766,
|
||||
-32766, 332,-32766,-32766,-32766, 98, 99, 100,-32766, 247,
|
||||
42,-32766, 274,-32766,-32766,-32766,-32766,-32766,-32766, -465,
|
||||
-461, 101, 126,-32766, 684,-32766,-32766,-32766,-32766, 1017,
|
||||
463,-32766,-32766,-32766, 232,-32766, 124,-32766,-32766,-32766,
|
||||
-465, 857,-32766, -462, -178,-32766,-32766,-32766,-32766, 255,
|
||||
1077,-32766, 274,-32766,-32766,-32766,-32766,-32766,-32766, 253,
|
||||
-464, 101, 126,-32766, 684,-32766,-32766,-32766,-32766, 1017,
|
||||
285,-32766,-32766,-32766, 232,-32766, 124,-32766,-32766,-32766,
|
||||
117, 857,-32766, -462, -178,-32766,-32766,-32766,-32766, 255,
|
||||
684, -177,-32766,-32766, 498, 581,-32766, -462, 255,-32766,
|
||||
332, 584, 284, 1077, -462, 588, -468,-32766, 767, -298,
|
||||
-32766, -298, 253, 274, 136, 1099, 684, 267, 132, 327,
|
||||
-32766, 1098, -461,-32766,-32766,-32766, 896,-32766, 1056,-32766,
|
||||
32,-32766,-32766, 117,-32766, 68, -461,-32766,-32766,-32766,
|
||||
-32766, 848, 849, -461,-32766,-32766, 382, 302,-32766, 575,
|
||||
305,-32766, 332, -299, 115, -299,-32766, 440, -276,-32766,
|
||||
370, 309, 684, 486, 357,-32766,-32766, 231, 360,-32766,
|
||||
-32766,-32766, -498,-32766, -498,-32766, 361,-32766, 43, 362,
|
||||
-32766, 274, 363, 24,-32766,-32766,-32766, 124, 223,-32766,
|
||||
-32766,-32766, 848, 849,-32766, 1077, 116,-32766, 332, 1040,
|
||||
233, 848, 849,-32766, 121,-32766,-32766,-32766,-32766, 684,
|
||||
409, 118, 8,-32766, -239, 805,-32766,-32766,-32766,-32766,
|
||||
-32766, 767,-32766, -92,-32766, 767, 705,-32766, 706, 1017,
|
||||
122,-32766,-32766,-32766, 128,-32766,-32766,-32766,-32766, 135,
|
||||
254,-32766, 684, 137,-32766, 332,-32766, 432, 123,-32766,
|
||||
-32766,-32766,-32766,-32766, 304,-32766, 138,-32766, 779,-32766,
|
||||
-32766, 119, 378, 379,-32766,-32766,-32766, -83, 67, 248,
|
||||
332, 584, 382, 463, -462, 575, -468,-32766, 767, -298,
|
||||
-32766, -298, 1099, 274, 132, 327, 684, 267, 1098, 588,
|
||||
-32766, 302, -464,-32766,-32766,-32766, 896,-32766, 274,-32766,
|
||||
305,-32766,-32766, 309,-32766, 68, -464,-32766,-32766,-32766,
|
||||
-32766, 848, 849, -464,-32766,-32766, 357, -299,-32766, -299,
|
||||
360,-32766, 332, 409, 136, 8,-32766, 440, -276,-32766,
|
||||
370, 1056, 684, 486, 32,-32766,-32766, 231, 361,-32766,
|
||||
-32766,-32766, -498,-32766, -498,-32766, 362,-32766, -461, 705,
|
||||
-32766, 706, 363, 24,-32766,-32766,-32766, 124, 223,-32766,
|
||||
-32766,-32766, 848, 849,-32766, 1077, 115,-32766, 332, 1040,
|
||||
233, 848, 849,-32766, 116,-32766,-32766,-32766,-32766, 684,
|
||||
121, 118, 122,-32766, -239, 805,-32766,-32766,-32766,-32766,
|
||||
-32766, 767,-32766, -92,-32766, 43, 128,-32766, 135, 1017,
|
||||
137,-32766,-32766,-32766, 138,-32766,-32766,-32766,-32766, 767,
|
||||
-461,-32766, 684, 256,-32766, 332,-32766, 432, 123,-32766,
|
||||
-32766,-32766,-32766,-32766, -461,-32766, -83,-32766, 248,-32766,
|
||||
-32766, -461, 378, 379,-32766,-32766,-32766, 587, 67, 590,
|
||||
-32766,-32766, 269, 274,-32766, 525, 526,-32766, 332, 848,
|
||||
849, 587,-32766, 881, 596,-32766, 590, 764, 256, 131,
|
||||
-32766, 247, 101, 687, 257, 289, 684, 130, 555, 684,
|
||||
-32766, 1125, 533,-32766,-32766,-32766, 910,-32766, 682,-32766,
|
||||
685,-32766, -81, 539,-32766,-32766, -4,-32766,-32766,-32766,
|
||||
-32766, 467, 472, 567,-32766,-32766, 10, 789,-32766, 790,
|
||||
-32766,-32766, 332, 265, 550, 386, 684, 538, 523,-32766,
|
||||
-32766, 551, 1055,-32766,-32766,-32766, 781,-32766, 1057,-32766,
|
||||
-427,-32766, -419, 5,-32766, 12, 303, 268,-32766,-32766,
|
||||
-32766, 1017, 591, 0,-32766,-32766, 0, 235,-32766,-32766,
|
||||
0,-32766, 332, 0, 271, 0, 0, 266, 0,-32766,
|
||||
849, 764,-32766, 881, 596,-32766, 131, 254, 257, 290,
|
||||
-32766, 247, 101, 779, 684, 130, 684, 555, 682, 685,
|
||||
-32766, 304, 533,-32766,-32766,-32766,-32766,-32766, 119,-32766,
|
||||
687,-32766, 910, 523,-32766,-32766, -4, 467,-32766,-32766,
|
||||
-32766, 1125, 472, 567,-32766,-32766, -81, 265,-32766, 268,
|
||||
-32766,-32766, 332, 550, 271, 539, 684, 538, 1017,-32766,
|
||||
-32766, 10, 386,-32766,-32766,-32766, 551,-32766, 1055,-32766,
|
||||
781,-32766, -427, 1057,-32766, 34, 591, -237,-32766,-32766,
|
||||
-32766, 574, 0, 0,-32766,-32766, 0, 235,-32766,-32766,
|
||||
789,-32766, 332, 790, 0, 0, 0, 335, 0,-32766,
|
||||
31, 102, 103, 104, 105, 106, 107, 108, 109, 110,
|
||||
111, 112, 113, 114, 0, -137, -137, -137, 335, 24,
|
||||
340, 341, -492, 344, 0,-32766,-32766,-32766, 0,-32766,
|
||||
-137, 1077, -137, 382, -137, 1040, -137, 469, 354, 366,
|
||||
355, 349, 939, 941, 34, 366,-32766, 263,-32766,-32766,
|
||||
35, 426, 427, -461, 594, 595, 745, 426, 427, 822,
|
||||
111, 112, 113, 114, 266, -137, -137, -137, 340, 24,
|
||||
341, 344, 0, -419, 5,-32766,-32766,-32766, 12,-32766,
|
||||
-137, 1077, -137, 303, -137, 1040, -137, 35, 382, 366,
|
||||
469, 349, 939, 941, 354, 366,-32766, 263,-32766,-32766,
|
||||
355, 426, 427, -461, 594, 595, 745, 426, 427, 822,
|
||||
697, 788, 368, 369, 806, 1017, 740, 788, 368, 369,
|
||||
813, -218, -218, -218, 876, 877, 803, 366, 814, 743,
|
||||
801, 287, 431, 432, 885, 888, 767, 889, -4, 426,
|
||||
801, 288, 431, 432, 885, 888, 767, 889, -4, 426,
|
||||
427, 886, 767, 887, -137,-32766,-32766,-32766, 740, 788,
|
||||
368, 369, 767, 893, 67, 574, 576, 578, 269, 274,
|
||||
582, 583, 585, 589, 282, -461,-32766, 283,-32766,-32766,
|
||||
-32766,-32766,-32766,-32766, 767, 741, -218, 347, 348, -461,
|
||||
-32766,-32766,-32766, 577, -490, 1120, -461, -469, 1122, 700,
|
||||
787, 699, 709, 786, 710, 707, 1121, 785, 1005, 708,
|
||||
774,-32766, 782,-32766,-32766,-32766,-32766, 772, 811, 812,
|
||||
1119, 1078, 1071, 1085, 1090, 1093, 0, -468, -467, 23,
|
||||
368, 369, 767, 893, 67, 576, 578, 582, 269, 274,
|
||||
583, 585, 589, 283, 284, -461,-32766, 347,-32766,-32766,
|
||||
-32766,-32766,-32766,-32766, 767, 741, -218, 348, 577, -461,
|
||||
-32766,-32766,-32766, 1120, 1122, 700, -461, -492, 787, 699,
|
||||
709, 786, 710, 707, 1121, 785, 1005, 708, 774, 782,
|
||||
772,-32766, 811,-32766,-32766,-32766,-32766, 812, 1119, 1078,
|
||||
1071, 1085, 1090, 1093, 0, -490, -469, -468, -467, 23,
|
||||
0, 25, 26, 33, 37, 41, 66, 69, 70, 71,
|
||||
72, 73, 127, 134, 139, 226, 240, 241, 242, 243,
|
||||
244, 245, 286, 350, 352, 0, -237, -235, -234, 14,
|
||||
15, 16, 17, 19, 324, 400, 402, 405, 407, 408,
|
||||
415, 564, 1028, 978, 1038, 858, 1009, -92, 13, 18,
|
||||
22, 259, 323, 495, 519, 566, 982, 979, 1096, 0,
|
||||
-431, 995, 0, 1037, 1070, 1084, 1117, 529, 0, 1041
|
||||
244, 245, 287, 350, 352, 0, -235, -234, 14, 15,
|
||||
16, 17, 19, 324, 400, 402, 405, 407, 408, 415,
|
||||
564, 1028, 978, 1038, 858, 1009, -92, 13, 18, 22,
|
||||
259, 323, 495, 519, 566, 982, 979, 1096, 0, -431,
|
||||
995, 0, 1037, 1070, 1084, 1117, 529, 0, 1041
|
||||
);
|
||||
|
||||
protected $actionCheck = array(
|
||||
@ -365,45 +365,45 @@ class Php7 extends \PhpParser\ParserAbstract
|
||||
93, 68, 36, 96, 142, 143, 154, 100, 101, 102,
|
||||
8, 9, 10, 106, 107, 80, 151, 110, 29, 1,
|
||||
113, 114, 8, 9, 10, 51, 52, 53, 121, 55,
|
||||
68, 29, 158, 31, 32, 33, 34, 35, 72, 130,
|
||||
80, 29, 158, 31, 32, 33, 34, 35, 72, 130,
|
||||
68, 67, 151, 29, 78, 31, 32, 33, 82, 114,
|
||||
83, 85, 86, 87, 36, 89, 149, 91, 151, 93,
|
||||
7, 85, 86, 87, 36, 89, 149, 91, 151, 93,
|
||||
151, 154, 96, 130, 154, 1, 100, 101, 102, 29,
|
||||
78, 154, 106, 107, 1, 30, 110, 144, 29, 113,
|
||||
114, 30, 7, 80, 151, 30, 153, 121, 150, 103,
|
||||
72, 105, 130, 158, 13, 1, 78, 111, 98, 99,
|
||||
82, 7, 130, 85, 86, 87, 120, 89, 141, 91,
|
||||
13, 93, 1, 151, 96, 149, 144, 151, 100, 101,
|
||||
102, 132, 133, 151, 106, 107, 148, 7, 110, 151,
|
||||
7, 113, 114, 103, 15, 105, 72, 145, 152, 121,
|
||||
148, 7, 78, 79, 7, 1, 82, 36, 7, 85,
|
||||
86, 87, 154, 89, 156, 91, 7, 93, 68, 7,
|
||||
96, 158, 7, 68, 100, 101, 102, 149, 95, 151,
|
||||
114, 30, 148, 83, 151, 151, 153, 121, 150, 103,
|
||||
72, 105, 1, 158, 98, 99, 78, 111, 7, 30,
|
||||
82, 7, 130, 85, 86, 87, 120, 89, 158, 91,
|
||||
7, 93, 1, 7, 96, 149, 144, 151, 100, 101,
|
||||
102, 132, 133, 151, 106, 107, 7, 103, 110, 105,
|
||||
7, 113, 114, 103, 13, 105, 72, 145, 152, 121,
|
||||
148, 141, 78, 79, 13, 1, 82, 36, 7, 85,
|
||||
86, 87, 154, 89, 156, 91, 7, 93, 68, 103,
|
||||
96, 105, 7, 68, 100, 101, 102, 149, 95, 151,
|
||||
106, 107, 132, 133, 110, 80, 15, 113, 114, 84,
|
||||
36, 132, 133, 72, 15, 121, 8, 9, 10, 78,
|
||||
103, 13, 105, 82, 154, 150, 85, 86, 87, 1,
|
||||
89, 150, 91, 154, 93, 150, 103, 96, 105, 114,
|
||||
15, 100, 101, 102, 15, 151, 72, 106, 107, 15,
|
||||
130, 110, 78, 15, 113, 114, 82, 132, 30, 85,
|
||||
86, 87, 121, 89, 144, 91, 15, 93, 36, 1,
|
||||
15, 13, 15, 82, 154, 150, 85, 86, 87, 1,
|
||||
89, 150, 91, 154, 93, 68, 15, 96, 15, 114,
|
||||
15, 100, 101, 102, 15, 151, 72, 106, 107, 150,
|
||||
130, 110, 78, 34, 113, 114, 82, 132, 30, 85,
|
||||
86, 87, 121, 89, 144, 91, 30, 93, 30, 1,
|
||||
96, 151, 103, 104, 100, 101, 102, 30, 153, 30,
|
||||
106, 107, 157, 158, 110, 108, 109, 113, 114, 132,
|
||||
133, 30, 151, 150, 151, 121, 30, 30, 34, 30,
|
||||
72, 55, 67, 80, 34, 34, 78, 68, 75, 78,
|
||||
82, 81, 88, 85, 86, 87, 80, 89, 78, 91,
|
||||
78, 93, 95, 97, 96, 151, 0, 83, 100, 101,
|
||||
102, 83, 87, 90, 106, 107, 95, 125, 110, 125,
|
||||
72, 113, 114, 128, 92, 95, 78, 94, 111, 121,
|
||||
82, 97, 141, 85, 86, 87, 149, 89, 141, 91,
|
||||
144, 93, 144, 144, 96, 144, 144, 112, 100, 101,
|
||||
102, 114, 152, -1, 106, 107, -1, 36, 110, 151,
|
||||
-1, 113, 114, -1, 128, -1, -1, 129, -1, 121,
|
||||
133, 30, 151, 150, 151, 121, 30, 130, 34, 34,
|
||||
72, 55, 67, 36, 78, 68, 78, 75, 78, 78,
|
||||
82, 144, 88, 85, 86, 87, 83, 89, 151, 91,
|
||||
80, 93, 80, 111, 96, 151, 0, 83, 100, 101,
|
||||
102, 81, 87, 90, 106, 107, 95, 128, 110, 112,
|
||||
72, 113, 114, 92, 128, 97, 78, 94, 114, 121,
|
||||
82, 95, 95, 85, 86, 87, 97, 89, 141, 91,
|
||||
149, 93, 144, 141, 96, 150, 152, 154, 100, 101,
|
||||
102, 151, -1, -1, 106, 107, -1, 36, 110, 151,
|
||||
125, 113, 114, 125, -1, -1, -1, 148, -1, 121,
|
||||
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
|
||||
25, 26, 27, 28, -1, 73, 74, 75, 148, 68,
|
||||
148, 148, 153, 148, -1, 8, 9, 10, -1, 151,
|
||||
88, 80, 90, 148, 92, 84, 94, 148, 148, 103,
|
||||
148, 105, 57, 58, 150, 103, 29, 111, 31, 32,
|
||||
150, 115, 116, 68, 150, 150, 150, 115, 116, 150,
|
||||
25, 26, 27, 28, 129, 73, 74, 75, 148, 68,
|
||||
148, 148, -1, 144, 144, 8, 9, 10, 144, 151,
|
||||
88, 80, 90, 144, 92, 84, 94, 150, 148, 103,
|
||||
148, 105, 57, 58, 148, 103, 29, 111, 31, 32,
|
||||
148, 115, 116, 68, 150, 150, 150, 115, 116, 150,
|
||||
124, 125, 126, 127, 150, 114, 124, 125, 126, 127,
|
||||
150, 97, 98, 99, 150, 150, 150, 103, 150, 150,
|
||||
150, 145, 131, 132, 150, 150, 150, 150, 152, 115,
|
||||
@ -411,22 +411,22 @@ class Php7 extends \PhpParser\ParserAbstract
|
||||
126, 127, 150, 150, 153, 151, 151, 151, 157, 158,
|
||||
151, 151, 151, 151, 151, 130, 29, 151, 31, 32,
|
||||
33, 34, 35, 36, 150, 152, 152, 151, 151, 144,
|
||||
8, 9, 10, 151, 153, 152, 151, 153, 152, 152,
|
||||
8, 9, 10, 152, 152, 152, 151, 153, 152, 152,
|
||||
152, 152, 152, 152, 152, 152, 152, 152, 152, 152,
|
||||
152, 29, 152, 31, 32, 33, 34, 152, 152, 152,
|
||||
152, 152, 152, 152, 152, 152, -1, 153, 153, 153,
|
||||
152, 152, 152, 152, -1, 153, 153, 153, 153, 153,
|
||||
-1, 153, 153, 153, 153, 153, 153, 153, 153, 153,
|
||||
153, 153, 153, 153, 153, 153, 153, 153, 153, 153,
|
||||
153, 153, 153, 153, 153, -1, 154, 154, 154, 154,
|
||||
154, 154, 154, 154, 154, 154, 154, 154, 154, 154,
|
||||
154, 154, 154, 154, 154, 154, 154, 154, 154, 154,
|
||||
154, 154, 154, 154, 154, 154, 154, 154, 154, -1,
|
||||
155, 155, -1, 156, 156, 156, 156, 156, -1, 157
|
||||
154, 154, 154, 154, 154, 154, 154, 154, -1, 155,
|
||||
155, -1, 156, 156, 156, 156, 156, -1, 157
|
||||
);
|
||||
|
||||
protected $actionBase = array(
|
||||
0, 622, 616, -70, 654, 153, 109, 623, -2, -2,
|
||||
-55, -2, -2, 258, 371, 371, 375, 371, 167, 365,
|
||||
-55, -2, -2, 258, 371, 371, 389, 371, 167, 365,
|
||||
632, 632, 632, 227, 286, 286, 286, 286, 338, 384,
|
||||
518, 431, 464, 558, 558, 558, 558, 558, 558, 558,
|
||||
558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
|
||||
@ -439,50 +439,50 @@ class Php7 extends \PhpParser\ParserAbstract
|
||||
558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
|
||||
558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
|
||||
558, 558, 558, 558, 558, 558, 558, 558, 558, 558,
|
||||
151, 151, 128, 393, 417, 747, 752, 749, 745, 744,
|
||||
748, 753, 688, 689, 559, 690, 691, 692, 693, 750,
|
||||
761, 746, 751, 131, 131, 131, 131, 131, 131, 131,
|
||||
151, 151, 128, 393, 451, 746, 751, 748, 744, 743,
|
||||
747, 752, 686, 687, 556, 688, 689, 690, 691, 749,
|
||||
760, 745, 750, 131, 131, 131, 131, 131, 131, 131,
|
||||
131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
|
||||
181, 498, 22, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 210, 210, 210, 697, 334,
|
||||
802, 665, 322, 767, 3, 3, 3, 3, 3, -28,
|
||||
-28, -28, -28, 631, 631, 306, 415, 415, 415, 415,
|
||||
415, 415, 415, 415, 415, 415, 194, 350, 29, 29,
|
||||
415, 415, 415, 415, 415, 415, 194, 344, 29, 29,
|
||||
360, 360, 360, 360, 360, 360, 369, 255, 309, 162,
|
||||
287, 507, 762, 211, 211, 447, 447, 447, 120, 253,
|
||||
294, 294, 294, 87, 538, 547, 547, 547, 547, 182,
|
||||
182, 547, 547, 191, 4, 318, 292, 292, 410, 292,
|
||||
292, 292, 423, 423, 423, 459, 312, 298, 534, 312,
|
||||
633, 662, 754, 516, 686, 544, 687, 229, 185, 282,
|
||||
570, 323, 572, 323, 323, 323, 467, -8, 169, 743,
|
||||
151, 508, 151, 151, 151, 151, 713, 151, 151, 151,
|
||||
320, 512, 761, 211, 211, 447, 447, 447, 120, 253,
|
||||
294, 294, 294, 87, 534, 524, 524, 524, 524, 182,
|
||||
182, 524, 524, 191, 4, 318, 292, 410, 410, 457,
|
||||
410, 410, 410, 376, 376, 376, 459, 312, 254, 523,
|
||||
312, 633, 657, 753, 538, 680, 549, 685, 185, 229,
|
||||
576, 270, 582, 270, 270, 270, 467, -8, 169, 742,
|
||||
151, 559, 151, 151, 151, 151, 713, 151, 151, 151,
|
||||
151, 151, 151, 45, 151, 80, 433, 128, 73, 73,
|
||||
561, 73, 459, 536, 70, 643, 237, 536, 536, 536,
|
||||
646, 656, 121, 172, 657, 230, 407, 521, 521, 530,
|
||||
530, 526, 522, 521, 521, 521, 521, 521, 696, 696,
|
||||
530, 513, 530, 526, 702, 530, 522, 522, 530, 530,
|
||||
521, 530, 696, 522, 154, 461, 440, 443, 522, 522,
|
||||
469, 505, 521, 546, 546, 472, 530, 263, 219, 530,
|
||||
146, 548, 696, 696, 548, 279, 522, 299, 584, 585,
|
||||
527, 497, 539, 395, 539, 539, 457, 527, 539, 522,
|
||||
539, 475, 135, 513, 454, 539, 58, 703, 704, 537,
|
||||
705, 700, 706, 720, 707, 634, 502, 504, 712, 701,
|
||||
708, 699, 698, 557, 569, 439, 481, 509, 506, 695,
|
||||
565, 525, 525, 525, 664, 525, 525, 525, 525, 525,
|
||||
525, 525, 525, 439, 757, 512, 535, 714, 489, 550,
|
||||
540, 515, 635, 501, 569, 569, 653, 755, 756, 532,
|
||||
713, 738, 709, 574, 519, 729, 715, 510, 552, 553,
|
||||
716, 717, 730, 739, 636, 740, 663, 529, 666, 569,
|
||||
667, 525, 661, 549, 758, 694, 439, 759, 725, 731,
|
||||
554, 560, 732, 555, 668, 520, 760, 669, 741, 639,
|
||||
640, 580, 726, 722, 733, 670, 734, 735, 671, 586,
|
||||
514, 723, 543, 721, 247, 719, 641, 672, 673, 674,
|
||||
675, 676, 710, 589, 727, 542, 728, 724, 594, 600,
|
||||
524, 677, 401, 604, 528, 541, 605, 711, 551, 523,
|
||||
606, 608, 742, 678, 718, 609, 680, 737, 517, 565,
|
||||
511, 545, 531, 533, 642, 736, 556, 610, 614, 615,
|
||||
617, 685, 621, 0, 0, 0, 0, 0, 0, 0,
|
||||
555, 73, 459, 536, 70, 642, 237, 536, 536, 536,
|
||||
643, 646, 121, 172, 656, 230, 350, 516, 516, 520,
|
||||
520, 532, 557, 516, 516, 516, 516, 516, 696, 696,
|
||||
520, 530, 520, 532, 702, 520, 557, 557, 520, 520,
|
||||
516, 520, 696, 557, 154, 443, 414, 423, 557, 557,
|
||||
461, 499, 516, 506, 506, 469, 520, 263, 219, 520,
|
||||
146, 565, 696, 696, 565, 279, 557, 299, 584, 585,
|
||||
502, 501, 528, 363, 528, 528, 439, 502, 528, 557,
|
||||
528, 475, 135, 530, 426, 528, 58, 703, 704, 526,
|
||||
705, 700, 706, 720, 707, 510, 545, 548, 712, 701,
|
||||
708, 699, 698, 551, 572, 481, 489, 560, 508, 695,
|
||||
570, 525, 525, 525, 693, 525, 525, 525, 525, 525,
|
||||
525, 525, 525, 481, 756, 569, 535, 714, 495, 529,
|
||||
547, 497, 634, 507, 572, 572, 653, 754, 755, 521,
|
||||
713, 737, 709, 505, 511, 728, 715, 504, 550, 552,
|
||||
716, 717, 729, 738, 635, 739, 661, 527, 662, 572,
|
||||
663, 525, 692, 664, 757, 694, 481, 758, 724, 730,
|
||||
509, 554, 731, 553, 666, 540, 759, 667, 740, 636,
|
||||
639, 567, 725, 503, 732, 668, 733, 734, 669, 586,
|
||||
514, 722, 543, 721, 247, 719, 640, 670, 671, 672,
|
||||
673, 674, 710, 589, 726, 541, 727, 723, 594, 600,
|
||||
513, 675, 441, 604, 515, 519, 605, 711, 537, 522,
|
||||
606, 608, 741, 676, 718, 609, 677, 736, 531, 570,
|
||||
564, 517, 546, 533, 641, 735, 539, 610, 614, 615,
|
||||
617, 678, 621, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
145, 145, 145, 145, -2, -2, -2, 0, 0, -2,
|
||||
@ -510,16 +510,16 @@ class Php7 extends \PhpParser\ParserAbstract
|
||||
294, 294, 312, 312, -67, 312, 312, 312, 312, 312,
|
||||
312, 312, 312, 312, 312, 312, -67, 294, 294, 312,
|
||||
312, 312, 312, 312, 312, 312, 312, 312, 312, 182,
|
||||
182, 182, 323, 323, 312, 312, 312, 0, 0, 0,
|
||||
0, 0, 521, 182, 312, 312, 312, 312, 0, 0,
|
||||
312, 312, 513, 323, 414, 0, 0, 0, 0, 0,
|
||||
0, 521, 521, 521, 513, 0, 521, 182, 0, 73,
|
||||
151, 414, 320, 320, 320, 320, 0, 0, 0, 521,
|
||||
0, 521, 0, 0, 0, 0, 0, 0, 522, 0,
|
||||
696, 0, 0, 0, 0, 530, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 513, 0, 0, 0, 0, 513,
|
||||
0, 0, 525, 0, 532, 0, 525, 525, 525, 532,
|
||||
532, 0, 0, 532
|
||||
182, 182, 270, 270, 312, 312, 312, 0, 0, 0,
|
||||
0, 0, 516, 182, 312, 312, 312, 312, 0, 0,
|
||||
312, 312, 530, 270, 411, 0, 0, 0, 0, 0,
|
||||
0, 0, 516, 516, 516, 530, 0, 516, 182, 0,
|
||||
73, 151, 411, 316, 316, 316, 316, 0, 0, 516,
|
||||
0, 516, 0, 0, 0, 0, 0, 0, 557, 0,
|
||||
696, 0, 0, 0, 0, 520, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 530, 0, 0, 0, 0, 530,
|
||||
0, 0, 525, 0, 521, 0, 525, 525, 525, 521,
|
||||
521, 0, 0, 521
|
||||
);
|
||||
|
||||
protected $actionDefault = array(
|
||||
@ -550,9 +550,9 @@ class Php7 extends \PhpParser\ParserAbstract
|
||||
253, 253, 253, 253, 253, 253, 253,32767,32767, 253,
|
||||
32767,32767,32767,32767,32767,32767,32767,32767, 453, 375,
|
||||
353, 354, 352,32767, 430,32767,32767,32767,32767,32767,
|
||||
432,32767, 92,32767,32767,32767, 341, 343, 424, 504,
|
||||
324, 507,32767,32767, 94, 418,32767,32767,32767,32767,
|
||||
32767,32767,32767,32767,32767,32767,32767, 454, 455,32767,
|
||||
432,32767, 92,32767,32767,32767, 455, 341, 343, 424,
|
||||
504, 324, 507,32767,32767, 94, 418,32767,32767,32767,
|
||||
32767,32767,32767,32767,32767,32767,32767,32767, 454,32767,
|
||||
32767,32767, 92,32767,32767, 92, 174, 230, 232, 179,
|
||||
32767, 435,32767,32767,32767,32767,32767,32767,32767,32767,
|
||||
32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
|
||||
@ -566,7 +566,7 @@ class Php7 extends \PhpParser\ParserAbstract
|
||||
409, 181, 255, 93, 255, 255, 93, 409, 255, 179,
|
||||
255, 91, 91,32767, 91, 255,32767,32767,32767, 85,
|
||||
32767,32767,32767,32767,32767,32767,32767,32767,32767,32767,
|
||||
32767,32767,32767,32767, 420,32767, 440,32767, 464, 475,
|
||||
32767,32767,32767,32767, 420,32767, 440,32767, 465, 475,
|
||||
32767, 361, 362, 364, 463, 386, 387, 388, 389, 390,
|
||||
391, 392, 394, 505,32767, 423,32767,32767,32767, 87,
|
||||
121, 272,32767, 515, 87, 421,32767, 515,32767,32767,
|
||||
@ -598,41 +598,41 @@ class Php7 extends \PhpParser\ParserAbstract
|
||||
198, 199, 200, 201, 155, 202, 156, 172, 173, 174,
|
||||
206, 175, 157, 158, 159, 176, 172, 160, 207, 142,
|
||||
203, 161, 177, 204, 178, 179, 162, 560, 459, 569,
|
||||
762, 343, 537, 695, 336, 276, 277, 279, 488, 280,
|
||||
342, 281, 345, 521, 757, 294, 758, 464, 464, 464,
|
||||
513, 513, 464, 1039, 1039, 1039, 1039, 1039, 1039, 1039,
|
||||
1039, 1039, 1039, 493, 490, 479, 507, 464, 1064, 1064,
|
||||
722, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064,
|
||||
1064, 1065, 1065, 696, 1065, 1065, 1065, 1065, 1065, 1065,
|
||||
1065, 1065, 1065, 1065, 444, 444, 731, 444, 444, 444,
|
||||
444, 444, 444, 444, 444, 444, 444, 722, 683, 722,
|
||||
518, 804, 464, 464, 530, 531, 899, 292, 478, 503,
|
||||
762, 343, 537, 695, 336, 277, 278, 280, 488, 281,
|
||||
342, 282, 345, 521, 757, 295, 758, 696, 464, 464,
|
||||
464, 513, 513, 464, 1039, 1039, 1039, 1039, 1039, 1039,
|
||||
1039, 1039, 1039, 1039, 493, 479, 731, 464, 1065, 1065,
|
||||
722, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065,
|
||||
1065, 1063, 1063, 683, 1063, 1063, 1063, 1063, 1063, 1063,
|
||||
1063, 1063, 1063, 1063, 444, 444, 804, 444, 444, 444,
|
||||
444, 444, 444, 444, 444, 444, 444, 722, 485, 722,
|
||||
518, 293, 464, 464, 530, 531, 899, 1100, 478, 503,
|
||||
464, 464, 464, 328, 329, 270, 477, 542, 900, 331,
|
||||
252, 593, 520, 522, 290, 465, 535, 553, 556, 832,
|
||||
252, 593, 520, 522, 291, 465, 535, 553, 556, 832,
|
||||
563, 571, 828, 453, 453, 453, 453, 489, 726, 714,
|
||||
864, 496, 485, 868, 713, 713, 1111, 1111, 807, 1100,
|
||||
723, 723, 723, 725, 712, 492, 892, 572, 837, 860,
|
||||
797, 554, 890, 511, 534, 1111, 312, 694, 1014, 388,
|
||||
698, 845, 850, 851, 907, 730, 1126, 1010, 821, 802,
|
||||
802, 800, 802, 592, 455, 456, 830, 825, 461, 703,
|
||||
536, 753, 748, 749, 763, 455, 704, 750, 701, 751,
|
||||
752, 702, 840, 756, 973, 316, 457, 314, 318, 471,
|
||||
864, 496, 860, 868, 713, 713, 1111, 1111, 807, 312,
|
||||
723, 723, 723, 725, 712, 492, 892, 572, 837, 388,
|
||||
797, 554, 890, 536, 490, 1111, 507, 694, 1014, 1003,
|
||||
784, 698, 1004, 840, 907, 730, 973, 1010, 821, 802,
|
||||
802, 800, 802, 592, 455, 456, 830, 825, 855, 703,
|
||||
351, 753, 748, 749, 763, 455, 704, 750, 701, 751,
|
||||
752, 702, 527, 756, 718, 316, 457, 314, 318, 471,
|
||||
494, 497, 470, 798, 798, 798, 798, 480, 481, 792,
|
||||
799, 502, 514, 516, 517, 565, 1087, 1088, 540, 1015,
|
||||
295, 296, 855, 557, 351, 401, 1003, 784, 300, 1004,
|
||||
796, 326, 568, 3, 4, 1086, 527, 1018, 11, 1016,
|
||||
799, 511, 534, 1126, 502, 514, 516, 517, 565, 1015,
|
||||
296, 297, 845, 850, 851, 401, 461, 796, 326, 568,
|
||||
1087, 1088, 3, 4, 1086, 300, 292, 1018, 11, 1016,
|
||||
1073, 847, 847, 847, 847, 847, 847, 847, 1018, 847,
|
||||
847, 718, 1092, 1092, 461, 291, 847, 847, 847, 1110,
|
||||
1110, 914, 322, 508, 865, 715, 1018, 1018, 1018, 1018,
|
||||
597, 541, 1018, 1018, 1083, 1006, 717, 1011, 1110, 711,
|
||||
727, 809, 869, 394, 410, 1083, 510, 770, 0, 909,
|
||||
771, 1094, 1094, 0, 0, 0, 1113, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 1013, 0, 0, 0,
|
||||
0, 0, 1079, 0, 0, 476, 0, 0, 0, 0,
|
||||
847, 322, 1092, 1092, 715, 865, 847, 847, 847, 1110,
|
||||
1110, 914, 597, 508, 541, 540, 1018, 1018, 1018, 1018,
|
||||
557, 1006, 1018, 1018, 1011, 1083, 717, 809, 1110, 711,
|
||||
727, 909, 869, 394, 410, 510, 1083, 0, 770, 0,
|
||||
0, 771, 1094, 1094, 0, 0, 0, 1113, 0, 0,
|
||||
0, 461, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 1079, 0, 476, 0, 0, 0, 0,
|
||||
0, 0, 835, 835, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 867,
|
||||
0, 1081, 1081, 867, 0, 0, 0, 0, 458, 474,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 458,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
867, 0, 1081, 1081, 867, 0, 0, 0, 458, 474,
|
||||
0, 0, 0, 1013, 0, 0, 0, 0, 0, 458,
|
||||
0, 474, 0, 0, 315, 0, 0, 462, 381, 0,
|
||||
383, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 721, 0, 0, 1118
|
||||
@ -652,61 +652,61 @@ class Php7 extends \PhpParser\ParserAbstract
|
||||
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
|
||||
33, 33, 33, 33, 33, 33, 33, 63, 10, 8,
|
||||
13, 56, 56, 17, 56, 56, 56, 56, 56, 56,
|
||||
56, 56, 56, 56, 55, 80, 55, 10, 10, 10,
|
||||
86, 86, 10, 86, 86, 86, 86, 86, 86, 86,
|
||||
86, 86, 86, 98, 2, 10, 2, 10, 137, 137,
|
||||
56, 56, 56, 56, 55, 80, 55, 18, 10, 10,
|
||||
10, 86, 86, 10, 86, 86, 86, 86, 86, 86,
|
||||
86, 86, 86, 86, 98, 10, 36, 10, 137, 137,
|
||||
26, 137, 137, 137, 137, 137, 137, 137, 137, 137,
|
||||
137, 138, 138, 18, 138, 138, 138, 138, 138, 138,
|
||||
138, 138, 138, 138, 140, 140, 36, 140, 140, 140,
|
||||
140, 140, 140, 140, 140, 140, 140, 26, 5, 26,
|
||||
73, 40, 10, 10, 73, 73, 112, 146, 10, 10,
|
||||
137, 138, 138, 5, 138, 138, 138, 138, 138, 138,
|
||||
138, 138, 138, 138, 140, 140, 40, 140, 140, 140,
|
||||
140, 140, 140, 140, 140, 140, 140, 26, 139, 26,
|
||||
73, 146, 10, 10, 73, 73, 112, 148, 10, 10,
|
||||
10, 10, 10, 69, 69, 136, 39, 69, 112, 69,
|
||||
136, 39, 39, 39, 69, 10, 39, 39, 39, 39,
|
||||
39, 39, 39, 85, 85, 85, 85, 10, 14, 14,
|
||||
14, 85, 139, 14, 26, 26, 150, 150, 14, 148,
|
||||
26, 26, 26, 26, 26, 7, 7, 7, 14, 95,
|
||||
14, 7, 7, 46, 46, 150, 52, 16, 93, 117,
|
||||
13, 91, 91, 91, 14, 14, 12, 14, 16, 16,
|
||||
16, 16, 16, 16, 75, 16, 16, 16, 12, 13,
|
||||
54, 13, 13, 13, 13, 75, 13, 13, 13, 13,
|
||||
13, 13, 88, 13, 120, 65, 65, 49, 49, 49,
|
||||
14, 85, 95, 14, 26, 26, 150, 150, 14, 52,
|
||||
26, 26, 26, 26, 26, 7, 7, 7, 14, 117,
|
||||
14, 7, 7, 54, 2, 150, 2, 16, 93, 67,
|
||||
67, 13, 67, 88, 14, 14, 120, 14, 16, 16,
|
||||
16, 16, 16, 16, 75, 16, 16, 16, 90, 13,
|
||||
89, 13, 13, 13, 13, 75, 13, 13, 13, 13,
|
||||
13, 13, 24, 13, 30, 65, 65, 49, 49, 49,
|
||||
49, 49, 65, 75, 75, 75, 75, 65, 65, 75,
|
||||
75, 68, 68, 68, 68, 68, 145, 145, 12, 93,
|
||||
80, 80, 90, 12, 89, 65, 67, 67, 20, 67,
|
||||
76, 76, 76, 37, 37, 143, 24, 63, 65, 93,
|
||||
75, 46, 46, 12, 68, 68, 68, 68, 68, 93,
|
||||
80, 80, 91, 91, 91, 65, 12, 76, 76, 76,
|
||||
145, 145, 37, 37, 143, 20, 11, 63, 65, 93,
|
||||
93, 63, 63, 63, 63, 63, 63, 63, 63, 63,
|
||||
63, 30, 8, 8, 12, 11, 63, 63, 63, 149,
|
||||
149, 15, 19, 15, 97, 28, 63, 63, 63, 63,
|
||||
82, 23, 63, 63, 98, 126, 15, 129, 149, 15,
|
||||
32, 79, 100, 71, 124, 98, 72, 63, -1, 115,
|
||||
63, 98, 98, -1, -1, -1, 149, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, 12, -1, -1, -1,
|
||||
-1, -1, 98, -1, -1, 8, -1, -1, -1, -1,
|
||||
63, 19, 8, 8, 28, 97, 63, 63, 63, 149,
|
||||
149, 15, 82, 15, 23, 12, 63, 63, 63, 63,
|
||||
12, 126, 63, 63, 129, 98, 15, 79, 149, 15,
|
||||
32, 115, 100, 71, 124, 72, 98, -1, 63, -1,
|
||||
-1, 63, 98, 98, -1, -1, -1, 149, -1, -1,
|
||||
-1, 12, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, 98, -1, 8, -1, -1, -1, -1,
|
||||
-1, -1, 85, 85, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, 98,
|
||||
-1, 98, 98, 98, -1, -1, -1, -1, 8, 8,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, 8,
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
98, -1, 98, 98, 98, -1, -1, -1, 8, 8,
|
||||
-1, -1, -1, 12, -1, -1, -1, -1, -1, 8,
|
||||
-1, 8, -1, -1, 8, -1, -1, 8, 8, -1,
|
||||
8, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, 8, -1, -1, 8
|
||||
);
|
||||
|
||||
protected $gotoBase = array(
|
||||
0, 0, -421, 0, 0, 188, 0, 250, 109, 0,
|
||||
-145, 78, 3, -21, -137, -17, 265, 121, 171, 72,
|
||||
75, 0, 0, 33, 63, 0, -103, 0, 73, 0,
|
||||
77, 0, 30, -23, 0, 0, 177, -254, 0, -358,
|
||||
182, 0, 0, 0, 0, 0, 229, 0, 0, 268,
|
||||
0, 0, 230, 0, 66, 119, -102, 0, 0, 0,
|
||||
0, 0, 0, 111, 0, -61, 0, 8, 80, -191,
|
||||
0, 9, 2, -378, 0, 48, 74, 0, 0, 29,
|
||||
-264, 0, 53, 0, 0, 209, -83, 0, 56, 85,
|
||||
84, 16, 0, -43, 0, 231, 0, 69, 148, 0,
|
||||
0, 0, -311, 0, 0, 163, 0, 250, 109, 0,
|
||||
-145, 58, 50, -21, -137, -17, 265, 121, 135, 61,
|
||||
82, 0, 0, 26, 18, 0, -103, 0, 62, 0,
|
||||
19, 0, 30, -23, 0, 0, 147, -255, 0, -358,
|
||||
167, 0, 0, 0, 0, 0, 287, 0, 0, 268,
|
||||
0, 0, 213, 0, 39, 119, -102, 0, 0, 0,
|
||||
0, 0, 0, 111, 0, -61, 0, -59, 83, -191,
|
||||
0, 9, 1, -378, 0, 48, 71, 0, 0, 25,
|
||||
-264, 0, 45, 0, 0, 209, -82, 0, 27, 41,
|
||||
40, 77, 0, -43, 0, 214, 0, 60, 149, 0,
|
||||
31, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, -19, 0, 0, 36, 0, 232, 0, 0,
|
||||
57, 0, 0, 0, -13, 0, 26, 0, 0, 35,
|
||||
0, 0, 0, 0, 0, 0, -49, -65, -52, 217,
|
||||
-39, 0, 0, 91, 0, 23, 181, 0, 222, 118,
|
||||
0, 0, -19, 0, 0, 28, 0, 222, 0, 0,
|
||||
29, 0, 0, 0, -13, 0, 22, 0, 0, 32,
|
||||
0, 0, 0, 0, 0, 0, -49, -65, -52, 173,
|
||||
-39, 0, 0, 90, 0, 37, 175, 0, 180, 118,
|
||||
-5, 0, 0
|
||||
);
|
||||
|
||||
@ -719,14 +719,14 @@ class Php7 extends \PhpParser\ParserAbstract
|
||||
320, 321, 918, 482, 512, 759, 211, 475, 760, 306,
|
||||
761, 769, 330, 311, 387, 413, 325, 894, 499, 524,
|
||||
371, 391, 509, 504, 484, 1025, 794, 397, 385, 808,
|
||||
293, 816, 598, 824, 827, 435, 436, 395, 839, 396,
|
||||
294, 816, 598, 824, 827, 435, 436, 395, 839, 396,
|
||||
853, 500, 501, 1033, 390, 859, 377, 866, 1069, 380,
|
||||
870, 225, 873, 249, 543, 346, 878, 879, 6, 884,
|
||||
561, 562, 7, 237, 411, 908, 544, 374, 483, 924,
|
||||
359, 992, 994, 468, 404, 1007, 384, 552, 414, 1012,
|
||||
1072, 372, 437, 392, 278, 438, 251, 297, 298, 454,
|
||||
1072, 372, 437, 392, 279, 438, 251, 298, 276, 454,
|
||||
258, 299, 439, 393, 1075, 1082, 275, 27, 1101, 1112,
|
||||
288, 487, 506
|
||||
289, 487, 506
|
||||
);
|
||||
|
||||
protected $ruleToNonTerminal = array(
|
||||
@ -776,7 +776,7 @@ class Php7 extends \PhpParser\ParserAbstract
|
||||
123, 123, 123, 126, 126, 137, 138, 138, 86, 140,
|
||||
140, 140, 140, 122, 122, 122, 122, 122, 122, 122,
|
||||
122, 122, 122, 122, 122, 122, 122, 122, 122, 49,
|
||||
49, 135, 135, 135, 141, 141, 141, 131, 131, 131,
|
||||
49, 135, 135, 135, 135, 141, 141, 131, 131, 131,
|
||||
142, 142, 142, 142, 142, 56, 56, 56, 98, 98,
|
||||
98, 98, 145, 144, 134, 134, 134, 134, 134, 134,
|
||||
133, 133, 133, 143, 143, 143, 143, 85, 139, 147,
|
||||
|
254
test/code/parser/expr/uvs/constDeref.test
Normal file
254
test/code/parser/expr/uvs/constDeref.test
Normal file
@ -0,0 +1,254 @@
|
||||
Dereferencing of constants
|
||||
-----
|
||||
<?php
|
||||
|
||||
A->length;
|
||||
A->length();
|
||||
A[0];
|
||||
A[0][1][2];
|
||||
A{0};
|
||||
|
||||
A::B[0];
|
||||
A::B[0][1][2];
|
||||
A::B{0};
|
||||
A::B->length;
|
||||
A::B->length();
|
||||
A::B::C;
|
||||
A::B::$c;
|
||||
A::B::c();
|
||||
-----
|
||||
!!php7
|
||||
array(
|
||||
0: Stmt_Expression(
|
||||
expr: Expr_PropertyFetch(
|
||||
var: Expr_ConstFetch(
|
||||
name: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: length
|
||||
)
|
||||
)
|
||||
)
|
||||
1: Stmt_Expression(
|
||||
expr: Expr_MethodCall(
|
||||
var: Expr_ConstFetch(
|
||||
name: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: length
|
||||
)
|
||||
args: array(
|
||||
)
|
||||
)
|
||||
)
|
||||
2: Stmt_Expression(
|
||||
expr: Expr_ArrayDimFetch(
|
||||
var: Expr_ConstFetch(
|
||||
name: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
)
|
||||
dim: Scalar_LNumber(
|
||||
value: 0
|
||||
)
|
||||
)
|
||||
)
|
||||
3: Stmt_Expression(
|
||||
expr: Expr_ArrayDimFetch(
|
||||
var: Expr_ArrayDimFetch(
|
||||
var: Expr_ArrayDimFetch(
|
||||
var: Expr_ConstFetch(
|
||||
name: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
)
|
||||
dim: Scalar_LNumber(
|
||||
value: 0
|
||||
)
|
||||
)
|
||||
dim: Scalar_LNumber(
|
||||
value: 1
|
||||
)
|
||||
)
|
||||
dim: Scalar_LNumber(
|
||||
value: 2
|
||||
)
|
||||
)
|
||||
)
|
||||
4: Stmt_Expression(
|
||||
expr: Expr_ArrayDimFetch(
|
||||
var: Expr_ConstFetch(
|
||||
name: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
)
|
||||
dim: Scalar_LNumber(
|
||||
value: 0
|
||||
)
|
||||
)
|
||||
)
|
||||
5: Stmt_Expression(
|
||||
expr: Expr_ArrayDimFetch(
|
||||
var: Expr_ClassConstFetch(
|
||||
class: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: B
|
||||
)
|
||||
)
|
||||
dim: Scalar_LNumber(
|
||||
value: 0
|
||||
)
|
||||
)
|
||||
)
|
||||
6: Stmt_Expression(
|
||||
expr: Expr_ArrayDimFetch(
|
||||
var: Expr_ArrayDimFetch(
|
||||
var: Expr_ArrayDimFetch(
|
||||
var: Expr_ClassConstFetch(
|
||||
class: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: B
|
||||
)
|
||||
)
|
||||
dim: Scalar_LNumber(
|
||||
value: 0
|
||||
)
|
||||
)
|
||||
dim: Scalar_LNumber(
|
||||
value: 1
|
||||
)
|
||||
)
|
||||
dim: Scalar_LNumber(
|
||||
value: 2
|
||||
)
|
||||
)
|
||||
)
|
||||
7: Stmt_Expression(
|
||||
expr: Expr_ArrayDimFetch(
|
||||
var: Expr_ClassConstFetch(
|
||||
class: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: B
|
||||
)
|
||||
)
|
||||
dim: Scalar_LNumber(
|
||||
value: 0
|
||||
)
|
||||
)
|
||||
)
|
||||
8: Stmt_Expression(
|
||||
expr: Expr_PropertyFetch(
|
||||
var: Expr_ClassConstFetch(
|
||||
class: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: B
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: length
|
||||
)
|
||||
)
|
||||
)
|
||||
9: Stmt_Expression(
|
||||
expr: Expr_MethodCall(
|
||||
var: Expr_ClassConstFetch(
|
||||
class: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: B
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: length
|
||||
)
|
||||
args: array(
|
||||
)
|
||||
)
|
||||
)
|
||||
10: Stmt_Expression(
|
||||
expr: Expr_ClassConstFetch(
|
||||
class: Expr_ClassConstFetch(
|
||||
class: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: B
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: C
|
||||
)
|
||||
)
|
||||
)
|
||||
11: Stmt_Expression(
|
||||
expr: Expr_StaticPropertyFetch(
|
||||
class: Expr_ClassConstFetch(
|
||||
class: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: B
|
||||
)
|
||||
)
|
||||
name: VarLikeIdentifier(
|
||||
name: c
|
||||
)
|
||||
)
|
||||
)
|
||||
12: Stmt_Expression(
|
||||
expr: Expr_StaticCall(
|
||||
class: Expr_ClassConstFetch(
|
||||
class: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: B
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: c
|
||||
)
|
||||
args: array(
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
@ -2,11 +2,6 @@ Uniform variable syntax in PHP 7 (misc)
|
||||
-----
|
||||
<?php
|
||||
|
||||
A::A[0];
|
||||
A::A[0][1][2];
|
||||
A::A{0};
|
||||
A->length;
|
||||
A->length();
|
||||
"string"->length();
|
||||
"foo$bar"[0];
|
||||
"foo$bar"->length();
|
||||
@ -16,97 +11,6 @@ A->length();
|
||||
!!php7
|
||||
array(
|
||||
0: Stmt_Expression(
|
||||
expr: Expr_ArrayDimFetch(
|
||||
var: Expr_ClassConstFetch(
|
||||
class: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: A
|
||||
)
|
||||
)
|
||||
dim: Scalar_LNumber(
|
||||
value: 0
|
||||
)
|
||||
)
|
||||
)
|
||||
1: Stmt_Expression(
|
||||
expr: Expr_ArrayDimFetch(
|
||||
var: Expr_ArrayDimFetch(
|
||||
var: Expr_ArrayDimFetch(
|
||||
var: Expr_ClassConstFetch(
|
||||
class: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: A
|
||||
)
|
||||
)
|
||||
dim: Scalar_LNumber(
|
||||
value: 0
|
||||
)
|
||||
)
|
||||
dim: Scalar_LNumber(
|
||||
value: 1
|
||||
)
|
||||
)
|
||||
dim: Scalar_LNumber(
|
||||
value: 2
|
||||
)
|
||||
)
|
||||
)
|
||||
2: Stmt_Expression(
|
||||
expr: Expr_ArrayDimFetch(
|
||||
var: Expr_ClassConstFetch(
|
||||
class: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: A
|
||||
)
|
||||
)
|
||||
dim: Scalar_LNumber(
|
||||
value: 0
|
||||
)
|
||||
)
|
||||
)
|
||||
3: Stmt_Expression(
|
||||
expr: Expr_PropertyFetch(
|
||||
var: Expr_ConstFetch(
|
||||
name: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: length
|
||||
)
|
||||
)
|
||||
)
|
||||
4: Stmt_Expression(
|
||||
expr: Expr_MethodCall(
|
||||
var: Expr_ConstFetch(
|
||||
name: Name(
|
||||
parts: array(
|
||||
0: A
|
||||
)
|
||||
)
|
||||
)
|
||||
name: Identifier(
|
||||
name: length
|
||||
)
|
||||
args: array(
|
||||
)
|
||||
)
|
||||
)
|
||||
5: Stmt_Expression(
|
||||
expr: Expr_MethodCall(
|
||||
var: Scalar_String(
|
||||
value: string
|
||||
@ -118,7 +22,7 @@ array(
|
||||
)
|
||||
)
|
||||
)
|
||||
6: Stmt_Expression(
|
||||
1: Stmt_Expression(
|
||||
expr: Expr_ArrayDimFetch(
|
||||
var: Scalar_Encapsed(
|
||||
parts: array(
|
||||
@ -135,7 +39,7 @@ array(
|
||||
)
|
||||
)
|
||||
)
|
||||
7: Stmt_Expression(
|
||||
2: Stmt_Expression(
|
||||
expr: Expr_MethodCall(
|
||||
var: Scalar_Encapsed(
|
||||
parts: array(
|
||||
@ -154,7 +58,7 @@ array(
|
||||
)
|
||||
)
|
||||
)
|
||||
8: Stmt_Expression(
|
||||
3: Stmt_Expression(
|
||||
expr: Expr_FuncCall(
|
||||
name: Expr_ArrayDimFetch(
|
||||
var: Expr_PropertyFetch(
|
||||
@ -182,7 +86,7 @@ array(
|
||||
)
|
||||
)
|
||||
)
|
||||
9: Stmt_Expression(
|
||||
4: Stmt_Expression(
|
||||
expr: Expr_Assign(
|
||||
var: Expr_ArrayDimFetch(
|
||||
var: Expr_Array(
|
||||
|
Loading…
Reference in New Issue
Block a user