Copied!
CloneableInstantiable
Constants
public PhpParser\Parser\Php7::T_ABSTRACT = 354
public PhpParser\Parser\Php7::T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG = 287
public PhpParser\Parser\Php7::T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG = 286
public PhpParser\Parser\Php7::T_AND_EQUAL = 276
public PhpParser\Parser\Php7::T_ARRAY = 377
public PhpParser\Parser\Php7::T_ARRAY_CAST = 303
public PhpParser\Parser\Php7::T_AS = 334
public PhpParser\Parser\Php7::T_ATTRIBUTE = 399
public PhpParser\Parser\Php7::T_BOOL_CAST = 305
public PhpParser\Parser\Php7::T_BOOLEAN_AND = 285
public PhpParser\Parser\Php7::T_BOOLEAN_OR = 284
public PhpParser\Parser\Php7::T_BREAK = 340
public PhpParser\Parser\Php7::T_CALLABLE = 378
public PhpParser\Parser\Php7::T_CASE = 338
public PhpParser\Parser\Php7::T_CATCH = 348
public PhpParser\Parser\Php7::T_CLASS = 368
public PhpParser\Parser\Php7::T_CLASS_C = 379
public PhpParser\Parser\Php7::T_CLONE = 309
public PhpParser\Parser\Php7::T_COALESCE = 283
public PhpParser\Parser\Php7::T_COALESCE_EQUAL = 282
public PhpParser\Parser\Php7::T_CONCAT_EQUAL = 274
public PhpParser\Parser\Php7::T_CONST = 345
public PhpParser\Parser\Php7::T_CONSTANT_ENCAPSED_STRING = 323
public PhpParser\Parser\Php7::T_CONTINUE = 341
public PhpParser\Parser\Php7::T_CURLY_OPEN = 389
public PhpParser\Parser\Php7::T_DEC = 299
public PhpParser\Parser\Php7::T_DECLARE = 332
public PhpParser\Parser\Php7::T_DEFAULT = 339
public PhpParser\Parser\Php7::T_DIR = 393
public PhpParser\Parser\Php7::T_DIV_EQUAL = 273
public PhpParser\Parser\Php7::T_DNUMBER = 316
public PhpParser\Parser\Php7::T_DO = 325
public PhpParser\Parser\Php7::T_DOLLAR_OPEN_CURLY_BRACES = 388
public PhpParser\Parser\Php7::T_DOUBLE_ARROW = 268
public PhpParser\Parser\Php7::T_DOUBLE_CAST = 301
public PhpParser\Parser\Php7::T_ECHO = 324
public PhpParser\Parser\Php7::T_ELLIPSIS = 395
public PhpParser\Parser\Php7::T_ELSE = 313
public PhpParser\Parser\Php7::T_ELSEIF = 312
public PhpParser\Parser\Php7::T_EMPTY = 366
public PhpParser\Parser\Php7::T_ENCAPSED_AND_WHITESPACE = 322
public PhpParser\Parser\Php7::T_END_HEREDOC = 387
public PhpParser\Parser\Php7::T_ENDDECLARE = 333
public PhpParser\Parser\Php7::T_ENDFOR = 329
public PhpParser\Parser\Php7::T_ENDFOREACH = 331
public PhpParser\Parser\Php7::T_ENDIF = 314
public PhpParser\Parser\Php7::T_ENDSWITCH = 337
public PhpParser\Parser\Php7::T_ENDWHILE = 327
public PhpParser\Parser\Php7::T_ENUM = 371
public PhpParser\Parser\Php7::T_EVAL = 260
public PhpParser\Parser\Php7::T_EXIT = 310
public PhpParser\Parser\Php7::T_EXTENDS = 372
public PhpParser\Parser\Php7::T_FILE = 385
public PhpParser\Parser\Php7::T_FINAL = 355
public PhpParser\Parser\Php7::T_FINALLY = 349
public PhpParser\Parser\Php7::T_FN = 344
public PhpParser\Parser\Php7::T_FOR = 328
public PhpParser\Parser\Php7::T_FOREACH = 330
public PhpParser\Parser\Php7::T_FUNC_C = 382
public PhpParser\Parser\Php7::T_FUNCTION = 343
public PhpParser\Parser\Php7::T_GLOBAL = 352
public PhpParser\Parser\Php7::T_GOTO = 342
public PhpParser\Parser\Php7::T_HALT_COMPILER = 367
public PhpParser\Parser\Php7::T_IF = 311
public PhpParser\Parser\Php7::T_IMPLEMENTS = 373
public PhpParser\Parser\Php7::T_INC = 298
public PhpParser\Parser\Php7::T_INCLUDE = 258
public PhpParser\Parser\Php7::T_INCLUDE_ONCE = 259
public PhpParser\Parser\Php7::T_INLINE_HTML = 321
public PhpParser\Parser\Php7::T_INSTANCEOF = 297
public PhpParser\Parser\Php7::T_INSTEADOF = 351
public PhpParser\Parser\Php7::T_INT_CAST = 300
public PhpParser\Parser\Php7::T_INTERFACE = 370
public PhpParser\Parser\Php7::T_IS_EQUAL = 288
public PhpParser\Parser\Php7::T_IS_GREATER_OR_EQUAL = 294
public PhpParser\Parser\Php7::T_IS_IDENTICAL = 290
public PhpParser\Parser\Php7::T_IS_NOT_EQUAL = 289
public PhpParser\Parser\Php7::T_IS_NOT_IDENTICAL = 291
public PhpParser\Parser\Php7::T_IS_SMALLER_OR_EQUAL = 293
public PhpParser\Parser\Php7::T_ISSET = 365
public PhpParser\Parser\Php7::T_LINE = 384
public PhpParser\Parser\Php7::T_LIST = 376
public PhpParser\Parser\Php7::T_LNUMBER = 315
public PhpParser\Parser\Php7::T_LOGICAL_AND = 265
public PhpParser\Parser\Php7::T_LOGICAL_OR = 263
public PhpParser\Parser\Php7::T_LOGICAL_XOR = 264
public PhpParser\Parser\Php7::T_MATCH = 336
public PhpParser\Parser\Php7::T_METHOD_C = 381
public PhpParser\Parser\Php7::T_MINUS_EQUAL = 271
public PhpParser\Parser\Php7::T_MOD_EQUAL = 275
public PhpParser\Parser\Php7::T_MUL_EQUAL = 272
public PhpParser\Parser\Php7::T_NAME_FULLY_QUALIFIED = 396
public PhpParser\Parser\Php7::T_NAME_QUALIFIED = 397
public PhpParser\Parser\Php7::T_NAME_RELATIVE = 398
public PhpParser\Parser\Php7::T_NAMESPACE = 391
public PhpParser\Parser\Php7::T_NEW = 308
public PhpParser\Parser\Php7::T_NS_C = 392
public PhpParser\Parser\Php7::T_NS_SEPARATOR = 394
public PhpParser\Parser\Php7::T_NULLSAFE_OBJECT_OPERATOR = 375
public PhpParser\Parser\Php7::T_NUM_STRING = 320
public PhpParser\Parser\Php7::T_OBJECT_CAST = 304
public PhpParser\Parser\Php7::T_OBJECT_OPERATOR = 374
public PhpParser\Parser\Php7::T_OR_EQUAL = 277
public PhpParser\Parser\Php7::T_PAAMAYIM_NEKUDOTAYIM = 390
public PhpParser\Parser\Php7::T_PLUS_EQUAL = 270
public PhpParser\Parser\Php7::T_POW = 307
public PhpParser\Parser\Php7::T_POW_EQUAL = 281
public PhpParser\Parser\Php7::T_PRINT = 266
public PhpParser\Parser\Php7::T_PRIVATE = 356
public PhpParser\Parser\Php7::T_PRIVATE_SET = 362
public PhpParser\Parser\Php7::T_PROPERTY_C = 383
public PhpParser\Parser\Php7::T_PROTECTED = 357
public PhpParser\Parser\Php7::T_PROTECTED_SET = 361
public PhpParser\Parser\Php7::T_PUBLIC = 358
public PhpParser\Parser\Php7::T_PUBLIC_SET = 360
public PhpParser\Parser\Php7::T_READONLY = 359
public PhpParser\Parser\Php7::T_REQUIRE = 261
public PhpParser\Parser\Php7::T_REQUIRE_ONCE = 262
public PhpParser\Parser\Php7::T_RETURN = 346
public PhpParser\Parser\Php7::T_SL = 295
public PhpParser\Parser\Php7::T_SL_EQUAL = 279
public PhpParser\Parser\Php7::T_SPACESHIP = 292
public PhpParser\Parser\Php7::T_SR = 296
public PhpParser\Parser\Php7::T_SR_EQUAL = 280
public PhpParser\Parser\Php7::T_START_HEREDOC = 386
public PhpParser\Parser\Php7::T_STATIC = 353
public PhpParser\Parser\Php7::T_STRING = 317
public PhpParser\Parser\Php7::T_STRING_CAST = 302
public PhpParser\Parser\Php7::T_STRING_VARNAME = 318
public PhpParser\Parser\Php7::T_SWITCH = 335
public PhpParser\Parser\Php7::T_THROW = 257
public PhpParser\Parser\Php7::T_TRAIT = 369
public PhpParser\Parser\Php7::T_TRAIT_C = 380
public PhpParser\Parser\Php7::T_TRY = 347
public PhpParser\Parser\Php7::T_UNSET = 364
public PhpParser\Parser\Php7::T_UNSET_CAST = 306
public PhpParser\Parser\Php7::T_USE = 350
public PhpParser\Parser\Php7::T_VAR = 363
public PhpParser\Parser\Php7::T_VARIABLE = 319
public PhpParser\Parser\Php7::T_WHILE = 326
public PhpParser\Parser\Php7::T_XOR_EQUAL = 278
public PhpParser\Parser\Php7::T_YIELD = 267
public PhpParser\Parser\Php7::T_YIELD_FROM = 269
public PhpParser\Parser\Php7::YYERRTOK = 256
Methods
public PhpParser\ParserAbstract::__construct(PhpParser\Lexer $lexer, ?PhpParser\PhpVersion $phpVersion = NULL)
 

