comparison vendor/nikic/php-parser/lib/PhpParser/Lexer.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children 5fb285c0d0e3
comparison
equal deleted inserted replaced
11:bfffd8d7479a 12:7a779792577d
358 $tokenMap[$i] = ord(';'); 358 $tokenMap[$i] = ord(';');
359 } elseif ('UNKNOWN' !== $name = token_name($i)) { 359 } elseif ('UNKNOWN' !== $name = token_name($i)) {
360 if ('T_HASHBANG' === $name) { 360 if ('T_HASHBANG' === $name) {
361 // HHVM uses a special token for #! hashbang lines 361 // HHVM uses a special token for #! hashbang lines
362 $tokenMap[$i] = Tokens::T_INLINE_HTML; 362 $tokenMap[$i] = Tokens::T_INLINE_HTML;
363 } else if (defined($name = 'PhpParser\Parser\Tokens::' . $name)) { 363 } else if (defined($name = Tokens::class . '::' . $name)) {
364 // Other tokens can be mapped directly 364 // Other tokens can be mapped directly
365 $tokenMap[$i] = constant($name); 365 $tokenMap[$i] = constant($name);
366 } 366 }
367 } 367 }
368 } 368 }