mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-01-17 15:18:17 +01:00
Remove some unused symbols
This commit is contained in:
parent
93731c5cfa
commit
a5d4c1005c
@ -45,7 +45,7 @@ abstract class KeywordEmulator extends TokenEmulator {
|
|||||||
|
|
||||||
public function reverseEmulate(string $code, array $tokens): array {
|
public function reverseEmulate(string $code, array $tokens): array {
|
||||||
$keywordToken = $this->getKeywordToken();
|
$keywordToken = $this->getKeywordToken();
|
||||||
foreach ($tokens as $i => $token) {
|
foreach ($tokens as $token) {
|
||||||
if ($token->id === $keywordToken) {
|
if ($token->id === $keywordToken) {
|
||||||
$token->id = \T_STRING;
|
$token->id = \T_STRING;
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace PhpParser\Node\Stmt;
|
namespace PhpParser\Node\Stmt;
|
||||||
|
|
||||||
use PhpParser\Error;
|
|
||||||
use PhpParser\Modifiers;
|
use PhpParser\Modifiers;
|
||||||
use PhpParser\Node;
|
use PhpParser\Node;
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
namespace PhpParser\Node;
|
namespace PhpParser\Node;
|
||||||
|
|
||||||
use PhpParser\Node;
|
use PhpParser\Node;
|
||||||
use PhpParser\Node\Identifier;
|
|
||||||
use PhpParser\Node\Stmt\Use_;
|
use PhpParser\Node\Stmt\Use_;
|
||||||
|
|
||||||
class UseItem extends Node\Stmt {
|
class UseItem extends Node\Stmt {
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
namespace PhpParser;
|
namespace PhpParser;
|
||||||
|
|
||||||
use PhpParser\Node\Expr\Include_;
|
use PhpParser\Node\Expr\Include_;
|
||||||
use PhpParser\Node\Stmt\Class_;
|
|
||||||
use PhpParser\Node\Stmt\GroupUse;
|
use PhpParser\Node\Stmt\GroupUse;
|
||||||
use PhpParser\Node\Stmt\Use_;
|
use PhpParser\Node\Stmt\Use_;
|
||||||
use PhpParser\Node\UseItem;
|
use PhpParser\Node\UseItem;
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
namespace PhpParser\NodeVisitor;
|
namespace PhpParser\NodeVisitor;
|
||||||
|
|
||||||
use PhpParser\Node;
|
use PhpParser\Node;
|
||||||
use PhpParser\NodeTraverser;
|
|
||||||
use PhpParser\NodeVisitor;
|
use PhpParser\NodeVisitor;
|
||||||
use PhpParser\NodeVisitorAbstract;
|
use PhpParser\NodeVisitorAbstract;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user