Creates a parser instance.

Options:

  • phpVersion: ?PhpVersion,
  • param \Lexer $lexer A lexer
  • param \PhpVersion $phpVersion PHP version to target, defaults to latest supported. This option is best-effort: Even if specified, parsing will generally assume the latest supported version and only adjust behavior in minor ways, for example by omitting errors in older versions and interpreting type hints as a name or identifier depending on version.
public PhpParser\ParserAbstract::getTokens() : array
public PhpParser\ParserAbstract::parse(string $code, ?PhpParser\ErrorHandler $errorHandler = NULL) : ?array
 

Parses PHP code into a node tree.

If a non-throwing error handler is used, the parser will continue parsing after an error occurred and attempt to build a partial AST.

  • param string $code The source code to parse
  • param \ErrorHandler|null $errorHandler Error handler to use for lexer/parser errors, defaults to ErrorHandler\Throwing.
  • return \Node\Stmt[]|null Array of statements (or null non-throwing error handler is used and the parser was unable to recover from an error).
Properties
protected array $action = [128, 129, 130, 565, 131, 132, 944, 754, 755, 756, 133, 38, 838, 485, 561, 1365, -32766, -32766, -32766, 0, 829, 1122, 1123, 1124, 1118, 1117, 1116, 1125, 1119, 1120, 1121, -32766, -32766, -32766, -332, 748, 747, -32766, 840, -32766, -32766, -32766, -32766, -32766, -32766, -32766, -32767, -32767, -32767, -32767, -32767, 24, -32766, 1034, -568, 757, 1122, 1123, 1124, 1118, 1117, 1116, 1125, 1119, 1120, 1121, 2, 381, 382, 265, 134, 384, 761, 762, 763, 764, 1111, 425, 426, 1300, 329, 36, 248, 26, 291, 818, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 794, 566, 795, 796, 797, 798, 786, 787, 346, 347, 789, 790, 775, 776, 777, 779, 780, 781, 357, 821, 822, 823, 824, 825, 567, -568, -568, 299, 782, 783, 568, 569, -194, 806, 804, 805, 817, 801, 802, 35, -193, 570, 571, 800, 572, 573, 574, 575, -32766, 576, 577, 471, 472, 486, 238, -568, 803, 578, 579, -371, 135, -371, 128, 129, 130, 565, 131, 132, 1067, 754, 755, 756, 133, 38, -32766, 136, 728, 1027, 1026, 1025, 1031, 1028, 1029, 1030, -32766, -32766, -32766, -32767, -32767, -32767, -32767, 101, 102, 103, 104, 105, -332, 748, 747, 1043, 923, -32766, -32766, -32766, 839, -32766, 145, -32766, -32766, -32766, -32766, -32766, -32766, -32766, -32766, -32766, -32766, 757, -32766, -32766, -32766, 611, -32766, 290, -32766, -32766, -32766, -32766, -32766, 834, 718, 265, 134, 384, 761, 762, 763, 764, -615, -32766, 426, -32766, -32766, -32766, -32766, -615, 251, 818, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 794, 566, 795, 796, 797, 798, 786, 787, 346, 347, 789, 790, 775, 776, 777, 779, 780, 781, 357, 821, 822, 823, 824, 825, 567, 913, 426, 310, 782, 783, 568, 569, -194, 806, 804, 805, 817, 801, 802, 1288, -193, 570, 571, 800, 572, 573, 574, 575, -273, 576, 577, 835, 82, 83, 84, -85, 803, 578, 579, 237, 148, 778, 749, 750, 751, 752, 753, 150, 754, 755, 756, 791, 792, 37, -32766, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 1043, 276, -32766, -32766, -32766, 925, 1263, 1262, 1264, 713, 831, 312, 393, 109, 7, 1097, 47, 757, -32766, -32766, -32766, 838, -85, -32766, 1095, -32766, -32766, -32766, 1268, -32766, -32766, 758, 759, 760, 761, 762, 763, 764, 994, -32766, 827, -32766, -32766, 923, -615, 324, -615, 818, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 794, 816, 795, 796, 797, 798, 786, 787, 788, 815, 789, 790, 775, 776, 777, 779, 780, 781, 820, 821, 822, 823, 824, 825, 826, 300, 301, 342, 782, 783, 784, 785, 833, 806, 804, 805, 817, 801, 802, 715, 1040, 793, 799, 800, 807, 808, 810, 809, 140, 811, 812, 838, 327, 343, -32766, 125, 803, 814, 813, 49, 50, 51, 517, 52, 53, 1043, -110, 371, 913, 54, 55, -110, 56, -110, -566, -32766, -32766, -32766, 306, 1043, 126, -110, -110, -110, -110, -110, -110, -110, -110, -110, -110, -110, -612, 1096, 106, 107, 108, 740, 276, -612, 963, 964, -32766, 290, 287, 965, 1330, 57, 58, -32766, 109, 375, 995, 59, 959, 60, 245, 246, 61, 62, 63, 64, 65, 66, 67, 68, -32766, 28, 267, 69, 441, 518, 391, -346, 74, 1294, 1295, 519, 443, 838, 327, -566, -566, 1292, 42, 20, 520, 925, 521, 923, 522, 713, 523, -564, 693, 524, 525, -566, 923, 444, 44, 45, 447, 378, 377, -78, 46, 526, 923, -572, 445, -566, 369, 341, 1346, 103, 104, 105, -563, 1254, 923, 383, 382, 446, 528, 529, 530, 865, 719, 866, 694, 425, 461, 462, 463, 844, 532, 533, 720, 1280, 1281, 1282, 1283, 1285, 1277, 1278, 298, 865, 151, 866, 723, 153, 1284, 1279, 695, 696, 1263, 1262, 1264, 299, -564, -564, 70, -153, -153, -153, 322, 323, 327, 154, -4, 923, 913, 1263, 1262, 1264, -564, 155, -153, 283, -153, 913, -153, 157, -153, -563, -563, 33, -571, 1350, -564, 913, -58, 829, 376, -612, 1349, -612, 748, 747, 837, -563, -606, 913, -606, 963, 964, -57, 748, 747, 527, 123, 81, -570, 1040, -563, 327, 617, 899, 959, -110, -110, -110, 32, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 124, -565, 1043, 947, 28, 268, 149, 408, 923, 1375, 829, 137, 1376, 138, 925, 144, 838, 913, 713, -153, 1292, 660, 21, 925, 679, 680, 283, 713, 158, 1170, 1172, 379, 380, 980, 385, 386, 159, 713, 730, 376, -562, 438, 1066, 141, 160, 925, 297, 327, 161, 713, 963, 964, 946, 651, 652, 527, 1254, -87, 162, -306, 748, 747, -84, 531, 959, -110, -110, -110, -565, -565, -78, 287, 1268, 532, 533, -73, 1280, 1281, 1282, 1283, 1285, 1277, 1278, -72, -565, -71, -70, 11, 1261, 1284, 1279, 913, -69, 748, 747, -68, 925, -32766, -565, 72, 713, -4, -16, 1261, 323, 327, -67, -562, -562, 291, -32766, -32766, -32766, -66, -32766, -65, -32766, -46, -32766, -18, 142, -32766, 275, -562, 1259, 284, -32766, -32766, -32766, 729, -32766, 732, -32766, -32766, 922, 147, 1261, -562, -32766, 422, 28, 267, -302, -32766, -32766, -32766, 279, -32766, 1042, -32766, -32766, -32766, 838, 838, -32766, 288, 1292, 1040, 280, -32766, -32766, -32766, 285, 286, 335, -32766, -32766, 1263, 1262, 1264, 925, -32766, 422, 289, 713, 28, 268, 292, 293, 276, 940, 73, 1043, -32766, 109, 689, 146, 838, -110, -110, -562, 1292, 1254, -110, 829, -32766, 1377, 704, 582, 10, 661, 838, -110, 1129, 706, 649, 283, 307, 960, -32766, 533, -32766, 1280, 1281, 1282, 1283, 1285, 1277, 1278, 682, 1043, 305, -50, 468, 1299, 1284, 1279, 1254, 666, -528, 496, 667, 304, 299, 683, 72, 74, 1301, 588, -32766, 323, 327, 327, -518, 290, 533, 40, 1280, 1281, 1282, 1283, 1285, 1277, 1278, 8, 139, 0, -562, -562, 27, 1284, 1279, -276, 407, 0, -32766, 0, 0, 0, 0, 72, 1261, 311, -562, 0, 323, 327, 0, -32766, -32766, -32766, 0, -32766, 373, -32766, 0, -32766, -562, 0, -32766, 0, 0, 615, 0, -32766, -32766, -32766, 923, -32766, 0, -32766, -32766, 942, 1289, 1261, 837, -32766, 422, 41, 299, 34, -32766, -32766, -32766, 737, -32766, 738, -32766, -32766, -32766, 923, 857, -32766, 904, 1004, 981, 988, -32766, -32766, -32766, 978, -32766, 989, -32766, -32766, 902, 976, 1261, 1100, -32766, 422, 48, 1103, 1104, -32766, -32766, -32766, 1101, -32766, 1102, -32766, -32766, -32766, 1108, -600, -32766, 849, 1316, 1334, 491, -32766, -32766, -32766, 1368, -32766, 654, -32766, -32766, -599, -598, 1261, 595, -32766, 422, -572, -571, 1268, -32766, -32766, -32766, 913, -32766, -570, -32766, -32766, -32766, -569, -512, -32766, -274, 1, 29, 30, -32766, -32766, -32766, -251, -251, -251, -32766, -32766, 39, 376, 913, 43, -32766, 422, 71, 302, 303, 75, 76, 77, 963, 964, 78, 79, -32766, 527, -250, -250, -250, -273, 80, 374, 376, 899, 959, -110, -110, -110, 143, 152, 156, 243, 331, 963, 964, 127, 358, 359, 527, 360, 361, 362, 363, 364, 365, 366, 899, 959, -110, -110, -110, -32766, 13, 367, 838, 368, 925, 1261, 14, 370, 713, -251, 439, 560, -32766, -32766, -32766, 15, -32766, 16, -32766, 18, -32766, 406, 487, -32766, 488, 495, 498, 925, -32766, -32766, -32766, 713, -250, 499, -32766, -32766, 500, -110, -110, 501, -32766, 422, -110, 505, 506, 507, 515, 593, 699, 1069, 1210, -110, -32766, 1290, 1068, 1049, 1249, 1045, -278, -102, -32766, 12, 17, 22, 296, 405, 607, 612, 640, 705, 1214, 1267, 1211, 1347, 0, 321, 372, 714, 717, 721, 722, 724, 299, 725, 726, 74, 727, 1227, 731, 716, 0, 327, 411, 1293, 734, 900, 1372, 1374, 860, 859, 953, 996, 1373, 952, 950, 951, 954, 1242, 933, 943, 931, 986, 987, 638, 1371, 1328, 1317, 1335, 1344, 0, 0, 0, 327]
protected array $actionBase = [0, -2, 156, 559, 641, 1004, 1027, 485, 292, 200, -60, 283, 568, 590, 590, 715, 590, 195, 578, 894, 395, 395, 395, 825, 313, 313, 825, 313, 731, 731, 731, 731, 764, 764, 965, 965, 998, 932, 899, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 1088, 37, 360, 216, 644, 1061, 1067, 1063, 1068, 1059, 1058, 1062, 1064, 1069, 1109, 1110, 812, 1111, 1112, 1108, 1113, 1065, 909, 1060, 1066, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 135, 477, 373, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 642, 642, 22, 22, 22, 362, 813, 778, 813, 813, 813, 813, 813, 813, 813, 813, 346, 205, 678, 188, 171, 171, 7, 7, 7, 7, 7, 376, 779, 54, 1083, 1083, 139, 139, 139, 139, -50, 49, 749, 380, 787, -39, 569, 569, 536, 536, 335, 335, 349, 349, 335, 335, 335, 212, 212, 212, 212, 415, 494, 519, 512, -71, 807, 584, 584, 584, 584, 807, 807, 807, 807, 795, 1086, 807, 807, 807, 639, 828, 828, 979, 452, 452, 452, 828, 492, -70, -70, 492, 394, -70, 516, 982, 637, 988, 397, 785, 486, 509, 397, -16, 299, 502, 233, 854, 633, 854, 1056, 832, 832, 794, 752, 898, 1085, 1070, 839, 1106, 842, 1107, 471, 10, 747, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1114, 632, 1056, 145, 1114, 1114, 1114, 632, 632, 632, 632, 632, 632, 632, 632, 796, 632, 632, 650, 145, 654, 657, 145, 837, 632, 798, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, -18, 37, 37, 360, 5, 5, 37, 341, 52, 5, 5, 5, 5, 37, 37, 37, 37, 633, 830, 789, 636, 278, 843, 128, 830, 830, 830, 26, 136, 120, 732, 815, 259, 822, 822, 829, 933, 933, 822, 827, 822, 829, 822, 822, 933, 933, 855, 933, 163, 541, 430, 514, 562, 933, 273, 822, 822, 822, 822, 845, 933, 58, 573, 822, 234, 194, 822, 822, 845, 805, 802, 793, 933, 933, 933, 845, 470, 793, 793, 793, 859, 861, 800, 799, 390, 356, 598, 127, 850, 799, 799, 822, 535, 800, 799, 800, 799, 852, 799, 799, 799, 800, 799, 827, 456, 799, 720, 728, 586, 75, 799, 19, 950, 953, 734, 954, 944, 955, 1008, 958, 959, 1073, 930, 977, 947, 966, 1009, 935, 934, 811, 666, 692, 809, 784, 929, 823, 823, 823, 917, 918, 823, 823, 823, 823, 823, 823, 823, 823, 666, 847, 838, 817, 983, 703, 705, 1044, 782, 1090, 1081, 982, 950, 959, 739, 947, 966, 935, 934, 792, 790, 772, 783, 769, 763, 760, 762, 797, 1046, 974, 791, 707, 1016, 985, 1089, 1071, 986, 987, 1018, 1047, 866, 1050, 1091, 824, 1092, 1093, 900, 989, 1074, 823, 912, 897, 901, 988, 925, 666, 902, 1051, 997, 851, 1019, 1021, 1072, 834, 821, 907, 1094, 990, 991, 999, 1075, 1076, 853, 1003, 804, 1022, 841, 803, 1023, 1030, 1033, 1036, 1077, 1095, 1079, 911, 1080, 868, 818, 931, 840, 1096, 307, 835, 836, 849, 1005, 605, 978, 1082, 1087, 1097, 1040, 1041, 1042, 1098, 1099, 975, 869, 1012, 833, 1014, 964, 870, 871, 608, 848, 1052, 819, 831, 844, 626, 634, 1100, 1101, 1102, 976, 806, 816, 875, 877, 1053, 826, 1054, 1103, 640, 880, 1104, 1045, 736, 740, 560, 662, 647, 750, 820, 1084, 814, 801, 810, 1001, 740, 808, 881, 1105, 883, 887, 888, 1043, 892, 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, 0, 0, 0, 468, 468, 468, 468, 468, 468, 313, 313, 313, 313, 313, 468, 468, 468, 468, 468, 468, 468, 313, 468, 468, 468, 313, 0, 0, 313, 0, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 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, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 716, 716, 297, 297, 297, 297, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, 297, 297, 0, 297, 297, 297, 297, 297, 297, 297, 297, 855, 716, 716, 716, 716, 452, 452, 452, 452, -95, -95, 716, 716, 716, 394, 716, 716, 452, 452, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, 716, 0, 0, 0, 145, -70, 716, 827, 827, 827, 827, 716, 716, 716, 716, -70, -70, 716, 716, 716, 0, 0, 0, 0, 0, 0, 0, 0, 145, 0, 0, 145, 0, 0, 827, 638, 827, 638, 716, 394, 855, 659, 716, 0, 0, 0, 0, 145, 827, 145, 632, -70, -70, 632, 632, 5, 37, 659, 613, 613, 613, 613, 0, 0, 633, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 827, 0, 855, 0, 827, 827, 827, 0, 0, 0, 0, 0, 0, 0, 0, 933, 0, 0, 0, 0, 0, 0, 0, 827, 0, 933, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 827, 0, 0, 0, 0, 0, 0, 0, 0, 0, 823, 834, 0, 0, 834, 0, 823, 823, 823, 0, 0, 0, 848, 826]
protected array $actionCheck = [2, 3, 4, 5, 6, 7, 1, 9, 10, 11, 12, 13, 82, 31, 85, 85, 9, 10, 11, 0, 80, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 9, 10, 11, 8, 37, 38, 30, 1, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 101, 30, 1, 70, 57, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 8, 106, 107, 71, 72, 73, 74, 75, 76, 77, 126, 116, 80, 150, 70, 151, 152, 8, 30, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 137, 138, 162, 126, 127, 128, 129, 8, 131, 132, 133, 134, 135, 136, 8, 8, 139, 140, 141, 142, 143, 144, 145, 9, 147, 148, 137, 138, 167, 14, 167, 154, 155, 156, 106, 158, 108, 2, 3, 4, 5, 6, 7, 166, 9, 10, 11, 12, 13, 116, 8, 167, 119, 120, 121, 122, 123, 124, 125, 9, 10, 11, 44, 45, 46, 47, 48, 49, 50, 51, 52, 166, 37, 38, 141, 1, 9, 10, 11, 163, 30, 8, 32, 33, 34, 35, 36, 37, 38, 9, 10, 11, 57, 9, 10, 11, 1, 30, 165, 32, 33, 34, 35, 36, 80, 31, 71, 72, 73, 74, 75, 76, 77, 1, 30, 80, 32, 33, 34, 35, 8, 8, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 84, 80, 8, 126, 127, 128, 129, 166, 131, 132, 133, 134, 135, 136, 1, 166, 139, 140, 141, 142, 143, 144, 145, 166, 147, 148, 160, 9, 10, 11, 31, 154, 155, 156, 97, 158, 2, 3, 4, 5, 6, 7, 14, 9, 10, 11, 12, 13, 30, 116, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 141, 57, 9, 10, 11, 163, 159, 160, 161, 167, 80, 8, 106, 69, 108, 168, 70, 57, 9, 10, 11, 82, 97, 30, 1, 32, 33, 34, 1, 9, 10, 71, 72, 73, 74, 75, 76, 77, 31, 30, 80, 32, 33, 1, 164, 8, 166, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 137, 138, 8, 126, 127, 128, 129, 160, 131, 132, 133, 134, 135, 136, 167, 116, 139, 140, 141, 142, 143, 144, 145, 167, 147, 148, 82, 171, 8, 116, 167, 154, 155, 156, 2, 3, 4, 5, 6, 7, 141, 101, 8, 84, 12, 13, 106, 15, 108, 70, 9, 10, 11, 113, 141, 14, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 1, 163, 53, 54, 55, 167, 57, 8, 117, 118, 116, 165, 30, 122, 1, 50, 51, 140, 69, 8, 163, 56, 131, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 140, 70, 71, 72, 73, 74, 8, 168, 165, 78, 79, 80, 8, 82, 171, 137, 138, 86, 87, 88, 89, 163, 91, 1, 93, 167, 95, 70, 80, 98, 99, 153, 1, 8, 103, 104, 105, 106, 107, 16, 109, 110, 1, 165, 8, 167, 115, 116, 1, 50, 51, 52, 70, 122, 1, 106, 107, 8, 127, 128, 129, 106, 31, 108, 116, 116, 132, 133, 134, 8, 139, 140, 31, 142, 143, 144, 145, 146, 147, 148, 149, 106, 14, 108, 31, 14, 155, 156, 140, 141, 159, 160, 161, 162, 137, 138, 165, 75, 76, 77, 169, 170, 171, 14, 0, 1, 84, 159, 160, 161, 153, 14, 90, 165, 92, 84, 94, 14, 96, 137, 138, 14, 165, 1, 167, 84, 16, 80, 106, 164, 8, 166, 37, 38, 159, 153, 164, 84, 166, 117, 118, 16, 37, 38, 122, 16, 167, 165, 116, 167, 171, 51, 130, 131, 132, 133, 134, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 16, 70, 141, 73, 70, 71, 101, 102, 1, 80, 80, 16, 83, 16, 163, 16, 82, 84, 167, 168, 86, 75, 76, 163, 75, 76, 165, 167, 16, 59, 60, 106, 107, 163, 106, 107, 16, 167, 31, 106, 70, 108, 1, 167, 16, 163, 113, 171, 16, 167, 117, 118, 122, 111, 112, 122, 122, 31, 16, 35, 37, 38, 31, 130, 131, 132, 133, 134, 137, 138, 31, 30, 1, 139, 140, 31, 142, 143, 144, 145, 146, 147, 148, 31, 153, 31, 31, 154, 80, 155, 156, 84, 31, 37, 38, 31, 163, 74, 167, 165, 167, 168, 31, 80, 170, 171, 31, 137, 138, 30, 87, 88, 89, 31, 91, 31, 93, 31, 95, 31, 31, 98, 31, 153, 116, 31, 103, 104, 105, 31, 74, 31, 109, 110, 31, 31, 80, 167, 115, 116, 70, 71, 35, 87, 88, 89, 35, 91, 140, 93, 127, 95, 82, 82, 98, 37, 86, 116, 35, 103, 104, 105, 35, 35, 35, 109, 110, 159, 160, 161, 163, 115, 116, 37, 167, 70, 71, 37, 37, 57, 38, 158, 141, 127, 69, 77, 70, 82, 117, 118, 70, 86, 122, 122, 80, 116, 83, 80, 89, 97, 90, 82, 131, 82, 92, 113, 165, 114, 131, 85, 140, 140, 142, 143, 144, 145, 146, 147, 148, 94, 141, 136, 31, 97, 150, 155, 156, 122, 96, 153, 97, 100, 135, 162, 100, 165, 165, 150, 157, 140, 170, 171, 171, 153, 165, 140, 163, 142, 143, 144, 145, 146, 147, 148, 153, 31, -1, 137, 138, 153, 155, 156, 166, 168, -1, 74, -1, -1, -1, -1, 165, 80, 135, 153, -1, 170, 171, -1, 87, 88, 89, -1, 91, 153, 93, -1, 95, 167, -1, 98, -1, -1, 157, -1, 103, 104, 105, 1, 74, -1, 109, 110, 158, 164, 80, 159, 115, 116, 163, 162, 167, 87, 88, 89, 163, 91, 163, 93, 127, 95, 1, 163, 98, 163, 163, 163, 163, 103, 104, 105, 163, 74, 163, 109, 110, 163, 163, 80, 163, 115, 116, 70, 163, 163, 87, 88, 89, 163, 91, 163, 93, 127, 95, 163, 165, 98, 164, 164, 164, 102, 103, 104, 105, 164, 74, 164, 109, 110, 165, 165, 80, 81, 115, 116, 165, 165, 1, 87, 88, 89, 84, 91, 165, 93, 127, 95, 165, 165, 98, 166, 165, 165, 165, 103, 104, 105, 100, 101, 102, 109, 110, 165, 106, 84, 165, 115, 116, 165, 137, 138, 165, 165, 165, 117, 118, 165, 165, 127, 122, 100, 101, 102, 166, 165, 153, 106, 130, 131, 132, 133, 134, 165, 165, 165, 165, 165, 117, 118, 167, 165, 165, 122, 165, 165, 165, 165, 165, 165, 165, 130, 131, 132, 133, 134, 74, 166, 165, 82, 165, 163, 80, 166, 165, 167, 168, 165, 165, 87, 88, 89, 166, 91, 166, 93, 166, 95, 166, 166, 98, 166, 166, 166, 163, 103, 104, 105, 167, 168, 166, 109, 110, 166, 117, 118, 166, 115, 116, 122, 166, 166, 166, 166, 166, 166, 166, 166, 131, 127, 166, 166, 166, 166, 166, 166, 166, 140, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, -1, 167, 167, 167, 167, 167, 167, 167, 162, 167, 167, 165, 167, 169, 167, 167, -1, 171, 168, 170, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, -1, -1, -1, 171]
protected array $actionDefault = [3, 32767, 102, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 100, 32767, 618, 618, 618, 618, 32767, 32767, 255, 102, 32767, 32767, 487, 404, 404, 404, 32767, 32767, 560, 560, 560, 560, 560, 32767, 32767, 32767, 32767, 32767, 32767, 487, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 36, 7, 8, 10, 11, 49, 17, 328, 100, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 102, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 611, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 392, 491, 470, 471, 473, 474, 403, 561, 617, 331, 614, 333, 402, 145, 343, 334, 243, 259, 492, 260, 493, 496, 497, 216, 389, 149, 150, 434, 488, 436, 486, 490, 435, 409, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 407, 408, 489, 32767, 32767, 467, 466, 465, 432, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 102, 32767, 433, 437, 406, 440, 438, 439, 456, 457, 454, 455, 458, 32767, 32767, 320, 32767, 32767, 459, 460, 461, 462, 370, 368, 32767, 32767, 320, 111, 32767, 32767, 447, 448, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 504, 554, 464, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 102, 32767, 100, 556, 429, 431, 524, 442, 443, 441, 410, 32767, 529, 32767, 102, 32767, 531, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 555, 32767, 562, 562, 32767, 517, 100, 195, 32767, 530, 195, 195, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 625, 517, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 32767, 195, 110, 32767, 32767, 32767, 100, 195, 195, 195, 195, 195, 195, 195, 195, 532, 195, 195, 190, 32767, 269, 271, 102, 579, 195, 534, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 517, 452, 138, 32767, 519, 138, 562, 444, 445, 446, 562, 562, 562, 316, 293, 32767, 32767, 32767, 32767, 532, 532, 100, 100, 100, 100, 32767, 32767, 32767, 32767, 111, 503, 99, 99, 99, 99, 99, 103, 101, 32767, 32767, 32767, 32767, 224, 32767, 101, 99, 32767, 101, 101, 32767, 32767, 224, 226, 213, 228, 32767, 583, 584, 224, 101, 228, 228, 228, 248, 248, 506, 322, 101, 99, 101, 101, 197, 322, 322, 32767, 101, 506, 322, 506, 322, 199, 322, 322, 322, 506, 322, 32767, 101, 322, 215, 392, 99, 99, 322, 32767, 32767, 32767, 519, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 223, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 549, 32767, 567, 581, 450, 451, 453, 566, 564, 475, 476, 477, 478, 479, 480, 481, 483, 613, 32767, 523, 32767, 32767, 32767, 342, 32767, 623, 32767, 32767, 32767, 9, 74, 512, 42, 43, 51, 57, 538, 539, 540, 541, 535, 536, 542, 537, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 624, 32767, 562, 32767, 32767, 32767, 32767, 449, 544, 589, 32767, 32767, 563, 616, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 138, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 549, 32767, 136, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 545, 32767, 32767, 32767, 562, 32767, 32767, 32767, 32767, 318, 315, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 562, 32767, 32767, 32767, 32767, 32767, 295, 32767, 312, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 388, 519, 298, 300, 301, 32767, 32767, 32767, 32767, 364, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 32767, 152, 152, 3, 3, 345, 152, 152, 152, 345, 345, 152, 345, 345, 345, 152, 152, 152, 152, 152, 152, 281, 185, 263, 266, 248, 248, 152, 356, 152]
protected int $actionTableSize = 1286
protected ?SplObjectStorage PhpParser\ParserAbstract::$createdArrays
 
  • var \SplObjectStorage<\Array_,null>|null Array nodes created during parsing, for postprocessing of empty elements.
protected int $defaultAction = -32766
protected array PhpParser\ParserAbstract::$dropTokens
 
  • var array<int,bool> Map of PHP token IDs to drop
protected PhpParser\ErrorHandler PhpParser\ParserAbstract::$errorHandler
 
  • var \ErrorHandler Error handler
protected int PhpParser\ParserAbstract::$errorState
 
  • var int Error state, used to avoid error floods
protected int $errorSymbol = 1
protected array $goto = [196, 196, 1041, 352, 700, 465, 587, 470, 470, 1072, 736, 641, 643, 1205, 855, 663, 470, 856, 709, 687, 690, 1014, 698, 707, 1010, 625, 662, 166, 166, 166, 166, 220, 197, 193, 193, 176, 178, 215, 193, 193, 193, 193, 193, 194, 194, 194, 194, 194, 188, 189, 190, 191, 192, 217, 215, 218, 540, 541, 423, 542, 545, 546, 547, 548, 549, 550, 551, 552, 1156, 167, 168, 169, 195, 170, 171, 172, 165, 173, 174, 175, 177, 214, 216, 219, 239, 242, 253, 254, 256, 257, 258, 259, 260, 261, 262, 263, 269, 270, 271, 272, 281, 282, 317, 318, 319, 429, 430, 431, 602, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 179, 236, 180, 188, 189, 190, 191, 192, 217, 1156, 198, 199, 200, 201, 240, 181, 182, 202, 183, 203, 199, 184, 241, 198, 164, 204, 205, 185, 206, 207, 208, 186, 209, 210, 187, 211, 212, 213, 278, 278, 278, 278, 858, 433, 665, 979, 916, 604, 917, 428, 320, 314, 315, 338, 597, 432, 339, 434, 642, 627, 627, 896, 854, 896, 896, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 1291, 614, 628, 631, 632, 633, 634, 655, 656, 657, 711, 830, 871, 460, 912, 907, 908, 921, 864, 909, 861, 910, 911, 862, 356, 915, 868, 421, 883, 482, 867, 870, 1361, 1361, 356, 356, 484, 1094, 1089, 1090, 1091, 889, 603, 1107, 397, 400, 605, 609, 356, 356, 1361, 594, 356, 712, 344, 1378, 353, 354, 511, 703, 442, 1105, 1260, 1041, 1260, 1260, 350, 559, 1364, 1364, 356, 356, 1041, 1260, 1041, 1351, 1041, 1041, 345, 344, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1000, 1236, 948, 249, 249, 1260, 1237, 1240, 949, 1241, 1260, 1260, 1260, 1260, 1114, 1115, 1260, 1260, 1260, 1343, 1343, 1343, 1343, 564, 557, 851, 427, 1322, 616, 395, 247, 247, 247, 247, 244, 250, 592, 929, 503, 664, 504, 930, 355, 355, 355, 355, 510, 945, 512, 945, 479, 1336, 1337, 328, 557, 564, 589, 590, 330, 600, 606, 1153, 621, 622, 555, 1065, 555, 555, 658, 659, 25, 676, 677, 678, 440, 555, 1310, 1310, 686, 559, 851, 670, 1310, 1310, 1310, 1310, 1310, 1310, 1310, 1310, 1310, 1310, 1044, 1044, 1047, 1046, 685, 956, 458, 340, 1036, 1052, 1053, 973, 973, 973, 973, 1050, 1051, 458, 967, 974, 1307, 1307, 971, 412, 708, 848, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 5, 610, 6, 873, 934, 1143, 451, 451, 876, 451, 451, 1333, 962, 1333, 1333, 1253, 1019, 404, 553, 553, 553, 553, 1333, 608, 875, 620, 668, 998, 1251, 558, 584, 1022, 869, 739, 558, 885, 584, 480, 398, 464, 1078, 697, 326, 309, 1250, 832, 1345, 1345, 1345, 1345, 1082, 473, 601, 474, 475, 1338, 1339, 697, 1128, 881, 697, 984, 1369, 1370, 598, 619, 1032, 0, 544, 544, 851, 836, 0, 1329, 544, 544, 544, 544, 544, 544, 544, 544, 544, 544, 543, 543, 1255, 879, 0, 0, 543, 0, 543, 543, 543, 543, 543, 543, 543, 543, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 252, 252, 451, 836, 1080, 836, 409, 410, 1331, 1331, 1080, 674, 0, 675, 0, 414, 415, 416, 0, 688, 0, 0, 417, 635, 637, 639, 0, 348, 0, 0, 1256, 1257, 0, 1243, 884, 872, 1077, 1081, 0, 846, 1003, 0, 0, 975, 0, 735, 1243, 982, 556, 1012, 1007, 0, 435, 0, 0, 0, 0, 0, 1258, 1319, 1320, 0, 0, 435, 273, 325, 0, 325, 325, 0, 972, 1048, 1048, 0, 0, 0, 669, 1059, 1055, 1056, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1126, 888, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1017, 1017]
protected array $gotoBase = [0, 0, -234, 0, 0, 291, 199, 451, 232, 8, 0, 0, 191, -25, -76, -183, 108, -48, 96, 88, 109, 0, 36, 159, 328, 182, 10, 13, 94, 91, 0, 0, 0, 0, 0, -162, 0, 78, 0, 101, 0, 9, -1, 202, 0, 213, -322, 0, -708, 151, 556, 0, 0, 0, 0, 0, -15, 0, 0, 197, 0, 0, 276, 0, 90, 156, -70, 0, 0, 0, 0, 0, 0, -5, 0, 0, -34, 0, 0, -119, 112, -160, 40, -67, -246, 69, -364, 0, 0, 102, 0, 0, 97, 98, 0, 0, 33, -483, 0, 42, 0, 0, 0, 254, 282, 0, 0, 407, -54, 0, 77, 0, 0, 86, -29, 79, 0, 84, 314, 104, 111, 80, 0, 0, 0, 0, 0, 0, 7, 0, 82, 163, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 0, 0, 29, 0, 0, 0, 0, 0, -27, 106, -263, 12, 0, 0, -171, 0, 264, 0, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, -46, 137, 128, 164, 220, 248, 0, 0, 38, 0, 99, 234, 0, 242, -78, 0, 0]
protected array $gotoCheck = [42, 42, 73, 97, 73, 156, 48, 154, 154, 128, 48, 48, 48, 156, 26, 48, 154, 27, 9, 48, 48, 48, 48, 48, 48, 56, 56, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 23, 23, 23, 23, 15, 66, 66, 49, 65, 131, 65, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 108, 108, 25, 25, 25, 25, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 6, 35, 83, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 15, 15, 43, 35, 84, 15, 35, 188, 188, 14, 14, 84, 15, 15, 15, 15, 45, 8, 8, 59, 59, 59, 59, 14, 14, 188, 178, 14, 8, 174, 14, 97, 97, 8, 8, 83, 8, 73, 73, 73, 73, 185, 14, 188, 188, 14, 14, 73, 73, 73, 187, 73, 73, 174, 174, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 103, 79, 79, 5, 5, 73, 79, 79, 79, 79, 73, 73, 73, 73, 145, 145, 73, 73, 73, 9, 9, 9, 9, 76, 76, 22, 13, 14, 13, 62, 5, 5, 5, 5, 5, 5, 104, 73, 160, 64, 160, 73, 24, 24, 24, 24, 160, 9, 14, 9, 182, 182, 182, 76, 76, 76, 76, 76, 76, 76, 76, 155, 76, 76, 19, 115, 19, 19, 86, 86, 76, 86, 86, 86, 113, 19, 176, 176, 117, 14, 22, 121, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 89, 89, 119, 119, 89, 89, 19, 29, 89, 89, 89, 19, 19, 19, 19, 120, 120, 19, 19, 19, 177, 177, 93, 93, 93, 18, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 46, 17, 46, 37, 17, 17, 23, 23, 39, 23, 23, 131, 92, 131, 131, 14, 17, 28, 107, 107, 107, 107, 131, 107, 17, 80, 17, 17, 166, 9, 9, 110, 17, 99, 9, 41, 9, 157, 9, 9, 130, 7, 175, 175, 17, 7, 131, 131, 131, 131, 133, 9, 9, 9, 9, 184, 184, 7, 148, 9, 7, 96, 9, 9, 2, 2, 114, -1, 179, 179, 22, 12, -1, 131, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 162, 162, 20, 9, -1, -1, 162, -1, 162, 162, 162, 162, 162, 162, 162, 162, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 5, 5, 23, 12, 131, 12, 82, 82, 131, 131, 131, 82, -1, 82, -1, 82, 82, 82, -1, 82, -1, -1, 82, 85, 85, 85, -1, 82, -1, -1, 20, 20, -1, 20, 16, 16, 16, 16, -1, 20, 50, -1, -1, 50, -1, 50, 20, 16, 50, 50, 50, -1, 118, -1, -1, -1, -1, -1, 20, 20, 20, -1, -1, 118, 24, 24, -1, 24, 24, -1, 16, 118, 118, -1, -1, -1, 118, 118, 118, 118, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 16, 16, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 107, 107]
protected array $gotoDefault = [-32768, 516, 743, 4, 744, 938, 819, 828, 580, 534, 710, 349, 629, 424, 1327, 914, 1142, 599, 847, 1269, 1275, 459, 850, 333, 733, 926, 897, 898, 401, 388, 863, 399, 653, 630, 497, 882, 455, 874, 489, 877, 454, 886, 163, 420, 514, 890, 3, 893, 562, 924, 977, 389, 901, 390, 681, 903, 583, 905, 906, 396, 402, 403, 1147, 591, 626, 918, 255, 585, 919, 387, 920, 928, 392, 394, 691, 469, 508, 502, 413, 1109, 586, 613, 650, 448, 476, 624, 636, 623, 483, 436, 418, 332, 961, 969, 490, 467, 983, 351, 991, 741, 1155, 644, 492, 999, 645, 1006, 1009, 535, 536, 481, 1021, 266, 1024, 493, 1033, 23, 671, 1038, 1039, 672, 646, 1061, 647, 673, 648, 1063, 466, 581, 1071, 456, 1079, 1315, 457, 1083, 264, 1086, 277, 419, 437, 1092, 1093, 9, 1099, 701, 702, 19, 274, 513, 1127, 692, -32768, -32768, -32768, -32768, 453, 1154, 452, 1224, 1226, 563, 494, 1244, 294, 1247, 684, 509, 1252, 449, 1318, 450, 537, 477, 316, 538, 1362, 308, 336, 313, 554, 295, 337, 539, 478, 1324, 1332, 334, 31, 1352, 1363, 596, 618]
protected int $gotoTableSize = 646
protected int $invalidSymbol = 172
protected PhpParser\Lexer PhpParser\ParserAbstract::$lexer
 
  • var \Lexer Lexer that is used when parsing
protected int $numNonLeafStates = 742
protected array PhpParser\ParserAbstract::$phpTokenToSymbol
 
  • var int[] Map of PHP token IDs to internal symbols
protected PhpParser\PhpVersion PhpParser\ParserAbstract::$phpVersion
 
  • var \PhpVersion PHP version to target on a best-effort basis
protected array PhpParser\ParserAbstract::$productions
 
  • var array<int,string> Names of the production rules (only necessary for debugging)
protected array PhpParser\ParserAbstract::$reduceCallbacks
 
  • var callable[] Semantic action callbacks
protected array $ruleToLength = [1, 1, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 2, 1, 3, 4, 1, 2, 0, 1, 1, 1, 1, 4, 3, 5, 4, 3, 4, 1, 3, 1, 1, 8, 7, 2, 3, 1, 2, 3, 1, 2, 3, 1, 1, 3, 1, 3, 1, 2, 2, 3, 1, 3, 2, 3, 1, 3, 3, 2, 0, 1, 1, 1, 1, 1, 3, 7, 10, 5, 7, 9, 5, 3, 3, 3, 3, 3, 3, 1, 2, 5, 7, 9, 6, 5, 6, 3, 2, 1, 1, 1, 1, 0, 2, 1, 3, 8, 0, 4, 2, 1, 3, 0, 1, 0, 1, 0, 1, 3, 1, 1, 1, 1, 8, 9, 7, 8, 7, 6, 8, 0, 2, 0, 2, 1, 2, 1, 2, 1, 1, 1, 0, 2, 0, 2, 0, 2, 2, 1, 3, 1, 4, 1, 4, 1, 1, 4, 2, 1, 3, 3, 3, 4, 4, 5, 0, 2, 4, 3, 1, 1, 7, 0, 2, 1, 3, 3, 4, 1, 4, 0, 2, 5, 0, 2, 6, 0, 2, 0, 3, 1, 2, 1, 1, 2, 0, 1, 3, 0, 2, 1, 1, 1, 1, 1, 1, 1, 7, 9, 6, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 3, 3, 3, 3, 3, 1, 3, 3, 1, 1, 2, 1, 1, 0, 1, 0, 2, 2, 2, 4, 3, 1, 1, 3, 1, 2, 2, 3, 2, 3, 1, 1, 2, 3, 1, 1, 3, 2, 0, 1, 5, 5, 6, 10, 3, 5, 1, 1, 3, 0, 2, 4, 5, 4, 4, 4, 3, 1, 1, 1, 1, 1, 1, 0, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 1, 3, 0, 2, 0, 5, 8, 1, 3, 3, 0, 2, 2, 2, 3, 1, 0, 1, 1, 3, 3, 3, 4, 4, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 4, 3, 4, 4, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 3, 2, 1, 2, 4, 2, 2, 8, 9, 8, 9, 9, 10, 9, 10, 8, 3, 2, 2, 1, 1, 0, 4, 2, 1, 3, 2, 1, 2, 2, 2, 4, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 5, 3, 3, 4, 1, 1, 3, 1, 1, 1, 1, 1, 3, 2, 3, 0, 1, 1, 3, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 4, 4, 1, 4, 4, 0, 1, 1, 1, 3, 3, 1, 4, 2, 2, 1, 3, 1, 4, 4, 3, 3, 3, 3, 1, 3, 1, 1, 3, 1, 1, 4, 1, 1, 1, 3, 1, 1, 2, 1, 3, 4, 3, 2, 0, 2, 2, 1, 2, 1, 1, 1, 4, 3, 3, 3, 3, 6, 3, 1, 1, 2, 1]
protected array $ruleToNonTerminal = [0, 1, 3, 3, 2, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 9, 10, 11, 11, 11, 12, 12, 13, 13, 14, 15, 15, 16, 16, 17, 17, 18, 18, 21, 21, 22, 23, 23, 24, 24, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 29, 29, 30, 30, 32, 34, 34, 28, 36, 36, 33, 38, 38, 35, 35, 37, 37, 39, 39, 31, 40, 40, 41, 43, 44, 44, 45, 45, 46, 46, 48, 47, 47, 47, 47, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 25, 25, 50, 69, 69, 72, 72, 71, 70, 70, 63, 75, 75, 76, 76, 77, 77, 78, 78, 79, 79, 80, 80, 80, 26, 26, 27, 27, 27, 27, 27, 88, 88, 90, 90, 83, 83, 91, 91, 92, 92, 92, 84, 84, 87, 87, 85, 85, 93, 94, 94, 57, 57, 65, 65, 68, 68, 68, 67, 95, 95, 96, 58, 58, 58, 58, 97, 97, 98, 98, 99, 99, 100, 101, 101, 102, 102, 103, 103, 55, 55, 51, 51, 105, 53, 53, 106, 52, 52, 54, 54, 64, 64, 64, 64, 81, 81, 109, 109, 111, 111, 112, 112, 112, 112, 112, 112, 112, 110, 110, 110, 115, 115, 115, 115, 89, 89, 118, 118, 118, 119, 119, 116, 116, 120, 120, 122, 122, 123, 123, 117, 124, 124, 121, 125, 125, 125, 125, 113, 113, 82, 82, 82, 20, 20, 20, 127, 126, 126, 128, 128, 128, 128, 60, 129, 129, 130, 61, 132, 132, 133, 133, 134, 134, 86, 135, 135, 135, 135, 135, 135, 135, 140, 140, 141, 141, 142, 142, 142, 142, 142, 143, 144, 144, 139, 139, 136, 136, 138, 138, 146, 146, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 137, 147, 147, 149, 148, 148, 150, 150, 114, 151, 151, 153, 153, 153, 152, 152, 62, 104, 154, 154, 56, 56, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 161, 162, 162, 163, 155, 155, 160, 160, 164, 165, 165, 166, 167, 168, 168, 168, 168, 19, 19, 73, 73, 73, 73, 156, 156, 156, 156, 170, 170, 159, 159, 159, 157, 157, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 177, 177, 177, 108, 179, 179, 179, 179, 158, 158, 158, 158, 158, 158, 158, 158, 59, 59, 173, 173, 173, 173, 173, 180, 180, 169, 169, 169, 169, 181, 181, 181, 181, 181, 181, 74, 74, 66, 66, 66, 66, 131, 131, 131, 131, 184, 183, 172, 172, 172, 172, 172, 172, 172, 171, 171, 171, 182, 182, 182, 182, 107, 178, 186, 186, 185, 185, 187, 187, 187, 187, 187, 187, 187, 187, 175, 175, 175, 175, 174, 189, 188, 188, 188, 188, 188, 188, 188, 188, 190, 190, 190, 190]
protected array PhpParser\ParserAbstract::$semStack
 
  • var array Semantic value stack (contains values of tokens and semantic action results)
protected PhpParser\ParserAbstract::$semValue = NULL
 
  • var mixed Temporary value containing the result of last semantic action (reduction)
protected array $symbolToName = ['EOF', 'error', 'T_THROW', 'T_INCLUDE', 'T_INCLUDE_ONCE', 'T_EVAL', 'T_REQUIRE', 'T_REQUIRE_ONCE', '','', 'T_LOGICAL_OR', 'T_LOGICAL_XOR', 'T_LOGICAL_AND', 'T_PRINT', 'T_YIELD', 'T_DOUBLE_ARROW', 'T_YIELD_FROM', ''='', 'T_PLUS_EQUAL', 'T_MINUS_EQUAL', 'T_MUL_EQUAL', 'T_DIV_EQUAL', 'T_CONCAT_EQUAL', 'T_MOD_EQUAL', 'T_AND_EQUAL', 'T_OR_EQUAL', 'T_XOR_EQUAL', 'T_SL_EQUAL', 'T_SR_EQUAL', 'T_POW_EQUAL', 'T_COALESCE_EQUAL', ''?'', '':'', 'T_COALESCE', 'T_BOOLEAN_OR', 'T_BOOLEAN_AND', ''|'', ''^'', 'T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG', 'T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG', 'T_IS_EQUAL', 'T_IS_NOT_EQUAL', 'T_IS_IDENTICAL', 'T_IS_NOT_IDENTICAL', 'T_SPACESHIP', ''<'', 'T_IS_SMALLER_OR_EQUAL', ''>'', 'T_IS_GREATER_OR_EQUAL', 'T_SL', 'T_SR', ''+'', ''-'', ''.'', ''*'', ''/'', ''%'', ''!'', 'T_INSTANCEOF', ''~'', 'T_INC', 'T_DEC', 'T_INT_CAST', 'T_DOUBLE_CAST', 'T_STRING_CAST', 'T_ARRAY_CAST', 'T_OBJECT_CAST', 'T_BOOL_CAST', 'T_UNSET_CAST', ''@'', 'T_POW', ''['', 'T_NEW', 'T_CLONE', 'T_EXIT', 'T_IF', 'T_ELSEIF', 'T_ELSE', 'T_ENDIF', 'T_LNUMBER', 'T_DNUMBER', 'T_STRING', 'T_STRING_VARNAME', 'T_VARIABLE', 'T_NUM_STRING', 'T_INLINE_HTML', 'T_ENCAPSED_AND_WHITESPACE', 'T_CONSTANT_ENCAPSED_STRING', 'T_ECHO', 'T_DO', 'T_WHILE', 'T_ENDWHILE', 'T_FOR', 'T_ENDFOR', 'T_FOREACH', 'T_ENDFOREACH', 'T_DECLARE', 'T_ENDDECLARE', 'T_AS', 'T_SWITCH', 'T_MATCH', 'T_ENDSWITCH', 'T_CASE', 'T_DEFAULT', 'T_BREAK', 'T_CONTINUE', 'T_GOTO', 'T_FUNCTION', 'T_FN', 'T_CONST', 'T_RETURN', 'T_TRY', 'T_CATCH', 'T_FINALLY', 'T_USE', 'T_INSTEADOF', 'T_GLOBAL', 'T_STATIC', 'T_ABSTRACT', 'T_FINAL', 'T_PRIVATE', 'T_PROTECTED', 'T_PUBLIC', 'T_READONLY', 'T_PUBLIC_SET', 'T_PROTECTED_SET', 'T_PRIVATE_SET', 'T_VAR', 'T_UNSET', 'T_ISSET', 'T_EMPTY', 'T_HALT_COMPILER', 'T_CLASS', 'T_TRAIT', 'T_INTERFACE', 'T_ENUM', 'T_EXTENDS', 'T_IMPLEMENTS', 'T_OBJECT_OPERATOR', 'T_NULLSAFE_OBJECT_OPERATOR', 'T_LIST', 'T_ARRAY', 'T_CALLABLE', 'T_CLASS_C', 'T_TRAIT_C', 'T_METHOD_C', 'T_FUNC_C', 'T_PROPERTY_C', 'T_LINE', 'T_FILE', 'T_START_HEREDOC', 'T_END_HEREDOC', 'T_DOLLAR_OPEN_CURLY_BRACES', 'T_CURLY_OPEN', 'T_PAAMAYIM_NEKUDOTAYIM', 'T_NAMESPACE', 'T_NS_C', 'T_DIR', 'T_NS_SEPARATOR', 'T_ELLIPSIS', 'T_NAME_FULLY_QUALIFIED', 'T_NAME_QUALIFIED', 'T_NAME_RELATIVE', 'T_ATTRIBUTE', '';'', '']'', ''('', '')'', ''{'', ''}'', ''`'', ''"'', ''$'']
protected array PhpParser\ParserAbstract::$tokenEndStack
 
  • var int[] Token end position stack
protected int PhpParser\ParserAbstract::$tokenPos
 
  • var int Current position in token array
protected array PhpParser\ParserAbstract::$tokens
 
  • var \Token[] Tokens for the current parse
protected array PhpParser\ParserAbstract::$tokenStartStack
 
  • var int[] Token start position stack
protected array $tokenToSymbol = [0, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 56, 170, 172, 171, 55, 172, 172, 165, 166, 53, 50, 8, 51, 52, 54, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 31, 163, 44, 16, 46, 30, 68, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 70, 172, 164, 36, 172, 169, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 167, 35, 168, 58, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 32, 33, 34, 37, 38, 39, 40, 41, 42, 43, 45, 47, 48, 49, 57, 59, 60, 61, 62, 63, 64, 65, 66, 67, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162]
protected int $tokenToSymbolMapSize = 400
protected int $unexpectedTokenRule = 32767
protected int $YY2TBLSTATE = 437
Methods
protected PhpParser\ParserAbstract::addPropertyNameToHooks(PhpParser\Node $node) : void
 
  • param \Property|\Param $node
protected PhpParser\ParserAbstract::checkClass(PhpParser\Node\Stmt\Class_ $node, int $namePos) : void
protected PhpParser\ParserAbstract::checkClassConst(PhpParser\Node\Stmt\ClassConst $node, int $modifierPos) : void
protected PhpParser\ParserAbstract::checkClassMethod(PhpParser\Node\Stmt\ClassMethod $node, int $modifierPos) : void
protected PhpParser\ParserAbstract::checkClassModifier(int $a, int $b, int $modifierPos) : void
protected PhpParser\ParserAbstract::checkEmptyPropertyHookList(array $hooks, int $hookPos) : void
 
  • param \PropertyHook[] $hooks
protected PhpParser\ParserAbstract::checkEnum(PhpParser\Node\Stmt\Enum_ $node, int $namePos) : void
protected PhpParser\ParserAbstract::checkInterface(PhpParser\Node\Stmt\Interface_ $node, int $namePos) : void
protected PhpParser\ParserAbstract::checkModifier(int $a, int $b, int $modifierPos) : void
protected PhpParser\ParserAbstract::checkNamespace(PhpParser\Node\Stmt\Namespace_ $node) : void
protected PhpParser\ParserAbstract::checkParam(PhpParser\Node\Param $node) : void
protected PhpParser\ParserAbstract::checkPropertyHook(PhpParser\Node\PropertyHook $hook, ?int $paramListPos) : void
protected PhpParser\ParserAbstract::checkPropertyHookModifiers(int $a, int $b, int $modifierPos) : void
protected PhpParser\ParserAbstract::checkPropertyHooksForMultiProperty(PhpParser\Node\Stmt\Property $property, int $hookPos) : void
protected PhpParser\ParserAbstract::checkTryCatch(PhpParser\Node\Stmt\TryCatch $node) : void
protected PhpParser\ParserAbstract::checkUseUse(PhpParser\Node\UseItem $node, int $namePos) : void
protected PhpParser\ParserAbstract::createCommentFromToken(PhpParser\Token $token, int $tokenPos) : PhpParser\Comment
protected PhpParser\ParserAbstract::createEmptyElemAttributes(int $tokenPos) : array
 
  • return array<string,mixed>
protected PhpParser\ParserAbstract::createExitExpr(string $name, int $namePos, array $args, array $attrs) : PhpParser\Node\Expr
 
  • param (\Node\Arg|\Node\VariadicPlaceholder)[] $args
  • param array<string,mixed> $attrs
protected PhpParser\ParserAbstract::createTokenMap() : array
 

Creates the token map.

The token map maps the PHP internal token identifiers to the identifiers used by the Parser. Additionally it maps T_OPEN_TAG_WITH_ECHO to T_ECHO and T_CLOSE_TAG to ';'.

  • return array<int,int> The token map
protected PhpParser\ParserAbstract::doParse() : ?array
 
  • return \Stmt[]|null
protected PhpParser\ParserAbstract::emitError(PhpParser\Error $error) : void
protected PhpParser\ParserAbstract::fixupAlternativeElse( $node) : void
 
  • param \ElseIf_|\Else_ $node
protected PhpParser\ParserAbstract::fixupArrayDestructuring(PhpParser\Node\Expr\Array_ $node) : PhpParser\Node\Expr\List_
protected PhpParser\ParserAbstract::getAttributes(int $tokenStartPos, int $tokenEndPos) : array
 

Get attributes for a node with the given start and end token positions.

  • param int $tokenStartPos Token position the node starts at
  • param int $tokenEndPos Token position the node ends at
  • return array<string,mixed> Attributes
protected PhpParser\ParserAbstract::getAttributesAt(int $stackPos) : array
 

Get combined start and end attributes at a stack location

  • param int $stackPos Stack location
  • return array<string,mixed> Combined start and end attributes
protected PhpParser\ParserAbstract::getAttributesForToken(int $tokenPos) : array
 

Get attributes for a single token at the given token position.

  • return array<string,mixed> Attributes
protected PhpParser\ParserAbstract::getCommentBeforeToken(int $tokenPos) : ?PhpParser\Comment
 

Get last comment before the given token position, if any

protected PhpParser\ParserAbstract::getErrorMessage(int $symbol, int $state) : string
 

Format error message including expected tokens.

  • param int $symbol Unexpected symbol
  • param int $state State at time of error
  • return string Formatted error message
protected PhpParser\ParserAbstract::getExpectedTokens(int $state) : array
 

Get limited number of expected tokens in given state.

  • param int $state State
  • return string[] Expected tokens. If too many, an empty array is returned.
protected PhpParser\ParserAbstract::getFloatCastKind(string $cast) : int
protected PhpParser\ParserAbstract::handleBuiltinTypes(PhpParser\Node\Name $name)
 
  • return \Name|\Identifier
protected PhpParser\ParserAbstract::handleHaltCompiler() : string
protected PhpParser\ParserAbstract::handleNamespaces(array $stmts) : array
 

Moves statements of semicolon-style namespaces into $ns->stmts and checks various error conditions.

  • param \Node\Stmt[] $stmts
  • return \Node\Stmt[]
protected initReduceCallbacks() : void
protected PhpParser\ParserAbstract::inlineHtmlHasLeadingNewline(int $stackPos) : bool
protected PhpParser\ParserAbstract::maybeCreateNop(int $tokenStartPos, int $tokenEndPos) : ?PhpParser\Node\Stmt\Nop
protected PhpParser\ParserAbstract::maybeCreateZeroLengthNop(int $tokenPos) : ?PhpParser\Node\Stmt\Nop
 

Create a zero-length nop to capture preceding comments, if any.

protected PhpParser\ParserAbstract::parseDocString(string $startToken, $contents, string $endToken, array $attributes, array $endTokenAttributes, bool $parseUnicodeEscape) : PhpParser\Node\Expr
 
  • param string|(\Expr|\InterpolatedStringPart)[] $contents
  • param array<string,mixed> $attributes
  • param array<string,mixed> $endTokenAttributes
protected PhpParser\ParserAbstract::parseLNumber(string $str, array $attributes, bool $allowInvalidOctal = false) : PhpParser\Node\Scalar\Int_
 
  • param array<string,mixed> $attributes
protected PhpParser\ParserAbstract::parseNumString(string $str, array $attributes)
 

Parse a T_NUM_STRING token into either an integer or string node.

  • param string $str Number string
  • param array<string,mixed> $attributes Attributes
  • return \Int_|\String_ Integer or string node.
protected PhpParser\ParserAbstract::postprocessList(PhpParser\Node\Expr\List_ $node) : void
protected PhpParser\ParserAbstract::stripIndentation(string $string, int $indentLen, string $indentChar, bool $newlineAtStart, bool $newlineAtEnd, array $attributes) : string
 
  • param array<string,mixed> $attributes
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration